:root {
  --navy: #0b1f3a;
  --navy-2: #13305a;
  --navy-3: #284a7a;
  --ink: #14213a;
  --muted: #5a6780;
  --line: #d9e1ec;
  --pale: #f3f6fa;
  --white: #fff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; font: 16px/1.55 var(--sans); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* Header */
.top { background: var(--navy); color: var(--white); }
.top-row { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; margin: 0; }
.mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid currentColor; border-radius: 4px; font-size: .8rem; letter-spacing: .04em; }
.tag { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.hero { padding: 72px 0 68px; }
.top a, .foot a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 3px; }
.top a:hover, .foot a:hover { text-decoration-color: currentColor; }
.tag { text-transform: none !important; letter-spacing: .02em !important; font-size: .88rem !important; }
.eyebrow { margin: 0 0 10px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #b9c8de; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; font-weight: 700; }
.role { margin: 6px 0 18px; font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: #dbe4f1; }
.lede { max-width: 640px; margin: 0 0 24px; font-size: 1.08rem; color: #e8eef7; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: .84rem; }

/* Type navigation */
.types { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--line); }
.types .wrap { display: flex; gap: 4px 18px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.types a { white-space: nowrap; color: var(--navy-2); text-decoration: none; font-size: .88rem; font-weight: 600; padding: 2px 0; border-bottom: 2px solid transparent; }
.types a:hover, .types a:focus-visible { border-color: var(--navy); }

main { padding: 40px 0 72px; }
.notice { margin: 0 0 20px; padding: 14px 18px; background: var(--pale); border-left: 3px solid var(--navy); color: var(--muted); font-size: .88rem; }
.tools { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 14px; }
.tools button { cursor: pointer; background: var(--white); color: var(--navy); border: 1px solid var(--navy); border-radius: 4px; padding: 6px 14px; font-size: .85rem; font-weight: 600; }
.tools button:hover { background: var(--navy); color: var(--white); }

/* Folding */
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.chev { width: 20px; height: 20px; flex: none; transition: transform .2s ease; }
details[open] > summary .chev { transform: rotate(90deg); }
summary:focus-visible { outline: 2px solid var(--navy-3); outline-offset: 2px; }

/* Groups */
.group { margin: 0 0 28px; box-shadow: 0 1px 2px rgba(11,31,58,.04), 0 8px 24px -12px rgba(11,31,58,.18); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; scroll-margin-top: 64px; }
.group > summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--navy); color: var(--white); }
.g-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; flex: 1; }
.g-count { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.banner { position: relative; margin: 0; aspect-ratio: 10 / 3; overflow: hidden; background: var(--navy-2); }
.banner img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,58,.05), rgba(11,31,58,.45)); }
.banner figcaption { position: absolute; right: 10px; bottom: 8px; z-index: 1; font-size: .72rem; color: #fff; background: rgba(11,31,58,.7); padding: 2px 8px; border-radius: 3px; }
.g-line { margin: 0; padding: 14px 20px 4px; color: var(--muted); font-size: .95rem; }
.projects { padding: 8px 20px 20px; }

/* Project cards */
.project { border-bottom: 1px solid var(--line); }
.project:last-child { border-bottom: 0; }
.project > summary { transition: color .15s ease; display: grid; grid-template-columns: 1fr auto 20px; align-items: baseline; gap: 4px 16px; padding: 14px 2px; color: var(--navy); }
.project > summary .chev { align-self: center; color: var(--navy-3); }
.p-title { font-weight: 650; font-size: 1.02rem; }
.p-meta { font-size: .85rem; color: var(--muted); text-align: right; }
.project > summary:hover .p-title { text-decoration: underline; text-underline-offset: 3px; }
.p-body { display: grid; grid-template-columns: 1fr 220px; gap: 22px; padding: 4px 2px 20px 2px; }
.p-text h4 { margin: 0 0 4px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-3); }
.p-text p { margin: 0 0 14px; }
dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px; padding-top: 12px; border-top: 1px dashed var(--line); }
dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
dd { margin: 0; font-weight: 550; }
.ph { margin: 0; align-self: start; border: 1px dashed #b7c4d8; border-radius: 6px; background: var(--pale); color: #8fa1bd; padding: 18px 14px 12px; text-align: center; }
.ph svg { width: 100%; max-width: 150px; margin: 0 auto 6px; }
.ph figcaption { font-size: .75rem; color: var(--muted); }

/* Employment history */
.history { margin-top: 40px; }
.history h2 { font-family: var(--serif); color: var(--navy); font-size: 1.5rem; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 1.2fr 1.6fr auto; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline b { color: var(--navy); }
.timeline span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Footer */
.foot { background: var(--navy); color: #c8d4e6; font-size: .84rem; padding: 30px 0 36px; }
.foot .brand { color: var(--white); margin-bottom: 12px; }
.foot p { margin: 0 0 8px; max-width: 760px; }

/* Phones */
@media (max-width: 700px) {
  .top-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero { padding: 36px 0 34px; }
  .group > summary { padding: 14px 16px; }
  .g-title { font-size: 1.15rem; }
  .projects { padding: 4px 14px 14px; }
  .g-line { padding: 12px 16px 2px; }
  .project > summary { grid-template-columns: 1fr 20px; }
  .p-meta { grid-column: 1; grid-row: 2; text-align: left; }
  .project > summary .chev { grid-column: 2; grid-row: 1 / span 2; }
  .p-body { grid-template-columns: 1fr; }
  .ph { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; }
  .ph svg { width: 64px; margin: 0; }
  .timeline li { grid-template-columns: 1fr; }
  .tools { justify-content: flex-start; }
}

/* Smooth fold where the browser supports it; instant elsewhere. */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; overflow: clip; transition: block-size .32s cubic-bezier(.2,.7,.2,1), content-visibility .32s allow-discrete; }
  details[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .chev { transition: none; } details::details-content { transition: none !important; } }

/* Print: a clean résumé on white paper */
@media print {
  @page { margin: 14mm 12mm; }
  body { font-size: 10.5pt; color: #000; }
  .wrap { width: 100%; }
  .top, .foot { background: none; color: #000; }
  .top-row { border-color: #000; padding: 0 0 6pt; }
  .hero { padding: 10pt 0 6pt; }
  .eyebrow, .role, .lede { color: #000; }
  .chips li { border-color: #888; }
  .top a, .foot a { text-decoration: none; }
  details::details-content { block-size: auto !important; }
  .types, .tools, .banner, .ph, .chev { display: none !important; }
  main { padding: 6pt 0; }
  .notice { background: none; border-left-color: #000; color: #333; }
  .group { border: 0; border-radius: 0; margin-bottom: 10pt; }
  .group > summary { background: none; color: var(--navy); border-bottom: 1.5pt solid var(--navy); padding: 4pt 0; }
  .g-line, .projects { padding-left: 0; padding-right: 0; }
  .project { break-inside: avoid; }
  .project > summary { padding: 6pt 0 2pt; }
  .p-body { grid-template-columns: 1fr; padding-bottom: 6pt; }
  .history { break-before: auto; }
  .foot .brand .mark { border-color: #000; }
}
