:root {
  --void: #010206;
  --ink: #ecfaff;
  --muted: #6d8fa3;
  --neo: #00ffe8;
  --arc: #00b4ff;
  --violet: #8b5cff;
  --glass: rgba(6, 12, 22, 0.72);
  --line: rgba(0, 255, 232, 0.14);
  --font-display: "Audiowide", system-ui, sans-serif;
  --font-ui: "Chakra Petch", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1180px;
  --head: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--void);
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 900px), (pointer: coarse) {
  body { cursor: auto; }
  .cursor { display: none !important; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 30000;
  padding: 0.5rem 1rem; background: var(--neo); color: var(--void);
  font-family: var(--font-mono); font-weight: 600; text-decoration: none;
  border-radius: 6px; transition: top 0.15s;
}
.skip-link:focus { top: 12px; cursor: pointer; }

/* Boot */
.boot {
  position: fixed; inset: 0; z-index: 25000;
  display: grid; place-items: center;
  background: var(--void);
  transition: opacity 0.6s ease, visibility 0.6s;
}
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot__frame { text-align: center; width: min(90vw, 360px); }
.boot__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  color: var(--neo);
  text-shadow: 0 0 30px rgba(0, 255, 232, 0.5);
  animation: bootPulse 1.2s ease-in-out infinite;
}
@keyframes bootPulse {
  50% { opacity: 0.5; }
}
.boot__bar {
  height: 3px; margin: 24px 0 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px; overflow: hidden;
}
.boot__fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--neo), var(--arc));
  box-shadow: 0 0 20px var(--neo);
  transition: width 0.08s linear;
}
.boot__log {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* Scroll progress */
.scroll-prog {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--neo), var(--arc), var(--violet));
  box-shadow: 0 0 12px var(--neo);
}

/* Canvases */
.layer {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.layer--mesh { z-index: 0; opacity: 0.9; }
.layer--rain { z-index: 1; opacity: 0.4; mix-blend-mode: screen; }
.layer--flare { z-index: 2; opacity: 0.55; mix-blend-mode: screen; pointer-events: none; }

.fx__mesh {
  position: absolute; inset: -30%;
  background:
    radial-gradient(ellipse 40% 30% at 20% 30%, rgba(0, 255, 232, 0.12), transparent 50%),
    radial-gradient(ellipse 35% 40% at 80% 70%, rgba(0, 180, 255, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(139, 92, 255, 0.06), transparent 60%);
  animation: meshDrift 14s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(3%, -2%) rotate(2deg); }
}
.fx__scan--fast {
  opacity: 0.2;
  animation-duration: 3s;
}
.fx__shards {
  list-style: none; margin: 0; padding: 0;
  position: absolute; inset: 0;
}
.fx__shards li {
  position: absolute;
  width: 8px; height: 8px;
  border: 1px solid rgba(0, 255, 232, 0.35);
  transform: rotate(45deg);
  animation: shardFloat 12s ease-in-out infinite;
}
@keyframes shardFloat {
  0%, 100% { opacity: 0.2; transform: rotate(45deg) translateY(0); }
  50% { opacity: 0.8; transform: rotate(225deg) translateY(-20px); }
}

.cursor__trail {
  position: absolute; left: 50%; top: 50%;
  width: 80px; height: 80px; margin: -40px 0 0 -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 232, 0.12), transparent 70%);
  pointer-events: none;
}

.head__actions {
  display: flex; align-items: center; gap: 12px;
}
.head__linkedin {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--neo);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 255, 232, 0.05);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.head__linkedin:hover, .head__linkedin:focus-visible {
  border-color: var(--neo);
  box-shadow: 0 0 24px rgba(0, 255, 232, 0.25);
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .head__linkedin span { display: none; }
  .head__linkedin { padding: 10px; }
}

.glitch--heavy::before { animation-duration: 2s; }
.glitch--heavy::after { animation-duration: 1.6s; opacity: 0.75; }

