:root {
  --sky: #35d7ff;
  --sky-soft: #8be9ff;
  --sky-pale: #102f52;
  --ink: #e9f6ff;
  --blue-ink: #9bdcff;
  --paper: #061525;
  --panel: rgba(10, 34, 58, 0.78);
  --line: rgba(126, 219, 255, 0.18);
  --line-strong: rgba(126, 219, 255, 0.54);
  --radius: 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(126, 219, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 219, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, #061525 0%, #0a2746 48%, #061525 100%);
  background-size: 28px 28px, 28px 28px, auto;
}

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

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.ascii-box {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 10px 10px 0 rgba(53, 215, 255, 0.2);
  backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 18, 32, 0.88);
  backdrop-filter: blur(16px);
}

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

.logo {
  font-weight: 900;
  color: var(--blue-ink);
  white-space: nowrap;
}

.logo::before {
  content: "/* ";
  color: var(--sky);
}

.logo::after {
  content: " */";
  color: var(--sky);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.nav-links a {
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--blue-ink);
}

.nav-links a:hover {
  border-color: var(--line);
  background: rgba(53, 215, 255, 0.14);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--sky);
  color: #04131f;
  font-weight: 900;
  box-shadow: 5px 5px 0 rgba(1, 9, 18, 0.82);
  text-align: center;
  line-height: 1.2;
}

.button.alt {
  background: #0d2944;
  color: var(--ink);
  box-shadow: none;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: center;
  padding: 56px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 34px;
  align-items: stretch;
}

.hero-copy {
  padding: clamp(22px, 4vw, 42px);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy::before {
  content: "+--------------------------------------------------+";
  display: block;
  color: var(--sky);
  margin-bottom: 22px;
  white-space: nowrap;
}

.kicker {
  color: var(--blue-ink);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-top: 18px;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--ink);
  white-space: normal;
}

.subtitle {
  margin-top: 20px;
  font-size: clamp(15px, 1.75vw, 22px);
  line-height: 1.25;
  color: var(--blue-ink);
  font-weight: 900;
  white-space: nowrap;
}

.intro {
  max-width: 700px;
  margin-top: 24px;
  color: #b8d5e8;
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-modules {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.hero-module {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(12, 42, 70, 0.64);
  color: var(--ink);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 900;
  line-height: 1.12;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.hero-module:hover {
  transform: translate(-2px, -2px);
  background: var(--sky-pale);
  box-shadow: 5px 5px 0 rgba(53, 215, 255, 0.28);
}

.hero-module-number {
  color: var(--sky);
  font-size: 18px;
}

.terminal-card {
  padding: 20px;
  background: #020b17;
  color: var(--sky-pale);
  border-radius: var(--radius);
  border: 1px solid rgba(139, 233, 255, 0.18);
  box-shadow: 14px 14px 0 rgba(53, 215, 255, 0.26);
  min-height: 520px;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(139, 233, 255, 0.34);
  color: var(--sky-soft);
  font-size: 13px;
}

.dots {
  display: flex;
  gap: 7px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky);
}

.ascii-portrait {
  align-self: center;
  justify-self: center;
  white-space: pre;
  color: var(--sky);
  font-size: clamp(10px, 1.45vw, 16px);
  line-height: 1.05;
  text-align: left;
  text-shadow: 0 0 18px rgba(53, 215, 255, 0.62);
}

.hero-rive-stage {
  align-self: center;
  justify-self: center;
  width: min(100%, 330px);
  aspect-ratio: 1 / 1;
  position: relative;
  display: grid;
  place-items: center;
}

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

.hero-rive-stage .rive-status {
  color: rgba(155, 220, 255, 0.72);
  text-align: center;
}

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

section {
  padding: 84px 0;
}

.section-title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 26px;
}

h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  text-transform: lowercase;
}

h2::before {
  content: "# ";
  color: var(--sky);
}

.section-title p {
  max-width: 390px;
  color: #a8c7dc;
  line-height: 1.65;
  font-size: 14px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.project {
  grid-column: span 6;
  padding: 18px;
  min-height: 300px;
  display: grid;
  align-content: space-between;
}

.project:nth-child(3) {
  grid-column: span 7;
}

.project:nth-child(4) {
  grid-column: span 5;
}

.project-art {
  min-height: 150px;
  border: 1px dashed var(--line-strong);
  background:
    linear-gradient(90deg, rgba(53, 215, 255, 0.18), transparent),
    repeating-linear-gradient(0deg, transparent 0 12px, rgba(126, 219, 255, 0.08) 12px 13px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--blue-ink);
  font-size: 12px;
  line-height: 1.2;
  white-space: pre;
}

.project h3 {
  margin-top: 18px;
  font-size: 24px;
  line-height: 1.18;
}

.project p {
  margin-top: 12px;
  color: #a8c7dc;
  line-height: 1.7;
  font-size: 14px;
}

.meta {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--blue-ink);
  font-size: 12px;
  font-weight: 800;
}

.meta span:last-child {
  margin-left: auto;
}

.meta.keywords {
  justify-content: flex-start;
  row-gap: 8px;
}

.meta.keywords span:last-child {
  margin-left: 0;
}

.motion {
  background:
    linear-gradient(135deg, rgba(53, 215, 255, 0.14), transparent 38%),
    rgba(4, 18, 32, 0.58);
  color: var(--ink);
  border-block: 1px solid var(--line);
}

.motion h2 {
  color: var(--ink);
}

.motion .section-title p {
  color: #a8c7dc;
}

.motion-list {
  display: grid;
  gap: 30px;
}

.motion-item {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(560px, 1.22fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  min-height: 420px;
  padding: clamp(18px, 3vw, 28px);
  border: 0;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 10px 10px 0 rgba(53, 215, 255, 0.18);
  backdrop-filter: blur(18px);
}

.motion-copy h3 {
  font-size: 28px;
  color: var(--ink);
}

.motion-copy p {
  max-width: 620px;
  margin-top: 14px;
  color: #a8c7dc;
  line-height: 1.72;
}

.file-size {
  display: block;
  margin-top: 22px;
  color: var(--blue-ink);
  font-weight: 900;
  font-size: 17px;
}

.rive-slot {
  width: min(400px, 100%);
  aspect-ratio: 1;
  justify-self: end;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(rgba(126, 219, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 219, 255, 0.1) 1px, transparent 1px),
    #0a223b;
  background-size: 20px 20px;
  display: grid;
  place-items: center;
  color: #e9f6ff;
  position: relative;
  overflow: hidden;
}

.rive-slot.is-direct {
  width: min(760px, 100%);
  aspect-ratio: 1 / 1;
  border: 0;
  background: transparent;
  background-size: auto;
  overflow: visible;
}

.rive-slot.is-direct::before {
  display: none;
}

.rive-slot::before {
  content: attr(data-label);
  position: fixed;
  left: 14px;
  top: 12px;
  color: rgba(155, 220, 255, 0.52);
  font-size: 12px;
  font-weight: 900;
}

.rive-slot canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.rive-slot.is-direct canvas {
  background: transparent;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}

.rive-skin-slider {
  position: absolute;
  z-index: 3;
  left: 5.2%;
  top: 28%;
  width: 42px;
  height: 35%;
  padding: 0;
  border: 0;
  opacity: 0.01;
  cursor: ns-resize;
  touch-action: none;
  transform: none;
  appearance: slider-vertical;
  -webkit-appearance: slider-vertical;
}

.rive-status {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: rgba(155, 220, 255, 0.68);
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
}

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

.ascii-demo {
  white-space: pre;
  color: var(--blue-ink);
  font-size: clamp(12px, 2vw, 18px);
  line-height: 1.1;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.about-card,
.skill-card {
  display: block;
  padding: 22px;
}

.about-card p,
.skill-card p {
  color: #a8c7dc;
  line-height: 1.75;
  font-size: 14px;
}

.about-card h3,
.skill-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

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

.skill-card:hover {
  background: var(--sky-pale);
  box-shadow: 5px 5px 0 rgba(53, 215, 255, 0.24);
}

.contact-panel {
  padding: clamp(24px, 5vw, 46px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(53, 215, 255, 0.26), transparent 40%),
    #0a223b;
}

.contact-panel h2 {
  max-width: 820px;
  text-transform: none;
}

.contact-panel p {
  max-width: 680px;
  margin-top: 18px;
  color: #a8c7dc;
  line-height: 1.7;
}

.contact-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: #a8c7dc;
  line-height: 1.8;
  font-size: 14px;
}

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

.contact-links a {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--sky-pale);
  font-weight: 800;
}

.stamp {
  width: 150px;
  aspect-ratio: 1;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--blue-ink);
  font-weight: 900;
  transform: rotate(8deg);
}

footer {
  padding: 0 0 36px;
  color: #a8c7dc;
  font-size: 12px;
}

.footer-line {
  border-top: 1px dashed var(--line-strong);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }

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

  .terminal-card {
    min-height: 420px;
  }

  .project,
  .project:nth-child(3),
  .project:nth-child(4) {
    grid-column: 1 / -1;
  }

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

  .rive-slot.is-direct {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 22px, 1120px);
  }

  .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .hero-copy::before {
    content: "+------------------------------+";
  }

  .section-title {
    grid-template-columns: 1fr;
  }

  section {
    padding: 64px 0;
  }

  .motion-item {
    min-height: auto;
  }

  .footer-line {
    display: block;
  }

  .footer-line span:last-child {
    display: block;
    margin-top: 8px;
  }
}

