:root {
  --bg: #060912;
  --bg-elev: #0c1222;
  --surface: #121a2e;
  --ink: #f4f6fb;
  --muted: #9aa6c0;
  --blue: #3b6cff;
  --blue-bright: #6b92ff;
  --blue-deep: #1a3fd4;
  --line: rgba(255, 255, 255, 0.08);
  --glow: rgba(59, 108, 255, 0.45);
  --max: 1180px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Syne", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 1.4rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(
      1100px 640px at 72% 18%,
      rgba(59, 108, 255, 0.14),
      transparent 58%
    ),
    var(--bg);
  background-size: 104% 104%, 100% 100%;
  background-position: 70% 16%, center;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* Never stretch portfolio / skill assets */
.contain-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(59, 108, 255, 0.12), transparent 55%),
    linear-gradient(160deg, #0a1020, #10182c);
}

.contain-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 108, 255, 0.18), transparent 65%);
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s;
  mix-blend-mode: screen;
}

body:hover .cursor-glow { opacity: 1; }

.page-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 0.85rem 1.25rem;
  transition: padding 0.35s var(--ease);
}

.site-header.scrolled {
  padding: 0.55rem 1.25rem;
}

.header-inner {
  position: relative;
  max-width: calc(var(--max) + 2rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 24, 0.55);
  backdrop-filter: blur(22px) saturate(1.35);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    background 0.35s,
    border-color 0.35s,
    box-shadow 0.35s;
}

.site-header.scrolled .header-inner {
  background: rgba(6, 9, 18, 0.92);
  border-color: rgba(59, 108, 255, 0.22);
  box-shadow:
    0 14px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(59, 108, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  font-size: 0.95rem;
  background: linear-gradient(145deg, var(--blue-bright), var(--blue-deep));
  box-shadow: 0 8px 22px rgba(59, 108, 255, 0.4);
}

.logo-text span { color: var(--blue-bright); }

.nav {
  display: none;
  gap: 0.15rem;
  align-items: center;
  font-weight: 500;
  font-size: 0.9rem;
}

.nav a:not(.nav-cta) {
  position: relative;
  padding: 0.5rem 0.85rem;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.28rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-bright);
  transform: translateX(-50%);
  transition: width 0.28s var(--ease);
}

.nav a:not(.nav-cta):hover,
.nav a:not(.nav-cta).is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.nav a:not(.nav-cta).is-active::after { width: 1.1rem; }

