:root {
  --navy: #163247;
  --blue: #2c6f91;
  --blue-dark: #1d526e;
  --blue-soft: #eaf3f7;
  --sand: #d9b985;
  --cream: #f7f5f0;
  --white: #ffffff;
  --text: #2c343a;
  --muted: #66727a;
  --line: #d9e0e3;
  --shadow: 0 12px 32px rgba(22, 50, 71, 0.12);
  --font-sans: "Source Sans 3", Arial, sans-serif;
  --font-heading: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; color: var(--text); background: var(--white); font-family: var(--font-sans); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; }
h1, h2, h3, h4 { font-family: var(--font-heading); }
h2 { margin-bottom: 22px; font-size: clamp(1.9rem, 4vw, 2.65rem); font-weight: 600; letter-spacing: 0.01em; }
h3 { margin-bottom: 12px; font-size: 1.35rem; }

.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 16px; color: var(--white); background: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; z-index: 100; top: 0; background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid #e7e7e7; }
.header-inner, .container, .footer-inner { width: min(1100px, calc(100% - 48px)); margin: 0 auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 104px; }
.logo, .footer-logo { color: #222; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 500; letter-spacing: 0.17em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { position: relative; color: #626262; font-family: var(--font-heading); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.11em; text-decoration: none; text-transform: uppercase; }
.site-nav a::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; content: ""; background: var(--blue); transform: scaleX(0); transition: transform 160ms ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.menu-button { display: none; }

.hero { position: relative; display: grid; min-height: 520px; overflow: hidden; color: var(--white); background: url("assets/coastal-sunset.jpg") center 54% / cover no-repeat; place-items: center; text-align: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(rgba(8, 28, 39, 0.24), rgba(8, 28, 39, 0.5)); }
.hero-copy { position: relative; z-index: 1; width: min(860px, calc(100% - 48px)); padding: 80px 0; }
.overline, .section-kicker, .project-type, .experience-place > p { margin-bottom: 13px; color: var(--blue); font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; }
.hero .overline { color: var(--white); font-family: var(--font-heading); font-weight: 500; letter-spacing: 0.2em; }
.hero h1 { max-width: 840px; margin: 0 auto 18px; color: var(--white); font-size: clamp(2.7rem, 5vw, 4.6rem); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25); }
.hero-copy > p:not(.overline) { max-width: 650px; margin: 0 auto 28px; color: var(--white); font-size: 1.2rem; }
.hero-actions, .contact-links { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 11px 26px; border: 2px solid transparent; font-family: var(--font-heading); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.11em; text-decoration: none; text-transform: uppercase; transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease; }
.button:hover { transform: translateY(-2px); }
.button-light { color: #252525; background: var(--white); border-color: var(--white); }
.button-light:hover { color: var(--white); background: transparent; }
.button-primary { color: var(--white); background: var(--blue); border-color: var(--blue); }
.button-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button-outline, .button-outline-dark { color: var(--blue-dark); background: transparent; border-color: var(--blue); }
.button-outline:hover, .button-outline-dark:hover { color: var(--white); background: var(--blue-dark); border-color: var(--blue-dark); }
.photo-credit { position: absolute; z-index: 1; right: 22px; bottom: 15px; margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 0.72rem; letter-spacing: 0.08em; }

.section { padding: 64px 0; }
.section-soft { background: #f5f5f3; }
.narrow { width: min(820px, calc(100% - 48px)); margin: 0 auto; }
.centered { text-align: center; }
.about-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; align-items: center; max-width: 900px; gap: 55px; }
.about-photo { aspect-ratio: 4 / 5; overflow: hidden; background: #090909; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.about-copy .lead { color: #354b59; font-size: 1.2rem; }
.about-copy h2 { margin-bottom: 18px; text-transform: uppercase; }
.heading-rule { display: block; width: 52px; height: 2px; margin-bottom: 28px; background: var(--blue); }
.education-line { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.education-line p { margin-bottom: 5px; font-size: 0.95rem; }
.education-line strong { display: inline-block; min-width: 42px; color: var(--blue); font-family: var(--font-heading); font-size: 0.78rem; letter-spacing: 0.09em; }
.about p:last-child, .section-heading > p:last-child { margin-bottom: 0; }
.section-heading { max-width: 760px; margin-bottom: 46px; }
.section-heading.centered { margin-right: auto; margin-left: auto; }
.section-heading h2 { text-transform: uppercase; }
.section-heading h2::after { display: block; width: 48px; height: 2px; margin: 23px auto 0; content: ""; background: var(--blue); }

.experience-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border: 0; }
.experience-item { display: block; padding: 27px 25px; background: var(--white); border: 1px solid #e1e3e3; }
.experience-place { min-height: 94px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.experience-place h3 { margin-bottom: 0; font-size: 1.22rem; font-weight: 600; }
.experience-copy h4 { margin-bottom: 12px; color: var(--blue); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.experience-copy p { margin-bottom: 0; }

.section-blue { color: rgba(255, 255, 255, 0.86); background: #2c6f91; }
.section-blue h2 { color: var(--white); }
.section-kicker-light { color: rgba(255, 255, 255, 0.72); }
.research-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; align-items: start; gap: 95px; }
.research-intro { max-width: 460px; margin-bottom: 0; font-size: 1.09rem; }
.interest-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.interest-list li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.interest-list span { color: rgba(255, 255, 255, 0.65); font-family: var(--font-heading); font-size: 0.72rem; font-weight: 600; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project-card { padding: 28px; background: var(--white); border: 1px solid #e0e2e2; }
.project-card h3 { font-weight: 600; }
.project-card p:last-child { margin-bottom: 0; color: var(--muted); }
.project-type { color: var(--blue); }
.ip-note { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 44px; margin-top: 28px; padding: 31px 34px; background: var(--white); border: 1px solid #e0e2e2; border-top: 3px solid var(--blue); }
.ip-note h3, .ip-note p { margin-bottom: 0; }
.ip-note p { color: #4f626d; font-size: 0.93rem; }

.contact { background: var(--white); }
.contact-links { justify-content: center; }

.site-footer { padding: 52px 0 40px; color: rgba(255, 255, 255, 0.66); background: #292f32; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 30px 48px; }
.footer-logo { display: inline-block; margin-bottom: 8px; color: var(--white); }
.footer-inner p { margin-bottom: 0; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 25px; }
.footer-links a { color: rgba(255, 255, 255, 0.82); font-size: 0.9rem; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.copyright { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.82rem; }
:focus-visible { outline: 3px solid #e6bb62; outline-offset: 3px; }

@media (max-width: 900px) {
  .hero h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
  .about-grid { gap: 42px; }
  .experience-list { grid-template-columns: 1fr; }
  .experience-place { min-height: auto; }
  .research-layout { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 80px; }
  body { font-size: 16px; }
  .header-inner, .container, .footer-inner, .narrow { width: min(1100px, calc(100% - 34px)); }
  .header-inner { min-height: 80px; }
  .logo { font-size: 1rem; }
  .menu-button { display: grid; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; place-items: center; }
  .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 25px; height: 2px; content: ""; background: var(--navy); transition: transform 160ms ease; }
  .menu-lines { position: relative; }
  .menu-lines::before { position: absolute; top: -8px; }
  .menu-lines::after { position: absolute; top: 8px; }
  .menu-button[aria-expanded="true"] .menu-lines { background: transparent; }
  .menu-button[aria-expanded="true"] .menu-lines::before { top: 0; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-lines::after { top: 0; transform: rotate(-45deg); }
  .site-nav { position: absolute; top: 80px; right: 0; left: 0; display: none; align-items: stretch; padding: 16px 17px 22px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; gap: 0; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 8px; border-bottom: 1px solid #edf0f1; }
  .site-nav a::after { display: none; }
  .hero { min-height: 460px; background-position: 58% center; }
  .hero-copy { width: min(640px, calc(100% - 34px)); padding: 72px 0; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.3rem); letter-spacing: 0.035em; }
  .hero-copy > p:not(.overline) { font-size: 1.08rem; }
  .photo-credit { right: 14px; bottom: 10px; font-size: 0.65rem; }
  .section { padding: 52px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { width: min(290px, 86vw); margin: 0 auto; }
  .about-copy { text-align: center; }
  .heading-rule { margin-right: auto; margin-left: auto; }
  .experience-item { padding: 30px 26px; }
  .project-grid { grid-template-columns: 1fr; }
  .ip-note { grid-template-columns: 1fr; gap: 13px; padding: 27px 25px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; justify-content: flex-start; flex-direction: column; }
}

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