:root {
  --bg: #07101f;
  --bg-soft: rgba(9, 17, 33, 0.7);
  --panel: rgba(12, 22, 43, 0.58);
  --line: rgba(133, 181, 255, 0.18);
  --line-strong: rgba(133, 181, 255, 0.36);
  --text: #edf5ff;
  --muted: #aab8d3;
  --accent: #7fd7ff;
  --accent-strong: #52b5ff;
  --success: #72f7cb;
  --warning: #ffd06e;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --nav-height: 84px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(45, 110, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #07101f 0%, #040914 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

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

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

.page-noise,
.background-grid,
.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.page-noise {
  opacity: 0.08;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 0.5px, transparent 0.5px);
  background-size: 10px 10px;
  mix-blend-mode: soft-light;
}

.background-grid {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(127, 215, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 215, 255, 0.12) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 75%, transparent 100%);
}

.background-glow {
  z-index: -1;
  filter: blur(100px);
  opacity: 0.35;
}

.glow-1 {
  background: rgba(70, 140, 255, 0.24);
  width: 460px;
  height: 460px;
  left: -120px;
  top: 120px;
}

.glow-2 {
  background: rgba(79, 221, 255, 0.18);
  width: 400px;
  height: 400px;
  right: -120px;
  top: 520px;
}

.glass-card {
  background: linear-gradient(180deg, rgba(18, 31, 57, 0.75), rgba(10, 19, 37, 0.6));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(5, 11, 22, 0.55);
  border-bottom: 1px solid rgba(127, 215, 255, 0.08);
}

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

.brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 180ms ease, text-shadow 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  text-shadow: 0 0 14px rgba(127, 215, 255, 0.45);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 99px;
}

.hero {
  padding: 5.5rem 0 3rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
}

.eyebrow,
.section-kicker,
.label,
.badge,
.project-status,
.stat-label {
  font-family: "JetBrains Mono", monospace;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.mindset h2,
.contact-card h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  max-width: 10ch;
}

.hero-text {
  max-width: 58ch;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 1.4rem 0 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 2rem 0;
}

.hero-tags span,
.badge,
.project-status {
  border: 1px solid var(--line);
  background: rgba(127, 215, 255, 0.08);
  color: #dff6ff;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #04111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 36px rgba(82, 181, 255, 0.3);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(127, 215, 255, 0.08);
  color: var(--text);
}

.hero-card {
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 150ms ease;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 215, 255, 0.34), transparent 70%);
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 16px rgba(114, 247, 203, 0.7);
}

.hero-card img,
.project-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(127, 215, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.hero-card-bottom {
  padding: 1rem 0 0.2rem;
  display: grid;
  gap: 1rem;
}

.label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-card-bottom h2 {
  margin: 0;
  font-size: 1.3rem;
}

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

.stat-grid article {
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(127, 215, 255, 0.06);
  border: 1px solid rgba(127, 215, 255, 0.12);
}

.stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
  font-size: 0.75rem;
}

.section {
  padding: 2.2rem 0 1.8rem;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.section-heading h2,
.mindset h2,
.contact-card h2 {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.about-grid,
.focus-grid,
.projects-grid,
.leadership-grid {
  display: grid;
  gap: 1.1rem;
}

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

.focus-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.featured-project {
  grid-column: span 2;
}

.leadership-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-grid article,
.focus-grid article,
.project-card,
.leadership-grid article,
.mindset,
.contact-card {
  padding: 1.4rem;
}

.focus-grid h3,
.project-content h3,
.leadership-grid h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.15rem;
}

.focus-grid li + li,
.project-highlights li + li {
  margin-top: 0.35rem;
}

.project-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.featured-project {
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
}

.project-content p {
  color: var(--muted);
}

.project-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.project-status.finished {
  color: #dfffee;
  border-color: rgba(114, 247, 203, 0.24);
  background: rgba(114, 247, 203, 0.1);
}

.project-status.in-progress {
  color: #fff1d2;
  border-color: rgba(255, 208, 110, 0.24);
  background: rgba(255, 208, 110, 0.12);
}

.project-highlights {
  color: var(--text);
}

.mindset {
  max-width: 860px;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact-links a {
  border-radius: 999px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  background: rgba(127, 215, 255, 0.06);
  transition: transform 180ms ease, background 180ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  transform: translateY(-2px);
  background: rgba(127, 215, 255, 0.12);
}

.site-footer {
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* IMPORTANT:
   visible by default
   animation only when JS adds .js-ready to body
*/
.reveal {
  opacity: 1;
  transform: none;
}

body.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

body.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero,
  .featured-project,
  .focus-grid,
  .leadership-grid,
  .about-grid,
  .projects-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .featured-project,
  .contact-card {
    display: grid;
  }

  .featured-project {
    grid-column: span 1;
  }
}

@media (max-width: 780px) {
  :root {
    --nav-height: 74px;
  }

  .navbar {
    position: relative;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    left: 0;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(7, 16, 31, 0.96);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

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

  .hero {
    padding-top: 3rem;
  }

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

  .button,
  .contact-links a {
    width: 100%;
  }
}