/* ==========================================================================
   BLIGHT LIGHT — core
   Colour + radius tokens are printed inline by includes/header.php from the
   settings table, so everything here reads from var() with a safe fallback.
   ========================================================================== */

/* ------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------ base */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient blight glow behind everything */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 520px at 78% -6%, color-mix(in srgb, var(--acid) 16%, transparent), transparent 70%),
    radial-gradient(700px 500px at 8% 105%, color-mix(in srgb, var(--acid) 8%, transparent), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
body.grain::after {
  content: '';
  position: fixed; inset: -50%;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .035;
  pointer-events: none;
  z-index: 999;
  animation: grainshift 6s steps(6) infinite;
}
@keyframes grainshift {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
}
body.scanlines .shell::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.28) 0 1px, transparent 1px 3px);
  opacity: .35; pointer-events: none; z-index: 998;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1480px, 100% - 40px);
  margin-inline: auto;
  padding-bottom: 26px;
}

/* ------------------------------------------------------------ type */
.display {
  font-family: 'Anton', 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: .86;
  text-transform: uppercase;
}
.ui, .eyebrow, .label, nav a, .btn, th, .tag, .stat-label {
  font-family: 'Chakra Petch', 'Rajdhani', system-ui, sans-serif;
}
.acid { color: var(--acid); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--acid);
}
.eyebrow::before {
  content: ''; width: 42px; height: 2px;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
}

/* Distressed paint texture for the big wordmark */
.grunge {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.028 .075' numOctaves='3' seed='9'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 2.15'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23g)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.028 .075' numOctaves='3' seed='9'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 2.15'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23g)'/%3E%3C/svg%3E");
  -webkit-mask-size: 400px 400px;
  mask-size: 400px 400px;
}

/* ------------------------------------------------------------ panels */
.panel {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.panel-pad { padding: 20px 22px; }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 14px;
}
.section-head h2 {
  margin: 0; font-family: 'Chakra Petch', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.section-head h2 .ic { color: var(--acid); }

/* ------------------------------------------------------------ buttons */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: var(--btn-bg);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s, box-shadow .25s, background .25s, border-color .25s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn .ic { flex: none; }

.btn-acid {
  background: linear-gradient(180deg, var(--acid-hi), var(--acid));
  color: #07120a;
  border-color: color-mix(in srgb, var(--acid) 70%, #000);
  box-shadow: var(--glow-btn);
}
.btn-acid:hover { box-shadow: var(--glow-btn-hi); }

.btn-ghost {
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--acid); color: var(--acid); }

.btn-outline { border-color: color-mix(in srgb, var(--acid) 45%, transparent); color: var(--acid); }
.btn-outline:hover { background: color-mix(in srgb, var(--acid) 12%, transparent); }
.btn-sm { padding: 8px 16px; font-size: 11px; letter-spacing: .12em; }
.btn-danger { border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--danger); }
.btn-block { width: 100%; }

