@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Pixelify+Sans:wght@400;500;600;700&display=swap");

:root {
  --white: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.82);
  --text-dim: rgba(255, 255, 255, 0.64);

  --nav-bg: rgba(8, 19, 38, 0.62);
  --nav-border: rgba(255, 255, 255, 0.10);

  --glass: rgba(10, 22, 42, 0.48);
  --glass-strong: rgba(10, 22, 42, 0.72);

  --blue: #5d97ff;
  --blue-2: #76b2ff;

  --green: #8fd65a;

  --shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 14px 30px rgba(0, 0, 0, 0.22);
  --shadow-sm: 0 10px 18px rgba(0, 0, 0, 0.16);

  --font-main: "Inter", sans-serif;
  --font-pixel: "Pixelify Sans", sans-serif;
}

/* RESET */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

body {
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--white);
  background-color: #6ea7ff;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
}

/* BACKGROUND */

.page-bg {
  min-height: 100vh;
  position: relative;
  background-image: url("./pixel-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.page-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(8, 21, 40, 0.08) 0%,
      rgba(8, 21, 40, 0.04) 38%,
      rgba(6, 18, 28, 0.12) 72%,
      rgba(5, 12, 18, 0.26) 100%
    );
}

.page-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 50%, transparent 50%);
  background-size: 100% 4px;
  opacity: 0.10;
  mix-blend-mode: soft-light;
}

/* LAYERS */

.navbar,
.hero,
.works-section,
.contact {
  position: relative;
  z-index: 2;
}

/* NAVBAR */

.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1100px, calc(100% - 2rem));
  animation: nav-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--nav-border);
  border-radius: 24px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.brand span {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding-left: 0.08em;
  color: #d8e9ff;
  text-shadow: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-main);
  font-size: 0.98rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
  transition: 0.18s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #5d97ff 0%, #76b2ff 100%);
  color: #ffffff;
  font-family: var(--font-pixel);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 24px rgba(73, 126, 255, 0.26);
  transition: 0.18s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(73, 126, 255, 0.30);
}

/* HERO */

.hero {
  min-height: 100vh;
  padding: 9.5rem 1rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1200px;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: min(980px, 100%);
  text-align: center;
}

/* TAG */

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.86rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(8, 18, 34, 0.42);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-pixel);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
}

/* TITLE */

.title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.4rem;
}

