:root {
  --ink: #14161a;
  --muted: #5f6672;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --line: #ded9cc;
  --blue: #2458c8;
  --blue-deep: #0e214d;
  --teal: #177e7a;
  --gold: #b97822;
  --shadow: 0 24px 60px rgba(20, 22, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[id] {
  scroll-margin-top: 92px;
}

#top {
  scroll-margin-top: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  color: #f5efe4;
  background: rgba(5, 7, 11, 0.84);
  border-bottom: 1px solid rgba(218, 203, 174, 0.16);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 10px;
  color: rgba(245, 239, 228, 0.72);
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #f7efe0;
  border-bottom-color: rgba(218, 203, 174, 0.58);
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: center;
  padding: 128px 48px 88px;
  color: #f7efe0;
  background: #05070b;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: url("speech_side_angle.JPG");
  background-position: center right;
  background-size: cover;
  filter: grayscale(38%) saturate(54%) contrast(1.08);
  opacity: 0.66;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 5, 8, 0.97), rgba(4, 5, 8, 0.78) 44%, rgba(4, 5, 8, 0.32)),
    linear-gradient(0deg, rgba(4, 5, 8, 0.86), rgba(4, 5, 8, 0.16) 58%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
  padding-left: 28px;
  border-left: 1px solid rgba(218, 203, 174, 0.42);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow,
.image-band .eyebrow,
.contact-panel .eyebrow {
  color: #d4bd8d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: #f3ead8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.9rem;
  font-weight: 500;
  line-height: 1;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.35rem;
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 18px;
  color: rgba(247, 239, 224, 0.82);
  font-size: 1.13rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 28px;
  color: rgba(247, 239, 224, 0.7);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-meta span {
  display: inline;
}

.hero-meta span + span::before {
  content: "/";
  margin-right: 14px;
  color: rgba(212, 189, 141, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
}

.button-primary {
  color: #080a0f;
  background: #efe4d0;
}

.button-secondary {
  color: #f7efe0;
  border: 1px solid rgba(218, 203, 174, 0.5);
  background: rgba(5, 7, 11, 0.22);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.section-pad {
  padding: 96px 48px;
}

.section-heading,
.intro-grid,
.project-grid,
.timeline,
.skill-grid,
.contact-panel {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 720px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  color: #343942;
  font-size: 1.08rem;
}

.research-section,
.skills-section {
  background: #fffdf8;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.project-card,
.skill-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.project-card {
  min-height: 390px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(20, 22, 26, 0.06);
}

.muted-card {
  background: #f4f2eb;
}

.card-topline {
  margin-bottom: 34px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card p,
.timeline-item p,
.skill-group p,
.contact-panel p,
.image-band-copy p {
  color: var(--muted);
}

.project-card ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding-left: 18px;
  color: #323841;
  font-size: 0.93rem;
}

.card-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 9px 12px;
  color: #ffffff;
  border-radius: 8px;
  background: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.card-link:hover,
.card-link:focus-visible {
  background: var(--blue-deep);
}

.experience-section {
  background: var(--paper);
}

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 42px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  color: var(--gold);
  font-weight: 800;
}

.role {
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 800;
}

.image-band {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  min-height: 560px;
  color: #ffffff;
  background: var(--blue-deep);
}

.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-band-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 56px;
}

.image-band-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.talk-section {
  background: var(--paper);
}

.video-wrap {
  width: min(980px, 100%);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1020;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.skill-group {
  min-height: 188px;
  padding: 24px;
}

.skill-group h3 {
  color: var(--teal);
}

.contact-section {
  color: #ffffff;
  background: linear-gradient(135deg, #05070b 0%, #10151d 46%, #0b1c32 100%);
}

.contact-panel {
  max-width: 780px;
  margin-left: auto;
  margin-right: 0;
  padding: 44px;
  border: 1px solid rgba(218, 203, 174, 0.14);
  border-radius: 8px;
  background: rgba(8, 11, 17, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-links a {
  min-height: 42px;
  padding: 10px 14px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-weight: 800;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1100px) {
  .project-grid,
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card {
    min-height: 330px;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding: 18px 20px;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 640px;
    padding: 112px 20px 32px;
  }

  .hero::before {
    background-position: 62% center;
  }

  h1 {
    font-size: 3.9rem;
  }

  h2 {
    font-size: 1.95rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .section-pad {
    padding: 68px 20px;
  }

  .intro-grid,
  .project-grid,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .image-band {
    grid-template-columns: 1fr;
  }

  .image-band img {
    max-height: 430px;
  }

  .image-band-copy {
    padding: 50px 20px;
  }

  .contact-panel {
    padding: 28px;
  }
}

@media (max-width: 540px) {
  .site-header {
    display: block;
  }

  .brand {
    display: inline-block;
    margin-bottom: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 680px;
  }

  h1 {
    font-size: 3.1rem;
  }

  .hero-actions,
  .contact-links {
    display: grid;
    grid-template-columns: 1fr;
  }
}
