/* ============================================================
   Interactive Wave Studio — interactivewavestudio.com
   Static site. No frameworks. Fonts self-hosted.
   Palette follows the studio logo: white + blood red on near-black.
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --bg-raise: #111014;
  --surface: #17151b;
  --line: #29252f;
  --text: #eae7e1;
  --muted: #a39fa8;
  --accent: #e14b50;
  --accent-bright: #ef6a6e;
  --accent-dim: #a32c30;
  --accent-deep: #7e1f23;
  --ok: #6fbf73;
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1160px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain over everything, very subtle */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

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

a { color: var(--accent-bright); text-decoration: none; }
a:hover { color: #f78c90; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.accent { color: var(--accent); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; z-index: 3000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(180deg, #d84449, var(--accent-dim));
  color: #fff;
  box-shadow: 0 4px 24px rgba(216, 68, 73, .3);
}
.btn--primary:hover { box-shadow: 0 6px 32px rgba(216, 68, 73, .5); color: #fff; }

.btn--ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--accent-dim); color: var(--accent-bright); }

.btn--steam { background: #1b2838; color: #dfe8f0; border-color: #2a3f55; }
.btn--steam:hover { background: #23344a; color: #fff; }

.btn--small { padding: 9px 18px; font-size: 14px; }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 12, .82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.nav__brand:hover { color: var(--text); }
.nav__mark { width: 40px; height: 40px; flex: none; }
.nav__name {
  font-family: var(--display); font-size: 22px; letter-spacing: .06em;
  text-transform: uppercase;
}
.nav__name em { font-style: normal; color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links > a:not(.btn) {
  color: var(--muted); font-size: 15px; font-weight: 600;
}
.nav__links > a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; }

/* ============ Hero (home) ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__bg, .hero__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.hero__vignette {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 30%, transparent 30%, rgba(10, 10, 12, .55) 75%),
    linear-gradient(180deg, rgba(10, 10, 12, .55) 0%, rgba(10, 10, 12, .15) 35%, rgba(10, 10, 12, .92) 88%, var(--bg) 100%);
}
.hero__content { padding-top: 160px; padding-bottom: 64px; max-width: 760px; }
.hero__eyebrow {
  font-family: var(--display); letter-spacing: .35em; text-transform: uppercase;
  color: var(--accent); font-size: 15px; margin-bottom: 18px;
  animation: flicker 7s infinite;
}
.hero__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(64px, 11vw, 128px);
  line-height: .92; letter-spacing: .015em;
  text-transform: uppercase;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .7);
}
.hero__sub {
  margin-top: 22px; font-size: clamp(16px, 2vw, 19px); color: #cfccd4;
  max-width: 54ch; text-shadow: 0 2px 16px rgba(0, 0, 0, .8);
}
.hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero__stats { border-top: 1px solid var(--line); background: rgba(10, 10, 12, .6); backdrop-filter: blur(8px); }
.hero__stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-top: 22px; padding-bottom: 22px; gap: 12px;
}
.stat { text-align: center; }
.stat strong {
  display: block; font-family: var(--display); font-weight: 400; font-size: 34px;
  color: var(--accent); letter-spacing: .03em; line-height: 1;
}
.stat span { font-size: 13px; color: var(--muted); }

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: .4; }
  94% { opacity: 1; }
  96% { opacity: .6; }
  97% { opacity: 1; }
}

/* ============ Page hero (subpages) ============ */
.page-hero {
  position: relative;
  padding: 150px 0 56px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero__bg, .page-hero__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.page-hero__vignette {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 12, .78) 0%, rgba(10, 10, 12, .6) 50%, var(--bg) 100%);
}
.page-hero .section__title { margin-bottom: 14px; }
.page-hero__sub { color: #cfccd4; max-width: 62ch; font-size: 17px; }
.page-hero .game__badges { margin-bottom: 16px; }
.page-hero .game__actions { margin-top: 26px; }

.breadcrumbs {
  font-size: 13.5px; color: var(--muted); margin-bottom: 20px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-bright); }
.breadcrumbs span[aria-current] { color: var(--text); }

/* ============ Sections ============ */
.section { padding: 110px 0; }
.section--tight { padding: 72px 0; }
.section--alt { background: var(--bg-raise); border-block: 1px solid var(--line); }
.section__eyebrow {
  font-family: var(--display); letter-spacing: .35em; text-transform: uppercase;
  color: var(--accent); font-size: 14px; margin-bottom: 10px;
}
.section__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 6vw, 64px); line-height: .95; letter-spacing: .015em;
  margin-bottom: 24px;
}
.section__title--sub { font-size: clamp(30px, 4.5vw, 44px); }

