:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #5b6862;
  --paper: #f8f5ef;
  --panel: #ffffff;
  --line: #d8ded5;
  --green: #1f6b4a;
  --green-dark: #124733;
  --coral: #c95f46;
  --gold: #c69b35;
  --blue: #2f6f9f;
  --shadow: 0 18px 48px rgba(23, 32, 28, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(248, 245, 239, 0.92);
  border-bottom: 1px solid rgba(216, 222, 213, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 50%;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a,
.project-body a,
.contact-links a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 245, 239, 0.72) 0%, rgba(248, 245, 239, 0.52) 40%, rgba(248, 245, 239, 0.88) 100%),
    url("assets/hero-data-viz.png"),
    #eef2e9;
  background-position: center;
  background-size: cover;
}

#modelCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: clamp(72px, 11vw, 150px) clamp(20px, 7vw, 96px);
}

.hero-profile {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: end;
  width: min(360px, calc(100% - 40px));
  margin: 0 clamp(20px, 5vw, 72px) clamp(28px, 5vw, 72px) 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(216, 222, 213, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-profile img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
}

.hero-profile p,
.hero-profile span {
  display: block;
  margin: 0;
}

.hero-profile p {
  font-weight: 900;
  line-height: 1.25;
}

.hero-profile span {
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0;
}

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

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-summary {
  max-width: 690px;
  margin: 28px 0 0;
  color: #34413b;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--green-dark);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--green-dark);
}

.button.secondary {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.6);
}

.section {
  padding: clamp(56px, 8vw, 110px) clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.section-heading,
.intro-grid,
.two-column,
.contact-section,
.resume-summary,
.compact-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.intro-grid p,
.contact-section p,
.compact-section p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
}

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

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

.fit-grid article {
  min-height: 230px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 430px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-metric {
  min-height: 150px;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 71, 51, 0.94), rgba(47, 111, 159, 0.86)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 34px);
}

.project-metric span {
  display: block;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
}

.project-metric small {
  display: block;
  margin-top: 10px;
  font-weight: 700;
}

.project-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.project-body p,
.timeline p,
.skills-grid p,
.fit-grid p,
.resume-roles p,
.resume-roles li,
.summary-stack p,
.evidence-grid p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 22px;
  padding: 22px 0 0;
  list-style: none;
}

.tag-list li {
  padding: 5px 9px;
  background: #edf3ee;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  padding: 0 0 24px 24px;
  border-left: 3px solid var(--gold);
}

.timeline span,
.resume-roles span {
  color: var(--coral);
  font-size: 0.9rem;
  font-weight: 800;
}

.skills-band {
  background: #eef3ef;
}

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

.skills-grid div {
  min-height: 190px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-links {
  display: grid;
  gap: 12px;
  justify-items: start;
  font-size: 1.18rem;
  font-weight: 800;
}

.resume-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(60px, 8vw, 120px) clamp(20px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(248, 245, 239, 0.86), rgba(248, 245, 239, 0.64)),
    url("assets/hero-data-viz.png");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.resume-hero-copy {
  max-width: 850px;
}

.resume-hero-copy p {
  max-width: 760px;
  color: #34413b;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.portrait-panel {
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portrait-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.portrait-panel figcaption {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.portrait-panel span {
  color: var(--muted);
}

.summary-stack {
  display: grid;
  gap: 18px;
}

.summary-stack p {
  margin: 0;
  font-size: 1.08rem;
}

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

.evidence-grid article {
  min-height: 270px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.evidence-grid span {
  display: block;
  margin-bottom: 26px;
  color: var(--coral);
  font-weight: 900;
}

.resume-roles {
  display: grid;
  gap: 28px;
}

.resume-roles article {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.resume-roles article:last-child {
  border-bottom: 0;
}

.role-company {
  margin: 0 0 12px;
  font-weight: 800;
}

.resume-roles ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.site-footer {
  padding: 24px clamp(20px, 4vw, 56px);
  color: var(--muted);
}

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

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 760px;
  }

  .hero-copy {
    padding-top: 92px;
  }

  .hero-profile {
    justify-self: start;
    align-self: end;
    margin-left: 20px;
  }

  .section-heading,
  .intro-grid,
  .two-column,
  .contact-section,
  .resume-hero,
  .resume-summary,
  .compact-section {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .skills-grid,
  .evidence-grid,
  .fit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  .brand {
    flex: 0 0 auto;
  }

  .nav-links {
    gap: 8px 14px;
    font-size: 0.88rem;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .button {
    width: 100%;
  }

  .project-card {
    min-height: 0;
  }

  .hero-profile {
    width: calc(100% - 40px);
    grid-template-columns: 72px 1fr;
  }

  .hero-profile img {
    width: 72px;
    height: 72px;
  }
}
