:root {
  --ink: #091a2a;
  --ink-soft: #173249;
  --paper: #f6f2e9;
  --paper-bright: #fffdf8;
  --gold: #d8aa5d;
  --gold-light: #f0d6a6;
  --teal: #38777a;
  --line: rgba(9, 26, 42, 0.16);
  --muted: #5c6871;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  align-items: center;
  background: rgba(246, 242, 233, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 78px;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  position: sticky;
  top: 0;
  z-index: 20;
}
.wordmark { align-items: center; display: inline-flex; font-size: .93rem; font-weight: 750; gap: .75rem; text-decoration: none; width: max-content; }
.wordmark-mark { align-items: center; aspect-ratio: 1; background: var(--ink); border-radius: 50%; color: var(--paper-bright); display: inline-flex; font-family: Georgia, serif; font-size: .72rem; justify-content: center; letter-spacing: .04em; width: 38px; }
nav { display: flex; gap: 2rem; }
nav a { color: var(--ink-soft); font-size: .84rem; font-weight: 650; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--teal); }
.portal-link { align-items: center; border: 1px solid var(--ink); border-radius: 999px; display: inline-flex; font-size: .82rem; font-weight: 760; gap: .55rem; justify-self: end; padding: .66rem 1rem; text-decoration: none; transition: .2s ease; }
.portal-link svg { width: 17px; }
.portal-link:hover, .portal-link:focus-visible { background: var(--ink); color: white; }