/* ============ Game cards (home) ============ */
.game {
  display: grid; grid-template-columns: 340px 1fr; gap: 44px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px;
  margin-top: 44px;
  transition: border-color .3s ease, transform .3s ease;
}
.game:hover { border-color: #3a3442; }
.game--flagship { border-color: rgba(225, 75, 80, .35); }
.game--flagship:hover { border-color: rgba(225, 75, 80, .6); }

.game__media { display: block; }
.game__media img {
  border-radius: 10px; width: 100%; height: auto;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5);
  transition: transform .3s ease, box-shadow .3s ease;
}
a.game__media:hover img {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .65), 0 0 0 1px rgba(225, 75, 80, .4);
}
.game__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.badge {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--muted);
}
.badge--red { background: rgba(225, 75, 80, .14); border-color: rgba(225, 75, 80, .45); color: var(--accent-bright); }
.badge--ok { background: rgba(111, 191, 115, .1); border-color: rgba(111, 191, 115, .35); color: var(--ok); }
.badge--live {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(225, 75, 80, .1); border-color: rgba(225, 75, 80, .4); color: var(--accent-bright);
}
.badge--live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 rgba(225, 75, 80, .6);
  animation: pulse 2s infinite;
}
.badge--done { background: rgba(122, 162, 247, .08); border-color: rgba(122, 162, 247, .3); color: #9db4e8; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 75, 80, .55); }
  70% { box-shadow: 0 0 0 7px rgba(225, 75, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 75, 80, 0); }
}

.game__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 4.5vw, 48px); letter-spacing: .02em; line-height: 1;
}
.game__title a { color: var(--text); }
.game__title a:hover { color: var(--accent-bright); }
.game__desc { margin-top: 12px; color: #c9c5cf; max-width: 62ch; }
.game__features { margin: 18px 0 0 0; list-style: none; }
.game__features li {
  position: relative; padding-left: 26px; margin-bottom: 8px;
  color: var(--muted); font-size: 15px;
}
.game__features li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 12px; height: 12px; border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  opacity: .85;
}
.game__actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; align-items: center; }
.game__more { font-weight: 600; font-size: 15px; }

.game__shots {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px;
}
.shot {
  padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  cursor: zoom-in; background: none;
  transition: border-color .2s ease, transform .2s ease;
}
.shot:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* Mystery card */
.game--mystery { display: block; padding: 0; overflow: hidden; border-style: dashed; }
.mystery__inner {
  position: relative; text-align: center; padding: 72px 24px;
}
.mystery__static {
  position: absolute; inset: 0; opacity: .1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.9' numOctaves='1'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23s)'/%3E%3C/svg%3E");
  animation: staticShift .4s steps(3) infinite;
}
@keyframes staticShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-12px, 8px); }
  66% { transform: translate(10px, -6px); }
  100% { transform: translate(0, 0); }
}
.mystery__q {
  font-family: var(--display); font-size: 120px; line-height: 1; color: var(--line);
  text-shadow: 0 0 60px rgba(225, 75, 80, .3);
}
.mystery__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(28px, 4vw, 42px); letter-spacing: .02em; margin-top: 8px;
}
.mystery__sub { color: var(--muted); margin: 12px auto 26px; max-width: 48ch; }

/* ============ About ============ */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__text p { margin-bottom: 16px; color: #c9c5cf; }
.about__text .btn { margin-top: 8px; }
.about__media img { border-radius: var(--radius); box-shadow: 0 24px 64px rgba(0, 0, 0, .55); }
.about__media figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: right; }

/* ============ Team ============ */
.team__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px;
}
.team-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px; text-align: center;
  transition: border-color .3s ease, transform .3s ease;
}
.team-card:hover { border-color: rgba(225, 75, 80, .4); transform: translateY(-4px); }
.team-card__avatar {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 38px; color: #fff;
  background: radial-gradient(circle at 30% 25%, #3a3442, #17151b 70%);
  border: 2px solid var(--accent-dim);
  text-shadow: 0 0 18px rgba(225, 75, 80, .6);
}
.team-card__name {
  font-family: var(--display); font-weight: 400; font-size: 28px;
  letter-spacing: .04em; text-transform: uppercase;
}
.team-card__role { color: var(--accent-bright); font-size: 14px; font-weight: 600; margin-top: 2px; }
.team-card__blurb { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ============ Community ============ */
.community { text-align: center; }
.community__inner { max-width: 680px; }
.community__sub { color: var(--muted); margin-bottom: 30px; }
.community__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ Prose (SEO text sections on game pages) ============ */
.prose { max-width: 76ch; }
.prose h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(28px, 4vw, 40px); letter-spacing: .02em; line-height: 1;
  margin: 48px 0 16px;
}
.prose h2:first-child { margin-top: 0; }
.prose h2 .accent { color: var(--accent); }
.prose p { color: #c9c5cf; margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 0; list-style: none; }
.prose ul li {
  position: relative; padding-left: 26px; margin-bottom: 10px; color: #c9c5cf;
}
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px; border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  opacity: .85;
}
.prose strong { color: var(--text); }

/* FAQ */
.faq { max-width: 76ch; }
.faq details {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); margin-bottom: 12px;
  transition: border-color .2s ease;
}
.faq details[open], .faq details:hover { border-color: rgba(225, 75, 80, .35); }
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--text);
  list-style: none; position: relative; padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 24px; color: var(--accent);
}
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 20px 18px; color: #c9c5cf; }

