:root {
  --bg: #07050d;
  --bg-soft: #0f0a19;
  --text: #f7f5ff;
  --muted: rgba(247, 245, 255, 0.68);
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(8, 7, 17, 0.42);
  --yellow: #f5ff29;
  --violet: #a855f7;
  --violet-2: #6d28d9;
  --cyan: #4ddcff;
  --max-width: 1480px;
  --header-h: 86px;
  --font-display: "Burbank Big Condensed", "Heading Now", "Anton", Impact, sans-serif;
  --font-ui-condensed: "Heading Now", "Noto Sans", "Rajdhani", "Arial Narrow", sans-serif;
  --font-ui: "Noto Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: #090510;
  background: var(--yellow);
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

.page-shell {
  position: relative;
  background: var(--bg);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  width: min(calc(100% - 34px), var(--max-width));
  height: var(--header-h);
  padding: 0 20px 0 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 13, 31, 0.54), rgba(10, 8, 18, 0.28));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(125%);
  transform: translateX(-50%);
}

.brand {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.1vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.brand::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: 1px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(245, 255, 41, 0.8);
}

.desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  font-family: var(--font-ui-condensed);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desktop-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  transition: color 180ms ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.desktop-nav a:hover {
  color: #fff;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--yellow);
  color: #0d0b12;
  font-family: var(--font-ui-condensed);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245, 255, 41, 0.24);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 5px auto;
  background: #fff;
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 45;
  inset: 0;
  padding: 130px 26px 40px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  background: rgba(6, 4, 12, 0.96);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu a {
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 12vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.mobile-menu-cta {
  margin-top: 18px;
  color: var(--yellow);
}

.hero {
  position: relative;
  min-height: 112svh;
  overflow: hidden;
  isolation: isolate;
  background: #0c0815;
}

.hero-media {
  position: absolute;
  z-index: -4;
  inset: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.04);
  will-change: transform;
}

.portal-glow {
  position: absolute;
  z-index: 1;
  top: 4%;
  left: 48%;
  width: clamp(360px, 48vw, 920px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 60, 255, 0.28) 0%, rgba(106, 70, 255, 0.12) 36%, rgba(79, 198, 255, 0.04) 56%, transparent 72%);
  filter: blur(14px);
  transform: translate(-50%, -18%);
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-vignette {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 3, 9, 0.88) 0%, rgba(5, 3, 10, 0.67) 28%, rgba(5, 3, 10, 0.16) 58%, rgba(5, 3, 10, 0.36) 100%),
    linear-gradient(180deg, rgba(5, 3, 10, 0.54) 0%, transparent 24%, transparent 67%, rgba(5, 3, 10, 0.9) 100%);
}

.hero-grid {
  position: absolute;
  z-index: 3;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 72%, transparent 100%);
  pointer-events: none;
}

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

.hero-content {
  position: relative;
  z-index: 5;
  width: min(calc(100% - 56px), var(--max-width));
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(var(--header-h) + 116px) 0 190px;
  display: flex;
  align-items: center;
}

.hero-copy-block {
  width: min(760px, 57vw);
}

.eyebrow {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-ui-condensed);
  font-size: clamp(0.78rem, 1vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--yellow);
}

