:root {
  --paper: #0a0e27;
  --orbit-navy: #0f1b3d;
  --orbit-cyan: #5edcf4;
  --orbit-pink: #f0a6ca;
  --orbit-yellow: #f4d03f;
  --orbit-lavender: #e2d5f2;
  --orbit-white: #ffffff;
  --orbit-muted: rgba(255, 255, 255, 0.72);
  --line: rgba(94, 220, 244, 0.2);
  --line-strong: rgba(94, 220, 244, 0.56);
  font-family: "Noto Sans SC", "Chakra Petch", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--orbit-white);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--orbit-white);
  position: relative;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(94, 220, 244, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 220, 244, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 84% 12%, rgba(240, 166, 202, 0.14), transparent 22rem),
    radial-gradient(circle at 10% 76%, rgba(94, 220, 244, 0.12), transparent 20rem),
    var(--paper);
  background-size: 40px 40px, 40px 40px, auto, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.025) 3px 4px);
  opacity: 0.62;
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  z-index: 0;
  pointer-events: none;
  background: var(--orbit-pink);
  box-shadow:
    2vw 4vh 0 1px rgba(244, 208, 63, 0.82),
    36vw 2vh 0 -1px rgba(240, 166, 202, 0.78),
    58vw 8vh 0 -1px rgba(244, 208, 63, 0.56),
    81vw 16vh 0 -1px rgba(94, 220, 244, 0.58),
    18vw 22vh 0 0 rgba(240, 166, 202, 0.58),
    31vw 23vh 0 -1px rgba(244, 208, 63, 0.68),
    62vw 24vh 0 -1px rgba(94, 220, 244, 0.64),
    75vw 36vh 0 0 rgba(244, 208, 63, 0.48),
    28vw 47vh 0 1px rgba(94, 220, 244, 0.42),
    52vw 50vh 0 1px rgba(94, 220, 244, 0.52),
    83vw 50vh 0 -1px rgba(94, 220, 244, 0.82),
    9vw 58vh 0 -1px rgba(240, 166, 202, 0.66),
    33vw 62vh 0 -1px rgba(94, 220, 244, 0.78),
    56vw 63vh 0 1px rgba(240, 166, 202, 0.76),
    80vw 72vh 0 -1px rgba(244, 208, 63, 0.72),
    9vw 84vh 0 -1px rgba(94, 220, 244, 0.72),
    29vw 88vh 0 0 rgba(244, 208, 63, 0.58),
    55vw 91vh 0 -1px rgba(94, 220, 244, 0.68),
    95vw 84vh 0 -1px rgba(94, 220, 244, 0.74),
    6vw 112vh 0 0 rgba(244, 208, 63, 0.58),
    18vw 126vh 0 -1px rgba(94, 220, 244, 0.62),
    32vw 118vh 0 1px rgba(240, 166, 202, 0.54),
    49vw 136vh 0 -1px rgba(244, 208, 63, 0.62),
    77vw 132vh 0 1px rgba(240, 166, 202, 0.52),
    84vw 144vh 0 -1px rgba(94, 220, 244, 0.56),
    12vw 156vh 0 1px rgba(240, 166, 202, 0.48),
    27vw 172vh 0 -1px rgba(244, 208, 63, 0.70),
    41vw 164vh 0 -1px rgba(94, 220, 244, 0.62),
    72vw 158vh 0 -1px rgba(94, 220, 244, 0.68),
    88vw 184vh 0 0 rgba(244, 208, 63, 0.54),
    4vw 214vh 0 -1px rgba(94, 220, 244, 0.72),
    21vw 228vh 0 1px rgba(240, 166, 202, 0.52),
    36vw 206vh 0 -1px rgba(244, 208, 63, 0.64),
    52vw 232vh 0 -1px rgba(94, 220, 244, 0.58),
    83vw 240vh 0 -1px rgba(244, 208, 63, 0.68),
    10vw 266vh 0 -1px rgba(244, 208, 63, 0.62),
    43vw 276vh 0 -1px rgba(240, 166, 202, 0.58),
    61vw 304vh 0 0 rgba(244, 208, 63, 0.56),
    92vw 314vh 0 1px rgba(240, 166, 202, 0.48);
}

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

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: 100%;
  height: 3px;
  background: rgba(15, 27, 61, 0.74);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--orbit-cyan);
  box-shadow: 0 0 14px rgba(94, 220, 244, 0.5);
  transition: width 90ms linear;
}

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

.topbar,
main,
footer {
  position: relative;
  z-index: 1;
}

