:root {
  --ink: #1a201c;
  --ink-soft: #414a44;
  --muted: #6b756e;
  --green: #2c6a4a;
  --green-deep: #1d4d35;
  --green-wash: #e2efe6;
  --moss: #5f6d42;
  --paper: #f7f9f5;
  --paper-warm: #edf1ea;
  --card: #fdfefc;
  --line: #dee5da;
  --line-strong: #c2cdbe;
  /* type scale — 16px base, ~1.22 ratio */
  --fs-micro: .6875rem;  /* 11px — eyebrows, tags */
  --fs-2xs: .75rem;      /* 12px — dates, footer */
  --fs-xs: .8125rem;     /* 13px — meta, nav, small links */
  --fs-sm: .9375rem;     /* 15px — secondary body */
  --fs-base: 1rem;       /* 16px — body */
  --fs-md: 1.125rem;     /* 18px — lead */
  --fs-lg: 1.375rem;     /* 22px */
  --fs-xl: 1.75rem;      /* 28px */
  --fs-2xl: clamp(1.9rem, 3.4vw, 2.9rem);
  --fs-3xl: clamp(2.1rem, 4.4vw, 3.5rem);
  --display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
img { max-width: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 82% -8%, rgba(111, 127, 78, .13), transparent 62%),
    radial-gradient(900px 480px at -6% 12%, rgba(44, 106, 74, .10), transparent 60%);
  background-attachment: fixed;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--green); }
