:root {
  color-scheme: dark;
  --bg: #05070b;
  --surface: #0b101a;
  --surface-2: #101827;
  --ink: #f8fbff;
  --muted: #aab7ca;
  --line: rgba(255, 255, 255, 0.14);
  --blue: #2f6fff;
  --blue-soft: #78a6ff;
  --white: #ffffff;
  --black: #020408;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(47, 111, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 84% 18%, rgba(120, 166, 255, 0.12), transparent 28rem),
    var(--bg);
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 72px;
  border-bottom: 1px solid var(--line);
}

.brand,
.nav-links {
  display: inline-flex;
  align-items: center;
}

.brand {
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
}

.nav-links {
  gap: 28px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 72px;
  align-items: center;
  min-height: 420px;
  padding: 56px 72px 52px;
}

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

.hero h1 {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 4.6rem;
  font-weight: 780;
  line-height: 1.02;
  word-break: keep-all;
}

.slogan-line {
  display: block;
}

.blue,
.eyebrow {
  color: var(--blue-soft);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.lede,
.page-title p,
.project-card p,
.project-detail p,
.profile-lede,
.profile-card p,
.empty-state p,
.plain-section p,
.section-note {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-weight: 760;
}

.text-link {
  color: var(--blue-soft);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.index-panel,
.hero-panel,
.profile-facts {
  border-top: 2px solid var(--white);
}

.index-list,
.quick-list,
.profile-facts,
.feature-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-list a,
.quick-list a,
.profile-facts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.index-list span,
.quick-list span,
.profile-facts strong {
  font-weight: 780;
}

.index-list small,
.quick-list small,
.profile-facts span,
.profile-meta,
.section-note {
  color: var(--muted);
}

.projects,
.content-band {
  padding: 36px 72px 88px;
}

.section-head,
.profile-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-head h2,
.section-heading h2,
.section-heading.compact h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 2.2rem;
  line-height: 1.1;
}

.section-note {
  max-width: 420px;
  margin-bottom: 0;
  text-align: right;
}

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

.project-card,
.project-detail,
.profile-card,
.empty-state,
.plain-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 16, 26, 0.88);
}

.project-card {
  min-height: 260px;
  padding: 24px;
}

.project-card h3,
.project-detail h2,
.profile-card h3,
.empty-state h2,
.plain-section h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.35rem;
}

.feature-list {
  gap: 8px;
}

.feature-list li {
  color: var(--ink);
}

.page-shell,
.profile-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 28px 88px;
}

.page-title {
  margin-bottom: 36px;
}

.page-title h1,
.plain-section h1 {
  margin: 0;
  color: var(--ink);
  font-size: 4rem;
  line-height: 1.02;
  font-weight: 760;
}

.page-title p {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 0.68fr);
  gap: 28px;
  padding: 28px;
}

.project-detail + .project-detail,
.plain-section + .plain-section {
  margin-top: 16px;
}

.project-detail .text-link {
  margin-top: 16px;
}

.empty-state,
.plain-section {
  padding: 28px;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: center;
  padding: 56px 0 52px;
}

.profile-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--blue-soft);
  font-size: 4rem;
  line-height: 1.02;
  word-break: keep-all;
}

.profile-lede {
  max-width: 620px;
  margin: 0;
  font-size: 1.08rem;
}

.profile-section {
  margin-top: 36px;
}

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

.profile-card {
  padding: 22px;
}

.work-card {
  min-height: 160px;
  padding: 24px;
}

.profile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(120, 166, 255, 0.12);
  color: var(--blue-soft);
  font-weight: 760;
}

.cert-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 150px;
}

.cert-card img {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.cert-card .text-link {
  margin-top: 12px;
}

@media (max-width: 860px) {
  .site-header,
  .hero,
  .projects,
  .content-band,
  .page-shell,
  .profile-shell {
    padding-right: 20px;
    padding-left: 20px;
  }

  .site-header,
  .section-head,
  .profile-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    gap: 18px;
  }

  .hero,
  .project-grid,
  .project-detail,
  .profile-hero,
  .profile-summary-grid,
  .profile-project-grid,
  .profile-cert-grid,
  .cert-card {
    grid-template-columns: 1fr;
  }

  .hero,
  .profile-hero {
    gap: 48px;
    min-height: auto;
    padding-top: 56px;
  }

  .hero h1,
  .page-title h1,
  .plain-section h1,
  .profile-hero h1 {
    font-size: 2.8rem;
  }

  .project-detail .text-link {
    grid-column: auto;
  }

  .section-note,
  .profile-facts span {
    text-align: left;
  }
}
