:root {
  --bg: #f2efe6;
  --surface: #fbf8f1;
  --fg: #171512;
  --muted: #6e685f;
  --primary: #1d4a43;
  --primary-fg: #f4f1e8;
  --border: #d8d2c4;
  --sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Palatino, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 24px;
  --shadow: 0 0 0 1px rgb(23 21 18 / 0.06), 0 2px 4px 0 rgb(23 21 18 / 0.04);
  --shadow-hover: 0 0 0 1px rgb(23 21 18 / 0.08), 0 18px 40px -18px rgb(23 21 18 / 0.22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; outline: 1px solid rgb(23 21 18 / 0.08); outline-offset: -1px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -0.03em; }
p { text-wrap: pretty; margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 70; background: var(--primary); color: var(--primary-fg); padding: 0.5rem 1rem; border-radius: 8px; }
.wrap { width: min(1152px, calc(100% - 2rem)); margin-inline: auto; }
@media (min-width: 640px) { .wrap { width: min(1152px, calc(100% - 3rem)); } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress > span { display: block; height: 100%; background: var(--primary); transform: scaleX(var(--p, 0)); transform-origin: left center; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), backdrop-filter 200ms var(--ease);
}
.site-header.is-on {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; }
.mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--primary); color: var(--primary-fg);
  border-radius: 999px; font-weight: 600; font-size: 0.85rem;
}
.brand-name { font-size: 0.9rem; font-weight: 500; }
.desk-nav { display: none; gap: 1.75rem; }
.desk-nav a { font-size: 0.9rem; color: var(--muted); }
.desk-nav a:hover { color: var(--fg); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.only-sm { display: inline-flex; }
.hide-sm { display: none; }
@media (min-width: 768px) {
  .desk-nav { display: flex; }
  .only-sm { display: none; }
  .hide-sm { display: inline-flex; }
  .brand-name { display: inline; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 44px; padding: 0 1.15rem; border-radius: 12px; font-size: 0.9rem; font-weight: 500;
  border: 1px solid transparent; transition: transform 150ms ease-out, background 150ms var(--ease);
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 90%, black); }
.btn-outline { border-color: var(--border); background: transparent; }
.btn-outline:hover { background: var(--surface); }
.btn-lg { height: 48px; padding: 0 1.4rem; }
.btn-sm { height: 36px; padding: 0 0.9rem; font-size: 0.85rem; }
.icon { width: 44px; height: 44px; padding: 0; border-radius: 12px; }
.paper { background: var(--surface); color: var(--fg); }
.ghost { border-color: color-mix(in srgb, var(--primary-fg) 25%, transparent); color: var(--primary-fg); }

.menu { position: fixed; inset: 64px 0 0; background: color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter: blur(12px); z-index: 30; padding: 1.5rem 1rem; }
.menu nav { display: flex; flex-direction: column; gap: 0.25rem; }
.menu a { padding: 1rem; border-radius: 16px; font-size: 1.1rem; font-weight: 500; }
@media (min-width: 768px) { .menu { display: none !important; } }

.hero {
  display: grid; gap: 2.5rem; padding: 2rem 0 3.5rem; position: relative;
}
@media (min-width: 768px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding: 3.5rem 0 5rem; }
}
.hero-spot {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--spot-x, 70%) var(--spot-y, 30%), color-mix(in srgb, var(--primary) 12%, transparent), transparent 58%);
}
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--muted); }
.mini-avatar { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; }
.dot { width: 6px; height: 6px; border-radius: 999px; background: var(--primary); display: inline-block; margin-right: 0.4rem; }
h1 { font-size: clamp(2.1rem, 5vw, 3.75rem); line-height: 1.12; }
.lede { margin-top: 1.4rem; max-width: 36rem; font-size: 1.05rem; color: var(--muted); line-height: 1.65; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.photo-main {
  overflow: hidden; border-radius: var(--radius); background: var(--border);
  box-shadow: 0 0 0 1px rgb(23 21 18 / 0.08), 0 24px 48px -24px rgb(23 21 18 / 0.28);
}
.photo-main img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top center; }
.photo-row { display: grid; grid-template-columns: 7rem 1fr; gap: 0.75rem; margin-top: 0.75rem; align-items: stretch; }
@media (min-width: 640px) { .photo-row { grid-template-columns: 8rem 1fr; } }
.photo-alt { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 16px; }
.caption { display: flex; justify-content: space-between; margin-top: 1rem; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); font-size: 0.9rem; }
.caption.stacked { margin-top: 0; flex-direction: column; justify-content: center; gap: 0.25rem; }
.caption span:last-child { color: var(--muted); }

