:root {
  color-scheme: dark;
  --bg: #080b18;
  --surface: #11182b;
  --surface-2: #17233e;
  --ink: #f7fbff;
  --muted: #aab8d6;
  --line: rgba(136, 168, 255, 0.22);
  --accent: #22d3ee;
  --accent-dark: #0891b2;
  --gold: #facc15;
  --pink: #f472b6;
  --soft: rgba(34, 211, 238, 0.12);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --pixel-font: "Courier New", "Lucida Console", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(244, 114, 182, 0.22), transparent 28%),
    radial-gradient(circle at 80% 8%, rgba(34, 211, 238, 0.18), transparent 30%),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(228, 223, 212, 0.72);
  background: rgba(8, 11, 24, 0.84);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.hero-actions,
.contact-actions,
.tags {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #04111f;
  box-shadow: 4px 4px 0 var(--pink);
}

.site-nav {
  gap: 8px;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover {
  background: var(--soft);
  color: var(--accent-dark);
}

.site-nav .nav-download {
  border-color: rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.14);
  color: var(--gold);
}

.site-nav .nav-download:hover {
  background: var(--accent-dark);
  color: white;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.section-pad {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 72px);
}

.hero {
  display: grid;
  min-height: calc(100vh - 73px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-family: var(--pixel-font);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.pixel-headline {
  position: relative;
  min-height: 5.8em;
  font-family: "Courier New", "Lucida Console", monospace;
  font-size: clamp(2.15rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
  text-shadow:
    3px 3px 0 rgba(244, 114, 182, 0.55),
    6px 6px 0 rgba(34, 211, 238, 0.22);
}

.pixel-headline::after {
  content: "";
  display: inline-block;
  width: 0.14em;
  height: 0.84em;
  margin-left: 0.08em;
  background: var(--accent);
  animation: cursor-blink 0.78s steps(1) infinite;
  transform: translateY(0.08em);
}

.pixel-headline.is-complete::after {
  background: var(--gold);
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-text {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-family: var(--pixel-font);
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button.primary {
  background: var(--accent);
  color: #04111f;
  box-shadow: 5px 5px 0 var(--pink);
}

.button.primary:hover {
  background: #67e8f9;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--pink);
}

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

.button.secondary:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.game-console {
  position: relative;
  border: 2px solid rgba(34, 211, 238, 0.4);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(244, 114, 182, 0.08)),
    #0d1428;
  box-shadow:
    0 0 0 4px rgba(8, 11, 24, 0.9),
    0 0 42px rgba(34, 211, 238, 0.24),
    var(--shadow);
}

.game-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: screen;
}

.console-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  color: var(--muted);
  font-family: var(--pixel-font);
  font-size: 0.82rem;
  font-weight: 900;
}

.console-topbar strong {
  color: var(--gold);
}

.console-light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.console-light.is-live {
  box-shadow: 0 0 16px var(--accent);
  animation: pulse-live 1.4s infinite;
}

.console-screen {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.avatar-frame {
  display: grid;
  min-height: 170px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(34, 211, 238, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.12) 1px, transparent 1px),
    rgba(255, 255, 255, 0.04);
  background-size: 18px 18px;
}

.loadout-panel,
.quest-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
}

.loadout-kicker,
.quest-label,
.xp-label {
  color: var(--gold);
  font-family: var(--pixel-font);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.loadout-panel h2 {
  margin-bottom: 14px;
  font-family: var(--pixel-font);
  font-size: clamp(1.3rem, 3vw, 2.1rem);
}

.xp-meter {
  overflow: hidden;
  height: 16px;
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
}

.xp-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--pink), var(--gold));
  background-size: 180% 100%;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.3);
  transition: width 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: meter-shimmer 1.8s linear infinite;
}

.xp-label {
  margin: 8px 0 0;
  color: var(--muted);
}

.quest-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quest-tab,
.mini-game-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--pixel-font);
  font-weight: 900;
  padding: 11px 10px;
}

.quest-tab:hover,
.quest-tab.is-active,
.mini-game-button:hover {
  border-color: var(--accent);
  background: var(--soft);
  color: var(--accent);
}

.quest-card h3 {
  color: var(--ink);
  font-family: var(--pixel-font);
  font-size: 1.35rem;
}

.quest-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.console-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.xp-pop {
  min-width: 88px;
  color: var(--gold);
  font-family: var(--pixel-font);
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
}

.xp-pop.is-visible {
  animation: xp-pop 700ms ease forwards;
}

@keyframes pulse-live {
  50% {
    opacity: 0.42;
  }
}

@keyframes avatar-float {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes xp-pop {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  30%,
  70% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.intro-band p,
.section-heading p,
.project-card p,
.loadout-detail p,
.about-copy p,
.timeline p,
.contact-section p,
.site-footer {
  color: var(--muted);
}

.stat {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: var(--pixel-font);
  font-size: 1.1rem;
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 36%),
    radial-gradient(circle at bottom left, rgba(244, 114, 182, 0.12), transparent 38%),
    var(--surface);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow);
}

.ravia-mission {
  position: relative;
}

.ravia-mission::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 8px;
}

.featured-copy h3 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.95;
}

.featured-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.project-label {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 7px 11px;
  color: var(--accent);
  font-family: var(--pixel-font);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 6px;
}

.feature-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: border-color 180ms ease, transform 180ms ease;
}

.feature-list span:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.mission-objectives {
  display: grid;
  gap: 10px;
  margin: 24px 0 18px;
}

