:root {
  --navy-950: #020816;
  --navy-900: #061326;
  --navy-850: #071a33;
  --navy-800: #0b2444;
  --blue: #4f9cff;
  --blue-soft: #7ab8ff;
  --white: #ffffff;
  --off-white: #f8fafc;
  --slate-950: #101827;
  --slate-700: #374151;
  --slate-500: #667085;
  --line: rgba(255, 255, 255, 0.14);
  --blue-line: rgba(79, 156, 255, 0.8);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--off-white);
  background: var(--navy-950);
  line-height: 1.55;
}

img {
  max-width: 100%;
}

.site-header {
  height: 78px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(2, 8, 22, 0.98), rgba(5, 17, 34, 0.98));
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(79, 156, 255, 0.12), 0 8px 22px rgba(0, 0, 0, 0.35);
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 24px 0 18px;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--blue-soft);
  border-bottom-color: var(--blue);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 735px;
  padding: 62px 24px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(44, 91, 148, 0.28), transparent 36%),
    linear-gradient(135deg, #020816 0%, #041126 50%, #082244 100%);
}

.page-hero {
  min-height: 500px;
}

.hero::before,
.hero::after,
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before,
.page-hero::before {
  background-image:
    linear-gradient(30deg, transparent 0 48%, rgba(79, 156, 255, 0.18) 49% 50%, transparent 51% 100%),
    linear-gradient(145deg, transparent 0 48%, rgba(79, 156, 255, 0.13) 49% 50%, transparent 51% 100%);
  background-size: 180px 180px, 225px 225px;
  opacity: 0.45;
  mask-image: radial-gradient(circle at center, transparent 0 22%, black 48%, black 100%);
}

.hero::after,
.page-hero::after {
  background-image: radial-gradient(circle, rgba(93, 165, 255, 0.95) 0 3px, transparent 4px);
  background-size: 150px 150px;
  opacity: 0.32;
  mask-image: linear-gradient(90deg, black 0%, transparent 35%, transparent 65%, black 100%);
}

.node-field {
  position: absolute;
  width: 360px;
  height: 520px;
  opacity: 0.55;
  background:
    radial-gradient(circle at 10% 18%, var(--blue-soft) 0 4px, transparent 5px),
    radial-gradient(circle at 28% 36%, var(--blue-soft) 0 4px, transparent 5px),
    radial-gradient(circle at 48% 22%, var(--blue-soft) 0 4px, transparent 5px),
    radial-gradient(circle at 66% 44%, var(--blue-soft) 0 4px, transparent 5px),
    radial-gradient(circle at 35% 62%, var(--blue-soft) 0 4px, transparent 5px),
    linear-gradient(28deg, transparent 0 49%, rgba(79, 156, 255, 0.34) 50%, transparent 51% 100%),
    linear-gradient(116deg, transparent 0 49%, rgba(79, 156, 255, 0.24) 50%, transparent 51% 100%);
  filter: drop-shadow(0 0 18px rgba(79, 156, 255, 0.32));
}

.node-left {
  left: -60px;
  top: 60px;
}

.node-right {
  right: -40px;
  top: 75px;
  transform: scaleX(-1) rotate(-4deg);
}

.hero-content,
.page-content {
  position: relative;
  z-index: 2;
  width: min(960px, 100%);
  text-align: center;
}

.logo-large {
  width: 218px;
  height: 218px;
  margin: 0 auto 26px;
  display: block;
  border-radius: 50%;
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, 0.05),
    0 24px 55px rgba(0, 0, 0, 0.42);
}

.page-logo {
  width: 160px;
  height: 160px;
}