.metrics { border-block: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 2rem 0; }
@media (min-width: 768px) { .metrics-grid { grid-template-columns: repeat(4, 1fr); } }
.metric { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 1.2rem 1.25rem; }
.metric b { display: block; font-family: var(--display); font-size: 2.1rem; font-weight: 500; color: var(--primary); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.metric span { display: block; margin-top: 0.2rem; font-size: 0.85rem; color: var(--muted); }

.pad { padding: 4rem 0; }
@media (min-width: 768px) { .pad { padding: 6rem 0; } }
.section-head { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 0.4rem; }
.sub { margin-top: 0.75rem; max-width: 36rem; color: var(--muted); }

.filters { position: relative; display: flex; gap: 0.25rem; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); overflow-x: auto; }
.filter-pill {
  position: absolute; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 999px;
  background: var(--primary); pointer-events: none;
  transition: transform 250ms var(--ease), width 250ms var(--ease);
}
.chip {
  position: relative; z-index: 1; height: 40px; padding: 0 1rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; color: var(--muted); white-space: nowrap; flex: 0 0 auto;
}
.chip.on { color: var(--primary-fg); }

.work-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  display: flex; flex-direction: column; overflow: hidden; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow); width: 100%;
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}
.card:hover, .card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card.wide { grid-column: span 1; }
@media (min-width: 768px) { .card.wide { grid-column: span 2; } }
.thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--border); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 700ms var(--ease); }
.card:hover .thumb img, .card:focus-visible .thumb img { transform: scale(1.05); }
.overlay {
  position: absolute; right: 0.75rem; bottom: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  height: 40px; padding: 0 0.9rem; border-radius: 999px;
  background: var(--primary); color: var(--primary-fg); font-size: 0.85rem; font-weight: 500;
  opacity: 0; transform: translateY(8px); transition: opacity 250ms var(--ease), transform 250ms var(--ease);
}
.card:hover .overlay, .card:focus-visible .overlay { opacity: 1; transform: none; }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.meta { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card-body h3 { margin-top: 0.45rem; font-size: 1.4rem; }
.blurb { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); line-height: 1.55; flex: 1; }
.stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.stack li, .tag { border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 0.2rem 0.65rem; font-size: 0.75rem; }

.gallery { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 1.5rem; padding-bottom: 0.25rem; }
.gallery::-webkit-scrollbar { display: none; }
.gcard {
  flex: 0 0 min(78vw, 280px); scroll-snap-align: start; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow); transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.gcard img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gcard .card-body { padding: 1rem; }
