/* ============================================================
   NK-Consulting\Games — Feuille de style commune
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Base sombre */
  --bg:        #07090f;
  --bg-2:      #0b0f18;
  --surface:   #11161f;
  --surface-2: #161c27;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  /* Texte */
  --text:      #e9eef6;
  --text-soft: #aab4c4;
  --text-mute: #6b7688;

  /* Accent INTÉGRATION (cyan électrique) */
  --c-int:     #2ee6d6;
  --c-int-2:   #1aa6ff;
  --c-int-dim: rgba(46, 230, 214, 0.12);

  /* Accent STUDIO (corail / magenta) */
  --c-game:    #ff5b6e;
  --c-game-2:  #ff8a3d;
  --c-game-dim: rgba(255, 91, 110, 0.12);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Rayons & ombres */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --shadow:    0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.6);

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Eyebrow / label mono ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.int  { color: var(--c-int); }
.eyebrow.game { color: var(--c-game); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px 28px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 2px;
}
.brand .slash { color: var(--text-mute); margin: 0 4px; font-weight: 500; }
.brand .nk { color: var(--text); }
.brand .cs { color: var(--c-int); }
.brand .gm { color: var(--c-game); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--text-soft);
  position: relative; transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.cta {
  background: var(--text); color: var(--bg);
  padding: 9px 18px; border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav-links a.cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(255,255,255,0.4); }
.nav-toggle { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-int {
  background: linear-gradient(120deg, var(--c-int), var(--c-int-2));
  color: #04140f;
  box-shadow: 0 10px 30px -12px rgba(46,230,214,0.6);
}
.btn-int:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(46,230,214,0.7); }

.btn-game {
  background: linear-gradient(120deg, var(--c-game), var(--c-game-2));
  color: #1a0508;
  box-shadow: 0 10px 30px -12px rgba(255,91,110,0.55);
}
.btn-game:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255,91,110,0.7); }

.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--text); background: rgba(255,255,255,0.04); transform: translateY(-2px); }

/* ============================================================
   SECTION SHELL
   ============================================================ */