.hero__role {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--arc);
  min-height: 1.4em;
  text-shadow: 0 0 20px rgba(0, 180, 255, 0.35);
  animation: roleGlow 2.5s ease-in-out infinite;
}
@keyframes roleGlow {
  50% { opacity: 0.65; }
}

.hero__portrait-ring {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 255, 232, 0.35);
  animation: ringSpin 12s linear infinite reverse;
}
.hero__portrait {
  animation: portraitPulse 4s ease-in-out infinite;
}
@keyframes portraitPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(0, 255, 232, 0.25); }
  50% { box-shadow: 0 0 60px rgba(0, 180, 255, 0.2), 0 0 80px rgba(0, 255, 232, 0.15); }
}

.hero__orbiters li:nth-child(7) { animation-duration: 13s; animation-delay: -5s; }
.hero__orbiters li:nth-child(8) { animation-duration: 9s; animation-delay: -2.5s; background: var(--violet); }

/* About */
.about {
  position: relative;
  margin-top: 28px;
  padding: 28px 26px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transform-style: preserve-3d;
}
.about__scan {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(139, 92, 255, 0.08) 50%, transparent 70%);
  animation: cardScan 4s ease-in-out infinite;
  pointer-events: none;
}
.about p { margin: 0 0 14px; color: var(--muted); font-weight: 500; max-width: 68ch; }
.about p:last-child { margin-bottom: 0; }
.about__lead { font-size: 1.12rem; color: var(--ink) !important; }
.about a { color: var(--neo); text-decoration: underline; text-underline-offset: 3px; }
.about strong { color: var(--ink); }

/* Timeline */
.timeline {
  list-style: none; margin: 28px 0 0; padding: 0 0 0 20px;
  border-left: 2px solid rgba(0, 255, 232, 0.2);
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute; left: -2px; top: 0; width: 2px; height: 100%;
  background: linear-gradient(180deg, var(--neo), var(--arc), var(--violet));
  animation: timelineFlow 4s linear infinite;
  background-size: 100% 200%;
}
@keyframes timelineFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 200%; }
}
.timeline__item {
  position: relative;
  margin-bottom: 22px;
  padding-left: 24px;
}
.timeline__node {
  position: absolute; left: -29px; top: 22px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--void);
  border: 2px solid var(--neo);
  box-shadow: 0 0 14px var(--neo);
  animation: nodeBlink 2s ease-in-out infinite;
}
@keyframes nodeBlink {
  50% { box-shadow: 0 0 22px var(--arc); border-color: var(--arc); }
}
.timeline__card {
  position: relative;
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(4, 10, 18, 0.75);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.timeline__card:hover {
  border-color: rgba(0, 255, 232, 0.35);
  box-shadow: 0 0 40px rgba(0, 255, 232, 0.08);
}
.timeline__scan {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(0, 255, 232, 0.1) 50%, transparent 60%);
  animation: cardScan 3s ease-in-out infinite;
  pointer-events: none;
}
.timeline__card header {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 8px; margin-bottom: 10px;
}
.timeline__card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.timeline__meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--arc);
}
.timeline__card p { margin: 0; color: var(--muted); font-weight: 500; }

.card__sub {
  margin: -4px 0 10px !important;
  font-family: var(--font-mono);
  font-size: 0.68rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neo) !important;
}

/* Skills */
.skills { margin-top: 28px; }
.skills__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.skills__grid li {
  padding: 14px 18px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 12, 22, 0.75);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.skills__grid li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--neo);
  box-shadow: 0 0 8px var(--neo);
  vertical-align: middle;
}
.skills__grid li:hover {
  color: var(--neo);
  border-color: rgba(0, 255, 232, 0.35);
  box-shadow: 0 0 24px rgba(0, 255, 232, 0.1);
  transform: translateY(-2px);
}

