:root {
  color-scheme: dark light;
  --bg-page: #030112;
  --bg-surface: rgba(14, 14, 32, 0.78);
  --bg-surface-strong: rgba(22, 20, 42, 0.9);
  --border-soft: rgba(130, 124, 255, 0.22);
  --border-strong: rgba(88, 101, 242, 0.38);
  --text-primary: #f8f9ff;
  --text-secondary: rgba(226, 232, 255, 0.88);
  --text-tertiary: rgba(148, 163, 196, 0.72);
  --shadow-soft: 0 34px 96px -38px rgba(4, 8, 32, 0.92);
  --shadow-card: 0 48px 110px -36px rgba(3, 6, 24, 0.88);
  --radius-large: 32px;
  --radius-medium: 24px;
  --radius-small: 16px;
  --max-width: 1180px;
  --accent-iris: #8c7aff;
  --accent-amber: #fbbf24;
  --accent-teal: #2dd4bf;
  --accent-orchid: #d08efc;
  --accent-slate: #94a3b8;
  --accent-coral: #ff8ba7;
  --accent-blue: #38bdf8;
  --accent-violet: #818cf8;
  --accent-navy: #312e81;
  --accent-active: var(--accent-iris);
  --grid-color: rgba(124, 116, 232, 0.16);
  --noise-opacity: 0.22;
  --surface-glow: rgba(143, 129, 255, 0.18);
  --bg-hue: 232;
  --bg-saturation: 95%;
  --bg-lightness: 52%;
  --cursor-hue: 232;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light dark;
    --bg-page: #f3f4ff;
    --bg-surface: rgba(255, 255, 255, 0.78);
    --bg-surface-strong: rgba(255, 255, 255, 0.92);
    --border-soft: rgba(148, 163, 184, 0.18);
    --border-strong: rgba(148, 163, 184, 0.32);
    --text-primary: #111827;
    --text-secondary: #475569;
    --text-tertiary: rgba(71, 85, 105, 0.78);
    --shadow-soft: 0 26px 70px -34px rgba(79, 70, 229, 0.35);
    --shadow-card: 0 40px 90px -42px rgba(15, 23, 42, 0.32);
    --accent-iris: #6366f1;
    --accent-amber: #f59e0b;
    --accent-teal: #0d9488;
    --accent-orchid: #a855f7;
    --accent-slate: #64748b;
    --accent-coral: #fb7185;
    --accent-blue: #2563eb;
    --accent-violet: #7c3aed;
    --accent-navy: #312e81;
    --grid-color: rgba(99, 102, 241, 0.08);
    --noise-opacity: 0.12;
    --surface-glow: rgba(99, 102, 241, 0.12);
    --bg-hue: 220;
    --bg-saturation: 82%;
    --bg-lightness: 62%;
    --cursor-hue: 220;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 400;
  background-color: var(--bg-page);
  background-image: radial-gradient(
      1200px circle at 48% 16%,
      rgba(26, 46, 102, 0.25),
      transparent 72%
    ),
    radial-gradient(
      960px circle at 10% 82%,
      rgba(12, 32, 84, 0.22),
      transparent 78%
    ),
    radial-gradient(
      1100px circle at 88% 86%,
      rgba(8, 28, 72, 0.2),
      transparent 80%
    ),
    linear-gradient(180deg, #02030e 0%, #020414 58%, #01020a 100%);
  background-attachment: fixed;
  color: var(--text-secondary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
  line-height: 1.6;
  font-feature-settings: "liga" 1, "kern" 1, "calt" 1;
  cursor: none;
  transition: background 0.6s ease, color 0.6s ease;
}

@media (hover: hover) and (pointer: fine) {
  a,
  button,
  .btn,
  [data-cursor],
  [role="button"] {
    cursor: none;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
      320px circle at var(--cursor-x, 50%) var(--cursor-y, 50%),
      hsla(var(--cursor-hue), 92%, 62%, 0.14),
      transparent 70%
    ),
    radial-gradient(
      560px circle at var(--cursor-x, 50%) var(--cursor-y, 50%),
      hsla(calc(var(--cursor-hue) + 32), 82%, 58%, 0.1),
      transparent 78%
    ),
    radial-gradient(
      1120px circle at 82% 12%,
      rgba(18, 54, 120, 0.16),
      transparent 80%
    ),
    radial-gradient(
      1060px circle at 14% 86%,
      rgba(14, 36, 92, 0.1),
      transparent 82%
    );
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: -4;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: conic-gradient(
      from calc(var(--cursor-angle, 0deg)) at var(--cursor-x, 50%)
        var(--cursor-y, 50%),
      hsla(var(--cursor-hue), 90%, 62%, calc(0.12 + var(--cursor-v, 0) / 900))
        0deg,
      hsla(calc(var(--cursor-hue) + 80), 84%, 60%, 0.18) 140deg,
      hsla(calc(var(--cursor-hue) - 120), 88%, 58%, 0.14) 260deg,
      transparent 360deg
    ),
    radial-gradient(
      780px circle at 78% 18%,
      rgba(20, 44, 94, 0.18),
      transparent 76%
    ),
    radial-gradient(
      680px circle at 26% 78%,
      rgba(12, 40, 96, 0.15),
      transparent 74%
    );
  mix-blend-mode: screen;
  opacity: 0.36;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: -3;
}

body.is-pressing::after {
  opacity: 0.48;
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

@media (prefers-color-scheme: light) {
  body {
    background-image: radial-gradient(
        880px circle at 24% 18%,
        rgba(164, 196, 255, 0.28),
        transparent 68%
      ),
      radial-gradient(
        920px circle at 82% 80%,
        rgba(186, 220, 255, 0.22),
        transparent 74%
      ),
      radial-gradient(
        760px circle at 14% 88%,
        rgba(247, 216, 255, 0.18),
        transparent 76%
      ),
      linear-gradient(180deg, #f6f8ff 0%, #eef2ff 100%);
  }

  body::before {
    background: radial-gradient(
        320px circle at var(--cursor-x, 50%) var(--cursor-y, 50%),
        hsla(var(--bg-hue), 76%, 60%, 0.22),
        transparent 70%
      ),
      radial-gradient(
        560px circle at var(--cursor-x, 50%) var(--cursor-y, 50%),
        hsla(calc(var(--bg-hue) + 90), 70%, 58%, 0.16),
        transparent 78%
      ),
      radial-gradient(
        960px circle at 78% 16%,
        rgba(186, 216, 255, 0.18),
        transparent 78%
      ),
      radial-gradient(
        820px circle at 16% 84%,
        rgba(248, 210, 255, 0.16),
        transparent 80%
      );
  }

  body::after {
    background: conic-gradient(
        from calc(var(--cursor-angle, 0deg)) at var(--cursor-x, 50%)
          var(--cursor-y, 50%),
        hsla(var(--bg-hue), 78%, 58%, calc(0.12 + var(--cursor-v, 0) / 960))
          0deg,
        hsla(calc(var(--bg-hue) + 90), 70%, 56%, 0.16) 150deg,
        hsla(calc(var(--bg-hue) - 120), 72%, 54%, 0.12) 280deg,
        transparent 360deg
      ),
      radial-gradient(
        720px circle at 80% 18%,
        rgba(176, 208, 255, 0.2),
        transparent 76%
      ),
      radial-gradient(
        640px circle at 22% 78%,
        rgba(186, 222, 255, 0.16),
        transparent 74%
      );
    mix-blend-mode: soft-light;
    opacity: 0.45;
  }

  .hero__principles li,
  .hero__stats li,
  .panel__card,
  .timeline__item,
  .project-card,
  .mosaic__card {
    background: linear-gradient(
      150deg,
      rgba(255, 255, 255, 0.94),
      rgba(244, 247, 255, 0.88)
    );
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 30px 70px -42px rgba(15, 23, 42, 0.25);
  }

  .hero__principles li::before,
  .hero__stats li::before,
  .panel__card::before,
  .timeline__item::before,
  .mosaic__card::before {
    opacity: 0.5;
  }

  .project-card::before {
    opacity: 0;
  }

  .project-card::after {
    background: linear-gradient(
      120deg,
      rgba(99, 102, 241, 0.35),
      rgba(248, 113, 113, 0.2)
    );
  }

  .project-card__tech li {
    background: rgba(237, 242, 255, 0.7);
    border-color: rgba(148, 163, 184, 0.28);
    color: #1f2937;
  }

  .project-card__code {
    background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(243, 246, 255, 0.88)
    );
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
    color: #1f2937;
  }

  .project-card__code::before {
    color: rgba(100, 116, 139, 0.68);
  }

  .project-card__code span::before {
    color: rgba(148, 163, 184, 0.65);
  }

  .project-card__tech li {
    background: rgba(226, 232, 240, 0.65);
    border-color: rgba(148, 163, 184, 0.38);
    color: var(--text-secondary);
  }

  .project-card:hover .project-card__tech li,
  .project-card:focus-within .project-card__tech li {
    background: rgba(99, 102, 241, 0.16);
    border-color: rgba(99, 102, 241, 0.35);
  }

  .btn--ghost {
    background: rgba(255, 255, 255, 0.8);
    color: var(--accent-active);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.2);
  }

  .btn--ghost:hover,
  .btn--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.92);
  }
}

