@charset "UTF-8";
/* ===================================================================
   Tripple Bunk Studios — shared base
   Reset + design tokens + nav + footer + utilities.
   Each page loads this first, then its own theme sheet which overrides
   the --token values so the nav/footer auto-theme per game.
   =================================================================== */

/* ── Self-hosted brand fonts (shared with the actual game UI) ─────── */
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/Cinzel.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body, "Jost", system-ui, sans-serif);
  background: var(--bg, #0a0a0c);
  color: var(--fg, #e9e9ee);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display, "Cinzel", serif); line-height: 1.1; font-weight: 700; }

/* ── Default (studio) token set ──────────────────────────────────── */
:root {
  --bg: #0a0a0e;
  --bg-2: #111118;
  --panel: rgba(255,255,255,0.035);
  --panel-2: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.20);
  --fg: #ececf2;
  --fg-dim: #a6a6b4;
  --fg-faint: #8b8b9a;
  --accent: #7c5cff;          /* studio violet */
  --accent-2: #b66cff;
  --accent-ink: #ffffff;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
  --maxw: 1240px;
  --nav-h: 70px;
}

/* ── Layout helpers ──────────────────────────────────────────────── */
.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: .02em; }
.lead { color: var(--fg-dim); font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 62ch; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-body); font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; font-size: .82rem;
  padding: 15px 30px; border: 1px solid var(--accent);
  color: var(--accent-ink); background: var(--accent);
  transition: transform .18s ease, box-shadow .25s ease, background .25s, color .25s;
  clip-path: var(--btn-clip, none);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px var(--accent); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
/* "Coming soon" — non-clickable placeholder (e.g. Steam page not live yet) */
.btn--soon { background: transparent; color: var(--fg-dim); border-color: var(--border); cursor: default; }
.btn--soon:hover { transform: none; box-shadow: none; }
.btn__tag {
  font-style: normal; font-size: .62rem; letter-spacing: .12em; line-height: 1;
  padding: 4px 8px; border-radius: 100px; background: var(--accent); color: var(--accent-ink);
}

/* ── Top navigation (shared across all pages) ────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom-color: var(--border); }
.nav__inner { width: min(100% - 48px, 1360px); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; letter-spacing: .04em; font-size: 1.02rem; }
.nav__brand .mark { width: 34px; height: 34px; flex: none; }
.nav__brand b { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  font-family: var(--font-body); font-weight: 500; font-size: .86rem;
  letter-spacing: .04em; color: var(--fg-dim); padding: 9px 15px; border-radius: 4px;
  position: relative; transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--fg); }
.nav__links a.active { color: var(--fg); font-weight: 600; }
.nav__links a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px;
  background: var(--accent);
}
/* ── Lord of the Halo dropdown (Classes nests here) ──────────────── */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__parent { display: inline-flex; align-items: center; gap: 5px; }
.nav__caret { font-size: .62em; transition: transform .25s; opacity: .8; }
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: rotate(180deg); }
.nav__dd {
  position: absolute; top: 100%; left: 0; min-width: 215px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px;
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  box-shadow: 0 20px 44px rgba(0,0,0,.55); z-index: 120;
}
.nav__dd::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__item:hover .nav__dd, .nav__item:focus-within .nav__dd { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dd a { padding: 9px 12px !important; font-size: .85rem; color: var(--fg-dim); border-radius: 4px; white-space: nowrap; }
.nav__dd a::after { content: none !important; }
.nav__dd a:hover { color: var(--fg); background: var(--panel-2); }
.nav__dd a.active { color: var(--accent); }
.nav__cta { margin-left: 8px; padding: 9px 18px !important; border: 1px solid var(--accent); color: var(--accent) !important; border-radius: 4px; }
.nav__cta:hover { background: var(--accent); color: var(--accent-ink) !important; }
.nav__burger { display: none; margin-left: auto; width: 30px; height: 22px; position: relative; }
.nav__burger span { position: absolute; left: 0; right: 0; height: 2px; background: var(--fg); transition: .3s; }
.nav__burger span:nth-child(1) { top: 0; } .nav__burger span:nth-child(2) { top: 10px; } .nav__burger span:nth-child(3) { top: 20px; }
.nav.open .nav__burger span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 12px 24px 24px; transform: translateY(-130%); transition: transform .35s ease; align-items: stretch;
  }
  .nav.open .nav__links { transform: translateY(0); }
  .nav__links a { padding: 14px 8px; border-bottom: 1px solid var(--border); }
  .nav__cta { margin: 12px 8px 0; text-align: center; }
  /* dropdown becomes an indented, always-visible sub-list on mobile */
  .nav__item { flex-direction: column; align-items: stretch; }
  .nav__caret { display: none; }
  .nav__dd { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-radius: 0; background: transparent; padding: 0 0 0 16px; min-width: 0; }
  .nav__dd::before { display: none; }
  .nav__dd a { font-size: .82rem; }
}

/* ── Footer (shared) ─────────────────────────────────────────────── */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 70px 0 36px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer__brand .mark { width: 44px; height: 44px; margin-bottom: 16px; }
.footer h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .2em; font-size: .76rem; color: var(--fg-faint); margin-bottom: 16px; }
.footer a { color: var(--fg-dim); font-size: .92rem; display: block; padding: 5px 0; transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer__socials { display: flex; gap: 12px; margin-top: 18px; }
.footer__socials a {
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--border); border-radius: 6px; transition: .2s;
}
.footer__socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer__socials svg { width: 18px; height: 18px; }
.footer__bottom {
  border-top: 1px solid var(--border); margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--fg-faint); font-size: .82rem; font-family: var(--font-body);
}
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── Scroll-reveal ───────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Misc ────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; font-family: var(--font-body); font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em; padding: 5px 11px;
  border: 1px solid var(--border-strong); border-radius: 100px; color: var(--fg-dim);
}
.kicker-line { width: 54px; height: 3px; background: var(--accent); margin-bottom: 22px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* thin custom scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }

/* ── Lightbox (gallery) ──────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 4vw;
  background: rgba(5,5,8,.94); backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; animation: lbfade .25s ease; }
@keyframes lbfade { from { opacity: 0; } }
.lightbox img { max-width: min(1400px, 96vw); max-height: 90vh; width: auto; height: auto; border: 1px solid var(--border-strong); box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.lightbox__close { position: absolute; top: 22px; right: 28px; font-size: 2.6rem; line-height: 1; color: var(--fg); opacity: .7; transition: opacity .2s, transform .2s; }
.lightbox__close:hover { opacity: 1; transform: scale(1.1); }
