/* =====================================================
   ZYGON · REDESIGN
   Editorial / Data-driven / Glassmorphic
   ===================================================== */

/* ---------- TOKENS ---------- */
:root {
  /* Brand */
  --lime: #C4FA2E;
  --lime-soft: #d6ff5b;
  --green: #25D76C;
  --purple: #A86BFF;
  --purple-soft: #c39bff;

  /* Surfaces */
  --bg: #0A0E12;
  --bg-2: #11171D;
  --surface: #161D24;
  --surface-2: #1B232C;

  /* Text */
  --text: #F5F7FA;
  --text-dim: rgba(245, 247, 250, 0.62);
  --text-mute: rgba(245, 247, 250, 0.38);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Type */
  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", monospace;
  --f-serif: "Instrument Serif", Georgia, serif;

  /* Spacing */
  --container: 1280px;
  --pad: clamp(20px, 4vw, 64px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Global UI scale (lower = whole site smaller / less "zoomed") */
  --ui-zoom: 0.8;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: dark;
  zoom: var(--ui-zoom);
}

body {
  font-family: var(--f-display);
  font-feature-settings: "ss01", "ss02";
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: clip;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

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

::selection { background: var(--lime); color: #000; }

/* ---------- GRAIN OVERLAY ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- CUSTOM CURSOR ---------- */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 10000;
}
.cursor__ring {
  position: absolute;
  width: 32px; height: 32px;
  border: 1.5px solid var(--lime);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.2s;
  will-change: transform;
}
.cursor__dot {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--lime);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor.is-hover .cursor__ring {
  width: 48px; height: 48px;
  background: rgba(196, 250, 46, 0.12);
}

@media (hover: none), (max-width: 768px) {
  body { cursor: auto; }
  .cursor { display: none; }
}

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 2px;
  background: rgba(255,255,255,0.04);
  z-index: 999;
}
.scroll-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--green), var(--purple));
  width: 0%;
  transform-origin: left center;
  transition: width 0.1s linear;
}

/* ---------- CONTAINER ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
}

/* ===================================================
   NAVIGATION
   =================================================== */
.nav {
  position: fixed; top: 0; left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px var(--pad);
  transition: all 0.4s var(--ease);
}