.title-row h1 {
  font-family: var(--font-main);
  font-size: clamp(4.5rem, 12vw, 9.5rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0.08em;
  padding-left: 0.08em;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  animation: chino-enter 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* HERO TEXT */

.hero p {
  max-width: 760px;
  margin: 1.7rem auto 0;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: clamp(1.08rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
}

.hero p strong {
  font-weight: 900;
  color: #6ca1fe;
}

.hero-ui-enter {
  animation: hero-ui-enter 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tag.hero-ui-enter {
  animation-delay: 0.05s;
}

.hero-slogan.hero-ui-enter {
  animation-delay: 0.34s;
}

.hero-buttons.hero-ui-enter {
  animation-delay: 0.48s;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* BUTTONS */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 0.98rem;
  font-weight: 900;
  transition: 0.18s ease;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary,
.contact .btn-primary {
  font-family: var(--font-pixel);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, #5d97ff 0%, #76b2ff 100%);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(73, 126, 255, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(73, 126, 255, 0.28);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 18, 34, 0.46);
  backdrop-filter: blur(8px);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: rgba(8, 18, 34, 0.56);
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.6rem;
  font-weight: 700;
  animation: bounce 1.8s ease-in-out infinite;
}

/* FLOATING VIDEOS */

.floating-card {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  width: 23%;
  max-width: 360px;
  min-width: 180px;
  aspect-ratio: 16 / 9;
  opacity: 0;
  transform-style: preserve-3d;
  will-change: opacity, transform, filter;
  animation: float-card-enter 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.floating-card::before {
  display: none;
}

.floating-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  box-shadow: none;
  transform-style: preserve-3d;
  will-change: transform, filter;
  animation: smooth-float-3d 10.5s ease-in-out infinite;
}

.float-1 {
  left: 2%;
  top: 18%;
  animation-delay: 0.16s;
  --r: -8deg;
  --x1: 0px;
  --y1: 0px;
  --z1: 0px;
  --rx1: 2deg;
  --ry1: -6deg;
  --x2: 14px;
  --y2: -14px;
  --z2: 22px;
  --rx2: -3deg;
  --ry2: 7deg;
  --x3: -8px;
  --y3: 8px;
  --z3: -6px;
  --rx3: 3deg;
  --ry3: -3deg;
}

.float-1 .floating-video {
  animation-delay: -1.5s;
}

.float-2 {
  right: 3%;
  top: 17%;
  animation-delay: 0.28s;
  --r: 8deg;
  --x1: 0px;
  --y1: 0px;
  --z1: 0px;
  --rx1: -2deg;
  --ry1: 6deg;
  --x2: -14px;
  --y2: -13px;
  --z2: 24px;
  --rx2: 3deg;
  --ry2: -7deg;
  --x3: 8px;
  --y3: 8px;
  --z3: -6px;
  --rx3: -3deg;
  --ry3: 3deg;
}

.float-2 .floating-video {
  animation-delay: -3.2s;
}

.float-3 {
  left: 4%;
  bottom: 12%;
  animation-delay: 0.4s;
  --r: 7deg;
  --x1: 0px;
  --y1: 0px;
  --z1: 0px;
  --rx1: 3deg;
  --ry1: 5deg;
  --x2: 13px;
  --y2: 14px;
  --z2: 22px;
  --rx2: -4deg;
  --ry2: -6deg;
  --x3: -9px;
  --y3: -8px;
  --z3: -6px;
  --rx3: 3deg;
  --ry3: 5deg;
}

.float-3 .floating-video {
  animation-delay: -4.8s;
}

.float-4 {
  right: 4%;
  bottom: 11%;
  animation-delay: 0.52s;
  --r: -7deg;
  --x1: 0px;
  --y1: 0px;
  --z1: 0px;
  --rx1: -3deg;
  --ry1: -5deg;
  --x2: -13px;
  --y2: 14px;
  --z2: 22px;
  --rx2: 4deg;
  --ry2: 6deg;
  --x3: 9px;
  --y3: -8px;
  --z3: -6px;
  --rx3: -3deg;
  --ry3: -5deg;
}

.float-4 .floating-video {
  animation-delay: -6.1s;
}

/* WORK SECTION */

.works-section {
  padding: 6rem 1rem 7rem;
  scroll-margin-top: 100px;
}

.works-intro {
  text-align: center;
  margin: 0 auto 2.5rem;
  padding-top: 1.2rem;
}

.works-intro h3 {
  font-family: var(--font-main);
  font-size: clamp(2.1rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.works-intro p {
  margin-top: 0.9rem;
  font-family: var(--font-main);
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
}

.creators {
  max-width: 1240px;
  margin: 0 auto 4rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.creator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 190px;
  padding: 0.78rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.creator-avatar {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(108, 161, 254, 0.12);
}

.creator b {
  display: block;
  font-family: var(--font-main);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.creator small {
  display: block;
  margin-top: 0.18rem;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

/* WORK TITLE */

.works-section h2 {
  margin-bottom: 3rem;
  text-align: center;
  font-family: var(--font-main);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.works-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--glass-strong);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.work-card:focus-visible {
  outline: 3px solid rgba(108, 161, 254, 0.65);
  outline-offset: 5px;
}

.work-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
  background: rgba(8, 18, 34, 0.45);
}

.work-card:hover video {
  transform: scale(1.035);
}

.work-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1rem 1.1rem;
  background: linear-gradient(to top, rgba(7, 16, 30, 0.88), rgba(7, 16, 30, 0));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.work-card:hover figcaption {
  opacity: 1;
}

.work-card b {
  display: block;
  font-family: var(--font-pixel);
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.work-card small {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* CONTACT */

.contact {
  padding: 6rem 1rem 7rem;
  text-align: center;
  scroll-margin-top: 100px;
}

.contact h2 {
  color: #ffffff;
  font-family: var(--font-main);
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  text-shadow: none;
}

.contact p {
  max-width: 700px;
  margin: 1.3rem auto 2rem;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.65;
}

.contact-actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.discord-copy {
  cursor: pointer;
  gap: 0.55rem;
  font-family: var(--font-main) !important;
  font-size: 0.98rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.copy-icon {
  width: 19px;
  height: 19px;
  flex: none;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
}

.discord-copy.copied {
  background: rgba(143, 214, 90, 0.38);
  border-color: rgba(143, 214, 90, 0.45);
}

.contact small {
  display: block;
  margin-top: 3.6rem;
  color: var(--text-soft);
  font-family: var(--font-pixel);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* VIDEO MODAL */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(19, 32, 54, 0.46), rgba(2, 6, 13, 0.94) 68%),
    rgba(2, 6, 13, 0.92);
  backdrop-filter: blur(16px);
}

.video-modal-shell {
  position: relative;
  z-index: 2;
  width: min(1060px, 100%);
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-modal.is-open .video-modal-shell {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.video-modal-close {
  display: block;
  margin: 0 0 1.2rem auto;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s ease;
}

.video-modal-close span {
  color: rgba(255, 255, 255, 0.52);
}

.video-modal-close:hover {
  color: #ffffff;
}

.video-modal-card {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 10, 18, 0.86);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(108, 161, 254, 0.08);
}

.video-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  background: rgba(8, 18, 34, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-modal-top h3 {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
}

.video-modal-top p {
  margin-top: 0.2rem;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.58);
}

.video-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #02060d;
}

.video-modal-frame iframe,
.video-modal-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #02060d;
}

/* SCROLL REVEAL ANIMATIONS */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(8px);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform, filter;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-title {
  transform: translateY(42px) scale(0.97);
}

.reveal-title.in-view {
  transform: translateY(0) scale(1);
}

.reveal-card {
  transform: translateY(38px) scale(0.96);
}

.reveal-card.in-view {
  transform: translateY(0) scale(1);
}

.reveal-text {
  transform: translateY(24px);
}

.creators .creator:nth-child(1) {
  --reveal-delay: 0.04s;
}

.creators .creator:nth-child(2) {
  --reveal-delay: 0.10s;
}

.creators .creator:nth-child(3) {
  --reveal-delay: 0.16s;
}

.creators .creator:nth-child(4) {
  --reveal-delay: 0.22s;
}

.creators .creator:nth-child(5) {
  --reveal-delay: 0.28s;
}

.creators .creator:nth-child(6) {
  --reveal-delay: 0.34s;
}

.creators .creator:nth-child(7) {
  --reveal-delay: 0.40s;
}

.works-grid .work-card:nth-child(1) {
  --reveal-delay: 0.06s;
}

.works-grid .work-card:nth-child(2) {
  --reveal-delay: 0.14s;
}

.works-grid .work-card:nth-child(3) {
  --reveal-delay: 0.10s;
}

.works-grid .work-card:nth-child(4) {
  --reveal-delay: 0.18s;
}

/* ANIMATIONS */

@keyframes nav-enter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-22px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes chino-enter {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.92);
    letter-spacing: 0.16em;
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 0.08em;
    filter: blur(0);
  }
}

@keyframes hero-ui-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes float-card-enter {
  from {
    opacity: 0;
    transform: translateY(38px) scale(0.88);
    filter: blur(8px) saturate(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) saturate(1);
  }
}

@keyframes smooth-float-3d {
  0% {
    transform:
      perspective(1000px)
      translate3d(var(--x1), var(--y1), var(--z1))
      rotateZ(var(--r))
      rotateX(var(--rx1))
      rotateY(var(--ry1))
      scale(1);
    filter: saturate(1.04) contrast(1.02);
  }

  32% {
    transform:
      perspective(1000px)
      translate3d(var(--x2), var(--y2), var(--z2))
      rotateZ(calc(var(--r) + 1.5deg))
      rotateX(var(--rx2))
      rotateY(var(--ry2))
      scale(1.018);
    filter: saturate(1.06) contrast(1.03);
  }

  66% {
    transform:
      perspective(1000px)
      translate3d(var(--x3), var(--y3), var(--z3))
      rotateZ(calc(var(--r) - 1deg))
      rotateX(var(--rx3))
      rotateY(var(--ry3))
      scale(0.998);
    filter: saturate(1.04) contrast(1.02);
  }

  100% {
    transform:
      perspective(1000px)
      translate3d(var(--x1), var(--y1), var(--z1))
      rotateZ(var(--r))
      rotateX(var(--rx1))
      rotateY(var(--ry1))
      scale(1);
    filter: saturate(1.04) contrast(1.02);
  }
}

@keyframes bounce {
  0%, 100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

/* RESPONSIVE - MOBILE LIKE REFERENCE SCREEN */

@media (max-width: 980px) {
  .navbar {
    width: min(760px, calc(100% - 2rem));
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding: 8.4rem 1rem 4.4rem;
  }

  .hero-content {
    max-width: 620px;
  }

  .title-row h1 {
    font-size: clamp(4.7rem, 16vw, 7.5rem);
  }

  .hero p {
    max-width: 560px;
    font-size: clamp(1rem, 2.7vw, 1.22rem);
  }

  .floating-card {
    width: clamp(150px, 31vw, 230px);
    min-width: 0;
    max-width: none;
    opacity: 0;
    filter: none;
  }

  .floating-video {
    animation-duration: 10.5s;
  }

  .float-1 {
    left: -1.5%;
    top: 20%;
  }

  .float-2 {
    right: -1.5%;
    top: 20%;
  }

  .float-3 {
    left: -2%;
    bottom: 14%;
  }

  .float-4 {
    right: -2%;
    bottom: 13%;
  }

  .works-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .page-bg {
    background-attachment: scroll;
    background-position: center top;
    background-size: cover;
  }

  /* Softens the pixel background only on mobile, without blurring content/cards */
  .page-bg::before {
    backdrop-filter: blur(1.15px);
    -webkit-backdrop-filter: blur(1.15px);
    background:
      linear-gradient(
        to bottom,
        rgba(5, 15, 32, 0.24) 0%,
        rgba(5, 15, 32, 0.10) 42%,
        rgba(5, 13, 24, 0.26) 100%
      );
  }

  .page-bg::after {
    opacity: 0.06;
  }

  .navbar {
    top: 22px;
    width: calc(100% - 2rem);
  }

  .nav-inner {
    min-height: 62px;
    padding: 0.58rem 0.7rem;
    border-radius: 999px;
    background: rgba(8, 19, 38, 0.72);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.20);
  }

  .brand {
    gap: 0.68rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand span {
    font-size: 0.95rem;
    letter-spacing: 0.055em;
    padding-left: 0.055em;
    color: #d9eaff;
  }

  .nav-cta {
    min-width: auto;
    padding: 0.74rem 1rem;
    border-radius: 999px;
    font-size: 0.92rem;
  }

  .hero {
    min-height: 100svh;
    padding: 7.4rem 1rem 4.4rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .hero-content {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    z-index: 12;
  }

  .tag {
    padding: 0.72rem 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1;
    letter-spacing: 0.035em;
    background: rgba(8, 18, 34, 0.56);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  }

  .title-row {
    width: min(100%, 360px);
    margin: 1.35rem auto 0;
  }

  .title-row h1 {
    font-size: clamp(3.8rem, 17.2vw, 5.2rem);
    line-height: 0.9;
    letter-spacing: 0.052em;
    padding-left: 0.052em;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  }

  .hero p {
    max-width: 335px;
    margin-top: 1.25rem;
    font-size: 1rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.94);
  }

  .hero-buttons {
    margin-top: 1.9rem;
    gap: 0.8rem;
  }

  .btn-primary,
  .btn-secondary {
    min-width: 132px;
    padding: 0.88rem 1.1rem;
    border-radius: 999px;
    font-size: 0.92rem;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary,
  .contact .btn-primary {
    font-size: 0.96rem;
  }

  /* Cards more inside the phone screen */
  .floating-card {
    display: block !important;
    width: clamp(128px, 36vw, 158px);
    min-width: 0;
    max-width: none;
    opacity: 0;
    z-index: 4;
    filter: none !important;
    animation-name: float-card-enter;
    animation-duration: 0.95s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: both;
  }

  .floating-video {
    border-radius: 18px;
    animation-name: smooth-float-3d !important;
    animation-duration: 10.5s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.20);
  }

  .float-1 {
    left: 2.2%;
    top: 15.7%;
  }

  .float-2 {
    right: 2.2%;
    top: 18.2%;
  }

  .float-3 {
    left: 2%;
    bottom: 17.3%;
  }

  .float-4 {
    right: 2%;
    bottom: 15.8%;
  }

  .scroll-down {
    bottom: 1.7rem;
    font-size: 1.55rem;
  }

  .works-section {
    padding: 4.6rem 1rem 5.6rem;
    scroll-margin-top: 86px;
  }

  .works-intro {
    margin-bottom: 1.9rem;
    padding-top: 0.5rem;
  }

  .works-intro h3 {
    font-size: clamp(2rem, 10.5vw, 3rem);
  }

  .works-intro p {
    max-width: 330px;
    margin: 0.75rem auto 0;
    font-size: 0.94rem;
  }

  .creators {
    width: min(100%, 390px);
    margin: 0 auto 3.2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.72rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .creator {
    width: 100%;
    min-width: 0;
    padding: 0.8rem 0.9rem;
    border-radius: 17px;
  }

  .creator-avatar {
    width: 36px;
    height: 36px;
  }

  .creator b {
    font-size: 0.94rem;
  }

  .creator small {
    font-size: 0.78rem;
  }

  .works-section h2 {
    margin-bottom: 1.45rem;
    font-size: clamp(3rem, 17vw, 4.9rem);
  }

  .works-grid {
    width: min(100%, 430px);
    gap: 1rem;
  }

  .work-card {
    border-radius: 20px;
  }

  .work-card:hover video {
    transform: none;
  }

  .work-card video {
    aspect-ratio: 16 / 10;
  }

  .work-card figcaption {
    position: static;
    padding: 0.9rem 0.92rem 1rem;
    background: rgba(7, 16, 30, 0.68);
    opacity: 1;
  }

  .work-card b {
    font-size: 0.98rem;
    line-height: 1.22;
  }

  .work-card small {
    margin-top: 0.22rem;
    font-size: 0.84rem;
  }

  .contact {
    padding: 4.6rem 1rem 5rem;
    scroll-margin-top: 78px;
  }

  .contact h2 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
    line-height: 0.98;
  }

  .contact p {
    max-width: 340px;
    margin: 1rem auto 1.55rem;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .contact-actions {
    width: min(100%, 330px);
    margin: 1.5rem auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .contact-actions a,
  .contact-actions button {
    width: 100%;
    justify-content: center;
  }

  .discord-copy {
    font-size: 0.94rem !important;
  }

  .contact small {
    margin-top: 2.7rem;
    font-size: 0.84rem;
  }

  .video-modal {
    padding: 0.75rem;
  }

  .video-modal-shell {
    width: 100%;
  }

  .video-modal-close {
    margin-bottom: 0.7rem;
    font-size: 0.84rem;
  }

  .video-modal-card {
    border-radius: 16px;
  }

  .video-modal-top {
    padding: 0.78rem 0.82rem;
  }

  .video-modal-top h3 {
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .video-modal-top p {
    font-size: 0.72rem;
  }

  .video-modal-frame {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 430px) {
  .navbar {
    width: calc(100% - 1.35rem);
  }

  .nav-inner {
    min-height: 60px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand span {
    font-size: 0.86rem;
  }

  .nav-cta {
    padding: 0.7rem 0.86rem;
    font-size: 0.86rem;
  }

  .hero {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .title-row {
    width: min(100%, 342px);
  }

  .title-row h1 {
    font-size: clamp(3.6rem, 17.3vw, 4.8rem);
  }

  .hero p {
    max-width: 315px;
    font-size: 0.94rem;
  }

  .floating-card {
    width: clamp(120px, 34vw, 148px);
  }

  .float-1 {
    left: 2.8%;
    top: 16.2%;
  }

  .float-2 {
    right: 2.8%;
    top: 18.5%;
  }

  .float-3 {
    left: 2.6%;
    bottom: 17.8%;
  }

  .float-4 {
    right: 2.6%;
    bottom: 16.2%;
  }
}

@media (max-width: 370px) {
  .brand span {
    display: none;
  }

  .nav-cta {
    padding: 0.65rem 0.78rem;
    font-size: 0.8rem;
  }

  .title-row h1 {
    font-size: clamp(3.25rem, 17vw, 4.35rem);
  }

  .hero-buttons {
    gap: 0.58rem;
  }

  .btn-primary,
  .btn-secondary {
    min-width: 116px;
    padding: 0.78rem 0.78rem;
  }

  .floating-card {
    width: clamp(112px, 33vw, 136px);
  }
}

