:root {
  --bg: #fafafa;
  --ink: #0a0a0a;
  --pink: #ff4d8d;
  --pink-soft: #ffe0ec;
  --pink-deep: #d63b76;
  --line: rgba(10, 10, 10, 0.12);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(10, 10, 10, 0.08);
  --font-pixel: "Press Start 2P", system-ui, cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: clamp(0.48rem, 1.45vw, 0.62rem);
  line-height: 1.9;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  text-rendering: optimizeSpeed;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.045;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  font-size: clamp(0.58rem, 1.65vw, 0.72rem);
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.wordmark-main {
  color: var(--ink);
}

.wordmark-sub {
  color: var(--pink-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  font-family: inherit;
  font-size: clamp(0.42rem, 1.1vw, 0.52rem);
  line-height: 1.4;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.btn:active {
  transform: translateY(1px);
}

.btn-x {
  background: var(--ink);
  color: #fff;
  box-shadow: 4px 4px 0 var(--pink);
}

.btn-x:hover {
  box-shadow: 6px 6px 0 var(--pink);
  transform: translate(-1px, -1px);
}

.btn-x-icon {
  display: flex;
}

.btn-primary {
  background: var(--pink);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary:hover {
  background: var(--pink-deep);
  color: #fff;
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-1px, -1px);
}

main {
  overflow-x: hidden;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.25rem) 1.25rem clamp(1.25rem, 3vw, 2rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr minmax(0, 0.95fr);
    gap: clamp(1rem, 2.5vw, 1.75rem);
    align-items: center;
  }
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: clamp(0.42rem, 1.1vw, 0.5rem);
  letter-spacing: 0.06em;
  color: var(--pink-deep);
}

.hero-title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.05rem, 3.8vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  color: var(--pink-deep);
  -webkit-text-stroke: 1px var(--ink);
  paint-order: stroke fill;
}

.hero-lead {
  margin: 0 0 1rem;
  max-width: 38ch;
  font-size: clamp(0.48rem, 1.25vw, 0.58rem);
  line-height: 1.95;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
}

.hero-tag {
  margin: 0 0 1.5rem;
  font-size: clamp(0.42rem, 1.05vw, 0.52rem);
  line-height: 1.95;
  max-width: 44ch;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pixel-art {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

.hero-pixelwall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 5px;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 5 / 3;
  border-radius: var(--radius-md);
  border: 3px solid var(--ink);
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--pink);
}

.hero-pixelwall--empty {
  aspect-ratio: 5 / 3;
  min-height: 100px;
  max-height: min(38vh, 220px);
  background: repeating-linear-gradient(
    -45deg,
    var(--pink-soft),
    var(--pink-soft) 12px,
    #fff 12px,
    #fff 24px
  );
  border-style: dashed;
}

@media (max-width: 719px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  .header-inner {
    padding: 0.65rem 0.85rem;
    gap: 0.65rem;
  }

  .btn {
    min-height: 44px;
    padding-inline: 1rem;
    touch-action: manipulation;
  }

  .hero {
    padding: 1rem 1rem 1.25rem;
  }

  .hero-lead,
  .hero-tag {
    max-width: 100%;
  }

  .hero-pixelwall {
    gap: 2px;
    padding: 4px;
    max-width: 100%;
    margin-inline: 0;
  }

  .hero-pixelwall--empty {
    max-height: min(32vh, 160px);
  }

  .section-head {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .crew-layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .crew-wl-input {
    min-height: 44px;
    padding: 0.55rem 0.65rem;
    font-size: max(11px, 2.8vw);
  }

  .pixel-strip-cell {
    width: 40px;
    height: 40px;
  }

  .crew-section {
    padding: 1.75rem 0 3rem;
  }

  .pixel-lightbox-close {
    min-width: 44px;
    min-height: 44px;
  }
}

.hero-wall-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--pink) 40%, var(--ink));
  background: #111;
}

.hero-wall-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pixel-strip {
  overflow: hidden;
  border-block: 3px solid var(--ink);
  background: var(--pink-soft);
  padding: 6px 0;
}

.pixel-strip-inner {
  display: flex;
  width: max-content;
  gap: 4px;
  animation: pixel-strip-scroll 40s linear infinite;
}

.pixel-strip-cell {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink);
  overflow: hidden;
  background: #fff;
}

.pixel-strip-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes pixel-strip-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.333%);
  }
}