.more-list { margin-top: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.more-list li { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.more-list li:first-child { border-top: 0; }
@media (min-width: 640px) {
  .more-list li { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 1.5rem; }
}
.more-list .quiet { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }

.band { border-block: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.exp { display: grid; gap: 3rem; }
@media (min-width: 768px) { .exp { grid-template-columns: 0.9fr 1.1fr; } }
.edu { margin-top: 2rem; border: 1px solid var(--border); background: var(--bg); border-radius: var(--radius); padding: 1.25rem; }
.jobs { position: relative; display: flex; flex-direction: column; gap: 1rem; }
.rail { position: absolute; top: 0.75rem; bottom: 0.75rem; left: 11px; width: 1px; background: color-mix(in srgb, var(--primary) 40%, transparent); }
.job {
  position: relative; border: 1px solid var(--border); background: var(--bg);
  border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.job:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.job .pin { position: absolute; top: 1.7rem; left: 0.5rem; width: 10px; height: 10px; border-radius: 999px; background: var(--primary); }
.when { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.job h3 { margin-top: 0.25rem; font-size: 1.4rem; }
.job .where { margin-top: 0.2rem; font-size: 0.9rem; color: var(--muted); }
.job ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.9rem; }
.job li { padding-left: 0; }

.skill-grid { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .skill-grid { grid-template-columns: 1fr 1fr 1fr; } }
.skill-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 1.4rem 1.25rem; }
.skill-card h3 { font-size: 1.25rem; }
.skill-card ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.skill-card li {
  border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 0.35rem 0.75rem; font-size: 0.875rem;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease);
}
.skill-card li:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.certs { margin-top: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.certs li { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.certs li:first-child { border-top: 0; }
@media (min-width: 640px) { .certs li { flex-direction: row; justify-content: space-between; } }
.certs span:last-child { color: var(--muted); font-size: 0.9rem; }
.subhead { margin-top: 3rem; font-size: 1.25rem; }

.contact { background: var(--primary); color: var(--primary-fg); }
.contact .eyebrow { color: color-mix(in srgb, var(--primary-fg) 70%, transparent); }
.contact h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-top: 0.75rem; max-width: 48rem; }
.contact .lede { color: color-mix(in srgb, var(--primary-fg) 80%, transparent); }
.social { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 2rem; font-size: 0.9rem; color: color-mix(in srgb, var(--primary-fg) 85%, transparent); }
.social a:hover { color: var(--primary-fg); }

.site-footer { border-top: 1px solid var(--border); }
.site-footer .bar { height: auto; padding: 1.5rem 0; color: var(--muted); font-size: 0.875rem; flex-wrap: wrap; }

.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .modal { align-items: center; padding: 1.5rem; } }
.scrim { position: absolute; inset: 0; background: rgb(23 21 18 / 0.45); opacity: 0; transition: opacity 220ms var(--ease); }
.scrim.on { opacity: 1; }
.panel {
  position: relative; z-index: 1; width: min(48rem, 100%); max-height: 92svh; overflow: auto;
  background: var(--surface); border-radius: 28px 28px 0 0;
  opacity: 0; transform: translateY(16px) scale(0.98); filter: blur(4px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease), filter 320ms var(--ease);
}
@media (min-width: 640px) { .panel { border-radius: 28px; } }
.panel.on { opacity: 1; transform: none; filter: none; }
.panel img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.panel-body { padding: 1.5rem 1.25rem 2rem; }
@media (min-width: 640px) { .panel-body { padding: 2rem; } }
.panel-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.close { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border); display: grid; place-items: center; flex-shrink: 0; }
.panel h3 { margin-top: 0.5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.story { margin-top: 1rem; line-height: 1.65; }
.outcomes { display: grid; gap: 0.5rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .outcomes { grid-template-columns: 1fr 1fr 1fr; } }
.outcomes li { border: 1px solid var(--border); background: var(--bg); border-radius: 16px; padding: 0.75rem 1rem; font-size: 0.9rem; }

.reveal { opacity: 0; transform: translateY(16px); filter: blur(4px); transition: opacity 500ms var(--ease), transform 500ms var(--ease), filter 500ms var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.word { display: inline-block; animation: rise 640ms var(--ease) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .word { animation: none !important; }
  .reveal, .card, .card img, .overlay, .gcard, .job, .skill-card li, .filter-pill {
    transition: none !important; transform: none !important; filter: none !important; opacity: 1 !important;
  }
  .hero-spot, .progress { display: none; }
}
