/* ═══════════════════════════════════════════════════════════
   DEBLOCK STUDIOS — v2 (rebuilt from scratch)
   Design system: pixel forge — orange voxel, blocky edges
   Fonts: Press Start 2P (display) / Space Grotesk (body)
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --bg:        #0b0703;
  --bg-2:      #150d05;
  --surface:   rgba(255, 148, 43, 0.045);
  --surface-2: rgba(255, 148, 43, 0.085);
  --border:    rgba(255, 148, 43, 0.13);
  --border-2:  rgba(255, 148, 43, 0.24);

  --accent:    #ff7a1a;
  --accent-2:  #ffb054;
  --amber:     #ffc75e;
  --text:      #f6efe3;
  --muted:     #b09a83;

  --grad:      linear-gradient(120deg, #ff5e1a 0%, #ff9426 55%, #ffc75e 120%);
  --grad-soft: linear-gradient(120deg, rgba(255,126,26,.16), rgba(255,199,94,.10));

  /* chunky Minecraft-style bevel */
  --bevel-dark:  rgba(20, 8, 0, 0.38);
  --bevel-light: rgba(255, 255, 255, 0.28);

  --font-display: 'Press Start 2P', system-ui, sans-serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;

  --radius:   10px;
  --radius-sm: 8px;
  --nav-h:    72px;
  --shadow:   0 24px 60px -20px rgba(0, 0, 0, .65);
}

/* Wildium theme override — embers redder, still in the forge family */
body[data-theme="wildium"] {
  --accent:   #ff5a1f;
  --accent-2: #ffb054;
  --amber:    #ffd166;
  --grad:     linear-gradient(120deg, #ff3d1f 0%, #ff8a1f 55%, #ffd166 120%);
  --grad-soft: linear-gradient(120deg, rgba(255,61,31,.2), rgba(255,209,102,.12));
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Press Start 2P has a single weight: never fake-bold it */
  font-synthesis: none;
}

/* Atmosphere: warm ember glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 700px at 85% -10%, rgba(255, 122, 26, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(255, 199, 94, 0.07), transparent 60%),
    var(--bg);
}

::selection { background: rgba(255, 122, 26, .4); color: #fff; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent), rgba(255, 199, 94, .5));
  border-radius: 8px;
  border: 2px solid var(--bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ── Atmosphere layers ─────────────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .032;
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Typography helpers ─────────────────────────────── */
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 5px;
  background: var(--grad);
  box-shadow: inset -2px -2px 0 var(--bevel-dark), inset 2px 2px 0 var(--bevel-light);
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s, background .25s;
  will-change: transform;
}

.btn svg { transition: transform .25s; }

.btn-primary {
  background: var(--grad);
  color: #1c0d02;
  box-shadow:
    inset -4px -4px 0 var(--bevel-dark),
    inset 4px 4px 0 var(--bevel-light),
    0 10px 34px -8px rgba(255, 122, 26, .55);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    inset -4px -4px 0 var(--bevel-dark),
    inset 4px 4px 0 var(--bevel-light),
    0 18px 44px -8px rgba(255, 140, 26, .72);
}
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text);
  backdrop-filter: blur(8px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .35), inset 3px 3px 0 rgba(255, 255, 255, .08);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 148, 43, .75);
  background: var(--surface-2);
  box-shadow:
    inset -3px -3px 0 rgba(0, 0, 0, .35),
    inset 3px 3px 0 rgba(255, 255, 255, .08),
    0 14px 34px -14px rgba(255, 122, 26, .38);
}

/* ── Navbar ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}

.nav.scrolled {
  background: rgba(11, 7, 3, .78);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  color: #fff;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-brand .brand-logo {
  width: 50px;
  height: 50px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a:not(.btn) {
  position: relative;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -7px;
  width: 100%; height: 3px;
  background: var(--grad);
  box-shadow: inset -2px -2px 0 var(--bevel-dark), inset 2px 2px 0 var(--bevel-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

.nav-cta {
  padding: 10px 20px;
  border-radius: 6px;
  background: var(--grad);
  color: #1c0d02 !important;
  font-family: var(--font-display);
  font-size: .62rem !important;
  font-weight: 400 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: inset -3px -3px 0 var(--bevel-dark), inset 3px 3px 0 var(--bevel-light);
  transition: transform .25s, box-shadow .25s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    inset -3px -3px 0 var(--bevel-dark),
    inset 3px 3px 0 var(--bevel-light),
    0 10px 28px -8px rgba(255, 122, 26, .65);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.lang-btn {
  padding: 4px 10px;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.lang-btn.active {
  color: #1c0d02;
  background: var(--grad);
  box-shadow: inset -2px -2px 0 var(--bevel-dark), inset 2px 2px 0 var(--bevel-light);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
  transition: transform .3s, opacity .3s;
}

/* ── Drawer (mobile nav) ────────────────────────────── */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: rgba(11, 7, 3, .94);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.drawer.open { opacity: 1; visibility: visible; }

