:root {
  --ink: #14201c;
  --muted: #51605b;
  --soft: #eef3ef;
  --paper: #fffdf7;
  --line: #d9e2dc;
  --blue: #2458d3;
  --green: #087f5b;
  --purple: #7c3aed;
  --amber: #b45309;
  --max: 1120px;
}

* {
  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(255, 253, 247, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 42px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 22px);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 60px);
  overflow: hidden;
  position: relative;
}

#system-map {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero::after {
  background: rgba(255, 253, 247, 0.72);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
  padding: clamp(56px, 8vh, 92px) clamp(18px, 4vw, 42px) 52px;
  position: relative;
  width: min(100%, var(--max));
  z-index: 1;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(40px, 7.6vw, 84px);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 22px;
  max-width: 960px;
}

.hero-copy {
  color: #283b34;
  font-size: clamp(17px, 2vw, 22px);
  max-width: 780px;
}

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

.button {
  align-items: center;
  border: 1px solid #9aa9a0;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

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

.signal-row {
  border-top: 1px solid rgba(20, 32, 28, 0.22);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin: clamp(34px, 7vh, 72px) 0 0;
  padding-top: 18px;
}

.signal-row div {
  min-width: 0;
}

.signal-row dt {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-row dd {
  color: var(--muted);
  margin: 4px 0 0;
}

.section {
  margin: 0 auto;
  padding: clamp(58px, 9vw, 96px) clamp(18px, 4vw, 42px);
  width: min(100%, var(--max));
}

.section-heading {
  max-width: 720px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 20px;
}

.intro {
  display: grid;
  gap: 36px;
  grid-template-columns: 0.9fr 1.1fr;
}

.intro-body {
  color: var(--muted);
  font-size: 18px;
}

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

.project-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.project-card h3 {
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.project-card p {
  color: var(--muted);
  margin-bottom: 16px;
  min-height: 132px;
}

.project-card a {
  font-weight: 850;
  text-decoration-color: transparent;
}

.project-card a:hover {
  text-decoration-color: currentColor;
}

.project-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.project-label,
.project-stack {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  padding: 5px 9px;
}

.project-stack {
  background: var(--soft);
  color: var(--muted);
}

.project-evidence {
  color: #35443f;
  display: grid;
  gap: 6px;
  list-style-position: outside;
  margin: 0 0 20px;
  min-height: 96px;
  padding-left: 18px;
}

.project-evidence li::marker {
  color: var(--green);
}

.accent-blue .project-label {
  background: #e9efff;
  color: var(--blue);
}

.accent-green .project-label {
  background: #e5f7ee;
  color: var(--green);
}

.accent-purple .project-label {
  background: #f0e8ff;
  color: var(--purple);
}

.split {
  display: grid;
  gap: 34px;
  grid-template-columns: 0.78fr 1.22fr;
}

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

.focus-list article,
.timeline article {
  border-left: 4px solid var(--green);
  padding: 2px 0 4px 18px;
}

.focus-list h3,
.timeline h3 {
  margin-bottom: 6px;
}

.focus-list p,
.timeline p {
  color: var(--muted);
  margin-bottom: 0;
}

.proof {
  background: var(--soft);
  max-width: none;
  width: 100%;
}

.proof > * {
  margin-left: auto;
  margin-right: auto;
  width: min(100%, var(--max));
}

.timeline {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
}

.date {
  color: var(--amber);
  display: inline-block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

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

.resume-link {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  min-height: 132px;
  padding: 20px;
  text-decoration: none;
}

.resume-link span {
  display: block;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.15;
}

.resume-link small {
  color: var(--muted);
  display: block;
  font-size: 14px;
  margin-top: 12px;
}

.resume-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.resume-actions a {
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 850;
  padding: 7px 10px;
  text-decoration: none;
}

.resume-actions a:last-child {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.resume-link:hover,
.project-card:hover {
  border-color: #9fb0a7;
  box-shadow: 0 12px 36px rgba(29, 42, 36, 0.08);
}

.contact-band {
  align-items: center;
  background: #f4eadb;
  border-top: 1px solid #ddcfbd;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr auto;
  padding: clamp(42px, 7vw, 70px) clamp(18px, 4vw, 42px);
}

.contact-band > div:first-child {
  max-width: 720px;
}

.contact-band h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  margin-bottom: 12px;
}

.contact-band p {
  color: #5c5144;
  font-size: 17px;
  margin-bottom: 0;
}

.footer {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 10px;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 42px);
}

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

  .nav-links {
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  .signal-row,
  .intro,
  .project-grid,
  .split,
  .timeline,
  .resume-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 520px) {
  .brand {
    font-size: 15px;
  }

  .nav-links {
    font-size: 13px;
  }

  .button {
    justify-content: center;
    width: 100%;
  }

  .project-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