body[data-cursor="accent"] {
  --accent-active: var(--accent-coral);
}

body[data-cursor="soft"] {
  --accent-active: var(--accent-teal);
}

body[data-cursor="focus"] {
  --accent-active: var(--accent-violet);
}

body[data-cursor="interactive"] {
  --accent-active: var(--accent-iris);
}

main {
  position: relative;
  z-index: 3;
}

.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  background: radial-gradient(
      1400px circle at 24% 12%,
      rgba(16, 38, 82, 0.32),
      transparent 76%
    ),
    radial-gradient(
      1200px circle at 76% 82%,
      rgba(12, 28, 68, 0.28),
      transparent 80%
    ),
    linear-gradient(180deg, #01020a 0%, #030616 58%, #01020a 100%);
}

.background.is-ready {
  opacity: 1;
}

.background__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: saturate(1.1) brightness(0.98) contrast(1.08);
  opacity: 0.92;
}

.background__layer {
  position: absolute;
  inset: -15%;
  transition: transform 0.6s ease, opacity 0.6s ease;
  mix-blend-mode: screen;
}

.background__layer--gradient {
  background: radial-gradient(
      520px circle at var(--cursor-x, 50%) var(--cursor-y, 50%),
      hsla(
        var(--bg-hue),
        var(--bg-saturation),
        calc(var(--bg-lightness) + 18%),
        0.26
      ),
      transparent 68%
    ),
    radial-gradient(
      720px circle at calc(var(--cursor-x, 50%) + 180px)
        calc(var(--cursor-y, 50%) + 260px),
      hsla(calc(var(--bg-hue) + 36), 92%, 60%, 0.22),
      transparent 76%
    ),
    radial-gradient(
      880px circle at calc(var(--cursor-x, 50%) - 220px)
        calc(var(--cursor-y, 50%) - 180px),
      hsla(calc(var(--bg-hue) - 48), 95%, 58%, 0.18),
      transparent 80%
    ),
    linear-gradient(160deg, rgba(6, 12, 30, 0.78), rgba(3, 8, 26, 0.9));
  filter: saturate(1.24) brightness(1.05);
  opacity: 0.56;
}