.mission-objective {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 12px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.mission-objective span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.14);
  color: var(--accent);
  font-family: var(--pixel-font);
}

.mission-objective:hover,
.mission-objective.is-active {
  border-color: rgba(34, 211, 238, 0.75);
  background: rgba(34, 211, 238, 0.1);
  transform: translateX(4px);
}

.mission-objective.is-active span {
  background: var(--accent);
  color: #04111f;
}

.mission-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}

.mission-stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 12px;
}

.mission-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mission-stats strong {
  color: var(--gold);
  font-family: var(--pixel-font);
  font-size: 1.45rem;
}

.ravia-carousel {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(150px, 0.42fr);
  gap: clamp(14px, 3vw, 24px);
  align-items: center;
}

.active-phone {
  position: relative;
  justify-self: center;
  width: min(100%, 320px);
  aspect-ratio: 402 / 874;
  border: 8px solid #050713;
  border-radius: 34px;
  background: #050713;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.42),
    0 24px 70px rgba(0, 0, 0, 0.45),
    0 0 44px rgba(34, 211, 238, 0.18);
}

.active-phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 74px;
  height: 18px;
  border-radius: 999px;
  background: #050713;
  transform: translateX(-50%);
}

.phone-viewport {
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: #050713;
  overscroll-behavior: contain;
}

.active-phone.is-scrollable .phone-viewport {
  overflow-y: auto;
  scrollbar-color: var(--accent) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.active-phone.is-scrollable .phone-viewport::-webkit-scrollbar {
  width: 8px;
}

.active-phone.is-scrollable .phone-viewport::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.active-phone.is-scrollable .phone-viewport::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--accent);
}

.active-phone img {
  display: block;
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: top;
}

.active-phone.is-scrollable img {
  min-height: 0;
  object-fit: contain;
}

.active-phone.is-swapping .phone-viewport {
  animation: screen-swap 260ms ease;
}

.phone-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 999px;
  background: rgba(5, 7, 19, 0.78);
  color: var(--accent);
  font-family: var(--pixel-font);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 7px 9px;
}

.active-phone.is-scrollable .phone-status::after {
  content: " / Scroll";
  color: var(--gold);
}

.screen-selector {
  display: grid;
  gap: 10px;
}

.screen-thumb {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--pixel-font);
  font-weight: 900;
  padding: 8px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.screen-thumb img {
  display: block;
  width: 56px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
}

.screen-thumb:hover,
.screen-thumb.is-active {
  border-color: var(--gold);
  background: rgba(250, 204, 21, 0.11);
  transform: translateY(-2px);
}

@keyframes screen-swap {
  0% {
    opacity: 0.45;
    transform: translateY(8px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.phone-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
  align-items: end;
}

.phone-gallery img {
  display: block;
  width: 100%;
  min-width: 0;
  border: 7px solid #111;
  border-radius: 28px;
  background: #111;
  box-shadow: 0 20px 48px rgba(17, 17, 17, 0.18);
}

.phone-gallery img:nth-child(2) {
  transform: translateY(-22px);
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.project-card.is-tilting {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 22px 64px rgba(34, 211, 238, 0.14);
}

.project-shot {
  position: relative;
  display: grid;
  min-height: 220px;
  gap: 12px;
  padding: 54px 18px 18px;
}

.shot-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 11, 24, 0.76);
  padding: 6px 10px;
  color: var(--ink);
  font-family: var(--pixel-font);
  font-size: 0.75rem;
  font-weight: 800;
}

.dashboard-shot {
  min-height: 260px;
  align-content: end;
  background:
    linear-gradient(rgba(34, 211, 238, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.09) 1px, transparent 1px),
    linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(96, 165, 250, 0.12));
  background-size: 18px 18px, 18px 18px, auto;
}

.dashboard-monitor {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.36);
  border-radius: 8px;
  background: #050713;
  cursor: zoom-in;
  box-shadow:
    0 0 0 3px rgba(5, 7, 19, 0.62),
    0 16px 32px rgba(17, 17, 17, 0.22);
}

.dashboard-monitor img {
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
}

.dashboard-monitor.is-swapping img {
  animation: screen-swap 260ms ease;
}

.dashboard-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-control {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 7, 19, 0.52);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--pixel-font);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 9px 6px;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.dashboard-control:hover,
.dashboard-control.is-active {
  border-color: var(--gold);
  background: rgba(250, 204, 21, 0.12);
  color: var(--gold);
  transform: translateY(-2px);
}

.dashboard-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dashboard-stats span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 6px 9px;
}

.image-preview {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 30;
  display: none;
  width: min(760px, calc(100vw - 40px));
  border: 2px solid rgba(34, 211, 238, 0.68);
  border-radius: 8px;
  background: #050713;
  padding: 10px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 4px rgba(5, 7, 19, 0.82),
    0 30px 90px rgba(0, 0, 0, 0.68),
    0 0 52px rgba(34, 211, 238, 0.28);
}

.image-preview::before {
  content: "Dashboard zoom";
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: var(--pixel-font);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.image-preview.is-visible {
  display: block;
}

.image-preview img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.motogp-shot {
  overflow: hidden;
  align-content: end;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(15, 118, 110, 0.72)),
    #111827;
}

.track-line {
  position: absolute;
  right: -24px;
  bottom: 46px;
  width: 72%;
  height: 110px;
  border: 16px solid rgba(255, 255, 255, 0.16);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  transform: rotate(-18deg);
}

