:root {
  --cobalt: #1f2bd6;
  --navy: #0a0f4a;
  --cream: #f4f0dc;
  --yellow: #ffd23f;
  --coral: #ff4f3a;
  --cyan: #3ff2ff;
  --magenta: #ff3fd8;
  --wide: "Orbitron", sans-serif;
  --display: "Big Shoulders Display", Impact, sans-serif;
  --text: "Big Shoulders Text", "Arial Narrow", sans-serif;
  --pixel: "VT323", monospace;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

/* Light-cycle grid with a fine grain over it, glowing brighter near the top */
body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .22 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(63, 242, 255, .18), transparent 70%),
    linear-gradient(rgba(150, 215, 255, .11) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(150, 215, 255, .11) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--cobalt);
  color: var(--cream);
  font-family: var(--text);
  font-size: 21px;
  line-height: 1.45;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(44px, 6vw, 84px);
  line-height: .95;
  text-transform: uppercase;
}

/* Top bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(31, 43, 214, .82);
  backdrop-filter: blur(8px);
}
.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pixel);
  font-size: 26px;
  text-decoration: none;
}
.mark img { width: 30px; border-radius: 50%; }
.bar nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.bar nav a {
  font-family: var(--pixel);
  font-size: 24px;
  text-decoration: none;
}
.bar nav a:hover { color: var(--yellow); }

/* Hero: the name is the whole show */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 27vw, 400px);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 3vw clamp(20px, 4vw, 56px) 130px;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; }
/* Tron grid floor running off to the horizon behind the hero */
.hero::before {
  content: "";
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: 0;
  height: 60%;
  background:
    linear-gradient(var(--cyan) 2px, transparent 2px) 0 0 / 70px 70px,
    linear-gradient(90deg, var(--cyan) 2px, transparent 2px) 0 0 / 70px 70px;
  transform: perspective(420px) rotateX(64deg);
  transform-origin: bottom;
  opacity: .45;
  -webkit-mask-image: linear-gradient(transparent, #000 75%);
  mask-image: linear-gradient(transparent, #000 75%);
}

/* The name: wide arcade lettering, chrome fill sliced by scanlines, cyan and magenta split */
.name {
  position: relative;
  font-family: var(--wide);
  font-weight: 900;
  font-size: clamp(44px, 8.6vw, 140px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.name span {
  display: block;
  width: fit-content;
  color: transparent;
  background:
    repeating-linear-gradient(transparent 0 .07em, rgba(10, 15, 74, .9) .07em .095em) bottom / 100% 46% no-repeat,
    linear-gradient(#fff 0%, #d9fdff 40%, var(--cyan) 52%, #2f7bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(-.04em .02em 0 var(--magenta))
    drop-shadow(.03em -.015em 0 var(--cyan))
    drop-shadow(0 0 .18em rgba(63, 242, 255, .55));
}
.name span:last-child {
  margin-left: 8vw;
  background:
    repeating-linear-gradient(transparent 0 .07em, rgba(10, 15, 74, .9) .07em .095em) bottom / 100% 46% no-repeat,
    linear-gradient(#fff6c8 0%, var(--yellow) 45%, var(--coral) 55%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(-.04em .02em 0 var(--cyan))
    drop-shadow(.03em -.015em 0 var(--magenta))
    drop-shadow(0 0 .18em rgba(255, 63, 216, .5));
}
/* Portrait in a neon frame with a faint CRT scanline */
.portrait {
  position: relative;
  z-index: 1;
  aspect-ratio: 3 / 4;
  border: 2px solid var(--cyan);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 28px rgba(63, 242, 255, .55), 12px 12px 0 var(--magenta);
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent 0 2px, rgba(10, 15, 74, .22) 2px 4px);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.role {
  margin-top: clamp(20px, 2.4vw, 36px);
  font-family: var(--pixel);
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1;
}
.cta {
  display: inline-block;
  margin-top: clamp(24px, 2.6vw, 40px);
  font-family: var(--pixel);
  font-size: 30px;
  text-decoration: none;
  background: var(--yellow);
  color: var(--navy);
  padding: 8px 22px 10px;
  box-shadow: 6px 6px 0 var(--navy);
  transition: transform .1s, box-shadow .1s;
}
.cta:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--navy); }
.cta:active { transform: translate(6px, 6px); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Sound test: a CRT screen with the credits and the real player */
.soundtest { padding: 40px clamp(20px, 4vw, 56px) 110px; }
.crt {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 4vw, 64px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px);
  background: var(--navy);
  border: 14px solid #060935;
  border-radius: 36px;
  box-shadow: inset 0 0 90px rgba(31, 43, 214, .55);
  font-family: var(--pixel);
}
.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .28) 2px 4px);
}
.crt h2 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(56px, 6vw, 88px);
  color: var(--yellow);
  text-shadow: 0 0 18px rgba(255, 210, 63, .55);
}
.crt-note { font-size: 26px; opacity: .7; margin: 18px 0 8px; }
.crt ul { list-style: none; padding: 0; }
.crt li {
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1.25;
  padding-left: 32px;
  position: relative;
  cursor: default;
}
.crt li::before {
  content: "\25B6";
  position: absolute;
  left: 0;
  font-size: .6em;
  top: .42em;
  color: var(--yellow);
  visibility: hidden;
}
.crt li:hover, .crt li:focus { color: var(--yellow); outline: none; }
.crt li:hover::before, .crt li:focus::before { visibility: visible; }
.crt-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 24px;
  color: var(--cream);
}
.crt-link:hover { color: var(--yellow); }
.crt-player {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  border-radius: 6px;
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) 130px;
}
.about-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid var(--yellow);
}
.about-text { max-width: 36em; }
.about-text p { margin-top: 22px; }