.nav.is-scrolled {
  padding: 10px var(--pad);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 12px 16px 12px 22px;
  background: rgba(11, 15, 20, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo-img {
  height: 28px;
  width: auto;
  display: block;
  transition: transform 0.4s var(--ease);
}
.nav__logo:hover .nav__logo-img {
  transform: scale(1.04) rotate(-1deg);
}
.nav__dot {
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
  box-shadow: 0 0 12px var(--lime);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.nav__links {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.nav__links a {
  font-family: var(--f-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 100px;
  transition: all 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
}
.nav__links a span {
  font-size: 9px;
  color: var(--lime);
  opacity: 0.8;
}
.nav__links a:hover {
  background: rgba(196, 250, 46, 0.08);
  color: var(--text);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime);
  color: #000;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  letter-spacing: -0.01em;
}
.nav__cta:hover {
  background: var(--text);
  transform: translateY(-1px);
}
.nav__cta svg { transition: transform 0.3s; }
.nav__cta:hover svg { transform: translateX(3px); }

.nav__menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px; height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav__menu-toggle span {
  width: 16px; height: 1.5px;
  background: var(--text);
  display: block;
}

@media (max-width: 1024px) {
  .nav__links { display: none; }
}
@media (max-width: 640px) {
  .nav__cta span { display: none; }
  .nav__cta { padding: 10px; border-radius: 50%; }
}

/* ===================================================
   HERO
   =================================================== */
/* Pin wrapper: hero stays put while the title reveals on scroll,
   then the page descends once the whole text has appeared. */
.hero-pin {
  position: relative;
  height: 200vh;
}
.hero {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 140px var(--pad) 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero__bg {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 20%, transparent 90%);
  animation: gridShift 30s linear infinite;
  opacity: 0.5;
}
@keyframes gridShift {
  0% { background-position: 0 0; }
  100% { background-position: 64px 64px; }
}

.hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, var(--bg) 95%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  pointer-events: none;
}

/* ---------- AURORA STATIC (GPU-cheap) ---------- */
.aurora-static {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 45% at 18% 28%,  rgba(196, 250, 46, 0.20), transparent 60%),
    radial-gradient(ellipse 55% 50% at 88% 62%,  rgba(168, 107, 255, 0.16), transparent 65%),
    radial-gradient(ellipse 60% 55% at 50% 110%, rgba(37, 215, 108, 0.10), transparent 60%),
    radial-gradient(ellipse 35% 40% at 70% 18%,  rgba(196, 250, 46, 0.12), transparent 60%);
  pointer-events: none;
  animation: auroraSlow 28s ease-in-out infinite;
}
@keyframes auroraSlow {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

/* ---------- NORTHEAST MAP ---------- */
/* ---------- VIDEO + CANVAS LAYERS ---------- */
.hero__video,
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: cover;
}
.hero__video {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}
.hero__video.is-ready {
  opacity: 1;
}
.hero__canvas {
  opacity: 1;
  transition: opacity 0.6s var(--ease-out);
}
.hero__canvas.is-hidden {
  opacity: 0;
}

/* Play hint */
.hero__playhint {
  position: absolute;
  bottom: 28px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(11, 15, 20, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  pointer-events: none;
  opacity: 0;
  animation: hintFade 0.8s var(--ease-out) 1.4s forwards;
  transition: opacity 0.6s var(--ease-out);
}
.hero__playhint.is-played { opacity: 0; }
.hero__playhint-dot {
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--lime);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes hintFade {
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .hero__bg .data-tag--3, .hero__bg .data-tag--4 { display: none; }
  .hero__playhint { display: none; }
}

.map__outline {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: mapDraw 3s var(--ease-out) 0.6s forwards;
}
@keyframes mapDraw {
  to { stroke-dashoffset: 0; }
}
.map__echo--1 { animation: echoPulse 6s ease-in-out infinite; }
.map__echo--2 { animation: echoPulse 6s ease-in-out 1.5s infinite; }
@keyframes echoPulse {
  0%, 100% { opacity: 0.05; }
  50%      { opacity: 0.35; }
}

.map__line {
  stroke-dasharray: 2 4;
  stroke-dashoffset: 80;
  animation: lineDraw 2s var(--ease-out) forwards, lineFlow 6s linear 2s infinite;
  opacity: 0;
}
.map__line:nth-child(1) { animation-delay: 1.2s, 3.2s; }
.map__line:nth-child(2) { animation-delay: 1.4s, 3.4s; }
.map__line:nth-child(3) { animation-delay: 1.6s, 3.6s; }
.map__line:nth-child(4) { animation-delay: 1.8s, 3.8s; }
.map__line:nth-child(5) { animation-delay: 2.0s, 4.0s; }
.map__line:nth-child(6) { animation-delay: 2.2s, 4.2s; }
.map__line:nth-child(7) { animation-delay: 2.4s, 4.4s; }
.map__line:nth-child(8) { animation-delay: 2.6s, 4.6s; }
@keyframes lineDraw {
  0%   { stroke-dashoffset: 80; opacity: 0; }
  60%  { opacity: 0.6; }
  100% { stroke-dashoffset: 0; opacity: 0.5; }
}
@keyframes lineFlow {
  to { stroke-dashoffset: -80; }
}

.city__dot {
  fill: #C4FA2E;
  opacity: 0;
  animation: cityFade 0.5s var(--ease-out) calc(0.6s + var(--d, 0s)) forwards;
}
.city__pulse {
  fill: none;
  stroke: #C4FA2E;
  stroke-width: 1;
  opacity: 0;
}
.city--hq .city__pulse,
.city:nth-child(3) .city__pulse,
.city:nth-child(6) .city__pulse {
  animation: cityPulse 3s ease-out infinite calc(var(--d, 0s) + 1s);
}
.city__halo {
  fill: rgba(196, 250, 46, 0.08);
  opacity: 0;
  animation: cityFade 0.6s var(--ease-out) 0.6s forwards;
}
@keyframes cityFade {
  to { opacity: 1; }
}
@keyframes cityPulse {
  0%   { opacity: 0.6; r: 3; }
  100% { opacity: 0; r: 22; }
}
.city--hq .city__pulse {
  stroke-width: 1.4;
  animation-name: cityPulseHq;
  animation-duration: 2.2s;
}
@keyframes cityPulseHq {
  0%   { opacity: 0.7; r: 6; }
  100% { opacity: 0; r: 38; }
}

.map__label {
  fill: rgba(245, 247, 250, 0.55);
  font-size: 8.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: labelFade 0.8s var(--ease-out) 2.4s backwards;
}
.map__label--hq {
  fill: #C4FA2E;
  font-weight: 700;
  font-size: 9.5px;
}
@keyframes labelFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.map__packet {
  filter: drop-shadow(0 0 4px currentColor);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
}
.hero__glow {
  --py: 0px;
  --fx: 0px;
  --fy: 0px;
  transform: translate(var(--fx), calc(var(--py) + var(--fy)));
}
.hero__glow--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(196,250,46,0.5), transparent 70%);
  top: -100px; right: -100px;
  animation: float1 12s ease-in-out infinite;
}
.hero__glow--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168,107,255,0.35), transparent 70%);
  bottom: -150px; left: -100px;
  animation: float2 14s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { --fx: 0px; --fy: 0px; }
  50% { --fx: -40px; --fy: 60px; }
}
@keyframes float2 {
  0%, 100% { --fx: 0px; --fy: 0px; }
  50% { --fx: 60px; --fy: -40px; }
}
@property --fx {
  syntax: "<length>";
  initial-value: 0px;
  inherits: false;
}
@property --fy {
  syntax: "<length>";
  initial-value: 0px;
  inherits: false;
}