.background__layer--orb {
  background: radial-gradient(
      circle at 32% 22%,
      rgba(60, 174, 255, 0.3),
      transparent 70%
    ),
    radial-gradient(
      circle at 78% 78%,
      rgba(120, 84, 255, 0.26),
      transparent 76%
    ),
    radial-gradient(
      circle at 48% 88%,
      rgba(68, 196, 203, 0.22),
      transparent 82%
    );
  filter: blur(160px) saturate(1.2);
  opacity: 0.42;
  transform: scale(1.45);
}

.background__noise {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: var(--noise-opacity);
}

.background.is-hovered .background__layer--gradient {
  opacity: 0.5;
}

.background.is-active .background__layer--gradient {
  opacity: 0.58;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(var(--cursor-x, 50vw), var(--cursor-y, 50vh), 0)
    translate3d(-50%, -50%, 0);
  transition: opacity 0.25s ease;
}

.cursor--nova {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  isolation: isolate;
  mix-blend-mode: normal;
  filter: drop-shadow(0 14px 32px rgba(16, 24, 58, 0.5));
  transition: opacity 0.25s ease, filter 0.35s ease;
}

.cursor.is-hidden {
  opacity: 0;
}

.cursor__dot,
.cursor__halo,
.cursor__trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cursor__dot {
  width: 12px;
  height: 12px;
  margin: auto;
  border-radius: 50%;
  background: radial-gradient(
      circle at 40% 40%,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0) 60%
    ),
    radial-gradient(
      circle at 62% 62%,
      hsla(var(--cursor-hue), 88%, 70%, 0.82),
      hsla(calc(var(--cursor-hue) - 20), 84%, 58%, 0.25)
    );
  box-shadow: 0 0 18px rgba(120, 162, 255, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 0 4px rgba(6, 10, 24, 0.4);
  transform: scale(calc(0.92 + var(--cursor-speed, 0) * 0.25));
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.cursor__halo {
  width: 26px;
  height: 26px;
  margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(136, 152, 255, 0.5);
  background: radial-gradient(
      circle at 50% 50%,
      rgba(10, 14, 32, 0.35),
      rgba(136, 152, 255, 0.24),
      transparent 76%
    ),
    rgba(12, 16, 36, 0.33);
  box-shadow: inset 0 0 18px rgba(116, 140, 255, 0.34),
    0 8px 18px rgba(6, 8, 18, 0.32);
  opacity: calc(0.5 + var(--cursor-speed, 0) * 0.2);
  transform: scale(calc(1.05 + var(--cursor-speed, 0) * 0.18));
  transition: transform 0.25s ease, opacity 0.25s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.cursor__trail {
  width: 52px;
  height: 18px;
  margin: auto;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    hsla(var(--cursor-hue), 92%, 68%, 0.35),
    hsla(calc(var(--cursor-hue) + 22), 92%, 62%, 0.08)
  );
  filter: blur(8px);
  opacity: calc(0.18 + var(--cursor-speed, 0) * 0.4);
  transform: translateX(calc(-66% - var(--trail-offset, 0px)))
    scaleX(calc(0.65 + var(--cursor-speed, 0) * 1.5))
    scaleY(calc(0.7 + var(--cursor-speed, 0) * 0.2));
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cursor--nova.is-pressed .cursor__dot {
  transform: scale(calc(1.04 + var(--cursor-speed, 0) * 0.28));
  box-shadow: 0 0 24px rgba(140, 168, 255, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.28);
}

.cursor--nova.is-pressed .cursor__halo {
  opacity: calc(0.66 + var(--cursor-speed, 0) * 0.24);
  transform: scale(calc(1.18 + var(--cursor-speed, 0) * 0.12));
}

.cursor--nova.is-pressed .cursor__trail {
  opacity: calc(0.3 + var(--cursor-speed, 0) * 0.45);
}

.cursor--nova[data-mode="accent"] .cursor__halo {
  border-color: rgba(255, 176, 206, 0.5);
  box-shadow: inset 0 0 18px rgba(255, 176, 206, 0.3);
}

.cursor--nova[data-mode="accent"] .cursor__trail {
  background: linear-gradient(
    90deg,
    rgba(255, 176, 206, 0.38),
    rgba(255, 255, 255, 0)
  );
}

.cursor--nova[data-mode="accent"] .cursor__dot {
  box-shadow: 0 0 22px rgba(255, 176, 206, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.28);
}

.cursor--nova[data-mode="soft"] .cursor__halo {
  border-color: rgba(126, 206, 255, 0.45);
  box-shadow: inset 0 0 18px rgba(126, 206, 255, 0.26);
}

.cursor--nova[data-mode="soft"] .cursor__trail {
  background: linear-gradient(
    90deg,
    rgba(126, 206, 255, 0.34),
    rgba(255, 255, 255, 0)
  );
}

.cursor--nova[data-mode="focus"] .cursor__halo {
  border-color: rgba(182, 210, 255, 0.5);
  box-shadow: inset 0 0 20px rgba(182, 210, 255, 0.3);
}

.cursor--nova[data-mode="focus"] .cursor__trail {
  background: linear-gradient(
    90deg,
    rgba(182, 210, 255, 0.38),
    rgba(255, 255, 255, 0)
  );
}

.cursor--nova[data-mode="focus"] .cursor__dot {
  box-shadow: 0 0 22px rgba(182, 210, 255, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.28);
}

body[data-cursor="interactive"] .cursor--nova {
  filter: drop-shadow(0 0 20px rgba(120, 170, 255, 0.52));
}

.nav {
  position: sticky;
  top: 24px;
  z-index: 4;
  margin: 24px auto;
  width: min(94%, var(--max-width));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-radius: var(--radius-medium);
  background: linear-gradient(
    135deg,
    rgba(22, 26, 46, 0.92),
    rgba(12, 15, 30, 0.82)
  );
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav__brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav__menu {
  display: flex;
  gap: 1.5rem;
}

.nav__menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent-active);
  transition: width 0.25s ease;
}

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

.nav__menu a:hover::after,
.nav__menu a:focus-visible::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 6px;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-secondary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

section {
  width: min(94%, var(--max-width));
  margin: 0 auto;
  padding: 120px 0 40px;
  position: relative;
  z-index: 3;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 80px;
  max-width: 880px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-active);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  color: var(--text-primary);
  line-height: 1.08;
  margin: 0 0 24px;
}

