@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Gabarito:wght@500;600;700;800&display=swap");

:root {
  --bg: #000000;
  --panel: #ffffff;
  --text: #0a0a0a;
  --text-on-dark: #f5f5f5;
  --line: #262626;
  --line-soft: #404040;
  --muted: #737373;
  --muted-on-panel: #525252;
  --nav-active-stroke: #38bdf8;
  --logo-bar: #000000;
}

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

html {
  min-height: 100%;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  color: var(--text-on-dark);
  font-family: Gabarito, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.35) 1px, transparent 0);
  background-size: 14px 14px;
}

@keyframes brandPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.88;
  }
}

@keyframes artBob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(0, -9px, 0) rotate(1deg);
  }
}

.shell {
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.5rem);
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.top,
.main,
.site-footer {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

.top {
  perspective: 1200px;
}

.bar {
  --bar-rx: 0deg;
  --bar-ry: 0deg;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  background: transparent;
  border: none;
  transform: rotateX(var(--bar-rx)) rotateY(var(--bar-ry));
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.45rem 0.85rem;
  color: var(--text-on-dark);
  text-decoration: none;
  border: 2px solid #ffffff;
  border-radius: 10px;
  background: var(--logo-bar);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand-mark {
  flex-shrink: 0;
  display: block;
  line-height: 0;
  background: transparent;
  animation: brandPulse 3.8s ease-in-out infinite;
}

.brand-mark img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: transparent;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  line-height: 1.1;
}

.brand-title {
  font-family: "Archivo Black", Gabarito, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  color: #ffffff;
}

.brand-sub {
  color: #a3a3a3;
  font-size: 0.72rem;
  font-weight: 700;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 1rem;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 800;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--panel);
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.link:hover:not(.is-active) {
  background: #f0f0f0;
  border-color: #737373;
}

.link.is-active {
  background: #e8e8e8;
  border-color: var(--nav-active-stroke);
  box-shadow: 0 0 0 1px var(--nav-active-stroke), 0 0 16px rgba(56, 189, 248, 0.35);
}

.link.is-active:hover {
  background: #e0e0e0;
  border-color: var(--nav-active-stroke);
  box-shadow: 0 0 0 1px var(--nav-active-stroke), 0 0 18px rgba(56, 189, 248, 0.42);
}

.link-discord {
  color: var(--text);
  background: var(--panel);
}

.link.link-discord:hover:not(.is-active) {
  background: #f0f0f0;
}

.link:focus-visible,
.hero-cta:focus-visible,
.site-footer-nav a:focus-visible {
  outline: 2px solid var(--panel);
  outline-offset: 3px;
}

.brand:focus-visible {
  outline: 2px solid var(--text-on-dark);
  outline-offset: 3px;
}

.main {
  flex: 1 1 auto;
  margin-top: 1.25rem;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #000000;
  padding: 2rem 1rem 2.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  min-height: 430px;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: artBob 5.5s ease-in-out infinite;
  background: #000000;
}

.hero-art-img {
  display: block;
  width: min(100%, 470px);
  height: auto;
  object-fit: contain;
  background: #000000;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.85rem;
  font-family: "Archivo Black", Gabarito, sans-serif;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-plain {
  color: var(--text-on-dark);
}

.hero-accent {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  color: var(--text);
  font-size: clamp(0.65rem, 1.8vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.9rem 1.45rem;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 800;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--panel);
  transition: transform 0.15s ease, background 0.15s ease;
}

.hero-cta:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

[data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(0.985);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s cubic-bezier(0.2, 0.85, 0.25, 1), transform 0.9s cubic-bezier(0.2, 0.85, 0.25, 1);
}

[data-parallax] {
  transform-style: preserve-3d;
  will-change: transform;
}

.page-title {
  display: inline-block;
  margin: 1.8rem 0 0;
  padding: 0.35rem 0.75rem;
  color: var(--text);
  font-family: "Archivo Black", Gabarito, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  font-weight: 400;
  text-transform: uppercase;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--panel);
}

.policy-doc {
  max-width: 50rem;
  margin: 1.3rem auto 0;
  padding: 1rem 1.2rem 2rem;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.65;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--panel);
}

