/* ============================================================
   RAFAEL SILVA — Landing page styles
   Built on tokens.css (.tt scope) — uses commerce lime, --cyan, --ink
   ============================================================ */

/* —— GLOBAL —— */
.rs-page {
  background: var(--ink-000);
  color: var(--fg-100);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  font-family: var(--font-sans);
}
.rs-page,
.rs-page * {
  box-sizing: border-box;
}

/* Animated background — radial glows + grid + neural lines */
.rs-bg {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.rs-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 90%);
}
.rs-bg-noise {
  position: absolute; inset: 0;
  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'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: screen;
}
.rs-bg-glow-a, .rs-bg-glow-b, .rs-bg-glow-c {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  will-change: transform;
}
.rs-bg-glow-a {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(149,242,15,0.18), transparent 60%);
  top: -200px; left: -100px;
  animation: rs-drift-a 30s ease-in-out infinite;
}
.rs-bg-glow-b {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(94,200,255,0.15), transparent 60%);
  top: 30%; right: -200px;
  animation: rs-drift-b 40s ease-in-out infinite;
}
.rs-bg-glow-c {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(149,242,15,0.10), transparent 60%);
  bottom: -200px; left: 30%;
  animation: rs-drift-c 50s ease-in-out infinite;
}
@keyframes rs-drift-a { 50% { transform: translate(80px, 60px); } }
@keyframes rs-drift-b { 50% { transform: translate(-100px, 40px); } }
@keyframes rs-drift-c { 50% { transform: translate(60px, -80px); } }

/* Particles */
.rs-bg-particles { position: absolute; inset: 0; }
.rs-bg-particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--cyan-300);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--cyan-glow);
  opacity: 0.5;
  animation: rs-float-p linear infinite;
}
@keyframes rs-float-p {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

/* —— LAYOUT —— */
.rs-page > main { position: relative; z-index: 1; }
.rs-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
}
.rs-section {
  padding: 88px 0;
  position: relative;
}
@media (max-width: 900px) {
  .rs-container { padding: 0 24px; }
  .rs-section { padding: 64px 0; }
}

/* —— NAV —— */
.rs-nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: 16px;
  width: min(calc(100vw - 48px), 1160px);
  padding: 12px 14px 12px 20px;
  background: rgba(8, 11, 20, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--rule-300), 0 12px 40px rgba(0,0,0,0.5);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.rs-nav-brand { display: inline-flex; align-items: center; flex: 0 0 auto; padding-right: 28px; border-right: 1px solid var(--rule-300); }
.rs-nav-logo-mark {
  display: block;
  width: clamp(188px, 18vw, 230px);
  height: auto;
  max-height: 43px;
}
.rs-nav-links {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: clamp(4px, 0.8vw, 10px);
  min-width: 0;
  padding-left: 4px;
}
.rs-nav-links a {
  color: var(--fg-300);
  text-decoration: none;
  padding: 8px clamp(6px, 0.65vw, 9px);
  border-radius: 100px;
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.rs-nav-links a:hover { color: var(--fg-100); background: rgba(255,255,255,0.04); }
.rs-nav-cta {
  background: var(--ember-500);
  color: #0a0a0a !important;
  padding: 8px 16px !important;
  border-radius: 100px;
  font-weight: 600;
  box-shadow: 0 0 16px var(--ember-glow);
}
.rs-nav-cta:hover { background: var(--ember-400) !important; }
.rs-nav-status {
  display: inline-flex; align-items: center; gap: 6px;
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--status-live);
  font-size: 10px;
  letter-spacing: 0.10em;
  white-space: nowrap;
}
@media (max-width: 1060px) {
  .rs-nav-links a[href="#evolucao"] { display: none; }
}
@media (max-width: 960px) {
  .rs-nav-links a[href="#stack"] { display: none; }
}
@media (max-width: 900px) {
  .rs-nav-links, .rs-nav-status { display: none; }
}

/* —— REVEAL —— */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease-out-q), transform 800ms var(--ease-out-q);
  transition-delay: var(--rev-delay, 0ms);
}
/* Safety: if observer never fires (small viewport heuristics), reveal after 1.5s */
@keyframes rs-failsafe-reveal { to { opacity: 1; transform: translateY(0); } }
.reveal:not(.is-in) { animation: rs-failsafe-reveal 800ms var(--ease-out-q) 1500ms forwards; }
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ============================================================
   HERO
   ============================================================ */
.rs-hero {
  padding-top: clamp(104px, 11vh, 132px);
  padding-bottom: 0;
  min-height: auto;
  display: flex;
  align-items: flex-start;
}
@media (max-width: 760px) {
  .rs-hero { padding-top: 128px; padding-bottom: 24px; }
}
.rs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 720px);
  max-width: 1660px;
  gap: 36px;
  align-items: center;
}
.rs-hero-copy,
.rs-hero-visual {
  min-width: 0;
}
@media (max-width: 1180px) {
  .rs-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; }
}

.rs-hero-eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-300);
  margin-bottom: 32px;
}
.rs-hero-eyebrow-line {
  flex: 1;
  height: 1px;
  background: var(--rule-200);
  min-width: 24px;
}
.rs-hero-eyebrow-text {
  white-space: nowrap;
}

.rs-hero-title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--fg-100);
  text-wrap: balance;
}
.rs-hero-title > span { display: block; }
.rs-title-line-main { white-space: nowrap; }
.rs-italic { font-style: italic; }
.rs-ember { color: var(--ember-500); }
.rs-shopify-green { color: #95f20f; text-shadow: 0 0 24px rgba(153,242,15,0.18); }
.rs-grad-cyan {
  background: linear-gradient(120deg, var(--cyan-300), var(--cyan-400) 60%, var(--cyan-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 1180px) {
  .rs-hero-title { font-size: 56px; }
}
@media (min-width: 1540px) {
  .rs-hero-title { font-size: 58px; }
}
@media (max-width: 760px) {
  .rs-hero-title { font-size: 44px; line-height: 1.12; }
  .rs-title-line-main { white-space: normal; }
}
@media (max-width: 460px) {
  .rs-hero-title { font-size: 36px; }
}

.rs-hero-sub {
  margin-top: 32px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-200);
  max-width: 580px;
  text-wrap: pretty;
}
.rs-strong { color: var(--fg-100); border-bottom: 1px solid var(--ember-500); padding-bottom: 1px; }

/* Hero · subtle premium emphasis (no underline, no neon, no link feel) */
.rs-hero .rs-strong {
  color: #f5f5f4;
  border-bottom: 0;
  padding-bottom: 0;
  font-weight: 500;
  background: linear-gradient(180deg, #ffffff 0%, #d6d3d1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rs-hero-ctas {
  margin-top: 40px;
  display: flex; gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
}
/* Buttons render statically — they fade in with the parent .rs-hero-copy
   reveal. Keeping them outside the GSAP timeline avoids paint-order races
   with the magnetic-hover transform on the primary CTA. */
.rs-hero .rs-hero-ctas .rs-btn {
  opacity: 1 !important;
}

.rs-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 4px;
  text-decoration: none;
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.rs-btn svg {
  transition: transform 0.24s var(--ease-out);
}
.rs-btn:hover svg { transform: translateX(4px); }

.rs-btn-lg { padding: 18px 28px; font-size: 13px; }
.rs-btn-primary {
  background: var(--ember-500);
  color: #0a0a0a;
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--ember-600), 0 8px 28px rgba(149,242,15,0.27), inset 0 1px 0 rgba(255,255,255,0.2);
}
.rs-btn-primary:hover {
  background: var(--ember-400);
  box-shadow: 0 0 0 1px var(--ember-500), 0 12px 42px rgba(149,242,15,0.28), inset 0 1px 0 rgba(255,255,255,0.3);
}
/* Lift only when not magnetic — JS magnetic owns transform on hover */
.rs-btn-primary:not(.is-magnetic):hover { transform: translateY(-1px); }

.rs-btn-ghost {
  color: var(--fg-100);
  box-shadow: inset 0 0 0 1px var(--rule-300);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
/* Ember accent bar — grows from 0 on hover (signature-bar pattern) */
.rs-btn-ghost::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 2px; height: 60%;
  background: var(--ember-500);
  box-shadow: 0 0 8px var(--ember-glow);
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  transition: transform 0.32s var(--ease-out);
  pointer-events: none;
}
.rs-btn-ghost:hover {
  background: rgba(149,242,15,0.04);
  box-shadow: inset 0 0 0 1px rgba(149,242,15,0.4), 0 8px 24px rgba(149,242,15,0.06);
  transform: translateY(-1px);
}
.rs-btn-ghost:hover::before { transform: translateY(-50%) scaleY(1); }

.rs-hero-tags {
  margin-top: 32px;
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--rule-200);
}
.rs-chip {
  --chip-color: var(--fg-200);
  --chip-border: var(--rule-300);
  --chip-bg: rgba(255,255,255,0.025);
  --chip-glow: rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px 6px 10px;
  color: var(--chip-color);
  background: var(--chip-bg);
  box-shadow: inset 0 0 0 1px var(--chip-border);
  border-radius: 4px;
  transition:
    color 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    background 0.28s var(--ease-out),
    transform 0.28s var(--ease-out);
}
/* Status dot — small accent dot, color follows chip accent */
.rs-chip-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--chip-color);
  box-shadow: 0 0 6px var(--chip-glow);
  transition: box-shadow 0.28s var(--ease-out), background 0.28s var(--ease-out);
  flex: 0 0 5px;
}
/* Live chips: idle pulse on the dot only (cheap, never distracts) */
.rs-chip-live .rs-chip-dot { animation: rs-chip-dot-pulse 2.4s ease-in-out infinite; }
@keyframes rs-chip-dot-pulse {
  0%, 100% { box-shadow: 0 0 4px var(--chip-glow); opacity: 0.85; }
  50%      { box-shadow: 0 0 10px var(--chip-glow), 0 0 16px var(--chip-glow); opacity: 1; }
}

.rs-chip:hover {
  color: var(--fg-100);
  background: var(--chip-bg-hover, var(--chip-bg));
  box-shadow: inset 0 0 0 1px var(--chip-border-hover, var(--chip-border)), 0 6px 18px var(--chip-glow);
  transform: translateY(-1px);
}

