* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  --ink: #f8fafc;
  --muted: rgba(226, 232, 240, 0.72);
  --soft: rgba(12, 18, 34, 0.92);
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.32);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  --container: min(1180px, calc(100vw - 40px));
  --panel: rgba(8, 13, 28, 0.97);
  --panel-2: rgba(16, 24, 44, 0.94);
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background: #030712;
  scrollbar-width: none;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: clip;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: #030712;
  line-height: 1.5;
}

* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
}

noscript {
  display: block;
  padding: 2rem;
  color: #fff;
}

.cursor-system {
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
  opacity: 0;
  display: none;
  transition: opacity 180ms ease;
}

.cursor-system.visible {
  display: block;
  opacity: 1;
}

.cursor-system.default {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%2365CE23' stroke='%23F8FFF2' stroke-width='2' d='M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z'%3E%3C/path%3E%3C/svg%3E") 10 10, auto !important;
}

.cursor-system.button {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%2365CE23' stroke='%23F8FFF2' stroke-width='2' stroke-linejoin='round' d='M10 11V8.99c0-.88.59-1.64 1.44-1.86h.05A1.99 1.99 0 0 1 14 9.05V12v-2c0-.88.6-1.65 1.46-1.87h.05A1.98 1.98 0 0 1 18 10.06V13v-1.94a2 2 0 0 1 1.51-1.94h0A2 2 0 0 1 22 11.06V14c0 .6-.08 1.27-.21 1.97a7.96 7.96 0 0 1-7.55 6.48 54.98 54.98 0 0 1-4.48 0 7.96 7.96 0 0 1-7.55-6.48C2.08 15.27 2 14.59 2 14v-1.49c0-1.11.9-2.01 2.01-2.01h0a2 2 0 0 1 2.01 2.03l-.01.97v-10c0-1.1.9-2 2-2h0a2 2 0 0 1 2 2V11Z'%3E%3C/path%3E%3C/svg%3E") 10 10, pointer !important;
}

.cursor-system.loading {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%2365CE23' stroke='%23F8FFF2' stroke-width='2' d='M16.95 3h-9.9a2.06 2.06 0 0 0-1.34 3.62L11.99 12l6.28-5.38A2.06 2.06 0 0 0 16.93 3ZM7.05 21h9.89c1.9 0 2.78-2.38 1.34-3.62L12 12l-6.28 5.38A2.06 2.06 0 0 0 7.06 21Z'%3E%3C/path%3E%3C/svg%3E") 10 10, wait !important;
}

.cursor-system.press {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%23F8FFF2' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Z'%3E%3C/path%3E%3Cpath fill='%2365CE23' d='M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 14a6 6 0 0 1-4.88-9.47l8.36 8.36A5.95 5.95 0 0 1 12.01 18Zm4.88-2.53L8.53 7.11a6 6 0 0 1 8.35 8.36Z'%3E%3C/path%3E%3C/svg%3E") 10 10, not-allowed !important;
}

.cursor-ring,
.cursor-dot,
.cursor-trail {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
}

.cursor-ring,
.cursor-dot,
.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
}

.cursor-ring {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(153, 246, 228, 0.85);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 65%),
    radial-gradient(circle at 30% 30%, rgba(249, 168, 212, 0.08), transparent 50%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 28px rgba(45, 212, 191, 0.32),
    0 0 56px rgba(56, 189, 248, 0.18),
    inset 0 0 20px rgba(249, 168, 212, 0.12);
  mix-blend-mode: screen;
  animation: cursorGlow 3s ease-in-out infinite alternate;
}

.cursor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0f2fe, #99f6e4);
  box-shadow:
    0 0 16px rgba(224, 242, 254, 0.95),
    0 0 32px rgba(45, 212, 191, 0.48),
    0 0 48px rgba(56, 189, 248, 0.24);
  animation: cursorPulse 2s ease-in-out infinite;
}

.cursor-trail {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(249, 168, 212, 0.6);
  box-shadow: 0 0 12px rgba(249, 168, 212, 0.8);
  opacity: 0.7;
  animation: cursorTrail 0.8s ease-out forwards;
}

.cursor-system.default .cursor-ring,
.cursor-system.default .cursor-dot,
.cursor-system.loading .cursor-ring,
.cursor-system.loading .cursor-dot,
.cursor-system.press .cursor-ring,
.cursor-system.press .cursor-dot {
  display: none;
}

