:root {
  color-scheme: dark;
  --bg: #0b0f19;
  --surface: #111827;
  --surface-strong: #162033;
  --panel: #0f172a;
  --border: #263449;
  --border-strong: #334155;
  --text: #e5edf8;
  --muted: #9aa8bd;
  --soft: #c7d2e3;
  --teal: #2dd4bf;
  --blue: #60a5fa;
  --amber: #f8c471;
  --rose: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(11, 15, 25, 1) 36rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(11, 15, 25, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border-strong);
  background: #121c2e;
  color: var(--teal);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.6rem);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  transition: color 160ms ease;
}

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

.section-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 5rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(3.6rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.25;
}

.hero-title {
  margin-bottom: 1.2rem;
  color: var(--blue);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 700;
}

.hero-text {
  max-width: 760px;
  margin-bottom: 1.25rem;
  color: var(--text);
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  line-height: 1.22;
  font-weight: 700;
}

.hero-summary {
  max-width: 760px;
  color: var(--soft);
  font-size: 1.05rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.8rem;
  padding: 0.72rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button svg,
.repo-link svg,
.card-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

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

.button.secondary {
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}

.hero-panel {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 32, 51, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow);
}

.profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--panel);
}

.signal-grid {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0;
}

.signal-grid > div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(11, 15, 25, 0.56);
}

.metric {
  color: var(--amber);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.9rem;
  font-weight: 700;
}

.metric-label {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.status-strip span {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 8px;
  color: var(--teal);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
}

.standards-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  width: min(1180px, calc(100% - 2rem));
  margin: -2.5rem auto 0;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
}

.standards-band span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.32rem 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 6px;
  color: var(--soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.15;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.competency-grid,
.credential-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.competency-card,
.project-card,
.credential-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
}

.competency-card {
  padding: 1.25rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 8px;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.08);
}

.competency-card h3,
.timeline-content h3 {
  margin-bottom: 0.55rem;
}

.competency-card p,
.project-card p,
.timeline-content li,
.credential-card p {
  color: var(--muted);
}

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

.project-card {
  padding: clamp(1.25rem, 3vw, 1.6rem);
}

.project-card.featured {
  grid-column: span 3;
  background:
    linear-gradient(180deg, rgba(22, 32, 51, 0.94), rgba(15, 23, 42, 0.92));
}

.project-card.placeholder {
  grid-column: span 2;
  border-style: dashed;
  background: rgba(17, 24, 39, 0.52);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-kicker {
  color: var(--amber);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.repo-link {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
}

.repo-link:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.project-purpose {
  color: var(--soft) !important;
  font-size: 1.05rem;
}

.project-body {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

.project-body h4 {
  margin-bottom: 0.3rem;
  color: var(--text);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-section {
  padding-top: 3rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.64);
}

.timeline-date {
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  font-weight: 700;
}

.company {
  margin-bottom: 0.9rem;
  color: var(--teal);
  font-weight: 700;
}

.timeline-content ul {
  margin: 0;
  padding-left: 1.1rem;
}

.timeline-content li + li {
  margin-top: 0.45rem;
}

.credentials-section {
  padding-top: 2rem;
}

.credential-card {
  padding: 1rem;
}

.credential-card span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--amber);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
}

.credential-card strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.credential-card p {
  margin-bottom: 0;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(96, 165, 250, 0.10)),
    var(--surface);
}

.contact-band h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero,
  .timeline-item,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .competency-grid,
  .credential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card.featured,
  .project-card.placeholder {
    grid-column: span 6;
  }

  .timeline-item {
    display: block;
  }

  .timeline-date {
    margin-bottom: 0.75rem;
  }

  .contact-band {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 1rem;
  }

  .section-shell {
    width: min(100% - 1rem, 1180px);
    padding-block: 3.25rem;
  }

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

  .competency-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .signal-grid > div {
    grid-template-columns: 1fr;
  }

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