.wrap,
.hero,
#work,
#about,
#contact,
#motion .wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 14, 39, 0.88);
  border-bottom: 2px solid rgba(94, 220, 244, 0.42);
  box-shadow: 0 4px 0 rgba(15, 27, 61, 0.96);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orbit-cyan);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 2px 2px 0 var(--orbit-navy);
  text-transform: lowercase;
}

.logo::before {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-grid;
  background: var(--orbit-yellow);
  box-shadow: 4px 4px 0 var(--orbit-pink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12px;
}

.nav-links a {
  padding: 7px 10px;
  background: rgba(15, 27, 61, 0.82);
  color: rgba(255, 255, 255, 0.82);
  transition: transform 160ms steps(2, end), background 160ms steps(2, end), box-shadow 160ms steps(2, end), color 160ms steps(2, end);
}

.nav-links a:hover {
  transform: translate(-2px, -2px);
  background: var(--orbit-cyan);
  color: var(--orbit-navy);
  box-shadow: 3px 3px 0 var(--orbit-yellow);
}

.button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 2px solid var(--orbit-navy);
  background: var(--orbit-cyan);
  color: var(--orbit-navy);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--orbit-yellow);
  text-transform: lowercase;
  transition: transform 160ms steps(2, end), background 160ms steps(2, end), box-shadow 160ms steps(2, end);
}

.button:hover,
.contact-links a:hover,
.hero-module:hover {
  transform: translate(-2px, -2px);
}

.hero {
  min-height: calc(92vh - 66px);
  display: grid;
  align-items: center;
  padding: clamp(42px, 5.6vw, 76px) 0 clamp(44px, 6vw, 78px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(380px, 1fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
}

.kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  background: var(--orbit-navy);
  color: var(--orbit-yellow);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 4px 4px 0 rgba(240, 166, 202, 0.78);
  text-transform: lowercase;
}

h1 {
  max-width: 760px;
  margin-top: 24px;
  color: var(--orbit-cyan);
  font-size: clamp(4rem, 7.2vw, 7.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 4px 4px 0 var(--orbit-yellow), 7px 7px 0 var(--orbit-navy);
}

.subtitle {
  max-width: 620px;
  margin-top: 34px;
  color: #fff;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 850;
  line-height: 1.32;
  text-shadow: 2px 2px 0 var(--orbit-navy);
}

.intro {
  max-width: 640px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

.hero-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.hero-module {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 2px solid rgba(94, 220, 244, 0.58);
  background: rgba(15, 27, 61, 0.72);
  color: #fff;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
  transition: transform 160ms steps(2, end), background 160ms steps(2, end);
}

.hero-module:hover {
  background: rgba(94, 220, 244, 0.18);
}

.hero-module span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--orbit-yellow);
  color: var(--orbit-navy);
  font-size: 10px;
  font-weight: 900;
}

.terminal-card {
  padding: 0;
  background: transparent;
  animation: gentleFloat 7s steps(5, end) infinite;
}

.animation-placeholder,
.hero-rive-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-placeholder,
.hero-rive-stage {
  width: min(100%, 640px);
  aspect-ratio: 1;
}

.hero-rive-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.rive-status {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  padding: 7px 9px;
  background: var(--orbit-navy);
  color: var(--orbit-yellow);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--orbit-pink);
  pointer-events: none;
}

.hero-rive-stage.is-loaded .rive-status {
  display: none;
}

.pixel-orbit {
  width: min(82%, 500px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--orbit-cyan);
  font-family: "Space Mono", ui-monospace, monospace;
  text-align: center;
  text-shadow: 3px 3px 0 var(--orbit-navy);
}

.pixel-orbit::before,
.pixel-orbit::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 4px solid var(--orbit-cyan);
  box-shadow: 8px 8px 0 var(--orbit-pink);
  transform: rotate(8deg);
}

.pixel-orbit::after {
  inset: 22%;
  border-color: var(--orbit-yellow);
  box-shadow: 6px 6px 0 rgba(94, 220, 244, 0.78);
  transform: rotate(-14deg);
}

.pixel-orbit i {
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--orbit-yellow);
  box-shadow: 5px 5px 0 var(--orbit-pink);
}

.pixel-orbit i:nth-child(1) { left: 11%; top: 22%; }
.pixel-orbit i:nth-child(2) { right: 10%; top: 30%; background: var(--orbit-cyan); }
.pixel-orbit i:nth-child(3) { left: 28%; bottom: 9%; background: var(--orbit-pink); box-shadow-color: var(--orbit-yellow); }
.pixel-orbit i:nth-child(4) { right: 25%; bottom: 20%; }

