:root {
  --ink: #102428;
  --muted: #5a6c70;
  --paper: #f8fbf9;
  --white: #ffffff;
  --teal: #087c7f;
  --teal-dark: #05363d;
  --coral: #ff6f61;
  --lemon: #f4c95d;
  --line: rgba(16, 36, 40, 0.12);
  --shadow: 0 24px 70px rgba(5, 54, 61, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(3, 25, 31, 0.72), rgba(3, 25, 31, 0));
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
}

.nav-links {
  gap: clamp(14px, 2.5vw, 32px);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.86;
}

.nav-links a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 120px clamp(20px, 6vw, 80px) 80px;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(1, 24, 30, 0.92) 0%, rgba(1, 24, 30, 0.68) 42%, rgba(1, 24, 30, 0.1) 100%),
    linear-gradient(0deg, rgba(248, 251, 249, 1) 0%, rgba(248, 251, 249, 0) 24%);
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: 0;
  white-space: nowrap;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

h4 {
  margin: 0 0 8px;
  font-size: 1.03rem;
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

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

.button.primary {
  color: #082d36;
  background: var(--lemon);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.button:hover,
footer a:hover {
  transform: translateY(-1px);
}

.intro-band {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: -68px auto 0;
  padding: 0 clamp(16px, 4vw, 28px);
}

.metric {
  min-height: 136px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.metric strong {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 1.4rem;
}

.metric span {
  color: var(--muted);
  font-weight: 650;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(82px, 10vw, 128px) clamp(20px, 4vw, 28px) 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 72px);
}

.rich-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.rich-copy p {
  margin-top: 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.04rem;
}

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

.skills-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.focus-card,
.credential-card,
.role-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.focus-card {
  padding: 28px;
}

.card-index {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--teal);
  font-weight: 800;
}

.focus-card p,
.credential-card p,
.role-card p,
.contact-section p {
  color: var(--muted);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(8, 124, 127, 0.1);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.button.small {
  min-height: 38px;
  padding: 8px 10px;
  border-color: var(--line);
  color: var(--teal-dark);
  background: transparent;
  font-size: 0.8rem;
}

.button.small:hover {
  background: rgba(8, 124, 127, 0.08);
}

.education-section,
.virtual-section {
  max-width: none;
  background: #eaf4f1;
  margin-top: 104px;
  padding-bottom: 112px;
}

.education-section > *,
.virtual-section > * {
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.credential-list {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
}

.credential-card {
  padding: 26px;
}

.credential-card.featured {
  grid-row: span 2;
  color: var(--white);
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.credential-card.featured p,
.credential-card.featured li {
  color: rgba(255, 255, 255, 0.78);
}

.credential-card.featured .credential-date,
.credential-card.featured .credential-place {
  color: var(--lemon);
}

.credential-date {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.credential-place {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 750;
}

.credential-card ul,
.role-card ul {
  margin: 16px 0 0;
  padding-left: 19px;
  color: var(--muted);
}

.credential-card li,
.role-card li {
  margin: 8px 0;
}

.year-stack {
  display: grid;
  gap: 34px;
}

.year-stack.compact {
  gap: 26px;
}

.year-group {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.year-group > h3 {
  position: sticky;
  top: 86px;
  margin: 0;
  color: var(--teal);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1;
}

.role-list {
  display: grid;
  gap: 14px;
}

.role-card {
  padding: 24px;
  box-shadow: 0 14px 42px rgba(5, 54, 61, 0.06);
}

.role-card p:last-child,
.credential-card p:last-child {
  margin-bottom: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  max-width: 1120px;
  margin: 108px auto 0;
  padding: 44px clamp(20px, 4vw, 40px);
  color: var(--white);
  background: var(--teal-dark);
}

.contact-section p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px clamp(20px, 4vw, 28px);
  color: var(--muted);
  font-weight: 650;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    padding: 14px 18px;
  }

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

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 86vh;
    padding: 100px 20px 70px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(1, 24, 30, 0.9), rgba(1, 24, 30, 0.55)),
      linear-gradient(0deg, rgba(248, 251, 249, 1) 0%, rgba(248, 251, 249, 0) 22%);
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
    white-space: normal;
  }

  .intro-band,
  .two-column,
  .focus-grid,
  .credential-list,
  .year-group,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .intro-band {
    margin-top: -36px;
  }

  .metric {
    min-height: 112px;
  }

  .education-section,
  .virtual-section {
    margin-top: 72px;
  }

  .credential-card.featured {
    grid-row: auto;
  }

  .year-group > h3 {
    position: static;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  footer {
    flex-direction: column;
  }
}

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

  .button {
    width: 100%;
  }
}
