:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #61615d;
  --paper: #f7f6f1;
  --white: #ffffff;
  --line: #d8d7d0;
  --forest: #163c33;
  --deep: #091f1b;
  --blue: #1d5fd0;
  --coral: #d95f43;
  --mint: #dce9df;
  --sky: #e5edfb;
  --gold: #f0c66d;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

h1,
h2,
h3,
.brand {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
}

ul {
  margin: 0;
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.55rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--white);
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 20;
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: 80px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transform: translateX(-50%);
  color: var(--white);
}

.brand {
  font-size: 1.02rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a,
.header-resume {
  position: relative;
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: currentColor;
  content: "";
  transition: transform 160ms ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.header-resume {
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 0.62rem 0.8rem;
}

.hero {
  position: relative;
  display: flex;
  min-height: 78vh;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--forest);
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 78% 42%, rgba(240, 198, 109, 0.14), transparent 20rem),
    linear-gradient(90deg, rgba(7, 22, 19, 0.98) 0%, rgba(7, 22, 19, 0.92) 58%, rgba(7, 22, 19, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8rem 0 5.25rem;
}

.hero-portrait {
  position: absolute;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 0;
  z-index: 1;
  width: min(31vw, 420px);
  min-width: 310px;
  margin: 0;
}

.hero-portrait::before {
  position: absolute;
  inset: -7% -7% 0;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  content: "";
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.04) saturate(1.02);
}

.eyebrow,
.section-label,
.project-meta,
.year {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  color: #d8ebe3;
}

.eyebrow.dark {
  color: var(--forest);
}

h1 {
  max-width: 640px;
  margin-top: 0.85rem;
  font-size: clamp(3.5rem, 6.4vw, 5rem);
  line-height: 0.98;
  font-weight: 800;
}

.hero-lede {
  max-width: 620px;
  margin-top: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.hero-links,
.project-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions {
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0.72rem 1rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

.button-primary:hover {
  background: var(--mint);
}

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

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-links {
  gap: 1.25rem;
  margin-top: 2.1rem;
}

.hero-links a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 0.18rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 7rem 0;
}

.section-label {
  color: var(--coral);
}

.intro {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 2rem;
}

.intro-copy {
  max-width: 890px;
}

.intro-copy h2,
.skills-heading h2,
.section-header h2,
.contact h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  font-weight: 800;
}

.lead {
  max-width: 850px;
  margin-top: 1.7rem;
  color: var(--ink);
  font-size: clamp(1.12rem, 1.7vw, 1.4rem);
  line-height: 1.65;
}

.intro-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.intro-columns p,
.project-details p,
.contact-panel p,
.awards-band p,
.education-card p,
.timeline li,
.feature-list li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}

.skills-band {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 4rem;
  background: var(--mint);
  padding: 5.5rem max(20px, calc((100vw - 1180px) / 2));
}

.skills-heading {
  display: block;
}

.skills-heading h2 {
  margin-top: 0.7rem;
}

.awards-inner h2 {
  max-width: 610px;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.05;
  font-weight: 800;
}

.skills-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.skill-group {
  min-width: 0;
  border-top: 1px solid rgba(22, 60, 51, 0.25);
  padding-top: 1.1rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.skill-pill {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(22, 60, 51, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 0.72rem 0.8rem;
  color: var(--deep);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 0 10px 24px rgba(22, 60, 51, 0.08);
}

.skill-pill img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.skill-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--forest);
  color: var(--white);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.award-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.award-list article {
  min-height: 170px;
  background: var(--white);
  padding: 1.35rem;
}

.skill-group h3,
.award-list h3,
.project-details h3,
.timeline-item h3,
.education-card h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 800;
}

.skill-group h3 {
  font-size: 1rem;
}

.award-list p {
  margin-top: 0.5rem;
  line-height: 1.55;
}

.award-list p {
  color: var(--muted);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.text-link,
.project-links a,
.award-link,
.contact-links a,
.site-footer a {
  font-weight: 800;
  color: var(--blue);
}

.text-link {
  flex: 0 0 auto;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

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

.project-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0;
}

.project-image {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 250px;
  border: 1px solid var(--line);
  background: var(--white);
}

.project-image::after {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--white);
  color: var(--ink);
  content: "\2197";
  font-weight: 700;
}

.project-image img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  object-position: left top;
  transition: transform 220ms ease;
}

.project-image:hover img {
  transform: scale(1.018);
}

.project-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.project-meta {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  color: var(--coral);
}