section { position: relative; }
.section-pad { padding: 110px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  margin: 18px 0 20px;
}
.section-head p.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-soft);
  max-width: 640px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: 0.55;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(900px 600px at 78% 20%, var(--c-game-dim), transparent 60%),
    radial-gradient(900px 700px at 12% 80%, var(--c-int-dim), transparent 60%),
    linear-gradient(180deg, transparent 40%, var(--bg) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-soft);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,0.02); margin-bottom: 30px;
}
.hero-eyebrow .cs { color: var(--c-int); }
.hero-eyebrow .gm { color: var(--c-game); }
.hero-eyebrow .slash { color: var(--text-mute); }
.hero h1 {
  font-size: clamp(40px, 6.6vw, 84px);
  max-width: 16ch;
  margin-bottom: 28px;
}
.hero h1 .grad-int { background: linear-gradient(120deg, var(--c-int), var(--c-int-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .grad-game { background: linear-gradient(120deg, var(--c-game), var(--c-game-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub {
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--text-soft); max-width: 60ch; margin-bottom: 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--text-mute); font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint .line { width: 1px; height: 38px; background: linear-gradient(var(--text-mute), transparent); animation: scrolldot 2s ease-in-out infinite; }
@keyframes scrolldot { 0%,100% { opacity:.3; transform: scaleY(.6); transform-origin: top; } 50% { opacity:1; transform: scaleY(1); } }

/* ============================================================
   DUAL INTRO (les deux pôles)
   ============================================================ */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 40px; background: var(--surface);
  transition: transform .3s ease, border-color .3s ease;
}
.duo-card:hover { transform: translateY(-4px); }
.duo-card.int:hover  { border-color: rgba(46,230,214,0.4); }
.duo-card.game:hover { border-color: rgba(255,91,110,0.4); }
.duo-card .glow { position: absolute; width: 240px; height: 240px; border-radius: 50%; filter: blur(70px); top: -80px; right: -60px; opacity: .35; }
.duo-card.int  .glow { background: var(--c-int); }
.duo-card.game .glow { background: var(--c-game); }
.duo-card h3 { font-size: 26px; margin: 16px 0 12px; position: relative; }
.duo-card p { color: var(--text-soft); position: relative; }
.duo-card .num { font-family: var(--font-mono); font-size: 13px; color: var(--text-mute); position: relative; }

/* ============================================================
   GENERIC CARDS GRID
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); padding: 30px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.card:hover { transform: translateY(-5px); background: var(--surface-2); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 20px;
  border: 1px solid var(--line);
}
.card .ico svg { width: 23px; height: 23px; stroke-width: 1.6; }
.card.int  .ico { background: var(--c-int-dim);  color: var(--c-int); }
.card.int:hover  { border-color: rgba(46,230,214,0.35); }
.card.game .ico { background: var(--c-game-dim); color: var(--c-game); }
.card.game:hover { border-color: rgba(255,91,110,0.35); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 15.5px; }

/* ---------- Stats row ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.stat .v { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4vw, 48px); line-height: 1; }
.stat.int .v  { color: var(--c-int); }
.stat.game .v { color: var(--c-game); }
.stat .k { color: var(--text-mute); font-size: 14px; margin-top: 8px; font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ============================================================
   FLUX DIAGRAM (intégration)
   ============================================================ */
.flux {
  margin-top: 64px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 48px 40px; position: relative; overflow: hidden;
}
.flux-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 0; }
.flux-node {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.flux-node .box {
  width: 100%; max-width: 200px; padding: 22px 18px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface-2); position: relative;
}
.flux-node .box .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }
.flux-node .box .title { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-top: 6px; }
.flux-node .tag { font-size: 13px; color: var(--text-soft); }
.flux-node.mid .box { border-color: rgba(46,230,214,0.4); box-shadow: 0 0 40px -16px var(--c-int); }

.flux-link { position: relative; height: 2px; min-width: 60px; background: var(--line-2); }
.flux-link .packet {
  position: absolute; top: 50%; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-int); box-shadow: 0 0 12px 2px var(--c-int);
  transform: translateY(-50%);
  animation: packet 2.4s linear infinite;
}
.flux-link .packet.b { animation-delay: 1.2s; background: var(--c-int-2); box-shadow: 0 0 12px 2px var(--c-int-2); }
@keyframes packet { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.flux-caption { margin-top: 32px; text-align: center; color: var(--text-mute); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; }

/* ============================================================
   DATA STREAM (intégration) — bandeau canvas animé
   ============================================================ */
.data-stream {
  margin-top: 56px;
  position: relative;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #0a1318, var(--bg-2));
  overflow: hidden;
}
.data-stream canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.data-stream .hud {
  position: absolute; top: 14px; left: 18px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--c-int); display: flex; align-items: center; gap: 8px;
}
.data-stream .hud .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--c-int); box-shadow: 0 0 10px 1px var(--c-int); animation: pip 1.4s ease-in-out infinite; }
@keyframes pip { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
.data-stream .hud.right { left: auto; right: 18px; color: var(--text-mute); }

/* ============================================================
   FEATURE GAME — projet unique mis en avant
   ============================================================ */
.feature-game {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  transition: border-color .3s ease;
}
.feature-game:hover { border-color: rgba(255,91,110,0.4); }
.feature-game .visual {
  position: relative; min-height: 340px; overflow: hidden;
  background: #0a0610; border-right: 1px solid var(--line);
}
.feature-game .visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-game .visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; }
.feature-game .visual .hud-corner {
  position: absolute; z-index: 2; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-game);
}
.feature-game .visual .hud-corner.tl { top: 14px; left: 16px; }
.feature-game .visual .hud-corner.br { bottom: 14px; right: 16px; color: rgba(255,255,255,0.55); }
.feature-game .info { padding: 44px 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.feature-game .info .badge {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-game); border: 1px solid rgba(255,91,110,0.35); border-radius: 999px;
  padding: 5px 13px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-bottom: 20px;
}
.feature-game .info .badge .live { width: 7px; height: 7px; border-radius: 50%; background: var(--c-game); box-shadow: 0 0 10px 1px var(--c-game); animation: pip 1.4s ease-in-out infinite; }
.feature-game .info h3 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 14px; }
.feature-game .info p { color: var(--text-soft); font-size: 16px; margin-bottom: 14px; }
.feature-game .info .meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.feature-game .info .meta span {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-soft);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px;
}
@media (max-width: 760px) {
  .feature-game { grid-template-columns: 1fr; }
  .feature-game .visual { border-right: none; border-bottom: 1px solid var(--line); min-height: 240px; }
}

/* ============================================================
   STUDIO — visuel arcade
   ============================================================ */
.studio { background: var(--bg-2); }
.studio::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(700px 500px at 85% 0%, var(--c-game-dim), transparent 60%),
    radial-gradient(600px 500px at 0% 100%, rgba(255,138,61,0.08), transparent 60%);
  pointer-events: none;
}
.studio .wrap { position: relative; z-index: 1; }