.interests { margin-top: 32px; }
.interests__ttl {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.interests__row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip-pill {
  display: inline-flex;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--arc) 40%, var(--line));
  border-radius: 10px;
  color: var(--neo);
  background: linear-gradient(135deg, rgba(0, 255, 232, 0.06), rgba(0, 180, 255, 0.06));
  animation: chipFloat 5s ease-in-out infinite;
}
.chip-pill:nth-child(2) { animation-delay: -1.2s; }
.chip-pill:nth-child(3) { animation-delay: -2.4s; }
.chip-pill:nth-child(4) { animation-delay: -3.6s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

.btn--linkedin {
  display: inline-flex; align-items: center; gap: 8px;
}
.btn--linkedin svg { flex-shrink: 0; }

.uplink__foot a { color: var(--neo); }

.band__ttl {
  background: linear-gradient(90deg, var(--ink), var(--neo), var(--arc));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 6s linear infinite;
}
@keyframes titleShine {
  to { background-position: 200% center; }
}

@media (min-width: 640px) {
  #education .deck { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
}

/* FX */
.fx { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.fx__horizon {
  position: absolute; left: -20%; right: -20%; bottom: -5%;
  height: 45vh;
  background: linear-gradient(transparent, rgba(0, 255, 232, 0.06));
  transform: perspective(300px) rotateX(72deg);
  animation: horizonPulse 6s ease-in-out infinite;
}
@keyframes horizonPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.fx__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 30%, rgba(1,2,6,0.85) 100%);
}
.fx__scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 4px);
  animation: scanMove 8s linear infinite;
}
@keyframes scanMove {
  to { transform: translateY(20px); }
}
.fx__hexfield {
  position: absolute; inset: -20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0L56 16v32L28 64 0 48V16z' fill='none' stroke='%2300ffe8' stroke-opacity='0.06'/%3E%3C/svg%3E");
  animation: hexDrift 60s linear infinite;
  opacity: 0.8;
}
@keyframes hexDrift {
  to { transform: translate(-56px, -100px); }
}

/* Cursor */
.cursor {
  position: fixed; z-index: 15000;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out;
}
.cursor__ring {
  display: block; width: 36px; height: 36px;
  border: 1px solid var(--neo);
  border-radius: 50%;
  opacity: 0.6;
  animation: ringSpin 4s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
.cursor__dot {
  position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: var(--arc);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--arc);
}
.cursor.is-click .cursor__ring {
  transform: scale(0.7);
  border-color: var(--arc);
}

/* HUD */
.hud {
  position: fixed; top: calc(var(--head) + 6px);
  left: 12px; right: 12px; z-index: 40;
  pointer-events: none;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  pointer-events: none;
}
.hud__col { display: flex; flex-direction: column; gap: 2px; }
.hud__col--right { align-items: flex-end; }
@media (max-width: 640px) { .hud { display: none; } }

/* Header */
.head {
  position: sticky; top: 0; z-index: 100;
  height: var(--head);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--void) 80%, transparent);
  backdrop-filter: blur(18px);
}
.head__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.mark__hex {
  width: 14px; height: 14px;
  background: var(--neo);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: hexSpin 6s linear infinite;
  box-shadow: 0 0 14px var(--neo);
}
@keyframes hexSpin { to { transform: rotate(360deg); } }
.mark__txt {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
}
.mark__txt span { color: var(--neo); }

.nav__btn {
  display: none; width: 44px; height: 40px;
  border: 1px solid var(--line); border-radius: 8px;
  background: rgba(0,255,232,0.05); cursor: pointer; padding: 0; position: relative;
}
.nav__icon {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 2px;
  background: var(--neo); transform: translate(-50%, -50%);
  box-shadow: 0 -6px 0 var(--neo), 0 6px 0 var(--neo);
}
.nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 6px 22px; flex-wrap: wrap;
}
.nav__list a {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
}
.nav__list a em { font-style: normal; color: var(--arc); font-size: 0.62rem; }
.nav__list a:hover, .nav__list a:focus-visible {
  color: var(--neo); border-color: var(--neo);
  text-shadow: 0 0 12px rgba(0,255,232,0.4);
}
@media (max-width: 900px) {
  .nav__btn { display: block; }
  .nav__drawer {
    position: absolute; right: 16px; top: calc(var(--head) + 8px);
    padding: 16px; min-width: 220px;
    background: rgba(4,8,14,0.96); border: 1px solid var(--line);
    border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav__drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 4px; }
}

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

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--head));
  padding: clamp(0.75rem, 2.5vw, 1.5rem) 20px clamp(2rem, 5vw, 3rem);
  display: flex; align-items: flex-start;
}
.hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 60% 40%, rgba(0,255,232,0.1), transparent 65%);
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}
.hero__grid {
  position: relative;
  z-index: 1;
  max-width: var(--max); margin: 0 auto; width: 100%;
}
.hero__copy {
  position: relative;
  z-index: 2;
}
.hero__intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 52px);
  width: 100%;
  max-width: 980px;
  margin: 0 auto 22px;
}
.hero__headline {
  flex: 0 1 auto;
  min-width: 0;
}
.hero__cta {
  position: relative;
  z-index: 3;
}
.hero__cta .btn {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.26em; color: var(--neo);
}
.hero__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--neo); box-shadow: 0 0 14px var(--neo);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.2; transform: scale(0.8); } }