.eyebrow b {
  color: rgba(255, 255, 255, 0.35);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 8.6vw, 9.7rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

.title-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-title-line {
  display: block;
  will-change: transform;
}

.accent-line {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 34px rgba(160, 89, 255, 0.12);
}

.hero-copy {
  width: min(590px, 100%);
  margin-top: 26px;
}

.hero-kicker {
  font-family: var(--font-ui-condensed);
  font-size: clamp(1.15rem, 1.8vw, 1.62rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-kicker strong {
  color: var(--yellow);
}

.hero-description {
  max-width: 540px;
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.08vw, 1.05rem);
  line-height: 1.75;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 58px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-ui-condensed);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button-primary {
  min-width: 178px;
  background: var(--yellow);
  color: #09070d;
  box-shadow: 0 14px 40px rgba(245, 255, 41, 0.14);
}

.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(245, 255, 41, 0.24);
}

.button-arrow {
  font-size: 1.15rem;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.button-ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.play-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  font-size: 0.64rem;
}

.portal-status {
  position: absolute;
  right: 0;
  top: 49%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(8, 7, 17, 0.32);
  backdrop-filter: blur(10px);
  font-family: var(--font-ui-condensed);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.portal-status div {
  display: flex;
  flex-direction: column;
}

.status-label {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.portal-status strong {
  margin-top: 2px;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.13em;
}

.hero-bottom {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 34px;
  width: min(calc(100% - 56px), var(--max-width));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  transform: translateX(-50%);
}

.hud {
  display: flex;
  align-items: stretch;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(8, 7, 17, 0.34);
  backdrop-filter: blur(12px);
}

.hud-item {
  min-width: 138px;
  padding: 13px 16px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-ui-condensed);
}

.hud-item + .hud-item {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-item span {
  color: var(--yellow);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.hud-item strong {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-ui-condensed);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-line {
  position: relative;
  width: 44px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.scroll-line i {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(-110%);
}

.after-hero {
  min-height: 74svh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(118, 52, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #090610, #050408);
}

.after-hero-inner {
  width: min(calc(100% - 44px), 920px);
  text-align: center;
}

.after-hero-inner p {
  margin-bottom: 14px;
  color: var(--yellow);
  font-family: var(--font-ui-condensed);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.after-hero-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.anchor-target {
  display: block;
  height: 1px;
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav-cta {
    justify-self: end;
  }

  .hero-copy-block {
    width: min(720px, 72vw);
  }

  .portal-status {
    right: 10px;
    top: 58%;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 66px;
  }

  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    padding: 0 10px 0 16px;
    border-radius: 16px;
    grid-template-columns: 1fr auto;
  }

  .nav-cta,
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    min-height: 108svh;
  }

  .hero-bg {
    inset: -2%;
    width: 104%;
    height: 104%;
    object-position: 53% 50%;
    transform: scale(1.02);
  }

  .portal-glow {
    top: 7%;
    left: 53%;
    width: min(105vw, 620px);
  }

  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(5, 3, 10, 0.46) 0%, rgba(5, 3, 10, 0.08) 24%, rgba(5, 3, 10, 0.2) 48%, rgba(5, 3, 10, 0.94) 78%, rgba(5, 3, 10, 0.99) 100%),
      linear-gradient(90deg, rgba(5, 3, 10, 0.36), transparent 72%);
  }

  .hero-grid {
    background-size: 54px 54px;
    opacity: 0.11;
  }

  .hero-content {
    width: calc(100% - 32px);
    min-height: 100svh;
    padding: 47svh 0 184px;
    align-items: flex-start;
  }

  .hero-copy-block {
    width: 100%;
  }

  .eyebrow {
    margin-bottom: 13px;
    font-size: 0.72rem;
  }

  .hero-title {
    font-size: clamp(4.1rem, 21vw, 6.8rem);
    line-height: 0.84;
  }

  .hero-copy {
    margin-top: 20px;
  }

  .hero-description {
    max-width: 94%;
    line-height: 1.6;
  }

  .hero-actions {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    min-width: 0;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .portal-status {
    top: 106px;
    right: 16px;
    padding: 10px 12px;
  }

  .hero-bottom {
    bottom: 24px;
    width: calc(100% - 32px);
    display: block;
  }

  .hud {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hud::-webkit-scrollbar {
    display: none;
  }

  .hud-item {
    min-width: 124px;
    flex: 1 0 auto;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 460px) {
  .brand {
    font-size: 1.6rem;
  }

  .hero-content {
    padding-top: 49svh;
  }

  .hero-title {
    font-size: clamp(3.75rem, 20.5vw, 5.7rem);
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .portal-status {
    font-size: 0.85rem;
  }

  .hud-item {
    min-width: 116px;
    padding: 12px 13px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-bg,
  .portal-glow,
  .hero-title-line {
    will-change: auto;
  }
}

/* =========================================================
   FULL PORTAL EXPERIENCE
   ========================================================= */

.hero {
  min-height: 100svh;
}

.portal-core,
.portal-tunnel,
.portal-speedlines,
.portal-flash,
.portal-blackout {
  position: absolute;
  pointer-events: none;
}

.portal-core {
  z-index: 2;
  top: 22.5%;
  left: 50%;
  width: clamp(150px, 18vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(1, 0, 16, 0.98) 0 24%, rgba(25, 9, 75, 0.9) 34%, rgba(115, 58, 255, 0.42) 53%, rgba(102, 214, 255, 0.08) 68%, transparent 73%);
  filter: blur(1px);
  box-shadow: 0 0 80px rgba(112, 55, 255, 0.38), inset 0 0 55px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.45);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.portal-tunnel {
  z-index: 3;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
}

.tunnel-ring {
  position: absolute;
  top: 22.5%;
  left: 50%;
  width: min(25vw, 480px);
  aspect-ratio: 1;
  border: 2px solid rgba(132, 83, 255, 0.55);
  border-radius: 50%;
  box-shadow:
    0 0 28px rgba(88, 202, 255, 0.28),
    inset 0 0 34px rgba(172, 93, 255, 0.22);
  transform: translate(-50%, -50%);
}

.ring-b { width: min(38vw, 700px); opacity: 0.72; }
.ring-c { width: min(54vw, 980px); opacity: 0.42; }
.ring-d { width: min(76vw, 1380px); opacity: 0.2; }

.portal-speedlines {
  z-index: 4;
  inset: -20%;
  opacity: 0;
  background: repeating-conic-gradient(
    from 0deg at 50% 31%,
    rgba(198, 170, 255, 0.18) 0deg,
    rgba(80, 215, 255, 0.02) 0.45deg,
    transparent 0.9deg,
    transparent 5.6deg
  );
  mask-image: radial-gradient(circle at 50% 31%, transparent 0 9%, #000 22%, transparent 72%);
  will-change: transform, opacity;
}

.portal-flash {
  z-index: 8;
  inset: 0;
  background: radial-gradient(circle at center, #fff 0%, #c6d8ff 15%, #8656ff 40%, rgba(39, 15, 91, 0.08) 78%);
  opacity: 0;
  will-change: opacity;
}

.portal-blackout {
  z-index: 9;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(70, 29, 142, 0.32), transparent 36%),
    #05020a;
  opacity: 0;
  will-change: opacity;
}

.portal-caption {
  position: absolute;
  z-index: 11;
  left: 50%;
  bottom: 12vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui-condensed);
  text-align: center;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}

.portal-caption span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.portal-caption strong {
  color: var(--cyan);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  letter-spacing: 0.16em;
  text-shadow: 0 0 24px rgba(77, 220, 255, 0.5);
}

.section-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.section-inner {
  position: relative;
  z-index: 4;
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
}

.section-kicker {
  margin-bottom: 18px;
  color: var(--yellow);
  font-family: var(--font-ui-condensed);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-shell h2 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 9rem);
  line-height: 0.84;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.section-shell h2 span {
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, 0.72);
}

.text-link {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-ui-condensed);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.text-link span {
  color: var(--yellow);
  font-size: 1.1rem;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

/* Reality */
.reality-section {
  display: flex;
  align-items: center;
  padding: 150px 0 120px;
  background:
    radial-gradient(circle at 72% 42%, rgba(90, 38, 190, 0.28), transparent 25%),
    radial-gradient(circle at 18% 72%, rgba(0, 169, 255, 0.11), transparent 28%),
    linear-gradient(180deg, #05020a 0%, #0c0518 48%, #07040d 100%);
}

.reality-aura {
  position: absolute;
  z-index: 0;
  top: -30%;
  right: -15%;
  width: 70vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(133, 69, 255, 0.2), transparent 62%);
  filter: blur(34px);
}

.reality-grid,
.creative-grid-bg {
  position: absolute;
  z-index: 1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 85%, transparent 100%);
  opacity: 0.52;
}

.reality-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.72fr;
  gap: clamp(50px, 8vw, 150px);
  align-items: center;
}

.section-intro {
  grid-row: span 2;
}

.reality-copy {
  align-self: end;
}

.reality-copy .lead {
  color: #fff;
  font-family: var(--font-ui-condensed);
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
}

.reality-copy .lead strong {
  color: var(--yellow);
}

.reality-copy > p:not(.lead) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

.override-console {
  position: relative;
  min-height: 260px;
  padding: 22px;
  border: 1px solid rgba(120, 198, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(75, 30, 137, 0.18), rgba(4, 7, 18, 0.88)),
    rgba(6, 7, 17, 0.78);
  box-shadow: inset 0 0 60px rgba(84, 35, 180, 0.08), 0 28px 80px rgba(0, 0, 0, 0.28);
  font-family: var(--font-ui-condensed);
  overflow: hidden;
}

.override-console::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(255,255,255,0.018) 6px);
  pointer-events: none;
}

.console-top,
.console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.console-top b,
.console-foot strong {
  color: var(--cyan);
}

.console-code {
  margin: 48px 0 34px;
  color: rgba(217, 234, 255, 0.8);
  font-family: var(--font-ui-condensed);
  font-size: 0.86rem;
  line-height: 1.9;
  letter-spacing: 0.1em;
}

.console-meter,
.xp-track {
  height: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
}

.console-meter i {
  display: block;
  width: 87%;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--yellow));
  box-shadow: 0 0 20px rgba(77, 220, 255, 0.5);
}

.console-foot {
  margin-top: 14px;
}

/* Modes */
.modes-section {
  min-height: 100svh;
  padding-top: 140px;
  background:
    radial-gradient(circle at 50% -10%, rgba(116, 58, 255, 0.17), transparent 30%),
    #07040d;
}

.modes-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.modes-head h2 {
  font-size: clamp(3.5rem, 6.6vw, 7.6rem);
}

.modes-note {
  max-width: 310px;
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.modes-viewport {
  width: 100%;
  margin-top: 56px;
  overflow: hidden;
}

.modes-track {
  width: max-content;
  padding: 0 max(32px, calc((100vw - var(--max-width)) / 2)) 80px;
  display: flex;
  gap: 18px;
  will-change: transform;
}

.mode-card {
  position: relative;
  width: min(70vw, 880px);
  height: min(66svh, 680px);
  min-height: 520px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  background: #161020;
  box-shadow: 0 40px 80px rgba(0,0,0,0.22);
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.13), transparent 34%, rgba(0,0,0,0.28));
  pointer-events: none;
}

.mode-card::after {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -30%;
  width: 60%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255,255,255,0.035), 0 0 0 86px rgba(255,255,255,0.022);
}