.arcade {
  position: relative; height: 280px; margin-top: 8px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: #0a0610;
}
.arcade canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.arcade .hud-label {
  position: absolute; z-index: 2; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-game);
  display: flex; align-items: center; gap: 8px;
}
.arcade .hud-label.tl { top: 14px; left: 16px; }
.arcade .hud-label.tr { top: 14px; right: 16px; color: rgba(255,255,255,0.5); }
.arcade .hud-label.bl { bottom: 14px; left: 16px; color: rgba(255,255,255,0.5); }
.arcade .hud-label .live { width: 7px; height: 7px; border-radius: 50%; background: var(--c-game); box-shadow: 0 0 10px 1px var(--c-game); animation: pip 1.4s ease-in-out infinite; }
.arcade .grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: 0; height: 65%;
  background-image:
    linear-gradient(rgba(255,91,110,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,91,110,0.35) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(340px) rotateX(64deg);
  transform-origin: bottom center;
  animation: gridmove 5s linear infinite;
  mask-image: linear-gradient(transparent, #000 40%);
  -webkit-mask-image: linear-gradient(transparent, #000 40%);
}
@keyframes gridmove { from { background-position: 0 0; } to { background-position: 0 44px; } }
.arcade .sun {
  position: absolute; top: 26%; left: 50%; transform: translateX(-50%);
  width: 150px; height: 150px; border-radius: 50%;
  background: linear-gradient(180deg, var(--c-game-2), var(--c-game));
  box-shadow: 0 0 80px -10px var(--c-game);
}
.arcade .sun::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-linear-gradient(transparent 0 10px, #0a0610 10px 14px);
  mask-image: linear-gradient(transparent 45%, #000 45%);
  -webkit-mask-image: linear-gradient(transparent 45%, #000 45%);
}
.arcade .blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .85; }
.arcade .float { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(8deg); } }

/* game project cards */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.game-card {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--surface); transition: transform .3s ease, border-color .3s ease;
}
.game-card:hover { transform: translateY(-6px); border-color: rgba(255,91,110,0.4); }
.game-card .thumb {
  aspect-ratio: 16 / 10; position: relative; display: grid; place-items: center;
  background:
    linear-gradient(135deg, rgba(255,91,110,0.18), rgba(255,138,61,0.1)),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--text-mute); overflow: hidden;
}
.game-card .thumb .ph {
  text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px;
}
.game-card .thumb .ph svg { width: 30px; height: 30px; opacity: .6; }
.game-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-card .body { padding: 22px 24px 26px; }
.game-card .body .badge {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-game); border: 1px solid rgba(255,91,110,0.35); border-radius: 999px;
  padding: 4px 12px; display: inline-block; margin-bottom: 14px;
}
.game-card .body h3 { font-size: 21px; margin-bottom: 8px; }
.game-card .body p { color: var(--text-soft); font-size: 15px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info .pole {
  display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.contact-info .pole:last-child { border-bottom: none; }
.contact-info .pole .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; flex: none; }
.contact-info .pole.int  .dot { background: var(--c-int); box-shadow: 0 0 14px 2px var(--c-int); }
.contact-info .pole.game .dot { background: var(--c-game); box-shadow: 0 0 14px 2px var(--c-game); }
.contact-info .pole h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; }
.contact-info .pole p { color: var(--text-soft); font-size: 15px; }
.contact-info .direct { margin-top: 36px; }
.contact-info .direct a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.contact-info .direct a svg { width: 18px; height: 18px; color: var(--c-int); }

form.card-form {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 36px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--text-soft); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 13px 15px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-int); box-shadow: 0 0 0 3px var(--c-int-dim);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13px; color: var(--text-mute); margin-top: 16px; }
.form-ok { display: none; color: var(--c-int); font-weight: 600; margin-top: 16px; }
.form-err { display: none; color: var(--c-game); font-weight: 600; margin-top: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { font-size: 22px; margin-bottom: 12px; }
.footer p.tag { color: var(--text-mute); max-width: 38ch; font-size: 15px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); margin: 0 0 16px; }
.footer-col a { display: block; color: var(--text-soft); font-size: 15px; margin-bottom: 11px; transition: color .2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-mute); font-size: 13px; font-family: var(--font-mono); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.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) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .flux-link .packet, .arcade .grid-floor, .arcade .float, .scroll-hint .line { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .cards, .games-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .flux-grid { grid-template-columns: 1fr; gap: 28px; }
  .flux-link { width: 2px; height: 44px; min-width: 0; margin: 0 auto; }
  .flux-link .packet { left: 50%; top: 0; transform: translateX(-50%); animation: packetv 2.4s linear infinite; }
  .flux-link .packet.b { animation: packetv 2.4s linear infinite; animation-delay: 1.2s; }
  @keyframes packetv { 0% { top:0; opacity:0; } 10%{opacity:1;} 90%{opacity:1;} 100%{ top:100%; opacity:0; } }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7,9,15,0.96); backdrop-filter: blur(14px); padding: 24px 28px; gap: 20px;
    border-bottom: 1px solid var(--line); align-items: flex-start;
  }
  .nav-toggle {
    display: grid; place-items: center; width: 42px; height: 42px;
    background: transparent; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; color: var(--text);
  }
  .duo { grid-template-columns: 1fr; }
  .cards, .games-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section-pad { padding: 80px 0; }
  .stats { gap: 32px; }
}