/* Accent variants — set color tokens, the rule above handles geometry */
.rs-chip-shopify {
  --chip-color: #d6f7a8;
  --chip-border: rgba(149,242,15,0.30);
  --chip-bg: rgba(149,242,15,0.06);
  --chip-glow: rgba(149,242,15,0.45);
  --chip-bg-hover: rgba(149,242,15,0.10);
  --chip-border-hover: rgba(149,242,15,0.55);
}
.rs-chip-shopify .rs-chip-dot { background: #95f20f; }

.rs-chip-cyan {
  --chip-color: var(--cyan-400);
  --chip-border: rgba(94,200,255,0.28);
  --chip-bg: rgba(94,200,255,0.06);
  --chip-glow: rgba(94,200,255,0.45);
  --chip-bg-hover: rgba(94,200,255,0.10);
  --chip-border-hover: rgba(94,200,255,0.55);
}
.rs-chip-cyan .rs-chip-dot { background: var(--cyan-400); }

.rs-chip-ember {
  --chip-color: var(--ember-400);
  --chip-border: rgba(255,107,58,0.30);
  --chip-bg: rgba(255,107,58,0.06);
  --chip-glow: rgba(255,107,58,0.45);
  --chip-bg-hover: rgba(255,107,58,0.10);
  --chip-border-hover: rgba(255,107,58,0.55);
}
.rs-chip-ember .rs-chip-dot { background: var(--ember-500); }

/* Live without an accent — keep legacy green tint (used outside hero, e.g. sec-mid) */
.rs-chip-live:not(.rs-chip-shopify):not(.rs-chip-cyan):not(.rs-chip-ember) {
  --chip-color: var(--status-live);
  --chip-border: rgba(74,222,128,0.30);
  --chip-bg: rgba(74,222,128,0.06);
  --chip-glow: rgba(74,222,128,0.45);
  --chip-bg-hover: rgba(74,222,128,0.10);
  --chip-border-hover: rgba(74,222,128,0.55);
}

/* Scan — JS toggles .is-scanning on one chip at a time, ~1.1s cycle.
   Replaces the old infinite cyan-only pulse. */
.rs-chip.is-scanning {
  background: var(--chip-bg-hover, var(--chip-bg));
  box-shadow:
    inset 0 0 0 1px var(--chip-border-hover, var(--chip-border)),
    0 0 18px var(--chip-glow);
  color: var(--fg-100);
}
.rs-chip.is-scanning .rs-chip-dot {
  box-shadow: 0 0 12px var(--chip-glow), 0 0 22px var(--chip-glow);
}

/* ScrollTrigger re-flash — staggered quick burst on re-entering hero */
.rs-chip.is-flash {
  animation: rs-chip-flash 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes rs-chip-flash {
  0%   { box-shadow: inset 0 0 0 1px var(--chip-border); }
  45%  { box-shadow: inset 0 0 0 1px var(--chip-border-hover, var(--chip-border)), 0 0 22px var(--chip-glow); transform: translateY(-1px); }
  100% { box-shadow: inset 0 0 0 1px var(--chip-border); transform: translateY(0); }
}

.rs-chip-sm { font-size: 10px; padding: 4px 8px; letter-spacing: 0.1em; }

.rs-signature {
  margin-top: 40px;
  display: flex; align-items: center; gap: 16px;
}
.rs-signature-bar { width: 28px; height: 1px; background: var(--ember-500); box-shadow: 0 0 8px var(--ember-glow); }
.rs-signature-name {
  font-family: var(--font-signature);
  font-style: normal;
  font-size: 36px;
  line-height: 1;
  color: var(--fg-200);
}

/* HERO VISUAL */
.rs-hero-visual {
  position: relative;
  width: 720px;
  max-width: 100%;
  height: 640px;
  margin-left: auto;
  transform-style: preserve-3d;
  transition: transform 200ms var(--ease-out);
}
@media (max-width: 1180px) { .rs-hero-visual { margin: 0 auto; } }
@media (max-width: 760px)  { .rs-hero-visual { height: 520px; transform: scale(0.78); transform-origin: top center; } }
@media (max-width: 1180px) {
  .rs-portrait { bottom: -56px; right: 50%; transform: translateX(50%); }
  .rs-hero-visual { padding-bottom: 80px; height: auto; min-height: 700px; }
}

.rs-os {
  position: relative;
  width: 100%; height: 100%;
}
.rs-os-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.rs-pulse-r { animation: rs-pulse-radius 6s ease-in-out infinite; transform-origin: center; }
@keyframes rs-pulse-radius {
  50% { opacity: 0.6; transform: scale(1.05); }
}

.rs-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 140px;
}
.rs-node-card {
  position: relative;
  width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 11, 20, 0.85);
  box-shadow: inset 0 0 0 1px var(--rule-400);
  border-radius: 4px;
  backdrop-filter: blur(12px);
  transition: all var(--dur-base) var(--ease-out);
}
.rs-node-ember .rs-node-card { color: var(--ember-500); box-shadow: inset 0 0 0 1px rgba(149,242,15,0.4), 0 0 24px var(--ember-glow); }
.rs-node-cyan  .rs-node-card { color: var(--cyan-400);  box-shadow: inset 0 0 0 1px rgba(94,200,255,0.4), 0 0 24px var(--cyan-glow); }
.rs-node-violet .rs-node-card { color: var(--violet-500); box-shadow: inset 0 0 0 1px rgba(124,92,255,0.42), 0 0 24px var(--violet-glow); }
.rs-node-shopify .rs-node-card {
  color: #95f20f;
  background: linear-gradient(180deg, rgba(149,242,15,0.10), rgba(8,11,20,0.88));
  box-shadow: inset 0 0 0 1px rgba(149,242,15,0.45), 0 0 26px rgba(149,242,15,0.22);
}
.rs-node-icon {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 10px color-mix(in srgb, currentColor 46%, transparent));
}
.rs-icon-wash {
  fill: currentColor;
  opacity: 0.16;
}
.rs-icon-fill {
  fill: currentColor;
}
.rs-icon-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rs-icon-dot {
  fill: #05111a;
  stroke: currentColor;
  stroke-width: 1.2;
}
.rs-icon-cut {
  fill: #061018;
}
.rs-dash-panel {
  fill: rgba(94, 200, 255, 0.10);
  stroke: currentColor;
  stroke-width: 1.25;
}
.rs-dash-top,
.rs-dash-axis {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  opacity: 0.65;
}
.rs-dash-kpi {
  fill: currentColor;
  opacity: 0.28;
}
.rs-dash-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rs-shopify-bag {
  fill: currentColor;
}
.rs-shopify-s {
  fill: #061107;
  font-family: var(--font-sans);
}
.rs-node-card:hover { transform: scale(1.06); }
.rs-node-live { position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; }
.rs-node-label { text-align: center; }
.rs-node-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-100);
}
.rs-node-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--fg-400);
  margin-top: 3px;
}

@keyframes rs-node-in {
  from { opacity: 0; transform: translate(-50%, -40%) scale(0.8); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.rs-tick { position: absolute; width: 7px; height: 7px; opacity: 0.6; }

.rs-hub {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 168px; height: 168px;
  background:
    radial-gradient(circle at 50% 22%, rgba(149,242,15,0.075), transparent 46%),
    linear-gradient(180deg, rgba(149,242,15,0.034), rgba(8,11,20,0.96));
  box-shadow:
    inset 0 0 0 1px rgba(149,242,15,0.22),
    0 0 42px rgba(149,242,15,0.11),
    0 24px 80px rgba(0,0,0,0.5);
  border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px;
  backdrop-filter: blur(14px);
  animation: rs-hub-in 0.8s var(--ease-out) backwards 600ms;
}
@keyframes rs-hub-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
}
.rs-hub-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(149,242,15,0.14));
}
.rs-hub-os {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--fg-100);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.rs-hub-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-align: center;
  color: rgba(163,255,18,0.72);
  margin-top: 0;
  text-transform: uppercase;
}
.rs-hub-live {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 6px;
  height: 6px;
  background: rgba(149,242,15,0.9);
  box-shadow: 0 0 0 3px rgba(149,242,15,0.12);
}

.rs-os-status {
  position: absolute;
  top: 8px; right: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--status-live);
  padding: 6px 10px;
  background: rgba(8, 11, 20, 0.7);
  box-shadow: inset 0 0 0 1px rgba(74,222,128,0.3);
  border-radius: 4px;
  backdrop-filter: blur(10px);
}
.rs-status-dot {
  width: 6px; height: 6px;
  background: var(--status-live);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.2);
  animation: tt-pulse var(--dur-pulse) var(--ease-in-out) infinite;
}

.rs-portrait {
  position: absolute;
  bottom: 0; right: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  background: rgba(8, 11, 20, 0.85);
  box-shadow: inset 0 0 0 1px rgba(149,242,15,0.35);
  border-radius: 4px;
  backdrop-filter: blur(12px);
}
.rs-portrait-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(180deg, rgba(149,242,15,0.2), rgba(149,242,15,0.05));
  display: flex; align-items: center; justify-content: center;
  color: var(--ember-400);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(149,242,15,0.3);
}
.rs-portrait-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-100);
  line-height: 1.4;
}
.rs-portrait-label span { color: var(--fg-400); font-size: 9px; }

/* ============================================================
   CAPABILITY RAIL
   ============================================================ */
.rs-rail-sec {
  margin-top: clamp(32px, 5vh, 56px);
  padding: 48px 0;
  border-top: 1px solid var(--rule-200);
  border-bottom: 1px solid var(--rule-200);
  background: rgba(8,11,20,0.4);
}
@media (max-width: 760px) {
  .rs-rail-sec { margin-top: 24px; padding: 20px 0; }
}
.rs-rail-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.rs-rail-track {
  display: flex; gap: 56px;
  width: max-content;
  animation: rs-rail 50s linear infinite;
}
@keyframes rs-rail {
  to { transform: translateX(-50%); }
}
.rs-rail-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-300);
  white-space: nowrap;
}
.rs-rail-dot {
  width: 4px; height: 4px;
  background: var(--ember-500);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ember-glow);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.rs-section-header {
  display: flex; flex-direction: column; gap: 18px;
  max-width: 980px;
  margin-bottom: 40px;
}
.rs-section-eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-300);
}
.rs-section-num { color: var(--ember-500); }
.rs-section-line { flex: 0 0 64px; height: 1px; background: var(--rule-300); }
.rs-section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 4.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--fg-100);
  text-wrap: balance;
}
.rs-section-titlerow { display: flex; align-items: end; gap: 32px; justify-content: space-between; flex-wrap: wrap; }
.rs-section-kicker {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-300);
  max-width: clamp(560px, 50vw, 680px);
  text-wrap: pretty;
}

/* ============================================================
   SERVICES
   ============================================================ */
.rs-services .rs-section-header {
  gap: 0;
  margin-bottom: 0;
}
.rs-services .rs-section-eyebrow {
  margin-bottom: 18px;
}
.rs-services .rs-section-kicker {
  margin-top: 12px;
}
.rs-flow .rs-section-header {
  gap: 0;
}
.rs-flow .rs-section-eyebrow {
  margin-bottom: 18px;
}
.rs-flow .rs-section-kicker {
  margin-top: 12px;
}

/* Stack, Projects, Timeline — mesmo padrão de densidade do Services/Flow */
.rs-stack .rs-section-header,
.rs-projects .rs-section-header,
.rs-timeline .rs-section-header {
  gap: 0;
}
.rs-stack .rs-section-eyebrow,
.rs-projects .rs-section-eyebrow,
.rs-timeline .rs-section-eyebrow {
  margin-bottom: 18px;
}
.rs-stack .rs-section-kicker,
.rs-projects .rs-section-kicker,
.rs-timeline .rs-section-kicker {
  margin-top: 12px;
}
.rs-services-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.55fr);
  gap: 14px;
  align-items: start;
  margin-top: clamp(48px, 6vw, 64px);
}
.rs-services-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
@media (max-width: 1100px) {
  .rs-services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .rs-services-compact { grid-template-columns: 1fr; }
}