.pixel-orbit strong {
  position: relative;
  z-index: 1;
  padding: 12px;
  background: var(--orbit-navy);
  font-size: clamp(16px, 2.2vw, 28px);
  line-height: 1.15;
}

.placeholder-note {
  position: absolute;
  left: 28px;
  bottom: 28px;
  padding: 7px 9px;
  background: var(--orbit-navy);
  color: var(--orbit-yellow);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--orbit-pink);
}

section {
  position: relative;
  padding: clamp(56px, 6vw, 88px) 0;
  scroll-margin-top: 84px;
}

#work,
#about,
#contact {
  border-top: 1px solid rgba(94, 220, 244, 0.16);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(24px, 3vw, 38px);
}

.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--orbit-cyan), transparent);
  opacity: 0.42;
}

#motion .section-title {
  margin-bottom: clamp(30px, 3.8vw, 54px);
}

h2 {
  color: var(--orbit-cyan);
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;
  text-shadow: 3px 3px 0 var(--orbit-navy);
}

h2::before {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  margin-right: 12px;
  background: var(--orbit-yellow);
  box-shadow: 4px 4px 0 var(--orbit-pink);
  vertical-align: middle;
  animation: pixelBeat 3.4s steps(2, end) infinite;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
}

.project,
.about-card,
.skill-card,
.contact-panel {
  border: 2px solid var(--orbit-navy);
  background: rgba(226, 213, 242, 0.98);
  color: var(--orbit-navy);
  box-shadow: 5px 5px 0 rgba(94, 220, 244, 0.72);
}

.project {
  width: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 2vw, 24px);
  transition: transform 180ms steps(3, end), background 180ms steps(3, end), box-shadow 180ms steps(3, end);
}

.project:nth-child(2) {
  box-shadow: 5px 5px 0 rgba(240, 166, 202, 0.82);
}

.project:nth-child(3) {
  box-shadow: 5px 5px 0 rgba(244, 208, 63, 0.86);
}

.project:hover,
.skill-card:hover {
  transform: translate(-4px, -4px);
  background: #fff;
  box-shadow: 9px 9px 0 var(--orbit-yellow);
}

.project h3,
.motion-copy h3,
.about-card h3,
.skill-card h3 {
  color: var(--orbit-navy);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 900;
  line-height: 1.08;
}

.project p,
.about-card p,
.skill-card p,
.contact-panel p {
  max-width: 760px;
  margin-top: 12px;
  color: rgba(15, 27, 61, 0.72);
  line-height: 1.65;
}

.project p {
  font-size: 12px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.meta span {
  padding: 5px 8px;
  background: var(--orbit-navy);
  color: var(--orbit-yellow);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
}

.video-showcase {
  position: relative;
  margin-top: clamp(24px, 3vw, 40px);
  min-height: clamp(360px, 44vw, 560px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.video-viewport {
  width: 100%;
  min-height: clamp(330px, 41vw, 520px);
  position: relative;
  overflow: visible;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.18), transparent 16rem),
    radial-gradient(circle at 50% 48%, rgba(94, 220, 244, 0.16), transparent 28rem);
}

.video-track {
  position: absolute;
  inset: 0;
  transform: none;
  transition: none;
}

.video-card {
  --x: 0px;
  --scale: 0.72;
  --opacity: 0;
  --blur: 2px;
  --z: 1;
  width: clamp(230px, 24vw, 340px);
  height: clamp(330px, 38vw, 500px);
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: var(--z);
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  opacity: var(--opacity);
  filter: brightness(0.54) blur(var(--blur));
  transform: translate(-50%, -50%) translateX(var(--x)) scale(var(--scale));
  transition:
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 420ms ease,
    filter 420ms ease,
    border-color 420ms ease;
  box-shadow: none;
}

.video-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: transparent;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 9;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(4, 18, 32, 0.58);
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.video-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid currentColor;
}

.video-card.is-playing .video-play {
  opacity: 0;
  pointer-events: none;
}

.video-card.is-active {
  --x: 0px;
  --scale: 1;
  --opacity: 1;
  --blur: 0px;
  --z: 5;
  filter: brightness(1) blur(0);
}

.video-card.is-prev {
  --x: clamp(-340px, -28vw, -250px);
  --scale: 0.86;
  --opacity: 0.54;
  --blur: 1px;
  --z: 4;
}