/* Editorial layout refresh */
body {
  background:
    radial-gradient(circle at 82% 8%, rgba(53, 215, 255, 0.14), transparent 25rem),
    radial-gradient(circle at 10% 58%, rgba(34, 107, 255, 0.12), transparent 32rem),
    linear-gradient(rgba(126, 219, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 219, 255, 0.045) 1px, transparent 1px),
    #061525;
  background-size: auto, auto, 52px 52px, 52px 52px, auto;
}

.wrap {
  width: min(1240px, calc(100% - 64px));
}

.ascii-box {
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: none;
}

.topbar {
  background: rgba(4, 18, 32, 0.72);
}

.nav {
  min-height: 72px;
}

.logo {
  letter-spacing: 0.08em;
}

.nav-links {
  gap: 20px;
}

.nav-links a {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: #b8d5e8;
}

.nav-links a:hover {
  border-color: var(--sky);
  background: transparent;
  color: var(--sky);
}

.button {
  min-height: 40px;
  padding: 0 18px;
  border-color: var(--sky);
  border-radius: 999px;
  box-shadow: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 72px 0 84px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  min-height: auto;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.hero-copy::before {
  display: none;
}

.kicker {
  color: var(--blue-ink);
  font-size: 12px;
  letter-spacing: 0.18em;
}

h1 {
  max-width: 780px;
  margin-top: 22px;
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 1.04;
}

.subtitle {
  max-width: 690px;
  margin-top: 30px;
  color: #d4ecfb;
  font-size: clamp(14px, 1.5vw, 20px);
  line-height: 1.45;
  white-space: nowrap;
}

.intro {
  max-width: 620px;
  margin-top: 18px;
  color: var(--sky);
  font-size: 15px;
  line-height: 1.8;
}

.hero-modules {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-module {
  min-height: 64px;
  padding: 14px 0;
  grid-template-columns: 1fr;
  gap: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: #d4ecfb;
  font-size: 15px;
  line-height: 1.3;
}

.hero-module:nth-child(even) {
  padding-left: 22px;
  border-right: 0;
}

.hero-module:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
  color: var(--sky);
}

.hero-module-number {
  display: none;
}

.terminal-card {
  min-height: 560px;
  padding: 18px;
  border-color: var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 42%, rgba(53, 215, 255, 0.15), transparent 52%),
    rgba(2, 11, 23, 0.82);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.terminal-top {
  border-bottom-color: var(--line);
  color: #91b3ca;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dots i {
  width: 7px;
  height: 7px;
}

section {
  padding: 128px 0;
}

.section-title {
  align-items: start;
  margin-bottom: 54px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

h2 {
  font-size: clamp(42px, 6vw, 82px);
  letter-spacing: -0.08em;
}

h2::before {
  display: none;
}

.section-title p {
  color: #91b3ca;
}

.project-grid {
  display: block;
  border-top: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 0;
  padding: 30px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  transition: background 180ms ease, padding 180ms ease;
}

.project:hover {
  padding-inline: 18px;
  background: rgba(53, 215, 255, 0.045);
}

.project-art {
  display: none;
}

.project h3 {
  margin-top: 2px;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -0.06em;
}

.project p {
  max-width: 700px;
  color: #a8c7dc;
}

.meta {
  gap: 8px;
  border-top: 0;
}

.meta span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.motion {
  background: rgba(2, 13, 26, 0.48);
}

.motion-list {
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.motion-item {
  min-height: 380px;
  padding: clamp(24px, 4vw, 54px);
  border-radius: 0;
  background: #071b30;
  box-shadow: none;
}

.motion-item:nth-child(even) .motion-copy {
  order: 2;
}

.motion-item:nth-child(even) .rive-slot {
  justify-self: start;
}

.motion-copy h3 {
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: -0.07em;
}

.motion-copy p,
.file-size {
  display: none;
}

.file-size {
  color: var(--sky);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rive-slot {
  width: min(360px, 100%);
  border-color: var(--line);
  border-radius: 18px;
}

.about-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.about-card,
.skill-card {
  padding: clamp(26px, 4vw, 48px);
  border: 0;
  border-radius: 0;
  background: #071b30;
}

.about-card h3,
.skill-card h3 {
  font-size: clamp(20px, 2.5vw, 32px);
  letter-spacing: -0.06em;
}

.skill-stack {
  gap: 1px;
}

.skill-card {
  display: grid;
  align-items: end;
  min-height: 150px;
  transition: background 180ms ease;
}

.skill-card:hover {
  background: var(--sky-pale);
  box-shadow: none;
}

.contact-panel {
  padding: clamp(32px, 6vw, 76px);
  border-color: var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 14%, rgba(53, 215, 255, 0.2), transparent 18rem),
    #071b30;
}

.contact-panel h2 {
  max-width: 920px;
  font-size: clamp(28px, 5vw, 64px);
  white-space: nowrap;
}

.contact-links a {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(53, 215, 255, 0.04);
}

.contact-links a {
  color: var(--blue-ink);
  font-size: 13px;
}

.stamp {
  width: 128px;
  border-color: var(--sky);
  color: var(--sky);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer {
  color: #6f95ae;
}

@media (max-width: 880px) {
  .wrap {
    width: min(100% - 32px, 1240px);
  }

  .hero {
    padding-top: 52px;
  }

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

  .terminal-card {
    min-height: 390px;
  }

  .motion-item:nth-child(even) .motion-copy {
    order: initial;
  }

  .rive-slot,
  .motion-item:nth-child(even) .rive-slot {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 24px, 1240px);
  }

  h1 {
    font-size: clamp(54px, 19vw, 86px);
  }

  section {
    padding: 88px 0;
  }

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

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

  .hero-module,
  .hero-module:nth-child(even) {
    padding-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .subtitle {
    font-size: clamp(12px, 3.3vw, 16px);
  }

  .hero-module:last-child {
    border-bottom: 0;
  }

  .stamp {
    width: 104px;
  }
}

/* Personality pass: kinetic, high-contrast, future editorial. */
:root {
  --electric: #00a8ff;
  --acid: #6ff7ff;
  --void: #020914;
  --deep: #071b30;
  --glass: rgba(7, 27, 48, 0.72);
  --mx: 50vw;
  --my: 50vh;
}

body {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(0, 168, 255, 0.2), transparent 18rem),
    radial-gradient(circle at 72% 18%, rgba(111, 247, 255, 0.12), transparent 28rem),
    linear-gradient(rgba(126, 219, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 219, 255, 0.04) 1px, transparent 1px),
    var(--void);
  background-size: auto, auto, 58px 58px, 58px 58px, auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(53, 215, 255, 0.08) 48%, transparent 56%),
    radial-gradient(circle at 20% 80%, rgba(0, 168, 255, 0.12), transparent 22rem);
  animation: atmosphere 14s ease-in-out infinite alternate;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(53, 215, 255, 0.22), transparent 68%);
  mix-blend-mode: screen;
  opacity: 0.75;
  transform: translate3d(calc(var(--mx) - 110px), calc(var(--my) - 110px), 0);
  transition: opacity 180ms ease;
}

.topbar {
  border-bottom-color: rgba(53, 215, 255, 0.28);
  background: rgba(2, 9, 20, 0.78);
}

.logo {
  color: var(--acid);
  text-shadow: 0 0 18px rgba(53, 215, 255, 0.32);
}

.button {
  background: var(--acid);
  border-color: var(--acid);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(111, 247, 255, 0.34);
}

.motion-rail {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid rgba(53, 215, 255, 0.28);
  background: rgba(0, 168, 255, 0.08);
  color: var(--acid);
  font-size: clamp(12px, 1.25vw, 18px);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.motion-rail span {
  display: inline-block;
  min-width: 200%;
  padding: 12px 0;
  animation: marquee 18s linear infinite;
}

.motion-rail.is-reverse span {
  animation-direction: reverse;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: clamp(72px, 10vw, 150px) 0;
}

.hero::before {
  content: "";
  position: absolute;
  left: max(24px, calc((100vw - 1240px) / 2));
  top: 18%;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(53, 215, 255, 0.22);
  border-radius: 50%;
  opacity: 0.7;
  animation: orbitPulse 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.72fr);
}

.hero-copy {
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid rgba(53, 215, 255, 0.22);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.14), rgba(2, 9, 20, 0.05));
  box-shadow: inset 0 0 0 1px rgba(111, 247, 255, 0.07);
}

.kicker {
  width: max-content;
  padding: 7px 10px;
  border: 1px solid rgba(111, 247, 255, 0.35);
  border-radius: 999px;
  background: rgba(111, 247, 255, 0.06);
  color: var(--acid);
}

h1 {
  font-size: clamp(62px, 10vw, 146px);
  letter-spacing: -0.12em;
  text-shadow: 0 0 42px rgba(53, 215, 255, 0.2);
}

.subtitle {
  width: max-content;
  max-width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(111, 247, 255, 0.28);
  color: #f1fbff;
}

.intro {
  color: var(--acid);
  text-shadow: 0 0 20px rgba(111, 247, 255, 0.28);
}

.terminal-card {
  position: relative;
  min-height: min(62vw, 600px);
  border-radius: 34px;
  transform: rotate(1.5deg);
  animation: floatCard 7s ease-in-out infinite;
}

.terminal-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(53, 215, 255, 0.14);
  border-radius: 24px;
  pointer-events: none;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-top-color: rgba(53, 215, 255, 0.32);
}