.cursor-system.button .cursor-ring,
.cursor-system.button .cursor-dot {
  display: block;
}

.cursor-system.button .cursor-dot,
.cursor-system.press .cursor-dot {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #f9a8d4, #99f6e4);
  box-shadow:
    0 0 20px rgba(249, 168, 212, 0.95),
    0 0 40px rgba(45, 212, 191, 0.6),
    0 0 60px rgba(56, 189, 248, 0.3);
}

.cursor-system.press .cursor-ring {
  border-color: rgba(224, 242, 254, 0.95);
  background:
    radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 75%),
    rgba(249, 168, 212, 0.1);
  box-shadow:
    0 0 24px rgba(224, 242, 254, 0.45),
    0 0 48px rgba(45, 212, 191, 0.35),
    inset 0 0 28px rgba(249, 168, 212, 0.2);
  animation: cursorGlow 1.5s ease-in-out infinite alternate, cursorShrink 0.15s ease-out;
}

.cursor-system.loading .cursor-ring {
  border-color: rgba(249, 168, 212, 0.95);
  border-top-color: rgba(153, 246, 228, 0.25);
  animation: cursorSpin 0.8s linear infinite, cursorGlow 2s ease-in-out infinite alternate;
}

.cursor-system.loading .cursor-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #f9a8d4, #e0f2fe);
  box-shadow:
    0 0 16px rgba(249, 168, 212, 0.95),
    0 0 32px rgba(45, 212, 191, 0.4),
    0 0 48px rgba(56, 189, 248, 0.2);
}

.scroll-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-size: 150% 150%;
  animation: backgroundPulse 18s ease-in-out infinite alternate;
}

.scroll-background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(circle at 50% 46%, transparent 0 32%, rgba(3, 7, 18, 0.12) 68%, rgba(3, 7, 18, 0.56) 100%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.08), rgba(3, 7, 18, 0.36));
}

.background-aura {
  position: absolute;
  z-index: 1;
  width: clamp(260px, 38vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(38px);
  opacity: 0.28;
  mix-blend-mode: screen;
  will-change: transform;
}

.aura-one {
  top: 4%;
  left: 2%;
  background: radial-gradient(circle, rgba(224, 242, 254, 0.45), transparent 68%);
  animation: auraOne 16s ease-in-out infinite alternate;
}

.aura-two {
  right: -4%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(249, 168, 212, 0.34), transparent 68%);
  animation: auraTwo 20s ease-in-out infinite alternate;
}

.aura-three {
  left: 34%;
  bottom: -12%;
  background: radial-gradient(circle, rgba(153, 246, 228, 0.34), transparent 70%);
  animation: auraThree 18s ease-in-out infinite alternate;
}

.background-noise {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0.1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.38) 0 1px, transparent 1px);
  background-size: 37px 37px, 53px 53px;
  mix-blend-mode: overlay;
}

.floating-element {
  position: absolute;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.08);
  font-weight: 300;
  pointer-events: none;
  z-index: 1;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.1em;
}