/* Big Z monogram on the right */
.hero__z {
  position: absolute;
  top: 50%; right: -8%;
  transform: translateY(-50%);
  width: 720px; height: 720px;
  opacity: 0.95;
  pointer-events: none;
  animation: zSpin 40s linear infinite;
  filter: drop-shadow(0 0 40px rgba(196, 250, 46, 0.15));
}
@keyframes zSpin {
  from { transform: translateY(-50%) rotate(-3deg); }
  50%  { transform: translateY(-50%) rotate(3deg); }
  to   { transform: translateY(-50%) rotate(-3deg); }
}
.hero__z-stroke {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: zDraw 4s var(--ease-out) 0.4s forwards, zPulse 5s ease-in-out 4.4s infinite;
}
@keyframes zDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes zPulse {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(196,250,46,0)); }
  50%      { filter: drop-shadow(0 0 25px rgba(196,250,46,0.5)); }
}
.hero__z-echo--1 {
  animation: echoFade 6s ease-in-out infinite;
}
.hero__z-echo--2 {
  animation: echoFade 6s ease-in-out 1s infinite;
}
@keyframes echoFade {
  0%, 100% { opacity: 0.1; transform: scale(0.95); transform-origin: center; }
  50% { opacity: 0.5; transform: scale(1.02); transform-origin: center; }
}

/* Floating data tags */
.data-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(20, 28, 36, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  white-space: nowrap;
}
.data-tag em {
  color: var(--lime);
  font-style: normal;
  font-weight: 700;
}
.data-tag .dot {
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}
.data-tag .dot--purple { background: var(--purple); }
.data-tag .dot--green { background: var(--green); }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.data-tag {
  --py: 0px;
  --float: 0px;
  transform: translateY(calc(var(--py) + var(--float)));
}
.data-tag--1 { top: 18%; right: 12%; animation: float-tag 8s ease-in-out infinite; }
.data-tag--2 { top: 58%; right: 4%; animation: float-tag 10s ease-in-out 1s infinite; }
.data-tag--3 { top: 82%; right: 28%; animation: float-tag 9s ease-in-out 2s infinite; }
.data-tag--4 { top: 38%; right: 50%; animation: float-tag 11s ease-in-out 0.5s infinite; }
@keyframes float-tag {
  0%, 100% { --float: 0px; }
  50% { --float: -12px; }
}
@property --float {
  syntax: "<length>";
  initial-value: 0px;
  inherits: false;
}