h2 {
  font-size: clamp(58px, 9vw, 128px);
  color: #f3fbff;
  text-transform: uppercase;
  text-shadow: 0 0 36px rgba(53, 215, 255, 0.18);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border-top: 0;
}

.project {
  position: relative;
  min-height: 260px;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid rgba(53, 215, 255, 0.22);
  border-radius: 28px;
  background: rgba(7, 27, 48, 0.62);
  overflow: hidden;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.project::after {
  content: "OPEN";
  position: absolute;
  right: 26px;
  bottom: 22px;
  color: rgba(111, 247, 255, 0.46);
  font-size: 12px;
  letter-spacing: 0.18em;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.project:hover {
  padding-inline: clamp(24px, 3vw, 42px);
  transform: translateY(-8px) scale(1.015);
  border-color: var(--acid);
  background: rgba(0, 168, 255, 0.18);
}

.project:hover::after {
  transform: translateY(0);
  opacity: 1;
}

.project h3 {
  max-width: 11ch;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.11em;
}

.project p {
  margin-top: 28px;
  color: #d7efff;
}

.motion {
  position: relative;
  background:
    radial-gradient(circle at 80% 20%, rgba(53, 215, 255, 0.14), transparent 30rem),
    rgba(2, 9, 20, 0.72);
}

.motion-list {
  gap: 16px;
  border: 0;
  background: transparent;
}

.motion-item {
  min-height: min(82vh, 720px);
  border: 1px solid rgba(53, 215, 255, 0.26);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(0, 168, 255, 0.18), rgba(7, 27, 48, 0.64)),
    var(--deep);
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease;
}

.motion-item:hover {
  transform: translateY(-6px);
  border-color: var(--acid);
}

.motion-copy h3 {
  max-width: 8ch;
  font-size: clamp(46px, 7vw, 104px);
  line-height: 0.9;
  text-transform: uppercase;
}

.rive-slot {
  width: min(500px, 100%);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(53, 215, 255, 0.18), transparent 55%),
    rgba(2, 9, 20, 0.46);
  box-shadow: 0 0 70px rgba(53, 215, 255, 0.14);
}

.about-grid,
.contact-panel {
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(0, 168, 255, 0.16), rgba(7, 27, 48, 0.76)),
    var(--deep);
}

.skill-card,
.about-card {
  background: transparent;
  transition: background 200ms ease, color 200ms ease;
}

.skill-card:hover {
  background: rgba(111, 247, 255, 0.12);
}

.contact-panel {
  min-height: 420px;
  align-items: center;
}

.contact-panel h2 {
  font-size: clamp(42px, 8vw, 118px);
  letter-spacing: -0.12em;
}

.contact-links a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 18px;
  border-color: var(--acid);
  color: var(--acid);
  transition: background 180ms ease, color 180ms ease;
}

.contact-links a:hover {
  background: var(--acid);
  color: var(--void);
}

.reveal {
  opacity: 0;
  transform: translateY(42px) scale(0.98);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes atmosphere {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(2%, 2%, 0) scale(1.04);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: rotate(1.5deg) translateY(0);
  }

  50% {
    transform: rotate(-1deg) translateY(-16px);
  }
}

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

  50% {
    transform: scale(1.12);
    opacity: 0.72;
  }
}

@media (max-width: 880px) {
  .cursor-glow {
    display: none;
  }

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

  .terminal-card {
    transform: none;
    animation: none;
  }

  .motion-copy h3,
  .project h3 {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .motion-rail span {
    animation-duration: 12s;
  }

  .subtitle {
    white-space: normal;
  }

  .contact-panel h2 {
    white-space: normal;
  }
}

/* Borderless pass */
.ascii-box,
.topbar,
.nav-links a,
.button,
.hero-copy,
.kicker,
.subtitle,
.terminal-card,
.terminal-top,
.section-title,
.project-grid,
.project,
.meta span,
.motion,
.motion-list,
.motion-item,
.rive-slot,
.about-grid,
.about-card,
.skill-card,
.contact-panel,
.contact-links a,
.footer-line {
  border: 0;
  border-block: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}

.terminal-card::after,
.hero::before {
  border: 0;
}

.motion-rail {
  border-block: 0;
  box-shadow: inset 0 1px 0 rgba(53, 215, 255, 0.08), inset 0 -1px 0 rgba(53, 215, 255, 0.08);
}

.hero-copy,
.project,
.motion-item,
.about-grid,
.contact-panel {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.terminal-card {
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36), 0 0 70px rgba(53, 215, 255, 0.1);
}

.hero-copy {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

main > section:not(.hero) h2 {
  font-size: clamp(40px, 6.2vw, 82px);
  line-height: 1.14;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.project h3,
.motion-copy h3,
.about-card h3,
.skill-card h3 {
  max-width: none;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.06em;
}

.motion-copy h3 {
  font-size: clamp(34px, 5vw, 70px);
  white-space: nowrap;
}

.contact-panel h2 {
  font-size: clamp(34px, 6vw, 82px);
  line-height: 1.12;
  letter-spacing: -0.08em;
  white-space: nowrap;
}

@media (max-width: 760px) {
  main > section:not(.hero) h2,
  .motion-copy h3,
  .contact-panel h2 {
    white-space: normal;
  }
}

#motion .motion-item {
  grid-template-columns: minmax(220px, 0.42fr) 500px;
  min-width: 760px;
  min-height: 500px;
  overflow: visible;
}

#motion .rive-slot {
  width: 500px;
  min-width: 500px;
  max-width: none;
  height: 500px;
  min-height: 500px;
  aspect-ratio: auto;
  justify-self: center;
}

#motion .motion-item:nth-child(even) .rive-slot {
  justify-self: center;
}

#motion .rive-slot canvas {
  width: 500px;
  height: 500px;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center;
}

#motion [data-rive-slot="fps-selector"] canvas {
  transform: scale(1);
}

@media (max-width: 880px) {
  #motion .wrap {
    overflow-x: auto;
  }

  #motion .motion-item {
    grid-template-columns: minmax(220px, 0.42fr) 500px;
    min-height: 500px;
  }

  #motion .rive-slot {
    width: 500px;
  }
}

#motion,
#motion .wrap,
#motion .motion-list,
#motion .motion-item,
#motion .rive-slot {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#motion .motion-item:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
}

#motion .motion-item {
  grid-template-columns: minmax(300px, 1fr) 500px;
  align-items: center;
  column-gap: clamp(48px, 8vw, 160px);
}

#motion .motion-copy {
  order: 0;
  justify-self: start;
  text-align: left;
}

#motion .motion-item:nth-child(even) .motion-copy {
  order: 0;
}

#motion .rive-slot,
#motion .motion-item:nth-child(even) .rive-slot {
  justify-self: end;
}

#motion .motion-copy h3 {
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 880px) {
  #motion .motion-item {
    grid-template-columns: minmax(300px, 1fr) 500px;
  }
}

