:root {
  --ink: #17201c;
  --muted: #5d6a63;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #d9ddd3;
  --green: #2f6f4e;
  --green-dark: #1f4d38;
  --gold: #b68532;
  --red: #b55445;
  --blue: #315b87;
  --shadow: 0 20px 70px rgba(23, 32, 28, 0.12);
}

* {
  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;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 221, 211, 0.72);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

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

nav a:hover,
.contact-links a:hover,
.project-card a:hover {
  color: var(--green);
}

.section-band,
.section,
.stats,
footer {
  padding-inline: clamp(20px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding-top: 54px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(3.5rem, 10vw, 8.2rem);
  line-height: 0.88;
  font-weight: 900;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.2vw, 4.6rem);
  line-height: 1;
  font-weight: 850;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
  line-height: 1.2;
}

.intro {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

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

.button,
.contact-links a,
.project-card a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 750;
}

.button {
  padding: 0 18px;
  border: 1px solid var(--ink);
}

.button.primary {
  color: #ffffff;
  background: var(--ink);
}

.button.secondary {
  background: transparent;
}

.hero-panel {
  display: grid;
  gap: 24px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.avatar {
  width: min(100%, 300px);
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.panel-label {
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 850;
}

.panel-title {
  margin-bottom: 8px;
  font-size: 1.5rem;
  font-weight: 850;
  line-height: 1.18;
}

.panel-text,
.project-card p,
.timeline p,
.skill-groups p {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.stats div {
  min-height: 136px;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding-top: clamp(70px, 10vw, 126px);
  padding-bottom: clamp(70px, 10vw, 126px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: clamp(28px, 5vw, 54px);
}

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

.project-card,
.timeline article,
.skill-groups article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.project-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 26px;
}

.project-card.featured {
  grid-column: span 2;
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.card-topline span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-card ul {
  margin: 6px 0 20px;
  padding-left: 19px;
  color: var(--muted);
}

.project-card a {
  align-self: flex-start;
  margin-top: auto;
  color: var(--green-dark);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(24px, 6vw, 80px);
}

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

.timeline article {
  padding: 24px;
}

.timeline span {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-weight: 850;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.skill-groups article {
  min-height: 230px;
  padding: 24px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: clamp(26px, 6vw, 72px);
  align-items: start;
  padding-top: clamp(66px, 10vw, 110px);
  padding-bottom: clamp(66px, 10vw, 110px);
  color: #ffffff;
  background: var(--ink);
}

.contact .eyebrow,
.contact-links a:hover {
  color: #9fd7b6;
}

.contact h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

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

.contact-links a {
  justify-content: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  padding-bottom: 24px;
  color: var(--muted);
}

.back-to-top {
  border: 0;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .stats,
  .skill-groups {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5.4rem);
  }

  .stats,
  .project-grid,
  .skill-groups {
    grid-template-columns: 1fr;
  }

  .stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats div:last-child {
    border-bottom: 0;
  }

  .project-card.featured {
    grid-column: auto;
  }

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

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