.nav-cta {
  margin-left: 0.35rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 8px 28px rgba(59, 108, 255, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 108, 255, 0.45);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.header-social {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.header-social:hover {
  color: var(--ink);
  border-color: rgba(59, 108, 255, 0.45);
  background: rgba(59, 108, 255, 0.12);
  transform: translateY(-1px);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

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

@media (min-width: 880px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

.nav.open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  left: auto;
  background: rgba(10, 14, 28, 0.96);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 0.65rem;
  min-width: 220px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
  z-index: 60;
}

.nav.open a:not(.nav-cta) {
  padding: 0.75rem 0.9rem;
}

.nav.open .nav-cta {
  margin: 0.35rem 0 0;
  text-align: center;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 8.5rem 1.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% 20%, rgba(59, 108, 255, 0.28), transparent 60%),
    radial-gradient(700px 420px at 10% 80%, rgba(225, 40, 80, 0.12), transparent 55%),
    linear-gradient(180deg, #05080f 0%, #0a1224 55%, #060912 100%);
  will-change: transform;
}

.hero-beam {
  position: absolute;
  top: -20%;
  left: 42%;
  width: 2px;
  height: 140%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(107, 146, 255, 0.45),
    transparent
  );
  transform: rotate(18deg);
  opacity: 0.55;
  filter: blur(0.5px);
  animation: beam-sweep 8s ease-in-out infinite;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: drift 12s ease-in-out infinite;
}

.orb-a {
  width: 320px;
  height: 320px;
  background: rgba(59, 108, 255, 0.35);
  top: 12%;
  right: 18%;
}

.orb-b {
  width: 220px;
  height: 220px;
  background: rgba(255, 80, 120, 0.18);
  bottom: 18%;
  left: 12%;
  animation-delay: -4s;
}

.orb-c {
  width: 160px;
  height: 160px;
  background: rgba(107, 146, 255, 0.22);
  top: 48%;
  left: 38%;
  animation-delay: -7s;
}

.grid-floor {
  position: absolute;
  inset: 55% -10% -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(62deg);
  mask-image: linear-gradient(to bottom, transparent, black 30%, transparent 90%);
  opacity: 0.55;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 1rem 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 108, 255, 0.4);
  background: rgba(59, 108, 255, 0.1);
  color: var(--blue-bright);
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0 0 1.15rem;
  letter-spacing: 0.01em;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dff9a;
  box-shadow: 0 0 12px #3dff9a;
  animation: pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero h1 .line {
  display: block;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.hero h1 .name {
  display: block;
  position: relative;
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  background: linear-gradient(120deg, #fff 18%, var(--blue-bright) 52%, #a8c0ff 88%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: name-sheen 7s ease-in-out infinite;
}

.role {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin: 1rem 0 1rem;
  letter-spacing: -0.03em;
}

.role-static {
  color: var(--ink);
}

.role-rotator {
  position: relative;
  min-height: 1.35em;
  color: var(--blue-bright);
  overflow: hidden;
}

.role-rotator [data-roles] {
  display: inline-block;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.role-rotator.is-swap [data-roles] {
  opacity: 0;
  transform: translateY(0.45em);
}

.lede {
  max-width: 40ch;
  color: var(--muted);
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  color: #fff;
  box-shadow: 0 12px 36px rgba(59, 108, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary span { position: relative; z-index: 1; }

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

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

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(59, 108, 255, 0.5);
  background: rgba(59, 108, 255, 0.1);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero-trust span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* 3D Hero stage */
.hero-stage {
  position: relative;
  width: min(100%, 440px);
  margin-inline: auto;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.stage-orbit {
  position: absolute;
  inset: -6% -8%;
  width: 116%;
  height: 112%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

.orbit-path {
  stroke: rgba(107, 146, 255, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 8 10;
  stroke-linecap: round;
  animation: dash-flow 18s linear infinite;
}

.orbit-node {
  fill: var(--blue-bright);
  filter: drop-shadow(0 0 6px rgba(107, 146, 255, 0.8));
  animation: pulse 2.4s ease-in-out infinite;
}

.orbit-node.n2 { animation-delay: 0.6s; }
.orbit-node.n3 { animation-delay: 1.2s; }

.stage-card {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  background: linear-gradient(160deg, #141c32, #0a1020);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(59, 108, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
}

.portrait {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform: translateZ(40px);
}

.stage-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.18), transparent 40%, transparent 60%, rgba(59, 108, 255, 0.12));
  mix-blend-mode: soft-light;
  pointer-events: none;
  transform: translateZ(50px);
}

.stage-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  top: -30%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(107, 146, 255, 0.12),
    transparent
  );
  pointer-events: none;
  animation: scan-sweep 5.5s ease-in-out infinite;
  mix-blend-mode: screen;
  transform: translateZ(55px);
}

.stage-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(59, 108, 255, 0.35);
  pointer-events: none;
  animation: spin-slow 24s linear infinite;
}

.ring-1 {
  width: 118%;
  height: 70%;
  top: 12%;
  left: -9%;
  transform: rotateX(68deg) translateZ(-40px);
}

.ring-2 {
  width: 100%;
  height: 58%;
  top: 20%;
  left: 0;
  border-color: rgba(255, 255, 255, 0.12);
  animation-direction: reverse;
  animation-duration: 18s;
  transform: rotateX(68deg) translateZ(-20px);
}

.float-chip {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(18, 26, 46, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  animation: float-y 4.5s ease-in-out infinite;
  white-space: nowrap;
  will-change: transform;
}

.float-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 10px rgba(107, 146, 255, 0.8);
  flex-shrink: 0;
}

.chip-1 { top: 12%; left: -8%; animation-delay: 0s; }
.chip-2 { top: 42%; right: -10%; animation-delay: 0.8s; }
.chip-3 { bottom: 14%; left: 4%; animation-delay: 1.4s; }

.stats-rail {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 26, 46, 0.65);
  backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.stat {
  padding: 1.35rem 1rem;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: none; }

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 4.25rem);
  color: var(--blue-bright);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.stat strong [data-count] {
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
}

.stat > span {
  color: var(--muted);
  font-size: 0.85rem;
}

.scroll-cue {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.25s, color 0.25s;
}

.scroll-cue:hover {
  opacity: 1;
  color: var(--ink);
}

.scroll-cue i {
  width: 1.15rem;
  height: 1.8rem;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  position: relative;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--blue-bright);
  transform: translateX(-50%);
  animation: scroll-dot 1.6s ease-in-out infinite;
}

@media (max-width: 600px) {
  .stats-rail { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .float-chip { display: none; }
  .stage-orbit { display: none; }
  .scroll-cue { display: none; }
}

/* Sections */
section { padding: 5.5rem 1.5rem; }

.section-head {
  max-width: var(--max);
  margin: 0 auto 3rem;
}

.section-head.centered { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--blue-bright);
  font-weight: 600;
  margin: 0 0 0.85rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
}

h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

h2 em {
  font-style: normal;
  color: var(--blue-bright);
}

.section-lede {
  max-width: 52ch;
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

.centered .section-lede,
.centered .work-kicker { margin-inline: auto; }

.work-kicker {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 700;
  margin: -0.2rem 0 0.75rem;
  letter-spacing: -0.03em;
}

/* Services */
.services {
  --breath: 0.35;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(59, 108, 255, 0.12), transparent 60%),
    var(--bg);
}

.services .section-head,
.services .service-stack {
  position: relative;
  z-index: 1;
}

.services .breath-world {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.services.is-focused .breath-world {
  opacity: 1;
  visibility: visible;
}

.services .breath-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: 0.55;
}

.services .breath-wash {
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(ellipse 80% 70% at 28% 38%, rgba(59, 108, 255, 0.18), transparent 62%),
    radial-gradient(ellipse 75% 65% at 78% 48%, rgba(90, 130, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 90% 80% at 50% 80%, rgba(225, 70, 110, 0.05), transparent 70%);
  transform: scale(calc(0.96 + var(--breath) * 0.08));
  transform-origin: 50% 42%;
  filter: blur(28px);
}

.services.is-focused .service-stack {
  transform: translate3d(0, calc((var(--breath) - 0.5) * -6px), 0);
  will-change: transform;
}

.service-stack {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.service-panel {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 1.6rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(18, 26, 46, 0.9), rgba(10, 14, 28, 0.95));
  transform-style: preserve-3d;
  overflow: hidden;
}

@media (min-width: 900px) {
  .service-panel {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    padding: 1.75rem;
    gap: 2rem;
  }
  .service-panel.reverse .panel-body { order: 2; }
}

.panel-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(59, 108, 255, 0.2);
  filter: blur(50px);
  top: -80px;
  right: -40px;
  pointer-events: none;
}

.panel-body { position: relative; z-index: 1; transform: translateZ(30px); }

.panel-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(59, 108, 255, 0.15);
  color: var(--blue-bright);
  margin-bottom: 1rem;
  border: 1px solid rgba(59, 108, 255, 0.25);
}

.panel-icon svg { width: 26px; height: 26px; }

.panel-body h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.panel-body p {
  color: var(--muted);
  margin: 0;
  max-width: 38ch;
}

.panel-media {
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  transform: translateZ(20px);
}

.panel-media img {
  padding: 0.5rem;
}

/* Skills */
.skills {
  background:
    radial-gradient(600px 360px at 80% 0%, rgba(59, 108, 255, 0.14), transparent 55%),
    #070b16;
}

.skills-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  perspective: 1200px;
}

@media (min-width: 720px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }
}