.speed-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 18px;
  color: white;
  backdrop-filter: blur(12px);
}

.speed-card span {
  display: block;
  margin-bottom: 8px;
  color: #c9f5ee;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.speed-card strong {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.9;
}

.endpoint-shot {
  align-content: end;
  background: #111827;
}

.endpoint-shot .shot-pill {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.endpoint-line,
.endpoint-response {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px;
}

.endpoint-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.endpoint-line span {
  border-radius: 999px;
  background: #70d6c8;
  padding: 4px 8px;
  color: #082f2a;
  font-size: 0.72rem;
  font-weight: 900;
}

.endpoint-shot code {
  color: #dbeafe;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.endpoint-response code {
  color: #f4c873;
}

.project-content {
  padding: 22px;
}

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

.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-dark);
  font-weight: 800;
}

.project-link:hover {
  text-decoration: underline;
}

.stack-section {
  background: rgba(255, 255, 255, 0.035);
}

.skill-tree {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: stretch;
}

.skill-nodes {
  position: relative;
  display: grid;
  gap: 14px;
}

.skill-nodes::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--pink), var(--gold));
  opacity: 0.55;
}

.skill-node {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  cursor: pointer;
  padding: 14px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.skill-node:hover,
.skill-node.is-active {
  border-color: rgba(34, 211, 238, 0.76);
  background: rgba(34, 211, 238, 0.1);
  transform: translateX(6px);
}

.node-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.52);
  border-radius: 8px;
  background: #050713;
  color: var(--accent);
  font-family: var(--pixel-font);
  font-weight: 900;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.12);
}

.skill-node.is-active .node-icon {
  background: var(--accent);
  color: #04111f;
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.42);
}

.skill-node strong,
.skill-node small {
  grid-column: 2;
}

.skill-node strong {
  font-family: var(--pixel-font);
  font-size: 1rem;
}

.skill-node small {
  color: var(--muted);
  font-weight: 800;
}

.loadout-detail {
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(244, 114, 182, 0.14), transparent 38%),
    var(--surface);
  background-size: 18px 18px, 18px 18px, auto, auto;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.loadout-detail.is-swapping {
  animation: screen-swap 260ms ease;
}

.loadout-detail h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--pixel-font);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.loadout-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0;
}

.loadout-grid span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 11px;
}

.skill-proof {
  border-left: 3px solid var(--gold);
  background: rgba(250, 204, 21, 0.08);
  padding: 14px 16px;
}

.skill-proof span {
  display: block;
  color: var(--gold);
  font-family: var(--pixel-font);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.skill-proof strong {
  display: block;
  margin-top: 5px;
}

.skill-bars {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.skill-bars span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.skill-meter {
  overflow: hidden;
  height: 13px;
  border: 1px solid rgba(34, 211, 238, 0.46);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
}

.skill-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--pink), var(--gold));
  background-size: 180% 100%;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.3);
  transition: width 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: meter-shimmer 1.8s linear infinite;
}

@keyframes meter-shimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 180% 50%;
  }
}

.about-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

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

.timeline div {
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.055);
  padding: 18px 20px;
}

.timeline span {
  color: var(--gold);
  font-weight: 800;
}

.contact-section {
  align-items: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 30%, rgba(34, 211, 238, 0.16), transparent 34%),
    #050713;
  color: white;
}

.contact-section .eyebrow,
.contact-section p {
  color: #b9d8d3;
}

.contact-section .button.secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: white;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 5vw, 72px);
  background: #050713;
  color: #b9b7b1;
}

.site-footer p {
  margin: 0;
}

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

@media (max-width: 980px) {
  .hero,
  .featured-project,
  .skill-tree,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .ravia-carousel {
    grid-template-columns: 1fr;
  }

  .screen-selector {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .screen-thumb {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .skill-nodes::before {
    display: none;
  }

  .phone-gallery {
    max-width: 720px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.55rem, 16vw, 4.2rem);
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .mission-stats,
  .screen-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .mission-objective {
    transform: none;
  }

  .skill-node,
  .skill-node:hover,
  .skill-node.is-active {
    transform: none;
  }

  .phone-gallery {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    margin-inline: -4px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .phone-gallery img {
    border-width: 5px;
    border-radius: 20px;
  }

  .phone-gallery img:nth-child(2) {
    transform: none;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.archetype-section {
  grid-template-columns: minmax(260px, 0.86fr) minmax(320px, 1fr);
  align-items: stretch;
}

.archetype-cards {
  display: grid;
  gap: 14px;
}

.archetype-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  cursor: pointer;
  padding: 20px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.archetype-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 211, 238, 0.36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(244, 114, 182, 0.18));
  transform: rotate(45deg);
}

.archetype-card:hover,
.archetype-card.is-active {
  border-color: rgba(34, 211, 238, 0.78);
  background: rgba(34, 211, 238, 0.1);
  box-shadow: 0 18px 52px rgba(34, 211, 238, 0.12);
  transform: translateX(6px);
}

.archetype-card small {
  display: inline-flex;
  margin-top: 14px;
  color: var(--gold);
  font-family: var(--pixel-font);
  font-weight: 900;
  text-transform: uppercase;
}

.archetype-reveal {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(244, 114, 182, 0.18), transparent 38%),
    var(--surface);
  background-size: 18px 18px, 18px 18px, auto, auto;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: var(--shadow);
}

.archetype-reveal.is-swapping {
  animation: screen-swap 260ms ease;
}

.archetype-reveal h2 {
  max-width: 680px;
  color: var(--ink);
  font-family: var(--pixel-font);
  font-size: clamp(1.9rem, 4vw, 3.6rem);
}

.archetype-reveal p {
  max-width: 680px;
  color: var(--muted);
}

.archetype-orbit {
  position: relative;
  display: grid;
  width: min(240px, 70vw);
  height: 150px;
  margin: 26px 0;
  place-items: center;
}

.archetype-orbit::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px dashed rgba(34, 211, 238, 0.42);
  border-radius: 50%;
  animation: orbit-spin 8s linear infinite;
}

.archetype-orbit span {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.42);
}

