:root {
  --ink: #171411;
  --muted: #6f665e;
  --paper: #fbf8f2;
  --panel: #ffffff;
  --panel-warm: #f4eadc;
  --line: #e5d8c8;
  --accent: #8f3f2b;
  --accent-dark: #5e291c;
  --charcoal: #241e1b;
  --gold: #c8a35d;
  --shadow: 0 22px 55px rgba(55, 36, 18, 0.14);
  --radius: 26px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 163, 93, .20), transparent 34rem),
    linear-gradient(180deg, #fffaf1 0%, var(--paper) 44%, #f7efe4 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(23, 20, 17, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 20, 17, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a { color: inherit; }
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: .75rem 1rem;
  background: var(--ink);
  color: white;
  z-index: 999;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(251, 248, 242, .86);
  border-bottom: 1px solid rgba(229, 216, 200, .9);
}
.nav {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: .82rem;
  letter-spacing: .1em;
  box-shadow: inset 0 0 0 1px rgba(200,163,93,.35);
}
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.brand-text small { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; }
.nav-links { display: flex; align-items: center; gap: .5rem; }
.nav-links a {
  text-decoration: none;
  color: #3b332e;
  font-weight: 650;
  padding: .65rem .85rem;
  border-radius: 999px;
}
.nav-links a:hover { background: rgba(143, 63, 43, .09); color: var(--accent-dark); }
.nav-toggle { display: none; }

