/* ============================================================
   SOULSTICK INTERACTIVE - Design System
   Dark cinematic theme · Red/Orange accent
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --bg-2: #101014;
  --surface: #16161c;
  --surface-2: #1d1d24;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --muted: #a2a2ac;
  --dim: #6b6b74;
  --accent: #ff3b30;
  --accent-2: #ff7a2f;
  --accent-grad: linear-gradient(100deg, #ff3b30, #ff7a2f);
  --font-display: "Space Grotesk", "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --nav-h: 76px;
  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
}

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

html { scroll-behavior: smooth; }

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

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

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a32; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.08;
  text-transform: uppercase;
}

.h-xl { font-size: clamp(2.7rem, 6.5vw, 5.6rem); }
.h-lg { font-size: clamp(2.1rem, 4.5vw, 3.6rem); }
.h-md { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.h-sm { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.text-grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent-grad);
}

.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }

/* ---------- Layout ---------- */
.container { width: min(1240px, 92vw); margin-inline: auto; }
.container-wide { width: min(1500px, 94vw); margin-inline: auto; }

section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.section-tight { padding: clamp(50px, 6vw, 80px) 0; }

.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head .lead { margin-top: 16px; }

.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, color 0.35s, border-color 0.35s;
  isolation: isolate;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-primary { background: var(--accent-grad); color: #fff; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.6s var(--ease-out);
  z-index: -1;
}
.btn-primary:hover::after { transform: translateX(110%); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(255, 59, 48, 0.35); }

.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-3px); }

.btn-dark { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-dark:hover { border-color: var(--accent); transform: translateY(-3px); }

.btn-steam { background: #1b2838; color: #cfe4f5; border: 1px solid #2a475e; }
.btn-steam:hover { background: #2a475e; transform: translateY(-3px); }

/* ---------- Loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition: opacity 0.7s ease, visibility 0.7s;
}
#loader.done { opacity: 0; visibility: hidden; }
#loader .loader-logo {
  height: 110px;
  width: auto;
  opacity: 0;
  animation: loaderIn 0.9s var(--ease-out) forwards;
}
#loader .loader-bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border-radius: 2px;
}
#loader .loader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--accent-grad);
  animation: loaderBar 1.1s ease-in-out infinite;
}
@keyframes loaderIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes loaderBar { 0% { transform: translateX(-120%); } 100% { transform: translateX(420%); } }

/* ---------- Page transition veil ---------- */
#veil {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  pointer-events: none;
}
#veil.on { opacity: 1; visibility: visible; pointer-events: all; }

/* ---------- Custom cursor: animated ember trail (native arrow hidden) ---------- */
#cursor-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9997;
  display: none;
}
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  body.has-cursor, body.has-cursor * { cursor: none !important; }
  body.has-cursor #cursor-canvas { display: block; }
}

/* ---------- Navbar ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.45s ease, box-shadow 0.45s ease, backdrop-filter 0.45s;
}
#navbar.solid {
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line), 0 14px 40px rgba(0, 0, 0, 0.45);
}
#navbar .nav-inner {
  width: min(1500px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
#navbar .nav-logo { display: flex; align-items: center; gap: 11px; }
#navbar .nav-logo img { height: 36px; width: auto; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.wordmark .wm-top { font-size: 1.02rem; }
.wordmark .wm-sub {
  font-size: 0.56rem;
  letter-spacing: 0.42em;
  color: var(--accent-2);
  margin-top: 2px;
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}
.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--text); }
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { transform: scaleX(1); }
.nav-links .caret { width: 9px; height: 9px; opacity: 0.6; transition: transform 0.3s; }
.nav-links li:hover .caret { transform: rotate(180deg); }

/* Mega dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 12px);
  min-width: 460px;
  background: rgba(16, 16, 20, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  box-shadow: var(--shadow-lg);
}
.nav-links li:hover .dropdown, .dropdown:hover { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.drop-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid transparent;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.drop-card:hover { border-color: rgba(255, 59, 48, 0.5); transform: translateY(-3px); }
.drop-card .drop-thumb { aspect-ratio: 16 / 8; overflow: hidden; }
.drop-card .drop-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.drop-card:hover .drop-thumb img { transform: scale(1.07); }
.drop-card .drop-body { padding: 12px 14px; }
.drop-card .drop-title { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.04em; }
.drop-card .drop-sub { font-size: 0.72rem; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }
.drop-all {
  grid-column: 1 / -1;
  text-align: center;
  padding: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px dashed rgba(255, 122, 47, 0.35);
  border-radius: 10px;
  transition: background 0.3s, border-color 0.3s;
}
.drop-all:hover { background: rgba(255, 59, 48, 0.08); border-color: var(--accent); }

/* Burger + mobile menu */
#burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1002;
}
#burger span { width: 26px; height: 2px; background: var(--text); transition: transform 0.35s var(--ease-out), opacity 0.3s; }
#burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#burger.open span:nth-child(2) { opacity: 0; }
#burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(8, 8, 10, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 8vw 50px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
#mobile-menu.open { opacity: 1; visibility: visible; }
#mobile-menu a.mm-link {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  text-transform: uppercase;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
  transition: color 0.3s;
}
#mobile-menu.open a.mm-link { animation: mmIn 0.55s var(--ease-out) forwards; }
#mobile-menu a.mm-link:hover { color: var(--accent-2); }
#mobile-menu a.mm-link .mm-num { font-size: 0.85rem; color: var(--dim); font-family: var(--font-body); letter-spacing: 0.2em; }
@keyframes mmIn { to { opacity: 1; transform: none; } }
#mobile-menu .mm-foot { margin-top: 36px; color: var(--dim); font-size: 0.8rem; letter-spacing: 0.1em; }

