/* Versioned filename ensures browsers fetch the corrected logo sizing. */
:root {
  --bg: #050505;
  --panel: #0b0b0b;
  --panel-2: #111111;
  --ink: #f1eadb;
  --muted: #9b968e;
  --slime: #9df10b;
  --slime-hot: #caff26;
  --pink: #ff1493;
  --purple: #7e2f9f;
  --yellow: #e9ff2f;
  --line: rgba(241, 234, 219, .14);
  --max: 1180px;
}

* { box-sizing: border-box; }
html, body, body * {
  cursor: url('./assets/pointer.png') 18 18, auto;
}
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 10%, rgba(157, 241, 11, .06), transparent 31rem),
    radial-gradient(circle at 86% 22%, rgba(255, 20, 147, .055), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }

::selection { background: var(--pink); color: #000; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 52px);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(5,5,5,.88), rgba(5,5,5,.3), transparent);
  backdrop-filter: blur(6px);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(5,5,5,.9);
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
}

.mini-brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(157,241,11,.18);
}

nav { display: flex; gap: clamp(14px, 2.6vw, 34px); }
nav a {
  position: relative;
  text-decoration: none;
  font-size: .72rem;
  letter-spacing: .15em;
  color: #d7d0c5;
}
nav a::after {
  content: "";
  position: absolute;
  height: 2px;
  left: 0;
  right: 100%;
  bottom: -7px;
  background: var(--slime);
  transition: right .18s ease;
}
nav a:hover::after, nav a:focus-visible::after { right: 0; }