/* Cover direction: let the personal IP animation lead the portfolio. */
:root {
  --paper: #04070d;
  --void: #04070d;
  --deep: #091421;
  --panel: rgba(9, 20, 33, 0.74);
  --sky: #25d9ff;
  --acid: #74ffd8;
  --figma: #ff5f9e;
  --ae: #b79cff;
  --rive-green: #a4ff4f;
  --ink: #f4fbff;
  --blue-ink: #b8d8e9;
  --line: rgba(244, 251, 255, 0.1);
  --line-strong: rgba(116, 255, 216, 0.28);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  background:
    linear-gradient(rgba(244, 251, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 251, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #04070d 0%, #081320 46%, #050811 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

body::before {
  background:
    linear-gradient(108deg, transparent 0 31%, rgba(116, 255, 216, 0.08) 31% 32%, transparent 32% 70%, rgba(255, 95, 158, 0.055) 70% 71%, transparent 71%),
    linear-gradient(180deg, rgba(183, 156, 255, 0.08), transparent 42%);
  animation: atmosphere 16s ease-in-out infinite alternate;
}

.cursor-glow {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(116, 255, 216, 0.34) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(37, 217, 255, 0.24) 50%, transparent 51%);
  opacity: 0.34;
  transform: translate3d(calc(var(--mx) - 90px), calc(var(--my) - 90px), 0);
}

.wrap {
  width: min(1180px, calc(100% - 48px));
}

.topbar {
  background: rgba(4, 7, 13, 0.78);
  box-shadow: inset 0 -1px 0 rgba(116, 255, 216, 0.08);
}

.logo,
.nav-links a,
.button,
.kicker,
.terminal-top,
.motion-rail,
.meta span,
.cover-tags span,
.contact-links a {
  letter-spacing: 0;
}

.button {
  border-radius: 8px;
  background: var(--acid);
  color: #03100d;
  text-transform: none;
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 72px 0 96px;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.86fr);
  gap: 56px;
}

.hero-copy {
  align-self: center;
}

.kicker {
  width: fit-content;
  border-color: rgba(116, 255, 216, 0.3);
  border-radius: 8px;
  color: var(--acid);
  font-size: 0.8rem;
}

h1 {
  max-width: 700px;
  margin-top: 24px;
  color: var(--ink);
  font-size: 6.6rem;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: none;
}

.subtitle {
  width: auto;
  margin-top: 26px;
  border-bottom: 0;
  color: #ffffff;
  font-size: 1.18rem;
  line-height: 1.45;
  white-space: normal;
}

.intro {
  max-width: 560px;
  margin-top: 16px;
  color: #b8d8e9;
  font-size: 1rem;
  text-shadow: none;
}

.hero-modules {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 34px;
  border: 0;
}

.hero-module,
.hero-module:nth-child(even) {
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(244, 251, 255, 0.09);
  border-radius: 8px;
  background: rgba(244, 251, 255, 0.045);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.2;
}

.hero-module:nth-child(1) {
  color: var(--ae);
}

.hero-module:nth-child(2) {
  color: var(--figma);
}

.hero-module:nth-child(3) {
  color: var(--rive-green);
}

.hero-module-number {
  display: block;
  margin-bottom: 6px;
  color: rgba(244, 251, 255, 0.42);
  font-size: 0.74rem;
}

.terminal-card {
  min-height: 620px;
  padding: 16px;
  border: 1px solid rgba(244, 251, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(116, 255, 216, 0.14), transparent 34%),
    linear-gradient(315deg, rgba(255, 95, 158, 0.12), transparent 42%),
    rgba(9, 20, 33, 0.86);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
  transform: none;
  animation: none;
}

.terminal-top {
  min-height: 32px;
  padding-bottom: 10px;
  color: rgba(244, 251, 255, 0.72);
  font-size: 0.78rem;
  text-transform: none;
}

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

.cover-tags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.cover-tags span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(244, 251, 255, 0.055);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.cover-tags span:nth-child(1) {
  color: var(--ae);
}

.cover-tags span:nth-child(2) {
  color: var(--figma);
}

.cover-tags span:nth-child(3) {
  color: var(--rive-green);
}

.motion-rail {
  color: rgba(116, 255, 216, 0.84);
  background: rgba(244, 251, 255, 0.035);
  font-size: 0.78rem;
}

section {
  padding: 104px 0;
}

.section-title {
  margin-bottom: 34px;
  border: 0;
}

main > section:not(.hero) h2,
h2 {
  font-size: 4rem;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: lowercase;
}

.project-grid {
  gap: 10px;
}

.project,
.motion-item,
.about-grid,
.contact-panel {
  border: 1px solid rgba(244, 251, 255, 0.085);
  border-radius: 8px;
  background: rgba(9, 20, 33, 0.68);
  box-shadow: none;
}

.project {
  min-height: 236px;
}

.project h3,
.motion-copy h3,
.about-card h3,
.skill-card h3,
.contact-panel h2 {
  letter-spacing: 0;
}

.project h3 {
  font-size: 2.6rem;
  line-height: 1.02;
}

.project:nth-child(1) {
  border-color: rgba(116, 255, 216, 0.24);
}

.project:nth-child(2) {
  border-color: rgba(183, 156, 255, 0.24);
}

.project:nth-child(3) {
  border-color: rgba(164, 255, 79, 0.24);
}

.project:nth-child(4) {
  border-color: rgba(255, 95, 158, 0.22);
}

.motion-item {
  min-height: 520px;
}

#motion .motion-item {
  min-width: 0;
  grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 500px);
  column-gap: 64px;
}

#motion .motion-copy h3 {
  font-size: 3.8rem;
  line-height: 1.02;
  white-space: normal;
}

#motion .rive-slot {
  width: min(500px, 100%);
  min-width: 0;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(244, 251, 255, 0.04);
}

#motion .rive-slot canvas {
  width: 100%;
  height: 100%;
}

.about-card,
.skill-card {
  background: transparent;
}

.contact-panel h2 {
  font-size: 4.4rem;
  white-space: normal;
}

.contact-links a {
  border-radius: 8px;
}

@media (max-width: 980px) {
  .wrap {
    width: min(100% - 32px, 1180px);
  }

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

  h1 {
    font-size: 4.6rem;
  }

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

  #motion .wrap {
    overflow-x: visible;
  }

  #motion .rive-slot,
  #motion .motion-item:nth-child(even) .rive-slot {
    justify-self: stretch;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding: 48px 0 72px;
  }

  h1 {
    font-size: 3.4rem;
  }

  .hero-modules,
  .project-grid,
  .cover-tags {
    grid-template-columns: 1fr;
  }

  main > section:not(.hero) h2,
  h2,
  .contact-panel h2 {
    font-size: 2.8rem;
  }

  .project h3,
  #motion .motion-copy h3 {
    font-size: 2.3rem;
  }
}

/* Rive editor portfolio direction */
:root {
  --editor-bg: #151515;
  --editor-top: #252525;
  --editor-panel: #202020;
  --editor-panel-2: #2b2b2b;
  --editor-line: rgba(255, 255, 255, 0.09);
  --editor-blue: #2ba9ff;
  --artboard-a: #eeeaff;
  --artboard-b: #c9c0ff;
  --artboard-c: #a99aff;
  --purple: #6750f3;
  --purple-2: #9b82ff;
  --pink: #ff76bf;
  --cyan: #48b9ff;
  --mint: #71f2c7;
  --ink: #f5f5f5;
  --blue-ink: #d7d1ff;
  --paper: var(--editor-bg);
  --void: var(--editor-bg);
  --deep: var(--editor-panel);
  --panel: var(--editor-panel);
  --line: var(--editor-line);
  --line-strong: rgba(43, 169, 255, 0.76);
  --sky: var(--cyan);
  --acid: var(--mint);
  --ae: var(--purple-2);
  --figma: var(--pink);
  --rive-green: var(--mint);
  --radius: 6px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
  background: var(--editor-bg);
}

body {
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 70% 18%, rgba(103, 80, 243, 0.14), transparent 32rem),
    #151515;
  background-size: 46px 46px, 46px 46px, auto, auto;
}

body::before {
  background:
    linear-gradient(90deg, rgba(34, 34, 34, 0.96) 0 232px, transparent 232px calc(100% - 232px), rgba(34, 34, 34, 0.84) calc(100% - 232px)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%);
  animation: none;
}

.cursor-glow {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 169, 255, 0.2), transparent 66%);
  opacity: 0.5;
  transform: translate3d(calc(var(--mx) - 60px), calc(var(--my) - 60px), 0);
}

.wrap {
  width: min(100% - 32px, 1520px);
}

.topbar {
  background: var(--editor-top);
  box-shadow: 0 1px 0 #111, inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.nav {
  min-height: 50px;
  display: grid;
  grid-template-columns: 232px 1fr auto;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ececec;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-shadow: none;
}

.logo::before {
  content: "R";
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  background: #111;
  color: #d7d1ff;
  font-weight: 900;
}

.logo::after {
  content: "作品集封面";
  padding: 5px 10px;
  border-radius: 4px;
  background: #303030;
  color: #bfbfbf;
  font-weight: 700;
}

.nav-links {
  justify-content: center;
  gap: 6px;
  font-size: 12px;
}

.nav-links a {
  min-width: 58px;
  padding: 7px 10px;
  border-radius: 4px;
  color: #bdbdbd;
  text-align: center;
}

.nav-links a:hover {
  background: #343434;
  color: #fff;
}

.button {
  min-height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 4px;
  background: #2f9cff;
  color: #fff;
  box-shadow: none;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.motion-rail {
  height: 34px;
  display: flex;
  align-items: center;
  color: #a5a5a5;
  background: #1b1b1b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 #101010;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.motion-rail span {
  padding: 0;
  animation-duration: 28s;
}

.motion-rail span::before {
  content: "Stage / ";
  color: #fff;
}

.hero {
  width: min(100% - 32px, 1520px);
  min-height: calc(100vh - 84px);
  padding: 24px 0 34px;
}

.hero-grid {
  min-height: calc(100vh - 142px);
  display: grid;
  grid-template-columns: 260px minmax(520px, 1fr);
  gap: 18px;
  align-items: stretch;
  position: relative;
}

.hero-copy {
  position: relative;
  padding: 48px 12px 14px;
  border: 1px solid var(--editor-line);
  border-radius: 6px;
  background: rgba(32, 32, 32, 0.96);
  box-shadow: none;
  overflow: hidden;
}

.hero-copy::after {
  content: "Hierarchy";
  position: absolute;
  left: 14px;
  top: 12px;
  color: #d8d8d8;
  font-size: 12px;
  font-weight: 760;
}

.kicker {
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 4px;
  background: #303030;
  color: #cfcfcf;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

h1 {
  margin-top: 16px;
  color: #fff;
  font-size: 2.8rem;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
}

.subtitle {
  margin-top: 14px;
  color: #d7d1ff;
  font-size: 14px;
  line-height: 1.45;
  white-space: normal;
}

.intro {
  margin-top: 12px;
  color: #a8a8a8;
  font-size: 13px;
  line-height: 1.7;
  text-shadow: none;
}

.hero-modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-top: 22px;
  border: 0;
}

.hero-module,
.hero-module:nth-child(even) {
  min-height: 34px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #cfcfcf;
  font-size: 12px;
  line-height: 1.15;
  box-shadow: none;
}

.hero-module:hover {
  background: #2d2d2d;
  color: #fff;
}

.hero-module-number {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin: 0;
  border-radius: 4px;
  background: #343434;
  color: #8d8d8d;
  font-size: 10px;
}

.hero-module:nth-child(1) {
  color: var(--ae);
}

.hero-module:nth-child(2) {
  color: var(--figma);
}

.hero-module:nth-child(3) {
  color: var(--rive-green);
}

.terminal-card {
  position: relative;
  min-height: 640px;
  height: 100%;
  padding: 44px clamp(18px, 3vw, 58px) 48px;
  border: 0;
  border-radius: 6px;
  background: #171717;
  box-shadow: inset 0 0 0 1px #0e0e0e;
  transform: none;
  animation: none;
  overflow: visible;
}

.terminal-card::before {
  content: "Artboard";
  position: absolute;
  left: 16px;
  top: 12px;
  color: #e3e3e3;
  font-size: 12px;
  font-weight: 760;
}

.terminal-card::after {
  content: "";
  position: absolute;
  inset: 34px clamp(14px, 2.4vw, 50px) 36px;
  z-index: 0;
  border: 1px solid rgba(43, 169, 255, 0.86);
  border-radius: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.42) 0 1.5px, transparent 2px),
    radial-gradient(circle at 74% 14%, rgba(255, 255, 255, 0.7) 0 1.5px, transparent 2px),
    linear-gradient(145deg, var(--artboard-a) 0%, var(--artboard-b) 58%, var(--artboard-c) 100%);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.terminal-top {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 3vw, 60px);
  top: 12px;
  min-height: 0;
  padding: 0;
  border: 0;
  color: #9d9d9d;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.terminal-top .dots {
  display: none;
}