.hero p {
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 28px;
  color: var(--text-secondary);
}

.hero__stats {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__stats li {
  flex: 1 1 220px;
  min-width: 220px;
  padding: 18px 22px;
  border-radius: var(--radius-medium);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(
    160deg,
    rgba(18, 22, 40, 0.85),
    rgba(12, 16, 32, 0.76)
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.hero__stats li::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at 20% 0%,
    rgba(99, 102, 241, 0.22),
    transparent 78%
  );
  opacity: 0.8;
  pointer-events: none;
}

.hero__stats-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.66);
  margin-bottom: 10px;
  display: inline-block;
}

.hero__stats-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
  z-index: 1;
}

.hero__principles {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
  color: var(--text-secondary);
}

.hero__principles li {
  padding: 18px 22px;
  border-radius: var(--radius-medium);
  border: 1px solid rgba(109, 111, 248, 0.2);
  background: linear-gradient(
    150deg,
    rgba(23, 27, 52, 0.9),
    rgba(14, 18, 34, 0.78)
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.hero__principles li::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    260px circle at 20% 0%,
    rgba(99, 102, 241, 0.18),
    transparent 72%
  );
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

.hero__cta {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  background: var(--accent-active);
  color: #f8fafc;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 14px 32px -22px var(--accent-active);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px -20px var(--accent-active);
}

.btn--ghost {
  background: rgba(15, 20, 38, 0.75);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(109, 111, 248, 0.35);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  box-shadow: inset 0 0 0 1px var(--accent-active);
  background: rgba(18, 24, 46, 0.85);
}

.panel {
  padding-top: 100px;
}

.panel__header {
  max-width: 720px;
  margin-bottom: 40px;
}

.panel__eyebrow {
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-active);
  margin-bottom: 16px;
}