.hero {
  background: var(--ink);
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr);
  min-height: calc(100vh - 78px);
  overflow: hidden;
}
.hero-copy { align-self: center; max-width: 720px; padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 7vw, 7.5rem); }
.eyebrow, .section-index, .project-type { font-size: .72rem; font-weight: 800; letter-spacing: .16em; margin: 0 0 1.4rem; text-transform: uppercase; }
.eyebrow { color: var(--gold-light); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.03; margin-top: 0; }
h1 { font-size: clamp(4.8rem, 10vw, 9.6rem); letter-spacing: -.065em; margin-bottom: 2rem; }
.hero-lede { color: #dbe3e8; font-family: Georgia, serif; font-size: clamp(1.15rem, 2vw, 1.43rem); line-height: 1.55; margin: 0 0 2.2rem; max-width: 630px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.button { align-items: center; border: 1px solid transparent; border-radius: 999px; display: inline-flex; font-size: .84rem; font-weight: 780; justify-content: center; min-height: 48px; padding: .75rem 1.25rem; text-decoration: none; transition: .2s ease; }
.button-primary { background: var(--gold); color: var(--ink); }
.button-primary:hover, .button-primary:focus-visible { background: #edc77e; transform: translateY(-2px); }
.button-secondary { border-color: rgba(255,255,255,.42); color: white; }
.button-secondary:hover, .button-secondary:focus-visible { border-color: white; background: rgba(255,255,255,.08); }
.hero-meta { border-top: 1px solid rgba(255,255,255,.18); color: #aebbc4; display: flex; font-size: .77rem; gap: 1rem 2.2rem; margin-top: 4rem; padding-top: 1.3rem; }
.portrait-wrap { min-height: 650px; position: relative; }
.portrait-frame { height: 100%; overflow: hidden; position: absolute; inset: 0; }
.portrait-frame::after { background: linear-gradient(90deg, rgba(9,26,42,.2), transparent 34%), linear-gradient(0deg, rgba(9,26,42,.32), transparent 30%); content: ""; inset: 0; position: absolute; }
.portrait-frame img { height: 100%; object-fit: cover; object-position: center 22%; width: 100%; }
.portrait-note { align-items: center; background: var(--paper); bottom: 0; color: var(--ink); display: flex; font-size: .77rem; font-weight: 700; gap: 1rem; letter-spacing: .04em; padding: 1.15rem 1.45rem; position: absolute; right: 0; text-transform: uppercase; width: min(340px, 84%); z-index: 2; }
.note-line { background: var(--gold); height: 2px; width: 44px; }

.section { margin: 0 auto; max-width: var(--max); padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 4vw, 3rem); }
.section-index { color: var(--teal); }
.intro { display: grid; gap: 2rem; grid-template-columns: minmax(130px, .28fr) minmax(0, 1fr); }
.intro h2, .section-heading h2, .contact h2 { font-size: clamp(2.5rem, 5vw, 4.9rem); letter-spacing: -.04em; max-width: 920px; }
.intro-grid { border-top: 1px solid var(--line); display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; margin-top: 3rem; padding-top: 2rem; }
.intro-grid p { color: var(--muted); margin: 0; }

.research { border-top: 1px solid var(--line); }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 3.5rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { color: var(--muted); margin: 0; max-width: 360px; }
.feature-project { background: var(--paper-bright); border: 1px solid var(--line); display: grid; gap: 2rem; grid-template-columns: auto minmax(0, 1fr) minmax(185px, .35fr); padding: clamp(1.5rem, 4vw, 3.4rem); }
.project-number { color: var(--gold); font-family: Georgia, serif; font-size: 2rem; }
.project-type { color: var(--teal); margin-bottom: .8rem; }
.project-main h3, .project-card h3, .timeline h3, .credentials-card h3 { font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.025em; margin-bottom: 1rem; }
.project-main > p, .project-card > p:not(.project-type), .timeline p { color: var(--muted); }
.text-link { border-bottom: 1px solid var(--ink); display: inline-block; font-size: .84rem; font-weight: 760; margin-top: 1rem; padding-bottom: .15rem; text-decoration: none; }
.project-metrics { border-left: 1px solid var(--line); display: grid; margin: 0; padding-left: 2rem; }
.project-metrics div { border-bottom: 1px solid var(--line); padding: .75rem 0; }
.project-metrics div:last-child { border-bottom: 0; }
.project-metrics dt { font-family: Georgia, serif; font-size: 1.85rem; }
.project-metrics dd { color: var(--muted); font-size: .75rem; margin: .1rem 0 0; text-transform: uppercase; }
.project-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; margin-top: 1.2rem; }
.project-card { border: 1px solid var(--line); min-height: 335px; padding: clamp(1.5rem, 4vw, 3rem); }
.accent-card { background: var(--teal); color: white; }
.accent-card .project-type, .accent-card > p:not(.project-type) { color: #d6eeee; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 2rem 0 0; padding: 0; }
.tag-list li { border: 1px solid currentColor; border-radius: 999px; font-size: .72rem; padding: .38rem .7rem; }

.experience { border-top: 1px solid var(--line); }
.timeline { border-top: 1px solid var(--line); }
.timeline article { border-bottom: 1px solid var(--line); display: grid; gap: 2rem; grid-template-columns: minmax(90px, .24fr) 1fr; padding: 2.2rem 0; }
.timeline-date { color: var(--teal); font-family: Georgia, serif; font-size: 1.45rem; }
.timeline h3 { margin-bottom: .7rem; }
.timeline p { margin-bottom: 0; max-width: 760px; }

.education { border-top: 1px solid var(--line); display: grid; gap: 1.2rem; grid-template-columns: 1.25fr .75fr; }
.education-card, .credentials-card { padding: clamp(2rem, 5vw, 4rem); }
.education-card { background: var(--ink); color: white; }
.education-card .section-index { color: var(--gold-light); }
.education-card h2 { font-size: clamp(2.6rem, 5vw, 5rem); letter-spacing: -.045em; }
.education-card > p:last-child { color: #c8d3da; max-width: 620px; }
.degree { border-top: 1px solid rgba(255,255,255,.2); font-family: Georgia, serif; font-size: 1.45rem; padding-top: 2rem; }
.degree span { color: var(--gold-light); font-size: 1rem; }
.credentials-card { background: var(--paper-bright); border: 1px solid var(--line); }
.credentials-card ul { color: var(--muted); line-height: 1.8; padding-left: 1.2rem; }

.portal { align-items: center; background: var(--teal); color: white; display: grid; gap: 2rem; grid-template-columns: auto 1fr auto; max-width: none; padding-left: max(1.25rem, calc((100vw - var(--max)) / 2 + 3rem)); padding-right: max(1.25rem, calc((100vw - var(--max)) / 2 + 3rem)); }
.portal .section-index { color: #d5efeb; margin-bottom: .55rem; }
.portal h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); margin-bottom: .5rem; }
.portal p { margin: 0; color: #d5efeb; }
.portal-icon { align-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; display: flex; height: 76px; justify-content: center; width: 76px; }
.portal-icon svg { width: 30px; }
.button-light { background: white; color: var(--ink); white-space: nowrap; }
.button-light:hover, .button-light:focus-visible { background: var(--gold-light); transform: translateY(-2px); }

.contact { text-align: center; }
.contact .section-index { margin-bottom: 1rem; }
.contact h2 { margin: 0 auto 1.5rem; }
.contact > p { color: var(--muted); margin: 0 auto; max-width: 680px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.4rem; }
.contact-links a { border-bottom: 1px solid var(--ink); font-weight: 760; padding: .4rem .2rem; text-decoration: none; }
.contact-links a:hover, .contact-links a:focus-visible { color: var(--teal); border-color: var(--teal); }

footer { align-items: center; background: var(--ink); color: #d7e0e5; display: grid; font-size: .78rem; gap: 1rem; grid-template-columns: 1fr auto 1fr; padding: 2rem clamp(1.25rem, 4vw, 4rem); }
footer p { margin: 0; }
footer p:last-child { justify-self: end; }
footer .wordmark-mark { background: var(--gold); color: var(--ink); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr 44%; }
  .hero-copy { padding-left: 2rem; padding-right: 2rem; }
  .feature-project { grid-template-columns: auto 1fr; }
  .project-metrics { border-left: 0; border-top: 1px solid var(--line); grid-column: 2; grid-template-columns: repeat(3, 1fr); padding: 1.2rem 0 0; }
  .project-metrics div { border-bottom: 0; }
  .portal { grid-template-columns: auto 1fr; }
  .portal .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 720px) {
  .site-header { min-height: 68px; padding: .8rem 1rem; }
  .wordmark > span:last-child { display: none; }
  .portal-link { padding: .6rem .8rem; }
  .hero { display: flex; flex-direction: column-reverse; }
  .portrait-wrap { min-height: 68vh; }
  .hero-copy { padding: 3.5rem 1.25rem 4rem; }
  h1 { font-size: clamp(4.2rem, 25vw, 6.4rem); }
  .hero-meta { flex-direction: column; gap: .35rem; }
  .section { padding: 4.5rem 1.25rem; }
  .intro, .intro-grid, .section-heading, .project-grid, .education { display: block; }
  .section-heading > p { margin-top: 1.2rem; }
  .intro-grid p + p, .project-card + .project-card, .credentials-card { margin-top: 1.2rem; }
  .feature-project { display: block; }
  .project-number { margin-bottom: 1.5rem; }
  .project-metrics { display: grid; grid-column: auto; margin-top: 2rem; padding-left: 0; }
  .timeline article { grid-template-columns: 1fr; gap: .8rem; }
  .portal { grid-template-columns: 1fr; text-align: left; }
  .portal .button { grid-column: auto; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer .wordmark, footer p:last-child { justify-self: center; }
  footer .wordmark > span:last-child { display: inline; }
}

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