.drawer a:not(.btn) {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  padding: 12px;
  color: var(--text);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .4s, transform .4s, color .25s;
}
.drawer a:hover { color: var(--accent-2); }
.drawer.open a { opacity: 1; transform: none; }
.drawer.open a:nth-child(1) { transition-delay: .05s; }
.drawer.open a:nth-child(2) { transition-delay: .1s; }
.drawer.open a:nth-child(3) { transition-delay: .15s; }
.drawer.open a:nth-child(4) { transition-delay: .2s; }
.drawer.open a:nth-child(5) { transition-delay: .25s; }
.drawer .lang-switcher { margin-top: 22px; opacity: 0; transition: opacity .4s .3s; }
.drawer.open .lang-switcher { opacity: 1; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 20px 90px;
  overflow: hidden;
}

/* Ember glow rising from behind the hero */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -220px;
  width: 1200px;
  height: 520px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(50% 60% at 50% 100%, rgba(255, 94, 26, .16), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.hero-inner .eyebrow { justify-content: center; animation: fadeUp .8s .1s both; }
.hero-inner .eyebrow::after {
  content: "";
  width: 30px; height: 5px;
  background: var(--grad);
  box-shadow: inset -2px -2px 0 var(--bevel-dark), inset 2px 2px 0 var(--bevel-light);
}

.hero-title {
  margin: 26px 0 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4.8vw, 3.1rem);
  line-height: 1.5;
  text-transform: uppercase;
}
.hero-title span { display: inline-block; animation: fadeUp 1s cubic-bezier(.2,.8,.2,1) both; }
.hero-title .l1 { animation-delay: .18s; text-shadow: 4px 4px 0 rgba(255, 94, 26, .28); }
.hero-title .l2 { animation-delay: .28s; filter: drop-shadow(0 10px 26px rgba(255, 122, 26, .35)); }
.hero-title .l3 { animation-delay: .38s; text-shadow: 4px 4px 0 rgba(255, 94, 26, .28); }

.hero-sub {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  animation: fadeUp 1s .45s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 38px;
  animation: fadeUp 1s .6s both;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: fadeUp 1s .8s both;
}
.scroll-hint .mouse {
  width: 22px; height: 36px;
  border: 1.5px solid var(--border-2);
  border-radius: 4px;
  position: relative;
}
.scroll-hint .mouse::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 1px;
  background: var(--accent);
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ── Marquee ────────────────────────────────────────── */
.marquee {
  position: relative;
  z-index: 2;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 148, 43, .025);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
  will-change: transform;
}

.marquee-track > span {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  white-space: nowrap;
}
.marquee-track .mi {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 239, 227, .5);
}
/* separators become little voxel cubes */
.marquee-track em {
  font-style: normal;
  display: inline-block;
  width: 12px; height: 12px;
  color: transparent;
  background: var(--grad);
  box-shadow:
    inset -3px -3px 0 var(--bevel-dark),
    inset 3px 3px 0 var(--bevel-light),
    3px 3px 0 rgba(255, 94, 26, .3);
}

@keyframes marquee {
  to { transform: translate3d(-50%, 0, 0); }
}

/* ── Sections ───────────────────────────────────────── */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 11vw, 130px) clamp(20px, 5vw, 72px);
  max-width: 1240px;
  margin: 0 auto;
}

.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.2vw, 1.95rem);
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
}

/* pixel bar under section titles */
.section-head h2::after,
.about-text h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 8px;
  margin-top: 18px;
  background: var(--grad);
  box-shadow: inset -3px -3px 0 var(--bevel-dark), inset 3px 3px 0 var(--bevel-light);
}

