:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #58635f;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #d8ddd4;
  --teal: #0f766e;
  --teal-dark: #0b4f49;
  --rust: #b85c38;
  --amber: #d6a23f;
  --graphite: #202827;
  --shadow: 0 18px 45px rgba(23, 32, 29, 0.12);
  --max: 1160px;
}

* {
  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;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 245, 239, 0.86);
  border-bottom: 1px solid rgba(216, 221, 212, 0.7);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto auto;
  left: 0;
  padding: 14px clamp(18px, 4vw, 48px);
  position: fixed;
  right: 0;
  top: 0;
  transition: box-shadow 180ms ease, background 180ms ease;
  z-index: 20;
}

.site-header.is-elevated {
  background: rgba(247, 245, 239, 0.96);
  box-shadow: 0 12px 34px rgba(23, 32, 29, 0.09);
}

.brand,
.main-nav,
.hero-actions,
.contact-actions,
.site-footer {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--graphite);
  border-radius: 6px;
  color: var(--paper);
  display: inline-flex;
  font-size: 0.8rem;
  height: 34px;
  justify-content: center;
  letter-spacing: 0;
  width: 34px;
}

.main-nav {
  gap: 6px;
}

.main-nav a,
.header-action,
.text-link {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 690;
  padding: 8px 10px;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.is-active,
.text-link:hover {
  color: var(--teal-dark);
}

.header-action {
  background: var(--ink);
  color: var(--paper);
  padding-inline: 14px;
}

.hero {
  min-height: 88vh;
  overflow: hidden;
  padding: 160px clamp(18px, 5vw, 64px) 72px;
  position: relative;
}

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

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 16, 15, 0.88) 0%, rgba(10, 16, 15, 0.72) 42%, rgba(10, 16, 15, 0.08) 78%),
    linear-gradient(0deg, rgba(10, 16, 15, 0.65), rgba(10, 16, 15, 0.05) 48%);
  z-index: 1;
}

.hero-content {
  color: #fffaf0;
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  margin: 0 0 13px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0bd62;
}

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

h1 {
  font-size: clamp(3.1rem, 7vw, 6.6rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 24px;
  max-width: 820px;
}

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

h3 {
  font-size: 1.18rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-copy {
  color: rgba(255, 250, 240, 0.85);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 650px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 760;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  background: var(--teal);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
}

.contact-section .button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.snapshot {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.snapshot-item {
  background: var(--surface);
  min-height: 150px;
  padding: 32px clamp(20px, 4vw, 46px);
}

.snapshot-item strong,
.snapshot-item span {
  display: block;
}

.snapshot-item strong {
  color: var(--teal-dark);
  margin-bottom: 8px;
}

.snapshot-item span,
.impact-card p,
.project-row p,
.skill-group p,
.coursework p,
.contact-inner p {
  color: var(--muted);
}

.section {
  margin-inline: auto;
  max-width: var(--max);
  padding: 92px 24px;
}

.section-heading {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(190px, 0.45fr) 1fr;
  margin-bottom: 36px;
}

.section-heading.compact {
  max-width: 860px;
}

.work-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.impact-card,
.skill-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(23, 32, 29, 0.06);
  min-height: 238px;
  padding: 26px;
}

.feature-card {
  background: var(--graphite);
  color: var(--paper);
  grid-column: span 3;
  min-height: 245px;
}

.feature-card p,
.feature-card .date-range {
  color: rgba(247, 245, 239, 0.74);
}

.card-kicker,
.metric,
.date-range,
.tag {
  color: var(--rust);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.metric {
  color: var(--teal-dark);
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-row {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 0.52fr 1fr auto;
  padding: 28px 0;
}

.project-row p {
  margin-bottom: 0;
}

.project-meta {
  min-width: 0;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-links a {
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 760;
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
}

.tag {
  background: #e9f1e7;
  border: 1px solid #c8dccb;
  border-radius: 999px;
  color: #356044;
  margin: 0;
  padding: 7px 11px;
}

.skills-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.skill-group {
  min-height: 210px;
}

.coursework {
  background: #e8ece2;
  border-left: 6px solid var(--amber);
  padding: clamp(28px, 5vw, 54px);
}

.coursework h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin-bottom: 18px;
}

.contact-section {
  background: var(--graphite);
  color: var(--paper);
  padding: 80px 24px;
}

.contact-inner {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr auto;
  margin-inline: auto;
  max-width: var(--max);
}

.contact-inner h2 {
  max-width: 760px;
}

.contact-inner p {
  color: rgba(247, 245, 239, 0.72);
  max-width: 620px;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
  max-width: 360px;
}

.contact-actions .text-link {
  color: rgba(247, 245, 239, 0.76);
}

.site-footer {
  background: #111716;
  color: rgba(247, 245, 239, 0.76);
  gap: 18px;
  justify-content: center;
  padding: 24px;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 82vh;
    padding-top: 130px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(10, 16, 15, 0.9), rgba(10, 16, 15, 0.48));
  }

  .snapshot,
  .section-heading,
  .work-grid,
  .skills-grid,
  .project-row,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-column: auto;
  }

  .project-row {
    gap: 12px;
  }

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

@media (max-width: 560px) {
  .site-header {
    padding: 12px 14px;
  }

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

  .header-action {
    padding-inline: 11px;
  }

  .hero {
    min-height: 86vh;
    padding: 112px 18px 48px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(10, 16, 15, 0.92), rgba(10, 16, 15, 0.68));
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4rem);
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 68px 18px;
  }

  .snapshot-item {
    min-height: 0;
    padding: 24px 18px;
  }

  .impact-card,
  .skill-group {
    min-height: 0;
    padding: 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