.rs-service-card {
  position: relative;
  padding: 22px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  box-shadow: inset 0 0 0 1px var(--rule-300);
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: 16px;
  transition: all var(--dur-base) var(--ease-out);
  min-height: 210px;
}
.rs-service-primary {
  min-height: 434px;
  padding: 26px;
  background:
    radial-gradient(circle at 18% 10%, rgba(149,242,15,0.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.006));
}
.rs-services-compact .rs-service-card {
  min-height: 224px;
  padding: 18px;
  gap: 12px;
}
.rs-services-compact .rs-service-icon {
  width: 40px;
  height: 40px;
}
.rs-services-compact .rs-service-title {
  font-size: 22px;
}
.rs-services-compact .rs-service-body {
  font-size: 13.5px;
  line-height: 1.45;
}
.rs-services-compact .rs-service-tags {
  padding-top: 2px;
}
.rs-service-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--rule-400), 0 24px 60px rgba(0,0,0,0.5);
}
.rs-service-card.rs-ember:hover { box-shadow: inset 0 0 0 1px rgba(149,242,15,0.35), 0 24px 60px rgba(149,242,15,0.12); }
.rs-service-card.rs-cyan:hover  { box-shadow: inset 0 0 0 1px rgba(94,200,255,0.35), 0 24px 60px rgba(94,200,255,0.10); }
.rs-service-card.rs-violet:hover { box-shadow: inset 0 0 0 1px rgba(124,92,255,0.38), 0 24px 60px rgba(124,92,255,0.12); }

.rs-service-top { display: flex; align-items: center; justify-content: space-between; }
.rs-service-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  box-shadow: inset 0 0 0 1px var(--rule-300);
}
.rs-icon-ember { color: var(--ember-500); box-shadow: inset 0 0 0 1px rgba(149,242,15,0.3); background: rgba(149,242,15,0.05); }
.rs-icon-cyan  { color: var(--cyan-400);  box-shadow: inset 0 0 0 1px rgba(94,200,255,0.3); background: rgba(94,200,255,0.05); }
.rs-icon-violet { color: var(--violet-500); box-shadow: inset 0 0 0 1px rgba(124,92,255,0.32); background: rgba(124,92,255,0.06); }
.rs-service-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--fg-400); }
.rs-service-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-400); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rs-service-micropill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  padding: 3px 7px;
  color: var(--ember-500);
  background: rgba(149,242,15,0.05);
  box-shadow: inset 0 0 0 1px rgba(149,242,15,0.20);
  border-radius: 2px;
  opacity: 0.92;
}
.rs-service-title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--fg-100);
  margin: 0;
}
.rs-service-primary .rs-service-title { font-size: 30px; max-width: 12ch; }
.rs-service-body { font-size: 14px; line-height: 1.5; color: var(--fg-300); max-width: 42ch; margin: 0; }
.rs-service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.rs-services-cta {
  margin-top: clamp(28px, 3vw, 40px);
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 700px) {
  .rs-service-primary { min-height: 260px; }
  .rs-service-primary .rs-service-title { max-width: none; font-size: 28px; }
  .rs-services-cta { justify-content: flex-start; }
}

/* ============================================================
   FLOW
   ============================================================ */
.rs-flow-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}
.rs-flow-breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-400);
  text-align: left;
  opacity: 0.78;
}
/* SISTEMA EM EXECUÇÃO chip — toned down glow inside Flow */
.rs-chip-flow-status {
  --chip-glow: rgba(74,222,128,0.22);
  box-shadow: inset 0 0 0 1px rgba(74,222,128,0.22), 0 0 10px rgba(74,222,128,0.10);
}
@media (max-width: 700px) {
  .rs-flow-breadcrumb {
    max-width: 34ch;
    line-height: 1.7;
  }
}
.rs-flow-rail { position: relative; padding: 12px 0 28px; }
.rs-flow-line { position: absolute; top: 67px; left: 0; right: 0; width: 100%; height: 24px; }
.rs-flow-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  position: relative;
  z-index: 1;
}
@media (max-width: 1000px) {
  .rs-flow-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 8px; }
  .rs-flow-line { display: none; }
}
@media (max-width: 600px)  {
  .rs-flow-grid { grid-template-columns: 1fr; gap: 20px; }
}

.rs-flow-step { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.rs-flow-idx { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--fg-400); }
.rs-flow-node {
  position: relative;
  width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,11,20,0.95);
  border-radius: 4px;
  transition: all var(--dur-base) var(--ease-out);
}
.rs-flow-step.rs-ember .rs-flow-node { color: var(--ember-500); box-shadow: inset 0 0 0 1px rgba(149,242,15,0.3); }
.rs-flow-step.rs-cyan  .rs-flow-node { color: var(--cyan-400);  box-shadow: inset 0 0 0 1px rgba(94,200,255,0.4); }
.rs-flow-step:hover .rs-flow-node { transform: scale(1.06); box-shadow: inset 0 0 0 1px var(--rule-400), 0 0 32px currentColor; }
.rs-flow-live { position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; }
.rs-flow-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: rgba(245,245,244,0.9); white-space: nowrap; }
.rs-flow-sub { font-family: var(--font-mono); font-size: 12px; color: rgba(214,212,207,0.72); margin-top: 4px; line-height: 1.45; white-space: pre-line; }

.rs-flow-io {
  margin-top: clamp(12px, 2vw, 20px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 16px 30px;
  background: rgba(255,255,255,0.02);
  box-shadow: inset 0 0 0 1px var(--rule-200);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms var(--ease-out-q), transform 600ms var(--ease-out-q);
}
.rs-flow-io.is-visible { opacity: 1; transform: translateY(0); }
.rs-io-arrow > span { width: 34px; }
.rs-io-arrow svg { color: var(--fg-100); opacity: 0.9; }
@media (max-width: 800px) { .rs-flow-io { grid-template-columns: 1fr; text-align: center; } }
.rs-io-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ember-500); margin-bottom: 8px; }
.rs-io-tag-out { color: var(--cyan-400); }
.rs-io-text { font-size: 14px; color: var(--fg-300); }
.rs-io-text-out { color: var(--fg-100); }
.rs-io-arrow { display: flex; align-items: center; gap: 8px; color: var(--fg-200); }
.rs-io-arrow > span { width: 34px; height: 1px; background: var(--rule-400); }
.rs-io-right { text-align: right; }
@media (max-width: 800px) { .rs-io-right { text-align: center; } }

/* ============================================================
   DASHBOARD
   ============================================================ */
.rs-dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
@media (max-width: 1100px) { .rs-dash-grid { grid-template-columns: 1fr; } }
.rs-dash .rs-section-title .rs-ember {
  color: rgba(149,242,15,0.88);
  text-shadow: 0 0 14px rgba(149,242,15,0.08);
}

/* Compactação da coluna textual do dashboard */
.rs-dash-copy {
  display: flex;
  flex-direction: column;
}
.rs-dash .rs-section-eyebrow {
  margin-bottom: 18px;
}
.rs-dash .rs-section-title {
  font-size: clamp(38px, 4.1vw, 70px);
  line-height: 1.05;
}
.rs-dash .rs-section-kicker {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.5;
  max-width: clamp(460px, 40vw, 600px);
}
.rs-dash .rs-psv {
  margin: 20px 0 0;
}
.rs-dash .rs-psv-row {
  padding: 12px 0;
  gap: 12px;
}
.rs-w-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-200);
}
.rs-dash .rs-strong {
  border-bottom: 0;
  padding-bottom: 0;
  color: rgba(245,255,240,0.92);
  font-weight: 500;
}

.rs-psv { display: flex; flex-direction: column; gap: 0; margin: 32px 0; border-top: 1px solid var(--rule-200); }
.rs-psv-row { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule-200); align-items: start; }
.rs-psv-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ember-500); padding-top: 2px; }
.rs-psv-v { font-size: 15px; color: rgba(214,212,207,0.9); line-height: 1.5; }
.rs-dash-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.rs-dash-preview {
  position: relative;
  min-width: 0;
}

.rs-widget {
  position: relative;
  padding: 24px;
  background: linear-gradient(180deg, rgba(94,200,255,0.04), rgba(8,11,20,0.6));
  box-shadow: inset 0 0 0 1px var(--rule-300), 0 32px 80px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
  display: flex; flex-direction: column; gap: 16px;
  border-radius: 4px;
}
.rs-w-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-200); }
.rs-w-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rs-w-name { font-family: var(--font-serif); font-size: 22px; color: var(--fg-100); white-space: nowrap; }
.rs-w-period { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; white-space: nowrap; flex-shrink: 0; }
.rs-w-period-label { color: var(--fg-400); }
.rs-w-period-pill { padding: 4px 10px; background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px var(--rule-300); border-radius: 100px; color: var(--fg-100); }

.rs-w-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 600px) { .rs-w-kpis { grid-template-columns: repeat(2, 1fr); } }
.rs-w-kpi {
  position: relative;
  padding: 16px 14px;
  background: rgba(255,255,255,0.02);
  box-shadow: inset 0 0 0 1px var(--rule-200);
  border-radius: 4px;
  display: flex; flex-direction: column; gap: 6px;
}
.rs-w-kpi-bar { position: absolute; top: 0; left: 0; height: 1px; width: 28px; background: var(--ember-500); box-shadow: 0 0 5px rgba(149,242,15,0.28); opacity: 0.85; }
.rs-w-kpi-l { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; color: var(--fg-400); }
.rs-w-kpi-v { font-family: var(--font-serif); font-size: clamp(18px, 1.6vw, 22px); line-height: 1; color: var(--fg-100); letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
@media (max-width: 600px) { .rs-w-kpi-v { font-size: 22px; } }
.rs-w-kpi-d { font-family: var(--font-mono); font-size: 10px; color: var(--status-live); }

/* KPI hover — lift premium, sem alterar layout */
.rs-kpi-card {
  transition: transform 220ms cubic-bezier(.2,.8,.2,1),
              box-shadow 220ms ease-out,
              background-color 220ms ease-out;
  will-change: transform;
}
.rs-kpi-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.035);
  box-shadow: inset 0 0 0 1px rgba(94,200,255,0.28),
              0 8px 22px rgba(0,0,0,0.35);
}
.rs-kpi-card:hover .rs-w-kpi-bar {
  width: 44px;
  transition: width 260ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .rs-kpi-card,
  .rs-kpi-card:hover .rs-w-kpi-bar { transition: none; }
  .rs-kpi-card:hover { transform: none; }
}

.rs-w-charts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; }
@media (max-width: 700px) { .rs-w-charts { grid-template-columns: 1fr; } }
.rs-w-card {
  position: relative;
  padding: 14px;
  background: rgba(255,255,255,0.02);
  box-shadow: inset 0 0 0 1px var(--rule-200);
  border-radius: 4px;
  display: flex; flex-direction: column; gap: 10px;
}
.rs-w-card-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--fg-400); }
.rs-w-legend { display: inline-flex; gap: 12px; }
.rs-w-legend span { display: inline-flex; align-items: center; gap: 4px; }
.rs-w-legend i { width: 8px; height: 1px; }

.rs-funnel { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.rs-funnel-row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; }
.rs-funnel-l { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; color: var(--fg-400); }
.rs-funnel-bar { position: relative; height: 22px; }
.rs-funnel-bar > span:first-child {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(94,200,255,0.6), rgba(94,200,255,0.2));
  box-shadow: inset 0 0 0 1px rgba(94,200,255,0.4);
  border-radius: 2px;
}
.rs-funnel-v { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 11px; color: var(--fg-100); }

.rs-w-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 700px) { .rs-w-bottom { grid-template-columns: 1fr; } }
.rs-w-prod { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; }
.rs-w-prod-row { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--fg-300); white-space: nowrap; min-width: 0; }
.rs-w-prod-row > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.rs-w-prod-v { color: var(--fg-100); }
.rs-w-prod-bar { height: 4px; background: rgba(255,255,255,0.04); border-radius: 2px; overflow: hidden; }
.rs-w-prod-bar > span { display: block; height: 100%; transition: width 800ms var(--ease-out-q); }