/* Hero content */
.hero__content {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.hero__meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 40px;
  animation: fadeUp 0.9s var(--ease-out) both;
}
.hero__loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
}
.hero__loc svg circle { animation: blink 1.5s infinite; }

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(48px, 9vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 600;
  font-variation-settings: "wdth" 92;
  margin-bottom: 60px;
  max-width: 1100px;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  margin-bottom: -8px;
  opacity: 0;                 /* hidden on load; revealed on scroll (left -> right) */
  will-change: transform, opacity;
}
.hero__title .word {
  display: inline-block;
}
.hero__title .word.italic {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: normal;
  color: var(--text-dim);
  margin: 0 0.1em;
}
.hero__title .word.lime { color: var(--lime); }
.hero__title .punct { color: var(--lime); font-style: normal; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  max-width: 1000px;
  animation: fadeUp 1s var(--ease-out) 1s both;
}
.hero__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 480px;
  font-weight: 300;
}
.hero__sub strong {
  color: var(--text);
  font-weight: 600;
  background: linear-gradient(180deg, transparent 65%, rgba(196,250,46,0.25) 65%);
  padding: 0 2px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__scroll {
  position: absolute;
  bottom: 0; left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  animation: fadeUp 1s var(--ease-out) 1.4s both;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--lime), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 30%;
  background: var(--lime);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(330%); }
}

@media (max-width: 768px) {
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__z { right: -40%; width: 500px; height: 500px; opacity: 0.4; }
  .data-tag--1, .data-tag--2, .data-tag--3 { display: none; }
  .hero__scroll { display: none; }
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  isolation: isolate;
}

.btn--primary {
  background: var(--lime);
  color: #000;
}
.btn--primary::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
  z-index: -1;
}
.btn--primary:hover::before { transform: translateY(0); }
.btn--primary:hover { color: #000; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--lime);
  background: rgba(196, 250, 46, 0.05);
}

.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn--xl { padding: 24px 40px; font-size: 18px; border-radius: 100px; }

.btn__icon {
  display: inline-flex;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__icon { transform: translateX(4px) rotate(-2deg); }

/* ===================================================
   MARQUEE
   =================================================== */
.marquee {
  position: relative;
  padding: 28px 0;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(196,250,46,0.03), transparent 50%, rgba(168,107,255,0.03));
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: flex;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}
.marquee span {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variation-settings: "wdth" 100;
}
.marquee i {
  font-style: normal;
  color: var(--lime);
  font-size: clamp(20px, 3vw, 36px);
}
.marquee__z {
  height: clamp(26px, 3.6vw, 46px);
  width: auto;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ===================================================
   SECTION HEAD
   =================================================== */
.section-head {
  margin-bottom: 80px;
  max-width: 1000px;
}
.section-head--row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  max-width: none;
}
.section-head__num {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--lime);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.section-head__title {
  font-family: var(--f-display);
  font-size: clamp(36px, 5.6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
  font-variation-settings: "wdth" 92;
  max-width: 1000px;
}
.section-head__sub {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--text-dim);
  margin-top: 24px;
  max-width: 540px;
  line-height: 1.55;
  font-weight: 300;
}
.section-head__sub--center {
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.section-head .lime { color: var(--lime); }

/* ===================================================
   SOLUÇÕES
   =================================================== */
.solutions {
  padding: 140px 0 120px;
  position: relative;
}
.solutions::before {
  content: "";
  position: absolute;
  top: 20%; right: 0;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(196,250,46,0.08), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}

.solutions__cta {
  text-align: center;
}

/* ---------- GLASS CARD BASE ---------- */
.glass {
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02) 40%, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Solution Card */
.card {
  grid-column: span 3;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 360px;
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.card--lg { grid-column: span 3; }
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 250, 46, 0.25);
}
.card:hover::after {
  opacity: 1;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(196,250,46,0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 12px;
}
.card__num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.card__icon {
  margin-top: auto;
  margin-bottom: 8px;
}
.card__title {
  font-family: var(--f-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 90;
}
.card__title em {
  font-style: italic;
  font-family: var(--f-serif);
  font-weight: 400;
  color: var(--text-dim);
  display: inline-block;
  margin-left: 4px;
}
.card__copy {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 300;
}
.card__stat {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.card__stat .num {
  font-family: var(--f-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--lime);
  line-height: 1;
  font-variation-settings: "wdth" 75;
}
.card__stat .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  margin-top: 6px;
}
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.card__tags span {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-dim);
}

@media (max-width: 1024px) {
  .solutions__grid { grid-template-columns: repeat(2, 1fr); }
  .card, .card--lg { grid-column: span 1; }
}
@media (max-width: 600px) {
  .solutions__grid { grid-template-columns: 1fr; }
  .card { padding: 28px; min-height: 300px; }
}

/* ===================================================
   MANIFESTO
   =================================================== */
.manifesto {
  padding: 120px 0;
  position: relative;
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(196,250,46,0.02), transparent);
}

