@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Mono:wght@400;700&display=swap");

:root {
  --ink: #111111;
  --paper: #f5f1e8;
  --red: #ff3b30;
  --yellow: #ffe600;
  --blue: #225cff;
  --mint: #8bffb0;
  --pink: #ff7ad9;
  --cyan: #5ce1e6;
  --border: 4px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 3vw, 3rem);
  border-bottom: var(--border);
}

.site-header nav {
  display: flex;
  gap: clamp(1rem, 4vw, 3rem);
}

.brand,
.nav-link {
  font-weight: 700;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.brand-mark {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  color: white;
  background: var(--ink);
}

.nav-link {
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35rem;
}

.nav-link:hover,
.nav-link:focus-visible {
  text-decoration-line: underline;
}

.hero {
  position: relative;
  max-width: 1400px;
  min-height: 650px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 6rem) clamp(1rem, 3vw, 3rem) 3rem;
  overflow: hidden;
}

.hero-kicker,
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.project-card h3 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 1100px;
  margin-top: clamp(3rem, 9vw, 8rem);
  font-size: clamp(4rem, 10.5vw, 9.5rem);
}

.hero h1 span {
  display: inline-block;
  color: var(--red);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 6px 6px 0 var(--ink);
}

.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3.5rem;
}

.hero-bottom p {
  max-width: 48ch;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 3.75rem;
  padding: 0.85rem 1.2rem;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 6px 6px 0 var(--ink);
  font: 700 0.95rem/1 "Space Mono", monospace;
  text-decoration: none;
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 100ms ease;
}

.button-yellow {
  background: var(--yellow);
}

.button-white {
  background: white;
}

.pressable:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.pressable:active,
.pressable.is-pressed {
  transform: translate(5px, 5px);
  box-shadow: 1px 1px 0 var(--ink);
}

.pressable:focus-visible {
  outline: 4px solid white;
  outline-offset: 4px;
}

.orbit-sticker {
  position: absolute;
  top: 30%;
  right: clamp(1rem, 4vw, 4rem);
  display: grid;
  width: 8rem;
  aspect-ratio: 1;
  place-items: center;
  padding: 1rem;
  transform: rotate(9deg);
  background: var(--mint);
  border: var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}

.projects {
  padding: 5rem clamp(1rem, 3vw, 3rem);
  background: var(--blue);
  border-block: var(--border);
}

.section-heading,
.project-card {
  max-width: 1304px;
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 2.5rem;
  color: white;
}

.section-heading p {
  margin: 0 0 1rem;
  font-weight: 700;
}

.section-heading h2 {
  font-size: clamp(3rem, 7vw, 7rem);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 5px 5px 0 var(--ink);
}

.project-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 520px;
  border: var(--border);
  box-shadow: 12px 12px 0 var(--ink);
}

.project-card + .project-card,
.project-card + .receiver-grid {
  margin-top: clamp(3.5rem, 8vw, 7rem);
}

.project-redwatch {
  background: var(--red);
}

.project-copy,
.watch-demo {
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.project-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-card h3 {
  margin-top: auto;
  font-size: clamp(3.7rem, 8vw, 8rem);
}

.project-lede {
  max-width: 58ch;
  margin: 1.5rem 0 2rem;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
}

.watch-demo {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  background: #fff;
  border-left: var(--border);
}

.watch-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.pulse {
  width: 0.9rem;
  height: 0.9rem;
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 50%;
  animation: pulse 1.2s steps(2, end) infinite;
}

#watch-time {
  margin: 1rem 0;
  font: 700 clamp(3.4rem, 7vw, 7rem)/1 "Space Mono", monospace;
  letter-spacing: -0.08em;
}

#watch-status {
  margin: 0;
  padding: 0.5rem 0.75rem;
  color: white;
  background: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
}

.project-jewindows {
  grid-template-columns: 0.95fr 1.05fr;
  background: var(--pink);
}

.project-jewindows .project-copy {
  border-left: var(--border);
}

.button-pink {
  background: var(--pink);
}

.os-demo {
  display: grid;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--yellow);
}

.os-desktop {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  color: white;
  background: #008c8c;
  border: var(--border);
  box-shadow: inset -6px -6px 0 rgb(0 0 0 / 20%);
  font-family: "Space Mono", monospace;
}

.desktop-icon {
  position: relative;
  z-index: 2;
  display: inline-block;
  width: calc(45% - 1rem);
  margin: 0.8rem 0.2rem 0.8rem 0.8rem;
  padding: 0.45rem;
  color: white;
  background: transparent;
  border: 2px solid transparent;
  font: 700 0.75rem/1.25 "Space Mono", monospace;
  text-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
  background: rgb(0 0 120 / 38%);
  border-color: white;
  outline: 0;
}

.desktop-icon:active {
  transform: translate(2px, 2px);
}

.pixel-icon {
  display: grid;
  width: 3.3rem;
  height: 3.3rem;
  margin: 0 auto 0.35rem;
  place-items: center;
  color: var(--ink);
  background: #d7d7d7;
  border: 3px solid white;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 1.65rem;
  text-shadow: none;
}