.rs-w-channels { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; }
.rs-w-channels .rs-w-card-head { white-space: nowrap; padding-bottom: 6px; border-bottom: 1px solid var(--rule-200); margin-bottom: 6px; }
.rs-w-ch-list { display: flex; flex-direction: column; gap: 4px; }
.rs-w-ch-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--fg-300); padding: 3px 0; }
.rs-w-ch-row span { display: inline-flex; align-items: center; gap: 6px; }
.rs-w-ch-row i { width: 6px; height: 6px; border-radius: 1px; }
.rs-w-ch-p { color: var(--fg-100); }

/* ============================================================
   PROJECTS
   ============================================================ */
.rs-clients { margin: 16px 0 32px; padding: 18px 0; border-top: 1px solid var(--rule-200); border-bottom: 1px solid var(--rule-200); display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.rs-clients-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--fg-400); }
.rs-clients-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rs-client-chip {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--fg-200);
  padding: 4px 14px;
  border-right: 1px solid var(--rule-300);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out),
              transform 220ms cubic-bezier(.2,.8,.2,1);
}
.rs-client-chip:last-child { border-right: 0; }
.rs-client-chip::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}
.rs-client-chip-arrow {
  opacity: 0;
  transform: translate(-2px, 2px);
  transition: opacity 200ms ease-out,
              transform 220ms cubic-bezier(.2,.8,.2,1);
  flex-shrink: 0;
}
.rs-client-chip:hover { color: var(--ember-400); }
.rs-client-chip:hover::after { transform: scaleX(1); }
.rs-client-chip:hover .rs-client-chip-arrow {
  opacity: 1;
  transform: translate(0, 0);
}
.rs-client-chip:focus-visible {
  outline: 1px solid var(--ember-500);
  outline-offset: 3px;
  border-radius: 2px;
  color: var(--ember-400);
}
.rs-client-chip:focus-visible::after { transform: scaleX(1); }
.rs-client-chip:focus-visible .rs-client-chip-arrow {
  opacity: 1;
  transform: translate(0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .rs-client-chip,
  .rs-client-chip::after,
  .rs-client-chip-arrow { transition: none; }
}

.rs-proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .rs-proj-grid { grid-template-columns: 1fr; } }

.rs-proj-card {
  position: relative;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  box-shadow: inset 0 0 0 1px var(--rule-300);
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: 20px;
  transition: all var(--dur-base) var(--ease-out);
  border-radius: 4px;
  min-height: 360px;
}
.rs-proj-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--rule-400), 0 24px 60px rgba(0,0,0,0.5); }

/* Hierarquia: card principal (Shopify) com borda ember levemente mais presente */
.rs-proj-card.rs-proj-principal { box-shadow: inset 0 0 0 1px rgba(149,242,15,0.32); }
.rs-proj-card.rs-proj-principal:hover { box-shadow: inset 0 0 0 1px rgba(149,242,15,0.5), 0 24px 60px rgba(149,242,15,0.08); }

/* Badge "BASE SHOPIFY" — discreto, canto superior direito */
.rs-proj-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ember-500);
  padding: 4px 8px;
  border: 1px solid rgba(149,242,15,0.35);
  border-radius: 2px;
  background: rgba(149,242,15,0.06);
  pointer-events: none;
  z-index: 2;
}

.rs-proj-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; }
.rs-proj-num { color: var(--fg-400); }
.rs-proj-status { color: var(--ember-500); }
.rs-status-cyan { color: var(--cyan-400); }
/* No card principal o badge ocupa o canto direito → status some para evitar duplicidade */
.rs-proj-card.rs-proj-principal .rs-proj-head .rs-proj-status { display: none; }

.rs-proj-title { font-family: var(--font-serif); font-weight: 400; font-size: 38px; line-height: 1; letter-spacing: -0.02em; color: var(--fg-100); }
.rs-proj-rows { display: flex; flex-direction: column; gap: 0; }
.rs-proj-rows > div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule-200); }
.rs-proj-rows > div:last-child { border-bottom: 0; }
.rs-proj-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ember-500); padding-top: 2px; }
.rs-k-out { color: var(--cyan-400); }
/* Contraste afinado: principal um pouco mais claro, secundário mantém leitura suave */
.rs-proj-v { font-size: 14px; color: var(--fg-200); line-height: 1.55; opacity: 0.88; }
.rs-proj-v-out { opacity: 0.95; color: var(--fg-100); }
.rs-proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

/* ============================================================
   ABOUT — [06] SOBRE
   Editorial portrait + commercial copy + technical badges
   ============================================================ */
.rs-about {
  padding-top: clamp(72px, 7.5vw, 112px);
  padding-bottom: clamp(72px, 7.5vw, 112px);
}
.rs-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  grid-template-areas:
    "head     portrait"
    "body     portrait"
    "badges   portrait";
  column-gap: clamp(40px, 5vw, 80px);
  row-gap: clamp(28px, 3vw, 44px);
  align-items: start;
}

.rs-about-head     { grid-area: head; display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.rs-about-body     { grid-area: body; display: flex; flex-direction: column; gap: 8px; max-width: 620px; }
.rs-about-badges   { grid-area: badges; display: flex; flex-wrap: wrap; gap: 8px; max-width: 720px;
                     padding-top: 20px; border-top: 1px solid var(--rule-200); }
.rs-about-portrait { grid-area: portrait; position: relative; min-width: 0; }

.rs-about .rs-section-title {
  font-size: clamp(36px, 3.8vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.rs-about-text {
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg-200);
  text-wrap: pretty;
}
.rs-about-text .rs-strong { color: var(--fg-100); border-bottom-color: var(--ember-500); }
.rs-about-cta {
  align-self: flex-start;
  margin-top: 14px;
}

/* —— PORTRAIT FRAME (interface panel feel) —— */
.rs-about-frame {
  position: relative;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(94,200,255,0.05), rgba(8,11,20,0.55) 40%, rgba(8,11,20,0.78));
  box-shadow:
    inset 0 0 0 1px var(--rule-300),
    0 32px 80px rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  border-radius: 4px;
}
.rs-about-frame::before {
  /* faint architectural grid inside the frame, matches stage grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.7;
}
.rs-about-frame::after {
  /* commerce-light wash, top-right (matches tt-stage--lit) */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 88% 0%, rgba(149,242,15,0.10), transparent 60%),
    radial-gradient(ellipse 60% 60% at 0% 100%, rgba(94,200,255,0.10), transparent 60%);
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}
.rs-about-frame > * { position: relative; z-index: 1; }

.rs-about-frame-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-200);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rs-about-frame-id {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg-200);
}
.rs-about-frame-id .rs-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--status-live);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.18), 0 0 8px rgba(74,222,128,0.6);
  animation: tt-pulse var(--dur-pulse) var(--ease-in-out) infinite;
}
.rs-about-frame-coord {
  color: var(--fg-400);
  letter-spacing: 0.18em;
}

/* —— PHOTO —— */
.rs-about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(94,200,255,0.10), transparent 65%),
    linear-gradient(180deg, #0c1322 0%, #060912 100%);
  box-shadow: inset 0 0 0 1px var(--rule-300);
  isolation: isolate;
}
.rs-about-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: contrast(1.04) saturate(0.92) brightness(0.96);
  z-index: 1;
}
/* Subtle column grid over the photo (interface feel) */
.rs-about-photo-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 25% 100%;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}
/* Cyan/ember diagonal glow for a controlled "tech-light" wash */
.rs-about-photo-glow {
  position: absolute; inset: -12%;
  background:
    radial-gradient(40% 35% at 18% 12%, rgba(94,200,255,0.28), transparent 70%),
    radial-gradient(46% 38% at 88% 100%, rgba(149,242,15,0.22), transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
}
.rs-about-photo-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(5,7,13,0.55) 100%),
    linear-gradient(180deg, transparent 60%, rgba(5,7,13,0.55) 100%);
  pointer-events: none;
  z-index: 4;
}
/* Thin scan line — extremely subtle, just for "interface" feel */
.rs-about-photo-scan {
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(149,242,15,0.45), rgba(94,200,255,0.45), transparent);
  box-shadow: 0 0 10px rgba(149,242,15,0.25);
  opacity: 0.55;
  animation: rs-about-scan 7.5s linear infinite;
  pointer-events: none;
  z-index: 5;
}
@keyframes rs-about-scan {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.55; }
  100% { transform: translateY(100%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-about-photo-scan { animation: none; opacity: 0; }
  .rs-about-frame-id .rs-status-dot { animation: none; }
}

/* Mini corner markers on the photo itself */
.rs-about-photo-corner {
  position: absolute;
  width: 10px; height: 10px;
  z-index: 6; pointer-events: none;
}
.rs-about-photo-corner--tl { top: 8px;    left: 8px;    border-top: 1px solid var(--ember-500);  border-left: 1px solid var(--ember-500); }
.rs-about-photo-corner--tr { top: 8px;    right: 8px;   border-top: 1px solid var(--cyan-400);   border-right: 1px solid var(--cyan-400); }
.rs-about-photo-corner--bl { bottom: 8px; left: 8px;    border-bottom: 1px solid var(--cyan-400);border-left: 1px solid var(--cyan-400); }
.rs-about-photo-corner--br { bottom: 8px; right: 8px;   border-bottom: 1px solid var(--ember-500);border-right: 1px solid var(--ember-500); }

/* —— BOOT SCAN (one-shot reveal sweep, driven by GSAP timeline) —— */
.rs-about-photo-scan-boot {
  position: absolute; left: 0; right: 0; top: -3%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(149,242,15,0.85) 30%,
    rgba(94,200,255,0.85) 70%,
    transparent 100%);
  box-shadow:
    0 0 18px rgba(149,242,15,0.55),
    0 0 8px rgba(94,200,255,0.55);
  opacity: 0;
  pointer-events: none;
  z-index: 7;
}
@media (prefers-reduced-motion: reduce) {
  .rs-about-photo-scan-boot { display: none; }
}

/* —— TITLE CHAR SPLIT (per-char reveal in About) —— */
.rs-about-title { perspective: 600px; }
.rs-about-char {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.rs-about-t2-em { display: inline-block; min-width: 1px; }
@media (prefers-reduced-motion: reduce) {
  .rs-about-char { transform: none !important; opacity: 1 !important; }
}

/* —— FRAME FOOT (data sheet rows) —— */
.rs-about-frame-foot {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-200);
}
.rs-about-frame-foot-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rs-about-frame-foot-k { color: var(--fg-400); }
.rs-about-frame-foot-v { color: var(--fg-100); }
.rs-about-frame-foot-accent { color: var(--ember-300); text-shadow: 0 0 12px var(--ember-glow); }

/* —— RESPONSIVE —— */
/* Tablet: portrait moves under the title block, body and badges full width */
@media (max-width: 980px) {
  .rs-about-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "portrait"
      "body"
      "badges";
    row-gap: 32px;
  }
  .rs-about-head, .rs-about-body, .rs-about-badges { max-width: 100%; }
  .rs-about-portrait { max-width: 480px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
  .rs-about { padding-top: 56px; padding-bottom: 56px; }
  .rs-about-photo { aspect-ratio: 4 / 5; }
  .rs-about-frame-foot-row { grid-template-columns: 56px 1fr; gap: 8px; }
}