@media (pointer: fine) {
  body.custom-cursor-active {
    cursor: none !important;
  }

  body.cursor-default,
  body.cursor-default * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%2365CE23' stroke='%23F8FFF2' stroke-width='2' d='M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z'%3E%3C/path%3E%3C/svg%3E") 10 10, auto !important;
  }

  body.cursor-button button,
  body.cursor-button a,
  body.cursor-button [data-cursor],
  body.cursor-button button *,
  body.cursor-button a *,
  body.cursor-button [data-cursor] * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%2365CE23' stroke='%23F8FFF2' stroke-width='2' stroke-linejoin='round' d='M10 11V8.99c0-.88.59-1.64 1.44-1.86h.05A1.99 1.99 0 0 1 14 9.05V12v-2c0-.88.6-1.65 1.46-1.87h.05A1.98 1.98 0 0 1 18 10.06V13v-1.94a2 2 0 0 1 1.51-1.94h0A2 2 0 0 1 22 11.06V14c0 .6-.08 1.27-.21 1.97a7.96 7.96 0 0 1-7.55 6.48 54.98 54.98 0 0 1-4.48 0 7.96 7.96 0 0 1-7.55-6.48C2.08 15.27 2 14.59 2 14v-1.49c0-1.11.9-2.01 2.01-2.01h0a2 2 0 0 1 2.01 2.03l-.01.97v-10c0-1.1.9-2 2-2h0a2 2 0 0 1 2 2V11Z'%3E%3C/path%3E%3C/svg%3E") 10 10, pointer !important;
  }

  body.cursor-loading button,
  body.cursor-loading a,
  body.cursor-loading [data-cursor],
  body.cursor-loading button *,
  body.cursor-loading a *,
  body.cursor-loading [data-cursor] * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%2365CE23' stroke='%23F8FFF2' stroke-width='2' d='M16.95 3h-9.9a2.06 2.06 0 0 0-1.34 3.62L11.99 12l6.28-5.38A2.06 2.06 0 0 0 16.93 3ZM7.05 21h9.89c1.9 0 2.78-2.38 1.34-3.62L12 12l-6.28 5.38A2.06 2.06 0 0 0 7.06 21Z'%3E%3C/path%3E%3C/svg%3E") 10 10, wait !important;
  }

  body.cursor-press button,
  body.cursor-press a,
  body.cursor-press [data-cursor],
  body.cursor-press button *,
  body.cursor-press a *,
  body.cursor-press [data-cursor] * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%23F8FFF2' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Z'%3E%3C/path%3E%3Cpath fill='%2365CE23' d='M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 14a6 6 0 0 1-4.88-9.47l8.36 8.36A5.95 5.95 0 0 1 12.01 18Zm4.88-2.53L8.53 7.11a6 6 0 0 1 8.35 8.36Z'%3E%3C/path%3E%3C/svg%3E") 10 10, not-allowed !important;
  }
}

.site-nav {
  position: fixed;
  top: clamp(12px, 2.4vh, 22px);
  left: 50%;
  z-index: 1000;
  width: var(--container);
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 13, 28, 0.86);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px) saturate(150%);
  transform: translateX(-50%);
  transition: opacity 220ms ease, transform 280ms ease;
}

.site-nav.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -145%);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  justify-self: end;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(249, 168, 212, 0.12)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  grid-area: 1 / 1;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #f8fafc;
  transition: transform 220ms ease, opacity 180ms ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
}

.nav-pill {
  justify-self: end;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-pill button {
  position: relative;
  z-index: 1;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 0.85rem;
  color: rgba(226, 232, 240, 0.76);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  background: transparent;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-pill button:hover,
.nav-pill button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-pill button.active {
  color: #061018;
  background: linear-gradient(135deg, #e0f2fe, #99f6e4 48%, #f9a8d4);
  box-shadow: 0 10px 24px rgba(45, 212, 191, 0.18);
}

.scroll-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #a7f3d0, #f9a8d4);
  transform-origin: 0 50%;
}

.story-scroll {
  position: relative;
  z-index: 2;
}

.story-section {
  --section-bg:
    linear-gradient(135deg, rgba(6, 12, 30, 0.98), rgba(12, 20, 42, 0.98));
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6.1rem, 9vh, 7.4rem) 0 clamp(1rem, 2.5vw, 2rem);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  perspective: 1200px;
  isolation: isolate;
  overflow: hidden;
}

.story-section.hero {
  --section-bg:
    linear-gradient(145deg, rgba(4, 9, 23, 0.99), rgba(13, 25, 50, 0.99) 48%, rgba(13, 35, 42, 0.99));
}

.story-section.aurora {
  --section-bg:
    linear-gradient(145deg, rgba(3, 18, 29, 0.99), rgba(7, 42, 66, 0.99) 52%, rgba(10, 18, 36, 0.99));
}

.story-section.ember {
  --section-bg:
    linear-gradient(145deg, rgba(20, 25, 36, 0.99), rgba(61, 30, 9, 0.99) 48%, rgba(9, 12, 22, 0.99));
}

.story-section.violet {
  --section-bg:
    linear-gradient(145deg, rgba(13, 11, 27, 0.99), rgba(45, 25, 82, 0.99) 52%, rgba(12, 18, 36, 0.99));
}

.story-section.mint {
  --section-bg:
    linear-gradient(145deg, rgba(2, 20, 24, 0.99), rgba(18, 73, 44, 0.99) 48%, rgba(5, 10, 22, 0.99));
}

.section-stage {
  position: relative;
  width: min(100%, var(--container));
  height: min(720px, calc(100svh - clamp(8.1rem, 13vh, 9.6rem)));
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(250px, 0.82fr);
  align-items: center;
  gap: clamp(1.15rem, 4vw, 4.2rem);
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.14), transparent 28%),
    var(--section-bg);
  background-color: var(--panel);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.section-stage::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  pointer-events: none;
  border-radius: 25px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 24%, transparent 72%, rgba(255, 255, 255, 0.06)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 96px);
  opacity: 0.42;
}