.panel__header h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.panel__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.panel__grid p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.panel__card {
  padding: 32px;
  border-radius: var(--radius-large);
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    165deg,
    rgba(24, 28, 58, 0.9),
    rgba(16, 20, 40, 0.78)
  );
  border: 1px solid rgba(109, 111, 248, 0.16);
  box-shadow: 0 32px 80px -46px rgba(3, 6, 20, 0.85);
}

.panel__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at 80% 20%,
    rgba(45, 212, 191, 0.22),
    transparent 78%
  );
  opacity: 0.7;
  pointer-events: none;
}

.panel__card > * {
  position: relative;
  z-index: 1;
}

.panel__card h3 {
  margin: 0 0 20px;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.panel__card ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
}

.timeline {
  position: relative;
  padding-left: 32px;
  display: grid;
  gap: 48px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10px;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.32),
    rgba(99, 102, 241, 0)
  );
}

.timeline__item {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-medium);
  background: linear-gradient(
    170deg,
    rgba(26, 31, 63, 0.92),
    rgba(18, 22, 44, 0.78)
  );
  border: 1px solid rgba(109, 111, 248, 0.16);
  box-shadow: 0 36px 90px -48px rgba(3, 6, 21, 0.85);
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.timeline__item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at 0% 10%,
    rgba(109, 111, 248, 0.24),
    transparent 75%
  );
  opacity: 0.75;
  pointer-events: none;
}