/* ------------------------------------------------------------ topbar */
.topbar { padding: 18px 0 0; }
.nav {
  position: relative;
  display: flex; align-items: center; gap: 26px;
  padding: 12px 16px 12px 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel2) 92%, transparent), color-mix(in srgb, var(--panel) 96%, transparent));
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}
.nav::before, .nav::after {
  content: '';
  position: absolute; top: 50%; translate: 0 -50%;
  width: 9px; height: 22px;
  border: 1px solid var(--line);
  opacity: .8;
}
.nav::before { left: -14px; border-right: 0; border-radius: 8px 0 0 8px; }
.nav::after  { right: -14px; border-left: 0; border-radius: 0 8px 8px 0; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { color: var(--acid); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--acid) 60%, transparent)); }
.brand-name {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 22px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.brand-name span { color: var(--acid); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex: 1 1 auto; overflow: visible; }
.nav-links a {
  position: relative;
  padding: 9px 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  border-radius: 8px;
  white-space: nowrap;
  transition: color .2s;
}
.nav-links a:hover { color: var(--acid); }
.nav-links a.on { color: var(--white, #fff); }
.nav-links a.on::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--acid); box-shadow: 0 0 12px var(--acid); border-radius: 2px;
}
.nav-badge {
  margin-left: 7px; padding: 2px 7px; border-radius: 6px;
  background: var(--acid); color: #07120a;
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  vertical-align: 2px;
}
.nav-right { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; color: var(--acid); cursor: pointer;
}

.avatar-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px;
  font-family: 'Chakra Petch', sans-serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.avatar-chip img { width: 26px; height: 26px; border-radius: 50%; }
.avatar-chip:hover { border-color: var(--acid); color: var(--acid); }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  min-height: 460px;
  margin-top: 6px;
}
.hero-copy { padding: 46px 0 40px; max-width: 620px; }
.hero-title {
  margin: 20px 0 0;
  font-size: clamp(58px, 8.4vw, 128px);
  color: var(--white, #f4f8f2);
  text-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.hero-title .b { color: var(--acid); text-shadow: 0 0 42px color-mix(in srgb, var(--acid) 55%, transparent); }
.hero-sub {
  margin: 18px 0 0;
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(16px, 1.5vw, 22px); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.hero-text { margin: 16px 0 0; max-width: 460px; color: color-mix(in srgb, var(--text) 76%, transparent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-art {
  position: absolute; inset: 0 0 0 42%;
  border-radius: var(--radius);
  overflow: hidden;
  z-index: -1;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-art::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 6%, color-mix(in srgb, var(--bg) 55%, transparent) 34%, transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent), transparent 30%, color-mix(in srgb, var(--bg) 85%, transparent));
}
.hero-noimg { background: radial-gradient(60% 70% at 60% 40%, color-mix(in srgb, var(--acid) 18%, transparent), transparent 70%), var(--panel); }

/* ------------------------------------------------------------ feature strip */
.features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.feature {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 16px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.feature:hover { border-color: color-mix(in srgb, var(--acid) 50%, transparent); transform: translateY(-3px); box-shadow: var(--glow-card); }
.feature-icon {
  flex: none; width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--acid) 35%, transparent);
  border-radius: 10px;
  color: var(--acid);
  background: color-mix(in srgb, var(--acid) 8%, transparent);
}
.feature h3 {
  margin: 2px 0 5px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.feature p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ------------------------------------------------------------ stats bar */
.statbar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  padding: 18px 10px;
}
.stat {
  display: flex; align-items: center; gap: 18px;
  padding: 4px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-icon { color: var(--acid); flex: none; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--acid) 45%, transparent)); }
.stat-label { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stat-value {
  display: flex; align-items: baseline; gap: 8px;
  font-family: 'Chakra Petch', sans-serif; font-size: 30px; font-weight: 700; line-height: 1.2;
}
.stat-value .suffix { font-size: 15px; color: var(--muted); font-weight: 600; }
.stat-value.small { font-size: 20px; letter-spacing: .04em; }
.badge-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--acid);
}
.badge-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--acid); box-shadow: 0 0 8px var(--acid);
  animation: blip 1.8s ease-in-out infinite;
}
@keyframes blip { 50% { opacity: .25; } }

.ring { position: relative; width: 54px; height: 54px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .track { stroke: var(--line); }
.ring .bar { stroke: var(--acid); stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--acid) 60%, transparent)); }
.ring span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: 'Chakra Petch', sans-serif; font-size: 12px; font-weight: 700; color: var(--acid);
}

/* ------------------------------------------------------------ showcase + quotes */
.showcase-grid {
  display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
  gap: 12px; margin-top: 12px;
}
.carousel { position: relative; overflow: hidden; border-radius: calc(var(--radius) - 4px); }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(25% - 9px);
  gap: 12px; transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.shot {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .4s; }