.section-stage::after {
  content: "";
  position: absolute;
  inset: auto 12% 0;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 243, 208, 0.9), transparent);
  box-shadow: 0 0 36px rgba(45, 212, 191, 0.36);
}

.section-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.kicker {
  display: inline-flex;
  margin-bottom: clamp(0.45rem, 1.2vh, 1rem);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.82);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  font-size: clamp(2.6rem, 7.8vw, 7.3rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.story-section:not(.hero) h1 {
  max-width: 12ch;
  font-size: clamp(2.15rem, 5.35vw, 5rem);
  line-height: 0.98;
}

.lead {
  max-width: 62ch;
  margin-top: clamp(0.7rem, 1.6vh, 1.2rem);
  color: var(--muted);
  font-size: clamp(0.9rem, 1.25vw, 1.08rem);
}

.actions,
.point-row,
.skill-cloud,
.project-stack,
.contact-row,
.metric-grid {
  margin-top: 1.6rem;
}

.section-stage .section-copy > *,
.section-stage .visual-wrap {
  will-change: opacity, transform;
}

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

.premium-btn {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 1.25rem;
  color: #051018;
  cursor: pointer;
  font-weight: 850;
  background: linear-gradient(135deg, #e0f2fe, #99f6e4 46%, #f9a8d4);
  box-shadow: 0 18px 38px rgba(45, 212, 191, 0.18);
  transition: box-shadow 180ms ease, opacity 180ms ease;
}

.premium-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.premium-btn:hover::after {
  transform: translateX(120%);
}

.premium-btn.ghost {
  color: #f8fafc;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.premium-btn:disabled {
  cursor: progress;
  opacity: 0.8;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: rgba(2, 7, 18, 0.72);
  backdrop-filter: blur(18px);
}

.modal-panel {
  width: min(540px, calc(100% - 32px));
  padding: clamp(1.5rem, 2.3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  background: rgba(8, 13, 28, 0.95);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  color: #f8fafc;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.modal-eyebrow {
  color: #99f6e4;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.modal-panel h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  line-height: 1.05;
}

.modal-copy {
  margin: 1.2rem 0 1.6rem;
  color: var(--muted);
  line-height: 1.8;
}

.modal-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

body.modal-open {
  overflow: hidden;
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(5, 16, 24, 0.25);
  border-top-color: #051018;
  border-radius: 999px;
  animation: spin 0.75s linear infinite;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.45rem, 1.2vw, 0.75rem);
}

.metric-card,
.project-card {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 26, 46, 0.98), rgba(9, 14, 29, 0.98));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

.metric-card {
  min-height: clamp(70px, 10vh, 92px);
  padding: clamp(0.6rem, 1.4vw, 0.9rem);
}

.metric-card strong,
.project-card span {
  display: block;
  color: #fff;
  font-weight: 850;
}

.metric-card span,
.project-card small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.point-row,
.skill-cloud,
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.45rem, 1vw, 0.7rem);
}

.point-row span,
.skill-cloud span,
.contact-row a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0 clamp(0.68rem, 1.3vw, 0.9rem);
  color: rgba(248, 250, 252, 0.88);
  background: linear-gradient(180deg, rgba(18, 26, 46, 0.98), rgba(9, 14, 29, 0.98));
  font-size: clamp(0.78rem, 1.2vw, 0.9rem);
  font-weight: 750;
}

.contact-row {
  gap: 0.85rem;
}

