:root {
  --bg: #070707;
  --fg: #f7f3ef;
  --muted: #b7b2ab;
  --dim: #6f6b66;
  --line: #262626;
  --card: #121212;
  --card-hover: #171717;
  --primary: #8dff4a;
  --primary-ink: #070707;
  --max: 1080px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.eyebrow,
.meta,
.stat-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0;
}
.eyebrow.accent { color: var(--primary); }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.nav-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-transform: lowercase;
}
.nav-mark .mark {
  width: 1.45rem;
  height: 1.45rem;
  flex-shrink: 0;
  color: var(--primary);
  display: block;
}
.nav-mark:hover { color: var(--primary); text-decoration: none; }
.nav-mark:hover .mark { color: var(--fg); }

.nav-links {
  display: flex;
  gap: 1.35rem;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--fg); }

main {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

/* —— Hero (Augment-style centered) —— */
.hero {
  text-align: center;
  padding: 5.5rem 0 0;
  border-bottom: 0;
}

.hero .eyebrow {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.hero h1 {
  margin: 0 auto;
  max-width: none;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--fg);
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.lede {
  margin: 1.5rem auto 0;
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  display: grid;
  gap: 0.55rem;
}
.lede span { display: block; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.05rem;
  border: 0;
  border-radius: 0;
  background: var(--primary);
  color: var(--primary-ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: filter 0.15s ease;
}
.btn:hover {
  filter: brightness(1.08);
  text-decoration: none;
}
.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.text-cta {
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.text-cta:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Career path */
.career-path {
  list-style: none;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 3.5rem auto 0;
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.career-path::before {
  content: "";
  position: absolute;
  top: calc(2.75rem + 3px);
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  pointer-events: none;
}
.career-path li {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  max-width: none;
  min-width: 0;
  padding: 1.35rem 0.75rem 0;
  text-align: center;
}
.career-path li > a {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease;
}
.career-path li > a:hover {
  text-decoration: none;
  transform: translateY(-4px);
}
.career-path li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: var(--fg);
  box-shadow: 0 0 0 3px var(--bg);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.22s ease;
}
.career-path li::after { display: none; }
.career-path li.is-now::before {
  background: var(--primary);
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 6px color-mix(in srgb, var(--primary) 28%, transparent);
}
.career-path li:hover::before,
.career-path li:focus-within::before {
  background: var(--primary);
  transform: scale(1.2);
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 6px color-mix(in srgb, var(--primary) 28%, transparent);
}
.path-when {
  margin: 0 0 0.45rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.2s ease;
}
.path-who {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--fg);
  transition: color 0.2s ease;
}
.path-role {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  transition: color 0.2s ease;
}
.career-path li.is-now .path-who { color: var(--primary); }
.career-path li:hover .path-who,
.career-path li:focus-within .path-who { color: var(--primary); }
.career-path li:hover .path-when,
.career-path li:focus-within .path-when { color: var(--muted); }
.career-path li:hover .path-role,
.career-path li:focus-within .path-role { color: var(--fg); }

/* —— Sections —— */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: 0; }

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.5rem 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.split-head h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
}
.split-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  text-align: right;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.75rem 1.6rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.feature-card > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 52rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--card);
  padding: 1.4rem 1.3rem;
}
.card .stat {
  margin: 0 0 0.55rem;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* Jobs */
.jobs {
  border-top: 1px solid var(--line);
}
.job {
  border-bottom: 1px solid var(--line);
}
.job summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 8.5rem 1fr auto;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.25rem 0.1rem;
}
.job summary::-webkit-details-marker { display: none; }
.job summary:hover { background: color-mix(in srgb, var(--card) 80%, transparent); }
.job summary:focus-visible {
  outline: 1px solid var(--primary);
  outline-offset: 4px;
}
.job[open] .job-who strong { color: var(--primary); }

