@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("fonts/press-start-2p.woff2") format("woff2");
}

@font-face {
  font-family: "VT323";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("fonts/vt323.woff2") format("woff2");
}

:root {
  --bg-top: #0b0a1f;
  --bg-mid: #12061d;
  --bg-bottom: #05040d;
  --panel: rgba(8, 10, 23, 0.78);
  --panel-strong: rgba(8, 10, 23, 0.92);
  --line: rgba(92, 232, 255, 0.7);
  --line-soft: rgba(92, 232, 255, 0.18);
  --pink: #ff5faa;
  --cyan: #5ce8ff;
  --gold: #ffc65c;
  --text: #f6f3ff;
  --muted: #c8c0e8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --max-width: 1320px;
  --space-1: 0.45rem;
  --space-2: 0.8rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --portfolio-media-height: clamp(190px, 18vw, 250px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "VT323", "Courier New", monospace;
  letter-spacing: 0.03em;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 95, 170, 0.22), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(92, 232, 255, 0.18), transparent 22%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 42%, var(--bg-bottom) 100%);
  background-attachment: scroll;
  background-color: var(--bg-bottom);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  min-height: 100%;
  height: max(100%, 100vh);
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(92, 232, 255, 0.04) 0 1px, transparent 1px 100%);
  background-size: 100% 4px, 26px 26px;
  opacity: 0.12;
  z-index: 0;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.25rem 0 var(--space-7);
  position: relative;
  z-index: 1;
}

.shell::before {
  content: "";
  position: absolute;
  right: 6%;
  top: 4rem;
  width: min(32vw, 380px);
  height: min(32vw, 380px);
  border: 4px solid rgba(255, 95, 170, 0.36);
  transform: rotate(45deg);
  filter: drop-shadow(0 0 22px rgba(255, 95, 170, 0.2));
  opacity: 0.5;
  z-index: 0;
}

.shell::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 17rem;
  width: min(42vw, 560px);
  height: min(22vw, 260px);
  background:
    linear-gradient(180deg, rgba(255, 95, 170, 0.75), rgba(255, 95, 170, 0.06) 3px, transparent 3px),
    linear-gradient(90deg, rgba(92, 232, 255, 0.28) 1px, transparent 1px);
  background-size: 100% 100%, 28px 22px;
  clip-path: polygon(0 100%, 100% 100%, 90% 55%, 70% 66%, 58% 48%, 40% 68%, 25% 52%, 10% 70%);
  opacity: 0.42;
  z-index: 0;
}

.topbar,
.hero-shell,
.portfolio-shell,
.detail-shell,
.about-shell,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: right;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav a {
  padding: 0.7rem 0;
  font-family: "Press Start 2P", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--cyan);
  border-bottom: 3px solid transparent;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--pink);
  border-color: var(--pink);
  outline: none;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: var(--space-5);
  align-items: stretch;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  background: linear-gradient(180deg, rgba(8, 8, 20, 0.74), rgba(8, 8, 20, 0.36));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 14, 0.16) 0%, rgba(5, 6, 14, 0.04) 38%, rgba(5, 6, 14, 0.56) 100%),
    linear-gradient(180deg, rgba(255, 95, 170, 0.08), transparent 28%, rgba(2, 4, 12, 0.22) 100%);
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  padding-top: 1.2rem;
}

.eyebrow {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  color: var(--cyan);
  font-family: "Press Start 2P", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  border: 2px solid rgba(92, 232, 255, 0.36);
  background: rgba(10, 13, 28, 0.64);
}

.hero-frame,
.detail-hero,
.about-hero,
.detail-copy,
.about-copy,
.identity-panel,
.detail-stage {
  background: linear-gradient(180deg, rgba(10, 12, 28, 0.84), rgba(7, 8, 19, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-frame {
  padding: 1.7rem;
  position: relative;
}

.hero-frame::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, transparent 0 3%, var(--pink) 3% 96%, transparent 96%);
}

.hero-title,
.page-title {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1.85rem, 3vw, 3.45rem);
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 95, 170, 0.22);
}