.project-details h3 {
  margin-top: 0.8rem;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.1;
}

.project-details p {
  margin-top: 0.9rem;
}

.feature-list {
  margin-top: 1rem;
}

.stack {
  color: var(--forest) !important;
  font-size: 0.9rem;
  font-weight: 700;
}

.project-links {
  gap: 1rem;
  margin-top: 1.2rem;
}

.project-links a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

.award-link {
  display: inline-flex;
  margin-top: 1rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

.experience {
  padding-top: 3.5rem;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}

.year {
  color: var(--coral);
}

.organization {
  margin-top: 0.5rem;
  color: var(--muted);
  font-weight: 700;
}

.education {
  padding-top: 3.5rem;
}

.education-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.education-card {
  min-height: 220px;
  background: var(--white);
  padding: 1.6rem;
}

.education-card.accent {
  background: var(--sky);
}

.education-card h3 {
  margin-top: 1rem;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
}

.education-card p {
  margin-top: 0.75rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.stats span,
.coursework span {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.coursework {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.awards-band {
  background: var(--mint);
  border-top: 1px solid #bdd4c6;
  border-bottom: 1px solid #bdd4c6;
  padding: 5.5rem max(20px, calc((100vw - 1180px) / 2));
}

.awards-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.award-list {
  grid-template-columns: 1fr;
}

.award-list article {
  min-height: 130px;
}

.contact {
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: 3rem;
  align-items: start;
  margin: 0;
  background: var(--forest);
  color: var(--white);
  padding: 6rem max(20px, calc((100vw - 1180px) / 2));
}

.contact-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 1.2rem;
}

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

.contact-links {
  gap: 0.9rem 1.15rem;
  margin-top: 1.5rem;
}

.contact-links a {
  border-bottom: 1px solid currentColor;
  color: var(--white);
  padding-bottom: 0.15rem;
}

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.resume-page {
  background: #e9ece7;
  padding: 2rem;
}

.resume-sheet {
  width: min(900px, 100%);
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  color: #111111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.resume-header {
  border-bottom: 2px solid #111111;
  padding-bottom: 1rem;
  text-align: center;
}

.resume-header h1 {
  max-width: none;
  margin: 0;
  color: #111111;
  font-size: 2.6rem;
}

.resume-page section {
  margin-top: 1.35rem;
}

.resume-page h2 {
  border-bottom: 1px solid #111111;
  padding-bottom: 0.25rem;
  font-size: 1rem;
  text-transform: uppercase;
}

.resume-page h3 {
  margin-top: 0.65rem;
  font-size: 1rem;
}

.resume-page p,
.resume-page li {
  font-size: 0.92rem;
  line-height: 1.45;
}

.resume-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

@media print {
  .resume-page {
    background: var(--white);
    padding: 0;
  }

  .resume-sheet {
    width: 100%;
    box-shadow: none;
    padding: 0.35in;
  }
}

@media (max-width: 980px) {
  .intro,
  .skills-band,
  .project-row,
  .timeline-item,
  .education-grid,
  .awards-inner,
  .contact {
    grid-template-columns: 1fr;
  }

  .intro,
  .skills-band,
  .education-grid,
  .awards-inner,
  .contact {
    gap: 2rem;
  }

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

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(7, 22, 19, 0.94), rgba(7, 22, 19, 0.82));
  }

  .hero-portrait {
    right: -24px;
    width: 300px;
    min-width: 300px;
    opacity: 0.24;
  }

  .hero-portrait::before {
    display: none;
  }

  .project-image,
  .project-image img {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero-content,
  .section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 68px;
    grid-template-columns: 1fr auto;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding-bottom: 3.5rem;
  }

  .hero-portrait {
    display: none;
  }

  .hero-lede {
    max-width: 330px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.3rem);
  }

  .hero-actions,
  .contact-links {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 5rem 0;
  }

  .skills-band,
  .awards-band,
  .contact {
    padding: 4.5rem 16px;
  }

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

  .project-image,
  .project-image img {
    min-height: 180px;
  }

  .project-row {
    gap: 1.4rem;
  }

  .project-meta {
    flex-direction: column;
    gap: 0.35rem;
  }

  .contact-panel,
  .education-card,
  .award-list article {
    padding: 1.15rem;
  }

  .resume-page {
    padding: 0;
  }

  .resume-sheet {
    padding: 1.25rem;
  }

  .resume-row {
    flex-direction: column;
    gap: 0.3rem;
  }
}