.hero-rive-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  aspect-ratio: 1;
  align-self: center;
  justify-self: center;
}

.hero-rive-stage canvas {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
}

.cover-tags {
  position: absolute;
  z-index: 3;
  right: 18px;
  top: 68px;
  width: 170px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border-radius: 6px;
  background: rgba(43, 43, 43, 0.96);
  box-shadow: inset 0 0 0 1px var(--editor-line);
}

.cover-tags::before {
  content: "Properties";
  color: #cfcfcf;
  font-size: 12px;
  font-weight: 760;
}

.cover-tags span {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  background: #232323;
  color: #d5d5d5;
  font-size: 12px;
  font-weight: 760;
}

.cover-tags span::after {
  content: "100%";
  color: #8f8f8f;
  font-size: 11px;
  font-weight: 600;
}

section {
  padding: 46px 0;
}

.section-title {
  margin-bottom: 12px;
  padding: 0;
  border: 0;
}

main > section:not(.hero) h2,
h2 {
  color: #f0f0f0;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
}

main > section:not(.hero) h2::before {
  content: "";
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--cyan);
}

#work,
#about,
#contact,
#motion .wrap {
  width: min(100% - 32px, 1520px);
  padding-inline: 0;
}

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

.project,
.motion-item,
.about-grid,
.contact-panel {
  border: 1px solid var(--editor-line);
  border-radius: 6px;
  background: var(--editor-panel);
  box-shadow: none;
}

.project {
  min-height: 190px;
  padding: 16px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.project::before {
  content: "";
  display: block;
  width: 100%;
  height: 74px;
  margin-bottom: 18px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.95) 0 2px, transparent 2.6px),
    linear-gradient(135deg, #eeeaff, #b8a9ff);
}

.project:hover {
  transform: translateY(-3px);
  border-color: rgba(43, 169, 255, 0.8);
  background: #252525;
}

.project::after {
  display: none;
}

.project h3 {
  max-width: none;
  color: #f2f2f2;
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: 0;
}

.project p {
  margin-top: 8px;
  color: #a4a4a4;
  font-size: 13px;
}

.meta {
  margin-top: 14px;
  padding-top: 0;
  border: 0;
}

.meta span {
  padding: 4px 8px;
  border: 0;
  border-radius: 4px;
  background: #303030;
  color: #cfcfcf;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.motion {
  background: #181818;
}

#motion,
#motion .wrap,
#motion .motion-list,
#motion .motion-item,
#motion .rive-slot {
  border-radius: 6px;
  background: transparent;
}

#motion .motion-item {
  min-width: 0;
  min-height: 390px;
  grid-template-columns: 220px minmax(360px, 1fr);
  column-gap: 16px;
  padding: 14px;
  border: 1px solid var(--editor-line);
  background: var(--editor-panel);
  overflow: hidden;
}

#motion .motion-item::before {
  content: "Timeline";
  align-self: end;
  padding: 8px 10px;
  border-radius: 4px;
  background: #303030;
  color: #bfbfbf;
  font-size: 12px;
}

#motion .motion-copy {
  align-self: start;
}

#motion .motion-copy h3 {
  color: #f2f2f2;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: normal;
}

#motion .rive-slot,
#motion .motion-item:nth-child(even) .rive-slot {
  width: min(500px, 100%);
  min-width: 0;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  justify-self: end;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(145deg, #ece8ff, #b9a9ff);
  box-shadow: inset 0 0 0 1px rgba(43, 169, 255, 0.5);
}

#motion .rive-slot canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.about-grid {
  grid-template-columns: 1.25fr 0.75fr;
  gap: 10px;
  padding: 10px;
  border: 0;
  background: #181818;
  overflow: visible;
}

.about-card,
.skill-card {
  padding: 18px;
  border: 1px solid var(--editor-line);
  border-radius: 6px;
  background: var(--editor-panel);
}

.about-card h3,
.skill-card h3 {
  color: #f2f2f2;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.about-card p,
.skill-card p,
.contact-panel p {
  color: #a4a4a4;
}

.skill-stack {
  gap: 10px;
}

.skill-card {
  min-height: 118px;
}

.contact-panel {
  min-height: 280px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(103, 80, 243, 0.22), transparent 46%),
    var(--editor-panel);
}

.contact-panel h2 {
  color: #fff;
  font-size: clamp(32px, 5vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
  white-space: normal;
}

.contact-links a {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: #303030;
  color: #d7d1ff;
}

footer {
  color: #8f8f8f;
}

.footer-line {
  border-top: 1px solid var(--editor-line);
}

@media (max-width: 1120px) {
  body::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%);
  }

  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

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

  .cover-tags {
    position: static;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
  }

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

  #motion .motion-item,
  .about-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  #motion .rive-slot,
  #motion .motion-item:nth-child(even) .rive-slot {
    justify-self: stretch;
  }
}

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

  .hero {
    padding-top: 16px;
  }

  h1 {
    font-size: 2.4rem;
  }

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

  .terminal-card {
    min-height: 0;
    padding: 38px 10px 14px;
  }

  .terminal-card::after {
    inset: 32px 10px 14px;
  }
}

/* 8-Bit Orbit final pass */
:root {
  --orbit-void: #070B1A;
  --orbit-navy: #0F1B3D;
  --orbit-navy-2: #172650;
  --orbit-cyan: #5EDCF4;
  --orbit-pink: #F0A6CA;
  --orbit-yellow: #F4D03F;
  --orbit-lavender: #E2D5F2;
  --orbit-white: #FFFFFF;
  --orbit-muted: rgba(255, 255, 255, 0.72);
  --ink: var(--orbit-white);
  --blue-ink: var(--orbit-cyan);
  --paper: var(--orbit-void);
  --void: var(--orbit-void);
  --deep: var(--orbit-navy);
  --panel: rgba(15, 27, 61, 0.86);
  --line: rgba(94, 220, 244, 0.28);
  --line-strong: var(--orbit-cyan);
  --sky: var(--orbit-cyan);
  --acid: var(--orbit-yellow);
  --ae: var(--orbit-lavender);
  --figma: var(--orbit-pink);
  --rive-green: var(--orbit-cyan);
  --radius: 0;
  font-family: "Chakra Petch", "Tektur", "Space Mono", "SFMono-Regular", Consolas, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
  background: var(--orbit-void);
  cursor: crosshair;
}

body {
  color: var(--orbit-white);
  background:
    radial-gradient(circle at 8% 14%, rgba(244, 208, 63, 0.22), transparent 9rem),
    radial-gradient(circle at 86% 18%, rgba(240, 166, 202, 0.18), transparent 18rem),
    radial-gradient(circle at 60% 74%, rgba(94, 220, 244, 0.13), transparent 22rem),
    linear-gradient(rgba(94, 220, 244, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 220, 244, 0.07) 1px, transparent 1px),
    var(--orbit-void);
  background-size: auto, auto, auto, 40px 40px, 40px 40px, auto;
}

body::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 50%, transparent 0 48%, rgba(7, 11, 26, 0.72) 100%);
  mix-blend-mode: screen;
  opacity: 0.45;
  animation: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, var(--orbit-white) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 28%, var(--orbit-cyan) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 66%, var(--orbit-yellow) 0 1px, transparent 2px),
    radial-gradient(circle at 34% 76%, var(--orbit-pink) 0 1px, transparent 2px);
  background-size: 220px 220px, 260px 260px, 310px 310px, 190px 190px;
  animation: starDrift 14s steps(8) infinite;
}

.cursor-glow {
  width: 160px;
  height: 160px;
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(244, 208, 63, 0.5) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(94, 220, 244, 0.5) 50%, transparent calc(50% + 1px));
  opacity: 0.26;
  mix-blend-mode: screen;
  transform: translate3d(calc(var(--mx) - 80px), calc(var(--my) - 80px), 0);
}

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

.topbar {
  background: rgba(7, 11, 26, 0.92);
  border-bottom: 4px solid var(--orbit-navy);
  box-shadow: 0 4px 0 var(--orbit-cyan);
}

.nav {
  min-height: 68px;
  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", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 3px 3px 0 var(--orbit-navy);
  text-transform: uppercase;
}