.manifesto__head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}
.manifesto__head .section-head__num { margin: 0; padding: 0; border: none; }

.manifesto__kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.manifesto__title {
  font-family: var(--f-display);
  font-size: clamp(48px, 8vw, 130px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 500;
  font-variation-settings: "wdth" 92;
  max-width: 1100px;
  margin-bottom: 80px;
}
.manifesto__title .strike {
  position: relative;
  color: var(--text-dim);
  display: inline-block;
}
.manifesto__title .strike::after {
  content: "";
  position: absolute;
  top: 50%; left: -2%;
  width: 0;
  height: 5px;
  background: var(--lime);
  transform: translateY(-50%) skewY(-3deg);
  transition: width 1s var(--ease-out);
}
.manifesto__title.is-revealed .strike::after { width: 104%; }
.manifesto__title .display-italic {
  display: block;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
  font-variation-settings: normal;
  margin-top: -12px;
}

.manifesto__body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 100px;
}
.manifesto__text {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 300;
  max-width: 800px;
}
.manifesto__text .hl {
  color: var(--lime);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .manifesto__body { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat__num, .stat__plus {
  font-family: var(--f-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  font-variation-settings: "wdth" 78;
  display: inline-block;
}
.stat__plus { color: var(--lime); margin-left: -2px; }
.stat__lbl {
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  margin-top: 12px;
  max-width: 200px;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
}

/* ===================================================
   BLOG
   =================================================== */
.blog {
  padding: 140px 0 100px;
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 80px;
}

.post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.post:hover { transform: translateY(-6px); }

.post__media {
  height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 23px 23px 0 0;
}
.post__pattern {
  position: absolute; inset: 0;
  background: var(--bg-2);
}
.post__pattern--1 {
  background:
    radial-gradient(circle at 20% 30%, rgba(196,250,46,0.6), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(168,107,255,0.4), transparent 40%),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(196,250,46,0.08) 12px 13px),
    var(--bg-2);
}
.post__pattern--2 {
  background:
    radial-gradient(ellipse at top, rgba(168,107,255,0.4), transparent 60%),
    radial-gradient(circle at 60% 50%, rgba(196,250,46,0.3), transparent 50%),
    var(--bg-2);
}
.post__pattern--2::after {
  content: "JOIN US";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-display);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.06);
  font-variation-settings: "wdth" 75;
}
.post__pattern--3 {
  background:
    radial-gradient(circle at 30% 40%, rgba(37,215,108,0.4), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(196,250,46,0.3), transparent 50%),
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(255,255,255,0.04) 8px 9px),
    var(--bg-2);
}

.post__cat {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 5px 10px;
  background: var(--lime);
  color: #000;
  border-radius: 100px;
  font-weight: 600;
}
.post__cat--alt {
  background: var(--purple);
  color: #fff;
}