.hero-copy p,
.about-copy p,
.detail-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 1.8vw, 1.58rem);
  line-height: 1.34;
}

.about-copy p + p {
  margin-top: 0.95rem;
}

.hero-actions,
.detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions {
  margin-top: var(--space-3);
}

.detail-nav {
  margin-top: var(--space-4);
}

.about-hero .eyebrow {
  margin-bottom: var(--space-4);
}

.detail-hero .eyebrow {
  margin-bottom: var(--space-4);
}

.about-copy .button-link {
  margin-top: var(--space-4);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  font-family: "Press Start 2P", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #fff8fe;
  background: rgba(255, 95, 170, 0.14);
  border: 2px solid rgba(255, 95, 170, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.button-link.alt {
  color: var(--cyan);
  background: rgba(92, 232, 255, 0.08);
  border-color: rgba(92, 232, 255, 0.62);
}

.button-link:hover,
.button-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.identity-panel {
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
}

.identity-panel strong {
  font-family: "Press Start 2P", monospace;
  font-size: 0.66rem;
  color: var(--gold);
  text-transform: uppercase;
}

.identity-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.identity-panel li {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 1.2rem;
}

.portfolio-shell,
.detail-shell,
.about-shell {
  margin-top: var(--space-7);
}

.portfolio-head {
  margin-bottom: var(--space-5);
}

.portfolio-head h2,
.detail-title,
.video-title {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1.02rem, 2vw, 1.42rem);
  line-height: 1.5;
  text-transform: uppercase;
}

.video-title {
  margin-top: var(--space-5);
  color: var(--text);
}

.video-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(92, 232, 255, 0.28);
  background: rgba(5, 6, 14, 0.7);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.3rem;
  align-items: stretch;
}

.portfolio-card {
  background: linear-gradient(180deg, rgba(10, 12, 30, 0.9), rgba(7, 7, 18, 0.66));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
}

.portfolio-card figure {
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: var(--portfolio-media-height) 1fr;
}

.portfolio-media {
  position: relative;
  height: var(--portfolio-media-height);
  background: #070714;
  overflow: hidden;
}

.portfolio-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.portfolio-media-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.portfolio-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card figcaption {
  padding: 1rem 1rem 1.2rem;
  display: grid;
  grid-template-rows: minmax(2.8rem, auto) 1fr;
  gap: 0.7rem;
  min-height: 8rem;
  align-content: start;
}

.card-title {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  text-transform: uppercase;
  min-height: 2.8rem;
}

.portfolio-card .button-link {
  align-self: end;
  justify-self: start;
}

.detail-shell,
.about-shell {
  display: grid;
  gap: var(--space-5);
}

.detail-hero,
.about-hero,
.detail-copy,
.about-copy {
  padding: var(--space-5);
}

.detail-stage {
  padding: 1.35rem;
  display: flex;
  justify-content: center;
}

.detail-media {
  width: min(100%, var(--art-width, 720px));
}

.detail-stage img {
  width: 100%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 34px rgba(0, 0, 0, 0.4);
}

.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--space-3);
  color: var(--cyan);
  font-family: "Press Start 2P", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.footer {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  color: var(--muted);
  font-size: 1.18rem;
}

@media (max-width: 1120px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 520px;
  }
}

@media (max-width: 860px) {
  .shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .shell::before,
  .shell::after {
    display: none;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    justify-content: right;
  }

  .identity-panel,
  .hero-frame,
  .detail-hero,
  .about-hero,
  .detail-copy,
  .about-copy {
    padding: var(--space-4);
  }

}

@media (max-width: 560px) {
  .nav,
  .hero-actions,
  .detail-nav {
    width: 100%;
  }

  .nav a,
  .button-link {
    width: 100%;
    justify-content: center;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-title,
  .page-title {
    font-size: 1.55rem;
  }
}
