:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --panel: rgba(19, 26, 40, 0.82);
  --panel-strong: #151d2c;
  --text: #f5f7fb;
  --muted: #9aa8bd;
  --line: rgba(151, 169, 197, 0.16);
  --brand: #5f8cff;
  --brand-soft: #9a8cff;
  --success: #58d6a4;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  content: "";
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
}

body::before { top: -18rem; right: -16rem; background: var(--brand); }
body::after { bottom: -22rem; left: -20rem; background: var(--brand-soft); }

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  color: var(--text);
  background: var(--panel-strong);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.shell { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 23, 0.72);
  backdrop-filter: blur(18px);
}

.nav, .footer-content { display: flex; align-items: center; justify-content: space-between; }
.nav { min-height: 68px; gap: 1rem; }
.brand { min-height: 44px; display: inline-flex; align-items: center; font-size: 1.15rem; font-weight: 800; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 0.25rem; }
.nav-links a, .mobile-links a, summary { min-height: 44px; padding: 0.65rem 0.8rem; display: inline-flex; align-items: center; color: var(--muted); font-size: 0.94rem; }
.nav-links a:hover, .mobile-links a:hover { color: var(--text); }

.mobile-menu { display: none; position: relative; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.mobile-links { position: absolute; right: 0; display: grid; min-width: 9rem; padding: 0.5rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-strong); box-shadow: var(--shadow); }

.hero { min-height: 100svh; display: grid; align-content: center; padding: 8.75rem 0 5rem; }
.eyebrow, .section-kicker { margin: 0 0 1rem; color: var(--brand-soft); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 900px; margin-bottom: 1.25rem; font-size: clamp(3.5rem, 8vw, 4.5rem); line-height: 1.12; letter-spacing: -0.055em; }
.hero-copy { max-width: 670px; margin-bottom: 2rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hero-copy strong, .hero-copy span { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0.7rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease; }
.button-primary { border-color: transparent; background: var(--brand); }
.button-secondary { background: rgba(19, 26, 40, 0.58); }
.button:hover { transform: translateY(-2px); border-color: var(--brand-soft); }

.section { padding: 5.5rem 0; scroll-margin-top: 68px; }
.section-heading { margin-bottom: 1.75rem; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.2; letter-spacing: -0.035em; }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.focus-card, .project-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.focus-card { min-height: 240px; padding: 1.5rem; transition: transform 180ms ease, border-color 180ms ease; }
.card-number { color: var(--brand-soft); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; }
.focus-card h3 { margin: 2.5rem 0 0.6rem; font-size: 1.2rem; }
.focus-card p, .project-panel p, .about-copy { margin-bottom: 0; color: var(--muted); }
.project-panel { display: grid; gap: 1rem; padding: clamp(1.5rem, 5vw, 3rem); }
.status { width: fit-content; padding: 0.25rem 0.65rem; border-radius: 999px; color: var(--success); background: rgba(88, 214, 164, 0.1); font-size: 0.85rem; font-weight: 750; }
.about-copy { max-width: 760px; font-size: clamp(1.05rem, 2vw, 1.22rem); }
.contact { padding-bottom: 7rem; }
.email-link { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid var(--brand); color: var(--text); font-size: clamp(1.2rem, 3vw, 1.75rem); font-weight: 750; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-content { min-height: 92px; gap: 1rem; font-size: 0.9rem; }
.footer-content p { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 4px; }

@media (hover: hover) {
  .focus-card:hover { transform: translateY(-6px); border-color: rgba(95, 140, 255, 0.6); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .mobile-menu { display: block; }
  .focus-grid { grid-template-columns: 1fr; }
  .section { padding: 4.25rem 0; }
  .footer-content { align-items: flex-start; flex-direction: column; justify-content: center; }
  h1 { font-size: clamp(2.5rem, 10vw, 3rem); }
}

@media (max-width: 480px) {
  .hero { padding-top: 7.25rem; }
  .hero-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
