/* ==========================================================================
   Homepage. The layout works without JS; cinema.js adds the motion.
   ========================================================================== */
.wrap-wide { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); }
.scene { position: relative; }
.media-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.line-inner { display: inline-block; }
.ch { display: inline-block; will-change: transform; }

.section-title { font: 700 clamp(38px, 4.6vw, 68px)/1.02 var(--head); letter-spacing: -.035em; margin: 0 0 16px; text-wrap: balance; }
.section-lede { font: 400 clamp(17px, 1.35vw, 20px)/1.55 var(--font); color: var(--text-2); max-width: 520px; margin: 0; }

/* Live player count (only shown when a Roblox game is set and the API answers) */
.live { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(12, 13, 15, .72); font: 500 14px/1 var(--font); color: var(--text); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); animation: live 2.4s infinite; }
.live.is-offline .live-dot { background: var(--muted); animation: none; }
@keyframes live { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Flash as a toast on the homepage so it doesn't hide under the transparent nav */

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: var(--bg-deep); z-index: 1; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media > * { transform: scale(1.04); transform-origin: 50% 60%; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 8, 12, .5) 0%, rgba(7, 8, 12, 0) 24%, rgba(7, 8, 12, 0) 48%, rgba(7, 8, 12, .9) 100%),
    linear-gradient(90deg, rgba(7, 8, 12, .72) 0%, rgba(7, 8, 12, .2) 50%, rgba(7, 8, 12, 0) 100%);
}
.letterbox { position: absolute; left: 0; right: 0; height: 50vh; background: #000; z-index: 3; transform: scaleY(0); pointer-events: none; }
.letterbox-top { top: 0; transform-origin: top; }
.letterbox-bottom { bottom: 0; transform-origin: bottom; }
.hero-inner { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 0 clamp(20px, 6vw, 96px) clamp(64px, 12vh, 128px); }
.hero-title { margin: 0 0 22px; font-size: clamp(76px, 12vw, 210px); color: var(--text); }
.hero-title--short { font-size: clamp(130px, 22vw, 360px); line-height: .8; }
/* Brand lockup, echoing the logo: heavy monogram (last letter in the brand blue), wordmark beneath */
.hero-lockup { font-size: initial; margin-bottom: 26px; }
.lock-mark { font: 800 clamp(130px, 21vw, 340px)/.82 var(--font); letter-spacing: -.055em; color: var(--text); }
.lock-accent { color: var(--accent); }
.lock-word { font: 400 clamp(30px, 5vw, 82px)/1.05 var(--font); text-transform: uppercase; letter-spacing: .015em; color: var(--text); margin-top: .1em; }
.hero-tagline { max-width: 500px; margin: 0 0 34px; font: 400 clamp(18px, 1.45vw, 21px)/1.5 var(--font); color: var(--text-2); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.motion .hero-inner { opacity: 0; animation: failsafe .01s 3s forwards; }
.motion.cinema-ready .hero-inner { animation: none; opacity: 1; }
@keyframes failsafe { to { opacity: 1; } }

/* ==========================================================================
   The map
   ========================================================================== */
.city { z-index: 2; background: var(--bg-deep); box-shadow: 0 -60px 120px 30px rgba(0, 0, 0, .7); }
.city-stage {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: calc(var(--nav-h) + 7vh) clamp(20px, 6vw, 96px) 7vh;
}
.city-media { position: absolute; inset: 0; overflow: hidden; }
.city-pan { position: absolute; top: 0; left: 0; height: 100%; width: 150%; max-width: none; object-fit: cover; }
.city-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 9, 10, .82) 0%, rgba(8, 9, 10, 0) 38%, rgba(8, 9, 10, 0) 52%, rgba(8, 9, 10, .9) 100%); }
.city-intro, .city-stops, .district-nav { position: relative; z-index: 2; }
.city-stops { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stop { max-width: 460px; }
.stop-title { font-size: clamp(56px, 7vw, 120px); margin: 0 0 14px; }
.stop p { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 400px; margin: 0; }
.district-nav { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font: 500 15px/1 var(--font); color: rgba(243, 241, 237, .38); }
.district-nav li { transition: color .4s var(--ease); }
.district-nav li.is-active { color: var(--text); }
.district-nav { display: none; }
.is-cinematic .district-nav { display: flex; }
.is-cinematic .city-stage { height: 100vh; height: 100svh; }
.is-cinematic .city-stops { display: block; height: clamp(190px, 28vh, 280px); }
.is-cinematic .stop { position: absolute; left: 0; bottom: 0; opacity: 0; visibility: hidden; }

/* ==========================================================================
   Choose your path
   ========================================================================== */
.paths { z-index: 3; background: var(--bg); padding: clamp(96px, 13vh, 150px) 0; }
.paths-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.paths-left { min-width: 0; }
.paths-left .section-lede { margin-bottom: 36px; }
.path-group { margin: 28px 0 6px; font: 500 14px/1.4 var(--font); color: var(--muted); }
.path-group:first-child { margin-top: 0; }
.path-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 0; border: 0; background: none; text-align: left; cursor: pointer;
  color: rgba(243, 241, 237, .42); font: 600 clamp(20px, 1.75vw, 26px)/1.25 var(--head); letter-spacing: -.02em;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.path-item:hover { color: var(--text-2); }
.path-item.is-active { color: var(--text); }
.path-item::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--dept); flex-shrink: 0; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s var(--ease); }
.path-item.is-active::before { opacity: 1; transform: none; }
.path-open { font: 500 12.5px/1 var(--font); letter-spacing: 0; color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); padding: 5px 9px; border-radius: 999px; opacity: 0; transition: opacity .3s; }
.path-item.is-active .path-open, .path-item:hover .path-open { opacity: 1; }