.archetype-orbit span:nth-child(1) {
  transform: translate(-74px, -18px);
}

.archetype-orbit span:nth-child(2) {
  background: var(--pink);
  transform: translate(72px, -12px);
}

.archetype-orbit span:nth-child(3) {
  background: var(--gold);
  transform: translate(0, 66px);
}

.archetype-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.archetype-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 11px;
}

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

@media (max-width: 980px) {
  .archetype-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .archetype-card,
  .archetype-card:hover,
  .archetype-card.is-active {
    transform: none;
  }
}

.avatar-frame {
  position: relative;
  overflow: hidden;
}

.avatar-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 999px;
  background: rgba(5, 7, 19, 0.76);
  color: var(--gold);
  font-family: var(--pixel-font);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 6px 9px;
  text-transform: uppercase;
}

.carl-sprite {
  display: block;
  width: min(58%, 210px);
  max-height: 92%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 18px rgba(34, 211, 238, 0.22));
  transform: translateY(8px) scale(1.05);
}

.avatar-frame::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 24px;
  left: 18%;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  filter: blur(8px);
}

/* Mobile polish pass: keep the game UI expressive without crowding small screens. */
@media (max-width: 760px) {
  body {
    background-size: 24px 24px, 24px 24px, auto, auto, auto;
  }

  .site-header {
    padding: 12px 16px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .section-pad {
    padding: 54px 16px;
  }

  .hero {
    gap: 28px;
    padding-top: 44px;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .pixel-headline {
    min-height: 7.2em;
    font-size: clamp(1.72rem, 8.6vw, 2.7rem);
    line-height: 1.12;
    text-shadow:
      2px 2px 0 rgba(244, 114, 182, 0.55),
      4px 4px 0 rgba(34, 211, 238, 0.2);
  }

  .hero-text {
    font-size: 1rem;
  }

  .game-console,
  .featured-project,
  .project-card,
  .loadout-detail,
  .archetype-reveal {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  }

  .console-topbar {
    padding: 12px;
    font-size: 0.72rem;
  }

  .console-screen {
    gap: 12px;
    padding: 12px;
  }

  .avatar-frame {
    min-height: 220px;
  }

  .avatar-label {
    font-size: 0.62rem;
  }

  .carl-sprite {
    width: min(72%, 185px);
    transform: translateY(8px) scale(1);
  }

  .loadout-panel,
  .quest-card {
    padding: 14px;
  }

  .loadout-panel h2,
  .quest-card h3 {
    font-size: 1.08rem;
  }

  .quest-tabs {
    gap: 6px;
  }

  .quest-tab,
  .mini-game-button {
    min-height: 44px;
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  .console-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .xp-pop {
    min-height: 20px;
  }

  .archetype-section {
    gap: 18px;
  }

  .archetype-card {
    padding: 16px;
  }

  .archetype-card::after {
    width: 30px;
    height: 30px;
  }

  .archetype-reveal {
    padding: 20px;
  }

  .archetype-reveal h2 {
    font-size: clamp(1.65rem, 8vw, 2.5rem);
  }

  .archetype-orbit {
    width: 180px;
    height: 118px;
    margin: 18px 0;
  }

  .archetype-orbit::before {
    width: 112px;
    height: 112px;
  }

  .archetype-orbit span {
    width: 26px;
    height: 26px;
  }

  .archetype-orbit span:nth-child(1) {
    transform: translate(-56px, -14px);
  }

  .archetype-orbit span:nth-child(2) {
    transform: translate(54px, -10px);
  }

  .archetype-orbit span:nth-child(3) {
    transform: translate(0, 50px);
  }

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

  .section-heading h2,
  .about-copy h2,
  .contact-section h2 {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .featured-project {
    padding: 18px;
  }

  .ravia-mission::before {
    inset: 9px;
  }

  .featured-copy h3 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .mission-objectives {
    gap: 8px;
  }

  .mission-objective {
    min-height: 52px;
    padding: 10px;
  }

  .mission-objective span {
    width: 30px;
    height: 30px;
  }

  .mission-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mission-stats div {
    padding: 10px 8px;
  }

  .mission-stats strong {
    font-size: 1.2rem;
  }

  .active-phone {
    width: min(82vw, 282px);
    border-width: 6px;
    border-radius: 28px;
  }

  .active-phone::before {
    width: 62px;
    height: 15px;
  }

  .phone-viewport {
    border-radius: 20px;
  }

  .phone-status {
    right: 12px;
    bottom: 12px;
    font-size: 0.62rem;
  }

  .screen-selector {
    gap: 8px;
  }

  .screen-thumb {
    min-height: 80px;
    padding: 8px 6px;
    font-size: 0.72rem;
  }

  .screen-thumb img {
    width: 44px;
  }

  .project-grid {
    gap: 16px;
  }

  .project-shot {
    min-height: 210px;
    padding: 50px 12px 14px;
  }

  .dashboard-controls {
    gap: 7px;
  }

  .dashboard-control {
    min-height: 40px;
    font-size: 0.66rem;
  }

  .image-preview {
    display: none !important;
  }

  .endpoint-line,
  .endpoint-response {
    padding: 10px;
  }

  .endpoint-shot code {
    font-size: 0.72rem;
  }

  .skill-tree {
    gap: 18px;
  }

  .skill-node {
    grid-template-columns: 46px 1fr;
    padding: 12px;
  }

  .node-icon {
    width: 46px;
    height: 46px;
  }

  .skill-node strong {
    font-size: 0.92rem;
  }

  .skill-node small {
    font-size: 0.78rem;
  }

  .loadout-detail {
    padding: 18px;
  }

  .loadout-detail h3 {
    font-size: clamp(1.65rem, 9vw, 2.5rem);
  }

  .loadout-grid span,
  .archetype-tags span,
  .tags span,
  .dashboard-stats span {
    font-size: 0.72rem;
  }

  .about-section,
  .contact-section {
    gap: 22px;
  }

  .timeline div {
    padding: 14px 16px;
  }

  .contact-actions {
    margin-top: 22px;
  }
}

@media (max-width: 420px) {
  .section-pad {
    padding-inline: 14px;
  }

  .pixel-headline {
    min-height: 8.4em;
    font-size: clamp(1.54rem, 8.2vw, 2.2rem);
  }

  .site-nav {
    right: 14px;
    left: 14px;
  }

  .mission-stats {
    grid-template-columns: 1fr;
  }

  .screen-selector,
  .dashboard-controls {
    grid-template-columns: 1fr;
  }

  .screen-thumb {
    grid-template-columns: 44px 1fr;
    justify-items: start;
    text-align: left;
  }

  .active-phone {
    width: min(88vw, 260px);
  }

  .console-topbar span:nth-child(2) {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Real-photo player profile */
.avatar-frame {
  isolation: isolate;
  align-items: end;
  background:
    linear-gradient(rgba(34, 211, 238, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 50% 68%, rgba(244, 114, 182, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.04);
  background-size: 18px 18px, 18px 18px, auto, auto;
}

.profile-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(62%, 210px);
  max-height: clamp(150px, 25vh, 210px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(34, 211, 238, 0.22));
}

.avatar-nameplate {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(34, 211, 238, 0.62);
  border-radius: 8px;
  background: rgba(5, 7, 19, 0.86);
  box-shadow: 4px 4px 0 rgba(244, 114, 182, 0.4);
  padding: 9px 11px;
  backdrop-filter: blur(10px);
}

.avatar-nameplate strong,
.avatar-nameplate span {
  font-family: var(--pixel-font);
}

.avatar-nameplate strong {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.1;
}

.avatar-nameplate span {
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.avatar-frame::after {
  z-index: 0;
}

@media (max-width: 860px) {
  .profile-photo {
    width: min(64%, 220px);
    max-height: 250px;
  }
}

@media (max-width: 420px) {
  .avatar-nameplate {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .avatar-nameplate span {
    text-align: left;
  }
}

/* Intro host and persistent Mini Carl assistant */
html.intro-scroll-guard,
body.intro-scroll-guard,
body.intro-active {
  overflow: hidden;
  touch-action: none;
}

.intro-gate {
  --intro-cue-y: 176px;
  position: fixed;
  inset: 0;
  z-index: 40;
  background:
    linear-gradient(rgba(34, 211, 238, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(244, 114, 182, 0.2), transparent 28%),
    radial-gradient(circle at 50% 60%, rgba(34, 211, 238, 0.18), transparent 38%),
    #080b18;
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  transition: opacity 420ms ease, visibility 420ms ease, transform 420ms ease;
}

.intro-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 5px);
}

.intro-message {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(760px, calc(100vw - 40px));
  border: 2px solid rgba(34, 211, 238, 0.72);
  border-radius: 8px;
  background: rgba(13, 20, 40, 0.94);
  box-shadow: 8px 8px 0 rgba(244, 114, 182, 0.55), 0 28px 90px rgba(0, 0, 0, 0.5);
  padding: clamp(22px, 4vw, 36px);
  text-align: center;
  transform: translate(-50%, calc(-50% - 248px));
}

.intro-message::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 54px;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  background: #0d1428;
  transform: rotate(45deg);
}

.intro-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: var(--pixel-font);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.intro-message h2 {
  margin: 0;
  font-family: var(--pixel-font);
  font-size: clamp(1.15rem, 2.4vw, 1.8rem);
  line-height: 1.35;
  text-wrap: balance;
}

.intro-scroll-cue {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #04111f;
  box-shadow: 5px 5px 0 var(--pink);
  padding: 0 18px;
  cursor: pointer;
  font-family: var(--pixel-font);
  font-weight: 900;
  text-transform: uppercase;
  transform: translate(-50%, var(--intro-cue-y));
  animation: intro-cue 1.6s ease-in-out infinite;
}

@keyframes intro-cue {
  50% { transform: translate(-50%, calc(var(--intro-cue-y) + 6px)); }
}

body.intro-revealing .intro-gate,
body.intro-dismissed .intro-gate {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}

.minime-assistant {
  position: fixed;
  right: 18px;
  bottom: 14px;
  z-index: 35;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
  transform-origin: center bottom;
  transition: transform 680ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.intro-active .minime-assistant {
  z-index: 90;
  justify-items: center;
  transform: translate(var(--minime-intro-x, -42vw), var(--minime-intro-y, -42vh)) scale(1.62);
}

body.intro-active .minime-toggle { pointer-events: none; }
body.intro-active .minime-popout { display: none; }

.minime-popout,
.minime-toggle { pointer-events: auto; }

.minime-popout {
  position: relative;
  width: min(290px, calc(100vw - 32px));
  border: 1px solid rgba(34, 211, 238, 0.72);
  border-radius: 8px;
  background: rgba(13, 20, 40, 0.97);
  box-shadow: 6px 6px 0 rgba(244, 114, 182, 0.45), 0 18px 60px rgba(0, 0, 0, 0.48);
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transform-origin: right bottom;
  transition: opacity 180ms ease, transform 180ms ease;
}

.minime-assistant.is-open .minime-popout {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.minime-popout::after {
  content: "";
  position: absolute;
  right: 42px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  background: #0d1428;
  transform: rotate(45deg);
}

.minime-kicker {
  margin: 0 0 4px;
  color: var(--gold);
  font-family: var(--pixel-font);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.minime-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--pixel-font);
  font-weight: 900;
}

.minime-links { display: grid; gap: 8px; }

.minime-links a {
  min-height: 40px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  padding: 0 12px;
  font-family: var(--pixel-font);
  font-size: 0.78rem;
  font-weight: 900;
}

.minime-links a:hover,
.minime-links a:focus-visible {
  border-color: var(--accent);
  background: var(--soft);
  color: var(--accent);
}

.minime-toggle {
  position: relative;
  width: 112px;
  min-height: 126px;
  display: grid;
  align-items: end;
  justify-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.minime-toggle img {
  width: 88px;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 14px rgba(34, 211, 238, 0.25));
  transform-origin: bottom center;
  transform: scaleX(-1);
  transition: transform 180ms ease, filter 180ms ease;
}

.minime-toggle:hover img,
.minime-toggle:focus-visible img,
.minime-assistant.is-open .minime-toggle img {
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.62)) drop-shadow(0 0 18px rgba(34, 211, 238, 0.42));
  transform: translateY(-4px) scaleX(-1) scale(1.05);
}

.minime-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.minime-bubble {
  position: absolute;
  top: -26px;
  right: -2px;
  border: 1px solid var(--gold);
  border-radius: 10px 10px 2px 10px;
  background: #0d1428;
  color: var(--gold);
  box-shadow: 3px 3px 0 rgba(244, 114, 182, 0.42);
  padding: 7px 10px;
  font-family: var(--pixel-font);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.minime-bubble::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  background: #0d1428;
  transform: rotate(45deg);
}

body.intro-active .minime-bubble { display: none; }

@media (max-width: 640px) {
  .intro-gate { --intro-cue-y: 154px; }
  .intro-message {
    width: calc(100vw - 28px);
    transform: translate(-50%, calc(-50% - 218px));
  }
  .intro-scroll-cue {
    width: calc(100vw - 32px);
    font-size: 0.76rem;
  }
  .minime-assistant { right: 8px; bottom: 8px; }
  .minime-toggle { width: 96px; min-height: 110px; }
  .minime-toggle img { width: 76px; }
  .minime-bubble { top: -22px; right: -1px; }
}

/* Hero viewport fit pass: keep the player profile visible without losing the game console feel. */
.hero.section-pad {
  min-height: 100svh;
  padding-block: clamp(28px, 5vh, 64px);
}

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

.pixel-headline {
  min-height: 4.65em;
  font-size: clamp(2rem, 4.2vw, 4.25rem);
  line-height: 1.07;
}

.hero-text {
  max-width: 620px;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
}

.game-console {
  width: min(100%, 500px);
  max-height: calc(100svh - 128px);
  justify-self: end;
}

.console-screen {
  gap: 12px;
  padding: 14px;
}

.avatar-frame {
  min-height: clamp(128px, 22vh, 182px);
}

.carl-sprite {
  width: min(46%, 168px);
  max-height: calc(22vh + 32px);
}

.loadout-panel,
.quest-card {
  padding: 13px;
}

.loadout-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(1.05rem, 2vw, 1.62rem);
}

.quest-tabs {
  gap: 7px;
}

.quest-tab,
.mini-game-button {
  padding: 9px 8px;
}

.quest-card h3 {
  margin-bottom: 7px;
  font-size: 1.08rem;
}

.quest-card p,
.xp-label {
  font-size: 0.9rem;
}

.console-actions {
  gap: 10px;
}

@media (max-height: 780px) and (min-width: 861px) {
  .hero.section-pad {
    padding-block: 24px;
  }

  .pixel-headline {
    min-height: 4.3em;
    font-size: clamp(1.86rem, 3.8vw, 3.7rem);
  }

  .eyebrow {
    margin-bottom: 8px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .console-topbar {
    padding: 10px 13px;
  }

  .console-screen {
    gap: 10px;
    padding: 12px;
  }

  .avatar-frame {
    min-height: clamp(118px, 20vh, 158px);
  }

  .carl-sprite {
    width: min(42%, 145px);
    max-height: calc(20vh + 24px);
  }

  .loadout-panel,
  .quest-card {
    padding: 11px;
  }

  .loadout-panel h2 {
    font-size: clamp(0.98rem, 1.7vw, 1.38rem);
  }

  .xp-meter {
    height: 13px;
  }

  .quest-card h3 {
    font-size: 1rem;
  }

  .quest-card p,
  .xp-label {
    font-size: 0.84rem;
  }

  .quest-tab,
  .mini-game-button {
    min-height: 38px;
    padding: 8px 7px;
    font-size: 0.76rem;
  }
}

@media (max-width: 860px) {
  .hero.section-pad {
    min-height: auto;
    padding-block: 44px 54px;
  }

  .game-console {
    width: min(100%, 520px);
    max-height: none;
    justify-self: stretch;
  }

  .pixel-headline {
    min-height: 6.2em;
    font-size: clamp(1.72rem, 8vw, 2.6rem);
  }

  .avatar-frame {
    min-height: clamp(190px, 38vh, 260px);
  }

  .carl-sprite {
    width: min(68%, 190px);
    max-height: 240px;
  }
}

@media (max-width: 420px) {
  .hero.section-pad {
    padding-block: 34px 44px;
  }

  .pixel-headline {
    min-height: 7.4em;
    font-size: clamp(1.48rem, 7.8vw, 2.05rem);
  }

  .avatar-frame {
    min-height: 190px;
  }
}

/* ============================================================
   Life & effects redesign pass
   Real pixel typography, ambient motion, reveals, and glow.
   ============================================================ */

:root {
  --pixel-font: "Press Start 2P", "Courier New", "Lucida Console", monospace;
  --body-font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  font-family: var(--body-font);
}

/* Ambient pixel-dust canvas sits between the page background and content. */
#fx-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Scroll progress styled as a global XP strip. */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--pink), var(--gold));
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.6);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* Headline switches to display type; pixel font handles the accents. */
.pixel-headline {
  font-family: var(--body-font);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Press Start 2P renders much larger than Courier: recalibrate accents. */
.eyebrow {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
}

.button {
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}

.console-topbar {
  font-size: 0.58rem;
}

.loadout-kicker,
.quest-label {
  font-size: 0.54rem;
  line-height: 1.7;
}

.xp-label {
  font-size: 0.54rem;
  line-height: 1.8;
}

.loadout-panel h2 {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  line-height: 1.55;
}

.quest-tab,
.mini-game-button {
  font-size: 0.54rem;
}

.quest-card h3 {
  font-size: 0.78rem;
  line-height: 1.55;
}

.avatar-label {
  font-size: 0.48rem;
}

.avatar-nameplate strong {
  font-size: 0.58rem;
  line-height: 1.55;
}

.avatar-nameplate span {
  font-size: 0.42rem;
  line-height: 1.7;
}

.stat {
  font-size: 0.76rem;
  line-height: 1.7;
}

.archetype-card small {
  font-size: 0.5rem;
}

.archetype-reveal h2 {
  font-size: clamp(1rem, 2.2vw, 1.55rem);
  line-height: 1.65;
}

.project-label {
  font-size: 0.54rem;
}

.mission-objective span {
  font-size: 0.6rem;
}

.mission-stats strong {
  font-size: 0.95rem;
  line-height: 1.7;
}

.phone-status {
  font-size: 0.48rem;
}

.screen-thumb {
  font-size: 0.54rem;
}

.shot-pill {
  font-size: 0.5rem;
}

.dashboard-control {
  font-size: 0.48rem;
}

.image-preview::before {
  font-size: 0.54rem;
}

.node-icon {
  font-size: 0.6rem;
}

.skill-node strong {
  font-size: 0.64rem;
  line-height: 1.55;
}

.loadout-detail h3 {
  font-size: clamp(1rem, 2.2vw, 1.65rem);
  line-height: 1.55;
}

.skill-proof span {
  font-size: 0.5rem;
}

.intro-kicker {
  font-size: 0.6rem;
}

.intro-message h2 {
  font-size: clamp(0.76rem, 1.7vw, 1.02rem);
  line-height: 1.95;
}

.intro-scroll-cue {
  font-size: 0.58rem;
}

.minime-kicker {
  font-size: 0.5rem;
}

.minime-title {
  font-size: 0.64rem;
  line-height: 1.6;
}

.minime-links a {
  font-size: 0.54rem;
}

.minime-bubble {
  font-size: 0.52rem;
}

/* Gradient ink for the big section statements. */
.section-heading h2,
.about-copy h2,
.contact-section h2 {
  background: linear-gradient(115deg, #ffffff 30%, #9be8f5 62%, #f5b8d9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-heading h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 78px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--pink), var(--gold));
  background-size: 180% 100%;
  animation: meter-shimmer 1.8s linear infinite;
}

/* Scroll-reveal choreography (classes removed after settling). */
.reveal {
  opacity: 0;
  transform:
    translate3d(var(--reveal-x, 0), var(--reveal-y, 28px), 0)
    scale(var(--reveal-scale, 1));
  will-change: opacity, transform;
  transition:
    opacity 620ms ease var(--reveal-delay, 0ms),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Modern same-document transitions for interactive portfolio panels. */
.active-phone {
  view-transition-name: ravia-phone;
}

.dashboard-monitor {
  view-transition-name: dashboard-screen;
}

.loadout-detail {
  view-transition-name: skill-loadout;
}

.archetype-reveal {
  view-transition-name: archetype-panel;
}

::view-transition-group(ravia-phone),
::view-transition-group(dashboard-screen),
::view-transition-group(skill-loadout),
::view-transition-group(archetype-panel) {
  animation-duration: 420ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-old(ravia-phone),
::view-transition-old(dashboard-screen),
::view-transition-old(skill-loadout),
::view-transition-old(archetype-panel) {
  animation: portfolio-panel-out 180ms ease both;
}

::view-transition-new(ravia-phone),
::view-transition-new(dashboard-screen),
::view-transition-new(skill-loadout),
::view-transition-new(archetype-panel) {
  animation: portfolio-panel-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes portfolio-panel-out {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
}

@keyframes portfolio-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

/* Cursor-tracked glow inside cards. */
.has-glow {
  position: relative;
  overflow: hidden;
}

.glow-spot {
  position: absolute;
  z-index: 0;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 260ms ease;
}

.has-glow:hover .glow-spot {
  opacity: 1;
}

/* Shine sweep across buttons. */
.button {
  position: relative;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  pointer-events: none;
  transform: skewX(-20deg);
  transition: left 520ms ease;
}

.button:hover::after {
  left: 135%;
}

/* Scrolling skills ticker. */
.skill-ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 15px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}

.skill-ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track span {
  color: var(--muted);
  font-family: var(--pixel-font);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

@keyframes ticker-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* Gentle idle float for the player console. */
.game-console {
  animation: console-float 7s ease-in-out infinite;
}

@keyframes console-float {
  50% {
    transform: translateY(-9px);
  }
}

/* Glitch flicker on the featured project title. */
.featured-copy h3:hover {
  animation: title-glitch 340ms steps(2) infinite;
}

@keyframes title-glitch {
  0% {
    text-shadow: 3px 0 var(--pink), -3px 0 var(--accent);
    transform: translateX(0);
  }

  50% {
    text-shadow: -3px 0 var(--accent), 3px 0 var(--pink);
    transform: translateX(2px);
  }

  100% {
    text-shadow: 2px 0 var(--gold), -2px 0 var(--accent);
    transform: translateX(-1px);
  }
}

/* Chips respond to hover everywhere. */
.tags span,
.dashboard-stats span,
.loadout-grid span,
.archetype-tags span,
.feature-list span,
.timeline div {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tags span:hover,
.dashboard-stats span:hover,
.loadout-grid span:hover,
.archetype-tags span:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.timeline div:hover {
  border-left-color: var(--gold);
  transform: translateX(6px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

/* Confetti pixels + cheat toast. */
.confetti-pixel {
  position: fixed;
  z-index: 80;
  width: 8px;
  height: 8px;
  pointer-events: none;
}

.cheat-toast {
  position: fixed;
  top: 16%;
  left: 50%;
  z-index: 95;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: rgba(13, 20, 40, 0.96);
  box-shadow: 6px 6px 0 rgba(244, 114, 182, 0.5), 0 24px 70px rgba(0, 0, 0, 0.5);
  padding: 16px 22px;
  color: var(--gold);
  font-family: var(--pixel-font);
  font-size: 0.68rem;
  transform: translateX(-50%);
  animation: toast-pop 3s ease forwards;
}

@keyframes toast-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -14px);
  }

  12%,
  82% {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -18px);
  }
}

@media (max-width: 760px) {
  .eyebrow {
    font-size: 0.56rem;
  }

  .ticker-track span {
    font-size: 0.54rem;
  }

  .intro-message h2 {
    font-size: 0.72rem;
    line-height: 2;
  }

  .glow-spot {
    display: none;
  }
}

/* Live app store project cards */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.ep-shot {
  align-content: end;
  background:
    radial-gradient(circle at 20% 15%, rgba(34, 211, 238, 0.2), transparent 42%),
    linear-gradient(150deg, rgba(14, 116, 144, 0.5), rgba(8, 11, 24, 0.92)),
    #0b2530;
}

.ep-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.ep-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 346 / 720;
  border: 4px solid #050713;
  border-radius: 14px;
  background: #050713;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.ep-gallery img:nth-child(2) {
  transform: translateY(-12px);
}

.ep-gallery img:hover {
  transform: translateY(-16px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(34, 211, 238, 0.2);
}

.iacademy-shot {
  align-content: end;
  background:
    radial-gradient(circle at 72% 18%, rgba(250, 204, 21, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(8, 11, 24, 0.96)),
    #111827;
}

.ar-frame {
  position: relative;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 24px 20px 20px;
}

.ar-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(34, 211, 238, 0.42);
  border-radius: 6px;
  pointer-events: none;
  animation: ar-scan-pulse 2.4s ease-in-out infinite;
}

@keyframes ar-scan-pulse {
  50% {
    border-color: rgba(34, 211, 238, 0.14);
  }
}

.ar-chip {
  display: inline-flex;
  margin-bottom: 12px;
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--accent);
  font-family: var(--pixel-font);
  font-size: 0.5rem;
}

.ar-frame strong {
  display: block;
  margin-bottom: 6px;
  color: white;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
}

.ar-frame > span:last-child {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

/* MotoGP card: real app icon beside the speed card. */
.motogp-shot {
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: end;
  gap: 14px;
}

.motogp-shot .shot-pill,
.motogp-shot .track-line {
  grid-column: 1 / -1;
}

.motogp-icon {
  display: block;
  width: 100%;
  border-radius: 22%;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.16);
  transform: rotate(-4deg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-card:hover .motogp-icon {
  transform: rotate(0deg) translateY(-4px) scale(1.04);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(34, 211, 238, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}