.hero__name {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
}
.hero__headline .hero__role {
  margin: 0;
}
.glitch {
  position: relative; display: inline-block;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(0,255,232,0.3);
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
}
.glitch::before {
  color: var(--neo);
  animation: g1 3s infinite steps(2);
  clip-path: inset(0 0 55% 0);
}
.glitch::after {
  color: var(--arc);
  animation: g2 2.5s infinite steps(2);
  clip-path: inset(45% 0 0 0);
}
@keyframes g1 {
  0%, 85%, 100% { transform: translate(0); }
  88% { transform: translate(-4px, 2px); }
}
@keyframes g2 {
  0%, 80%, 100% { transform: translate(0); }
  83% { transform: translate(4px, -2px); }
}

.hero__tag {
  max-width: 54ch; margin: 0 0 24px;
  color: var(--muted); font-weight: 500; font-size: 1.1rem;
}
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 20px 28px;
  margin-bottom: 28px;
}
.stat__n {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--neo);
  text-shadow: 0 0 20px rgba(0,255,232,0.35);
}
.stat__n--text {
  font-size: 1.85rem;
  letter-spacing: 0.04em;
}
.stat__l {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero stage */
.hero__stage {
  position: relative;
  min-height: 320px;
  display: grid; place-items: center;
}
.hero__stage--inline {
  flex-shrink: 0;
  width: min(300px, 40vw);
  height: min(300px, 40vw);
  min-height: 0;
  margin: 0;
  align-self: center;
}
.hero__stage--inline .hero__svg {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  margin: auto;
}
.hero__stage--inline .hero__portrait {
  width: 72%;
  height: 72%;
  max-width: 280px;
  max-height: 280px;
}
.hero__stage--inline .hero__orbiters {
  transform: scale(0.88);
}
@media (max-width: 720px) {
  .hero__intro {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .hero__headline {
    flex: 1 1 100%;
  }
  .hero__stage--inline {
    width: min(260px, 72vw);
    height: min(260px, 72vw);
  }
}
@media (max-width: 560px) {
  .hero__stage--inline {
    width: min(220px, 68vw);
    height: min(220px, 68vw);
  }
  .hero__stage--inline .hero__portrait {
    max-width: 200px;
    max-height: 200px;
  }
}
.hero__portrait {
  position: relative;
  z-index: 2;
  width: min(280px, 72vw);
  height: min(280px, 72vw);
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--neo), var(--arc), var(--violet));
  box-shadow:
    0 0 40px rgba(0, 255, 232, 0.25),
    0 0 80px rgba(0, 180, 255, 0.14);
  animation: svgFloat 6s ease-in-out infinite;
}
.hero__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--void);
}
.hero__svg {
  width: min(100%, 400px);
  height: auto;
  animation: svgFloat 6s ease-in-out infinite;
}
@keyframes svgFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero__core { animation: corePulse 3s ease-in-out infinite; }
.hero__core--2 { animation-delay: -1s; }
.hero__core--3 { animation-delay: -2s; }
@keyframes corePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.hero__prism {
  position: absolute; width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--neo), var(--arc), var(--violet));
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  animation: prismSpin 10s linear infinite;
  box-shadow: 0 0 50px rgba(0,255,232,0.4);
}
@keyframes prismSpin {
  to { transform: rotate(360deg) scale(1.1); }
}
.hero__orbiters {
  position: absolute; inset: 0;
  list-style: none; margin: 0; padding: 0;
}
.hero__orbiters li {
  position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; margin: -5px;
  border-radius: 50%;
  background: var(--neo);
  box-shadow: 0 0 12px var(--neo);
  animation: orbiter 12s linear infinite;
}
.hero__orbiters li:nth-child(1) { animation-duration: 8s; background: var(--arc); }
.hero__orbiters li:nth-child(2) { animation-duration: 11s; animation-delay: -2s; }
.hero__orbiters li:nth-child(3) { animation-duration: 14s; animation-delay: -4s; }
.hero__orbiters li:nth-child(4) { animation-duration: 9s; animation-delay: -1s; background: var(--violet); }
.hero__orbiters li:nth-child(5) { animation-duration: 16s; animation-delay: -6s; }
.hero__orbiters li:nth-child(6) { animation-duration: 10s; animation-delay: -3s; background: var(--arc); }
@keyframes orbiter {
  from { transform: rotate(0deg) translateX(140px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
}

/* Buttons */
.btn {
  display: inline-flex; padding: 13px 24px;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn--prime {
  background: linear-gradient(135deg, var(--neo), #00b89e);
  color: var(--void); border-color: var(--neo);
  box-shadow: 0 0 28px rgba(0,255,232,0.35);
}
.btn--ghost {
  border-color: var(--line); color: var(--neo);
  background: rgba(0,255,232,0.06);
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0,255,232,0.4);
}

/* Ticker */
.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: rgba(0,255,232,0.03);
}
.ticker__lane {
  display: flex; width: max-content;
  gap: 3rem;
  animation: tick 35s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
  padding: 10px 0;
}
.ticker__lane--b {
  animation-duration: 48s;
  animation-direction: reverse;
  color: color-mix(in srgb, var(--arc) 60%, var(--muted));
}
@keyframes tick {
  to { transform: translateX(-50%); }
}

/* Bands */
.band {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 20px;
  border-top: 1px solid var(--line);
}
.band--dim { background: linear-gradient(180deg, transparent, rgba(139,92,255,0.04)); }
.band--forge { background: linear-gradient(180deg, rgba(0,255,232,0.03), transparent); }
.band--end {
  padding-bottom: clamp(4rem, 12vw, 7rem);
  border-top: none;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(0, 255, 232, 0.06), transparent 70%);
}
.band__sig {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.3em; color: var(--arc);
}
.band__ttl {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  letter-spacing: 0.08em;
}

/* Deck cards */
.deck {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; gap: 16px;
}
@media (min-width: 640px) { .deck { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .deck { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  padding: 24px 22px 24px 26px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.35s ease;
}
.card__scan {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(0,255,232,0.12) 50%, transparent 58%);
  animation: cardScan 2.8s ease-in-out infinite;
  pointer-events: none;
}
.card:nth-child(odd) .card__scan { animation-delay: -1.2s; }
@keyframes cardScan {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
.card__idx {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--arc);
  letter-spacing: 0.2em;
}
.card h3 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}
.card p { margin: 0; color: var(--muted); font-weight: 500; }
.card[data-glow].is-glow {
  border-color: rgba(0,255,232,0.45);
  box-shadow: 0 0 50px rgba(0,255,232,0.12), inset 0 0 30px rgba(0,255,232,0.04);
}

/* Pipeline */
.pipeline { margin-top: 28px; }
.pipeline__track {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 4px;
}
.pipeline__node {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}
.pipeline__node--on {
  color: var(--neo);
  border-color: rgba(0,255,232,0.4);
  box-shadow: 0 0 20px rgba(0,255,232,0.15);
}
.pipeline__node--pulse {
  color: var(--arc);
  border-color: var(--arc);
  animation: nodePulse 1.5s ease-in-out infinite;
}
@keyframes nodePulse {
  50% { box-shadow: 0 0 24px rgba(255,0,110,0.4); }
}
.pipeline__line {
  flex: 1; min-width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--neo), transparent);
  animation: lineFlow 2s linear infinite;
}
@keyframes lineFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.pipeline__note { margin-top: 16px; color: var(--muted); }