.video-card.is-next {
  --x: clamp(250px, 28vw, 340px);
  --scale: 0.86;
  --opacity: 0.54;
  --blur: 1px;
  --z: 4;
}

.video-card.is-far-prev {
  --x: clamp(-650px, -52vw, -460px);
  --scale: 0.78;
  --opacity: 0.28;
  --blur: 2px;
  --z: 2;
}

.video-card.is-far-next {
  --x: clamp(460px, 52vw, 650px);
  --scale: 0.78;
  --opacity: 0.28;
  --blur: 2px;
  --z: 2;
}

.video-controls {
  display: none;
}

.video-nav {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 28px;
  font-weight: 900;
  box-shadow: none;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.video-nav:hover {
  background: rgba(94, 220, 244, 0.36);
}

.video-nav-prev {
  left: calc(50% - clamp(170px, 16vw, 250px));
}

.video-nav-next {
  right: calc(50% - clamp(170px, 16vw, 250px));
}

.video-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.video-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease;
}

.video-dot.is-active {
  width: 32px;
  background: rgba(255, 255, 255, 0.86);
}

.motion {
  background:
    linear-gradient(rgba(94, 220, 244, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 220, 244, 0.055) 1px, transparent 1px),
    rgba(15, 27, 61, 0.64);
  border-block: 1px solid rgba(94, 220, 244, 0.18);
  background-size: 40px 40px, 40px 40px, auto;
}

.motion-list,
.rive-wall {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}

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

.rive-wall-item {
  aspect-ratio: 16 / 9;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(94, 220, 244, 0.24);
  background: rgba(10, 14, 39, 0.46);
  overflow: hidden;
  cursor: pointer;
}

.rive-wall-item.is-card-game {
  background: #161329;
}

.rive-wall-item.is-text-peeled {
  background: #dbd5cf;
}

.rive-wall-item.is-daynight {
  background: #dfd7c7;
}

.rive-wall-item.is-kidoo {
  background: #f2f2ff;
}

.rive-wall-item canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.rive-wall-item:hover {
  border-color: rgba(94, 220, 244, 0.72);
}

.motion-item {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1fr);
  column-gap: clamp(26px, 4vw, 52px);
  align-items: center;
  padding: clamp(22px, 3.2vw, 38px);
  border: 1px solid rgba(94, 220, 244, 0.18);
  background: rgba(10, 14, 39, 0.46);
  overflow: visible;
  transition: transform 220ms steps(3, end);
}

.motion-item:hover {
  transform: translateY(-4px);
}

.motion-item.live-rive-item:hover {
  transform: none;
}

.motion-copy h3 {
  color: var(--orbit-cyan);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
  text-shadow: 3px 3px 0 var(--orbit-navy);
}

.motion-copy p {
  max-width: 430px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.85;
}

.motion-item:first-child .motion-copy h3 {
  white-space: nowrap;
}

.rive-slot {
  width: min(360px, 100%);
  aspect-ratio: 1;
  justify-self: end;
  position: relative;
  display: grid;
  place-items: center;
  border: 3px solid var(--orbit-cyan);
  background:
    linear-gradient(rgba(15, 27, 61, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 27, 61, 0.1) 1px, transparent 1px),
    var(--orbit-lavender);
  background-size: 30px 30px, 30px 30px, auto;
  color: var(--orbit-navy);
  box-shadow: 6px 6px 0 rgba(240, 166, 202, 0.78);
  transition: transform 220ms steps(3, end), box-shadow 220ms steps(3, end);
}

.motion-item:hover .rive-slot {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 rgba(244, 208, 63, 0.74);
}

.rive-slot span {
  position: relative;
  z-index: 1;
  padding: 12px 14px;
  background: var(--orbit-navy);
  color: #fff;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  box-shadow: 4px 4px 0 var(--orbit-yellow);
}

.rive-slot canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 5;
  touch-action: none;
  pointer-events: auto;
}

.rive-slot.is-live {
  width: min(520px, 100%);
  aspect-ratio: 16 / 9;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  overflow: visible;
  cursor: pointer;
}

.motion-item:hover .rive-slot.is-live {
  transform: none;
  box-shadow: none;
}

.rive-slot.is-live .rive-status {
  left: 16px;
  bottom: 16px;
}

.rive-slot.is-live.is-loaded .rive-status {
  display: none;
}

.slot-pixels::before,
.slot-pixels::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 3px solid var(--orbit-pink);
  transform: rotate(12deg);
}