.post__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post__date {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-mute);
}
.post__title {
  font-family: var(--f-display);
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  flex: 1;
}
.post__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lime);
  margin-top: auto;
  transition: gap 0.3s var(--ease);
}
.post__more i { font-style: normal; transition: transform 0.3s; }
.post__more:hover i { transform: translateX(4px); }

@media (max-width: 1024px) { .blog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog__grid { grid-template-columns: 1fr; } }

/* Newsletter */
.newsletter {
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  border-radius: 32px;
}
.newsletter__kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--lime);
  margin-bottom: 12px;
}
.newsletter__title {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.newsletter__form {
  display: flex;
  gap: 8px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 6px 6px 24px;
}
.newsletter__form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: var(--f-display);
  font-size: 15px;
}
.newsletter__form input::placeholder { color: var(--text-mute); }

@media (max-width: 768px) {
  .newsletter { grid-template-columns: 1fr; padding: 32px; }
  .newsletter__form { flex-direction: column; padding: 16px; border-radius: 20px; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--lime);
  border-bottom: 1px solid var(--lime);
  padding-bottom: 6px;
  transition: gap 0.3s var(--ease);
}
.link-arrow:hover { gap: 18px; }
.link-arrow--center {
  display: flex;
  margin: 60px auto 0;
  width: max-content;
}

/* ===================================================
   EQUIPE
   =================================================== */
.team {
  padding: 140px 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(168,107,255,0.05), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(196,250,46,0.04), transparent 40%);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}

.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 24px 16px 28px;
  border-radius: 24px;
  transition: all 0.4s var(--ease);
  cursor: pointer;
  position: relative;
}
.member::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.member:hover {
  transform: translateY(-6px);
}
.member:hover::before { opacity: 1; }
.member--featured::before { opacity: 1; }

.member__photo {
  position: relative;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 18px;
  transition: transform 0.5s var(--ease);
  isolation: isolate;
}
.member__photo::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(196,250,46,0.6),
    rgba(168,107,255,0.4),
    rgba(37,215,108,0.5),
    rgba(196,250,46,0.6));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: -1;
  animation: ringSpin 6s linear infinite;
}
.member__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  pointer-events: none;
}
.member:hover .member__photo {
  transform: scale(1.04);
}
.member:hover .member__photo::before { opacity: 1; }
.member--featured .member__photo::before { opacity: 0.7; }

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  transition: filter 0.4s var(--ease);
  filter: saturate(0.95);
}
.member:hover .member__photo img {
  filter: saturate(1.1);
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.member__name {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 4px;
}
.member__role {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lime);
}
.member__loc {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

@media (max-width: 1024px) { .team__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .team__grid { grid-template-columns: repeat(2, 1fr); } }

/* ===================================================
   BRANDS
   =================================================== */
.brands {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.brands__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 60px;
}
.brand-cell {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text-dim);
  border-radius: 16px;
  transition: all 0.4s var(--ease);
  font-variation-settings: "wdth" 100;
}
.brand-cell:hover {
  color: var(--lime);
  border-color: rgba(196, 250, 46, 0.3);
  transform: scale(1.02);
}

.brands__cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 48px;
  border-radius: 32px;
}
.brands__kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 12px;
}
.brands__title {
  font-family: var(--f-display);
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.03em;
  font-weight: 500;
  line-height: 1.1;
  font-variation-settings: "wdth" 92;
}

@media (max-width: 768px) {
  .brands__grid { grid-template-columns: repeat(2, 1fr); }
  .brands__cta { grid-template-columns: 1fr; padding: 32px; }
}

/* ===================================================
   FINAL CTA
   =================================================== */
.cta-final {
  padding: 160px 0;
  position: relative;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196,250,46,0.08), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(168,107,255,0.08), transparent 50%);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.cta-final::before, .cta-final::after {
  content: "";
  position: absolute;
  font-family: var(--f-display);
  font-size: clamp(120px, 30vw, 480px);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(196, 250, 46, 0.04);
  font-variation-settings: "wdth" 75;
  pointer-events: none;
  white-space: nowrap;
}
.cta-final::before {
  content: "DADOS";
  top: -10%; left: -5%;
}
.cta-final::after {
  content: "DECISÕES";
  bottom: -20%; right: -5%;
}