.hero {
  min-height: 100svh;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 120px 0 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.signal,
.section-kicker,
.project-status,
.tiny-note {
  color: var(--slime);
  letter-spacing: .16em;
  font-size: .68rem;
  font-weight: 700;
}

.signal { margin: 0 0 22px; opacity: .85; }

.logo-glitch {
  position: relative;
  width: min(256px, 100%);
  /* Compensate for the transparent padding above and below the artwork. */
  margin-block: -40px;
  aspect-ratio: 1;
  flex-shrink: 0;
  isolation: isolate;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,.65));
}
.logo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
.logo-ghost {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.logo-glitch.glitching .logo-ghost-a {
  opacity: .24;
  transform: translate(-5px, 1px);
  filter: hue-rotate(75deg) saturate(1.8);
  clip-path: inset(18% 0 58% 0);
}
.logo-glitch.glitching .logo-ghost-b {
  opacity: .18;
  transform: translate(6px, -1px);
  filter: hue-rotate(240deg) saturate(1.7);
  clip-path: inset(58% 0 17% 0);
}

.tagline {
  margin: 20px 0 4px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.5rem, 3vw, 3.1rem);
  line-height: 1;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.tagline span { color: var(--slime); text-shadow: 2px 2px 0 var(--purple); }
.hero-copy { margin: 14px auto 0; max-width: 620px; color: var(--muted); }

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.button {
  min-width: 190px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  text-decoration: none;
  letter-spacing: .1em;
  font-size: .72rem;
  font-weight: 700;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--slime); color: #070707; border-color: var(--slime); }
.button-primary:hover { background: var(--slime-hot); }
.button-secondary:hover { border-color: var(--pink); color: var(--pink); }

.signal-toggle {
  margin-top: 34px;
  appearance: none;
  border: 0;
  border-bottom: 1px dashed rgba(241,234,219,.25);
  background: transparent;
  color: #77736d;
  padding: 6px 2px;
  font: inherit;
  font-size: .64rem;
  letter-spacing: .12em;
  cursor: url('./assets/pointer.png') 18 18, pointer;
}
.signal-toggle:hover { color: var(--slime); }

.section {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(74px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
}

.project-card {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  min-height: 390px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(157,241,11,.07), transparent 38%),
    linear-gradient(315deg, rgba(255,20,147,.05), transparent 36%),
    var(--panel);
  overflow: hidden;
}
.project-copy { padding: clamp(28px, 5vw, 70px); align-self: center; }
.project-status { display: flex; align-items: center; gap: 8px; }
.project-status span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--slime);
  box-shadow: 0 0 12px var(--slime);
}
.project-card h2,
.studio h2,
.contact h2 {
  margin: 18px 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  line-height: .95;
  letter-spacing: .035em;
}
.project-card h2 { font-size: clamp(3.2rem, 8vw, 7.4rem); }
.project-logo {
  /* 200% of the 181px source, constrained only on narrow screens. */
  width: min(100%, 362px);
  height: auto;
  aspect-ratio: 181 / 120;
  object-fit: contain;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  margin: 18px 0 22px;
  border: 0;
  background: transparent;
}
.project-copy p { max-width: 670px; color: #c3bdb2; }
.project-note { color: var(--pink) !important; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }

.transmission-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 300px;
  padding: clamp(18px, 3vw, 36px);
  border-left: 1px solid var(--line);
  background:
    repeating-linear-gradient(125deg, transparent 0 53px, rgba(241,234,219,.025) 54px, transparent 55px 130px),
    #090a08;
  overflow: hidden;
}
.transmission-frame {
  width: 100%;
  border: 1px solid #49493a;
  box-shadow: 0 14px 36px rgba(0,0,0,.45), inset 0 0 0 3px #14150f;
}
.transmission-header,
.transmission-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 12px;
  color: #b7b094;
  font-size: .56rem;
  line-height: 1.5;
  letter-spacing: .09em;
}
.transmission-header { border-bottom: 1px solid #393a2d; }
.transmission-status { display: inline-flex; align-items: center; gap: 6px; color: #a5b47e; }
.transmission-signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.transmission-signal i { display: block; width: 3px; height: 4px; background: currentColor; }
.transmission-signal i:nth-child(2) { height: 7px; opacity: .6; }
.transmission-signal i:nth-child(3) { height: 10px; opacity: .25; }
.transmission-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.transmission-screen iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.transmission-footer { border-top: 1px solid #393a2d; color: #747762; font-size: .5rem; }
.transmission-footer a { text-underline-offset: 3px; }
.transmission-footer a:hover, .transmission-footer a:focus-visible { color: var(--slime); }

.studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.studio h2 { font-size: clamp(2.7rem, 6vw, 5.8rem); }
.studio-copy { padding-top: 24px; color: #bbb4aa; font-size: clamp(1rem, 1.6vw, 1.16rem); }
.studio-copy p + p { margin-top: 28px; }

.contact { text-align: center; container-type: inline-size; }
.contact h2 {
  width: min(860px, 100%);
  margin: 18px auto;
  font-size: min(9cqi, 4.8rem);
  color: var(--slime);
  text-shadow: 3px 3px 0 var(--purple);
  white-space: nowrap;
}
.contact > p { color: var(--muted); }
.social-grid {
  width: min(860px, 100%);
  margin: 42px auto 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.social-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  letter-spacing: .1em;
  font-size: .72rem;
  background: rgba(255,255,255,.01);
  transition: color .15s ease, background .15s ease;
}
.social-grid a:hover, .social-grid a:focus-visible { color: #050505; background: var(--slime); }
.social-grid span { font-size: 1rem; }
.email-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--pink);
  text-underline-offset: 6px;
  letter-spacing: .07em;
  font-size: clamp(1.05rem, 2.1vw, 1.6rem);
  font-weight: 700;
}
.tiny-note { margin-top: 20px !important; color: #66625d !important; }
.specimen-trigger {
  display: block;
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  line-height: inherit;
}
.specimen-trigger:focus-visible {
  outline: 1px dashed var(--slime);
  outline-offset: 6px;
}
.specimen-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 42px 24px 24px;
  border: 1px solid var(--slime);
  background: #000;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 0 48px rgba(157, 241, 11, .14);
}
.specimen-dialog::backdrop { background: rgba(0, 0, 0, .85); }
.specimen-dialog h2 {
  margin: 0 0 20px;
  color: var(--slime);
  font: 700 .68rem / 1.6 "Courier New", monospace;
  letter-spacing: .14em;
}
.specimen-dialog img {
  width: min(344px, 100%);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
.specimen-dialog p { margin: 18px 0 0; color: var(--muted); font-size: .75rem; }
.specimen-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 24px / 1 monospace;
}
.specimen-close:hover, .specimen-close:focus-visible { border-color: var(--slime); color: var(--slime); }

footer {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #6f6a63;
  font-size: .64rem;
  letter-spacing: .08em;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #aaa49b; }
.footer-brand img { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; }
footer p { margin: 0; text-align: right; }

.scanlines,
.screen-noise {
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
}
.scanlines {
  opacity: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255,255,255,.035) 4px, rgba(0,0,0,.08) 5px);
  transition: opacity .2s ease;
}
.screen-noise {
  opacity: 0;
  background:
    repeating-radial-gradient(circle at 30% 40%, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,0,80,.01) 0 1px, rgba(0,255,140,.008) 1px 2px, transparent 2px 4px);
  mix-blend-mode: screen;
}
body.crt-on .scanlines { opacity: .5; }
body.crt-on .screen-noise { opacity: .6; animation: noiseShift .13s steps(2) infinite; }
body.crt-on { text-shadow: .4px 0 rgba(255,20,147,.35), -.4px 0 rgba(90,255,120,.26); }
body.crt-on main { animation: crtBreathe 4.8s ease-in-out infinite; }

.crt-boot {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
  pointer-events: none;
  animation: bootAway 1.55s ease forwards;
}
.boot-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 24px white;
  animation: bootDot .65s ease forwards;
}
.boot-line {
  width: 0;
  height: 2px;
  background: white;
  box-shadow: 0 0 18px rgba(255,255,255,.9);
  animation: bootLine .5s .5s ease forwards;
}