/* ---------- Hero (generic page hero) ---------- */
.page-hero {
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 60px) 0 60px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(90% 80% at 70% 10%, rgba(255, 59, 48, 0.12), transparent 60%), var(--bg-2);
}
.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}
.page-hero .hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.5), rgba(10, 10, 12, 0.2) 45%, var(--bg));
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--accent-2); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(255, 59, 48, 0.4); box-shadow: var(--shadow-lg); }

.icon-card { padding: 34px 28px; }
.icon-card .ic {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.25);
  margin-bottom: 20px;
}
.icon-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.icon-card p { color: var(--muted); font-size: 0.94rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- Media frames (image reveal) ---------- */
.frame { border-radius: var(--radius); overflow: hidden; position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.frame:hover img { transform: scale(1.05); }

.reveal-img { position: relative; overflow: hidden; }
.reveal-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.9s var(--ease-out);
  pointer-events: none; /* decorative wipe must never swallow clicks on links beneath */
}
.reveal-img.in-view::after { transform: scaleX(0); }

/* ---------- Tags / badges ---------- */
.tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
}
.tag-accent { background: rgba(255, 59, 48, 0.12); border-color: rgba(255, 59, 48, 0.4); color: var(--accent-2); }
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.4);
  color: var(--accent-2);
}
.badge-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.5); } 50% { box-shadow: 0 0 0 7px rgba(255, 59, 48, 0); } }