.timeline__item > * {
  position: relative;
  z-index: 1;
}

.timeline__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline__marker {
  position: absolute;
  left: -32px;
  top: 36px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent-active);
  box-shadow: 0 0 0 8px rgba(109, 111, 248, 0.18);
}

.timeline__content h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.timeline__meta {
  margin: 0 0 18px;
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent-active);
  text-transform: uppercase;
}

.timeline__content ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  line-height: 1.7;
}

.panel--projects .projects {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  padding: 38px;
  border-radius: var(--radius-large);
  position: relative;
  overflow: hidden;
  background: linear-gradient(
      150deg,
      rgba(18, 16, 48, 0.92),
      rgba(24, 20, 62, 0.86) 50%,
      rgba(32, 16, 68, 0.88)
    ),
    radial-gradient(
      420px circle at 12% -22%,
      rgba(129, 140, 248, 0.18),
      transparent 70%
    );
  border: 1px solid rgba(138, 132, 255, 0.24);
  box-shadow: 0 46px 110px -40px rgba(4, 8, 28, 0.92);
  display: grid;
  gap: 22px;
  opacity: 0;
  transform: translateY(26px);
  transition: transform 0.5s ease, opacity 0.6s ease, border-color 0.5s ease,
    box-shadow 0.5s ease;
}

.project-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--cursor-x, 50%) var(--cursor-y, 50%),
    rgba(129, 140, 248, 0.22),
    transparent 78%
  );
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(129, 140, 248, 0.35),
    rgba(45, 212, 191, 0.2),
    rgba(236, 72, 153, 0.25)
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-16px);
  border-color: rgba(167, 160, 255, 0.45);
  box-shadow: 0 54px 120px -40px rgba(9, 12, 36, 0.95);
}

.project-card:hover::before,
.project-card:focus-within::before {
  opacity: 1;
  transform: scale(1.1);
}

.project-card:hover::after,
.project-card:focus-within::after {
  opacity: 0.75;
}

.project-card:active {
  transform: translateY(-6px) scale(0.99);
}

.project-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-card h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.18);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-card__summary {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 13px;
  color: var(--text-secondary);
}