@keyframes bootDot {
  0% { transform: scale(0); opacity: 0; }
  45% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(.2); opacity: .9; }
}
@keyframes bootLine {
  0% { width: 0; opacity: 1; }
  75% { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}
@keyframes bootAway {
  0%, 72% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes noiseShift {
  0% { transform: translate(0,0); }
  25% { transform: translate(1px,-1px); }
  50% { transform: translate(-1px,1px); }
  75% { transform: translate(1px,1px); }
  100% { transform: translate(0,0); }
}
@keyframes crtBreathe {
  0%, 100% { filter: brightness(1) contrast(1); }
  50% { filter: brightness(.985) contrast(1.015); }
}

@media (max-width: 820px) {
  .site-header { height: 62px; }
  .mini-brand span { display: none; }
  nav { gap: 14px; }
  nav a { font-size: .62rem; }
  .hero { padding-top: 98px; }
  .project-card { grid-template-columns: 1fr; }
  .transmission-panel { border-left: 0; border-top: 1px solid var(--line); min-height: 240px; }
  .studio { grid-template-columns: 1fr; gap: 12px; }
  .social-grid { grid-template-columns: 1fr 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
  footer p { text-align: left; }
}

@media (max-width: 520px) {
  .logo-glitch { width: min(256px, 100%); }
  .hero { width: min(100% - 20px, var(--max)); }
  .section, footer { width: min(100% - 28px, var(--max)); }
  .signal { letter-spacing: .09em; }
  .tagline { font-size: clamp(1.34rem, 8vw, 2.2rem); }
  .hero-actions { width: 100%; }
  .button { width: 100%; }
  .project-copy { padding: 28px 22px; }

  /* Keep the contact lockup entirely inside narrow phone screens. */
  .contact { min-width: 0; overflow: hidden; }
  .contact h2 {
    width: min(420px, 100%);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: min(9cqi, 2.4rem);
  }

  /* One centered social action per row on phones. */
  .social-grid {
    width: min(100%, 420px);
    grid-template-columns: 1fr;
    margin-left: auto;
    margin-right: auto;
  }
  .social-grid a {
    justify-content: center;
    gap: 10px;
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
  }

  .email-link {
    max-width: 100%;
    font-size: clamp(.92rem, 4.3vw, 1.25rem);
    overflow-wrap: anywhere;
  }
}

.monster-sighting {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  transform-origin: top left;
}
.monster-sighting img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  max-width: none;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  transform: translateY(105%);
  animation: monsterPeek 6s steps(6, end) both;
}
@keyframes monsterPeek {
  0%, 100% { transform: translateY(105%); }
  18%, 76% { transform: translateY(35%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .crt-boot { display: none; }
}
