/* =========================================================================
   PROJECT ZW — game landing page
   Dark / cinematic · shares studio DNA (Saira Condensed, #3a86ff, wolf brand)
   ========================================================================= */

:root {
  --font-display: "Bahnschrift", "Saira Condensed", "Oswald", system-ui, sans-serif;
  --font-body: "Saira", system-ui, sans-serif;

  --accent: #3a86ff;
  --glow: #1fb6e8;
  --accent-soft: color-mix(in oklab, var(--accent) 22%, transparent);
  --accent-line: color-mix(in oklab, var(--accent) 42%, transparent);

  --bg:   #000000;
  --bg-2: #080b11;
  --bg-3: #111824;
  --panel: rgba(255,255,255,0.028);
  --panel-2: rgba(255,255,255,0.05);
  --line: rgba(255,255,255,0.09);
  --line-2: rgba(255,255,255,0.17);
  --text:   #eaf0f6;
  --text-2: #9aa7b6;
  --text-3: #5f6c7b;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-pad: clamp(84px, 11vw, 168px);
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #02101f; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; scroll-margin-top: 84px; }
.section-pad { padding-block: var(--section-pad); }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 300; line-height: 1.02; margin: 0; text-wrap: balance; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 26px;
}
.eyebrow::before { content:""; width: 28px; height: 1px; background: var(--accent); }
.eyebrow .idx { color: var(--text-3); letter-spacing: 0.2em; }

.section-title {
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  text-transform: uppercase; letter-spacing: 0.02em;
  margin-bottom: clamp(26px, 4vw, 48px);
}
.section-title strong { font-weight: 600; color: var(--text); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.6; color: var(--text-2); font-weight: 300; max-width: 60ch; text-wrap: pretty; }
p { text-wrap: pretty; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 0.94rem;
  padding: 16px 30px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; background: var(--accent); color: #02101f;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease, box-shadow .3s ease;
}
.btn .arr { transition: transform .3s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px var(--accent-soft); }
.btn:hover .arr { transform: translate(4px,-4px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; background: rgba(58,134,255,0.06); }
.btn.lg { padding: 18px 36px; font-size: 1.02rem; }

/* =========================================================================
   HEADER
   ========================================================================= */
.zw-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 72px;
  display: flex; align-items: center;
  transition: background .35s ease, border-color .35s ease, height .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.zw-header.scrolled {
  height: 64px; background: rgba(6,8,13,0.72);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.zw-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 20px; }

.back-btn {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 9px 18px 9px 14px; border-radius: 100px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.04);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.back-btn:hover { border-color: var(--accent); background: rgba(58,134,255,0.08); }
.back-btn .bk-arrow { color: var(--accent); font-size: 1.1rem; line-height: 1; transition: transform .3s ease; }
.back-btn:hover .bk-arrow { transform: translateX(-3px); }
.back-btn .mark { height: 28px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.back-btn .bk-label {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.86rem; font-weight: 500; color: var(--text);
}
.back-btn .bk-label small { display: block; font-size: 0.6rem; letter-spacing: 0.2em; color: var(--text-3); font-weight: 400; }

.zw-tag {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.24em;
  font-size: 0.78rem; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 9px;
}
.zw-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }

.zw-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.zw-nav a.lnk {
  position: relative; font-family: var(--font-display); font-weight: 400; font-size: 0.92rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); padding: 6px 0;
  transition: color .25s ease;
}
.zw-nav a.lnk::after { content:""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.zw-nav a.lnk:hover { color: var(--text); }
.zw-nav a.lnk:hover::after, .zw-nav a.lnk.active::after { transform: scaleX(1); }
.zw-nav a.lnk.active { color: var(--text); }
.zw-nav .btn { padding: 11px 22px; font-size: 0.84rem; }

.zw-menu-btn { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 0; }
.zw-menu-btn span { display: block; width: 26px; height: 2px; margin-inline: auto; background: var(--text); border-radius: 2px; transition: transform .35s ease, opacity .25s ease; }
body.menu-open .zw-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .zw-menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .zw-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   HERO
   ========================================================================= */
.zw-hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 132px var(--gutter) 110px;
  background-color: #000;
  background-image:
    linear-gradient(180deg, #000 0%, #000 8%, rgba(0,0,0,0.32) 24%, rgba(0,0,0,0.30) 58%, rgba(0,0,0,0.86) 86%, #000 95%, #000 100%),
    url("../assets/hero-space.png");
  background-size: cover, cover;
  background-position: center, center 35%;
  background-repeat: no-repeat, no-repeat;
}
.zw-hero .wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

.hero-logo {
  width: min(82vw, 580px); height: auto;
  filter: drop-shadow(0 16px 46px rgba(0,0,0,0.7));
  animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

.zw-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.24em;
  font-size: 0.72rem; color: var(--accent); border: 1px solid var(--accent-line);
  padding: 7px 14px; border-radius: 100px; margin-bottom: 30px; background: rgba(58,134,255,0.08);
}
.zw-badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 var(--accent-soft);} 70%{ box-shadow: 0 0 0 9px transparent;} 100%{ box-shadow:0 0 0 0 transparent;} }