.cta-final__grid {
  position: relative;
  z-index: 1;
}
.cta-final__title {
  font-family: var(--f-display);
  font-size: clamp(48px, 8vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 500;
  font-variation-settings: "wdth" 92;
  margin-bottom: 32px;
}
.cta-final__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: normal;
  color: var(--lime);
}
.cta-final__title .lime { color: var(--lime); }
.cta-final__sub {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.5;
  font-weight: 300;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}
.footer__logo {
  display: flex;
  align-items: center;
}
.footer__logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.footer__col a {
  display: block;
  font-family: var(--f-display);
  font-size: 16px;
  letter-spacing: -0.015em;
  padding: 6px 0;
  color: var(--text-dim);
  transition: color 0.2s, padding 0.3s;
}
.footer__col a:hover {
  color: var(--lime);
  padding-left: 8px;
}
.footer__addr {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 12px;
  letter-spacing: 0.05em;
}

.footer__bigword {
  font-family: var(--f-display);
  font-size: clamp(80px, 22vw, 360px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: var(--lime);
  font-variation-settings: "wdth" 75;
  margin: 60px 0 40px;
  white-space: nowrap;
  user-select: none;
  background: linear-gradient(180deg, var(--lime) 0%, transparent 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.footer__legal .lime { color: var(--lime); }

@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .footer__cols { grid-template-columns: 1fr; }
}

/* ===================================================
   FLOATING WHATSAPP
   =================================================== */
.float-whatsapp {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 8px 32px rgba(37, 215, 108, 0.3);
  transition: transform 0.3s var(--ease);
}
.float-whatsapp:hover { transform: scale(1.1) rotate(8deg); }
.float-whatsapp::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--green);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ===================================================
   SCROLL REVEAL
   =================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-words] {
  display: block;
}
[data-reveal-words] .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
[data-reveal-words].is-revealed .w {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   ARTICLE PAGE
   =================================================== */
.article {
  position: relative;
  isolation: isolate;
}

.article__hero {
  position: relative;
  padding: 180px var(--pad) 100px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}

.article__hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(196,250,46,0.18), transparent 60%),
    radial-gradient(ellipse 50% 70% at 20% 90%, rgba(168,107,255,0.12), transparent 60%),
    radial-gradient(ellipse 40% 60% at 50% 0%, rgba(37,215,108,0.08), transparent 60%);
  z-index: -2;
  filter: blur(40px) saturate(120%);
}
.article__hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 90%);
  z-index: -1;
}

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 32px;
  transition: color 0.2s, gap 0.3s var(--ease);
}
.article__back:hover { color: var(--lime); gap: 14px; }

.article__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  background: var(--lime);
  color: #000;
  border-radius: 100px;
  font-weight: 600;
  margin-bottom: 28px;
}
.article__cat--purple { background: var(--purple); color: #fff; }
.article__cat--green { background: var(--green); color: #000; }

.article__title {
  font-family: var(--f-display);
  font-size: clamp(36px, 6vw, 86px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
  font-variation-settings: "wdth" 92;
  max-width: 1100px;
  margin-bottom: 40px;
}
.article__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: normal;
  color: var(--lime);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.article__meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.article__meta span::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--lime);
  border-radius: 50%;
}
.article__meta span:first-child::before { display: none; }

.article__body {
  padding: 100px var(--pad) 120px;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 280px);
  gap: 80px;
  max-width: var(--container);
  margin: 0 auto;
  align-items: start;
}

.article__content {
  font-family: var(--f-display);
  font-size: 18.5px;
  line-height: 1.65;
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: -0.005em;
}

.article__content > * + * { margin-top: 1.2em; }

.article__lead {
  font-size: 24px !important;
  line-height: 1.45 !important;
  color: var(--text) !important;
  font-weight: 400;
  letter-spacing: -0.015em;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px !important;
}

