:root {
  color-scheme: light dark;
  --bg: #f5fbff;
  --surface: #eef8ff;
  --surface-strong: #ffffff;
  --surface-panel: rgba(255, 255, 255, 0.84);
  --surface-card: rgba(255, 255, 255, 0.72);
  --text: #082033;
  --muted: #526879;
  --line: rgba(8, 32, 51, 0.14);
  --accent: #02b3ff;
  --accent-strong: #006f9f;
  --accent-soft: rgba(2, 179, 255, 0.16);
  --accent-ink: #03131d;
  --secondary: #7c3aed;
  --secondary-soft: rgba(124, 58, 237, 0.12);
  --header-bg: rgba(245, 251, 255, 0.84);
  --shadow: 0 24px 60px rgba(8, 32, 51, 0.12);
  --step--1: clamp(0.88rem, 0.84rem + 0.16vw, 0.98rem);
  --step-0: clamp(1rem, 0.94rem + 0.28vw, 1.16rem);
  --step-1: clamp(1.22rem, 1.08rem + 0.64vw, 1.58rem);
  --step-2: clamp(1.55rem, 1.26rem + 1.28vw, 2.28rem);
  --step-3: clamp(2rem, 1.44rem + 2.48vw, 3.42rem);
  --space-xs: clamp(0.5rem, 0.43rem + 0.32vw, 0.7rem);
  --space-sm: clamp(0.8rem, 0.7rem + 0.45vw, 1.05rem);
  --space-md: clamp(1.25rem, 1rem + 1.1vw, 1.9rem);
  --space-lg: clamp(2rem, 1.45rem + 2.4vw, 3.4rem);
  --space-xl: clamp(3rem, 2.1rem + 4vw, 5.4rem);
  --content: min(1120px, calc(100% - clamp(2rem, 6vw, 5rem)));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06111d;
    --surface: #0d1c2b;
    --surface-strong: #13283c;
    --surface-panel: rgba(13, 28, 43, 0.86);
    --surface-card: rgba(19, 40, 60, 0.74);
    --text: #eaf8ff;
    --muted: #9ab4c6;
    --line: rgba(234, 248, 255, 0.14);
    --accent-strong: #7edbff;
    --accent-soft: rgba(2, 179, 255, 0.18);
    --secondary: #a78bfa;
    --secondary-soft: rgba(167, 139, 250, 0.16);
    --header-bg: rgba(6, 17, 29, 0.84);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 36rem),
    linear-gradient(225deg, var(--secondary-soft), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: var(--space-sm);
  z-index: 20;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--bg);
  padding: 0.6rem 0.8rem;
  border-radius: 0.45rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.nav-shell,
.footer-shell,
.hero-section,
.content-band,
.page-section {
  width: var(--content);
  margin-inline: auto;
}

.nav-shell {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand,
.nav-links,
.footer-shell,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--accent);
  color: var(--accent-ink);
}

.nav-links {
  gap: clamp(0.9rem, 2vw, 1.6rem);
}

.nav-links a {
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 650;
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  width: 2.65rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface-strong);
  color: var(--text);
}

.nav-toggle-line {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0.22rem auto;
  background: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hero-section {
  min-height: calc(100vh - 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.72fr);
  align-items: center;
  gap: var(--space-xl);
  padding-block: var(--space-xl);
}

.hero-copy,
.section-heading,
.page-section.narrow {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 var(--space-xs);
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 12ch;
  font-size: var(--step-3);
}

h2 {
  font-size: var(--step-2);
}

h3 {
  font-size: var(--step-1);
}

.accent-dot {
  color: var(--accent);
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero-actions {
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  padding: 0.75rem 1rem;
  font-weight: 750;
  text-decoration: none;
}

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

.button.secondary {
  border-color: var(--line);
  background: var(--surface-panel);
  color: var(--text);
}

.hero-panel {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface-panel);
  box-shadow: var(--shadow);
}

.hero-panel > div {
  padding: var(--space-sm);
  border-left: 4px solid var(--accent);
  background: var(--surface-strong);
}

.stat-value,
.stat-label {
  display: block;
}

.stat-value {
  font-size: var(--step-1);
  font-weight: 750;
}

.stat-label,
.feature-card p,
.project-item p {
  color: var(--muted);
}

.content-band,
.page-section {
  padding-block: var(--space-xl);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.feature-card,
.project-item {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface-card);
}

.feature-card {
  padding: var(--space-md);
}

.project-list {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
}

.project-item a {
  flex: 0 0 auto;
  font-weight: 750;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-shell {
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-md);
  color: var(--muted);
  font-size: var(--step--1);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    inset: 4.5rem clamp(1rem, 4vw, 2rem) auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.9rem 1rem;
  }

  .nav-links a + a {
    border-top: 1px solid var(--line);
  }

  .hero-section {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .project-item,
  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}