.logo::before {
  content: "8";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 3px solid var(--orbit-cyan);
  border-radius: 0;
  background: var(--orbit-navy);
  color: var(--orbit-yellow);
  box-shadow: 4px 4px 0 var(--orbit-pink);
}

.logo::after {
  content: "orbit";
  padding: 6px 8px;
  border-radius: 0;
  background: var(--orbit-navy);
  color: var(--orbit-yellow);
  box-shadow: 4px 4px 0 rgba(94, 220, 244, 0.45);
}

.nav-links {
  display: flex;
  gap: 8px;
  font-family: "Space Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.nav-links a {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 0;
  background: var(--orbit-navy);
  color: var(--orbit-white);
  box-shadow: 3px 3px 0 rgba(94, 220, 244, 0.35);
  text-align: center;
}

.nav-links a:hover {
  background: var(--orbit-pink);
  color: var(--orbit-navy);
  box-shadow: 4px 4px 0 var(--orbit-yellow);
}

.button {
  min-height: 40px;
  padding: 0 16px;
  border: 3px solid var(--orbit-navy);
  border-radius: 0;
  background: var(--orbit-cyan);
  color: var(--orbit-navy);
  font-family: "Space Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow:
    4px 4px 0 var(--orbit-navy),
    8px 8px 0 var(--orbit-yellow);
}

.motion-rail {
  height: auto;
  padding: 8px 0;
  background: var(--orbit-navy);
  color: var(--orbit-yellow);
  font-family: "Space Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 4px 0 rgba(94, 220, 244, 0.2), inset 0 -4px 0 rgba(240, 166, 202, 0.18);
}

.motion-rail span {
  padding: 0;
  animation-duration: 18s;
}

.motion-rail span::before {
  content: "/// ";
  color: var(--orbit-pink);
}

.hero {
  min-height: calc(100vh - 96px);
  padding: clamp(46px, 6vw, 82px) 0 72px;
}

.hero-grid {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(440px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  position: relative;
}

.hero-grid::before {
  content: "";
  position: absolute;
  right: 3%;
  top: -8%;
  width: min(44vw, 540px);
  aspect-ratio: 1;
  border: 4px solid rgba(244, 208, 63, 0.6);
  transform: rotate(-13deg);
  box-shadow: 8px 8px 0 rgba(94, 220, 244, 0.3);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.hero-copy::after {
  display: none;
}

.kicker,
main > section:not(.hero) h2::before {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: var(--orbit-navy);
  color: var(--orbit-yellow);
  font-family: "Space Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--orbit-pink);
}

h1 {
  margin-top: 28px;
  color: var(--orbit-cyan);
  font-size: clamp(4.4rem, 9vw, 9rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: none;
  text-shadow:
    4px 4px 0 var(--orbit-yellow),
    8px 8px 0 var(--orbit-navy);
}

.subtitle {
  max-width: 580px;
  margin-top: 34px;
  color: var(--orbit-white);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 3px 3px 0 var(--orbit-navy);
  white-space: normal;
}

.intro {
  max-width: 560px;
  margin-top: 18px;
  color: var(--orbit-muted);
  font-size: 15px;
  line-height: 1.75;
  text-shadow: none;
}

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

.hero-module,
.hero-module:nth-child(even) {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 3px solid var(--orbit-cyan);
  border-radius: 0;
  background: rgba(15, 27, 61, 0.88);
  color: var(--orbit-white);
  font-family: "Space Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 6px 6px 0 rgba(244, 208, 63, 0.92);
}

.hero-module:hover {
  transform: translate(-2px, -2px);
  background: var(--orbit-pink);
  color: var(--orbit-navy);
  box-shadow: 8px 8px 0 var(--orbit-yellow);
}

.hero-module-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 3px solid var(--orbit-navy);
  border-radius: 0;
  background: var(--orbit-yellow);
  color: var(--orbit-navy);
  font-size: 11px;
}

.terminal-card {
  position: relative;
  min-height: auto;
  height: auto;
  padding: clamp(16px, 2.2vw, 28px);
  border: 4px solid var(--orbit-cyan);
  border-radius: 0;
  background:
    linear-gradient(rgba(15, 27, 61, 0.18) 2px, transparent 2px),
    linear-gradient(90deg, rgba(15, 27, 61, 0.18) 2px, transparent 2px),
    var(--orbit-lavender);
  background-size: 40px 40px, 40px 40px, auto;
  box-shadow:
    8px 8px 0 var(--orbit-navy),
    16px 16px 0 var(--orbit-yellow);
  transform: rotate(1deg);
  animation: pixelFloat 5s steps(4) infinite;
  overflow: visible;
}

.terminal-card::before {
  content: "";
  position: absolute;
  inset: -18px auto auto -18px;
  width: 54px;
  height: 54px;
  border-top: 6px solid var(--orbit-yellow);
  border-left: 6px solid var(--orbit-yellow);
  background: transparent;
}

.terminal-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  left: auto;
  top: auto;
  width: 54px;
  height: 54px;
  border-right: 6px solid var(--orbit-pink);
  border-bottom: 6px solid var(--orbit-pink);
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.terminal-top {
  position: absolute;
  z-index: 3;
  left: 12px;
  top: -42px;
  right: auto;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  background: var(--orbit-navy);
  color: var(--orbit-yellow);
  font-family: "Space Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--orbit-cyan);
}

.terminal-top .dots {
  display: none;
}

.hero-rive-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 660px);
  aspect-ratio: 1;
  align-self: center;
  justify-self: center;
  filter: drop-shadow(6px 6px 0 rgba(15, 27, 61, 0.55));
}

.hero-rive-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
  background: transparent;
  image-rendering: auto;
}

.cover-tags {
  position: static;
  z-index: 2;
  width: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cover-tags::before {
  display: none;
}

.cover-tags span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 3px solid var(--orbit-navy);
  border-radius: 0;
  background: var(--orbit-cyan);
  color: var(--orbit-navy);
  font-family: "Space Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--orbit-navy);
}

.cover-tags span::after {
  display: none;
}

.cover-tags span:nth-child(2) {
  background: var(--orbit-pink);
}

.cover-tags span:nth-child(3) {
  background: var(--orbit-yellow);
}

section {
  padding: 86px 0;
}

.section-title {
  margin-bottom: 28px;
  padding: 0;
  border: 0;
}

main > section:not(.hero) h2,
h2 {
  color: var(--orbit-cyan);
  font-size: clamp(40px, 6vw, 82px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    4px 4px 0 var(--orbit-yellow),
    8px 8px 0 var(--orbit-navy);
}

main > section:not(.hero) h2::before {
  content: "LEVEL";
  width: auto;
  height: auto;
  margin: 0 12px 0 0;
  vertical-align: middle;
}

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

.project,
.motion-item,
.about-card,
.skill-card,
.contact-panel {
  position: relative;
  border: 4px solid var(--orbit-navy);
  border-radius: 0;
  background: rgba(226, 213, 242, 0.98);
  color: var(--orbit-navy);
  box-shadow: 8px 8px 0 rgba(15, 27, 61, 0.9);
}

.project {
  min-height: 260px;
  padding: 24px;
  overflow: visible;
}

.project::before {
  content: "";
  height: 78px;
  display: block;
  margin-bottom: 22px;
  border: 4px solid var(--orbit-navy);
  background:
    linear-gradient(rgba(15, 27, 61, 0.12) 2px, transparent 2px),
    linear-gradient(90deg, rgba(15, 27, 61, 0.12) 2px, transparent 2px),
    var(--orbit-pink);
  background-size: 20px 20px, 20px 20px, auto;
  box-shadow: 4px 4px 0 var(--orbit-yellow);
}

.project:nth-child(even)::before {
  background:
    linear-gradient(rgba(15, 27, 61, 0.12) 2px, transparent 2px),
    linear-gradient(90deg, rgba(15, 27, 61, 0.12) 2px, transparent 2px),
    var(--orbit-cyan);
  background-size: 20px 20px, 20px 20px, auto;
}

.project:hover {
  transform: translate(-4px, -4px);
  background: var(--orbit-white);
  box-shadow: 12px 12px 0 var(--orbit-yellow);
}

.project::after {
  display: none;
}

.project h3,
.motion-copy h3,
.about-card h3,
.skill-card h3 {
  color: var(--orbit-navy);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(244, 208, 63, 0.72);
}

.project p,
.about-card p,
.skill-card p,
.contact-panel p {
  color: rgba(15, 27, 61, 0.75);
  font-size: 14px;
  line-height: 1.7;
}

.meta {
  gap: 8px;
  margin-top: 18px;
  padding-top: 0;
  border: 0;
}

.meta span {
  padding: 6px 9px;
  border: 3px solid var(--orbit-navy);
  border-radius: 0;
  background: var(--orbit-yellow);
  color: var(--orbit-navy);
  font-family: "Space Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.motion {
  background:
    linear-gradient(rgba(94, 220, 244, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 220, 244, 0.07) 1px, transparent 1px),
    var(--orbit-navy);
  background-size: 40px 40px, 40px 40px, auto;
  border-block: 0;
}

#motion,
#motion .wrap,
#motion .motion-list,
#motion .motion-item,
#motion .rive-slot {
  border-radius: 0;
  background-color: transparent;
}

.motion-list {
  gap: 28px;
}

