:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0a1729;
  --panel: rgba(13, 28, 49, 0.72);
  --panel-strong: rgba(18, 38, 66, 0.84);
  --line: rgba(151, 184, 222, 0.18);
  --line-strong: rgba(151, 184, 222, 0.34);
  --text: #edf6ff;
  --muted: #aabed4;
  --soft: #7f99b6;
  --accent: #5ee7ff;
  --accent-2: #7c5cff;
  --accent-3: #55f0a8;
  --danger: #ff7d9f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shell: min(1120px, calc(100vw - 40px));
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(94, 231, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(124, 92, 255, 0.18), transparent 34rem),
    linear-gradient(180deg, #07111f 0%, #07111f 48%, #091625 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(151, 184, 222, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 184, 222, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 92%);
}

body.nav-open {
  overflow: hidden;
}

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

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

::selection {
  color: #06111f;
  background: var(--accent);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 14px;
  z-index: 999;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #06111f;
  font-weight: 800;
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.network-canvas {
  position: fixed;
  inset: 0;
  z-index: -4;
  opacity: 0.55;
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: -3;
  width: 36rem;
  height: 36rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.16;
  pointer-events: none;
}

.ambient-one {
  left: -10rem;
  top: 28rem;
  background: var(--accent);
}

.ambient-two {
  right: -12rem;
  bottom: 12rem;
  background: var(--accent-2);
}

.cursor-glow {
  position: fixed;
  z-index: -2;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(94, 231, 255, 0.14), transparent 66%);
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity 240ms ease;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: padding 240ms var(--ease), background 240ms var(--ease), border-color 240ms var(--ease), backdrop-filter 240ms var(--ease);
}

.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(7, 17, 31, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(94, 231, 255, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(94, 231, 255, 0.18), rgba(124, 92, 255, 0.14)),
    rgba(12, 27, 47, 0.74);
  box-shadow: 0 0 28px rgba(94, 231, 255, 0.12);
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.55);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-links a:active {
  transform: translateY(1px);
}

.nav-links .nav-cta {
  color: #06111f;
  background: linear-gradient(135deg, var(--accent), #c8fbff);
}

.nav-links .nav-cta:hover {
  color: #06111f;
  background: linear-gradient(135deg, #b5f7ff, var(--accent));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 17, 31, 0.74);
  color: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.page {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: 100svh;
  padding-top: 118px;
  padding-bottom: 72px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pulse-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(85, 240, 168, 0.42);
  animation: pulse 1800ms infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(85, 240, 168, 0.42); }
  70% { box-shadow: 0 0 0 12px rgba(85, 240, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(85, 240, 168, 0); }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3.15rem, 8vw, 6.85rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.hero-intro {
  max-width: 700px;
  margin-bottom: 30px;
  color: #cfe0f3;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 850;
  letter-spacing: -0.015em;
  overflow: hidden;
  transition: transform 180ms var(--ease), border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.28) 42%, transparent 64%);
  transform: translateX(-120%);
  transition: transform 560ms var(--ease);
}

.button:hover::after {
  transform: translateX(120%);
}

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

.button:active {
  transform: translateY(0);
}

.button.primary {
  color: #06111f;
  background: linear-gradient(135deg, var(--accent), #d7fbff);
  box-shadow: 0 20px 45px rgba(94, 231, 255, 0.18);
}

.button.ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.button.large {
  min-height: 56px;
  padding-inline: 25px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
  margin: 42px 0 0;
}

.quick-facts div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.quick-facts dt {
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 0;
  color: #e8f3ff;
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.35;
}

.hero-panel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(7, 17, 31, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(94, 231, 255, 0.34), transparent 26%, rgba(124, 92, 255, 0.28) 74%, transparent);
  opacity: 0.7;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(85, 240, 168, 0.28);
  border-radius: 999px;
  color: #b7ffd9;
  background: rgba(85, 240, 168, 0.08);
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-3);
}

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

.metric-card {
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 22, 39, 0.74);
}

.metric-card strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.48;
}