/* ---------- Scroll reveal helpers ---------- */
.rv { opacity: 0; transform: translateY(46px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.rv.in-view { opacity: 1; transform: none; }
.rv-l { opacity: 0; transform: translateX(-56px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.rv-r { opacity: 0; transform: translateX(56px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.rv-l.in-view, .rv-r.in-view { opacity: 1; transform: none; }
.rv-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.rv-scale.in-view { opacity: 1; transform: none; }
.d-1 { transition-delay: 0.1s; } .d-2 { transition-delay: 0.2s; } .d-3 { transition-delay: 0.3s; }
.d-4 { transition-delay: 0.4s; } .d-5 { transition-delay: 0.5s; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a2a2ac' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }

.file-drop {
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
}
.file-drop:hover, .file-drop.drag { border-color: var(--accent); background: rgba(255, 59, 48, 0.05); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .fd-icon { font-size: 1.6rem; margin-bottom: 8px; }
.form-note { font-size: 0.8rem; color: var(--dim); margin-top: 14px; }
.form-success {
  display: none;
  padding: 16px 20px;
  border-radius: 8px;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #7ee2a8;
  font-size: 0.92rem;
  margin-top: 18px;
}
.form-success.show { display: block; }
.form-success.is-error {
  background: rgba(255, 59, 48, 0.1);
  border-color: rgba(255, 59, 48, 0.4);
  color: #ff9a93;
}

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  padding: 24px 4px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.3s;
}
.faq-q:hover { color: var(--accent-2); }
.faq-q .fx { font-size: 1.4rem; color: var(--accent); transition: transform 0.35s var(--ease-out); flex-shrink: 0; }
.faq-item.open .faq-q .fx { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out); }
.faq-a p { padding: 0 4px 24px; color: var(--muted); font-size: 0.95rem; max-width: 70ch; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), rgba(255, 122, 47, 0.1)); }
.tl-item { position: relative; padding-bottom: 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}
.tl-item .tl-date { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 6px; }
.tl-item h3 { font-size: 1.4rem; margin-bottom: 8px; }
.tl-item p { color: var(--muted); font-size: 0.95rem; max-width: 60ch; }

/* Compact variant: date sits inline with the title so long timelines stay short */
.timeline.compact { padding-left: 30px; }
.timeline.compact .tl-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; padding-bottom: 26px; }
.timeline.compact .tl-item::before { left: -27px; top: 5px; width: 12px; height: 12px; border-width: 2px; }
.timeline.compact .tl-date { margin-bottom: 0; font-size: 0.7rem; letter-spacing: 0.18em; }
.timeline.compact .tl-item h3 { font-size: 1.1rem; margin-bottom: 0; letter-spacing: 0.01em; }
.timeline.compact .tl-item p { flex-basis: 100%; font-size: 0.87rem; margin-top: 6px; max-width: 64ch; }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 80px 0 34px;
  position: relative;
  overflow: hidden;
}
footer .foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 50px;
  margin-bottom: 60px;
}
footer .foot-logo { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
footer .foot-logo img { height: 46px; width: auto; }
footer .foot-logo .wordmark .wm-top { font-size: 1.2rem; }
footer .foot-logo .wordmark .wm-sub { font-size: 0.64rem; }
footer .foot-tag { color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
footer h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); margin-bottom: 20px; }
footer .foot-links li { margin-bottom: 12px; }
footer .foot-links a { color: var(--muted); font-size: 0.92rem; transition: color 0.3s, padding-left 0.3s; }
footer .foot-links a:hover { color: var(--accent-2); padding-left: 6px; }
footer .foot-mail { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; transition: color 0.3s; }
footer .foot-mail:hover { color: var(--accent-2); }
footer .socials { display: flex; gap: 12px; margin-top: 22px; }
footer .socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
footer .socials a:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-4px); }
footer .socials svg { width: 17px; height: 17px; }
footer .foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--dim);
}
footer .foot-bottom a { transition: color 0.3s; }
footer .foot-bottom a:hover { color: var(--accent-2); }
footer .foot-legal { display: flex; gap: 24px; }
/* ---------- Video shells (graceful when video file missing) ---------- */
.video-shell { position: relative; overflow: hidden; background: #000; }
.video-shell video { width: 100%; height: 100%; object-fit: cover; }
.video-shell .video-fallback {
  position: absolute;
  inset: 0;
  display: none;
  background:
    radial-gradient(70% 60% at 30% 30%, rgba(255, 59, 48, 0.22), transparent 60%),
    radial-gradient(60% 60% at 75% 70%, rgba(255, 122, 47, 0.16), transparent 60%),
    linear-gradient(160deg, #131318, #0a0a0c);
  background-size: 200% 200%;
  animation: drift 10s ease-in-out infinite alternate;
}
.video-shell.no-video .video-fallback { display: block; }
.video-shell.no-video video { display: none; }
@keyframes drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

/* ---------- Lightbox ---------- */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 5, 7, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
#lightbox.open { opacity: 1; visibility: visible; }
#lightbox img { max-width: 88vw; max-height: 84vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
#lightbox .lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s;
}
#lightbox .lb-btn:hover { background: rgba(255, 59, 48, 0.25); border-color: var(--accent); }
#lightbox .lb-close { top: 26px; right: 26px; }
#lightbox .lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
#lightbox .lb-next { right: 26px; top: 50%; transform: translateY(-50%); }
#lightbox .lb-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--dim); letter-spacing: 0.2em; font-size: 0.8rem; }

/* ---------- Filter pills ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pill {
  padding: 10px 22px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.filter-pill:hover { border-color: var(--accent); color: var(--text); }
.filter-pill.active { background: var(--accent-grad); border-color: transparent; color: #fff; }

/* ---------- Stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  text-align: center;
  padding: 30px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.stat .stat-num { font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.6rem); background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .stat-label { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-track span::after { content: "✦"; color: var(--accent); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- News cards ---------- */
.news-card { display: flex; flex-direction: column; }
.news-card .frame { aspect-ratio: 16 / 9; border-radius: var(--radius) var(--radius) 0 0; }
.news-card .news-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card .news-meta { display: flex; gap: 14px; align-items: center; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.news-card h3 { font-size: 1.4rem; }
.news-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.news-card .news-more { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-2); display: inline-flex; align-items: center; gap: 8px; }
.news-card .news-more::after { content: "→"; transition: transform 0.3s; }
.news-card:hover .news-more::after { transform: translateX(6px); }

/* ---------- Back to top ---------- */
#to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.35s var(--ease-out);
}
#to-top.show { opacity: 1; visibility: visible; transform: none; }
#to-top:hover { border-color: var(--accent); color: var(--accent-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  footer .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  #burger { display: flex; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  footer .foot-grid { grid-template-columns: 1fr; }
  :root { --nav-h: 64px; }
}

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