:root {
  --bg: #171225;
  --surface: #241b3a;
  --text: #f2ecff;
  --muted: #c7b8e7;
  --line: #46386a;
  --accent: #b388ff;
  --accent-soft: #dbc7ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 10%, rgba(179, 136, 255, 0.18), transparent 40%),
    radial-gradient(circle at 0% 80%, rgba(155, 120, 255, 0.12), transparent 50%),
    var(--bg);
  line-height: 1.65;
}

h1, h2, h3, .logo {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.wrap {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

.orb-a {
  width: 220px;
  height: 220px;
  background: #b388ff;
  top: -40px;
  right: -20px;
}

.orb-b {
  width: 180px;
  height: 180px;
  background: #a88bff;
  bottom: 14%;
  left: -30px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(22, 16, 38, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.menu-btn {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav a.active,
.nav a:hover {
  color: var(--text);
}

.hero {
  padding: 88px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(430px, 580px) minmax(340px, 400px);
  justify-content: space-between;
  gap: 36px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4.2vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 8.5ch;
}

.hero-role {
  margin: 0;
  color: var(--accent-soft);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 2px;
}

.lead {
  margin: 0;
  max-width: 40ch;
  font-size: 1.08rem;
  line-height: 1.58;
  color: var(--muted);
}

.lead-primary {
  color: var(--text);
  font-size: 1.22rem;
  max-width: 32ch;
}

.lead-secondary {
  max-width: 42ch;
}

.hero-chips {
  margin-top: 6px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.hero-photo-card {
  justify-self: end;
  width: min(100%, 390px);
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 60px rgba(8, 3, 9, 0.26);
}

.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  border-radius: 20px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 500;
}

.btn-primary {
  background: var(--accent);
  color: #2a1220;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.section {
  padding: 52px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
}

.chips li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--accent-soft);
}

.skills-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.info-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.section-head span {
  color: var(--muted);
}

.grid {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.feature-card-compact {
  grid-template-columns: minmax(0, 760px);
}

.feature-copy {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
}

.feature-copy h3 {
  margin: 8px 0 14px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.feature-copy p {
  margin: 0 0 14px;
  color: var(--muted);
}

.feature-copy p:last-child {
  margin-bottom: 0;
}

.feature-points {
  display: grid;
  gap: 14px;
}

.feature-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 2px;
}

.feature-link:hover {
  border-bottom-color: var(--accent);
}

.article-page {
  padding-top: 88px;
  padding-bottom: 56px;
}

.article-hero {
  max-width: 760px;
  margin-bottom: 32px;
}

.article-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.article-lead {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.15rem;
}

.article-section {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-section h2 {
  margin: 0 0 12px;
}

.article-section p {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
}

.page-nav {
  display: flex;
}

.card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(179, 136, 255, 0.45);
}

.tag {
  margin: 0;
  font-size: 0.8rem;
  color: var(--accent-soft);
}

.feature-meta {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.card h3 {
  margin: 6px 0 8px;
}

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

.card a {
  color: var(--text);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.timeline-item h3 {
  margin: 4px 0 6px;
}

.contact-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.contact-links a {
  color: var(--accent-soft);
}

.footer {
  padding: 28px 0 36px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 880px) {
  .hero-grid,
  .feature-card,
  .skills-layout,
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
  }

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

@media (max-width: 700px) {
  .menu-btn {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 72px;
    right: 4%;
    width: min(240px, 90vw);
    background: #211833;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    flex-direction: column;
    transform-origin: top right;
    transform: scale(0.97);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }

  .nav.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .hero-grid,
  .feature-card,
  .skills-layout,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 100%;
    gap: 14px;
  }

  .hero h1,
  .lead,
  .lead-primary,
  .lead-secondary {
    max-width: 100%;
  }

  .hero-photo-card {
    justify-self: start;
    width: min(100%, 340px);
  }

  .hero {
    padding-top: 70px;
  }
}