.skill-3d {
  transform-style: preserve-3d;
  border-radius: 1.25rem;
}

.skill-face {
  aspect-ratio: 280 / 301;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #151d34, #0a1020);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.2rem 0.75rem;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  transform-style: preserve-3d;
}

.skill-3d:hover .skill-face {
  border-color: rgba(59, 108, 255, 0.45);
  box-shadow:
    0 28px 55px rgba(59, 108, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, #1a2544, #0e162c);
}

.skill-face img,
.skill-face .native-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: contain;
  transform: translateZ(36px);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.skill-face .native-icon {
  background: #0e3a4d;
  display: grid;
  place-items: center;
}

.skill-face .native-icon svg { width: 44px; height: 44px; }

.skill-face strong {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  transform: translateZ(24px);
}

.skill-face span {
  color: var(--muted);
  transform: translateZ(18px);
}

.skill-3d.reveal { transition-delay: calc(var(--i) * 0.05s); }

/* Work gallery — natural aspect, no stretch */
.work {
  background:
    radial-gradient(900px 500px at 0% 20%, rgba(59, 108, 255, 0.1), transparent 55%),
    var(--bg);
}

.work-gallery {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .work-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 1.5rem;
  }
}

.work-card {
  position: relative;
  padding: 1.15rem;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(18, 26, 46, 0.95), rgba(8, 12, 24, 0.98));
  transform-style: preserve-3d;
  overflow: hidden;
  transition: border-color 0.3s;
}