.project-card__summary li {
  line-height: 1.68;
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-card__tech li {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(24, 28, 56, 0.7);
  border: 1px solid rgba(138, 132, 255, 0.22);
  color: var(--text-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.project-card:hover .project-card__tech li,
.project-card:focus-within .project-card__tech li {
  background: rgba(99, 102, 241, 0.24);
  border-color: rgba(167, 160, 255, 0.42);
  color: var(--text-primary);
}

.project-card__code {
  position: relative;
  padding: 20px 24px 18px 52px;
  border-radius: var(--radius-medium);
  background: linear-gradient(
    140deg,
    rgba(12, 14, 34, 0.92),
    rgba(16, 18, 40, 0.86)
  );
  border: 1px solid rgba(129, 140, 248, 0.22);
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.08);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.8rem;
  color: rgba(226, 232, 255, 0.9);
  display: grid;
  gap: 6px;
  overflow: hidden;
}

.project-card__code::before {
  content: "stack.trace";
  position: absolute;
  top: 12px;
  right: 22px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 196, 0.55);
}

.project-card__code::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at 12% 0%,
    rgba(129, 140, 248, 0.22),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-card__code::after,
.project-card:focus-within .project-card__code::after {
  opacity: 1;
}

.project-card__code span {
  position: relative;
  padding-left: calc(var(--indent, 0) * 1.4rem);
  display: block;
  color: inherit;
}

.project-card__code span::before {
  content: attr(data-line);
  position: absolute;
  left: -2.4rem;
  top: 0;
  color: rgba(148, 163, 196, 0.5);
  letter-spacing: 0.08em;
}

.project-card:hover .project-card__code,
.project-card:focus-within .project-card__code {
  border-color: rgba(167, 160, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(167, 160, 255, 0.24);
}

.panel--mosaic .mosaic {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mosaic__card {
  padding: 32px;
  border-radius: var(--radius-medium);
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    rgba(22, 26, 48, 0.9),
    rgba(14, 17, 33, 0.78)
  );
  border: 1px solid rgba(109, 111, 248, 0.16);
  box-shadow: 0 28px 70px -44px rgba(6, 10, 30, 0.82);
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.mosaic__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    280px circle at 10% 20%,
    rgba(251, 113, 133, 0.2),
    transparent 75%
  );
  opacity: 0.75;
  pointer-events: none;
}

.mosaic__card > * {
  position: relative;
  z-index: 1;
}

.mosaic__card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mosaic__card h3 {
  margin: 0 0 14px;
  color: var(--text-primary);
}

.mosaic__card ul {
  margin: 0 0 16px;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  color: var(--text-secondary);
}

.mosaic__card ul li {
  line-height: 1.6;
}

.mosaic__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel--recognition .recognition {
  padding: 36px;
  border-radius: var(--radius-large);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.panel--recognition ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 12px;
  line-height: 1.6;
}

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

.skills__group {
  padding: 28px;
  border-radius: var(--radius-medium);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 42px -40px rgba(15, 23, 42, 0.55);
  opacity: 0;
  transform: translateY(22px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.skills__group.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.skills__group h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.skills__group ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  line-height: 1.6;
}

.panel--vision .vision {
  padding: 48px;
  border-radius: var(--radius-large);
  background: linear-gradient(
    145deg,
    rgba(124, 58, 237, 0.14),
    rgba(124, 58, 237, 0)
  );
  border: 1px solid rgba(124, 58, 237, 0.2);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.panel--vision .vision.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.panel--vision p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.8;
}

.footer {
  width: min(94%, var(--max-width));
  margin: 120px auto 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--text-tertiary);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: rgba(129, 140, 248, 0.16);
  color: var(--accent-active);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease, transform 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--text-primary);
  background: var(--accent-active);
  border-color: rgba(129, 140, 248, 0.6);
  box-shadow: 0 16px 42px -28px rgba(99, 102, 241, 0.65);
  transform: translateY(-1px);
}

.back-to-top:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.65);
  outline-offset: 3px;
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .timeline {
    padding-left: 16px;
  }

  .panel--projects .projects,
  .panel--mosaic .mosaic {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .skills {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 820px) {
  .nav {
    padding: 16px 22px;
  }

  .nav__menu {
    position: absolute;
    inset: 92px 0 auto 0;
    margin: 0;
    padding: 18px 22px;
    flex-direction: column;
    gap: 14px;
    background: var(--bg-surface-strong);
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    width: calc(100% - 48px);
    margin-inline: 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav__menu.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav__toggle {
    display: flex;
  }

  .project-card__code {
    padding: 18px 22px 16px 46px;
  }

  .project-card__code span::before {
    left: -2.2rem;
  }
}

@media (max-width: 640px) {
  section {
    padding-top: 80px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__principles li,
  .hero__stats li,
  .panel__card,
  .timeline__item,
  .project-card,
  .mosaic__card,
  .skills__group,
  .panel--vision .vision {
    padding: 24px;
  }

  .project-card__code {
    padding: 18px 18px 16px 44px;
  }

  .project-card__code span::before {
    left: -2rem;
  }

  .hero__stats li {
    min-width: auto;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) and (hover: none) and (pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .background {
    display: none;
  }
}