.rs-timeline {
  padding-top: clamp(64px, 7vw, 96px);
}
.rs-timeline .rs-section-header {
  max-width: 1040px;
  margin-bottom: 24px;
}
.rs-timeline .rs-section-kicker {
  max-width: 760px;
}
.rs-timeline-editorial {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(56px, 9vw, 150px);
  align-items: start;
  padding: 36px 0 12px;
  border-top: 1px solid var(--rule-200);
  border-bottom: 1px solid var(--rule-100);
}
.rs-tl-story {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 390px;
  padding-right: 28px;
}
.rs-tl-story-kicker,
.rs-tl-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.rs-tl-story-kicker {
  color: var(--fg-400);
}
.rs-tl-story p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.35vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--fg-200);
  text-wrap: pretty;
}
.rs-tl-story p + p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-300);
  max-width: 34ch;
}
.rs-tl-story-cta {
  align-self: flex-start;
  margin-top: 14px;
}

/* Editorial mask reveal — same idiom as the hero title */
.rs-tl-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em; /* descender room so g/ç/p don't get clipped */
}
.rs-tl-mask-inner {
  display: inline-block;
  will-change: transform;
}
.rs-tl-chapters {
  --tl-progress: 1;
  --tl-rail-x: 2px;
  --tl-mark-col: 70px;
  --tl-step-gap: clamp(30px, 3.3vw, 50px);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  max-width: 690px;
  justify-self: end;
  padding-left: 0;
}
.rs-tl-chapters::before,
.rs-tl-chapters::after {
  content: "";
  position: absolute;
  left: var(--tl-rail-x);
  top: 17px;
  bottom: 28px;
  width: 1px;
  pointer-events: none;
  z-index: 0;
}
.rs-tl-chapters::before {
  background: rgba(255,255,255,0.08);
}
.rs-tl-chapters::after {
  background: linear-gradient(180deg, rgba(149,242,15,0.18), rgba(149,242,15,0.55), rgba(149,242,15,0.30));
  transform: scaleY(var(--tl-progress));
  transform-origin: top center;
  transition: transform 120ms linear;
}

/* ---- Scroll-driven playhead — descends along the rail ---- */
.rs-tl-playhead {
  position: absolute;
  left: var(--tl-rail-x);
  top: calc(17px + var(--tl-progress, 0) * (100% - 45px));
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ember-500);
  box-shadow:
    0 0 0 2px rgba(8, 11, 20, 0.95),
    0 0 14px rgba(149, 242, 15, 0.7),
    0 0 28px rgba(149, 242, 15, 0.42);
  pointer-events: none;
  z-index: 3;
  transition: top 140ms linear;
  opacity: calc(var(--tl-progress, 0) * 6);
}

/* ---- Autonomous packets — small dots descending the rail forever ---- */
.rs-tl-pkt {
  position: absolute;
  left: var(--tl-rail-x);
  top: 17px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ember-500);
  box-shadow: 0 0 8px rgba(149,242,15,0.6), 0 0 16px rgba(149,242,15,0.3);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  animation: rs-tl-flow 7s linear infinite;
  will-change: top, opacity;
}
.rs-tl-pkt--2 { animation-delay: -2.3s; }
.rs-tl-pkt--3 { animation-delay: -4.6s; }
@keyframes rs-tl-flow {
  0%   { top: 17px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: calc(100% - 28px); opacity: 0; }
}

.rs-tl-step {
  position: relative;
  display: grid;
  grid-template-columns: var(--tl-mark-col) minmax(0, 1fr);
  gap: var(--tl-step-gap);
  padding: 28px 0;
  border-top: 0;
  opacity: 0.78;
  transform: translateY(8px);
  transition: opacity 360ms var(--ease-out-q), transform 360ms var(--ease-out-q);
}
.rs-tl-step::before {
  content: "";
  position: absolute;
  left: calc(var(--tl-mark-col) + var(--tl-step-gap));
  right: 0;
  top: 0;
  height: 1px;
  background: var(--rule-100);
  pointer-events: none;
}
.rs-tl-step.is-active {
  opacity: 1;
  transform: translateY(0);
}
.rs-tl-step:first-child { padding-top: 0; }
.rs-tl-step:first-child::before { display: none; }
.rs-tl-mark {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  margin-left: 24px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink-050);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12);
  color: var(--fg-500);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  position: relative;
  z-index: 2;
  transition: color 320ms var(--ease-out-q), box-shadow 320ms var(--ease-out-q), background 320ms var(--ease-out-q), transform 320ms var(--ease-out-q);
}
.rs-tl-step.is-active .rs-tl-mark {
  color: rgba(163,255,18,0.92);
  background: var(--ink-050);
  box-shadow:
    inset 0 0 0 1px rgba(149,242,15,0.5),
    0 0 18px rgba(149,242,15,0.18);
  transform: scale(1.08);
}
/* Pulse ring around active mark — radiates outward */
.rs-tl-mark::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(149,242,15,0);
  pointer-events: none;
  transition: border-color 320ms var(--ease-out-q);
}
.rs-tl-step.is-active .rs-tl-mark::after {
  border-color: rgba(149,242,15,0.45);
  animation: rs-tl-mark-pulse 2.4s ease-in-out infinite;
}
@keyframes rs-tl-mark-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.6; }
  50%      { transform: scale(1.25); opacity: 0;   }
}

/* "ATUAL" live chip on the last step kicker */
.rs-tl-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(163,255,18,0.95);
  background: rgba(149,242,15,0.06);
  box-shadow: inset 0 0 0 1px rgba(149,242,15,0.32);
}
.rs-tl-now .tt-pulse-dot { width: 5px; height: 5px; }

/* "Camada atual" mark — keeps the green ring even before activation */
.rs-tl-step--current .rs-tl-mark {
  color: rgba(163,255,18,0.78);
  box-shadow: inset 0 0 0 1px rgba(149,242,15,0.28), 0 0 10px rgba(149,242,15,0.08);
}
.rs-tl-step--current .rs-tl-mark::after {
  border-color: rgba(149,242,15,0.32);
  animation: rs-tl-mark-pulse 3s ease-in-out infinite;
}
.rs-tl-card {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding-left: 0;
}
.rs-tl-card > * {
  transform: translateY(4px);
  transition: opacity 360ms var(--ease-out-q), transform 360ms var(--ease-out-q);
}
.rs-tl-step.is-active .rs-tl-card > * {
  transform: translateY(0);
}
.rs-tl-kicker {
  color: var(--fg-400);
}
.rs-tl-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
  color: var(--fg-100);
  letter-spacing: 0;
}
.rs-tl-desc {
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(214,212,207,0.68);
}
@media (max-width: 1180px) {
  .rs-timeline-editorial {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.35fr);
    gap: clamp(40px, 6vw, 88px);
  }
  .rs-tl-chapters {
    max-width: 620px;
  }
}
@media (max-width: 920px) {
  .rs-timeline-editorial {
    grid-template-columns: 1fr;
  }
  .rs-tl-story {
    position: relative;
    top: auto;
    max-width: 680px;
    padding-right: 0;
  }
  .rs-tl-chapters {
    --tl-mark-col: 54px;
    --tl-step-gap: 22px;
    max-width: none;
    justify-self: stretch;
  }
  .rs-tl-step {
    grid-template-columns: var(--tl-mark-col) minmax(0, 1fr);
    gap: var(--tl-step-gap);
  }
}
@media (max-width: 560px) {
  .rs-tl-chapters {
    --tl-rail-x: 16px;
    --tl-mark-col: 44px;
    --tl-step-gap: 18px;
  }
  .rs-tl-step {
    grid-template-columns: var(--tl-mark-col) minmax(0, 1fr);
    gap: var(--tl-step-gap);
  }
  .rs-tl-mark {
    width: 32px;
    height: 32px;
  }
}

/* ============================================================
   STACK
   ============================================================ */
.rs-stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  position: relative;
  perspective: 1400px;
  transform-style: preserve-3d;
}
@media (max-width: 800px) { .rs-stack-grid { grid-template-columns: 1fr; } }

.rs-stack-group {
  position: relative;
  padding: 28px;
  background: rgba(255,255,255,0.02);
  box-shadow: inset 0 0 0 1px var(--rule-300);
  border-radius: 4px;
  transform-style: preserve-3d;
  transition: box-shadow var(--dur-base) var(--ease-out);
  will-change: transform;
}
.rs-stack-group:hover { box-shadow: inset 0 0 0 1px var(--rule-400); }
.rs-stack-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--rule-200); margin-bottom: 16px; }
.rs-stack-dot { width: 7px; height: 7px; border-radius: 1px; }
.rs-stack-group.rs-ember .rs-stack-dot { background: var(--ember-500); box-shadow: 0 0 5px rgba(149,242,15,0.5); }
.rs-stack-group.rs-cyan  .rs-stack-dot { background: var(--cyan-400); box-shadow: 0 0 5px rgba(94,200,255,0.45); }
.rs-stack-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-100); flex: 1 1 auto; }
.rs-stack-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--status-live, #6ee46e);
  padding: 3px 7px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(110,228,110,0.22);
  background: rgba(110,228,110,0.04);
  white-space: nowrap;
}
.rs-stack-group.rs-cyan .rs-stack-status {
  color: var(--cyan-400);
  box-shadow: inset 0 0 0 1px rgba(94,200,255,0.22);
  background: rgba(94,200,255,0.04);
}
.rs-stack-status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: rs-stack-status-blink 2.4s ease-in-out infinite;
}
@keyframes rs-stack-status-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-stack-status-dot { animation: none; }
}
.rs-stack-items { display: flex; flex-wrap: wrap; column-gap: 6px; row-gap: 10px; transform-style: preserve-3d; }
.rs-stack-chip {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  color: var(--fg-200);
  background: rgba(255,255,255,0.025);
  box-shadow: inset 0 0 0 1px var(--rule-200);
  border-radius: 2px;
  white-space: nowrap;
  transform-style: preserve-3d;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.rs-chip { white-space: nowrap; }
.rs-stack-chip:hover,
.rs-stack-chip.is-lifted {
  color: var(--fg-100);
  background: rgba(255,255,255,0.06);
  box-shadow:
    inset 0 0 0 1px var(--rule-400),
    0 14px 28px -10px rgba(0,0,0,0.55),
    0 6px 12px -6px rgba(0,0,0,0.45);
  z-index: 5;
}
.rs-stack-group.rs-ember .rs-stack-chip:hover,
.rs-stack-group.rs-ember .rs-stack-chip.is-lifted {
  color: #d6ff8a;
  box-shadow:
    inset 0 0 0 1px rgba(149,242,15,0.55),
    0 14px 28px -10px rgba(0,0,0,0.55),
    0 0 18px rgba(149,242,15,0.22);
}
.rs-stack-group.rs-cyan .rs-stack-chip:hover,
.rs-stack-group.rs-cyan .rs-stack-chip.is-lifted {
  color: #b8e7ff;
  box-shadow:
    inset 0 0 0 1px rgba(94,200,255,0.55),
    0 14px 28px -10px rgba(0,0,0,0.55),
    0 0 18px rgba(94,200,255,0.22);
}
@media (prefers-reduced-motion: reduce) {
  .rs-stack-grid { perspective: none; transform-style: flat; }
  .rs-stack-group { transform-style: flat; will-change: auto; }
  .rs-stack-chip { transform-style: flat; }
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.rs-cta { padding-top: 48px; padding-bottom: 0; }
.rs-cta-inner {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 72px 32px;
  background: linear-gradient(180deg, rgba(149,242,15,0.04), rgba(8,11,20,0.6));
  box-shadow: inset 0 0 0 1px var(--rule-300);
  border-radius: 8px;
  overflow: clip;
}
.rs-cta-inner::before {
  content: "";
  position: absolute;
  right: max(-160px, -8vw);
  bottom: -240px;
  width: clamp(520px, 54vw, 860px);
  aspect-ratio: 959 / 819;
  background: url("/assets/Fav_b.png") center / contain no-repeat;
  opacity: 0.05;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
.rs-cta-title { padding-top: 0.15em; }
.rs-cta-glow {
  position: absolute;
  width: 600px; height: 600px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(149,242,15,0.20), transparent 60%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: rs-cta-pulse 6s ease-in-out infinite;
}
@keyframes rs-cta-pulse { 50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); } }
.rs-cta-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rs-cta-eyebrow { justify-content: center; position: relative; z-index: 1; }
.rs-cta-title {
  position: relative; z-index: 1;
  margin-top: 18px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(38px, 4.7vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--fg-100);
  text-wrap: balance;
}
.rs-cta-sub {
  position: relative; z-index: 1;
  margin: 20px auto 28px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg-300);
  max-width: 640px;
  text-wrap: pretty;
}
.rs-cta-buttons { position: relative; z-index: 1; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rs-cta-meta {
  position: relative; z-index: 1;
  margin-top: 28px;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-400);
}
.rs-cta-meta > span:first-child { color: var(--status-live); display: inline-flex; align-items: center; gap: 8px; }