.section-head p {
  margin-top: 14px;
  max-width: 520px;
  color: var(--muted);
}

/* ── Stats band ─────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat {
  background: rgba(21, 13, 5, .85);
  backdrop-filter: blur(10px);
  padding: 34px 20px;
  text-align: center;
  transition: background .3s;
}
.stat:hover { background: rgba(32, 20, 8, .92); }

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.75rem);
  font-weight: 400;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(3px 3px 0 rgba(255, 94, 26, .3));
}
.stat span {
  display: block;
  margin-top: 8px;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Project cards ──────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, var(--surface-2), rgba(255,148,43,.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color .35s, box-shadow .35s, transform .2s ease-out;
  will-change: transform;
}
.project-card:hover {
  border-color: rgba(255, 148, 43, .5);
  box-shadow: 0 30px 70px -22px rgba(255, 122, 26, .32), var(--shadow);
}

/* Crafting-frame corner brackets */
.project-card::before,
.project-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
}
.project-card::before {
  top: 12px; left: 12px;
  border-top: 3px solid var(--accent);
  border-left: 3px solid var(--accent);
}
.project-card::after {
  bottom: 12px; right: 12px;
  border-bottom: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
}
.project-card:hover::before,
.project-card:hover::after { opacity: 1; }

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.project-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s;
  filter: saturate(.9);
}
.project-card:hover .project-media img { transform: scale(1.08); filter: saturate(1.15); }

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,7,3,.8));
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 26px;
}

.project-body h3 {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 400;
  line-height: 1.6;
  text-transform: uppercase;
}

.project-body > p {
  margin-top: 12px;
  font-size: .93rem;
  color: var(--muted);
  flex: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-2);
  transition: color .25s;
}
.project-link svg { transition: transform .25s; }
.project-link:hover { color: var(--text); }
.project-link:hover svg { transform: translateX(5px); }

/* ── About / studio ─────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.about-text h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
}
.about-text p { margin-top: 20px; color: var(--muted); }
.about-text .btn { margin-top: 34px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--surface-2), rgba(255,148,43,.01));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 148, 43, .45);
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s;
}
.feature:hover::before { opacity: 1; }

.feature .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 6px;
  font-size: 1.25rem;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  box-shadow: inset -3px -3px 0 rgba(20, 8, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .1);
}
.feature h4 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 400;
  line-height: 1.6;
  text-transform: uppercase;
}
.feature p {
  margin-top: 8px;
  font-size: .87rem;
  color: var(--muted);
}

/* ── CTA band ───────────────────────────────────────── */
.cta-band {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px) clamp(80px, 11vw, 130px);
}

.cta-card {
  position: relative;
  text-align: center;
  padding: clamp(54px, 8vw, 90px) clamp(24px, 6vw, 80px);
  border-radius: 14px;
  background:
    radial-gradient(600px 300px at 50% 0%, var(--grad-soft), transparent 70%),
    linear-gradient(165deg, rgba(255,148,43,.07), rgba(255,148,43,.01));
  border: 1px solid var(--border-2);
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 12%; right: 12%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.cta-card h2 {
  margin: 20px auto 0;
  max-width: 640px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3vw, 1.75rem);
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
}
.cta-card p {
  margin: 18px auto 0;
  max-width: 520px;
  color: var(--muted);
}
.cta-card .hero-actions { margin-top: 36px; }

/* ── Footer ─────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  background: rgba(8, 5, 2, .62);
  padding: 70px clamp(20px, 5vw, 72px) 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  max-width: 1240px;
  margin: 0 auto;
}

.footer-brand .nav-logo { font-size: 1.1rem; }
.footer-brand p {
  margin-top: 16px;
  max-width: 300px;
  font-size: .92rem;
  color: var(--muted);
}
.footer-brand .socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .25), inset 2px 2px 0 rgba(255, 255, 255, .06);
  transition: color .25s, border-color .25s, transform .25s;
}
.socials a:hover { color: var(--accent-2); border-color: rgba(255,148,43,.55); transform: translateY(-3px); }

.footer-col h5 {
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  position: relative;
  color: var(--muted);
  font-size: .92rem;
  transition: color .25s, padding-left .25s;
}
.footer-col a:hover { color: var(--text); padding-left: 6px; }

.footer-bottom {
  max-width: 1240px;
  margin: 56px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .82rem;
  color: var(--muted);
}
.footer-bottom span:last-child { color: rgba(255, 148, 43, .8); }

/* ── Reveal on scroll ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Tilt cards: keep hover transforms snappy instead of inheriting the slow reveal transition */
.reveal[data-tilt] {
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .2s ease-out;
}

