:root {
  --bg: #030406;
  --panel: #0b1118;
  --panel-2: #111925;
  --line: #26364a;
  --text: #edf7ff;
  --muted: #a4c8dd;
  --cyan: #69efff;
  --pink: #ff6aa2;
  --gold: #ffd36a;
  --green: #8ff4d2;
  --deep: #05070a;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #030406;
  background-attachment: fixed;
  font-family: "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

body::before {
  content: none;
}

body::after {
  content: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.crt {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: soft-light;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 5vw, 72px);
  border-bottom: 1px solid rgba(105, 239, 255, 0.22);
  background: rgba(3, 4, 6, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(3, 12, 18, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-avatar-wrap {
  display: block;
  width: 44px;
  height: 44px;
  overflow: hidden;
}

.brand-avatar-wrap::after {
  content: none;
}

.brand-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.brand-name {
  text-shadow:
    3px 3px 0 rgba(105, 239, 255, 0.16),
    -2px 2px 0 rgba(255, 106, 162, 0.2);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 3vw, 34px);
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 16px;
}

nav a:hover {
  color: var(--cyan);
}

main {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.section-shell {
  margin: 54px 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(24px, 4vw, 46px) 0;
}

.hero::before {
  content: "";
  position: absolute;
  left: -7vw;
  right: 30%;
  top: 12%;
  bottom: 10%;
  z-index: -1;
  border: 1px solid rgba(105, 239, 255, 0.22);
  background:
    repeating-linear-gradient(180deg, transparent 0 20px, rgba(105, 239, 255, 0.045) 20px 22px, transparent 22px 46px),
    linear-gradient(135deg, rgba(13, 32, 48, 0.72), rgba(8, 23, 34, 0.08));
  clip-path: polygon(0 0, 86% 0, 100% 16%, 100% 100%, 0 100%);
}

.hero-copy {
  padding: clamp(18px, 3vw, 34px);
  animation: floatIn 620ms ease both;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 span:nth-child(2) {
  color: var(--cyan);
  text-shadow: 5px 5px 0 rgba(255, 106, 162, 0.28), 0 0 24px rgba(105, 239, 255, 0.18);
}

.hero-copy h1 span:nth-child(3) {
  color: var(--gold);
  text-shadow: 5px 5px 0 rgba(255, 106, 162, 0.36);
}

.hero-copy .eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-copy .eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--pink);
  box-shadow: 7px 7px 0 var(--cyan);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: Consolas, "Courier New", monospace;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(48px, 6.6vw, 92px);
  line-height: 0.92;
  text-shadow: 5px 5px 0 rgba(255, 106, 162, 0.28);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

.hero-text,
.section-heading p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  animation: floatIn 720ms ease 220ms both;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 560px;
}

.hero-metrics span {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(105, 239, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(105, 239, 255, 0.08), transparent),
    rgba(13, 32, 48, 0.82);
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.hero-metrics strong {
  color: var(--green);
  font-size: 22px;
}

.button,
.filter {
  cursor: pointer;
  border: 2px solid var(--line);
  color: var(--text);
  background: var(--panel);
  font-family: Consolas, "Courier New", monospace;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 18px;
  box-shadow: 6px 6px 0 var(--shadow);
}

.button:hover,
.filter:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.button-primary {
  border-color: var(--cyan);
  color: #071018;
  background: var(--cyan);
  animation: pulseButton 2.4s ease-in-out infinite;
}

.button-secondary {
  border-color: var(--pink);
  background: rgba(255, 79, 139, 0.14);
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(68vh, 680px);
  border: 2px solid var(--line);
  background:
    linear-gradient(rgba(156, 232, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 232, 255, 0.05) 1px, transparent 1px),
    repeating-linear-gradient(170deg, transparent 0 30px, rgba(105, 239, 255, 0.06) 30px 33px, transparent 33px 68px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    radial-gradient(ellipse at 50% 74%, rgba(105, 239, 255, 0.32), transparent 46%),
    #071522;
  background-size: 26px 26px, 26px 26px, auto, auto, auto, auto;
  box-shadow: 16px 16px 0 rgba(255, 106, 162, 0.22), -10px -10px 0 rgba(105, 239, 255, 0.1);
  overflow: hidden;
  animation: stageGlow 4s ease-in-out infinite;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(105, 239, 255, 0.28);
  box-shadow: inset 0 -90px 100px rgba(105, 239, 255, 0.11);
}

.stage-label {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 4;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-left: 4px solid var(--pink);
  background: rgba(5, 16, 24, 0.78);
  font-family: Consolas, "Courier New", monospace;
}

.stage-label span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.stage-label strong {
  color: var(--cyan);
  font-size: 18px;
}

.hero-creature {
  position: relative;
  z-index: 2;
  width: min(62%, 470px);
  image-rendering: pixelated;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.55));
  transform: translateY(8px);
  animation: creatureFloat 3.6s ease-in-out infinite;
}

.hero-creature-ghost {
  position: absolute;
  right: 5%;
  bottom: 10%;
  z-index: 1;
  width: min(26%, 180px);
  opacity: 0.26;
  animation-delay: -1.2s;
}

.stage-floor {
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: 74px;
  height: 12px;
  background: var(--cyan);
  box-shadow: 0 0 34px rgba(105, 239, 255, 0.62);
  animation: floorRipple 2.8s ease-in-out infinite;
}

.stage-orbit {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 3;
  display: grid;
  gap: 10px;
  width: 92px;
}

.stage-orbit img {
  width: 92px;
  height: 76px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid rgba(105, 239, 255, 0.34);
  background: rgba(5, 16, 24, 0.72);
  image-rendering: pixelated;
  animation: orbitPop 3.8s ease-in-out infinite;
}

.stage-orbit img:nth-child(2) {
  animation-delay: -1.1s;
}

.stage-orbit img:nth-child(3) {
  animation-delay: -2.2s;
}

.marquee {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 0;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(105, 239, 255, 0.1), rgba(255, 106, 162, 0.08));
  font-family: Consolas, "Courier New", monospace;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.18);
}

.marquee a {
  padding: 14px 10px;
  color: var(--muted);
  text-align: center;
  border-right: 1px solid var(--line);
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.marquee a:last-child {
  border-right: 0;
}

.marquee a:hover {
  color: #071018;
  background: var(--cyan);
  transform: translateY(-2px);
}

.showcase {
  scroll-margin-top: 90px;
}

.section-heading {
  display: grid;
  gap: 2px;
  margin-bottom: 22px;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.category-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 2px solid var(--line);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(105, 239, 255, 0.07), transparent),
    var(--panel);
  font-family: Consolas, "Courier New", monospace;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.category-nav a:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: rgba(105, 239, 255, 0.12);
}

.filter {
  min-height: 42px;
  padding: 8px 14px;
}

.filter.is-active {
  border-color: var(--gold);
  color: #150f02;
  background: var(--gold);
}

.category-stack {
  display: grid;
  gap: 46px;
}

.category-room {
  scroll-margin-top: 96px;
}

.category-room header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.category-room h3 {
  margin: 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(24px, 3vw, 34px);
}

.category-room span {
  color: var(--gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.work-card {
  cursor: pointer;
  position: relative;
  display: grid;
  grid-template-rows: 250px auto;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(105, 239, 255, 0.06), transparent 34%),
    var(--panel);
  text-align: left;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.work-card:hover,
.work-card.is-selected {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 16px 32px rgba(3, 18, 28, 0.28), 0 0 0 1px rgba(105, 239, 255, 0.2);
}

.work-card::after {
  content: "OPEN";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 7px;
  color: #071018;
  background: var(--cyan);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.work-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.thumb {
  display: grid;
  place-items: center;
  background: #080c14;
  overflow: hidden;
}

.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.card-copy {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.card-copy strong {
  overflow: hidden;
  font-size: 17px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-copy span {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.projects,
.stats,
.contact {
  scroll-margin-top: 90px;
}

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

.project-grid article,
.stats dl > div,
.contact {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(105, 239, 255, 0.08), transparent),
    rgba(13, 32, 48, 0.82);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}

.project-grid article {
  padding: 22px;
}

.project-grid span {
  color: var(--pink);
  font-family: Consolas, "Courier New", monospace;
  font-weight: 800;
}

.project-grid h3 {
  margin: 12px 0 10px;
  font-size: 25px;
}

.project-grid p,
.contact p {
  color: var(--muted);
  line-height: 1.45;
}

.stats {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  align-items: stretch;
}

.stats dl {
  margin: 0;
}

.stats dl > div {
  padding: 20px;
}

.stats dt {
  color: var(--green);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
}

.stats dd {
  margin: 8px 0 0;
  color: var(--muted);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 5vw, 42px);
  margin-bottom: 48px;
}

.contact h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.lightbox {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: clamp(16px, 4vw, 42px);
  background: rgba(4, 7, 12, 0.9);
  opacity: 0;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  pointer-events: auto;
  opacity: 1;
}

.lightbox-media {
  display: grid;
  place-items: center;
  width: min(100%, 1120px);
  height: min(78vh, 820px);
  border: 2px solid var(--cyan);
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #070b13;
  background-size: 22px 22px;
  box-shadow: 14px 14px 0 rgba(255, 79, 139, 0.28);
  overflow: hidden;
}

.lightbox-media img,
.lightbox-media video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
}

.lightbox-caption span {
  color: var(--gold);
  text-transform: uppercase;
}

.lightbox-close {
  cursor: pointer;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  min-height: 42px;
  padding: 8px 12px;
  border: 2px solid var(--pink);
  color: var(--text);
  background: rgba(17, 24, 39, 0.92);
  font-family: Consolas, "Courier New", monospace;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

@media (max-width: 930px) {
  .hero,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    right: -7vw;
  }

  .hero-stage {
    min-height: 410px;
  }

  .marquee,
  .project-grid,
  .stats dl {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  main {
    width: min(100% - 22px, 1220px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 43px;
  }

  .hero-copy {
    padding: 8px 0;
  }

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

  .button {
    width: 100%;
  }

  .hero-stage {
    min-height: 420px;
  }

  .hero-creature {
    width: min(76%, 310px);
  }

  .stage-orbit {
    grid-template-columns: repeat(3, 1fr);
    right: 14px;
    left: 14px;
    top: auto;
    bottom: 18px;
    width: auto;
  }

  .stage-orbit img {
    width: 100%;
    height: 58px;
  }

  .marquee,
  .project-grid,
  .stats dl {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  }

  .work-card {
    grid-template-rows: 165px auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes stageGlow {
  0%,
  100% {
    box-shadow: 14px 14px 0 rgba(255, 79, 139, 0.24), 0 0 0 rgba(97, 232, 255, 0);
  }
  50% {
    box-shadow: 14px 14px 0 rgba(255, 79, 139, 0.34), 0 0 44px rgba(97, 232, 255, 0.14);
  }
}

@keyframes orbitPop {
  0%,
  100% {
    opacity: 0.72;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@keyframes floorRipple {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.82;
  }
  50% {
    transform: scaleX(0.88);
    opacity: 1;
  }
}

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