/* —— FOOTER —— */
.rs-footer { margin-top: 64px; padding: 28px 0 20px; border-top: 1px solid var(--rule-200); }
.rs-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--fg-400); }
.rs-footer-brand { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.rs-footer-logo-mark {
  display: block;
  width: clamp(260px, 24vw, 320px);
  height: auto;
  max-height: 60px;
}
.rs-footer-sub { font-size: 10px; margin-top: 4px; }
.rs-footer-mid { text-align: center; flex: 1 1 auto; }
.rs-footer-right { display: inline-flex; gap: 12px; align-items: center; }
.rs-footer-right a { color: var(--fg-300); text-decoration: none; letter-spacing: 0.04em; text-transform: none; transition: color var(--dur-base); }
.rs-footer-right a:hover { color: var(--ember-400); }

/* Mobile — CTA empilha (primário ocupa quase a largura total) e footer em coluna */
@media (max-width: 640px) {
  .rs-cta-buttons { flex-direction: column; align-items: stretch; }
  .rs-cta-buttons .rs-btn { justify-content: center; width: 100%; }
  .rs-cta-meta { gap: 8px 12px; }
  .rs-footer-row { flex-direction: column; align-items: flex-start; text-align: left; gap: 16px; }
  .rs-footer-mid { text-align: left; }
  .rs-footer-right { gap: 14px; }
}

/* ============================================================
   ALIVE SYSTEM — added enhancements
   Subtle technological motion across the page (premium, not flashy).
   All animations respect prefers-reduced-motion via the global rule
   at the top of this file.
   ============================================================ */

/* ---- FLOW · scrub-driven traveling pulse (only) ---- */
.rs-flow-scrub-pulse {
  position: absolute;
  top: 79px; /* Centered through 76px node (rail padding 12 + idx 13 + gap 16 + node 38) */
  left: 8.333%;
  width: 10px; height: 10px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: var(--ember-500);
  box-shadow: 0 0 12px rgba(149,242,15,0.55), 0 0 24px rgba(149,242,15,0.32);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms var(--ease-out-q);
}
.rs-flow-scrub-pulse.is-traveling {
  visibility: visible;
  opacity: 1;
}

/* Mobile vertical line + pulse */
.rs-flow-line-mobile,
.rs-flow-scrub-pulse-mobile { display: none; }

@keyframes rs-flow-pulse-mobile {
  0%   { top: 6%; opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  10%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  90%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { top: 94%; opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
}

/* Mobile vertical data-handoff packets — wave of dots traveling down the line */
.rs-flow-vhops { display: none; }
@keyframes rs-flow-vtravel {
  0%   { top: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ---- FLOW · autonomous traveling particles (continuous loop) ---- */
@keyframes rs-flow-travel {
  0%   { left: 8.333%;  opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  8%   { opacity: 1;    transform: translate(-50%, -50%) scale(1); }
  92%  { opacity: 1;    transform: translate(-50%, -50%) scale(1); }
  100% { left: 91.666%; opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
}
.rs-flow-particle {
  position: absolute;
  top: 79px;
  left: 8.333%;
  width: 8px; height: 8px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
  animation: rs-flow-travel 5.4s linear infinite;
  will-change: left, opacity, transform;
}
.rs-flow-particle--ember {
  background: var(--ember-500);
  box-shadow: 0 0 10px rgba(149,242,15,0.55), 0 0 22px rgba(149,242,15,0.28);
}
.rs-flow-particle--cyan {
  background: var(--cyan-400);
  box-shadow: 0 0 10px rgba(94,200,255,0.6), 0 0 22px rgba(94,200,255,0.3);
}
.rs-flow-particle--p2 { animation-delay: -1.8s; }
.rs-flow-particle--p3 { animation-delay: -3.6s; }
@media (max-width: 1000px) {
  .rs-flow-particle { display: none; }
}

/* ---- FLOW · data-handoff hops between consecutive nodes ---- */
@keyframes rs-flow-hop {
  0%   { left: 0%;   opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.rs-flow-hop {
  position: absolute;
  top: 79px;
  width: 16.667%;
  height: 0;
  pointer-events: none;
  z-index: 2;
}
.rs-flow-hop-dot {
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--cyan-400);
  box-shadow: 0 0 8px rgba(94,200,255,0.6), 0 0 16px rgba(94,200,255,0.32);
  opacity: 0;
  animation: rs-flow-hop 2s linear infinite;
  will-change: left, opacity;
}
.rs-flow-hop-dot--ember {
  background: var(--ember-500);
  box-shadow: 0 0 8px rgba(149,242,15,0.6), 0 0 16px rgba(149,242,15,0.3);
}
.rs-flow-hop--1 { left: 8.333%; }
.rs-flow-hop--2 { left: 25%; }
.rs-flow-hop--3 { left: 41.667%; }
.rs-flow-hop--4 { left: 58.333%; }
.rs-flow-hop--5 { left: 75%; }
.rs-flow-hop--2 .rs-flow-hop-dot { animation-delay: -1.6s; }
.rs-flow-hop--3 .rs-flow-hop-dot { animation-delay: -1.2s; }
.rs-flow-hop--4 .rs-flow-hop-dot { animation-delay: -0.8s; }
.rs-flow-hop--5 .rs-flow-hop-dot { animation-delay: -0.4s; }
@media (max-width: 1000px) {
  .rs-flow-hop { display: none; }
}

/* ---- FLOW · micro labels between modules ---- */
.rs-flow-links {
  position: absolute;
  top: 64px;
  left: 0; right: 0;
  height: 16px;
  pointer-events: none;
  z-index: 1;
}
.rs-flow-link-label {
  position: absolute;
  transform: translate(-50%, 4px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-200);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  text-shadow: 0 0 8px rgba(0,0,0,0.6);
  transition: opacity 380ms var(--ease-out-q), transform 380ms var(--ease-out-q);
}
.rs-flow-link-label.is-visible {
  opacity: 0.92;
  transform: translate(-50%, 0);
}
.rs-flow-link-label.is-active {
  opacity: 1;
  color: var(--cyan-300);
  text-shadow: 0 0 10px rgba(94,200,255,0.45), 0 0 8px rgba(0,0,0,0.6);
}
.rs-flow-link-1 { left: 16.7%; }
.rs-flow-link-2 { left: 33.3%; }
.rs-flow-link-3 { left: 50%; color: var(--cyan-400); }
.rs-flow-link-4 { left: 66.7%; }
.rs-flow-link-5 { left: 83.3%; color: var(--ember-400); }

@media (max-width: 1000px) {
  .rs-flow-scrub-pulse, .rs-flow-links { display: none; }
}

/* ---- FLOW · step active state (driven by scrub) ---- */
.rs-flow-step .rs-flow-node {
  transition: box-shadow 360ms var(--ease-out-q), transform 360ms var(--ease-out-q);
}
.rs-flow-step.is-active .rs-flow-node { transform: translateY(-2px); }
.rs-flow-step.rs-ember.is-active .rs-flow-node {
  box-shadow: inset 0 0 0 1px rgba(149,242,15,0.55), 0 0 22px rgba(149,242,15,0.22);
}
.rs-flow-step.rs-cyan.is-active .rs-flow-node {
  box-shadow: inset 0 0 0 1px rgba(94,200,255,0.6), 0 0 22px rgba(94,200,255,0.22);
}
.rs-flow-step .rs-flow-name { transition: color 320ms var(--ease-out-q); color: rgba(245,245,244,0.88); }
.rs-flow-step.is-active .rs-flow-name { color: var(--fg-100); }

/* ---- FLOW · idle "breathing" on each module card ---- */
.rs-flow-step .rs-flow-node { overflow: visible; }
.rs-flow-step .rs-flow-node::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  animation: rs-flow-node-breathe 5s ease-in-out infinite;
}
.rs-flow-step.rs-ember .rs-flow-node::after {
  box-shadow: 0 0 0 1px rgba(149,242,15,0.32), 0 0 22px rgba(149,242,15,0.16);
}
.rs-flow-step.rs-cyan .rs-flow-node::after {
  box-shadow: 0 0 0 1px rgba(94,200,255,0.45), 0 0 28px rgba(94,200,255,0.28);
}
.rs-flow-step:nth-child(1) .rs-flow-node::after { animation-delay: 0s; }
.rs-flow-step:nth-child(2) .rs-flow-node::after { animation-delay: 0.7s; }
.rs-flow-step:nth-child(3) .rs-flow-node::after { animation-delay: 1.4s; }
.rs-flow-step:nth-child(4) .rs-flow-node::after { animation-delay: 2.1s; }
.rs-flow-step:nth-child(5) .rs-flow-node::after { animation-delay: 2.8s; }
.rs-flow-step:nth-child(6) .rs-flow-node::after { animation-delay: 3.5s; }
@keyframes rs-flow-node-breathe {
  0%, 100% { opacity: 0; }
  50%      { opacity: 0.55; }
}

/* ---- FLOW · feedback loop (label only, no curve) ---- */
.rs-flow-feedback {
  margin-top: 28px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 520ms var(--ease-out-q), transform 520ms var(--ease-out-q);
}
.rs-flow-feedback.is-visible { opacity: 1; transform: translateY(0); }
.rs-flow-fb-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(8,11,20,0.92);
  box-shadow: inset 0 0 0 1px rgba(149,242,15,0.20), 0 0 12px rgba(149,242,15,0.075);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(163,255,18,0.88);
  text-transform: uppercase;
}
.rs-flow-fb-arrow {
  font-size: 14px;
  color: rgba(149,242,15,0.9);
  text-shadow: 0 0 5px rgba(149,242,15,0.18);
  animation: tt-pulse 2s var(--ease-in-out) infinite;
}
@media (max-width: 1000px) {
  .rs-flow-feedback { margin-top: 24px; }
  .rs-flow-fb-label {
    white-space: normal;
    max-width: 100%;
    line-height: 1.6;
    text-align: left;
  }
}

/* ============================================================
   ALIVE SYSTEM — Service cards · contained scan-line (no clip needed)
   Uses background-position trick so the highlight stays within bounds.
   ============================================================ */
.rs-service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--ember-500) 50%, transparent 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  background-position: -40% 0;
  pointer-events: none;
  opacity: 0.6;
  animation: rs-scan-line 7s linear infinite;
}
.rs-service-card.rs-cyan::before {
  background: linear-gradient(90deg, transparent 0%, var(--cyan-400) 50%, transparent 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
}
.rs-service-card.rs-violet::before {
  background: linear-gradient(90deg, transparent 0%, var(--violet-500) 50%, transparent 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
}
@keyframes rs-scan-line {
  0%   { background-position: -40% 0; }
  100% { background-position: 140% 0; }
}
.rs-services-grid > .rs-service-card:nth-child(1)::before { animation-delay: 0s;   }
.rs-services-grid > .rs-service-card:nth-child(2)::before { animation-delay: 1.4s; }
.rs-services-grid > .rs-service-card:nth-child(3)::before { animation-delay: 2.8s; }
.rs-services-grid > .rs-service-card:nth-child(4)::before { animation-delay: 4.2s; }
.rs-services-grid > .rs-service-card:nth-child(5)::before { animation-delay: 5.6s; }

/* ============================================================
   ALIVE SYSTEM — Project cards · same scan idiom
   ============================================================ */
.rs-proj-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--ember-500) 50%, transparent 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  background-position: -40% 0;
  pointer-events: none;
  opacity: 0.5;
  animation: rs-scan-line 8s linear infinite;
}
.rs-proj-card.rs-cyan::before {
  background: linear-gradient(90deg, transparent 0%, var(--cyan-400) 50%, transparent 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
}
.rs-proj-grid > .rs-proj-card:nth-child(1)::before { animation-delay: 0.5s; }
.rs-proj-grid > .rs-proj-card:nth-child(2)::before { animation-delay: 2.5s; }
.rs-proj-grid > .rs-proj-card:nth-child(3)::before { animation-delay: 4.5s; }
.rs-proj-grid > .rs-proj-card:nth-child(4)::before { animation-delay: 6.5s; }

/* ============================================================
   ALIVE SYSTEM — Stack groups · hover lift + accent border breathe
   ============================================================ */
.rs-stack-group { position: relative; transition: transform var(--dur-base) var(--ease-out); }
.rs-stack-group:hover { transform: translateY(-2px); }
.rs-stack-group::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  animation: rs-flow-node-breathe 6s ease-in-out infinite;
}
.rs-stack-group.rs-ember::after {
  box-shadow: inset 0 0 0 1px rgba(149,242,15,0.22);
}
.rs-stack-group.rs-cyan::after {
  box-shadow: inset 0 0 0 1px rgba(94,200,255,0.22);
}
.rs-stack-grid > .rs-stack-group:nth-child(1)::after { animation-delay: 0s;   }
.rs-stack-grid > .rs-stack-group:nth-child(2)::after { animation-delay: 1.5s; }
.rs-stack-grid > .rs-stack-group:nth-child(3)::after { animation-delay: 3s;   }
.rs-stack-grid > .rs-stack-group:nth-child(4)::after { animation-delay: 4.5s; }

/* ============================================================
   ALIVE SYSTEM — Dashboard · breathing frame + scan sweep
   ============================================================ */
.rs-dash-asset-frame { position: relative; }
.rs-dash-asset-frame::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 0 64px rgba(94,200,255,0.18);
  opacity: 0.4;
  animation: rs-dash-breathe 6s ease-in-out infinite;
  z-index: 0;
}
@keyframes rs-dash-breathe {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.95; }
}

/* Scan sweep across the dashboard image (subtle) */
.rs-dash-asset-screen {
  position: relative;
  overflow: hidden;
}
.rs-dash-asset-screen::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(94,200,255,0.08) 40%, rgba(94,200,255,0.16) 50%, rgba(94,200,255,0.08) 60%, transparent);
  pointer-events: none;
  animation: rs-dash-scan 8s linear infinite;
}
@keyframes rs-dash-scan {
  0%   { top: -30%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 130%; opacity: 0; }
}