#motion .motion-item {
  min-width: 0;
  min-height: 440px;
  grid-template-columns: minmax(220px, 0.56fr) minmax(360px, 1fr);
  column-gap: 28px;
  padding: 24px;
  border-color: var(--orbit-cyan);
  background: rgba(7, 11, 26, 0.72);
  color: var(--orbit-white);
  box-shadow: 8px 8px 0 var(--orbit-yellow);
  overflow: visible;
}

#motion .motion-item::before {
  content: "TIMELINE NODE";
  align-self: end;
  width: max-content;
  padding: 8px 10px;
  border: 3px solid var(--orbit-cyan);
  background: var(--orbit-navy);
  color: var(--orbit-yellow);
  font-family: "Space Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--orbit-pink);
}

#motion .motion-copy h3 {
  color: var(--orbit-cyan);
  font-size: clamp(34px, 5vw, 70px);
  text-shadow:
    4px 4px 0 var(--orbit-yellow),
    8px 8px 0 var(--orbit-navy);
  white-space: normal;
}

#motion .rive-slot,
#motion .motion-item:nth-child(even) .rive-slot {
  width: min(500px, 100%);
  min-width: 0;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  justify-self: end;
  border: 4px solid var(--orbit-cyan);
  border-radius: 0;
  background:
    linear-gradient(rgba(15, 27, 61, 0.12) 2px, transparent 2px),
    linear-gradient(90deg, rgba(15, 27, 61, 0.12) 2px, transparent 2px),
    var(--orbit-lavender);
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: 8px 8px 0 var(--orbit-pink);
}

#motion .rive-slot canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.about-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.about-card,
.skill-card {
  padding: 28px;
}

.skill-stack {
  gap: 24px;
}

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

.contact-panel {
  min-height: 360px;
  padding: clamp(28px, 5vw, 58px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background:
    linear-gradient(rgba(15, 27, 61, 0.12) 2px, transparent 2px),
    linear-gradient(90deg, rgba(15, 27, 61, 0.12) 2px, transparent 2px),
    var(--orbit-pink);
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: 12px 12px 0 var(--orbit-yellow);
}

.contact-panel h2 {
  color: var(--orbit-navy);
  font-size: clamp(42px, 7vw, 104px);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    4px 4px 0 var(--orbit-yellow),
    8px 8px 0 rgba(255, 255, 255, 0.52);
  white-space: normal;
}

.contact-links a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 3px solid var(--orbit-navy);
  border-radius: 0;
  background: var(--orbit-cyan);
  color: var(--orbit-navy);
  font-family: "Space Mono", "SFMono-Regular", Consolas, monospace;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--orbit-navy);
}

footer {
  color: var(--orbit-muted);
  font-family: "Space Mono", "SFMono-Regular", Consolas, monospace;
}

.footer-line {
  border-top: 4px solid var(--orbit-navy);
}

@keyframes starDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-40px, 40px, 0);
  }
}

@keyframes pixelFloat {
  0%,
  100% {
    transform: rotate(1deg) translateY(0);
  }

  50% {
    transform: rotate(1deg) translateY(-8px);
  }
}

@media (max-width: 980px) {
  section {
    padding: clamp(78px, 10vw, 110px) 0;
  }

  .wrap,
  .hero,
  #work,
  #about,
  #contact,
  #motion .wrap {
    width: min(100% - 28px, 1240px);
  }

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

  .terminal-card {
    transform: none;
    animation: none;
  }

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

  #motion .rive-slot,
  #motion .motion-item:nth-child(even) .rive-slot {
    justify-self: stretch;
  }
}

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

  h1 {
    font-size: clamp(3.2rem, 18vw, 5.2rem);
  }

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

  .terminal-top {
    position: static;
    margin-bottom: 10px;
    width: max-content;
  }

  .contact-panel h2 {
    font-size: clamp(3rem, 15vw, 5rem);
  }
}

/* Minimal pass: let the work breathe. */
:root {
  --paper: #0b0d10;
  --ink: #f5f7fa;
  --blue-ink: #a9b4c0;
  --panel: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --sky: #d8e1ea;
  --acid: #f5f7fa;
  --orbit-navy: #20242b;
  --orbit-cyan: #d8e1ea;
  --orbit-yellow: #c7ced6;
  --orbit-pink: #b7c0ca;
  --orbit-white: #f5f7fa;
  --orbit-muted: #8e99a6;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
  cursor: auto;
  background: var(--paper);
}

body {
  color: var(--ink);
  background: var(--paper);
}

body::before,
.cursor-glow,
.motion-rail,
.hero-grid::before,
.terminal-card::before,
.terminal-card::after,
.project::before,
#motion .motion-item::before,
main > section:not(.hero) h2::before,
.logo::before,
.logo::after {
  display: none;
}

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

.topbar {
  background: rgba(11, 13, 16, 0.82);
  border: 0;
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 64px;
}

.logo {
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-shadow: none;
  text-transform: none;
}

.nav-links {
  gap: 20px;
  font-family: inherit;
  font-size: 13px;
}

.nav-links a {
  padding: 6px 0;
  background: transparent;
  color: var(--blue-ink);
  box-shadow: none;
}