.slot-pixels::after {
  inset: 30%;
  border-color: var(--orbit-yellow);
  transform: rotate(-16deg);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(20px, 3vw, 34px);
}

.about-card,
.skill-card {
  padding: clamp(26px, 3.4vw, 40px);
  transition: transform 180ms steps(3, end), background 180ms steps(3, end), box-shadow 180ms steps(3, end);
}

.skill-stack {
  display: grid;
  gap: clamp(18px, 2.2vw, 26px);
}

.skill-card {
  display: block;
  min-height: 150px;
}

.about-focus {
  display: inline-block;
  margin-top: 2px;
  padding: 3px 6px;
  background: var(--orbit-navy);
  color: var(--orbit-yellow);
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--orbit-cyan);
}

.contact-panel {
  min-height: 280px;
  padding: clamp(34px, 5vw, 62px);
  background:
    linear-gradient(rgba(15, 27, 61, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 27, 61, 0.08) 1px, transparent 1px),
    var(--orbit-pink);
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: 7px 7px 0 var(--orbit-yellow);
}

.contact-panel h2 {
  color: var(--orbit-navy);
  font-size: clamp(36px, 6vw, 82px);
  line-height: 0.98;
  text-transform: none;
  text-shadow: none;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: var(--orbit-navy);
  color: #fff;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13px;
  box-shadow: 4px 4px 0 var(--orbit-cyan);
  transition: transform 160ms steps(2, end), background 160ms steps(2, end), box-shadow 160ms steps(2, end);
}

footer {
  padding: 0 0 36px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.footer-line {
  border-top: 2px solid rgba(94, 220, 244, 0.24);
  padding-top: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms steps(8, end), transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.click-particle {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: var(--particle-size, 6px);
  height: var(--particle-size, 6px);
  pointer-events: none;
  background: var(--particle-color, var(--orbit-cyan));
  box-shadow: 2px 2px 0 var(--particle-shadow, var(--orbit-yellow));
  opacity: 0;
  transform: translate3d(var(--particle-x), var(--particle-y), 0) scale(1);
  animation: clickParticleBurst 520ms steps(7, end) forwards;
}

@keyframes pixelBeat {
  0%, 100% { transform: translate(0, 0); box-shadow: 4px 4px 0 var(--orbit-pink); }
  50% { transform: translate(1px, -1px); box-shadow: 5px 5px 0 var(--orbit-pink); }
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes clickParticleBurst {
  0% {
    opacity: 1;
    transform: translate3d(var(--particle-x), var(--particle-y), 0) scale(1);
  }
  68% {
    opacity: 0.95;
    transform: translate3d(calc(var(--particle-x) + var(--burst-x) * 0.78), calc(var(--particle-y) + var(--burst-y) * 0.78), 0) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--particle-x) + var(--burst-x)), calc(var(--particle-y) + var(--burst-y)), 0) scale(0.25);
  }
}

@media (max-width: 980px) {
  .wrap,
  .hero,
  #work,
  #about,
  #contact,
  #motion .wrap {
    width: min(100% - 28px, 1180px);
  }

  .hero-grid,
  .motion-item,
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .video-card {
    flex-basis: calc((100% - var(--video-gap)) / 2);
  }

  .rive-wall {
    grid-template-columns: 1fr;
  }

  .rive-slot {
    justify-self: start;
  }

}

@media (max-width: 640px) {
  .wrap,
  .hero,
  #work,
  #about,
  #contact,
  #motion .wrap {
    width: min(100% - 20px, 1180px);
  }

  .nav {
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: clamp(3.35rem, 17vw, 5.1rem);
    line-height: 1.08;
    text-shadow: 3px 3px 0 var(--orbit-yellow), 5px 5px 0 var(--orbit-navy);
  }

  .hero-modules {
    grid-template-columns: 1fr;
  }

  .project {
    min-height: 180px;
  }

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

  .video-card {
    width: min(70vw, 260px);
    height: min(112vw, 430px);
  }

  .video-card.is-prev,
  .video-card.is-far-prev {
    --x: -64vw;
  }

  .video-card.is-next,
  .video-card.is-far-next {
    --x: 64vw;
  }

  .video-nav-prev {
    left: 12px;
  }

  .video-nav-next {
    right: 12px;
  }

  .project-grid,
  .motion-list,
  .rive-wall,
  .about-grid,
  .skill-stack {
    gap: 24px;
  }

  .terminal-card {
    animation: none;
  }

  .rive-slot {
    box-shadow: 4px 4px 0 rgba(244, 208, 63, 0.82);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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