.path-stage { position: sticky; top: calc(var(--nav-h) + 28px); aspect-ratio: 4 / 5; max-height: 80vh; width: 100%; overflow: hidden; border-radius: var(--r-xl); background: var(--bg-deep); }
.path-panel { position: absolute; inset: 0; }
.path-visual { position: absolute; inset: 0; overflow: hidden; }
.path-visual img { width: 100%; height: 100%; object-fit: cover; }
.path-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 10, .05) 0%, rgba(8, 9, 10, .15) 40%, rgba(8, 9, 10, .94) 100%); }
.path-light { position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none; }
.beam { position: absolute; width: 75%; height: 60%; border-radius: 50%; filter: blur(60px); opacity: 0; }
.beam-a { left: -15%; top: 30%; }
.beam-b { right: -20%; top: 35%; }
.lights-leo .beam-a { background: #ff2b2b; animation: sweep 2.8s ease-in-out infinite; }
.lights-leo .beam-b { background: #2b6bff; animation: sweep 2.8s ease-in-out 1.4s infinite; }
.lights-fire .beam-a { background: #ff3b2f; animation: sweep 2.4s ease-in-out infinite; }
.lights-fire .beam-b { background: #ffe9d0; animation: sweep 2.4s ease-in-out 1.2s infinite; }
.lights-glow .beam-a, .lights-studio .beam-a { background: var(--dept); opacity: .32; animation: drift 10s ease-in-out infinite alternate; }
@keyframes sweep { 0%, 100% { opacity: 0; } 45% { opacity: .4; } }
@keyframes drift { to { transform: translate(16%, -10%) scale(1.1); } }
.path-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(26px, 3.4vw, 44px); }
.path-kind { font: 500 15px/1 var(--font); color: color-mix(in srgb, var(--dept) 55%, #fff); margin: 0 0 12px; }
.path-title { font: 700 clamp(34px, 3.6vw, 54px)/1.02 var(--head); letter-spacing: -.035em; margin: 0 0 14px; }
.path-info > p:not(.path-kind) { max-width: 460px; color: var(--text-2); font-size: 17px; line-height: 1.55; margin-bottom: 24px; }
.path-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.path-closed { color: var(--text-2); font-size: 15px; }

/* ==========================================================================
   Story — the About text, lit word by word while pinned
   ========================================================================== */
.story { z-index: 3; background: var(--bg-deep); overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.story-glow { position: absolute; width: 70vw; height: 70vw; left: -20vw; top: -10vw; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%); pointer-events: none; }
.story-inner { position: relative; padding-top: clamp(96px, 14vh, 150px); padding-bottom: clamp(96px, 14vh, 150px); }
.story-text { max-width: 1040px; }
.story-text p { font: 500 clamp(28px, min(3.4vw, 5.4vh), 52px)/1.2 var(--head); letter-spacing: -.025em; margin: 0 0 .7em; text-wrap: pretty; }
.story-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 44px; }
.is-cinematic .story { height: 100vh; height: 100svh; }

/* ==========================================================================
   News & community — editorial, asymmetric
   ========================================================================== */
.community { z-index: 3; background: var(--bg); padding: clamp(96px, 13vh, 150px) 0 clamp(80px, 11vh, 130px); }
.community-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 56px; }
.community-head .section-title { margin: 0; }
.community-facts { margin: 0; color: var(--muted); font-size: 16px; }
.roblox-figures { display: flex; flex-wrap: wrap; gap: 24px 72px; margin: -16px 0 64px; }
.figure { display: flex; flex-direction: column; gap: 6px; }
.figure-n { font: 700 clamp(44px, 5vw, 72px)/1 var(--head); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.figure[data-roblox="playing"] .figure-n { color: var(--green); }
.figure-l { color: var(--text-2); font-size: 16px; }

.community-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.news-lead { display: block; color: var(--text); text-decoration: none; max-width: 640px; }
.news-lead:hover { color: var(--text); }
.news-date { display: block; font: 500 15px/1.4 var(--font); color: var(--accent); margin-bottom: 12px; }
.news-title { font: 700 clamp(30px, 3vw, 44px)/1.08 var(--head); letter-spacing: -.03em; margin: 0 0 16px; transition: color .25s; text-wrap: balance; }
.news-lead:hover .news-title { color: var(--accent); }
.news-ex { font-size: 18px; line-height: 1.6; color: var(--text-2); margin: 0 0 20px; }
.news-more { font: 600 15px/1 var(--font); display: inline-flex; gap: 8px; }
.news-more .arr { transition: transform .3s var(--ease); }
.news-lead:hover .news-more .arr { transform: translateX(4px); }
.news-more-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 52px; }
.news-item { display: block; color: var(--text); text-decoration: none; }
.news-item .news-date { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.news-item-title { font: 700 20px/1.3 var(--head); letter-spacing: -.015em; transition: color .25s; }
.news-item:hover { color: var(--text); }
.news-item:hover .news-item-title { color: var(--accent); }
.news-all { display: inline-block; margin-top: 40px; }

.forum-panel { background: var(--surface); border-radius: var(--r-xl); padding: clamp(26px, 3vw, 40px); }
.forum-title { font: 700 24px/1.2 var(--head); letter-spacing: -.02em; margin: 0 0 22px; }
.voices { display: flex; flex-direction: column; gap: 6px; margin: 0 -14px 22px; }
.voice { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; color: var(--text); text-decoration: none; transition: background .2s; }
.voice:hover { background: var(--surface-2); color: var(--text); }
.voice-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.voice-head strong { font-weight: 600; }
.voice-quote { font-size: 16px; line-height: 1.55; color: var(--text-2); }
.forum-empty-lead { font: 700 21px/1.3 var(--head); letter-spacing: -.015em; margin: 0 0 8px; }
.forum-empty .muted { font-size: 15.5px; }

.gallery-head { margin: 96px 0 20px; }
.gallery { margin: 0 calc(-1 * clamp(20px, 5vw, 72px)); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.gallery::-webkit-scrollbar { display: none; }
.gallery-track { display: flex; gap: 16px; padding: 0 clamp(20px, 5vw, 72px); width: max-content; }
.shot { margin: 0; width: clamp(280px, 34vw, 520px); scroll-snap-align: start; }
.shot-inner { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.shot-media { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }
.admin-hint { margin: 72px 0 0; padding: 16px 20px; border-radius: 12px; background: var(--accent-soft); color: var(--text-2); font-size: 15px; }

/* ==========================================================================
   Join
   ========================================================================== */
.join { z-index: 3; min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--bg-deep); }
.join-media { position: absolute; inset: 0; overflow: hidden; }
.join-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 10, .85) 0%, rgba(8, 9, 10, .2) 40%, rgba(8, 9, 10, .9) 100%); }
.join-inner { position: relative; z-index: 2; padding-top: 22vh; padding-bottom: clamp(64px, 11vh, 120px); }
.join-title { font-size: clamp(76px, 11.5vw, 200px); margin: 0 0 26px; }
.join-lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: var(--text-2); max-width: 480px; margin: 0 0 32px; }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.join-small { margin: 26px 0 0; color: var(--text-2); font-size: 15px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .paths-grid { grid-template-columns: minmax(0, 1fr); }
  .paths-grid > * { min-width: 0; }
  .paths-left .section-lede { margin-bottom: 24px; }
  .path-list { display: flex; align-items: center; overflow-x: auto; gap: 8px; margin: 0 calc(-1 * clamp(20px, 5vw, 72px)); padding: 0 clamp(20px, 5vw, 72px) 4px; scrollbar-width: none; }
  .path-list::-webkit-scrollbar { display: none; }
  .path-group { display: none; }
  .path-item { width: auto; flex-shrink: 0; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 16px; color: var(--text-2); }
  .path-item.is-active { background: var(--text); color: var(--bg); }
  .path-item::before, .path-open { display: none; }
  .path-stage { position: relative; top: 0; aspect-ratio: 3 / 4; max-height: 74svh; margin-top: 8px; }
  .community-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .city-stops { grid-template-columns: 1fr; gap: 24px; }
  .stop p { font-size: 16px; }
  .district-nav { gap: 18px; font-size: 14px; }
  .hero-actions .btn-xl, .join-actions .btn-xl { height: 50px; font-size: 15.5px; padding: 0 20px; }
  .roblox-figures { gap: 24px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .beam { animation: none !important; opacity: .25 !important; }
  .live-dot { animation: none; }
}

/* Open roles panel */
.roles { display: flex; flex-direction: column; gap: 4px; margin: 0 -14px 24px; }
.role-link { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 12px; color: var(--text); text-decoration: none; transition: background .2s; }
.role-link::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--dept); flex-shrink: 0; }
.role-link:hover { background: var(--surface-2); color: var(--text); }
.role-link-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.role-link-title { font: 600 16px/1.3 var(--font); }
.role-link .arr { color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.role-link:hover .arr { transform: translateX(3px); color: var(--accent); }
.roles-discord { margin: 20px 0 0; }

/* Our games + news cover */
.games-home { z-index: 3; background: var(--bg); padding: clamp(96px, 13vh, 150px) 0 0; }
.games-home .community-head { margin-bottom: 36px; }
.news-cover { display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; margin-bottom: 22px; background: var(--surface-2); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-lead:hover .news-cover img { transform: scale(1.03); }

/* Smaller news items show their cover above the title */
.news-item-text { display: block; min-width: 0; }
.news-thumb { display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; margin-bottom: 14px; background: var(--surface-2); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.news-item:hover .news-thumb img { transform: scale(1.04); }

/* Partners strip (partners marked "Also show on the homepage") */
.partners-home { z-index: 3; background: var(--bg); padding: 0 0 clamp(80px, 11vh, 130px); }
.partners-home .community-head { margin-bottom: 32px; }
.partner-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.partner-chip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); color: var(--text); text-decoration: none; transition: background .25s, transform .4s var(--ease); }
.partner-chip:hover { background: var(--surface-2); color: var(--text); transform: translateY(-2px); }
.partner-chip-logo { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.partner-chip-logo img, .partner-chip-logo span { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: #fff; font: 700 16px/1 var(--head); }
.partner-chip-text { display: grid; min-width: 0; }
.partner-chip-text strong { font: 700 16px/1.3 var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partner-chip-text span { color: var(--muted); font-size: 13.5px; }

/* Events coming up (homepage) */
.events-home { z-index: 3; background: var(--bg); padding: clamp(96px, 13vh, 150px) 0 0; }
.events-home .community-head { margin-bottom: 36px; }
.figure[data-roblox="discord"] .figure-n { color: #8b9cff; }