.contact-button {
  min-height: 52px;
  gap: 0.68rem;
  padding: 0 1.05rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-button img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

.contact-button.github:hover {
  border-color: rgba(255, 255, 255, 0.56);
  box-shadow: 0 18px 42px rgba(255, 255, 255, 0.12);
}

.contact-button.linkedin {
  background: linear-gradient(135deg, rgba(10, 102, 194, 0.98), rgba(6, 38, 80, 0.98));
}

.contact-button.linkedin:hover {
  border-color: rgba(125, 211, 252, 0.72);
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.26);
}

.contact-button.email {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.98), rgba(13, 67, 61, 0.98));
}

.contact-button.email:hover {
  border-color: rgba(167, 243, 208, 0.82);
  box-shadow: 0 18px 42px rgba(45, 212, 191, 0.24);
}

.project-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 560px;
}

.project-card {
  min-height: 112px;
  padding: 1rem;
  transform-style: preserve-3d;
  transition: border-color 180ms ease, background 180ms ease;
}

.project-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.12);
}

.visual-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.glass-ring {
  position: absolute;
  inset: 2%;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.28), transparent 22%),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 0 70px rgba(255, 255, 255, 0.07),
    0 24px 70px rgba(0, 0, 0, 0.24);
  animation: breathe 6s ease-in-out infinite;
}

.visual {
  position: relative;
  z-index: 2;
  width: min(72%, 270px);
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.34));
}

.portrait {
  width: min(68%, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  object-fit: cover;
}

footer {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  color: rgba(226, 232, 240, 0.68);
  text-align: center;
  background: #030712;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cursorSpin {
  to {
    rotate: 360deg;
  }
}

@keyframes cursorGlow {
  0%, 100% {
    filter: brightness(1) saturate(1);
    box-shadow:
      0 0 28px rgba(45, 212, 191, 0.32),
      0 0 56px rgba(56, 189, 248, 0.18),
      inset 0 0 20px rgba(249, 168, 212, 0.12);
  }
  50% {
    filter: brightness(1.2) saturate(1.3);
    box-shadow:
      0 0 36px rgba(45, 212, 191, 0.42),
      0 0 72px rgba(56, 189, 248, 0.24),
      inset 0 0 24px rgba(249, 168, 212, 0.18);
  }
}

@keyframes cursorPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.9;
  }
}

@keyframes cursorTrail {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.3);
  }
}

@keyframes cursorExpand {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes cursorShrink {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.9);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.98);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes backgroundPulse {
  0% {
    background-position: 0% 42%;
    transform: scale(1);
  }
  100% {
    background-position: 100% 58%;
    transform: scale(1.025);
  }
}

@keyframes auraOne {
  to {
    transform: translate3d(18vw, 12vh, 0) scale(1.14);
  }
}

@keyframes auraTwo {
  to {
    transform: translate3d(-16vw, -10vh, 0) scale(0.9);
  }
}

@keyframes auraThree {
  to {
    transform: translate3d(10vw, -16vh, 0) scale(1.12);
  }
}

@media (max-width: 900px) {
  :root {
    --container: min(calc(100vw - 20px), 680px);
  }

  html {
    scroll-snap-type: y mandatory;
  }

  body.menu-open {
    overflow: hidden;
  }

  .site-nav {
    top: 10px;
    width: min(calc(100vw - 20px), 680px);
    grid-template-columns: 1fr auto;
    border-radius: 999px;
    min-height: 56px;
  }

  .brand {
    justify-content: flex-start;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-pill {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, calc(100vw - 20px));
    display: grid;
    gap: 0.35rem;
    padding: 0.5rem;
    border: 1px solid rgba(167, 243, 208, 0.24);
    border-radius: 20px;
    background:
      radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.18), transparent 36%),
      linear-gradient(180deg, rgba(8, 13, 28, 0.98), rgba(3, 7, 18, 0.98));
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .nav-pill button {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 0 0.9rem;
    border-radius: 14px;
    font-size: 0.9rem;
  }

  .story-section {
    padding-top: 5.15rem;
    padding-bottom: 0.8rem;
  }

  .section-stage {
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "copy";
    align-content: start;
    align-items: stretch;
    gap: clamp(0.45rem, 1.2vh, 0.75rem);
    padding: clamp(0.55rem, 2vw, 0.8rem);
    border-radius: 22px;
  }

  .section-copy {
    grid-area: copy;
    max-width: 100%;
  }

  h1,
  .story-section:not(.hero) h1 {
    max-width: 11ch;
    font-size: clamp(1.95rem, 10vw, 3.6rem);
  }

  .lead {
    font-size: clamp(0.82rem, 3.1vw, 0.95rem);
  }

  .visual-wrap {
    grid-area: visual;
    order: -1;
    width: min(42vw, 172px);
    justify-self: center;
    margin-top: 0.22rem;
    max-height: none;
    aspect-ratio: 1;
  }

  .glass-ring {
    inset: 0;
    box-shadow:
      inset 0 0 42px rgba(255, 255, 255, 0.06),
      0 14px 34px rgba(0, 0, 0, 0.2);
  }

  .visual {
    width: min(80%, 140px);
    max-height: none;
    object-fit: contain;
  }

  .portrait {
    width: min(76%, 128px);
    max-height: none;
  }

  .metric-grid,
  .project-stack {
    grid-template-columns: 1fr;
  }

  .metric-card,
  .project-card {
    min-height: 0;
  }

  .actions,
  .point-row,
  .skill-cloud,
  .project-stack,
  .contact-row,
  .metric-grid {
    margin-top: clamp(0.55rem, 1.6vh, 0.9rem);
  }
}