h1 {
  margin: 0;
  font-size: clamp(3.8rem, 8vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  color: var(--white);
  text-shadow: 0 14px 30px rgba(0, 0, 0, 0.36);
}

.blue-rule {
  display: block;
  width: 52px;
  height: 3px;
  margin: 25px auto 22px;
  border-radius: 999px;
  background: var(--blue);
}

.blue-rule.small {
  width: 46px;
  margin: 10px auto 14px;
}

.hero-title {
  margin: 0 0 17px;
  color: var(--blue-soft);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-text {
  max-width: 710px;
  margin: 0 auto 38px;
  color: rgba(255, 255, 255, 0.93);
  font-size: 1.16rem;
}

.profile-links {
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 22px;
}

.profile-links a {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--white);
  text-decoration: none;
  border: 1.5px solid var(--blue-line);
  border-radius: 7px;
  background: rgba(3, 15, 31, 0.48);
  font-size: 1.18rem;
  font-weight: 800;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.profile-links a:hover,
.profile-links a:focus {
  transform: translateY(-2px);
  border-color: rgba(122, 184, 255, 1);
  background: rgba(79, 156, 255, 0.13);
}

.platform-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--white);
  color: var(--navy-950);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.what-i-do,
.article-section,
.featured-projects {
  background: var(--off-white);
  color: var(--slate-950);
  padding: 32px 24px 58px;
}

.featured-projects {
  padding-top: 54px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.article-section {
  padding-top: 46px;
}

.section-title {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.55rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--slate-950);
}

.section-title p {
  margin: 0;
  color: var(--slate-700);
  font-size: 1.08rem;
}

.cards,
.project-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card,
.project-card {
  min-height: 245px;
  padding: 34px 26px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.05);
}

.project-card {
  text-align: left;
}

.circle-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #0b284a, #031225 70%);
  color: var(--blue);
  font-size: 2.25rem;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(2, 8, 22, 0.18);
}

.card h3,
.project-card h3 {
  margin: 0 0 12px;
  color: var(--slate-950);
  font-size: 1.28rem;
  line-height: 1.2;
}

.card p,
.project-card p {
  margin: 0 auto;
  max-width: 260px;
  color: var(--slate-700);
  font-size: 1rem;
}

.project-card p {
  margin: 0 0 18px;
  max-width: none;
}

.project-card a {
  color: var(--navy-800);
  font-weight: 800;
  text-decoration-color: var(--blue);
  text-underline-offset: 4px;
}

.article-card,
.lab-card {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 44px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.05);
}

.article-card p,
.lab-card p {
  margin: 0 0 22px;
  color: var(--slate-700);
  font-size: 1.08rem;
}

.article-card p:first-child {
  color: var(--slate-950);
  font-size: 1.18rem;
  font-weight: 700;
}

.article-card p:last-child,
.lab-card p:last-child {
  margin-bottom: 0;
}

.lab-list {
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.lab-card {
  width: 100%;
  margin: 0;
}

.lab-card h3 {
  margin: 0 0 12px;
  color: var(--slate-950);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.lab-card a {
  color: var(--navy-800);
  font-weight: 800;
  text-decoration-color: var(--blue);
  text-underline-offset: 4px;
}

.post-date {
  color: var(--blue) !important;
  font-size: 0.95rem !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer {
  padding: 30px 24px;
  text-align: center;
  background: linear-gradient(180deg, #061326, #020816);
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--blue-soft);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header {
    padding: 0 22px;
  }

  .site-nav {
    gap: 18px;
  }

  .profile-links,
  .cards,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    height: auto;
    min-height: 98px;
    padding: 16px 18px;
    flex-direction: column;
    gap: 8px;
  }

  .brand-name {
    font-size: 1.18rem;
  }

  .site-nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav a {
    padding: 6px 0;
    font-size: 0.95rem;
  }

  .hero,
  .page-hero {
    min-height: auto;
    padding: 48px 18px 58px;
  }

  .node-field {
    opacity: 0.24;
  }

  .logo-large {
    width: 152px;
    height: 152px;
  }

  .page-logo {
    width: 126px;
    height: 126px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .profile-links,
  .cards,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .profile-links a {
    min-height: 64px;
  }

  .article-card,
  .lab-card,
  .project-card {
    padding: 28px 22px;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}
