:root {
  --black: #0a0a0f;
  --deep: #0d0d1a;
  --cyan: #00f5ff;
  --yellow: #ffe600;
  --red: #ff2442;
  --white: #f0f0f0;
  --grid: rgba(0, 245, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at top, rgba(0, 245, 255, 0.16), transparent 42%),
    radial-gradient(circle at bottom right, rgba(255, 36, 66, 0.18), transparent 36%),
    linear-gradient(180deg, #06070d 0%, #0d0d1a 55%, #06070d 100%);
  font-family: 'Share Tech Mono', monospace;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, #000 58%, transparent 100%);
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.topbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 2px solid rgba(0, 245, 255, 0.55);
  background: rgba(0, 245, 255, 0.08);
  color: var(--cyan);
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

.home-link:hover,
.home-link:focus-visible,
.project-link:hover,
.project-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--yellow);
  background: rgba(255, 230, 0, 0.12);
  outline: none;
}

.panel {
  border: 2px solid rgba(0, 245, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(0, 245, 255, 0.08), rgba(10, 10, 15, 0.92)),
    rgba(10, 10, 15, 0.88);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.1);
}

.hero-copy {
  padding: 22px 24px;
}

h1 {
  margin: 0;
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0.5px;
  color: var(--yellow);
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--red);
}

.title-tail {
  white-space: nowrap;
}

.player-panel,
.more-work {
  margin-top: 20px;
  padding: 20px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(0, 245, 255, 0.42);
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.more-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.project-link,
.project-link.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 230, 0, 0.45);
  background: rgba(255, 230, 0, 0.05);
  color: var(--yellow);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 1.4px;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

.project-link.current {
  border-color: var(--cyan);
  background: rgba(0, 245, 255, 0.12);
  color: var(--cyan);
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
    padding-bottom: 48px;
  }

  .topbar {
    margin-bottom: 16px;
  }

  .hero-copy,
  .player-panel,
  .more-work {
    padding: 16px;
  }

  .more-work-grid {
    grid-template-columns: 1fr;
  }
}