@media (max-width: 560px) {
  .story-section {
    padding-inline: 0;
  }

  .section-stage {
    grid-template-columns: 1fr;
    padding: 0.5rem;
    border-radius: 20px;
  }

  .actions,
  .premium-btn {
    width: 100%;
  }

  .metric-card {
    min-height: 0;
  }

  .visual-wrap {
    width: min(44vw, 150px);
    margin-top: 0.28rem;
    max-height: none;
  }

  .glass-ring {
    inset: 0;
  }

  .visual {
    width: min(80%, 122px);
    max-height: none;
  }

  .portrait {
    width: min(76%, 112px);
    max-height: none;
  }

  .kicker {
    font-size: 0.62rem;
    padding: 0.26rem 0.5rem;
  }

  .skill-cloud span,
  .point-row span,
  .contact-row a {
    min-height: 34px;
  }

  .premium-btn {
    min-height: 42px;
  }

  .metric-card span,
  .project-card small {
    font-size: 0.76rem;
  }
}

@media (max-width: 380px) {
  :root {
    --container: calc(100vw - 14px);
  }

  .site-nav {
    width: calc(100vw - 14px);
    padding: 0.3rem;
  }

  .brand {
    min-height: 40px;
    padding: 0 0.75rem;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .section-stage {
    grid-template-columns: 1fr;
    padding: 0.42rem;
  }

  .visual-wrap {
    width: min(42vw, 128px);
    margin-top: 0.24rem;
    max-height: none;
  }

  .visual {
    width: min(80%, 104px);
  }

  .portrait {
    width: min(76%, 96px);
  }

  .lead {
    font-size: 0.78rem;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .story-section {
    padding-top: 4.8rem;
    padding-bottom: 0.8rem;
  }

  .section-stage {
    height: calc(100svh - 6.1rem);
    padding: 1.4rem;
  }

  h1 {
    font-size: clamp(2.8rem, 7.4vw, 6.7rem);
  }

  .story-section:not(.hero) h1 {
    font-size: clamp(2.25rem, 5vw, 4.4rem);
  }

  .lead {
    margin-top: 0.9rem;
    font-size: 1rem;
  }

  .actions,
  .point-row,
  .skill-cloud,
  .project-stack,
  .contact-row,
  .metric-grid {
    margin-top: 1rem;
  }

  .visual-wrap {
    width: min(100%, 300px);
  }
}

@media (max-height: 680px) and (min-width: 901px) {
  .section-stage {
    grid-template-columns: minmax(0, 1fr) clamp(86px, 24vw, 132px);
  }
}

@media (max-height: 620px) and (min-width: 901px) {
  .story-section {
    padding-top: 4.6rem;
    padding-bottom: 0.5rem;
  }

  .section-stage {
    height: calc(100svh - 5.2rem);
    padding: 0.75rem;
  }

  h1,
  .story-section:not(.hero) h1 {
    font-size: clamp(1.7rem, 7.5vw, 3.1rem);
  }

  .lead {
    line-height: 1.38;
  }

  .skill-cloud span:nth-child(n + 10) {
    display: none;
  }
}

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

  html {
    scroll-snap-type: none;
  }
}