/* Live data indicator next to dashboard */
.rs-dash-asset-live {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: rgba(8,11,20,0.85);
  box-shadow: inset 0 0 0 1px rgba(94,200,255,0.4);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--cyan-400);
  z-index: 2;
}

/* ============================================================
   ALIVE SYSTEM — Nav · status dot pulse
   ============================================================ */
.rs-nav-status .rs-status-dot {
  animation: tt-pulse 2.5s var(--ease-in-out) infinite;
}

/* ============================================================
   ALIVE SYSTEM — Hero chips
   Idle pulse lives on the .rs-chip-dot of .rs-chip-live (defined above).
   Rotating "scan" accent is driven by JS toggling .is-scanning per chip.
   ============================================================ */

/* ============================================================
   ALIVE SYSTEM — final accessibility guard (in addition to global rule)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .rs-flow-scrub-pulse,
  .rs-flow-scrub-pulse-mobile,
  .rs-flow-particle,
  .rs-flow-hop-dot,
  .rs-flow-vhop-dot,
  .rs-tl-pkt,
  .rs-tl-mark::after,
  .rs-service-card::before,
  .rs-proj-card::before,
  .rs-stack-group::after,
  .rs-dash-asset-frame::before,
  .rs-dash-asset-screen::after,
  .rs-flow-step .rs-flow-node::after,
  .rs-chip-live .rs-chip-dot,
  .rs-chip.is-scanning,
  .rs-chip.is-flash {
    animation: none !important;
  }
  /* Disable hover/scan transforms on chips & buttons for users who request it */
  .rs-chip:hover,
  .rs-btn:hover,
  .rs-btn:hover svg { transform: none !important; }
}

/* ============================================================
   HERO · PUNCH — Etapa 2.1
   Visible premium + technological feel without breaking the page.
   ============================================================ */

/* ---- Headline · editorial mask reveal ---- */
.rs-hero-title .rs-hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em; /* room for descenders so they don't get clipped */
}
.rs-hero-title .rs-hero-line-inner {
  display: inline-block;
  will-change: transform;
}

/* ---- Primary CTA · shine sweep on hover ---- */
.rs-btn-primary {
  position: relative;
  overflow: hidden;
}
.rs-btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg,
    transparent 0%,
    rgba(255,255,255,0.0) 30%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0.0) 70%,
    transparent 100%);
  transform: translateX(-180%) skewX(-12deg);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
  mix-blend-mode: screen;
}
.rs-btn-primary:hover::after {
  transform: translateX(280%) skewX(-12deg);
}

/* ---- Hub · outer ring breathing (more noticeable) ---- */
.rs-hub::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 12px;
  border: 1px solid rgba(149,242,15,0.18);
  pointer-events: none;
  animation: rs-hub-ring 3.4s ease-in-out infinite;
}
@keyframes rs-hub-ring {
  0%, 100% { transform: scale(1);    opacity: 0.24; }
  50%      { transform: scale(1.06); opacity: 0.48; }
}

/* ---- Nodes · sequential "energize" burst ---- */
.rs-node.is-active-node .rs-node-card {
  animation: rs-node-energize 0.95s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rs-node-ember.is-active-node .rs-node-card,
.rs-node-shopify.is-active-node .rs-node-card {
  --energize-color: rgba(255,107,58,0.85);
}
.rs-node-cyan.is-active-node .rs-node-card {
  --energize-color: rgba(94,200,255,0.85);
}
@keyframes rs-node-energize {
  0%   { box-shadow: inset 0 0 0 1px currentColor; }
  35%  {
    box-shadow:
      inset 0 0 0 1px currentColor,
      0 0 0 1px var(--energize-color, rgba(94,200,255,0.85)),
      0 0 32px 6px var(--energize-color, rgba(94,200,255,0.4));
    filter: brightness(1.18);
  }
  100% { box-shadow: inset 0 0 0 1px currentColor; filter: brightness(1); }
}

/* ---- SVG traveling pulses on hero lines ---- */
.rs-os-pulse {
  /* animated via SMIL inside the SVG */
  filter: drop-shadow(0 0 6px currentColor);
}

/* ---- Mobile · reduce intensity ---- */
@media (max-width: 760px) {
  .rs-hub::after { animation-duration: 4.5s; }
  .rs-node.is-active-node .rs-node-card { animation-duration: 0.7s; }
}

/* ---- Reduced motion · disable all etapa 2.1 effects ---- */
@media (prefers-reduced-motion: reduce) {
  .rs-btn-primary::after,
  .rs-hub::after,
  .rs-node.is-active-node .rs-node-card {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   MOBILE PASS — 2026-05-07
   Hard rule: never mutate desktop (>=1024px). All overrides
   scoped to @media (max-width: 767px). Tablet (768-1023px)
   inherits existing rules at <=900/1000/1100/1180.
   ============================================================ */

/* Hamburger + drawer: hidden by default at every viewport.
   Shown at <=900px (matches the existing breakpoint where
   .rs-nav-links is hidden in L176). Desktop >=901px never sees them. */
.rs-nav-burger { display: none; }
.rs-nav-drawer { display: none; }

@media (max-width: 900px) {
  .rs-nav-burger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 0;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    flex: 0 0 auto;
    color: var(--fg-100);
  }
  .rs-nav-burger span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 200ms ease;
    transform-origin: center;
  }
  .rs-nav-burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .rs-nav-burger.is-open span:nth-child(2) { opacity: 0; }
  .rs-nav-burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

  .rs-nav-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
  }
  .rs-nav-drawer.is-open { pointer-events: auto; }
  .rs-nav-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 13, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 240ms ease;
  }
  .rs-nav-drawer.is-open .rs-nav-drawer-backdrop { opacity: 1; }
  .rs-nav-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(82vw, 320px);
    height: 100%;
    background: linear-gradient(180deg, #0a0d15, #06090f);
    border-left: 1px solid rgba(149, 242, 15, 0.2);
    padding: 112px 24px 32px;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow-y: auto;
  }
  .rs-nav-drawer.is-open .rs-nav-drawer-panel { transform: translateX(0); }
  .rs-nav-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .rs-nav-drawer-links a {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--fg-100);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: color 180ms ease, padding-left 180ms ease;
  }
  .rs-nav-drawer-links a:hover,
  .rs-nav-drawer-links a:focus-visible {
    color: #95f20f;
    padding-left: 6px;
  }
  .rs-nav-drawer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    padding: 12px 20px;
    background: var(--ember-500);
    color: #0a0a0a;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px;
    box-shadow: 0 0 16px var(--ember-glow);
    transition: background 180ms ease, transform 180ms ease;
  }
  .rs-nav-drawer-cta:hover,
  .rs-nav-drawer-cta:focus-visible { background: var(--ember-400); }
  .rs-nav-drawer-cta:active { transform: scale(0.98); }

  .rs-nav-drawer-status {
    margin: 0 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--fg-300);
  }
  .rs-nav-drawer-status .rs-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #95f20f;
    box-shadow: 0 0 8px rgba(149, 242, 15, 0.6);
  }
}