.work-card:hover {
  border-color: rgba(59, 108, 255, 0.4);
}

.work-meta {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
  transform: translateZ(28px);
}

.work-card.featured .work-meta {
  margin-bottom: 0;
  padding: 0.5rem 0.75rem;
}

.tag {
  display: inline-block;
  color: var(--blue-bright);
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.work-meta h3 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 0.45rem;
  letter-spacing: -0.03em;
}

.work-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36ch;
}

.shot {
  border-radius: 1rem;
  border: 1px solid var(--line);
  transform: translateZ(18px);
  /* Preserve ~5276:4652 aspect ≈ 1.134 */
  aspect-ratio: 5276 / 4652;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
  transition: transform 0.6s var(--ease);
}

.work-card:hover .shot img {
  transform: scale(1.03);
}

.work-card.featured .shot {
  aspect-ratio: 5276 / 4652;
  max-height: none;
}

.work-card.featured .shot img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  margin: 0;
}

/* Testimonials */
.testimonials {
  background:
    radial-gradient(800px 480px at 15% 30%, rgba(59, 108, 255, 0.14), transparent 55%),
    radial-gradient(600px 400px at 90% 70%, rgba(59, 108, 255, 0.08), transparent 50%),
    #070b16;
}

.testimonial-showcase {
  max-width: var(--max);
  margin: 0 auto 2.75rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .testimonial-showcase {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2.5rem;
  }
}

.globe-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.globe-stage canvas {
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 30px 60px rgba(59, 108, 255, 0.25));
}

.globe-glow {
  position: absolute;
  width: min(70%, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 108, 255, 0.35), transparent 68%);
  pointer-events: none;
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite;
}

.globe-caption {
  margin-top: 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.globe-caption span {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.globe-caption strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: #d7e0f5;
}

.review-featured {
  width: 100%;
}

.review-lead {
  margin: 0;
  padding: 2rem 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 40%),
    linear-gradient(165deg, #1a243c 0%, #121a2e 100%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-height: 280px;
}

.review-lead .stars,
.review-card .stars {
  color: #f5a524;
  letter-spacing: 0.12em;
  font-size: 1rem;
}

.review-text {
  margin: 0;
  color: #f0f4fc;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.7;
  font-weight: 450;
  flex: 1;
}

.review-person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.review-person cite {
  font-style: normal;
  font-weight: 700;
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

.review-loc {
  display: block;
  color: #a8b4cc;
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.review-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.review-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #151d34;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.review-btn:hover {
  border-color: rgba(59, 108, 255, 0.55);
  background: rgba(59, 108, 255, 0.2);
  transform: translateY(-2px);
}

.review-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: 220px;
}

.review-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}

.review-dots button.active {
  background: #fff;
  transform: scale(1.25);
}

.review-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
  overflow: visible;
}