/* Work with me: an options menu, not cards */
.work {
  background: var(--yellow);
  color: var(--navy);
  padding: 110px clamp(20px, 4vw, 56px) 120px;
}
.work h2 { max-width: 1240px; margin: 0 auto 56px; }
.work dl { max-width: 1240px; margin: 0 auto; }
.work dl div {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 12px 48px;
  padding: 30px 0;
  border-top: 3px solid var(--navy);
}
.work dl div:last-child { border-bottom: 3px solid var(--navy); }
.work dt {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1;
  text-transform: uppercase;
}
.work dd { margin: 0; max-width: 32em; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px clamp(20px, 4vw, 56px);
}
.contact-text p { margin-top: 24px; max-width: 28em; }
.elsewhere { display: flex; gap: 28px; font-family: var(--pixel); font-size: 28px; }
.elsewhere a:hover { color: var(--yellow); }
.form { display: grid; gap: 22px; }
.form label { display: grid; gap: 6px; font-family: var(--pixel); font-size: 26px; }
.form input, .form textarea {
  font: inherit;
  font-family: var(--text);
  font-size: 20px;
  color: var(--navy);
  background: var(--cream);
  border: 0;
  border-bottom: 4px solid var(--navy);
  padding: 12px 14px;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--yellow); }
.form button {
  justify-self: start;
  font-family: var(--pixel);
  font-size: 30px;
  background: var(--yellow);
  color: var(--navy);
  border: 0;
  padding: 8px 26px 10px;
  box-shadow: 6px 6px 0 var(--navy);
  cursor: pointer;
  transition: transform .1s, box-shadow .1s;
}
.form button:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--navy); }
.form button:active { transform: translate(6px, 6px); box-shadow: none; }

.foot {
  display: flex;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  background: var(--navy);
  font-family: var(--pixel);
  font-size: 22px;
}

/* Tablets */
@media (max-width: 900px) {
  /* Title-screen stack: key art on top, the name laid over its lower edge */
  .hero { grid-template-columns: 1fr; gap: 0; padding-top: 16px; padding-bottom: 96px; }
  .portrait {
    order: -1;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 66vh;
    box-shadow: 0 0 28px rgba(63, 242, 255, .55), 8px 8px 0 var(--magenta);
  }
  .portrait img { object-position: center 25%; }
  .portrait::after {
    background:
      linear-gradient(transparent 45%, rgba(31, 43, 214, .92) 100%),
      repeating-linear-gradient(transparent 0 2px, rgba(10, 15, 74, .22) 2px 4px);
  }
  .hero-copy { margin-top: -17vw; padding: 0 4px; }
  .name { font-size: 13.5vw; }
  .crt, .about, .contact, .work dl div { grid-template-columns: 1fr; }
  .about-art { max-width: 340px; }
}

/* Phones */
@media (max-width: 600px) {
  body { font-size: 19px; }
  .mark span, .bar nav a[href="#work"] { display: none; }
  .name span:last-child { margin-left: 0; }
  .crt { border-width: 8px; border-radius: 22px; }
  .crt-player { min-height: 360px; }
}