.software-ribbon {
  width: min(var(--max), calc(100% - 2rem));
  margin: .85rem auto 0;
}
.software-ribbon__inner {
  background: linear-gradient(180deg, #fffaf4, #f6eadc);
  border: 1px solid rgba(229,216,200,.95);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(55, 36, 18, .08);
  padding: .95rem 1rem 1rem;
}
.software-ribbon__title {
  font-size: .88rem;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: .03em;
  color: var(--accent-dark);
  margin-bottom: .8rem;
}
.software-ribbon__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}
.software-ribbon__item {
  display: grid;
  gap: .25rem;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(229,216,200,.95);
  border-radius: 16px;
  padding: .9rem .95rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.software-ribbon__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(55, 36, 18, .10);
  border-color: rgba(184, 102, 52, .35);
}
.software-ribbon__item strong {
  font-size: .96rem;
  color: var(--accent-dark);
}
.software-ribbon__item span {
  font-size: .9rem;
  line-height: 1.4;
  color: #4d443e;
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.5rem 0;
}
.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-top: 4rem;
}
.eyebrow, .section-kicker {
  margin: 0 0 .85rem;
  color: var(--accent);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
}
h1, h2, h3 { line-height: 1.07; }
h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); max-width: 15ch; }
h2 { font-size: clamp(2rem, 4vw, 4rem); max-width: 12ch; }
h3 { margin: 0; font-size: 1.2rem; }
.hero__lede {
  max-width: 66ch;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  color: #4a413b;
  margin: 1.25rem 0 0;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__aside {
  display: grid;
  gap: 1rem;
  align-items: start;
  justify-items: stretch;
}
.headshot-card {
  margin: 0;
  background: white;
  border: 1px solid rgba(229,216,200,.9);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(55, 36, 18, .10);
}
.headshot-card--secondary {
  width: min(210px, 58%);
  justify-self: end;
}
.headshot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.65;
  object-fit: cover;
  object-position: center top;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .85rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(143, 63, 43, .24);
}
.button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.button--ghost { background: white; color: var(--accent-dark); box-shadow: inset 0 0 0 1px var(--line); }
.button--small { min-height: 38px; padding: .55rem .9rem !important; background: var(--accent) !important; color: white !important; }
.text-link { font-weight: 800; color: var(--accent-dark); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hero-card {
  background: linear-gradient(145deg, var(--charcoal), #3a2c25);
  color: white;
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2.4vw, 1.6rem);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(200, 163, 93, .32);
  border-radius: calc(var(--radius) - .8rem);
  pointer-events: none;
}
.hero-card__number {
  font-family: Georgia, serif;
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  color: var(--gold);
  line-height: .95;
  margin-bottom: .25rem;
}
.hero-card p, .hero-card dl { position: relative; z-index: 1; }
.hero-card p { font-size: .96rem; line-height: 1.45; color: #f2e7d8; margin: 0; }
.hero-card dl { margin: 1rem 0 0; display: grid; gap: .75rem; }
.hero-card dt { font-size: .66rem; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.hero-card dd { margin: .12rem 0 0; color: #fff7ec; font-size: .92rem; line-height: 1.35; }

.intro-grid {
  display: grid;
  grid-template-columns: .24fr 1.1fr .78fr;
  gap: 2rem;
  align-items: start;
  border-top: 1px solid var(--line);
}
.intro-grid p { color: #4d443e; font-size: 1.04rem; }
.stat-stack { display: grid; gap: 1rem; }
.stat-stack p, .education-card, .credit, .work-card, .contact-card, .app-card {
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(229,216,200,.9);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(55, 36, 18, .08);
}
.stat-stack p { margin: 0; padding: 1.3rem; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.section-heading h2 { max-width: 15ch; }
.work-grid, .credits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.app-card {
  padding: 1.35rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 24px 55px rgba(55, 36, 18, .14); }
.app-card__label {
  display: inline-flex;
  margin-bottom: .9rem;
  color: var(--accent);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 850;
}
.app-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.app-card h3 a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.app-card p { margin-bottom: 0; color: #514842; }
.work-card, .credit {
  padding: 1.35rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.work-card:hover, .credit:hover { transform: translateY(-4px); box-shadow: 0 24px 55px rgba(55, 36, 18, .14); }
.work-card__meta {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 850;
}
.work-card p, .credit p { margin-bottom: 0; color: #514842; }

.honors {
  width: 100%;
  max-width: none;
  background: var(--charcoal);
  color: white;
  padding: 5.5rem max(1rem, calc((100% - var(--max)) / 2));
}
.section-heading--light .eyebrow { color: var(--gold); }
.honors h2 { max-width: 18ch; }
.honor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  overflow: hidden;
}
.honor-list li {
  display: grid;
  gap: .45rem;
  padding: 1.35rem;
  background: rgba(255,255,255,.045);
}
.honor-list span { color: var(--gold); font-size: .74rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 850; }
.honor-list strong { font-family: Georgia, serif; font-size: 1.08rem; }
.honor-list em { color: #e9ddcf; font-style: normal; }
.split-section {
  display: grid;
  grid-template-columns: 1fr .58fr;
  gap: 2rem;
  align-items: start;
}
.check-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .85rem; }
.check-list li { position: relative; padding-left: 1.8rem; color: #453d37; }
.check-list li::before { content: "•"; position: absolute; left: 0; color: var(--accent); font-size: 1.6rem; line-height: 1; }
.education-card { padding: 1.5rem; }
.education-card h3 { font-family: Georgia, serif; font-size: 1.8rem; margin-bottom: 1.2rem; }
.education-card p { color: #4d443e; }

.catalog {
  padding-top: 3rem;
}
.catalog-tools {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}
.search-box { display: grid; gap: .35rem; flex: 1; max-width: 34rem; color: var(--muted); font-weight: 750; font-size: .9rem; }
.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .9rem 1rem;
  background: white;
  font: inherit;
  color: var(--ink);
  outline-color: var(--gold);
}
.filter-buttons { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: flex-end; }
.filter {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: .7rem .9rem;
  font-weight: 800;
  cursor: pointer;
}
.filter.is-active, .filter:hover { background: var(--charcoal); color: white; border-color: var(--charcoal); }
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; min-width: 920px; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
th, td { padding: 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #efe2d1; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
td { color: #443c36; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr[hidden] { display: none; }
.catalog-count { color: var(--muted); font-weight: 750; }
.bio-panel {
  background: linear-gradient(135deg, #ffffff, #f3e5d4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}
.bio-panel blockquote {
  margin: 0;
  max-width: 980px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
  line-height: 1.32;
}
.contact {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 2rem;
  align-items: center;
}
.contact h2 { max-width: 15ch; }
.contact-card {
  padding: 1.5rem;
  display: grid;
  gap: .7rem;
}
.contact-card a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: var(--accent-dark);
  font-weight: 850;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-card a:last-child { border-bottom: 0; }
.contact-card a:hover { color: var(--accent); }
.site-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer a { color: var(--accent-dark); font-weight: 800; }

@media (max-width: 980px) {
  .hero, .intro-grid, .split-section, .contact { grid-template-columns: 1fr; }
  h1 { max-width: 14ch; }
  h2 { max-width: 18ch; }
  .work-grid, .credits-grid, .app-grid, .honor-list, .software-ribbon__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .filter-buttons { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .site-header { position: static; }
  .software-ribbon { margin-top: .5rem; }
  .software-ribbon__inner { padding: .85rem; }
  .software-ribbon__items { grid-template-columns: 1fr; }
  .software-ribbon__title { font-size: .84rem; }
  .nav { align-items: flex-start; padding: .9rem 0; min-height: auto; }
  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    background: white;
    border-radius: 999px;
    padding: .65rem .85rem;
    font-weight: 850;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: .8rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .section, .hero { padding: 3.5rem 0; }
  .work-grid, .credits-grid, .app-grid, .honor-list { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .hero-card::before { display: none; }
  .headshot-card--secondary { width: min(180px, 52vw); justify-self: center; }
  h1 { font-size: clamp(2.1rem, 10vw, 3rem); }
  .site-footer { flex-direction: column; }
}

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