.zw-name {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; line-height: 1;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  margin: clamp(26px, 4vw, 44px) 0 0;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.zw-name .zw { color: var(--accent); text-shadow: 0 0 30px color-mix(in oklab, var(--accent) 55%, transparent); }

.zw-intro {
  margin-top: clamp(26px, 3.5vw, 40px);
  max-width: 820px; text-align: left;
  background: rgba(3,5,11,0.55);
  border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: clamp(28px, 4vw, 50px);
}
.zw-intro p { color: var(--text-2); font-size: clamp(1rem, 1.25vw, 1.1rem); margin: 0; }
.zw-intro p + p { margin-top: 1.15em; }
.zw-intro p.first { color: var(--text); font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.55; }

.zw-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; margin-top: clamp(30px,4vw,44px); }

.zw-keyart {
  margin: clamp(28px, 4vw, 44px) 0 0;
  width: 100%; max-width: 1000px;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(58,134,255,0.08);
}
.zw-keyart img { width: 100%; height: auto; display: block; }

.zw-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.62rem; color: var(--text-3);
}
.zw-scroll .track { width: 1px; height: 42px; background: var(--line-2); position: relative; overflow: hidden; }
.zw-scroll .track::after { content:""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--accent); animation: cue 2.1s ease-in-out infinite; }
@keyframes cue { 0% { top: -50%; } 60%,100% { top: 100%; } }
@media (max-height: 820px) { .zw-scroll { display: none; } }

/* marquee strip under hero */
.zw-strip {
  border-block: 1px solid var(--line); background: var(--bg-2);
  overflow: hidden; white-space: nowrap;
}
.zw-strip .track { display: inline-flex; gap: 0; animation: marquee 28s linear infinite; }
.zw-strip:hover .track { animation-play-state: paused; }
.zw-strip .chip {
  display: inline-flex; align-items: center; gap: 16px; padding: 18px 0;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.28em;
  font-size: 0.9rem; color: var(--text-2);
}
.zw-strip .chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 0 32px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .zw-strip .track { animation: none; } }

/* =========================================================================
   PREMISE
   ========================================================================= */
.premise-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.premise-copy p { color: var(--text-2); font-size: 1.12rem; }
.premise-copy p + p { margin-top: 1.2em; }
.premise-copy .pull {
  font-family: var(--font-display); font-weight: 300; color: var(--text);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.2; letter-spacing: 0.01em;
  border-left: 2px solid var(--accent); padding-left: 24px; margin: 0 0 34px; text-transform: uppercase;
}
.art-frame {
  position: relative; aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--bg-3) 0 16px, var(--bg-2) 16px 32px);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.art-frame::before { content:""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 70% 15%, var(--accent-soft), transparent 60%); }
.art-frame .ph {
  position: relative; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.28em;
  font-size: 0.72rem; color: var(--text-3); border: 1px dashed var(--line-2); padding: 12px 18px; background: rgba(6,8,13,0.6);
}

/* =========================================================================
   FEATURES
   ========================================================================= */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg); padding: clamp(30px, 3.6vw, 50px); position: relative; transition: background .35s ease; }