/* Terminal */
.term {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(2,6,12,0.9);
}
.term__chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #03060c;
  border-bottom: 1px solid var(--line);
}
.term__chrome span {
  width: 10px; height: 10px; border-radius: 50%;
}
.term__chrome span:nth-child(1) { background: var(--arc); }
.term__chrome span:nth-child(2) { background: #ffb800; }
.term__chrome span:nth-child(3) { background: var(--neo); }
.term__chrome code {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
}
.term__feed {
  list-style: none; margin: 0; padding: 12px 14px;
  max-height: 220px; overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.term__feed li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--muted);
  animation: termIn 0.35s ease-out;
}
.term__feed li code { color: var(--neo); }
.term__feed li time { color: var(--arc); margin-right: 10px; }
@keyframes termIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Lattice */
.lattice {
  display: grid; gap: 14px;
  margin-top: 28px;
}
@media (min-width: 800px) {
  .lattice {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }
  .lattice__n--hub { grid-column: 1 / 3; }
  .lattice__n--ai { grid-column: 3; grid-row: 1 / 3; }
}
.lattice__n {
  position: relative;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(4,10,18,0.7);
  transform-style: preserve-3d;
  transition: border-color 0.25s, transform 0.35s;
}
.lattice__n--hub {
  border-color: rgba(0,255,232,0.25);
}
.lattice__pulse {
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(0,255,232,0.08), transparent 60%);
  animation: latticePulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes latticePulse {
  50% { opacity: 0.4; }
}
.lattice__n h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.lattice__n p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.lattice__n--ai {
  border-color: rgba(0, 180, 255, 0.28);
  background: linear-gradient(145deg, rgba(0, 180, 255, 0.08), rgba(4, 10, 18, 0.8));
}