.mode-br { background: linear-gradient(135deg, #2057c9, #221051 72%); }
.mode-reload { background: linear-gradient(135deg, #8c2fe0, #321255 72%); }
.mode-festival { background: linear-gradient(135deg, #f23da2, #4b144f 72%); }
.mode-lego { background: linear-gradient(135deg, #e35e24, #7a241b 72%); }
.mode-racing { background: linear-gradient(135deg, #1aa7d5, #073e66 72%); }
.mode-creative { background: linear-gradient(135deg, #5e38d8, #11172e 72%); }

.mode-number,
.mode-content span {
  position: relative;
  z-index: 2;
  font-family: var(--font-ui-condensed);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.mode-number { color: rgba(255,255,255,0.56); }
.mode-content span { color: var(--yellow); }

.mode-symbol {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 5%;
  color: rgba(255,255,255,0.11);
  font-family: var(--font-display);
  font-size: clamp(12rem, 29vw, 30rem);
  line-height: 0.8;
  transform: translateY(-50%);
}

.mode-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.mode-content h3 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 6.7rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
}

.mode-content p {
  max-width: 420px;
  margin-top: 20px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}

/* Battle Pass */
.battle-pass-section {
  padding: 150px 0;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 72% 45%, rgba(37, 178, 255, 0.24), transparent 25%),
    linear-gradient(125deg, #0b0712 0 50%, #05151e 100%);
}

.speed-lines {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0.22;
  background: repeating-linear-gradient(165deg, transparent 0 34px, rgba(97,214,255,0.1) 35px, transparent 37px 72px);
  mask-image: linear-gradient(90deg, transparent, #000 50%, #000);
}

.pass-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 60px;
  align-items: center;
}

.pass-copy p:not(.section-kicker) {
  max-width: 560px;
  margin: 28px 0 30px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.pass-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(105, 222, 255, 0.17);
  border-radius: 28px;
  background:
    radial-gradient(circle, rgba(53, 208, 255, 0.17), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}

.speed-orbit {
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid rgba(92, 222, 255, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(36, 172, 255, 0.14);
}

.orbit-1 { transform: rotateX(68deg) rotateZ(8deg); }
.orbit-2 { width: 88%; transform: rotateX(72deg) rotateZ(-14deg); opacity: 0.45; }

.sonic-word {
  position: relative;
  z-index: 2;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.86);
  font-family: var(--font-display);
  font-size: clamp(7rem, 14vw, 14rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  transform: rotate(-8deg);
  text-shadow: 22px 22px 0 rgba(49, 144, 255, 0.08);
}

.pass-chip {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  background: rgba(5,10,18,0.64);
  backdrop-filter: blur(10px);
  font-family: var(--font-ui-condensed);
}

.pass-chip span { color: rgba(255,255,255,0.48); font-size: 0.68rem; letter-spacing: 0.14em; }
.pass-chip strong { margin-top: 3px; color: var(--yellow); letter-spacing: 0.1em; }

.pass-progress {
  grid-column: 1 / -1;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.pass-progress-top,
.xp-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-ui-condensed);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pass-progress-top span { color: rgba(255,255,255,0.5); }
.pass-progress-top strong { color: var(--cyan); }

.xp-track { height: 6px; margin: 14px 0 12px; }
.xp-track i { display:block; width:78%; height:100%; background:linear-gradient(90deg,var(--cyan),var(--yellow)); box-shadow:0 0 24px rgba(77,220,255,.35); }
.xp-meta { color: rgba(255,255,255,0.46); }

/* News */
.news-section {
  padding: 150px 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(146, 69, 255, 0.14), transparent 25%),
    #08050e;
}

.news-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.news-heading h2 { font-size: clamp(3.8rem, 6.6vw, 7.5rem); }

.news-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
}

.news-card {
  position: relative;
  min-height: 590px;
  padding: 16px 16px 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  background: rgba(255,255,255,0.025);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.news-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.045);
}

.news-art {
  position: relative;
  height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
}

.art-override { background: radial-gradient(circle, #9a42ff, #28105c 60%, #0a0713); }
.art-uefn { background: linear-gradient(145deg, #301264, #071c31); }
.art-festival { background: linear-gradient(145deg, #f246a5, #3f174c); }

.news-art span {
  position: relative;
  z-index: 2;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.86);
  font-family: var(--font-display);
  font-size: clamp(5rem, 8vw, 8rem);
  letter-spacing: -0.04em;
}

.news-art i {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255,255,255,0.04), 0 0 0 86px rgba(255,255,255,0.02);
}

.news-meta {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-ui-condensed);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.news-meta b { color: var(--yellow); }

.news-card h3 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 3vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.news-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.card-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: var(--yellow);
  font-size: 1.2rem;
}

/* Competitive */
.competitive-section {
  padding: 150px 0;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 75% 25%, rgba(245,255,41,0.08), transparent 20%),
    linear-gradient(130deg, #07080a, #0b0712 65%, #111008);
}

.arena-lines {
  position: absolute;
  inset: -20%;
  opacity: 0.15;
  background:
    repeating-radial-gradient(ellipse at 50% 100%, transparent 0 70px, rgba(245,255,41,0.2) 72px, transparent 74px 110px);
  transform: perspective(500px) rotateX(68deg) translateY(34%);
}

.fncs-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.4fr 0.72fr;
  gap: 48px;
  align-items: center;
}

.fncs-mark {
  min-height: 400px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(245,255,41,0.2);
  background: var(--yellow);
  color: #0b0b08;
  font-family: var(--font-display);
}

.fncs-mark span { font-size: clamp(4.4rem, 8vw, 9rem); line-height: 0.82; writing-mode: vertical-rl; transform: rotate(180deg); }
.fncs-mark strong { font-family:var(--font-ui-condensed); font-size:1rem; letter-spacing:.2em; }

.fncs-copy h2 { font-size: clamp(3.5rem, 6.4vw, 7rem); }
.fncs-copy p:last-child { max-width: 650px; margin-top: 28px; color: var(--muted); line-height: 1.8; }

.fncs-date {
  padding-left: 30px;
  border-left: 1px solid rgba(255,255,255,0.14);
  font-family: var(--font-ui-condensed);
}

.date-label { color: rgba(255,255,255,0.48); font-size:.72rem; font-weight:700; letter-spacing:.15em; }
.fncs-date > div { margin: 18px 0 8px; display:flex; align-items:center; gap:8px; }
.fncs-date strong { font-family:var(--font-display); font-size:clamp(4rem,7vw,7rem); line-height:.85; }
.fncs-date i { color:var(--yellow); font-style:normal; font-size:2rem; }
.fncs-date b { color:var(--yellow); letter-spacing:.18em; }
.fncs-link { grid-column: 2 / 4; justify-self: start; }

/* Creative */
.creative-section {
  padding: 150px 0;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #090512, #05070d);
}

.creative-grid-bg {
  opacity: 0.7;
  background-size: 56px 56px;
  transform: perspective(700px) rotateX(65deg) scale(1.5) translateY(20%);
  transform-origin: bottom;
}

.creative-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
}

.creative-copy h2 { font-size: clamp(3.8rem, 7vw, 8rem); }
.creative-copy > p:not(.section-kicker) { max-width:560px; margin-top:28px; color:var(--muted); line-height:1.8; }

.creative-terminal {
  overflow: hidden;
  border: 1px solid rgba(102, 204, 255, 0.23);
  border-radius: 20px;
  background: rgba(5,9,17,0.82);
  box-shadow: 0 36px 90px rgba(0,0,0,.38), inset 0 0 80px rgba(67,42,180,.08);
  font-family: var(--font-ui-condensed);
}

.terminal-bar,
.terminal-foot {
  min-height: 54px;
  padding: 0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border-bottom:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.56);
  font-size:.7rem;
  font-weight:700;
  letter-spacing:.12em;
}

.terminal-bar div { display:flex; gap:6px; }
.terminal-bar i { width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.24); }

.terminal-canvas {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(rgba(65,178,255,.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(65,178,255,.07) 1px,transparent 1px),
    radial-gradient(circle at center,rgba(95,51,201,.13),transparent 44%);
  background-size: 30px 30px,30px 30px,auto;
}

.wire-island {
  position:absolute;
  left:50%;
  top:50%;
  width:46%;
  aspect-ratio:1.4;
  border:1px solid rgba(91,215,255,.55);
  transform:translate(-50%,-50%) rotate(-12deg) skewX(-12deg);
  box-shadow:0 0 38px rgba(65,196,255,.09);
}

.wire-island i { position:absolute; border:1px solid rgba(122,100,255,.4); }
.wire-island i:nth-child(1){ inset:12%; }
.wire-island i:nth-child(2){ inset:25%; }
.wire-island i:nth-child(3){ left:50%; top:-30%; height:160%; }
.wire-island i:nth-child(4){ top:50%; left:-25%; width:150%; }

.axis,
.node { position:absolute; z-index:2; font-weight:700; letter-spacing:.1em; font-size:.68rem; }
.axis-x { right:18px; bottom:18px; color:#ff5e8c; }
.axis-y { right:38px; bottom:38px; color:var(--yellow); }
.axis-z { right:58px; bottom:58px; color:var(--cyan); }
.node { padding:7px 9px; border:1px solid rgba(255,255,255,.16); background:rgba(4,6,12,.82); color:rgba(255,255,255,.62); }
.node-a{ left:18%; top:22%; }.node-b{ right:16%; top:38%; }.node-c{ left:42%; bottom:17%; color:var(--cyan); }

.terminal-foot { border-top:1px solid rgba(255,255,255,.08); border-bottom:0; }
.terminal-foot strong { color:var(--cyan); }

/* Final CTA */
.final-cta {
  min-height: 110svh;
  display: grid;
  place-items: center;
  background: #050309;
}

.cta-bg {
  position: absolute;
  z-index: -4;
  inset: -7%;
  width: 114%;
  height: 114%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.85) brightness(0.5);
  transform: scale(1.08);
  will-change: transform;
}

.cta-overlay {
  position:absolute;
  z-index:-3;
  inset:0;
  background:
    radial-gradient(circle at 50% 30%,rgba(80,36,160,.05),rgba(3,2,7,.75) 46%,#030207 82%),
    linear-gradient(180deg,#050309 0%,transparent 18%,transparent 70%,#050309 100%);
}

.cta-ring {
  position:absolute;
  z-index:-2;
  top:33%;
  left:50%;
  width:min(34vw,560px);
  aspect-ratio:1;
  border:1px solid rgba(144,82,255,.55);
  border-radius:50%;
  box-shadow:0 0 80px rgba(105,50,255,.24),0 0 0 34px rgba(97,65,255,.035),0 0 0 82px rgba(67,180,255,.02);
  transform:translate(-50%,-50%);
}

.cta-inner {
  max-width: 1100px;
  text-align: center;
}

.cta-inner h2 { font-size:clamp(4rem,8.2vw,9.5rem); }
.cta-inner p:not(.section-kicker) { max-width:520px; margin:28px auto 32px; color:var(--muted); line-height:1.8; }
.cta-button { min-width:220px; }

.site-footer {
  min-height: 150px;
  padding: 34px max(24px, calc((100vw - var(--max-width)) / 2));
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:38px;
  border-top:1px solid rgba(255,255,255,.09);
  background:#050309;
  color:rgba(255,255,255,.48);
  font-size:.76rem;
  line-height:1.6;
}

.footer-brand { color:#fff; }
.site-footer p { max-width:720px; }
.site-footer > a:last-child { font-family:var(--font-ui-condensed); font-weight:700; letter-spacing:.12em; text-transform:uppercase; }

@media (max-width: 1180px) {
  .reality-layout,
  .creative-layout { gap: 54px; }
  .news-grid { grid-template-columns: 1.1fr 1fr; }
  .news-card:last-child { grid-column: 1 / -1; min-height: 500px; }
  .fncs-grid { grid-template-columns: 0.42fr 1.3fr 0.72fr; gap: 30px; }
  .pass-grid { grid-template-columns: 0.9fr 1fr; }
}

@media (max-width: 900px) {
  .section-inner { width: calc(100% - 40px); }
  .reality-layout,
  .creative-layout,
  .pass-grid { grid-template-columns: 1fr; }
  .section-intro { grid-row: auto; }
  .override-console { min-height: 230px; }
  .pass-visual { min-height: 500px; }
  .pass-progress { grid-column: auto; }
  .fncs-grid { grid-template-columns: 170px 1fr; }
  .fncs-date { grid-column:2; }
  .fncs-link { grid-column:2; }
  .fncs-mark { grid-row:1 / 4; }
}

@media (max-width: 760px) {
  .section-inner { width: calc(100% - 32px); }
  .section-shell h2 { font-size: clamp(3.5rem, 17vw, 6.1rem); }

  .portal-core { top: 19%; left: 53%; width: clamp(130px, 42vw, 270px); }
  .tunnel-ring { top:19%; left:53%; width:46vw; }
  .ring-b{width:68vw}.ring-c{width:94vw}.ring-d{width:132vw}
  .portal-speedlines { background: repeating-conic-gradient(from 0deg at 53% 26%, rgba(198,170,255,.16) 0 .5deg, transparent 1deg 7deg); mask-image:radial-gradient(circle at 53% 26%,transparent 0 8%,#000 22%,transparent 72%); }
  .portal-caption { bottom: 9vh; }

  .reality-section,
  .battle-pass-section,
  .news-section,
  .competitive-section,
  .creative-section { padding: 110px 0 90px; }

  .reality-layout,
  .creative-layout { gap: 46px; }
  .reality-grid { background-size:58px 58px; }
  .reality-copy .lead { font-size:1.25rem; }

  .modes-section { padding-top: 110px; }
  .modes-head { display:block; }
  .modes-note { margin-top:22px; padding:0; }
  .modes-viewport { margin-top:36px; overflow-x:auto; scrollbar-width:none; scroll-snap-type:x mandatory; }
  .modes-viewport::-webkit-scrollbar { display:none; }
  .modes-track { padding:0 16px 80px; gap:12px; transform:none !important; }
  .mode-card { width:88vw; height:68svh; min-height:500px; padding:24px; border-radius:20px; scroll-snap-align:center; }
  .mode-content h3 { font-size:clamp(3.4rem,17vw,5.4rem); }
  .mode-symbol { font-size:48vw; }

  .pass-grid { gap: 38px; }
  .pass-visual { min-height:420px; border-radius:20px; }
  .sonic-word { font-size:23vw; }
  .xp-meta { overflow-x:auto; justify-content:flex-start; gap:24px; white-space:nowrap; }

  .news-heading { display:block; }
  .news-heading .text-link { margin-top:24px; }
  .news-grid { grid-template-columns:1fr; margin-top:40px; }
  .news-card,
  .news-card:last-child { grid-column:auto; min-height:520px; }
  .news-art { height:260px; }

  .fncs-grid { grid-template-columns:1fr; gap:34px; }
  .fncs-mark { grid-row:auto; min-height:190px; display:grid; grid-template-columns:1fr auto; align-items:end; }
  .fncs-mark span { writing-mode:horizontal-tb; transform:none; font-size:22vw; }
  .fncs-date,.fncs-link { grid-column:auto; }
  .fncs-date { padding-left:0; padding-top:26px; border-left:0; border-top:1px solid rgba(255,255,255,.14); }

  .terminal-canvas { min-height:390px; }

  .final-cta { min-height:100svh; }
  .cta-ring { width:68vw; top:28%; }
  .cta-bg { object-position:53% 32%; }
  .cta-inner h2 { font-size:clamp(3.5rem,16vw,6rem); }

  .site-footer { grid-template-columns:1fr; gap:18px; text-align:left; }
}

@media (max-width: 460px) {
  .section-kicker { font-size:.68rem; letter-spacing:.18em; }
  .section-shell h2 { font-size:clamp(3.2rem,16.5vw,5rem); }
  .mode-card { width:91vw; min-height:480px; }
  .news-card { min-height:500px; }
  .pass-visual { min-height:350px; }
  .terminal-canvas { min-height:340px; }
  .fncs-mark span { font-size:23vw; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-core,
  .portal-tunnel,
  .portal-speedlines,
  .portal-flash,
  .portal-blackout,
  .portal-caption {
    display: none !important;
  }

  .modes-viewport {
    overflow-x: auto;
  }

  .modes-track,
  .hero-bg,
  .cta-bg {
    transform: none !important;
  }
}


/* =========================================================
   CINEMATIC PRELOADER + FORTNITE-ORIENTED TYPE SYSTEM
   Burbank Big Condensed / Heading Now are commercial names.
   When licensed fonts are installed locally they are preferred;
   Anton + Noto Sans remain the bundled web-safe fallbacks.
   ========================================================= */

body.is-loading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #040107;
  color: #fff;
  isolation: isolate;
}

.preloader::before {
  content: "";
  position: absolute;
  z-index: -5;
  inset: -10%;
  background:
    radial-gradient(circle at 50% 42%, rgba(123, 67, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(3, 1, 8, 0.38), rgba(3, 1, 8, 0.94)),
    url("assets/portal-hero.png") center 31% / cover no-repeat;
  filter: saturate(1.25) contrast(1.08) brightness(0.28) blur(1px);
  transform: scale(1.09);
  will-change: transform, opacity;
}

.preloader::after {
  content: "";
  position: absolute;
  z-index: 12;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.66), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.66)),
    radial-gradient(circle at 50% 43%, transparent 0 16%, rgba(2, 0, 8, 0.16) 40%, rgba(2, 0, 8, 0.84) 100%);
}

.preloader-scene,
.preloader-ui {
  position: absolute;
  inset: 0;
}

.preloader-scene {
  z-index: 1;
  pointer-events: none;
}

.preloader-portal {
  position: absolute;
  top: 43%;
  left: 50%;
  width: clamp(240px, 28vw, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 34px rgba(132, 78, 255, 0.55));
  will-change: transform, opacity;
}

.preloader-ring,
.preloader-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.preloader-ring {
  border: 1px solid rgba(166, 119, 255, 0.42);
  box-shadow:
    inset 0 0 40px rgba(115, 71, 255, 0.11),
    0 0 32px rgba(77, 220, 255, 0.1);
}

.preloader-ring::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(77, 220, 255, 0.32);
  border-radius: inherit;
}

.preloader-ring.ring-1 { transform: scale(1.04); }
.preloader-ring.ring-2 { transform: scale(0.76) rotate(31deg); opacity: 0.72; }

.preloader-core {
  inset: 28%;
  background:
    radial-gradient(circle at 50% 48%, #fff 0 1.5%, rgba(120, 231, 255, 0.9) 4%, rgba(132, 72, 255, 0.82) 23%, rgba(35, 10, 75, 0.72) 51%, rgba(2, 0, 8, 0.98) 74%);
  box-shadow:
    0 0 52px rgba(111, 68, 255, 0.7),
    0 0 120px rgba(77, 220, 255, 0.18);
}

.preloader-flare {
  position: absolute;
  top: 43%;
  left: 50%;
  width: min(64vw, 920px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 90, 255, 0.55), rgba(255,255,255,0.88), rgba(77, 220, 255, 0.48), transparent);
  box-shadow: 0 0 22px rgba(127, 75, 255, 0.58);
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

.preloader-pulse {
  position: absolute;
  top: 43%;
  left: 50%;
  width: clamp(300px, 36vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.66);
  opacity: 0;
  box-shadow: 0 0 80px rgba(118, 61, 255, 0.12);
}

.preloader-ui {
  z-index: 10;
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 46px);
}

.preloader-center {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.preloader-f-mark {
  position: relative;
  width: clamp(112px, 11vw, 184px);
  height: clamp(150px, 15vw, 248px);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 16px rgba(255,255,255,0.08)) drop-shadow(0 0 32px rgba(123,70,255,0.36));
  transform: skewX(-3deg);
  will-change: transform, opacity, filter;
}

.preloader-f-mark::before,
.preloader-f-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 150%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: translateX(-50%);
  opacity: 0.45;
}

.preloader-f-mark::before { top: -22%; }
.preloader-f-mark::after { bottom: -22%; }

.preloader-f-glyph {
  position: relative;
  z-index: 2;
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(9.5rem, 16vw, 15.5rem);
  font-weight: 900;
  line-height: 0.68;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(255,255,255,0.96);
  text-shadow:
    7px 0 0 rgba(110, 57, 255, 0.16),
    -5px 0 0 rgba(77, 220, 255, 0.1),
    0 0 34px rgba(255,255,255,0.08);
  transform: scaleX(0.9) skewY(-2deg);
  clip-path: polygon(2% 0, 100% 0, 94% 18%, 48% 18%, 48% 38%, 86% 38%, 79% 55%, 48% 55%, 48% 100%, 4% 100%);
  will-change: transform, filter;
}

.preloader-f-scan {
  position: absolute;
  z-index: 4;
  left: -18%;
  top: 48%;
  width: 136%;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--cyan) 20%, #fff 50%, var(--violet) 80%, transparent);
  box-shadow: 0 0 24px rgba(91, 212, 255, 0.72), 0 0 44px rgba(146, 76, 255, 0.5);
  opacity: 0.9;
  transform: translateY(-50%) rotate(-8deg) scaleX(0.06);
  transform-origin: center;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.preloader-loader {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4vw, 54px);
  width: min(calc(100% - 44px), 680px);
  transform: translateX(-50%);
}

.preloader-row {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,0.58);
  font-family: var(--font-ui-condensed);
  font-size: clamp(0.64rem, 0.78vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.preloader-percent {
  color: #fff;
  font-family: var(--font-ui-condensed);
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.preloader-progress {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(255,255,255,0.13);
}

.preloader-progress::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 1px;
  height: 8px;
  background: rgba(255,255,255,0.38);
}

.preloader-progress i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--violet), var(--cyan), #fff);
  box-shadow: 0 0 18px rgba(77,220,255,0.58);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* Small premium pass: stronger interactions without extra layout work. */
.button,
.nav-cta,
.mode-card,
.news-card {
  position: relative;
  isolation: isolate;
}

.button::after,
.nav-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.2) 48%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 520ms cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}

.button:hover::after,
.nav-cta:hover::after {
  transform: translateX(130%);
}

.mode-card::after,
.news-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 28%, transparent 72%, rgba(132,72,255,0.28)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 220ms ease;
}

.mode-card:hover::after,
.news-card:hover::after {
  opacity: 1;
}

/* Tighter, more Fortnite-like heading treatment throughout the site. */
.hero-title,
.section-intro h2,
.modes-head h2,
.mode-content h3,
.pass-copy h2,
.news-head h2,
.competitive-copy h2,
.creative-copy h2,
.cta-copy h2,
.brand,
.fncs-date strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: condensed;
}

.desktop-nav,
.nav-cta,
.button,
.eyebrow,
.portal-status,
.hud,
.section-kicker,
.text-link {
  font-family: var(--font-ui-condensed);
}

@media (max-width: 980px) {
  .preloader-portal {
    width: clamp(230px, 38vw, 360px);
  }

  .preloader-f-mark {
    width: clamp(108px, 15vw, 150px);
    height: clamp(148px, 20vw, 205px);
  }

  .site-header {
    width: calc(100% - 28px);
  }

  .section-inner,
  .modes-head {
    width: min(calc(100% - 40px), var(--max-width));
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 62px;
  }

  .preloader-ui {
    padding: 18px;
  }

  .preloader-portal {
    top: 42%;
    width: min(70vw, 290px);
  }

  .preloader-flare,
  .preloader-center {
    top: 42%;
  }

  .preloader-flare {
    width: 94vw;
  }

  .preloader-f-mark {
    width: 104px;
    height: 154px;
  }

  .preloader-f-glyph {
    font-size: clamp(8.6rem, 39vw, 11.4rem);
  }

  .preloader-loader {
    bottom: 26px;
    width: calc(100% - 36px);
  }

  .hero-content {
    width: calc(100% - 28px);
    padding-left: 0;
    padding-right: 0;
  }

  .hero-title {
    font-size: clamp(3.8rem, 20vw, 6rem);
  }

  .section-inner,
  .modes-head {
    width: calc(100% - 28px);
  }

  .section-intro h2,
  .modes-head h2,
  .pass-copy h2,
  .news-head h2,
  .competitive-copy h2,
  .creative-copy h2,
  .cta-copy h2 {
    font-size: clamp(3rem, 16vw, 5.4rem);
    line-height: 0.88;
  }

  .mode-card {
    min-width: min(86vw, 390px);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .preloader-portal {
    width: min(76vw, 250px);
  }

  .preloader-f-mark {
    width: 88px;
    height: 132px;
  }

  .preloader-f-glyph {
    font-size: 8rem;
  }

  .preloader-row {
    font-size: 0.58rem;
    letter-spacing: 0.13em;
  }

  .site-header {
    width: calc(100% - 16px);
    top: 8px;
  }

  .hero-content {
    width: calc(100% - 22px);
  }

  .hero-title {
    font-size: 3.55rem;
  }

  .hero-kicker {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.86rem;
  }

  .portal-status {
    right: 10px;
    max-width: 132px;
  }

  .hud-item {
    min-width: 105px;
  }

  .section-inner,
  .modes-head {
    width: calc(100% - 22px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-ring,
  .preloader-portal,
  .preloader-f-mark,
  .preloader-f-glyph,
  .preloader-f-scan,
  .preloader-flare,
  .preloader::before {
    will-change: auto;
  }
}

/* =========================================================
   V4 — stable first paint + portal audio controls
   ========================================================= */
body.is-loading .page-shell {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sound-toggle {
  position: relative;
  min-height: 48px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(8, 7, 17, 0.38);
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  font-family: var(--font-ui-condensed);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.sound-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 220, 255, 0.42);
  background: rgba(77, 220, 255, 0.08);
  color: #fff;
}

.sound-toggle[aria-pressed="false"] {
  color: rgba(255, 255, 255, 0.48);
}

.sound-toggle.needs-gesture {
  border-color: rgba(245, 255, 41, 0.42);
  color: var(--yellow);
  box-shadow: 0 0 24px rgba(245, 255, 41, 0.08);
}

.sound-toggle.track-missing {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.58);
}

.sound-icon {
  width: 18px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.sound-icon i {
  width: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center bottom;
}

.sound-icon i:nth-child(1) { height: 6px; }
.sound-icon i:nth-child(2) { height: 13px; }
.sound-icon i:nth-child(3) { height: 9px; }

.sound-toggle[aria-pressed="true"] .sound-icon i {
  animation: sound-meter 0.72s ease-in-out infinite alternate;
}

.sound-toggle[aria-pressed="true"] .sound-icon i:nth-child(2) { animation-delay: -0.24s; }
.sound-toggle[aria-pressed="true"] .sound-icon i:nth-child(3) { animation-delay: -0.46s; }

@keyframes sound-meter {
  from { transform: scaleY(0.45); opacity: 0.58; }
  to { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 1080px) {
  .sound-label {
    display: none;
  }

  .sound-toggle {
    width: 48px;
    padding: 0;
  }
}

@media (max-width: 760px) {
  .header-actions {
    gap: 8px;
  }

  .sound-toggle {
    width: 42px;
    min-height: 42px;
    border-radius: 10px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 380px) {
  .header-actions {
    gap: 6px;
  }

  .sound-toggle {
    width: 38px;
    min-height: 38px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sound-toggle[aria-pressed="true"] .sound-icon i {
    animation: none;
  }
}