.shot:hover img { transform: scale(1.06); filter: saturate(1.15); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 12px 9px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-family: 'Chakra Petch', sans-serif; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.car-btn {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid color-mix(in srgb, var(--acid) 45%, transparent);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  color: var(--acid); cursor: pointer; z-index: 2;
}
.car-btn:hover { background: var(--acid); color: #07120a; }
.car-prev { left: 10px; } .car-next { right: 10px; }
.car-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.car-dots button {
  width: 7px; height: 7px; padding: 0; border-radius: 50%;
  border: 0; background: var(--line); cursor: pointer;
}
.car-dots button.on { background: var(--acid); box-shadow: 0 0 8px var(--acid); }

.quotes { display: flex; flex-direction: column; gap: 12px; }
.quote {
  display: flex; gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line); border-radius: calc(var(--radius) - 4px);
  background: color-mix(in srgb, var(--panel2) 70%, transparent);
}
.quote .mark { color: color-mix(in srgb, var(--acid) 65%, transparent); font-size: 26px; line-height: 1; font-family: Georgia, serif; }
.quote p { margin: 0; font-size: 13px; line-height: 1.55; }
.quote .who {
  display: block; margin-top: 8px; text-align: right;
  font-family: 'Chakra Petch', sans-serif; font-size: 12px; color: var(--acid);
}

/* ------------------------------------------------------------ footer */
.site-footer {
  display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, .72fr)) minmax(0, 1fr);
  gap: 26px; margin-top: 12px; padding: 26px;
}
.site-footer h4 {
  margin: 0 0 12px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer li a { font-size: 13px; color: var(--muted); transition: color .2s; }
.site-footer li a:hover { color: var(--acid); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand .brand-name { font-size: 19px; }
.foot-about { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); max-width: 300px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--acid) 30%, transparent); border-radius: 50%;
  color: var(--acid); transition: background .2s, color .2s, transform .2s;
}
.socials a:hover { background: var(--acid); color: #07120a; transform: translateY(-2px); }
.cta-card {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(150deg, color-mix(in srgb, var(--acid) 10%, transparent), transparent 60%);
}
.cta-card h4 { color: var(--acid); }
.cta-card p { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 4px 0; font-size: 12px; color: color-mix(in srgb, var(--muted) 80%, transparent);
}

/* ------------------------------------------------------------ flash */
.flashes { display: grid; gap: 8px; margin: 14px 0 0; }
.flash {
  padding: 12px 16px; border-radius: 10px; font-size: 13.5px;
  border: 1px solid color-mix(in srgb, var(--acid) 40%, transparent);
  background: color-mix(in srgb, var(--acid) 9%, transparent);
}
.flash.err { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }

/* ------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1240px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel-track { grid-auto-columns: calc(33.333% - 8px); }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav.open .nav-links {
    display: grid; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    padding: 12px; gap: 2px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    z-index: 40;
  }
  .hero { grid-template-columns: 1fr; }
  .hero-art { position: relative; inset: auto; height: 300px; margin-bottom: 10px; order: -1; }
  .hero-art::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 40%, transparent), var(--bg) 96%); }
  .hero-copy { padding: 20px 0 26px; }
  .statbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .stat:nth-child(2n) { border-right: 0; }
  .showcase-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .shell { width: min(100%, 100% - 24px); }
  .features { grid-template-columns: 1fr; }
  .statbar { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .stat:last-child { border-bottom: 0; }
  .site-footer { grid-template-columns: 1fr; }
  .carousel-track { grid-auto-columns: calc(100% - 0px); }
  .brand-name { font-size: 18px; }
}
/* ==========================================================================
   BLIGHT LIGHT — interior pages
   ========================================================================== */

/* ------------------------------------------------------------ page head */
.page-head {
  position: relative;
  margin-top: 12px;
  padding: 42px 34px 36px;
  overflow: hidden;
}
.page-head::after {
  content: '';
  position: absolute; right: -80px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--acid) 16%, transparent), transparent 65%);
  pointer-events: none;
}
.page-title {
  margin: 16px 0 0;
  font-size: clamp(38px, 5.4vw, 72px);
  color: var(--white, #f4f8f2);
}
.page-title .b { color: var(--acid); }
.page-intro { margin: 14px 0 0; max-width: 620px; color: var(--muted); }
.page-head .stat-strip {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 24px;
}
.page-head .stat-strip div { font-family: 'Chakra Petch', sans-serif; }
.page-head .stat-strip b { display: block; font-size: 24px; color: var(--acid); }
.page-head .stat-strip span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.block { margin-top: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.grid-side { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 12px; align-items: start; }

/* ------------------------------------------------------------ toolbar */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px 16px;
}
.search {
  position: relative; flex: 1 1 260px; min-width: 200px;
}
.search .ic { position: absolute; left: 13px; top: 50%; translate: 0 -50%; color: var(--muted); }
.search input {
  width: 100%; padding: 11px 14px 11px 42px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  font-size: 13.5px;
}
.search input::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.search input:focus { border-color: var(--acid); outline: none; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-family: 'Chakra Petch', sans-serif; font-size: 11.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  transition: all .2s;
}
.chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--acid) 40%, transparent); }
.chip.on { background: var(--acid); border-color: var(--acid); color: #07120a; box-shadow: var(--glow-btn); }

/* ------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left; padding: 13px 16px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td { padding: 13px 16px; border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent); vertical-align: middle; }
table.data tbody tr { transition: background .18s; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--acid) 5%, transparent); }
table.data tbody tr:last-child td { border-bottom: 0; }
.empty { padding: 46px 20px; text-align: center; color: var(--muted); }
.empty .ic { color: color-mix(in srgb, var(--acid) 50%, transparent); margin: 0 auto 12px; }

/* ------------------------------------------------------------ tags */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.tag.acid { border-color: color-mix(in srgb, var(--acid) 50%, transparent); color: var(--acid); background: color-mix(in srgb, var(--acid) 10%, transparent); }
.tag.warn { border-color: #d6a11e66; color: #e8bb3c; background: #d6a11e12; }
.tag.hot  { border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.tag.cool { border-color: #4aa8ff55; color: #6fc0ff; background: #4aa8ff12; }

/* rarity colours — used by weapons and loot tables */
.r-common    { --r: #9aa79a; }
.r-uncommon  { --r: #6fd06f; }
.r-rare      { --r: #4aa8ff; }
.r-epic      { --r: #b06cff; }
.r-legendary { --r: #ffb02e; }
.r-mythic    { --r: #ff4d6d; }
.rar {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--r, var(--acid)) 50%, transparent);
  background: color-mix(in srgb, var(--r, var(--acid)) 12%, transparent);
  color: var(--r, var(--acid));
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

/* ------------------------------------------------------------ commands */
.cmd {
  font-family: 'JetBrains Mono', ui-monospace, 'Consolas', monospace;
  font-size: 13px; color: var(--acid);
}
.cmd-args { color: var(--muted); }
.copy-btn {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 7px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
  transition: all .2s;
}
.copy-btn:hover { color: var(--acid); border-color: var(--acid); }
.copy-btn.done { color: #07120a; background: var(--acid); border-color: var(--acid); }
.cat-nav { display: grid; gap: 4px; padding: 12px; }
.cat-nav button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 11px 14px; border-radius: 9px;
  border: 1px solid transparent; background: transparent; color: var(--muted);
  font-family: 'Chakra Petch', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer; text-align: left;
  transition: all .2s;
}
.cat-nav button:hover { color: var(--text); background: color-mix(in srgb, var(--acid) 6%, transparent); }
.cat-nav button.on { color: var(--acid); border-color: color-mix(in srgb, var(--acid) 40%, transparent); background: color-mix(in srgb, var(--acid) 10%, transparent); }
.cat-nav .count { font-size: 11px; opacity: .75; }

/* ------------------------------------------------------------ weapon cards */
.wcard {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.wcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--r, var(--acid)) 55%, transparent); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--r, var(--acid)) 70%, transparent); }
.wcard-art {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: radial-gradient(70% 90% at 50% 90%, color-mix(in srgb, var(--r, var(--acid)) 22%, transparent), transparent 70%), var(--bg);
  display: grid; place-items: center;
}
.wcard-art img { width: 100%; height: 100%; object-fit: cover; }
.wcard-art .ic { color: color-mix(in srgb, var(--r, var(--acid)) 60%, transparent); }
.wcard-art .rar { position: absolute; top: 12px; left: 12px; }
.wcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.wcard h3 {
  margin: 0; font-family: 'Chakra Petch', sans-serif;
  font-size: 17px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.wcard .tagline { margin: 0; font-size: 12.5px; color: var(--muted); }
.wstats { display: grid; gap: 7px; margin-top: 2px; }
.wstat { display: grid; grid-template-columns: 74px 1fr 30px; align-items: center; gap: 10px; }
.wstat span:first-child { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: 'Chakra Petch', sans-serif; }
.bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--r, var(--acid)) 55%, transparent), var(--r, var(--acid))); }
.wstat b { font-family: 'Chakra Petch', sans-serif; font-size: 11px; color: var(--text); text-align: right; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.perks li { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); }
.perks li::before { content: '▸'; color: var(--acid); }
.wcard .obtain {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.wcard .obtain b { color: var(--acid); font-weight: 600; }

/* ------------------------------------------------------------ boss cards */
.boss {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel2), var(--panel));
}
.boss + .boss { margin-top: 12px; }
.boss:nth-child(even) .boss-art { order: 2; }
.boss-art { position: relative; min-height: 280px; background: var(--bg); }
.boss-art img { width: 100%; height: 100%; object-fit: cover; }
.boss-art .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--acid) 18%, transparent), transparent 70%);
  color: color-mix(in srgb, var(--acid) 55%, transparent);
}
.boss-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, color-mix(in srgb, var(--panel) 92%, transparent));
}
.boss:nth-child(even) .boss-art::after { background: linear-gradient(270deg, transparent 55%, color-mix(in srgb, var(--panel) 92%, transparent)); }
.boss-body { padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.boss-body h3 { margin: 0; font-family: 'Anton', sans-serif; font-size: 34px; letter-spacing: .02em; text-transform: uppercase; }
.boss-body .sub { margin: -8px 0 0; font-family: 'Chakra Petch', sans-serif; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--acid); }
.boss-meta { display: flex; flex-wrap: wrap; gap: 20px; padding: 12px 0; border-block: 1px solid var(--line); }
.boss-meta div span { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-family: 'Chakra Petch', sans-serif; }
.boss-meta div b { font-family: 'Chakra Petch', sans-serif; font-size: 15px; }
.boss-cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.boss-cols h4 {
  margin: 0 0 8px; font-family: 'Chakra Petch', sans-serif;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--acid);
}
.d-easy      { --r: #6fd06f; }
.d-normal    { --r: #4aa8ff; }
.d-hard      { --r: #ffb02e; }
.d-brutal    { --r: #ff7a3d; }
.d-nightmare { --r: #ff4d6d; }

/* ------------------------------------------------------------ loot tables */
.event-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.event-tab {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: color-mix(in srgb, var(--panel2) 70%, transparent);
  cursor: pointer; text-align: left; transition: all .22s;
}
.event-tab:hover { border-color: color-mix(in srgb, var(--acid) 45%, transparent); }
.event-tab.on { border-color: var(--acid); background: color-mix(in srgb, var(--acid) 12%, transparent); }
.event-tab b { display: block; font-family: 'Chakra Petch', sans-serif; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; }
.event-tab span { font-size: 11px; color: var(--muted); }
.event-tab .ic { color: var(--acid); }

.chance { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.chance .bar { flex: 1; height: 7px; }
.chance b { font-family: 'Chakra Petch', sans-serif; font-size: 13px; min-width: 56px; text-align: right; color: var(--r, var(--acid)); }
.drop-item { display: flex; align-items: center; gap: 12px; }
.drop-item img { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.drop-item .fallback {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--line); color: color-mix(in srgb, var(--r, var(--acid)) 70%, transparent);
  background: color-mix(in srgb, var(--r, var(--acid)) 10%, transparent);
}
.drop-item b { font-family: 'Chakra Petch', sans-serif; font-size: 14px; font-weight: 600; }
.drop-item small { display: block; color: var(--muted); font-size: 11.5px; }

/* ------------------------------------------------------------ faq */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 18px 20px; background: none; border: 0; color: inherit;
  font-family: 'Chakra Petch', sans-serif; font-size: 15px; font-weight: 600;
  text-align: left; cursor: pointer; transition: color .2s;
}
.faq-q:hover { color: var(--acid); }
.faq-q .ic { flex: none; color: var(--acid); transition: transform .28s; }
.faq-item.open .faq-q { color: var(--acid); }
.faq-item.open .faq-q .ic { transform: rotate(90deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0 0 16px; padding: 0 20px; color: var(--muted); font-size: 14px; max-width: 800px; }
.faq-a code { background: color-mix(in srgb, var(--acid) 12%, transparent); color: var(--acid); padding: 2px 6px; border-radius: 5px; font-size: 12.5px; }

/* ------------------------------------------------------------ store */
.pkg {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.pkg:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acid) 50%, transparent); box-shadow: var(--glow-card); }
.pkg.featured { border-color: color-mix(in srgb, var(--acid) 55%, transparent); }
.pkg-art { position: relative; aspect-ratio: 16/9; background: radial-gradient(70% 90% at 50% 100%, color-mix(in srgb, var(--acid) 20%, transparent), transparent 70%), var(--bg); display: grid; place-items: center; }
.pkg-art img { width: 100%; height: 100%; object-fit: cover; }
.pkg-art .ic { color: color-mix(in srgb, var(--acid) 55%, transparent); }
.pkg-badge { position: absolute; top: 12px; right: 12px; }
.pkg-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pkg h3 { margin: 0; font-family: 'Chakra Petch', sans-serif; font-size: 19px; letter-spacing: .06em; text-transform: uppercase; }
.pkg p { margin: 0; font-size: 13px; color: var(--muted); }
.price { font-family: 'Anton', sans-serif; font-size: 32px; color: var(--acid); line-height: 1; }
.price s { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--muted); margin-left: 8px; }
.pkg .btn { margin-top: auto; }

/* ------------------------------------------------------------ forms */
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field > label {
  font-family: 'Chakra Petch', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.field input[type=text], .field input[type=number], .field input[type=url],
.field input[type=email], .field input[type=password], .field select, .field textarea {
  width: 100%; padding: 11px 14px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  font-size: 14px; font-family: inherit;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--acid); outline: none; }
.field .hint { font-size: 11.5px; color: color-mix(in srgb, var(--muted) 85%, transparent); }
.field input[type=color] { width: 100%; height: 42px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: all .2s; }
.switch input:checked { background: color-mix(in srgb, var(--acid) 40%, transparent); }
.switch input:checked::after { left: 21px; background: var(--acid); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }

/* ------------------------------------------------------------ dashboard / tickets */
.profile-head { display: flex; align-items: center; gap: 18px; }
.profile-head img { width: 78px; height: 78px; border-radius: 14px; border: 1px solid var(--line); }
.profile-head h2 { margin: 0; font-family: 'Chakra Petch', sans-serif; font-size: 24px; letter-spacing: .04em; }
.kv { display: grid; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; padding-bottom: 9px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.kv div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); font-family: 'Chakra Petch', sans-serif; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

.msg { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: 0; }
.msg .who { flex: none; width: 130px; }
.msg .who b { display: block; font-family: 'Chakra Petch', sans-serif; font-size: 13px; }
.msg .who small { color: var(--muted); font-size: 11px; }
.msg.staff { background: color-mix(in srgb, var(--acid) 5%, transparent); }
.msg.staff .who b { color: var(--acid); }
.msg .body { white-space: pre-wrap; font-size: 14px; }

.code-line {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border: 1px dashed color-mix(in srgb, var(--acid) 45%, transparent);
  border-radius: 10px; background: color-mix(in srgb, var(--acid) 7%, transparent);
  font-family: 'JetBrains Mono', monospace; font-size: 20px; letter-spacing: .3em; color: var(--acid);
}

/* ------------------------------------------------------------ leaderboards */
.rank { font-family: 'Anton', sans-serif; font-size: 20px; color: var(--muted); width: 44px; }
.rank.top1 { color: #ffb02e; } .rank.top2 { color: #d5dce0; } .rank.top3 { color: #cd7f32; }
.lb-player { display: flex; align-items: center; gap: 12px; }
.lb-player img { width: 34px; height: 34px; border-radius: 8px; }

/* ------------------------------------------------------------ modal */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center; padding: 20px;
  background: rgba(3,6,4,.82); backdrop-filter: blur(6px);
}
.modal.open { display: grid; }
.modal-box {
  width: min(760px, 100%); max-height: 88vh; overflow-y: auto;
  border: 1px solid color-mix(in srgb, var(--acid) 35%, transparent);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  box-shadow: 0 40px 90px -30px #000;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-family: 'Chakra Petch', sans-serif; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.modal-close { background: none; border: 0; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--acid); }
.modal-body { padding: 22px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-side { grid-template-columns: 1fr; }
  .boss { grid-template-columns: 1fr; }
  .boss:nth-child(even) .boss-art { order: 0; }
  .boss-art { min-height: 200px; }
  .boss-art::after, .boss:nth-child(even) .boss-art::after { background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--panel) 92%, transparent)); }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .form-row, .form-row-3, .boss-cols { grid-template-columns: 1fr; }
  .page-head { padding: 30px 20px 26px; }
  .msg { flex-direction: column; gap: 6px; }
  .msg .who { width: auto; display: flex; gap: 10px; align-items: baseline; }
}
/* ===========================================================================
   BLIGHT LIGHT — motion & effects
   ---------------------------------------------------------------------------
   Loading screen, custom cursor, parallax hero, animated buttons, surface
   textures and the scroll-reveal system.

   Two rules this file follows throughout:

   1. Content is visible by default. Reveals are an enhancement applied by JS
      adding .motion to <html>. If JS never runs, or the tab is hidden, or a
      crawler renders the page, everything is still there. Never gate content
      on a transition firing.
   2. Every animation has a reduced-motion answer at the bottom of the file.
   =========================================================================== */

/* ------------------------------------------------------------ layer scale */
/* Semantic, so nothing ever needs to guess at 9999. */
:root {
  --z-base:      0;
  --z-texture:   1;
  --z-raised:    10;
  --z-sticky:    20;
  --z-nav:       30;
  --z-backdrop:  40;
  --z-modal:     50;
  --z-cursor:    60;
  --z-loader:    70;

  --ease-out-quart: cubic-bezier(.25, 1, .5, 1);
  --ease-out-expo:  cubic-bezier(.16, 1, .3, 1);
  --dur-fast:  .18s;
  --dur-mid:   .34s;
  --dur-slow:  .62s;
}

/* =========================================================== loading screen */
.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: grid;
  place-content: center;
  gap: 26px;
  background: var(--bg);
  transition: opacity .5s var(--ease-out-quart), visibility .5s;
}
.loader[hidden] { display: none; }
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-mark {
  width: 74px;
  height: 74px;
  margin: 0 auto;
  animation: loader-spin 2.6s linear infinite;
}
.loader-mark circle { fill: var(--acid); transform-origin: center; }
.loader-mark circle:nth-child(1) { animation: loader-pulse 1.5s var(--ease-out-quart) infinite; }
.loader-mark circle:nth-child(2) { animation: loader-pulse 1.5s var(--ease-out-quart) .18s infinite; }
.loader-mark circle:nth-child(3) { animation: loader-pulse 1.5s var(--ease-out-quart) .36s infinite; }
.loader-mark circle:nth-child(4) { animation: loader-pulse 1.5s var(--ease-out-quart) .54s infinite; }