.nav-links a:hover {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.button {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  text-transform: none;
  box-shadow: none;
}

.button:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.hero {
  min-height: calc(100vh - 64px);
  padding: clamp(56px, 8vw, 96px) 0;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.hero-copy {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.kicker {
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--orbit-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

h1 {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.95;
  text-shadow: none;
}

.subtitle {
  max-width: 620px;
  margin-top: 28px;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.32;
  text-shadow: none;
}

.intro {
  max-width: 560px;
  color: var(--blue-ink);
  font-size: 15px;
}

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

.hero-module,
.hero-module:nth-child(even) {
  min-height: auto;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.hero-module:hover {
  transform: none;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.hero-module-number,
.terminal-top,
.cover-tags {
  display: none;
}

.terminal-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  animation: none;
}

.hero-rive-stage {
  width: min(100%, 620px);
  filter: none;
}

section {
  padding: clamp(72px, 9vw, 112px) 0;
}

.section-title {
  margin-bottom: 24px;
}

main > section:not(.hero) h2,
h2 {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  text-transform: none;
  text-shadow: none;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.project,
.about-card,
.skill-card,
.contact-panel {
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

.project {
  min-height: 210px;
  padding: 26px;
}

.project:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.project h3,
.motion-copy h3,
.about-card h3,
.skill-card h3 {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  text-transform: none;
  text-shadow: none;
}

.project p,
.about-card p,
.skill-card p,
.contact-panel p {
  color: var(--blue-ink);
}

.meta span {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--orbit-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  text-transform: none;
}

.motion {
  background: rgba(255, 255, 255, 0.025);
}

.motion-list {
  gap: 36px;
}

#motion .motion-item {
  min-height: 420px;
  grid-template-columns: minmax(220px, 0.52fr) minmax(360px, 1fr);
  column-gap: clamp(28px, 6vw, 72px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  overflow: visible;
}

#motion .motion-copy h3 {
  color: var(--ink);
  font-size: clamp(30px, 4vw, 58px);
  text-shadow: none;
}

#motion .rive-slot,
#motion .motion-item:nth-child(even) .rive-slot {
  width: min(500px, 100%);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.about-grid {
  gap: 1px;
  background: var(--line);
}

.about-card,
.skill-card {
  padding: 28px;
}

.skill-stack {
  gap: 1px;
  background: var(--line);
}

.skill-card:hover {
  background: rgba(255, 255, 255, 0.045);
}

.contact-panel {
  min-height: 280px;
  padding: clamp(28px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.045);
}

.contact-panel h2 {
  color: var(--ink);
  font-size: clamp(34px, 6vw, 76px);
  line-height: 1.02;
  text-transform: none;
  text-shadow: none;
}

.contact-links a {
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  box-shadow: none;
}

.footer-line {
  border-top: 1px solid var(--line);
}

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

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

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

  #motion .motion-item {
    min-height: auto;
    row-gap: 28px;
  }
}

@media (max-width: 640px) {
  section {
    padding: 68px 0;
  }

  .wrap,
  .hero,
  #work,
  #about,
  #contact,
  #motion .wrap {
    width: min(100% - 20px, 1120px);
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

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

/* Restrained 8-Bit Orbit pass */
:root {
  --paper: #0a0e27;
  --void: #0a0e27;
  --deep: #0f1b3d;
  --panel: rgba(15, 27, 61, 0.78);
  --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);
  --ink: var(--orbit-white);
  --blue-ink: rgba(255, 255, 255, 0.76);
  --line: rgba(94, 220, 244, 0.2);
  --line-strong: rgba(94, 220, 244, 0.56);
  --sky: var(--orbit-cyan);
  --acid: var(--orbit-yellow);
  --radius: 0;
  font-family: "Noto Sans SC", "Chakra Petch", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

html {
  cursor: auto;
  background: var(--paper);
}

body {
  color: var(--ink);
  position: relative;
  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 {
  display: block;
  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,
.cursor-glow,
.motion-rail,
.hero-grid::before,
.terminal-card::before,
.terminal-card::after,
.project::before,
#motion .motion-item::before {
  display: none;
}

body::after {
  display: block;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  z-index: 0;
  pointer-events: none;
  background: var(--orbit-pink);
  opacity: 1;
  animation: none;
  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),
    97vw 8vh 0 1px rgba(240, 166, 202, 0.56),
    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),
    38vw 128vh 0 -1px rgba(94, 220, 244, 0.48),
    49vw 136vh 0 -1px rgba(244, 208, 63, 0.62),
    56vw 112vh 0 1px rgba(240, 166, 202, 0.48),
    63vw 120vh 0 -1px rgba(94, 220, 244, 0.56),
    77vw 132vh 0 1px rgba(240, 166, 202, 0.52),
    84vw 144vh 0 -1px rgba(94, 220, 244, 0.56),
    91vw 116vh 0 -1px rgba(244, 208, 63, 0.68),
    12vw 156vh 0 1px rgba(240, 166, 202, 0.48),
    19vw 188vh 0 -1px rgba(94, 220, 244, 0.54),
    27vw 172vh 0 -1px rgba(244, 208, 63, 0.70),
    41vw 164vh 0 -1px rgba(94, 220, 244, 0.62),
    49vw 198vh 0 1px rgba(244, 208, 63, 0.46),
    58vw 178vh 0 1px rgba(240, 166, 202, 0.46),
    72vw 158vh 0 -1px rgba(94, 220, 244, 0.68),
    79vw 196vh 0 -1px rgba(240, 166, 202, 0.50),
    88vw 184vh 0 0 rgba(244, 208, 63, 0.54),
    4vw 214vh 0 -1px rgba(94, 220, 244, 0.72),
    13vw 244vh 0 0 rgba(244, 208, 63, 0.52),
    21vw 228vh 0 1px rgba(240, 166, 202, 0.52),
    36vw 206vh 0 -1px rgba(244, 208, 63, 0.64),
    44vw 250vh 0 1px rgba(240, 166, 202, 0.44),
    52vw 232vh 0 -1px rgba(94, 220, 244, 0.58),
    69vw 218vh 0 1px rgba(240, 166, 202, 0.46),
    74vw 248vh 0 -1px rgba(94, 220, 244, 0.54),
    83vw 240vh 0 -1px rgba(244, 208, 63, 0.68),
    96vw 208vh 0 0 rgba(94, 220, 244, 0.52),
    10vw 266vh 0 -1px rgba(244, 208, 63, 0.62),
    16vw 318vh 0 1px rgba(240, 166, 202, 0.46),
    25vw 292vh 0 1px rgba(94, 220, 244, 0.50),
    43vw 276vh 0 -1px rgba(240, 166, 202, 0.58),
    52vw 324vh 0 -1px rgba(94, 220, 244, 0.58),
    61vw 304vh 0 0 rgba(244, 208, 63, 0.56),
    78vw 284vh 0 -1px rgba(94, 220, 244, 0.66),
    86vw 334vh 0 0 rgba(244, 208, 63, 0.52),
    92vw 314vh 0 1px rgba(240, 166, 202, 0.48),
    7vw 346vh 0 1px rgba(240, 166, 202, 0.48),
    12vw 398vh 0 -1px rgba(244, 208, 63, 0.54),
    19vw 374vh 0 -1px rgba(94, 220, 244, 0.64),
    34vw 358vh 0 0 rgba(244, 208, 63, 0.58),
    41vw 414vh 0 1px rgba(240, 166, 202, 0.46),
    50vw 392vh 0 -1px rgba(94, 220, 244, 0.54),
    67vw 366vh 0 1px rgba(240, 166, 202, 0.50),
    74vw 408vh 0 -1px rgba(94, 220, 244, 0.58),
    84vw 402vh 0 -1px rgba(244, 208, 63, 0.62),
    94vw 354vh 0 0 rgba(94, 220, 244, 0.58),
    15vw 426vh 0 -1px rgba(244, 208, 63, 0.62),
    24vw 482vh 0 0 rgba(94, 220, 244, 0.52),
    31vw 452vh 0 1px rgba(240, 166, 202, 0.46),
    47vw 438vh 0 -1px rgba(94, 220, 244, 0.68),
    58vw 492vh 0 -1px rgba(240, 166, 202, 0.48),
    65vw 468vh 0 0 rgba(244, 208, 63, 0.50),
    82vw 444vh 0 -1px rgba(240, 166, 202, 0.56),
    96vw 476vh 0 1px rgba(94, 220, 244, 0.52);
}

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

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

.topbar {
  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;
}

.logo {
  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);
}

.logo::after {
  display: none;
}

.nav-links {
  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);
  box-shadow: none;
}

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

.button {
  min-height: 36px;
  padding: 0 14px;
  border: 2px solid var(--orbit-navy);
  border-radius: 0;
  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;
}

.button:hover {
  transform: translate(2px, 2px);
  background: var(--orbit-pink);
  box-shadow: 2px 2px 0 var(--orbit-yellow);
}

.hero {
  min-height: calc(100vh - 66px);
  padding: clamp(52px, 7vw, 94px) 0;
}

.hero-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;
  letter-spacing: 0;
  box-shadow: 4px 4px 0 rgba(240, 166, 202, 0.78);
  text-transform: lowercase;
}

h1 {
  margin-top: 24px;
  color: var(--orbit-cyan);
  font-size: clamp(4.4rem, 8.6vw, 8.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: 560px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.45;
}

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

.hero-module,
.hero-module:nth-child(even) {
  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;
  box-shadow: none;
}

.hero-module:hover {
  transform: none;
  background: rgba(94, 220, 244, 0.18);
  color: #fff;
  box-shadow: none;
}

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

.terminal-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  animation: none;
}

.terminal-top {
  display: none;
}

.hero-rive-stage {
  width: min(100%, 640px);
  filter: none;
}

.cover-tags {
  display: none;
}

section {
  padding: clamp(96px, 11vw, 148px) 0;
}

.section-title {
  margin-bottom: clamp(38px, 4.5vw, 62px);
}

#motion .section-title {
  margin-bottom: clamp(72px, 7vw, 104px);
}

main > section:not(.hero) h2,
h2 {
  color: var(--orbit-cyan);
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 900;
  line-height: 0.98;
  text-transform: lowercase;
  text-shadow: 3px 3px 0 var(--orbit-navy);
}

main > section:not(.hero) 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 {
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 38px);
  background: transparent;
}

.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: 250px;
  padding: clamp(28px, 4vw, 44px);
  transition:
    transform 180ms steps(3, end),
    background 180ms steps(3, end),
    box-shadow 180ms steps(3, end);
}

.project:nth-child(n) {
  margin-left: 0;
  margin-right: 0;
  grid-column: 1;
}

.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(25px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.08;
  text-transform: none;
  text-shadow: none;
}

.project p,
.about-card p,
.skill-card p,
.contact-panel p {
  color: rgba(15, 27, 61, 0.72);
  line-height: 1.8;
}

.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;
  text-transform: none;
}

.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);
  background-size: 40px 40px, 40px 40px, auto;
}

.motion-list {
  gap: clamp(68px, 8vw, 112px);
}

#motion .motion-item {
  min-height: clamp(460px, 48vw, 560px);
  grid-template-columns: minmax(220px, 0.5fr) minmax(360px, 1fr);
  column-gap: clamp(32px, 6vw, 76px);
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition: transform 220ms steps(3, end);
}

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

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

#motion .motion-copy p {
  display: block;
  max-width: 420px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.95;
}

#motion .motion-copy {
  align-self: center;
}

#motion .motion-item:first-child .motion-copy h3 {
  max-width: none;
  white-space: nowrap;
}

#motion .motion-item:first-child .motion-copy p {
  display: block;
  max-width: 430px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.75;
}

.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);
}

.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;
  will-change: transform, opacity;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .click-particle {
    display: none;
  }
}

#motion .rive-slot,
#motion .motion-item:nth-child(even) .rive-slot {
  width: min(500px, 100%);
  border: 3px solid var(--orbit-cyan);
  background: var(--orbit-lavender);
  box-shadow: 6px 6px 0 rgba(240, 166, 202, 0.78);
  transition:
    transform 220ms steps(3, end),
    box-shadow 220ms steps(3, end);
}

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

#motion .rive-slot::before {
  display: none;
  content: none;
}

.about-grid {
  gap: clamp(28px, 4vw, 46px);
  background: transparent;
}

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

.skill-card {
  cursor: pointer;
  display: block;
}

.skill-stack {
  gap: clamp(24px, 3vw, 34px);
  background: transparent;
}

.contact-panel {
  min-height: 320px;
  padding: clamp(42px, 6vw, 76px);
  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);
}

.hero-module,
.button,
.contact-links a,
.nav-links a {
  transition:
    transform 160ms steps(2, end),
    background 160ms steps(2, end),
    box-shadow 160ms steps(2, end),
    color 160ms steps(2, end);
}

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

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

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

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

@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 (prefers-reduced-motion: reduce) {
  main > section:not(.hero) h2::before,
  .terminal-card {
    animation: none;
  }

  .reveal,
  .project,
  .skill-card,
  #motion .motion-item,
  #motion .rive-slot,
  .hero-module,
  .button,
  .contact-links a,
  .nav-links a {
    transition: none;
  }
}

.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 a {
  min-height: 38px;
  padding: 0 12px;
  background: var(--orbit-navy);
  color: #fff;
  font-family: "Space Mono", ui-monospace, monospace;
  box-shadow: 4px 4px 0 var(--orbit-cyan);
}

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

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

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

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

@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: 210px;
  }

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

  .terminal-card,
  #motion .rive-slot,
  #motion .motion-item:nth-child(even) .rive-slot {
    box-shadow: 4px 4px 0 rgba(244, 208, 63, 0.82);
  }

  .terminal-card {
    box-shadow: none;
  }
}