.os-window {
  position: absolute;
  top: 42%;
  left: 5%;
  width: 90%;
  color: var(--ink);
  background: #c9c9c9;
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 rgb(0 0 0 / 45%);
}

.os-titlebar {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0.5rem;
  color: white;
  background: #000080;
  font-size: 0.75rem;
  font-weight: 700;
}

.os-window-body {
  min-height: 155px;
  padding: 1rem;
  font-size: 0.8rem;
}

.os-window-body p {
  margin: 0.65rem 0 1rem;
}

.os-progress {
  height: 1.25rem;
  padding: 2px;
  background: white;
  border: 2px inset #fff;
}

.os-progress span {
  display: block;
  width: 18%;
  height: 100%;
  background: #000080;
  transition: width 400ms steps(5, end);
}

.os-taskbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.5rem;
  color: var(--ink);
  background: #c9c9c9;
  border-top: 3px solid white;
  font-size: 0.7rem;
}

.start-button {
  padding: 0.15rem 0.4rem;
  border: 2px outset white;
  font-weight: 700;
}

.receiver-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 1304px;
  margin-inline: auto;
}

.receiver-card {
  display: flex;
  min-width: 0;
  min-height: 700px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  flex-direction: column;
  border: var(--border);
  box-shadow: 12px 12px 0 var(--ink);
}

.receiver-webcam {
  background: var(--cyan);
}

.receiver-world {
  background: var(--mint);
}

.receiver-card h3 {
  margin: auto 0 1.25rem;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(3rem, 5.5vw, 6rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.receiver-card > p {
  min-height: 5rem;
  margin: 0 0 1.5rem;
  font-weight: 700;
}

.r1-screen {
  position: relative;
  display: flex;
  height: 220px;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 5px #333;
}

.r1-screen strong {
  position: relative;
  z-index: 2;
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
}

.r1-screen > span {
  position: relative;
  z-index: 2;
  font-size: 0.75rem;
}

.screen-live {
  position: absolute !important;
  top: 1.25rem;
  left: 1.25rem;
  color: var(--red);
  font-weight: 700;
}

.screen-noise {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background:
    repeating-linear-gradient(0deg, transparent 0 6px, rgb(255 255 255 / 22%) 7px),
    linear-gradient(135deg, #1e55b5, #2d1d35 42%, #036f53);
}

.frequency {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  opacity: 0.62;
}

.frequency i {
  width: 5px;
  height: calc(20px + var(--bar, 50px));
  background: var(--yellow);
}

.frequency i:nth-child(2n) { --bar: 100px; }
.frequency i:nth-child(3n) { --bar: 40px; }
.frequency i:nth-child(5n) { --bar: 125px; }

.tune-button {
  width: 100%;
}

.about {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 0.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 10rem) clamp(1rem, 3vw, 3rem);
  align-items: center;
}

.about .eyebrow {
  font-weight: 700;
}

.about h2 {
  margin: 0;
  max-width: 950px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.about div > p:last-child {
  max-width: 62ch;
  margin: 2rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
}

.about-stamp {
  display: grid;
  width: clamp(11rem, 18vw, 16rem);
  aspect-ratio: 1;
  place-items: center;
  transform: rotate(-8deg);
  color: white;
  background: var(--blue);
  border: var(--border);
  border-radius: 50%;
  box-shadow: 10px 10px 0 var(--ink);
  font: 400 clamp(1.7rem, 3vw, 3rem)/0.9 "Archivo Black", sans-serif;
  text-align: center;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1rem, 3vw, 3rem);
  background: var(--yellow);
  border-top: var(--border);
  font-size: 0.85rem;
  font-weight: 700;
}

@keyframes pulse {
  50% { opacity: 0.25; }
}

@media (max-width: 760px) {
  .site-header nav {
    gap: 0.85rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .brand > span:last-child {
    display: none;
  }

  .hero {
    min-height: 590px;
  }

  .hero h1 {
    margin-top: 4.5rem;
    font-size: clamp(3rem, 12.5vw, 5rem);
  }

  .project-card h3 {
    font-size: 3rem;
    overflow-wrap: anywhere;
  }

  .hero-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .orbit-sticker {
    top: auto;
    right: 1.5rem;
    bottom: 1rem;
    width: 6.5rem;
    font-size: 0.8rem;
  }

  .project-card {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .project-copy,
  .watch-demo,
  .os-demo {
    min-width: 0;
  }

  .project-copy {
    min-height: 480px;
  }

  .watch-demo {
    min-height: 330px;
    border-top: var(--border);
    border-left: 0;
  }

  .project-jewindows .project-copy {
    border-top: var(--border);
    border-left: 0;
  }

  .receiver-grid,
  .about {
    grid-template-columns: 1fr;
  }

  .receiver-card {
    min-height: 650px;
  }

  .about-stamp {
    width: 10rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .button { transition: none; }
}