@media (max-width: 767px) {

  html, body { overflow-x: hidden; }

  .rs-container { padding: 0 20px; }
  .rs-section { padding: 56px 0; }

  .rs-bg-particles { display: none; }
  .rs-bg-glow-a,
  .rs-bg-glow-b,
  .rs-bg-glow-c {
    opacity: 0.22;
    filter: blur(80px);
  }

  .rs-nav {
    padding: 6px 12px;
    gap: 10px;
    top: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    transform: none !important;
  }
  .rs-nav-brand {
    order: 2;
    margin: 0 auto;
    padding-right: 0;
    border-right: none;
  }
  .rs-nav-logo-mark { width: clamp(148px, 41vw, 168px); max-height: 32px; }
  .rs-nav-burger {
    order: 1;
    margin-left: 0 !important;
  }
  .rs-nav-cta {
    order: 3;
    padding: 8px 14px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .rs-rail-sec {
    margin-top: 8px;
    padding: 10px 0;
  }
  .rs-rail-item {
    font-size: 11px;
    letter-spacing: 0.14em;
    gap: 10px;
  }
  .rs-rail-track { gap: 36px; }

  .rs-hero {
    padding-top: 112px;
    padding-bottom: 32px;
  }
  .rs-hero-grid {
    display: flex !important;
    flex-direction: column;
    gap: 0;
  }
  .rs-hero-copy { display: contents; }
  .rs-hero-eyebrow { order: 1; }
  .rs-hero-title  { order: 2; }
  .rs-hero-sub    { order: 3; }
  .rs-hero-visual { order: 4; }
  .rs-hero-ctas   { order: 5; }
  .rs-hero-tags   { order: 6; }

  .rs-hero-eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
    gap: 8px;
  }
  .rs-hero-eyebrow-text {
    white-space: normal;
    font-size: 9px;
    letter-spacing: 0.14em;
    line-height: 1.4;
  }
  .rs-hero-eyebrow-line {
    min-width: 12px;
  }

  .rs-hero-title {
    font-size: clamp(40px, 11.5vw, 56px);
    line-height: 0.96;
    letter-spacing: -0.045em;
    margin-top: 18px;
  }
  .rs-title-line-main { white-space: normal; }

  .rs-hero-sub {
    font-size: 16px;
    line-height: 1.55;
    max-width: 100%;
    margin-top: 18px;
  }

  .rs-hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-start;  /* override .rs-hero-grid align-items: center */
    width: 100%;
    gap: 10px;
    margin-top: 24px;
  }
  .rs-hero-ctas .rs-btn {
    width: auto;
    justify-content: flex-start;
    padding: 16px 20px;
    font-size: 13px;
  }

  .rs-hero-tags {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
  }
  .rs-chip {
    font-size: 10px;
    padding: 5px 9px;
    letter-spacing: 0.06em;
  }

  /* Hero visual — keep desktop animations, fluid-scale to fit mobile width */
  .rs-hero-visual {
    display: block;
    width: 100%;
    height: calc((100vw - 40px) * 0.92);
    min-height: 0;
    padding-bottom: 0;
    margin: 24px 0 8px;
    position: relative;
    overflow: hidden;
    transform: none !important;
  }
  .rs-os {
    position: absolute !important;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(calc((100vw - 40px) / 720px)) !important;
    transform-origin: top center;
  }
  /* Pull RAFAEL SILVA badge inward — anchor inside .rs-os instead of overflowing */
  .rs-portrait {
    bottom: 8px !important;
    right: 8px !important;
    left: auto !important;
    transform: none !important;
  }

  .rs-section-title {
    font-size: clamp(38px, 11vw, 56px);
    line-height: 0.98;
    letter-spacing: -0.04em;
  }
  .rs-section-kicker {
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  .rs-services-grid { gap: 14px; }
  .rs-services-compact {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rs-service-card,
  .rs-service-primary {
    min-height: 0;
    padding: 22px;
  }
  .rs-service-title {
    font-size: 22px;
    line-height: 1.2;
  }
  .rs-service-body { font-size: 13.5px; }
  .rs-services-cta { justify-content: stretch; }
  .rs-services-cta .rs-btn {
    width: 100%;
    justify-content: center;
  }

  .rs-flow-side { gap: 14px; }
  .rs-flow-breadcrumb {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.55;
  }

  .rs-flow-rail {
    position: relative;
    padding: 8px 0 4px;
  }
  /* Lock idx column width so the line aligns predictably with icon centers.
     idx (26) + step.gap (14) + node/2 (38) = 78px → vertical line at 78px. */
  .rs-flow-idx { flex: 0 0 32px; min-width: 32px; }

  .rs-flow-line-mobile {
    display: block;
    position: absolute;
    left: 72px;          /* SVG line at viewBox x=12 → absolute 72+12=84px (icon center) */
    top: 38px;
    height: 480px;       /* stop near card 6 icon — decrease this to shorten further */
    bottom: auto;
    width: 24px;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
  }
  .rs-flow-line-mobile line {
    vector-effect: non-scaling-stroke;
  }
  /* Big autonomous mobile pulse — disabled per design */
  .rs-flow-scrub-pulse-mobile { display: none; }

  /* Mobile vertical hops — staggered packets falling along the rail line */
  .rs-flow-vhops {
    display: block;
    position: absolute;
    left: 84px;
    top: 38px;
    height: 480px;       /* match line — must equal .rs-flow-line-mobile height */
    bottom: auto;
    width: 0;
    z-index: 4;
    pointer-events: none;
  }
  .rs-flow-vhop-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--cyan-400);
    box-shadow: 0 0 8px rgba(94,200,255,0.6), 0 0 16px rgba(94,200,255,0.32);
    opacity: 0;
    animation: rs-flow-vtravel 8s linear infinite;
    will-change: top, opacity;
  }
  .rs-flow-vhop-dot--ember {
    background: var(--ember-500);
    box-shadow: 0 0 8px rgba(149,242,15,0.6), 0 0 16px rgba(149,242,15,0.3);
  }
  .rs-flow-vhop-dot:nth-child(1) { animation-delay: 0s; }
  .rs-flow-vhop-dot:nth-child(2) { animation-delay: -1.6s; }
  .rs-flow-vhop-dot:nth-child(3) { animation-delay: -3.2s; }
  .rs-flow-vhop-dot:nth-child(4) { animation-delay: -4.8s; }
  .rs-flow-vhop-dot:nth-child(5) { animation-delay: -6.4s; }

  .rs-flow-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .rs-flow-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
    padding-left: 0;
  }
  .rs-flow-idx {
    flex: 0 0 auto;
    min-width: 26px;
    margin-top: 8px;
    font-size: 11px;
  }
  .rs-flow-node { flex: 0 0 auto; margin-top: 0; }
  .rs-flow-label {
    flex: 1 1 auto;
    text-align: left;
  }
  .rs-flow-name {
    white-space: normal;
    font-size: 14px;
    line-height: 1.25;
  }
  .rs-flow-sub {
    white-space: pre-line;
    font-size: 11px;
    line-height: 1.4;
  }

  .rs-flow-feedback {
    margin-top: 24px;
    padding: 10px 14px;
    font-size: 10px;
  }
  .rs-flow-fb-label { white-space: normal; }

  .rs-flow-io {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
    margin-top: 20px;
  }
  .rs-io-arrow {
    flex-direction: column;
    justify-content: center;
    margin: 4px auto;
    gap: 0;
  }
  .rs-io-arrow > span { display: none; }
  .rs-io-arrow svg {
    transform: rotate(90deg);
  }

  .rs-dash-grid { gap: 28px; }
  .rs-dash-copy { padding: 0; }

  .rs-widget.rs-dashboard {
    padding: 18px;
    border-radius: 14px;
  }
  .rs-w-head { gap: 8px; flex-wrap: wrap; }
  .rs-w-title { font-size: 13px; }
  .rs-w-period { font-size: 9px; }

  .rs-w-kpis {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .rs-w-kpi { padding: 12px; }
  .rs-w-kpi-l { font-size: 9px; }
  .rs-w-kpi-v { font-size: 22px; }
  .rs-w-kpi-d { font-size: 10px; }

  .rs-w-charts {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rs-w-charts > .rs-w-card:nth-child(2) { display: none; }

  .rs-w-bottom { display: none; }

  .rs-w-tags {
    gap: 6px;
    flex-wrap: wrap;
  }

  .rs-clients {
    position: relative;
  }
  .rs-clients::after {
    content: "";
    position: absolute;
    right: 0;
    top: 24px;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--ink-000));
    pointer-events: none;
    z-index: 1;
  }
  .rs-clients-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding-bottom: 8px;
    padding-right: 20px;
    margin-right: -20px;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
  }
  .rs-clients-row:active,
  .rs-clients-row.is-dragging {
    cursor: grabbing;
  }
  .rs-clients-row.is-dragging a {
    pointer-events: none;
  }
  .rs-clients-row::-webkit-scrollbar { display: none; }
  .rs-client-chip {
    flex: 0 0 auto;
    padding-right: 14px;
    padding-left: 14px;
  }
  .rs-client-chip:first-child { padding-left: 0; }

  .rs-proj-grid { gap: 16px; }
  .rs-proj-card {
    padding: 22px;
    min-height: 0;
  }
  .rs-proj-title {
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .rs-proj-num { font-size: 11px; }
  .rs-proj-status { font-size: 9px; }
  .rs-proj-rows > div {
    grid-template-columns: 78px 1fr;
    gap: 12px;
    padding: 9px 0;
  }
  .rs-proj-k { font-size: 9px; }
  .rs-proj-v {
    font-size: 13px;
    line-height: 1.45;
  }
  .rs-proj-tags {
    gap: 5px;
    margin-top: 14px;
  }

  .rs-timeline-editorial { gap: 32px; }
  .rs-tl-story-kicker {
    font-size: 10px;
    letter-spacing: 0.2em;
  }
  .rs-tl-story p {
    font-size: 14px;
    line-height: 1.6;
  }
  .rs-tl-card { padding: 18px; }
  .rs-tl-kicker { font-size: 10px; }
  .rs-tl-title {
    font-size: 18px;
    line-height: 1.2;
  }
  .rs-tl-desc {
    font-size: 13px;
    line-height: 1.55;
  }

  .rs-stack-grid { gap: 14px; }
  .rs-stack-group { padding: 22px; }
  .rs-stack-title { font-size: 15px; }
  .rs-stack-items { gap: 6px; }
  .rs-stack-chip {
    font-size: 10px;
    padding: 5px 10px;
    letter-spacing: 0.04em;
  }

  .rs-cta {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .rs-cta-inner {
    padding: 36px 22px;
    border-radius: 18px;
  }
  .rs-cta-inner::before {
    right: -190px;
    bottom: -180px;
    width: 520px;
    opacity: 0.05;
  }
  .rs-cta-eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
  }
  .rs-cta-title {
    font-size: clamp(30px, 8.5vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.03em;
  }
  .rs-cta-sub {
    font-size: 15px;
    line-height: 1.55;
    margin-top: 14px;
  }
  .rs-cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 24px;
  }
  .rs-cta-buttons .rs-btn {
    width: 100%;
    justify-content: center;
  }
  .rs-cta-meta {
    gap: 6px 10px;
    font-size: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
  }

  .rs-node-name { font-size: 13px; }
  .rs-node-sub { font-size: 11px; }
  .rs-hub-os { font-size: 14px; }
  .rs-hub-sub { font-size: 11px; }
  .rs-portrait-label { font-size: 12px; }
  .rs-portrait-label span { font-size: 11px; }

  .rs-footer-row {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .rs-footer-mid { font-size: 11px; }
  .rs-footer-right {
    flex-wrap: wrap;
    gap: 10px;
  }
}
