@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  --ink: #0d0d0f;
  --paper: #f3f7fb;
  --mist: #ffffff;
  --accent: #2563eb;
  --accent-deep: #1e3a8a;
  --sea: #0ea5e9;
  --lilac: #93c5fd;
  --shadow: rgba(13, 13, 15, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  background-color: #e8f0fb;
  background-image:
    radial-gradient(circle, rgba(77, 117, 175, 0.25) 1px, transparent 1px),
    radial-gradient(circle, rgba(77, 117, 175, 0.12) 1px, transparent 1px);
  background-size: 28px 28px, 56px 56px;
  background-position: 0 0, 14px 14px;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 18px;
}

.bg-glow {
  display: none;
}

.bg-grid {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 8vw;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(243, 247, 251, 0.95) 0%, rgba(243, 247, 251, 0.5) 100%);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.mark {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: "Manrope", sans-serif;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.nav-cta {
  background: var(--accent);
  color: var(--mist);
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  align-self: center;
}

.nav-contact {
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
}

main {
  padding: 0 8vw 8vw;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(260px, 0.9fr);
  gap: 24px;
  padding: 40px 0 70px;
  align-items: start;
}

.hero-right {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-self: start;
  max-width: 420px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.6rem);
  line-height: 1.2;
  margin-bottom: 18px;
  padding-bottom: 6px;
}

.hero-copy h1 {
  background: linear-gradient(120deg, #0b1526 0%, #1f3b7a 55%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: name-rise 900ms ease-out 120ms both;
}

h1 span {
  display: block;
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: rgba(13, 13, 15, 0.7);
  margin-top: 12px;
}

.lead {
  font-size: 1.3rem;
  max-width: 560px;
  margin-bottom: 22px;
}

.lead-strong {
  font-size: 1.36rem;
}

.hero-copy .lead-strong:last-of-type {
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  margin-bottom: 18px;
}

.hero-copy .eyebrow {
  animation: name-rise 900ms ease-out both;
}

.hero-copy .lead-strong {
  animation: fade-up 900ms ease-out both;
}

.hero-copy .lead-strong:nth-of-type(1) {
  animation-delay: 120ms;
}

.hero-copy .lead-strong:nth-of-type(2) {
  animation-delay: 240ms;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--mist);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.35);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.6px solid var(--ink);
  box-shadow: none;
}

.meta {
  font-size: 1.26rem;
  color: rgba(13, 13, 15, 0.6);
  margin-bottom: 18px;
}

.hero-card {
  background: var(--mist);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px var(--shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
  animation: fade-up 900ms ease-out 260ms both;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -30% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35), transparent 70%);
}

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

.label {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-card li::before {
  content: "↗";
  color: var(--accent-deep);
  margin-right: 8px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.pill-row span {
  border: 1px solid rgba(13, 13, 15, 0.2);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.section {
  padding: 70px 0;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 30px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-title p {
  color: rgba(13, 13, 15, 0.7);
}

.timeline,
.grid,
.skills {
  display: grid;
  gap: 22px;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 36px;
}

.publications-block {
  margin-top: 24px;
}

.subsection-title {
  font-size: 0.95rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(13, 13, 15, 0.6);
  margin: 10px 0 18px;
}

.education-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  max-width: 100%;
}

.education-card {
  display: grid;
  gap: 6px;
}

.edu-rows {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.edu-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.edu-row .degree-title {
  margin: 0;
}

.edu-row .degree-meta {
  margin: 0;
}

.degree-meta-left {
  font-weight: 400;
  color: rgba(13, 13, 15, 0.6);
}

.school-row {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 6px;
  flex-wrap: nowrap;
}

.education-card .school-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.education-card .school-meta {
  font-size: 1.25rem;
  color: rgba(13, 13, 15, 0.6);
  white-space: nowrap;
}

.education-card .degree-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
}

.education-card .degree-meta {
  font-weight: 500;
  font-size: 1.05rem;
  color: rgba(13, 13, 15, 0.6);
}

.card {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: 0 18px 40px var(--shadow);
}

.card-header {
  margin-bottom: 14px;
}

.header-row {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 6px;
  flex-wrap: nowrap;
}

.card-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0;
}

.card-header span {
  font-size: 0.9rem;
  color: rgba(13, 13, 15, 0.65);
}

.project-meta {
  font-size: 1.25rem;
  color: rgba(13, 13, 15, 0.6);
  margin-top: 4px;
}

.role-location {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(13, 13, 15, 0.6);
  white-space: nowrap;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.project-media {
  margin-top: 14px;
}

.project-video {
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  border: 1px solid rgba(13, 13, 15, 0.12);
  box-shadow: 0 12px 30px rgba(13, 13, 15, 0.12);
  background: #000;
}

.project-image {
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  border: 1px solid rgba(13, 13, 15, 0.12);
  box-shadow: 0 12px 30px rgba(13, 13, 15, 0.12);
  display: block;
}

.card li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.card li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.card.highlight {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(147, 197, 253, 0.2));
}

.card.highlight p {
  margin-top: 8px;
}

.card .small {
  font-size: 0.9rem;
  color: rgba(13, 13, 15, 0.7);
}

.skills {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--accent);
  color: var(--mist);
  padding: 40px;
  border-radius: calc(var(--radius) + 6px);
}

.cta .button {
  background: var(--mist);
  color: var(--accent);
  box-shadow: none;
}

footer {
  padding: 40px 8vw 60px;
  font-size: 0.85rem;
  color: rgba(13, 13, 15, 0.6);
}

.hero-photo {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.hero-photo img {
  width: min(320px, 72vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.2);
  border: 2px solid rgba(37, 99, 235, 0.3);
  background: #e6effc;
  animation: fade-up 900ms ease-out 180ms both;
}

.hero-photo figcaption {
  font-size: 0.85rem;
  color: rgba(13, 13, 15, 0.6);
  letter-spacing: 0.3px;
}

.hero-photo.missing::after {
  content: "Add HEADSHOT.png.JPG to this folder";
  display: block;
  font-size: 0.9rem;
  color: rgba(13, 13, 15, 0.6);
  padding: 18px 10px 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav {
    padding: 20px 6vw 0;
  }

  main {
    padding: 0 6vw 10vw;
  }

  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 30px;
  }

  .cta {
    padding: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes name-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.contact-menu {
  position: relative;
}

.contact-menu summary {
  list-style: none;
  display: inline-flex;
}

.contact-menu summary::-webkit-details-marker {
  display: none;
}

.contact-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--mist);
  border: 1px solid rgba(13, 13, 15, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 40px var(--shadow);
  padding: 12px;
  min-width: 240px;
  display: grid;
  gap: 8px;
  z-index: 20;
}

.contact-popover a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-popover a:hover {
  color: var(--accent);
}

.pub-links {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pub-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.pub-links a:hover {
  border-color: rgba(37, 99, 235, 0.7);
  background: rgba(37, 99, 235, 0.2);
}