.feature:hover { background: var(--bg-2); }
.feature .fn { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.3em; color: var(--accent); }
.feature h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; margin: 16px 0 14px; }
.feature p { color: var(--text-2); font-size: 1rem; margin: 0; }
.feature::after { content:""; position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--accent); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.feature:hover::after { width: 100%; }

/* =========================================================================
   MEDIA GALLERY
   ========================================================================= */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 14px; }
.shot { position: relative; aspect-ratio: 16/10; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--bg-3) 0 14px, var(--bg-2) 14px 28px); }
.shot.feature-shot { grid-row: 1 / 3; grid-column: 1; aspect-ratio: auto; }
.shot::before { content:""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 80% 10%, var(--accent-soft), transparent 62%); opacity: .7; }
.shot .lbl { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.26em; font-size: 0.66rem; color: var(--text-3); border: 1px dashed var(--line-2); padding: 9px 14px; background: rgba(6,8,13,0.6); white-space: nowrap; }
.shot::after { content:""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,8,13,0.4), transparent 50%); }

/* =========================================================================
   PLATFORMS + CTA
   ========================================================================= */
.platforms { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px,4vw,44px); }
.platform {
  display: flex; flex-direction: column; gap: 6px; padding: 24px 30px; min-width: 200px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  transition: border-color .3s ease, background .3s ease;
}
.platform:hover { border-color: var(--accent); background: var(--panel-2); }
.platform .pk { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.68rem; color: var(--text-3); }
.platform .pv { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.4rem; font-weight: 500; }
.platform.tba { opacity: 0.65; }
.platform.tba .pv { color: var(--text-2); }

.cta-band {
  margin-top: clamp(64px, 9vw, 120px); position: relative; overflow: hidden;
  border: 1px solid var(--accent-line); border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(58,134,255,0.14), rgba(31,182,232,0.06));
  padding: clamp(48px, 7vw, 96px) clamp(30px, 5vw, 72px);
  text-align: center;
}
.cta-band::before { content:""; position: absolute; inset: 0; background-image: url("../assets/hero-space.png"); background-size: cover; background-position: center; opacity: 0.18; mix-blend-mode: screen; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); text-transform: uppercase; font-weight: 600; letter-spacing: 0.02em; }
.cta-band p { color: var(--text-2); max-width: 50ch; margin: 16px auto 32px; }
.cta-band .zw-actions { justify-content: center; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.zw-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(40px, 6vw, 64px) 32px; }
.zw-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.zw-footer .fbrand { display: flex; align-items: center; gap: 12px; }
.zw-footer .fbrand .mark { height: 34px; }
.zw-footer .fbrand .t { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.9rem; color: var(--text-2); }
.zw-footer .fbrand .t b { color: var(--text); font-weight: 600; }
.zw-footer .legal { font-family: var(--font-display); letter-spacing: 0.06em; font-size: 0.8rem; color: var(--text-3); }
.zw-footer a.back { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.82rem; color: var(--text-2); transition: color .25s ease; }
.zw-footer a.back:hover { color: var(--accent); }

/* =========================================================================
   REVEAL
   ========================================================================= */
.reveal { will-change: opacity, transform; }
html.reveal-ready .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
html.reveal-ready .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { html.reveal-ready .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .premise-grid { grid-template-columns: 1fr; }
  .art-frame { aspect-ratio: 16/10; max-width: 520px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .shot.feature-shot { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16/9; }
}
@media (max-width: 760px) {
  .zw-menu-btn { display: flex; }
  .zw-nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px;
    padding: 100px var(--gutter) 40px; background: var(--bg-2); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .42s cubic-bezier(.2,.85,.2,1);
    box-shadow: -30px 0 60px rgba(0,0,0,0.5);
  }
  body.menu-open .zw-nav { transform: translateX(0); }
  .zw-nav a.lnk { font-size: 1.5rem; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .zw-nav a.lnk::after { display: none; }
  .zw-nav .btn { margin-top: 12px; }
  .zw-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0.55); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s; }
  body.menu-open .zw-scrim { opacity: 1; visibility: visible; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .back-btn .bk-label { display: none; }
}