.job-when {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--dim);
  padding-top: 0.3rem;
}
.job-main {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.job-who {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: baseline;
}
.job-who strong {
  font-size: 1.05rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.job-who span {
  color: var(--dim);
  font-size: 0.9rem;
}
.job-blurb {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 42rem;
}
.job-chev {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--dim);
  border-bottom: 1.5px solid var(--dim);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
  margin-top: 0.45rem;
  margin-right: 0.25rem;
}
.job[open] .job-chev {
  transform: rotate(-135deg);
  border-color: var(--primary);
}

.job-panel {
  padding: 0 0 1.6rem;
  max-width: 46rem;
  margin-left: calc(8.5rem + 1.25rem);
  border-left: 2px solid var(--primary);
  padding-left: 1.15rem;
}
.job-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.job-panel ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.55rem;
}
.job-panel li strong { color: var(--fg); font-weight: 560; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.1rem 0 0;
}
.tags span {
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 0.25rem 0.5rem;
}

/* Builds */
.builds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.build {
  display: flex;
  flex-direction: column;
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.build:hover {
  background: var(--card-hover);
  text-decoration: none;
}
.build .media-frame,
.article .media-frame {
  position: relative;
  overflow: hidden;
  background: #0c0c0c;
}
.build .media-frame::after,
.article .media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 1;
}
.build:hover .media-frame::after,
.article:hover .media-frame::after {
  opacity: 1;
}
.build .media-frame {
  height: 160px;
  border-bottom: 1px solid var(--line);
}
.build .media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  transform-origin: center center;
}
.build:hover .media {
  transform: scale(1.04);
}
.build-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.3rem 1.25rem 1.4rem;
}
.build h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.build:hover h3 { color: var(--primary); }
.build-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

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

.stack {
  margin: 0;
  border-top: 1px solid var(--line);
}
.stack > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.stack dt {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
}
.stack dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.articles {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.article {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.article:hover {
  background: var(--card-hover);
  text-decoration: none;
}
.article .media-frame {
  min-height: 170px;
  border-right: 1px solid var(--line);
}
.article .media {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  transition: transform 0.5s ease;
  transform-origin: center center;
}
.article:hover .media {
  transform: scale(1.04);
}
.article-body { padding: 1.3rem 1.4rem; }
.article h3 {
  margin: 0.45rem 0 0.75rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  max-width: 30ch;
  color: var(--fg);
}
.article:hover h3 { color: var(--primary); }
.article p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 44rem;
}

.more-link { margin: 1.5rem 0 0; }

.contact {
  text-align: center;
  padding-bottom: 5.5rem;
}
.contact h2 {
  margin: 0.75rem auto 0;
  max-width: 18ch;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.contact .lede {
  margin-top: 1.25rem;
}
.contact .actions {
  margin-top: 1.75rem;
}

.footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.footer a { color: var(--dim); }
.footer a:hover { color: var(--primary); }

@media (max-width: 900px) {
  .career-path {
    padding-left: 0;
    padding-right: 0;
  }
  .career-path::before {
    left: 0;
    right: 0;
  }
  .split-head { grid-template-columns: 1fr; gap: 0.75rem; }
  .split-head p { text-align: left; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .metric-grid,
  .builds,
  .focus-grid { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; }
  .article .media-frame {
    min-height: 140px;
    height: 140px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .article .media {
    min-height: 140px;
    height: 140px;
  }
  .job summary {
    grid-template-columns: 1fr auto;
  }
  .job-when { grid-column: 1 / -1; }
  .job-panel { margin-left: 0; }
  .stack > div { grid-template-columns: 1fr; gap: 0.3rem; }
  .hero { padding-top: 3.5rem; }
  .career-path {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 20rem;
    padding: 2rem 0 2rem 0.25rem;
    text-align: left;
  }
  .career-path::before {
    top: 2.35rem;
    bottom: 2rem;
    left: 0.25rem;
    right: auto;
    width: 1px;
    height: auto;
  }
  .career-path li {
    max-width: none;
    padding: 0 0 1.25rem 1.35rem;
    text-align: left;
  }
  .career-path li:last-child { padding-bottom: 0; }
  .career-path li::before {
    top: 0.2rem;
    left: 0.25rem;
    margin-left: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .career-path li > a,
  .career-path li::before,
  .build .media,
  .article .media,
  .build .media-frame::after,
  .article .media-frame::after {
    transition: none;
  }
  .career-path li > a:hover {
    transform: none;
  }
  .build:hover .media,
  .article:hover .media {
    transform: none;
  }
}