@keyframes loader-spin  { to { transform: rotate(360deg); } }
@keyframes loader-pulse {
  0%, 100% { opacity: .28; transform: scale(.82); }
  40%      { opacity: 1;   transform: scale(1.06); }
}

.loader-bar {
  width: 190px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
}
.loader-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
  transition: width .3s var(--ease-out-quart);
}
.loader-text {
  font-family: 'Chakra Petch', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ============================================================ custom cursor */
/* Applied only when JS confirms a fine pointer, so touch and keyboard users
   keep the native cursor. The real cursor stays visible on text inputs. */
html.has-cursor,
html.has-cursor a,
html.has-cursor button,
html.has-cursor [role="button"] { cursor: none; }
html.has-cursor input,
html.has-cursor textarea,
html.has-cursor select { cursor: auto; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--acid-hi);
  box-shadow: 0 0 10px var(--acid);
}
.cursor-ring {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid color-mix(in srgb, var(--acid) 55%, transparent);
  border-radius: 50%;
  transition: width var(--dur-fast) var(--ease-out-quart),
              height var(--dur-fast) var(--ease-out-quart),
              margin var(--dur-fast) var(--ease-out-quart),
              border-color var(--dur-fast) linear,
              opacity var(--dur-fast) linear;
}
/* Over something clickable the ring opens up and fills faintly. */
.cursor-ring.hot {
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  border-color: var(--acid);
  background: color-mix(in srgb, var(--acid) 9%, transparent);
}
.cursor-ring.press { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor-dot.hide, .cursor-ring.hide { opacity: 0; }

/* ============================================================ hero parallax */
.hero-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: var(--z-base);
  pointer-events: none;
  /* Fades into the page instead of ending on a hard edge. */
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.hero-layer {
  position: absolute;
  inset: -6% -4%;
  background-repeat: no-repeat;
  background-position: center 38%;
  background-size: cover;
  will-change: transform;
}
.hero-layer.sky  { background-image: var(--hero-sky); }
.hero-layer.mid  { background-image: var(--hero-mid); }
.hero-layer.near { background-image: var(--hero-near); }

/* A slow breathing glow behind the landmark. */
.hero-bloom {
  position: absolute;
  right: 12%;
  top: 34%;
  width: 44vw;
  height: 44vw;
  max-width: 720px;
  max-height: 720px;
  transform: translate(35%, -30%);
  background: radial-gradient(circle,
              color-mix(in srgb, var(--acid) 26%, transparent) 0%,
              transparent 62%);
  filter: blur(38px);
  animation: bloom-breathe 9s ease-in-out infinite;
}
@keyframes bloom-breathe {
  0%, 100% { opacity: .55; transform: translate(35%, -30%) scale(1); }
  50%      { opacity: .95; transform: translate(35%, -30%) scale(1.09); }
}

/* Drifting motes — the only thing on the page that moves unprompted. */
.hero-motes { position: absolute; inset: 0; overflow: hidden; }
.mote {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--acid-hi);
  opacity: 0;
  box-shadow: 0 0 8px var(--acid);
  animation: mote-drift linear infinite;
}
@keyframes mote-drift {
  0%   { opacity: 0;   transform: translate3d(0, 20px, 0) scale(.6); }
  14%  { opacity: .85; }
  76%  { opacity: .5; }
  100% { opacity: 0;   transform: translate3d(24px, -150px, 0) scale(1.2); }
}