.policy-doc h2 {
  margin: 1.85rem 0 0.45rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 1px solid #d4d4d4;
}

.policy-doc p {
  margin: 0.65rem 0;
}

.policy-doc ul {
  margin: 0.45rem 0 0.85rem 1.2rem;
  padding: 0;
}

.policy-doc li {
  margin: 0.35rem 0;
}

.policy-doc strong {
  font-weight: 800;
}

.motion-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.main:has(> .motion-row) {
  margin-top: 1.25rem;
}

.main:has(> .page-title + .motion-row) {
  margin-top: 0.45rem;
}

.main:has(> .motion-row) .page-title {
  margin-top: 0.15rem;
}

.main:has(> .motion-row) .motion-row {
  margin-top: 0.55rem;
}

.main:has(> .motion-row:first-child) .motion-row {
  margin-top: 2rem;
}

.motion-item {
  list-style: none;
}

.motion-card {
  height: 178px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}

.motion-card-inner {
  position: relative;
  height: 100%;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  transition: transform 0.35s cubic-bezier(0.2, 0.85, 0.25, 1);
}

.motion-card-mark {
  position: absolute;
  top: 0.8rem;
  left: 0.9rem;
  padding: 0.2rem 0.45rem;
  font-family: "Archivo Black", Gabarito, sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--panel);
}

.motion-card-label {
  position: relative;
  color: var(--text);
  font-family: "Archivo Black", Gabarito, sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  font-weight: 400;
}

.motion-card-copy {
  position: relative;
  max-width: 15rem;
  color: var(--muted-on-panel);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.motion-row--solo {
  grid-template-columns: 1fr;
  max-width: min(16.5rem, 90vw);
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

.motion-card--solo {
  width: 100%;
  max-width: min(16.5rem, 90vw);
  height: auto;
  aspect-ratio: 1 / 1;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.motion-card--solo .motion-card-inner {
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 0.95rem;
  overflow: hidden;
}

.motion-card-badge-slot {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  width: clamp(2.85rem, 16vw, 4.35rem);
  z-index: 0;
  pointer-events: none;
}

.motion-card-badge-img {
  display: block;
  width: 100%;
  height: auto;
}

.motion-card-solo-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  max-width: 100%;
  max-height: 100%;
}

.motion-card-solo-brand .motion-card-badge-slot {
  position: static;
  top: auto;
  left: auto;
  width: clamp(2.65rem, 26vw, 4.35rem);
  z-index: auto;
}

.motion-card--solo .motion-card-label--solo-2k {
  text-align: center;
  font-size: clamp(1.3rem, 3.6vw, 1.9rem);
  letter-spacing: 0.06em;
  line-height: 1.08;
}

.motion-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.motion-card--link:focus-visible {
  outline: 2px solid var(--panel);
  outline-offset: 3px;
}

.motion-card--solo.motion-card--link {
  transform-style: preserve-3d;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.85, 0.25, 1),
    box-shadow 0.3s cubic-bezier(0.2, 0.85, 0.25, 1);
}

.motion-card--solo.motion-card--link:hover,
.motion-card--solo.motion-card--link:focus-visible {
  transform: translate3d(0, -4px, 0) scale(1.025);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.18),
    0 7px 14px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  display: flex;
  justify-content: flex-end;
  padding: 0.35rem 0 0.25rem;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.25rem 1.75rem;
}

.site-footer-nav a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer-nav a:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: center;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-title {
    justify-content: center;
  }

  .motion-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding: 0.65rem;
  }

  .shell {
    padding: 0.85rem;
  }

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

  .brand {
    justify-content: center;
  }

  .links {
    justify-content: center;
  }

  .link {
    flex: 1 1 auto;
    min-width: 0;
  }

  .hero {
    padding: 1rem 0.65rem 1.5rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .motion-card {
    height: auto;
    min-height: 158px;
  }

  .motion-card--solo {
    min-height: 0;
  }

  .motion-card--solo .motion-card-inner {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand-mark,
  .hero-art,
  .bar {
    animation: none !important;
  }

  .bar {
    transform: none !important;
  }

  .motion-card--solo.motion-card--link,
  .motion-card--solo.motion-card--link:hover,
  .motion-card--solo.motion-card--link:focus-visible {
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
  }
}