/* ═══════════════════════════════════════════════════════
   WILDIUM page
   ═══════════════════════════════════════════════════════ */

/* Wildium about */
.wildium-about-layout {
  display: block;
}

.wildium-about-layout .section-head {
  margin-bottom: 0;
}

/* Wildium stats */
.wildium-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.wildium-stat {
  padding: 30px 20px;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), rgba(255,148,43,.01));
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  transition: transform .2s ease-out, border-color .3s, box-shadow .3s;
  will-change: transform;
}
.wildium-stat:hover { transform: translateY(-5px); border-color: rgba(255, 90, 31, .5); }
.wildium-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 400;
}
.wildium-stat span {
  display: block;
  margin-top: 8px;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--surface-2), rgba(255,148,43,.01));
  border: 1px solid var(--border);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .2s ease-out, border-color .35s, box-shadow .35s;
  will-change: transform;
}
.feature-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover { border-color: rgba(255, 90, 31, .45); box-shadow: 0 26px 60px -22px rgba(255, 90, 31, .38); }
.feature-card:hover::after { opacity: 1; }

.feature-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  font-size: 1.4rem;
  border-radius: 8px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  box-shadow: inset -3px -3px 0 rgba(20, 8, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .1);
}
.feature-card h3 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.6;
  text-transform: uppercase;
}
.feature-card p {
  margin-top: 10px;
  font-size: .9rem;
  color: var(--muted);
}

/* Gameplay steps */
.gameplay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.gameplay-step {
  position: relative;
  padding: 34px 28px 30px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--surface-2), rgba(255,148,43,.01));
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  transition: transform .2s ease-out, border-color .35s;
  will-change: transform;
}
.gameplay-step:hover { border-color: rgba(255, 209, 102, .45); }
.gameplay-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 400;
  color: #1c0d02;
  background: var(--grad);
  box-shadow:
    inset -3px -3px 0 var(--bevel-dark),
    inset 3px 3px 0 var(--bevel-light),
    0 8px 24px -8px rgba(255, 90, 31, .6);
}
.gameplay-step h3 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 400;
  line-height: 1.6;
  text-transform: uppercase;
}
.gameplay-step p {
  margin-top: 10px;
  font-size: .9rem;
  color: var(--muted);
}

/* Join */
.join-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(50px, 7vw, 76px) clamp(24px, 6vw, 70px);
  border-radius: 14px;
  background:
    radial-gradient(520px 260px at 50% 0%, var(--grad-soft), transparent 70%),
    linear-gradient(165deg, rgba(255,148,43,.07), rgba(255,148,43,.01));
  border: 1px solid var(--border-2);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .2s ease-out, border-color .35s, box-shadow .35s;
  will-change: transform;
}
.join-card:hover {
  border-color: rgba(255, 90, 31, .5);
  box-shadow: 0 30px 70px -25px rgba(255, 90, 31, .3);
}
.join-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 15%; right: 15%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.join-card h2 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.4vw, 1.85rem);
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
}
.join-card > p { margin-top: 16px; color: var(--muted); }

.join-ip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(11, 7, 3, .6);
  border: 1px solid var(--border);
}
.join-ip code {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: .04em;
}
.join-note { margin-top: 18px; font-size: .84rem; color: var(--muted); opacity: .8; }

/* ═══════════════════════════════════════════════════════
   LEGAL page
   ═══════════════════════════════════════════════════════ */
.legal {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 70px) clamp(20px, 5vw, 56px) 100px;
}
.legal h1 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
}
.legal .updated {
  margin-top: 12px;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal article {
  margin-top: 46px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--surface-2), rgba(255,148,43,.01));
  border: 1px solid var(--border);
}
.legal h2 {
  margin: 34px 0 12px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--accent-2);
}
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--muted); font-size: .95rem; }
.legal a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1020px) {
  .projects-grid, .features-grid, .gameplay-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .projects-grid, .features-grid, .gameplay-grid { grid-template-columns: 1fr; }
  .wildium-stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