/* Gallery on game pages */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}

/* ============ News / patch notes ============ */
.news-list { max-width: 820px; }
.news-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px; margin-bottom: 24px;
}
.news-item__date {
  font-size: 13px; color: var(--accent-bright); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.news-item__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(24px, 3vw, 32px); letter-spacing: .02em; line-height: 1.05;
  margin: 6px 0 14px;
}
.news-item__body { color: #c9c5cf; font-size: 15px; overflow-wrap: break-word; }
.news-item__body h3, .news-item__body h4, .news-item__body h5 {
  color: var(--text); margin: 18px 0 8px; font-size: 17px;
}
.news-item__body ul, .news-item__body ol { margin: 8px 0 14px 22px; }
.news-item__body li { margin-bottom: 6px; }
.news-item__body img { border-radius: 8px; margin: 12px 0; }
.news-item__body a { word-break: break-all; }
.news-item__footer { margin-top: 16px; }
.news-item__footer a { font-size: 14px; font-weight: 600; }
.news-status { color: var(--muted); padding: 24px 0; }

/* Compact updates list (game page) */
.updates-list { list-style: none; max-width: 640px; }
.updates-list li {
  border-bottom: 1px solid var(--line); padding: 14px 0;
  display: flex; justify-content: space-between; gap: 18px; align-items: baseline;
}
.updates-list a { font-weight: 600; }
.updates-list time { color: var(--muted); font-size: 13.5px; flex: none; }

/* CTA band */
.cta-band {
  text-align: center; padding: 72px 24px;
  background: var(--bg-raise); border-block: 1px solid var(--line);
}
.cta-band .section__title { margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }
.cta-band__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); background: var(--bg-raise); padding: 48px 0 40px; }
.footer__inner { display: grid; gap: 14px; justify-items: center; text-align: center; }
.footer__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 20px; letter-spacing: .06em; text-transform: uppercase;
}
.footer__brand img { width: 30px; height: 30px; }
.footer__contact { color: var(--muted); font-size: 14px; }
.footer__social { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer__social a { color: var(--muted); font-size: 14px; font-weight: 600; }
.footer__social a:hover { color: var(--accent-bright); }
.footer__legal { color: #918d9b; font-size: 12.5px; max-width: 60ch; }

/* ============ Lightbox / modal ============ */
.lightbox {
  border: none; padding: 0; background: transparent;
  max-width: min(92vw, 1280px); max-height: 90vh;
  margin: auto; /* the global reset kills the UA centering of <dialog>; restore it */
}
.lightbox::backdrop { background: rgba(5, 5, 7, .88); backdrop-filter: blur(4px); }
.lightbox img { border-radius: 10px; max-height: 85vh; width: auto; max-width: 100%; margin: 0 auto; }
.lightbox__close {
  position: absolute; top: -14px; right: -14px; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  font-size: 16px; font-weight: 700;
}
.lightbox--video { width: min(92vw, 1080px); }
.lightbox__frame { aspect-ratio: 16 / 9; width: 100%; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }

/* ============ Reveal on scroll (hidden state only when JS is running) ============ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .mystery__static, .hero__eyebrow, .badge--live::before { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .game { grid-template-columns: 260px 1fr; gap: 28px; padding: 26px; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 760px) {
  .nav__inner { height: 64px; }
  .nav__name { font-size: 18px; }
  .nav__mark { width: 34px; height: 34px; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 10, 12, .97); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 16px; justify-content: center; }
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__content { padding-top: 120px; }
  .hero__stats-inner { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }

  .page-hero { padding-top: 120px; }

  .section { padding: 72px 0; }
  .game { grid-template-columns: 1fr; }
  .game__media { max-width: 300px; }
  .game__shots { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .news-item { padding: 24px 20px; }
}