.terminal-card {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(4, 10, 18, 0.78);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.terminal-bar span:nth-child(1) { background: var(--danger); }
.terminal-bar span:nth-child(2) { background: #ffd166; }
.terminal-bar span:nth-child(3) { background: var(--accent-3); }

.terminal-card p {
  margin: 0;
  color: #e9f5ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.65;
}

.terminal-prompt {
  color: var(--accent);
}

.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 30px;
}

.section-heading.compact {
  display: block;
  max-width: 780px;
}

.section-heading h2,
.section-heading p:last-child {
  margin-bottom: 0;
}

.section-heading > p:last-child {
  max-width: 520px;
}

.about-card,
.looking-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(94, 231, 255, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.about-card {
  max-width: 980px;
  padding: clamp(26px, 5vw, 56px);
}

.about-card p {
  max-width: 900px;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.about-card p:last-child,
.contact-card p:last-child,
.looking-card p:last-child {
  margin-bottom: 0;
}

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

.impact-card,
.stack-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  transition: transform 240ms var(--ease), border-color 240ms ease, background 240ms ease;
}

.impact-card::before,
.stack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 30%), rgba(94, 231, 255, 0.13), transparent 34%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.impact-card:hover,
.stack-card:hover {
  transform: translateY(-5px);
  border-color: rgba(94, 231, 255, 0.36);
  background: var(--panel-strong);
}

.impact-card:hover::before,
.stack-card:hover::before {
  opacity: 1;
}

.card-index {
  display: inline-flex;
  margin-bottom: 50px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.impact-card h3,
.stack-card h3 {
  position: relative;
}

.impact-card p,
.stack-card p {
  position: relative;
  margin-bottom: 0;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d9e9fa;
  background: rgba(255, 255, 255, 0.045);
  font-weight: 750;
  transition: transform 180ms var(--ease), border-color 180ms ease, background 180ms ease;
}

.skill-cloud span:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 231, 255, 0.34);
  background: rgba(94, 231, 255, 0.075);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.timeline-date {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-meta {
  margin-bottom: 18px;
  color: #c4d5e8;
  font-weight: 680;
}

.timeline ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.62;
}

.timeline li::marker {
  color: var(--accent);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
}

.split-section .section-heading {
  display: block;
  margin-bottom: 0;
}

.sticky-heading {
  position: sticky;
  top: 112px;
}

.stack-grid {
  display: grid;
  gap: 14px;
}

.stack-card {
  min-height: auto;
}

.looking-card,
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.62fr);
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 5vw, 54px);
}

.contact-card {
  background:
    radial-gradient(circle at 88% 16%, rgba(85, 240, 168, 0.12), transparent 28rem),
    linear-gradient(135deg, rgba(94, 231, 255, 0.09), rgba(124, 92, 255, 0.08)),
    rgba(255, 255, 255, 0.045);
}

.contact-actions {
  justify-content: flex-start;
}

.privacy-note {
  width: 100%;
  margin: 4px 0 0;
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 42px;
  color: var(--soft);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: inherit;
  font-size: 0.92rem;
}

.site-footer a {
  color: #dcecff;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}

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

@media (max-width: 980px) {
  .hero,
  .section-heading,
  .split-section,
  .looking-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 136px;
  }

  .hero-panel {
    max-width: 640px;
  }

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

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100vw - 28px, 1120px);
  }

  .brand-copy span {
    display: none;
  }

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

  .nav-links {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 72px;
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(7, 17, 31, 0.94);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms var(--ease);
  }

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

  .nav-links a {
    justify-content: flex-start;
    min-height: 48px;
  }

  .quick-facts,
  .metric-grid,
  .impact-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 5rem);
  }

  .metric-card {
    min-height: 128px;
  }

  .card-index {
    margin-bottom: 28px;
  }

  .impact-card {
    min-height: auto;
  }

  .timeline-item {
    gap: 12px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .hero-panel,
  .about-card,
  .looking-card,
  .contact-card,
  .timeline-item,
  .impact-card,
  .stack-card {
    border-radius: 18px;
  }
}

@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;
  }

  .network-canvas,
  .cursor-glow {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