p, h1, h2, h3 { margin-top: 0; }
::selection { background: var(--green-wash); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.shell { width: min(1140px, calc(100% - 4rem)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: -5rem;
  left: 1rem;
  padding: .65rem 1rem;
  border-radius: 4px;
  color: var(--paper);
  background: var(--ink);
}
.skip-link:focus { top: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: rgba(247, 249, 245, .88);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  gap: .6rem;
  align-items: baseline;
  justify-self: start;
  font-family: var(--display);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
}
.wordmark-mark { color: var(--green); }
nav { display: flex; gap: 2rem; }
nav a, .nav-external {
  position: relative;
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
}
nav a::after {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--green);
  transition: width .25s ease;
  content: "";
}
nav a:hover::after { width: 100%; }
.nav-external {
  justify-self: end;
  padding: .45rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.nav-external:hover { border-color: var(--green); color: var(--green); }

/* ---------- hero ---------- */
.hero { padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.overline, .section-label, .work-venue {
  margin-bottom: 1.1rem;
  color: var(--green);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.identity { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1.6rem; }
.identity .overline { margin-bottom: 0; }
.avatar {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border: 3px solid var(--card);
  border-radius: 50%;
  background: var(--paper-warm);
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line-strong), 0 12px 26px -14px rgba(26, 32, 28, .7);
}
.overline { display: flex; gap: .6rem; align-items: center; }
.overline span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(44, 106, 74, .16);
}
h1 {
  max-width: 24ch;
  margin-bottom: 1.6rem;
  font-family: var(--display);
  font-size: var(--fs-3xl);
  font-weight: 400;
  letter-spacing: -.018em;
  line-height: 1.06;
}
h1 em {
  position: relative;
  color: var(--green);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.008em;
}
.hero-copy {
  max-width: 56ch;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: var(--fs-md);
  line-height: 1.6;
}
.hero-links { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; margin-bottom: 2.6rem; }
.hero-links a { color: var(--ink-soft); font-size: var(--fs-sm); font-weight: 500; }
.hero-links .primary-link {
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  padding: .8rem 1.35rem;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(29, 77, 53, .8);
  transition: background-color .2s ease, transform .2s ease;
}
.hero-links .primary-link:hover { background: var(--green-deep); color: #fff; transform: translateY(-1px); }
.affiliations { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; }
.affiliations p { margin: 0; color: var(--muted); font-size: var(--fs-2xs); }
.affiliations p + p::before { content: "·"; margin-right: 1.3rem; }

/* index card instead of the old orbit graphic */
.hero-card {
  padding: 1.6rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 22px 50px -34px rgba(26, 32, 28, .5);
}
.hero-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.2rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.focus-list { margin: 0; padding: 0; list-style: none; }
.focus-list li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: .4rem;
  align-items: baseline;
  padding: .75rem 0;
}
.focus-list li + li { border-top: 1px dashed var(--line); }
.focus-list b {
  color: var(--moss);
  font-family: var(--display);
  font-size: var(--fs-xs);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}
.focus-list strong { display: block; font-size: var(--fs-base); font-weight: 600; line-height: 1.45; }
.focus-list span { display: block; color: var(--muted); font-size: var(--fs-xs); line-height: 1.5; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.hero-stats div strong {
  display: block;
  color: var(--green);
  font-family: var(--display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.1;
}
.hero-stats div span { color: var(--muted); font-size: var(--fs-micro); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- statement ---------- */
.section-rule { border-top: 1px solid var(--line); }
.statement { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.statement-grid { display: grid; grid-template-columns: .26fr .74fr; gap: 3rem; }
.statement-lead {
  max-width: 26ch;
  margin-bottom: 1.3rem;
  font-family: var(--display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.18;
}
.statement-lead em { color: var(--green); font-style: italic; }
.statement-copy { max-width: 64ch; margin: 0; color: var(--ink-soft); font-size: var(--fs-base); }

/* ---------- research ---------- */
.research { padding: clamp(4rem, 7vw, 6.5rem) 0; background: var(--paper-warm); }
.section-head { display: flex; justify-content: space-between; gap: 3rem; align-items: end; margin-bottom: 2.6rem; }
.section-head h2, .experience-intro h2, .contact h2 {
  max-width: 20ch;
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.14;
}
.all-work { flex: 0 0 auto; color: var(--green); font-size: var(--fs-sm); font-weight: 600; }
.work-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.work-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.7rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.work-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -30px rgba(26, 32, 28, .55);
}
.work-item.featured {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  grid-template-rows: auto auto;
  gap: 0 2rem;
  align-items: start;
}
.work-item.featured .work-main { grid-column: 1; grid-row: 1; }
.work-item.featured .work-tags { grid-column: 1; grid-row: 2; }
.work-item.featured .work-figure {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  margin: -1.7rem -1.8rem -1.7rem 0;
  border-bottom: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 14px 14px 0;
}
.work-item.featured .work-figure img { height: 100%; min-height: 100%; aspect-ratio: auto; object-fit: contain; }
.work-item.featured .work-main h3 { font-size: var(--fs-xl); }
.work-figure {
  display: block;
  margin: -1.7rem -1.8rem 1.3rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  background: #fff;
}
.work-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 506;
  object-fit: contain;
  transition: transform .4s ease;
}
.work-item:hover .work-figure img { transform: scale(1.02); }

.work-number {
  position: absolute;
  z-index: 1;
  top: .9rem;
  right: 1.1rem;
  min-width: 2rem;
  margin: 0;
  padding: .1rem .45rem;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(247, 249, 245, .9);
  text-align: center;
  font-family: var(--display);
  font-size: var(--fs-lg);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}
.work-venue { margin-bottom: .5rem; color: var(--moss); font-size: var(--fs-micro); }
.work-main h3 {
  margin-bottom: .6rem;
  padding-right: 2rem;
  font-family: var(--display);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.25;
}
.work-main h3 a { text-decoration: none; }
.work-main h3 a:hover { color: var(--green); }
.work-main > p:not(.work-venue, .work-links) {
  max-width: 62ch;
  margin-bottom: .8rem;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}
.work-links { margin: 0; }
.work-links a { color: var(--green); font-size: var(--fs-xs); font-weight: 600; }
.work-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: 1.3rem; }
.work-tags span {
  padding: .3rem .6rem;
  border-radius: 999px;
  color: var(--green-deep);
  background: var(--green-wash);
  font-size: var(--fs-2xs);
  font-weight: 500;
}

/* ---------- experience ---------- */
.experience { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.experience-grid { display: grid; grid-template-columns: .38fr .62fr; gap: clamp(2.5rem, 6vw, 6rem); }
.experience-intro { position: sticky; top: 110px; align-self: start; }
.experience-intro > p:last-child { max-width: 38ch; margin-top: 1.3rem; color: var(--ink-soft); font-size: var(--fs-base); }
.timeline { position: relative; padding-left: 1.6rem; border-left: 1px solid var(--line-strong); }
.timeline article { position: relative; padding: 0 0 2.4rem; }
.timeline article:last-child { padding-bottom: 0; }
.timeline article::before {
  position: absolute;
  top: .55rem;
  left: calc(-1.6rem - 5px);
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--green);
  content: "";
}
.timeline-date { margin-bottom: .35rem; color: var(--muted); font-size: var(--fs-micro); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.timeline h3 { margin-bottom: .1rem; font-family: var(--display); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.005em; }
.timeline-place { margin-bottom: .5rem; color: var(--green); font-size: var(--fs-xs); font-weight: 500; }
.timeline div > p:last-child { max-width: 58ch; margin: 0; color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---------- service ---------- */
.service { padding: clamp(3.5rem, 6vw, 5.5rem) 0; background: var(--paper-warm); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.8rem; }
.service-grid article {
  padding: 1.6rem 1.6rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.service-number { margin-bottom: 1.6rem; color: var(--moss); font-family: var(--display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; font-variant-numeric: lining-nums tabular-nums; }
.service-grid h3 { margin-bottom: .5rem; font-family: var(--display); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.005em; }
.service-grid article > p:last-child { margin: 0; color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---------- contact ---------- */
.contact { padding: clamp(4rem, 8vw, 7rem) 0; }
.contact-grid > * { min-width: 0; }
.contact-grid {
  display: grid;
  grid-template-columns: .26fr .74fr;
  gap: 3rem;
  padding: clamp(2.2rem, 4vw, 3.4rem);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(135deg, #fdfefc, var(--green-wash));
}
.contact div > p { max-width: 58ch; margin: 1.2rem 0 2rem; color: var(--ink-soft); font-size: var(--fs-md); line-height: 1.6; }
.email-link {
  display: inline-block;
  max-width: 100%;
  color: var(--green-deep);
  font-family: var(--display);
  font-size: clamp(1rem, 3.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.email-link:hover { color: var(--ink); }

/* ---------- footer ---------- */
footer { padding: 1.6rem 0 2rem; color: var(--muted); font-size: var(--fs-2xs); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--line); }
footer p { margin: 0; }
footer div div { display: flex; gap: 1.2rem; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--green); }
footer > div > a { justify-self: end; }

@media (max-width: 980px) {
  .shell { width: min(100% - 2.5rem, 1140px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; }
  .work-list { grid-template-columns: 1fr; }
  .work-item.featured { display: flex; grid-column: span 1; }
  .work-item.featured .work-figure {
    margin: -1.7rem -1.8rem 1.3rem;
    border-bottom: 1px solid var(--line);
    border-left: 0;
    border-radius: 14px 14px 0 0;
  }
  .work-item.featured .work-figure img { height: auto; min-height: 0; aspect-ratio: 1200 / 506; }
  .experience-grid { grid-template-columns: 1fr; }
  .experience-intro { position: static; }
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 1.6rem, 1140px); }
  .nav-wrap { grid-template-columns: auto 1fr; min-height: 64px; }
  .nav-external { display: none; }
  nav { justify-self: end; gap: 1rem; }
  nav a { font-size: var(--fs-2xs); }
  .hero { padding: 3.5rem 0 3rem; }
  .identity { gap: .85rem; margin-bottom: 1.3rem; }
  .avatar { width: 60px; height: 60px; }
  h1 { font-size: clamp(1.7rem, 7.4vw, 2.3rem); }
  .affiliations { display: block; }
  .affiliations p + p { margin-top: .25rem; }
  .affiliations p + p::before { content: none; }
  .statement-grid, .contact-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .contact { padding: 3rem 0 3.5rem; }
  .contact-grid { padding: 1.5rem 1.25rem 1.75rem; border-radius: 16px; }
  .contact h2 { max-width: none; font-size: clamp(1.45rem, 6.2vw, 1.9rem); }
  .contact div > p { margin: .9rem 0 1.4rem; font-size: var(--fs-base); }
  .email-link { font-size: clamp(.95rem, 4.2vw, 1.2rem); }
  .statement-lead { max-width: none; font-size: clamp(1.45rem, 6.2vw, 1.9rem); }
  .section-head { display: block; }
  .all-work { display: inline-block; margin-top: 1.3rem; }
  .work-item { padding: 1.4rem 1.3rem; }
  .work-figure, .work-item.featured .work-figure { margin: -1.4rem -1.3rem 1.1rem; }
  .footer-grid { grid-template-columns: 1fr auto; }
  footer div div { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work-item, .hero-links .primary-link, nav a::after, .work-figure img { transition: none; }
}