.section-head {
  max-width: 1120px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(0.72rem, 2vw, 0.95rem);
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.section-desc {
  margin: 0;
  font-size: clamp(0.42rem, 1.1vw, 0.52rem);
  line-height: 1.85;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  max-width: 48ch;
}

.crew-section {
  padding: 2.5rem 0 4.5rem;
  border-top: 3px solid var(--ink);
  background: linear-gradient(180deg, #fff 0%, var(--pink-soft) 50%, #fff 100%);
}

.crew-deck {
  display: flex;
  justify-content: center;
  padding: 0 0 0.5rem;
  margin: 0;
}

.crew-layout {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr minmax(200px, 260px);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
}

.crew-layout-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

@media (max-width: 719px) {
  .crew-layout {
    grid-template-columns: 1fr;
  }

  .crew-wl {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }
}

.crew-wl {
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 1rem 1rem 1.1rem;
  background: #fff;
  box-shadow: 5px 5px 0 var(--pink);
}

.crew-wl-title {
  margin: 0 0 0.4rem;
  font-size: clamp(0.5rem, 1.35vw, 0.58rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.crew-wl-tags {
  margin: 0 0 0.85rem;
  font-size: clamp(0.38rem, 1.05vw, 0.48rem);
  line-height: 1.6;
  color: var(--pink-deep);
}

.crew-wl-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: clamp(0.35rem, 1vw, 0.45rem);
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}

.crew-wl-input {
  width: 100%;
  margin-bottom: 0.65rem;
  padding: 0.5rem 0.55rem;
  font-family: inherit;
  font-size: clamp(0.38rem, 1.05vw, 0.48rem);
  line-height: 1.4;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
}

.crew-wl-input::placeholder {
  color: color-mix(in srgb, var(--ink) 35%, transparent);
}

.crew-wl-input:focus {
  outline: 2px solid var(--pink);
  outline-offset: 1px;
}

.btn-wl {
  width: 100%;
  margin-bottom: 0.75rem;
}

.crew-wl-results {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.crew-wl-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: clamp(0.38rem, 1.05vw, 0.48rem);
  line-height: 1.45;
}

.crew-wl-status {
  flex: 0 0 auto;
  min-width: 2.25em;
  padding: 0.2em 0.45em;
  font-size: clamp(0.35rem, 1vw, 0.45rem);
  line-height: 1.2;
  text-align: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
}

.crew-wl-status--in {
  background: var(--pink-soft);
  color: var(--ink);
}

.crew-wl-status--out {
  background: color-mix(in srgb, var(--ink) 8%, var(--bg));
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}

.crew-wl-row-label {
  flex: 1 1 auto;
  letter-spacing: 0.02em;
}

.crew-wl-msg {
  margin: 0;
  font-size: clamp(0.35rem, 1vw, 0.45rem);
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
}

.crew-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(10px, 2.5vw, 16px);
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.crew-quad-cell {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 8px;
  min-height: 0;
  aspect-ratio: 1;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.crew-quad-cell:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--pink-deep);
}

.crew-quad-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.crew-empty {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.crew-empty-text {
  margin: 0;
  font-size: clamp(0.45rem, 1.15vw, 0.55rem);
  line-height: 1.85;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}

.crew-empty code {
  font-family: inherit;
  font-size: 0.95em;
}

.pixel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pixel-lightbox[hidden] {
  display: none;
}

.pixel-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 3px solid #fff;
  background: var(--pink);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}

.pixel-lightbox-close:hover {
  background: var(--pink-deep);
  color: #fff;
}

.pixel-lightbox-frame {
  max-width: min(90vw, 520px);
  max-height: min(85vh, 520px);
  border-radius: var(--radius-lg);
  border: 4px solid #fff;
  box-shadow: 0 0 0 4px var(--ink), 16px 16px 0 var(--pink);
  overflow: hidden;
  background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}

.pixel-lightbox-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .crew-quad-cell {
    transition: none;
  }

  .crew-quad-cell:hover {
    transform: none;
  }

  .pixel-strip-inner {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

.site-footer {
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  margin: 0;
  font-size: clamp(0.42rem, 1.1vw, 0.52rem);
  line-height: 1.7;
}

.footer-brand {
  font-size: clamp(0.48rem, 1.2vw, 0.58rem);
  letter-spacing: 0.04em;
  color: var(--pink);
}

.footer-sep {
  opacity: 0.5;
  margin: 0 0.35rem;
}

.footer-os {
  display: flex;
  align-items: center;
  opacity: 0.85;
  pointer-events: none;
}

.footer-os-img {
  display: block;
  border-radius: 50%;
}