/* ======================================================== surface textures */
.fx-grain,
.fx-scanlines {
  position: fixed;
  inset: 0;
  z-index: var(--z-texture);
  pointer-events: none;
}
.fx-grain {
  background-image: var(--tex-grain);
  background-size: 340px 340px;
  opacity: .045;
  mix-blend-mode: overlay;
  animation: grain-shift 1.1s steps(4) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -2%); }
  75%  { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}
.fx-scanlines {
  background-image: var(--tex-scanlines);
  background-size: auto 4px;
  opacity: .5;
}

/* ============================================================ scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: var(--z-nav);
  background: linear-gradient(90deg,
              color-mix(in srgb, var(--acid) 40%, transparent), var(--acid));
  box-shadow: 0 0 10px var(--acid);
  pointer-events: none;
}

/* ========================================================= animated buttons */
/* A light sweep crossing the face on hover, plus a real press response.
   No bounce, no elastic — exponential ease out only. */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-fast) var(--ease-out-quart),
              box-shadow var(--dur-mid) var(--ease-out-quart),
              background-color var(--dur-fast) linear,
              border-color var(--dur-fast) linear;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 32%,
              color-mix(in srgb, #fff 26%, transparent) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform var(--dur-slow) var(--ease-out-expo);
}
.btn:hover::after,
.btn:focus-visible::after { transform: translateX(130%); }
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }

.btn-primary:hover {
  box-shadow: 0 0 0 1px var(--acid-hi),
              0 10px 34px color-mix(in srgb, var(--acid) 34%, transparent);
}
.btn-primary .chev { transition: transform var(--dur-mid) var(--ease-out-quart); }
.btn-primary:hover .chev { transform: translateX(4px); }

/* Focus must always be obvious — never removed. */
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--acid-hi);
  outline-offset: 3px;
}

/* ============================================================== card motion */
.feature,
.slide,
.panel.hoverable {
  transition: transform var(--dur-mid) var(--ease-out-quart),
              border-color var(--dur-mid) linear,
              box-shadow var(--dur-mid) var(--ease-out-quart);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--acid) 42%, var(--line));
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5),
              0 0 0 1px color-mix(in srgb, var(--acid) 18%, transparent);
}
/* The icon lights up rather than the whole card shouting. */
.feature .feature-icon {
  transition: transform var(--dur-mid) var(--ease-out-quart),
              color var(--dur-mid) linear;
}
.feature:hover .feature-icon {
  transform: scale(1.1) rotate(-4deg);
  color: var(--acid-hi);
}

/* ============================================================= stat states */
.stat-value { transition: color var(--dur-mid) linear; }
.stat.is-stale .stat-value { color: var(--muted); }
/* A number that just changed gets a brief flash so live updates are visible. */
.stat-value.bumped { animation: stat-bump .7s var(--ease-out-quart); }
@keyframes stat-bump {
  0%   { color: var(--acid-hi); text-shadow: 0 0 18px color-mix(in srgb, var(--acid) 60%, transparent); }
  100% { color: inherit; text-shadow: none; }
}
.badge-live { position: relative; }
.stat.is-live .badge-live::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--acid);
  animation: live-pulse 1.9s var(--ease-out-quart) infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1;  box-shadow: 0 0 0 0 color-mix(in srgb, var(--acid) 60%, transparent); }
  70%      { opacity: .6; box-shadow: 0 0 0 7px transparent; }
}