/* Uplink */
.uplink {
  position: relative;
  max-width: 560px; margin: 0 auto;
  padding: 40px 28px 32px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 232, 0.32);
  background: linear-gradient(165deg, rgba(14, 28, 46, 0.96), rgba(8, 16, 28, 0.98));
  box-shadow:
    0 0 0 1px rgba(0, 180, 255, 0.1) inset,
    0 24px 70px rgba(0, 0, 0, 0.45),
    0 0 55px rgba(0, 255, 232, 0.1);
  overflow: hidden;
}
.uplink::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 90% 55% at 50% 0%, rgba(0, 255, 232, 0.14), transparent 58%);
  pointer-events: none;
}
.uplink > * { position: relative; z-index: 1; }
.uplink__ring {
  position: absolute; inset: -4px; border-radius: 24px;
  border: 2px solid transparent;
  background: linear-gradient(var(--void), var(--void)) padding-box,
    conic-gradient(from 0deg, var(--neo), var(--arc), var(--violet), var(--neo)) border-box;
  animation: uplinkSpin 8s linear infinite;
  opacity: 0.7;
  pointer-events: none;
}
@keyframes uplinkSpin { to { filter: hue-rotate(360deg); } }
.uplink__sig {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  color: var(--neo);
}
.uplink h2 {
  margin: 12px 0 14px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--ink);
  text-shadow: 0 0 28px rgba(0, 255, 232, 0.22);
}
.uplink p {
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
  margin: 0 0 22px;
}
.uplink__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 16px; }
.uplink__foot {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: color-mix(in srgb, var(--ink) 62%, var(--muted));
  margin: 0;
}
/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px) rotateX(8deg);
  filter: blur(6px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1),
    transform 0.8s cubic-bezier(0.22,1,0.36,1),
    filter 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .glitch::before, .glitch::after { display: none; }
}

:focus-visible {
  outline: 2px solid var(--neo);
  outline-offset: 3px;
}