@media (min-width: 700px) {
  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  margin: 0;
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121a2e;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

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

.review-card p {
  margin: 0;
  color: #d5deef;
  font-size: 1.02rem;
  line-height: 1.65;
  flex: 1;
  overflow: visible;
}

.review-card.reveal {
  transition-delay: calc(var(--i, 0) * 0.05s);
}

.review-lead.is-fading .review-text,
.review-lead.is-fading .review-person {
  opacity: 0;
  transform: translateY(8px);
}

.review-lead .review-text,
.review-lead .review-person {
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}


/* Contact / Let's Talk */
.contact {
  padding-top: 4rem;
  padding-bottom: 5rem;
  background:
    radial-gradient(720px 320px at 50% 22%, rgba(20, 168, 0, 0.1), transparent 68%);
}

.upwork-cta {
  --up-green: #14a800;
  --up-green-hover: #108a00;
  --up-green-deep: #0d7300;
  --up-ink: #001e00;
  --up-muted: #5e6d55;
  --up-wash: #f2f7f2;
  --up-card: #ffffff;
  --up-line: #d5e0d5;
  --up-badge: #e3f9e0;
  max-width: 34rem;
  margin: 0 auto 2.5rem;
}

.upwork-card {
  position: relative;
  overflow: hidden;
  padding: 1.65rem 1.7rem 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--up-line);
  background:
    radial-gradient(520px 180px at 100% -10%, rgba(20, 168, 0, 0.1), transparent 60%),
    var(--up-card);
  color: var(--up-ink);
  box-shadow:
    0 18px 40px rgba(0, 30, 0, 0.18),
    0 0 0 1px rgba(20, 168, 0, 0.04);
}

.upwork-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #1dbf00, var(--up-green) 55%, var(--up-green-deep));
}

.upwork-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.upwork-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  color: var(--up-ink);
}

.upwork-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--up-green);
  color: #fff;
  flex-shrink: 0;
}

.upwork-mark svg {
  width: 17px;
  height: 17px;
}

.upwork-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--up-badge);
  color: var(--up-green-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.upwork-status i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--up-green);
  box-shadow: 0 0 0 3px rgba(20, 168, 0, 0.18);
}

.upwork-card h3 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.45rem;
  color: var(--up-ink);
}

.upwork-card > p {
  margin: 0 0 1.25rem;
  color: var(--up-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 34em;
}

.upwork-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  background: var(--up-green);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 18px rgba(20, 168, 0, 0.28);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.upwork-btn:hover {
  background: var(--up-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 138, 0, 0.34);
}

.upwork-btn:active {
  background: var(--up-green-deep);
  transform: translateY(0);
}

.upwork-btn:focus-visible {
  outline: 3px solid rgba(20, 168, 0, 0.35);
  outline-offset: 3px;
}

.upwork-trust {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0.95rem 0 0;
  border-top: 1px solid var(--up-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
}

.upwork-trust li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--up-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.upwork-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--up-green);
  box-shadow: inset 0 0 0 2px var(--up-card), 0 0 0 1px var(--up-green);
}

@media (max-width: 520px) {
  .upwork-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.github-panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(59, 108, 255, 0.16), transparent 55%),
    linear-gradient(165deg, #151d34, #0c1222);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}

.github-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.github-panel-head h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  margin: 0.2rem 0 0.45rem;
  letter-spacing: -0.03em;
}

.github-panel-head h3 a:hover {
  color: var(--blue-bright);
}

.github-bio {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

.github-follow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.github-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 700px) {
  .github-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gh-stat {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
}

.gh-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.gh-stat span {
  color: var(--muted);
  font-size: 0.82rem;
}

.github-graph-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.github-graph-label a {
  color: var(--blue-bright);
}

.github-graph-label a:hover {
  text-decoration: underline;
}

.github-graph-frame {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0f1c;
}

.github-graph-frame img {
  min-width: 560px;
  width: 100%;
  height: auto;
  display: block;
}

.github-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.github-legend i {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: var(--lv);
  display: inline-block;
}


.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a:hover { color: var(--blue-bright); }

/* Reveal + tilt helpers */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

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

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

.tilt-card,
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -24px) scale(1.08); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

@keyframes name-sheen {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@keyframes beam-sweep {
  0%, 100% { opacity: 0.25; transform: rotate(18deg) translateX(-18px); }
  50% { opacity: 0.7; transform: rotate(18deg) translateX(28px); }
}

@keyframes dash-flow {
  to { stroke-dashoffset: -180; }
}

@keyframes scan-sweep {
  0% { top: -30%; opacity: 0; }
  20% { opacity: 0.9; }
  55% { opacity: 0.55; }
  100% { top: 105%; opacity: 0; }
}

@keyframes scroll-dot {
  0% { top: 0.35rem; opacity: 1; }
  70% { top: 1.05rem; opacity: 0; }
  100% { top: 0.35rem; opacity: 0; }
}

@media (min-width: 880px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .logo { justify-self: start; }
  .nav { justify-self: center; }
  .header-actions { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cursor-glow,
  .breath-world { display: none; }
}