/* ========================================================== reveal system */
/* Visible by default. .motion on <html> (added by JS) opts in to the
   animation, so no-JS and headless renders show the finished state. */
html.motion .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out-quart),
              transform var(--dur-slow) var(--ease-out-quart);
}
html.motion .reveal.in { opacity: 1; transform: none; }

/* Staggered children — used on the feature row and the footer columns. */
html.motion .stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-mid) var(--ease-out-quart),
              transform var(--dur-mid) var(--ease-out-quart);
}
html.motion .stagger.in > * { opacity: 1; transform: none; }
html.motion .stagger.in > :nth-child(1) { transition-delay: .00s; }
html.motion .stagger.in > :nth-child(2) { transition-delay: .05s; }
html.motion .stagger.in > :nth-child(3) { transition-delay: .10s; }
html.motion .stagger.in > :nth-child(4) { transition-delay: .15s; }
html.motion .stagger.in > :nth-child(5) { transition-delay: .20s; }
html.motion .stagger.in > :nth-child(6) { transition-delay: .25s; }

/* The wordmark resolving out of static on load. */
html.motion .hero-title .word {
  animation: word-in 1s var(--ease-out-expo) both;
}
html.motion .hero-title .word:nth-child(2) { animation-delay: .12s; }
@keyframes word-in {
  0%   { opacity: 0; transform: translateY(22px) scale(.97); filter: blur(9px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

/* ========================================================= skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel2) 50%, var(--panel) 75%);
  background-size: 200% 100%;
  animation: skeleton-slide 1.4s linear infinite;
  border-radius: 6px;
  color: transparent !important;
}
@keyframes skeleton-slide {
  to { background-position: -200% 0; }
}

/* ============================================================== responsive */
@media (max-width: 900px) {
  .hero-bloom { width: 80vw; height: 80vw; right: -10%; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ========================================================== reduced motion */
/* Everything above has an answer here. Crossfade or nothing — never a
   transform, never an infinite loop. */
@media (prefers-reduced-motion: reduce) {
  html.motion .reveal,
  html.motion .stagger > * { opacity: 1 !important; transform: none !important; }
  html.motion .hero-title .word { animation: none; }

  .loader-mark,
  .loader-mark circle,
  .hero-bloom,
  .mote,
  .fx-grain,
  .badge-live::before,
  .skeleton { animation: none !important; }

  .mote { display: none; }
  .fx-grain { opacity: .03; }

  .btn::after { display: none; }
  .btn:hover, .btn:active,
  .feature:hover { transform: none; }
  .feature:hover .feature-icon { transform: none; }

  .cursor-dot, .cursor-ring { display: none; }
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: auto; }

  .stat-value.bumped { animation: none; }

  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
