:root {
  color-scheme: light;
  --ink: #182022;
  --muted: #5d686a;
  --line: #d8e0df;
  --paper: #fbfcfa;
  --panel: #ffffff;
  --teal: #117c72;
  --teal-dark: #0b5851;
  --coral: #e96b4c;
  --mint: #dff5ef;
  --yellow: #f7c948;
  --shadow: 0 18px 48px rgba(24, 32, 34, 0.11);
}

* {
  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.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 224, 223, 0.78);
  background: rgba(251, 252, 250, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-weight: 900;
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--mint);
  color: var(--teal-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 9px;
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(310px, 0.78fr);
  gap: 42px;
  align-items: center;
  max-width: 1120px;
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 72px 24px 54px;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-copy,
.section-heading p,
.contact-panel p {
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

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

.button.secondary {
  border-color: var(--line);
  background: var(--panel);
}

.hero-visual {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1120px;
  margin: 0 auto 28px;
  padding: 0 24px;
}

.metrics article {
  min-height: 116px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.metrics strong {
  display: block;
  color: var(--coral);
  font-size: 2rem;
  line-height: 1;
}

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

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 82px 24px;
}

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

.section-heading.left {
  margin-bottom: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 750;
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover {
  border-color: var(--teal);
  background: var(--mint);
  color: var(--teal-dark);
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.project-card.is-hidden {
  display: none;
}

.project-body {
  padding: 20px;
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff0e8;
  color: #a9432e;
  font-size: 0.75rem;
  font-weight: 850;
}

.project-body p,
.skills-list p,
.timeline p,
.footer {
  color: var(--muted);
}

.project-body a {
  font-weight: 850;
  color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.split {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: 36px;
  align-items: start;
}

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

.skills-list article,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.skills-list article {
  padding: 22px;
}

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

.timeline article {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 20px;
}

.timeline span {
  color: var(--coral);
  font-weight: 900;
}

.contact-section {
  padding-bottom: 96px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.contact-focus {
  align-self: center;
  padding-left: 22px;
  border-left: 4px solid var(--coral);
}

.contact-focus span {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-focus strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.08;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(247, 201, 72, 0.7);
  outline-offset: 2px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 42px;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--teal);
  font-weight: 850;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero,
  .split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

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

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

@media (max-width: 540px) {
  .nav {
    padding: 0 16px;
  }

  .hero,
  .section,
  .metrics,
  .footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-actions,
  .footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-panel {
    padding: 22px;
  }
}