.article__content h2 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  font-weight: 600;
  margin-top: 2.4em !important;
  margin-bottom: 0.8em;
  font-variation-settings: "wdth" 92;
}
.article__content h2::before {
  content: "§ ";
  color: var(--lime);
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.7em;
  vertical-align: 0.2em;
  margin-right: 4px;
}
.article__content h3 {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 600;
  margin-top: 1.8em !important;
  margin-bottom: 0.4em;
}

.article__content p strong {
  color: var(--text);
  font-weight: 600;
}
.article__content p em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
  font-size: 1.05em;
}
.article__content a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-color: rgba(196, 250, 46, 0.4);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}
.article__content a:hover { text-decoration-color: var(--lime); }

.article__content ul, .article__content ol {
  padding-left: 0;
  list-style: none;
}
.article__content ul li, .article__content ol li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
}
.article__content ul li::before {
  content: "→";
  position: absolute;
  left: 0; top: 0;
  color: var(--lime);
  font-family: var(--f-mono);
  font-weight: 700;
}
.article__content ol {
  counter-reset: ol;
}
.article__content ol li {
  counter-increment: ol;
}
.article__content ol li::before {
  content: counter(ol, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  color: var(--lime);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.pull-quote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.25;
  color: var(--lime);
  padding: 48px 0;
  margin: 48px 0 !important;
  border-block: 1px solid var(--border);
  position: relative;
  letter-spacing: -0.01em;
}
.pull-quote::before {
  content: "";
  font-family: var(--f-display);
  font-size: 80px;
  line-height: 0;
  color: var(--lime);
  opacity: 0.3;
  position: absolute;
  top: 38px; left: -8px;
}
.pull-quote cite {
  display: block;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  margin-top: 24px;
}

.callout {
  padding: 32px;
  border-radius: 20px;
  margin: 40px 0 !important;
  background: linear-gradient(145deg, rgba(196,250,46,0.08), rgba(196,250,46,0.02));
  border: 1px solid rgba(196, 250, 46, 0.2);
}
.callout__kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--lime);
  margin-bottom: 12px;
  display: block;
}
.callout p {
  margin: 0 !important;
  color: var(--text);
  font-size: 18px !important;
}

.article__hero-img {
  margin: 40px 0 !important;
  height: 380px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.article__hero-img--1 {
  background:
    radial-gradient(circle at 30% 40%, rgba(196,250,46,0.5), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(168,107,255,0.4), transparent 50%),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,0.04) 18px 19px),
    var(--bg-2);
}
.article__hero-img--2 {
  background:
    radial-gradient(ellipse at top, rgba(168,107,255,0.45), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(196,250,46,0.35), transparent 50%),
    var(--bg-2);
}
.article__hero-img--3 {
  background:
    radial-gradient(circle at 25% 50%, rgba(37,215,108,0.4), transparent 50%),
    radial-gradient(circle at 75% 50%, rgba(196,250,46,0.35), transparent 50%),
    repeating-linear-gradient(0deg, transparent 0 12px, rgba(255,255,255,0.04) 12px 13px),
    var(--bg-2);
}

/* Article sidebar */
.article__aside {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.toc {
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border: 1px solid var(--border);
}
.toc__title {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toc__list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  transition: color 0.2s, gap 0.3s var(--ease);
}
.toc__list a span {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--lime);
  letter-spacing: 0.1em;
}
.toc__list a:hover { color: var(--text); gap: 16px; }

.share {
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border: 1px solid var(--border);
}
.share__title {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.share__list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share__list a {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
}
.share__list a:hover {
  background: var(--lime);
  color: #000;
  border-color: var(--lime);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .article__body { grid-template-columns: 1fr; }
  .article__aside { position: static; }
}

/* Article CTA */
.article__cta {
  margin-top: 80px !important;
  padding: 48px;
  border-radius: 28px;
  text-align: center;
}
.article__cta h3 {
  font-family: var(--f-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text);
}
.article__cta p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 28px !important;
}

/* Related articles */
.related {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], [data-reveal-words] .w {
    opacity: 1;
    transform: none;
  }
  /* keep the brand marquee scrolling even with reduced motion */
  .marquee__track {
    animation-duration: 40s !important;
    animation-iteration-count: infinite !important;
  }
}
