:root {
  --bg: #091113;
  --bg-soft: #0d1719;
  --surface: #0f1b1d;
  --text: #f2f4f2;
  --muted: #aab7b5;
  --quiet: #778886;
  --line: rgba(212, 229, 226, 0.16);
  --accent: #69d6c8;
  --accent-strong: #8ee7dc;
  --max: 1240px;
  --gutter: clamp(22px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.shell { width: min(var(--max), calc(100% - (var(--gutter) * 2))); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--text); color: var(--bg); padding: 10px 14px; }
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.wordmark { font-weight: 700; text-decoration: none; letter-spacing: -0.02em; font-size: 18px; }
.nav { display: flex; gap: 30px; }
.nav a, .header-action { text-decoration: none; color: var(--muted); font-size: 14px; }
.nav a:hover, .nav a:focus-visible, .header-action:hover, .header-action:focus-visible { color: var(--text); }
.header-action { justify-self: end; border-bottom: 1px solid var(--accent); padding-bottom: 3px; color: var(--text); }

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(56px, 8vw, 120px);
  align-items: center;
  padding-block: clamp(72px, 10vw, 140px);
}
.hero-label, .section-index, .eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}
.hero h1 {
  margin: 0;
  font-size: clamp(72px, 10.4vw, 148px);
  line-height: 0.84;
  letter-spacing: -0.07em;
  font-weight: 690;
}
.hero-focus { margin: 32px 0 0; font-size: clamp(21px, 2.2vw, 30px); letter-spacing: -0.025em; color: #d8e0de; }
.hero-intro { max-width: 690px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 1.45vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--line); font-weight: 650; font-size: 14px; transition: 180ms ease; }
.button-primary { background: var(--accent); color: #071112; border-color: var(--accent); }
.button-primary:hover { background: var(--accent-strong); transform: translateY(-2px); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }

.hero-system { align-self: stretch; min-height: 520px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; padding-left: clamp(24px, 4vw, 58px); }
.system-heading { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .15em; }
.system-map { position: relative; height: 430px; margin-top: 18px; }
.system-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.system-map path { stroke: rgba(105,214,200,.46); stroke-width: 1.1; fill: none; }
.node { position: absolute; display: inline-block; padding: 6px 9px; background: var(--bg); border: 1px solid rgba(105,214,200,.45); color: #d9ece9; font-size: 13px; white-space: nowrap; }
.n1 { left: 0; top: 48px; }
.n2 { right: 6px; top: 52px; }
.n3 { left: 50%; transform: translateX(-50%); top: 165px; color: var(--accent-strong); border-color: var(--accent); }
.n4 { left: 6px; top: 310px; }
.n5 { right: 22px; top: 310px; }
.system-note { max-width: 390px; color: var(--quiet); font-size: 14px; margin: 6px 0 0; }

.section { padding-block: clamp(90px, 10vw, 150px); }
.section-band { padding-block: clamp(90px, 10vw, 150px); background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-title-row { display: grid; grid-template-columns: .42fr 1.58fr; gap: clamp(30px, 6vw, 90px); align-items: start; margin-bottom: 52px; }
.section-title-row h2, .about-grid h2, .contact-grid h2 { margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: 1.04; letter-spacing: -0.05em; font-weight: 620; }

.about-grid, .contact-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(40px, 8vw, 120px); }
.about-copy > p { font-size: clamp(18px, 1.65vw, 23px); color: #cbd5d3; margin: 0 0 22px; max-width: 760px; }
.facts { margin: 54px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--quiet); }
.facts dd { margin: 0; }
.facts span { color: var(--muted); }

.experience-row { display: grid; grid-template-columns: .42fr 1.58fr; gap: clamp(30px, 6vw, 90px); border-top: 1px solid var(--line); padding-top: 34px; }
.experience-meta p { margin: 0 0 8px; color: var(--muted); }
.experience-main h3 { margin: 0; font-size: clamp(30px, 3.2vw, 45px); letter-spacing: -0.035em; }
.org { color: var(--accent); margin: 8px 0 28px; font-size: 17px; }
.experience-main ul { padding-left: 20px; margin: 0; display: grid; gap: 14px; color: #c2cecc; max-width: 900px; }

.project-list { border-top: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: 80px .7fr 1.3fr; gap: clamp(24px, 4vw, 72px); padding: 34px 0 38px; border-bottom: 1px solid var(--line); align-items: start; }
.project-number { color: var(--accent); font-size: 13px; letter-spacing: .12em; }
.project-title h3 { margin: 0; font-size: clamp(24px, 2.8vw, 38px); letter-spacing: -0.035em; line-height: 1.1; }
.project-title p { margin: 12px 0 0; color: var(--quiet); }
.project-copy p { margin: 0; color: #c1cdca; font-size: 17px; }
.project-tech { margin-top: 18px !important; color: var(--accent) !important; font-size: 13px !important; letter-spacing: .03em; }

.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); padding-top: 34px; }
.skill-group h3 { margin: 0 0 22px; font-size: 19px; color: var(--accent-strong); }
.skill-group p { margin: 0; padding: 9px 0; border-bottom: 1px solid rgba(212,229,226,.1); color: #c6d1cf; }

.contact-grid { align-items: start; }
.contact-copy > p { color: var(--muted); font-size: 18px; max-width: 580px; margin: 0 0 30px; }
.contact-link { display: flex; justify-content: space-between; gap: 30px; text-decoration: none; font-size: clamp(22px, 2.5vw, 34px); border-top: 1px solid var(--line); padding: 20px 0; transition: 160ms ease; }
.contact-link:last-child { border-bottom: 1px solid var(--line); }
.contact-link:hover { color: var(--accent-strong); padding-left: 8px; }

.footer { padding: 28px 0 38px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; color: var(--quiet); font-size: 13px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--muted); text-decoration: none; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 68px; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-system { min-height: auto; border-left: 0; border-top: 1px solid var(--line); padding: 34px 0 0; }
  .system-map { max-width: 560px; }
  .section-title-row, .experience-row, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: 50px 1fr; }
  .project-copy { grid-column: 2; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  :root { --gutter: 20px; }
  .header-action { font-size: 13px; }
  .hero { padding-top: 68px; }
  .hero h1 { font-size: clamp(64px, 22vw, 96px); }
  .hero-focus { font-size: 19px; }
  .hero-system { display: none; }
  .section, .section-band { padding-block: 76px; }
  .section-title-row { margin-bottom: 34px; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .project-row { grid-template-columns: 38px 1fr; gap: 12px; }
  .project-copy { grid-column: 1 / -1; margin-top: 12px; }
  .skills-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .contact-link { transition: none; }
}
