/* ─── TYPOGRAPHY — Geist + Inter fallback ────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #FFFFFF;
  --ink: #0D0D0F;
  --green: #0E7C4A;
  --silver: #C9CCD1;
  --silver-dark: #8A8D94;
  --f-display: 'DM Serif Display', serif;
  --f-sans: 'Inter', sans-serif;
  --f-mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  overflow-x: hidden;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── GLOBAL TYPOGRAPHY ──────────────────────────────────────────────────── */

p {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.76;
  color: rgba(13,13,15,0.56);
  font-weight: 400;
  max-width: 740px;
}

.section-text {
  font-family: var(--f-sans);
  font-size: 18px;
  line-height: 1.78;
  color: rgba(13,13,15,0.55);
  max-width: 760px;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (pointer: coarse) {
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none !important; }
}

/* CURSOR */
#cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
  mix-blend-mode: multiply;
  left: -100px; top: -100px;
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  left: -100px; top: -100px;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  mix-blend-mode: multiply;
}
.nav-logo {
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-logo span { color: var(--green); }
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.52;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

/* HERO */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 80px;
  overflow: hidden;
}
#hero-logo-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(1.05);
  width: clamp(300px,42vw,620px);
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.13;
  filter: invert(1);
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  animation: heroLogoRotate 45s linear infinite;
  z-index: 1;
}
@keyframes heroLogoRotate {
  from { transform: translate(-50%, -50%) scale(1.05) rotate(0deg); }
  to   { transform: translate(-50%, -50%) scale(1.05) rotate(360deg); }
}
#hero-grid-lines {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  stroke: rgba(14,124,74,0.15);
  stroke-width: 1;
  pointer-events: none;
}
#hero-headline {
  position: relative;
  z-index: 2;
}
.hero-line {
  overflow: hidden;
  line-height: 1;
  display: block;
  padding-bottom: 0.14em;
}
.hero-line-inner {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(72px, 9.5vw, 148px);
  letter-spacing: -0.03em;
  color: var(--ink);
  transform: translateY(100%);
}
.hero-line-inner .accent { color: var(--green); font-style: italic; }
#hero-sub {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.hero-sub-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-descriptor {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(138,141,148,0.58);
  font-weight: 500;
  max-width: 260px;
  line-height: 1.8;
  opacity: 0;
}
.hero-sub-desc {
  font-size: 12px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(138,141,148,0.40);
  font-weight: 400;
  max-width: 280px;
  line-height: 1.7;
  opacity: 0;
}
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 40px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: all 0.25s ease;
}
.btn-primary:hover {
  background: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.btn-primary.green {
  background: var(--green);
  font-size: 13px;
  padding: 20px 48px;
  opacity: 1;
  position: relative;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}
.btn-primary.green:hover { background: #0a5e38; }

/* HORIZONTAL RULE */
.hr { width: 100%; height: 1px; background: var(--silver); }

/* ABOUT */
#about {
  padding: 120px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text p {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.76;
  color: rgba(13,13,15,0.56);
  font-weight: 400;
  max-width: 460px;
}
.about-text p + p { margin-top: 24px; }
.about-emphasis { overflow: hidden; }
.about-emphasis-inner {
  font-family: var(--f-display);
  font-size: clamp(52px, 6vw, 88px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
.about-emphasis-inner em { color: var(--green); font-style: italic; }
.about-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dark);
  margin-bottom: 32px;
  display: block;
}

/* STACKED SECTIONS */
.stack-wrapper { position: relative; }
.stack-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 48px;
  transform-origin: center top;
  will-change: transform, filter, opacity;
  overflow: hidden;
}

/* SECTION HEADLINE — shared */
.section-headline {
  font-family: var(--f-display);
  font-size: clamp(52px, 7vw, 108px);
  letter-spacing: -0.03em;
  line-height: 1;
  overflow: hidden;
}
.section-headline-inner { display: block; transform: translateY(100%); }

/* ESTATEOS / RAXIONOS */
#estateos {
  background: var(--ink);
  color: #fff;
  min-height: 100vh;
  cursor: crosshair;
}
#estateos .section-tag {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(201,204,209,0.56);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-sans);
  font-weight: 500;
}
#estateos .section-tag::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--green);
}
#estateos .section-headline { color: #fff; }
#estateos .section-headline .accent { color: var(--green); font-style: italic; }
.estate-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
  align-items: start;
}
.estate-desc {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.76;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.57);
  font-weight: 400;
  max-width: 640px;
}
.estate-left-col {
  display: flex;
  flex-direction: column;
}
.estate-features {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.feature-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 1;
  transform: translateY(0);
}
.feature-item:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.feature-name {
  font-family: var(--f-sans);
  font-size: 18px;
  letter-spacing: -0.015em;
  text-transform: none;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.feature-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.6); }
}

/* GRID CANVAS — particle field */
#grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
}
#estateos .section-tag,
#estateos .section-headline,
#estateos .estate-layout {
  position: relative;
  z-index: 3;
}

/* ── RAXION CINEMATIC SCENE ──────────────────────────────────────────────── */
.raxion-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  transform: scale(1.04);
  transform-origin: center center;
}

/* Layer 1 — image: cinematic blend */
.raxion-bg {
  display: block;
  visibility: visible;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% center;
  opacity: 0.28;
  filter: blur(1.2px) brightness(0.74) contrast(0.92) saturate(0.82);
  transform: scale(1.12);
  z-index: 0;
  pointer-events: none;
}


/* Layer 2 — atmosphere: radial green glow + tonal wash */
.raxion-base-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
      circle at 68% 36%,
      rgba(14, 124, 74, 0.08) 0%,
      rgba(14, 124, 74, 0.03) 34%,
      transparent 68%
    ),
    linear-gradient(
      132deg,
      rgba(2, 8, 6, 0.32) 0%,
      rgba(4, 10, 8, 0.18) 42%,
      rgba(6, 10, 8, 0.09) 72%,
      rgba(8, 10, 9, 0.05) 100%
    );
}

/* Layer 3 — readability: soft fade left → clear right */
.raxion-readability {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(1, 4, 3, 0.76) 0%,
    rgba(1, 4, 3, 0.62) 18%,
    rgba(1, 4, 3, 0.38) 36%,
    rgba(1, 4, 3, 0.19) 54%,
    rgba(1, 4, 3, 0.08) 70%,
    rgba(1, 4, 3, 0.00) 86%
  );
}

/* Layer 4 — green eye glow accent */
.raxion-glow {
  position: absolute;
  top: 22%;
  left: 55%;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(14, 124, 74, 0.32) 0%,
    rgba(14, 124, 74, 0.12) 45%,
    transparent             72%
  );
  filter: blur(80px);
  z-index: 3;
  pointer-events: none;
  animation: raxionGlowPulse 7s ease-in-out infinite;
}

@keyframes raxionGlowPulse {
  0%, 100% { opacity: 0.65; transform: scale(1);    }
  50%       { opacity: 1;    transform: scale(1.12); }
}

.raxion-active-badge {
  color: rgba(14, 124, 74, 0.95);
  border-color: rgba(14, 124, 74, 0.28);
  background: rgba(14, 124, 74, 0.07);
  animation: raxionBadgePulse 4s ease-in-out infinite;
}

@keyframes raxionBadgePulse {
  0%, 100% { box-shadow: 0 0 0    0   rgba(14, 124, 74, 0.00); }
  50%       { box-shadow: 0 0 14px 2px rgba(14, 124, 74, 0.20); }
}

/* ── RAXION HOVER OVERLAY — cursor radial glow ───────────────────────────── */
.raxion-hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    circle 280px at 50% 50%,
    rgba(14, 124, 74, 0.10) 0%,
    rgba(14, 124, 74, 0.03) 55%,
    transparent 100%
  );
}
.raxion-hover-overlay.active { opacity: 1; }

/* ── FEATURE ITEM micro-interactions ─────────────────────────────────────── */
#estateos .feature-item {
  transition: transform 0.25s ease, border-color 0.25s ease;
}
#estateos .feature-item:hover {
  transform: translateX(4px);
  border-color: rgba(14, 124, 74, 0.22);
}
#estateos .feature-item:hover .feature-dot {
  animation: featureDotBoost 0.6s ease-out, pulse 2s infinite 0.6s;
  background: #0E7C4A;
  box-shadow: 0 0 8px rgba(14, 124, 74, 0.7);
}
@keyframes featureDotBoost {
  0%   { transform: scale(1);   opacity: 1; }
  40%  { transform: scale(2.4); opacity: 0.9; }
  100% { transform: scale(1);   opacity: 1; }
}

@media (max-width: 900px) {
  .raxion-bg          { opacity: 0.39; object-position: 63% center; }
  .raxion-glow        { display: none; }
  .raxion-readability {
    background: linear-gradient(
      180deg,
      rgba(1, 4, 3, 0.9) 0%,
      rgba(1, 4, 3, 0.76) 52%,
      rgba(1, 4, 3, 0.62) 100%
    );
  }
}

/* RECRUITOS / LEXORAOS */
#recruitos {
  background: #F4F4F2;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
#recruitos .section-tag {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(138,141,148,0.56);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-sans);
  font-weight: 500;
}
#recruitos .section-tag::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--green);
}
#recruitos .section-headline { color: var(--ink); }
#recruitos .section-headline .accent { color: var(--green); font-style: italic; }
#recruitos > *:not(.lexora-scene) { position: relative; z-index: 5; }
#recruitos .section-headline,
#recruitos .section-tag,
#recruitos .recruit-layout { position: relative; z-index: 5; }
#recruitos .feature-name { color: #0D0D0F; }
#recruitos .feature-item { border-bottom: 1px solid rgba(0,0,0,0.08); }
.recruit-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  margin-top: 60px;
  align-items: start;
}
.recruit-desc {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.76;
  letter-spacing: -0.01em;
  color: rgba(13,13,15,0.55);
  font-weight: 400;
  max-width: 640px;
}
.recruit-left-col {
  display: flex;
  flex-direction: column;
}
.lexora-cta {
  margin-top: 28px;
  align-self: flex-start;
}
.scan-container {
  position: relative;
  height: 280px;
  border: 1px solid var(--silver);
  overflow: hidden;
}
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  top: 0;
}
.scan-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.scan-row {
  height: 1px;
  background: var(--silver);
  transform: scaleX(0);
  transform-origin: left;
}
.scan-label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--silver-dark);
  letter-spacing: 0.08em;
}

/* LEXORA SCENE */
.lexora-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.lexora-bg {
  position: absolute; top: 0; left: 0;
  width: 100%; max-width: 100%; height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  opacity: 0.35;
  pointer-events: none;
  animation: lexoraCloudDrift 18s ease-in-out infinite;
  contain: paint;
}
.lexora-cloud-overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 60%;
  background: linear-gradient(0deg, #F4F4F2 0%, rgba(244,244,242,0.85) 40%, rgba(244,244,242,0) 80%);
}
.lexora-glow {
  position: absolute;
  top: 40%; right: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,124,74,0.35) 0%, rgba(14,124,74,0.15) 40%, rgba(14,124,74,0.0) 70%);
  filter: blur(120px);
  opacity: 0.8;
  transform: translateZ(0);
  will-change: transform, opacity;
  contain: paint;
  animation: lexoraPulse 6s ease-in-out infinite;
}
.lexora-particles {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: radial-gradient(rgba(14,124,74,0.4) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.12;
  transform: translateZ(0);
  will-change: transform, opacity;
  contain: paint;
}
.lexora-readability {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg,
    rgba(244,244,242,0.96) 0%,
    rgba(244,244,242,0.92) 30%,
    rgba(244,244,242,0.82) 50%,
    rgba(244,244,242,0.45) 70%,
    rgba(244,244,242,0.05) 90%);
  z-index: 2;
  pointer-events: none;
}
.lexora-scanline {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.35;
  box-shadow: 0 0 12px rgba(14,124,74,0.7);
  z-index: 1;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform, opacity;
  contain: paint;
}
.lexora-data {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(14,124,74,0.15);
  letter-spacing: 0.1em;
  animation: lexoraData 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes lexoraCloudDrift {
  0%   { transform: translateY(0px) scale(1.02); }
  50%  { transform: translateY(-18px) scale(1.05); }
  100% { transform: translateY(0px) scale(1.02); }
}
@keyframes lexoraPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.1); }
}
@keyframes lexoraData {
  0%, 100% { opacity: 0.05; }
  50%       { opacity: 0.3; }
}

/* INFRASTRUCTURE LAYER */
#perfweb {
  background: var(--bg);
  color: var(--ink);
  border-top: 1px solid var(--silver);
}
#perfweb .section-tag {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(138,141,148,0.56);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-sans);
  font-weight: 500;
}
#perfweb .section-tag::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--green);
}
#perfweb .section-headline { color: var(--ink); }
#perfweb .section-headline .accent { color: var(--green); font-style: italic; }
.perf-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
}
.perf-desc {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.76;
  letter-spacing: -0.01em;
  color: rgba(13,13,15,0.55);
  font-weight: 400;
  max-width: 640px;
}
.waveform-container {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
}
#waveform-svg { width: 100%; height: 100%; }

.estate-right-col { display: flex; flex-direction: column; gap: 12px; }

/* TICKER */
#ticker-wrapper {
  overflow: hidden;
  border-top: 1px solid var(--silver);
  border-bottom: 1px solid var(--silver);
  padding: 22px 0;
  background: var(--bg);
}
.ticker-track {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  will-change: transform;
}
.ticker-item {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(138,141,148,0.56);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.ticker-item .dot {
  width: 4px; height: 4px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
}

/* ─── REVENUE INTELLIGENCE ───────────────────────────────────────────────── */
#rev-intel {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 160px 48px;
  overflow: hidden;
}
#rev-intel .section-tag {
  position: relative;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(201,204,209,0.56);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-sans);
  font-weight: 500;
}
#rev-intel .section-tag::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--green);
}
.ri-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ri-section-headline { color: #fff; }
.ri-section-headline .accent { color: var(--green); font-style: italic; }
.ri-desc {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.57);
  font-weight: 400;
  max-width: 540px;
  margin-top: 40px;
}
.ri-insight {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.78;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  max-width: 480px;
  margin-top: 28px;
  border-left: 2px solid rgba(14,124,74,0.4);
  padding-left: 16px;
}
.ri-right {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.ri-metric-primary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ri-metric-number {
  font-family: var(--f-display);
  font-size: clamp(56px, 7vw, 96px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.ri-metric-label {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}
.ri-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 40px;
}
.ri-metric-small { display: flex; flex-direction: column; gap: 10px; }
.ri-metric-sub-num {
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}
.ri-metric-sub-label {
  font-family: var(--f-sans);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.01em;
}

/* ─── GOLD ACCENT SYSTEM ─────────────────────────────────────────────────── */
.gold { color: #C9A84C; }

/* System ownership labels — Revenue Intelligence */
.ri-system-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(14, 124, 74, 0.55);
  margin-bottom: 16px;
}

.roco-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.60);
  margin-bottom: 12px;
}

/* ─── REVENUE INTELLIGENCE — ROCO layer ─────────────────────────────────── */
.ri-roco-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(201, 168, 76, 0.22) 0%,
    rgba(201, 168, 76, 0.08) 60%,
    transparent 100%
  );
  margin: 8px 0 4px;
}

.roco-metric .ri-metric-label {
  color: #C9A84C;
  letter-spacing: 0.2em;
}

.roco-metric .ri-metric-number {
  color: rgba(201, 168, 76, 0.90);
}

.roco-sub-metrics {
  border-top-color: rgba(201, 168, 76, 0.10);
  padding-top: 32px;
}

.roco-sub-metrics .ri-metric-sub-num {
  color: rgba(201, 168, 76, 0.85);
}

.roco-text-metric {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(201, 168, 76, 0.48);
  letter-spacing: 0.01em;
  font-style: italic;
  align-self: center;
}

/* RI — background layers */
.ri-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,124,74,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,124,74,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
.ri-nodes-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ri-node {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0;
  transform: scale(0.6);
  animation: riNodePulse 4s ease-in-out infinite;
}
.ri-node:nth-child(2)  { animation-delay: 0.6s; }
.ri-node:nth-child(3)  { animation-delay: 1.3s; }
.ri-node:nth-child(4)  { animation-delay: 2.1s; }
.ri-node:nth-child(5)  { animation-delay: 0.4s; }
.ri-node:nth-child(6)  { animation-delay: 1.8s; }
.ri-node:nth-child(7)  { animation-delay: 2.7s; }
.ri-node:nth-child(8)  { animation-delay: 0.9s; }
.ri-node:nth-child(9)  { animation-delay: 3.2s; }
.ri-node:nth-child(10) { animation-delay: 1.5s; }
@keyframes riNodePulse {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  40%, 60%  { opacity: 0.55; transform: scale(1); box-shadow: 0 0 8px var(--green); }
}
.ri-edges-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  stroke: rgba(14,124,74,0.12);
  stroke-width: 1;
  fill: none;
}
.ri-data-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ri-flicker {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(14,124,74,0.22);
  text-transform: uppercase;
  white-space: nowrap;
  animation: riFlicker 6s ease-in-out infinite;
}
@keyframes riFlicker {
  0%, 100% { opacity: 0; }
  20%, 30%  { opacity: 1; }
  50%, 60%  { opacity: 0.3; }
  80%       { opacity: 0.8; }
}
.ri-cloud-overlay {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 70% 55% at 60% 50%, rgba(14,124,74,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(14,124,74,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: riCloudDrift 18s ease-in-out infinite alternate;
}
@keyframes riCloudDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(3%, 2%) scale(1.04); }
}

/* PROCESS */
#process {
  padding: 160px 48px;
  background: var(--bg);
}
.process-header {
  margin-bottom: 100px;
  overflow: hidden;
}
.process-header-inner {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.02em;
  transform: translateY(100%);
}
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-step {
  padding: 64px 0;
  border-bottom: 1px solid var(--silver);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  overflow: hidden;
}
.process-step-line {
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 1px;
  background: var(--green);
  pointer-events: none;
}
.process-num-wrap { position: relative; }
.process-num-bg {
  font-family: var(--f-display);
  font-size: 160px;
  color: var(--ink);
  opacity: 0.04;
  line-height: 1;
  position: absolute;
  top: -30px; left: -10px;
  pointer-events: none;
}
.process-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--green);
  font-weight: 400;
  margin-top: 8px;
}
.process-title {
  font-family: var(--f-display);
  font-size: 36px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.1;
}
.process-body {
  font-family: var(--f-sans);
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  color: rgba(13,13,15,0.6);
  max-width: 520px;
}

/* CONTACT */
#contact {
  padding: 160px 48px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 80vh;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
#contact-logo-bg {
  z-index: 0;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 38vw, 560px);
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.05;
}
.contact-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.contact-eyebrow::before, .contact-eyebrow::after {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--green);
}
.contact-headline {
  font-family: var(--f-display);
  font-size: clamp(52px, 8vw, 120px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  margin-bottom: 60px;
  max-width: 900px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.contact-headline-inner { display: block; transform: translateY(100%); }
.contact-headline em { color: var(--green); font-style: italic; }
.contact-info {
  margin-top: 60px;
  display: flex;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.contact-detail {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
}
.contact-detail a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-detail a:hover { color: rgba(255,255,255,0.8); }
.contact-sep {
  width: 1px; height: 20px;
  background: rgba(255,255,255,0.15);
}
.btn-primary.green { position: relative; z-index: 1; }

/* INQUIRIES FORM */
.inquiry-wrap {
  margin-top: 34px;
  width: min(620px, 100%);
  position: relative;
  z-index: 1;
}
.inquiry-title {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.inquiry-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 14px;
  color: rgba(255,255,255,0.92);
  font-family: var(--f-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.inquiry-input::placeholder { color: rgba(255,255,255,0.35); }
.inquiry-input:focus {
  border-color: rgba(14,124,74,0.6);
  background: rgba(255,255,255,0.06);
}
.inquiry-textarea { resize: vertical; min-height: 110px; }
.inquiry-submit {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.10);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.inquiry-submit:hover { background: rgba(14,124,74,0.9); transform: translateY(-1px); }
.inquiry-status {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  min-height: 16px;
}

/* FOOTER */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer .logo {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
footer .logo span { color: var(--green); }
footer .copy {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
}

/* UTILS */
.word-mask { overflow: hidden; display: inline-block; }
.word-inner { display: inline-block; }
.status-badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(14,124,74,0.35);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: rgba(14,124,74,0.08);
}

/* MOBILE */
@media (max-width: 768px) {
  .inquiry-grid { grid-template-columns: 1fr; }
  nav { padding: 18px 20px; }
  .nav-links { gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
  #hero { padding: 140px 22px 80px; min-height: auto; }
  #hero-sub { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-descriptor { max-width: none; }
  #hero-headline, .contact-headline { overflow: visible; }
  .hero-headline-inner, .contact-headline-inner { transform: translateY(0); }
  #about { grid-template-columns: 1fr; gap: 40px; padding: 90px 22px; }
  .about-text p { max-width: none; }
  .stack-section { padding: 110px 22px 90px; }
  .recruit-layout { grid-template-columns: 1fr; gap: 32px; }
  .estate-layout { grid-template-columns: 1fr; gap: 32px; }
  .perf-layout { grid-template-columns: 1fr; gap: 32px; }
  .estate-right-col { gap: 18px; }
  .process-steps { grid-template-columns: 1fr; gap: 28px; }
  .process-step { grid-template-columns: 1fr; gap: 24px; }
  .process-num-bg { font-size: 100px; }
  .process-num-wrap { margin-bottom: 8px; }
  .process-title { font-size: 28px; }
  .process-body { max-width: none; }
  #contact { padding: 120px 22px; }
  #contact-logo-bg { width: clamp(220px, 60vw, 340px); }
  .contact-info { flex-direction: column; gap: 18px; margin-top: 40px; }
  .contact-sep { width: 48px; height: 1px; }
  footer { padding: 28px 22px; flex-direction: column; gap: 10px; align-items: flex-start; }
  #rev-intel { padding: 100px 24px; }
  .ri-layout { grid-template-columns: 1fr; gap: 60px; }
  .ri-flicker { display: none; }
}

@media (max-width: 900px) {
  #recruitos { min-height: auto; }
  .lexora-scene { opacity: 0.35; }
  #estateos { min-height: auto; }
  .lexora-bg { width: 100%; opacity: 0.32; }
  .lexora-glow { display: none; }
  .lexora-particles { opacity: 0.04; }
  .lexora-scanline { opacity: 0.15; }
}

@media (max-width: 900px), (max-height: 720px) {
  .stack-wrapper { position: relative; }
}
/* ─── TABLET (768px – 1199px) ────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .recruit-layout  { grid-template-columns: 1fr; gap: 40px; }
  .estate-layout   { grid-template-columns: 1fr; gap: 40px; }
  .ri-layout       { gap: 60px; }
  .process-step    { grid-template-columns: 120px 1fr; gap: 40px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ROCOOS — Capital Intelligence Layer
   Tone: controlled · matte · private equity · quiet intelligence
   ══════════════════════════════════════════════════════════════════════════ */

#rocoos {
  background: var(--ink);
  color: #fff;
  min-height: 100vh;
  cursor: crosshair;
}

#rocoos .section-tag {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.78);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-sans);
  font-weight: 500;
  position: relative;
  z-index: 3;
}

#rocoos .section-tag::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(201, 168, 76, 0.40);
}

#rocoos .section-headline         { color: #fff; position: relative; z-index: 3; }
#rocoos .section-headline .accent { color: var(--green); font-style: italic; }

#rocoos .estate-layout {
  position: relative;
  z-index: 3;
}

/* ── Scene container ─────────────────────────────────────────────────────── */
.roco-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  transform: scale(1.04);
  transform-origin: center center;
}

/* Layer 1 — avatar image: matte, capital-market weight */
.roco-bg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  opacity: 0.35;
  filter: blur(1.2px) brightness(0.70) contrast(0.90) saturate(0.68);
  transform: scale(1.10);
  transform-origin: center center;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* Layer 2 — base atmosphere: darker than Raxion, gold-tinged */
.roco-base-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse at 72% 38%,
      rgba(201, 168, 76, 0.055) 0%,
      rgba(14, 124, 74, 0.030) 38%,
      transparent 64%
    ),
    linear-gradient(
      142deg,
      rgba(3, 4, 3, 0.52) 0%,
      rgba(5, 7, 5, 0.32) 40%,
      rgba(7, 7, 6, 0.16) 72%,
      rgba(8, 8, 9, 0.04) 100%
    );
}

/* Layer 3 — readability: heavier left fade than Raxion */
.roco-readability {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(5, 5, 6, 0.92) 0%,
    rgba(5, 5, 6, 0.76) 20%,
    rgba(5, 5, 6, 0.52) 38%,
    rgba(5, 5, 6, 0.24) 56%,
    rgba(5, 5, 6, 0.08) 72%,
    rgba(5, 5, 6, 0.00) 88%
  );
}

/* Layer 4 — ambient glow: reduced, calm, matte gold tone */
.roco-glow {
  position: absolute;
  top: 28%;
  left: 52%;
  width: 360px;
  height: 360px;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.05) 0%,
    rgba(14, 124, 74, 0.030) 46%,
    transparent 72%
  );
  filter: blur(110px);
  z-index: 3;
  pointer-events: none;
  animation: rocoGlowBreath 14s ease-in-out infinite;
}

@keyframes rocoGlowBreath {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.65; }
}

/* ── Deal flow panel ─────────────────────────────────────────────────────── */
.roco-panel {
  position: relative;
  border-left: 1px solid rgba(201, 168, 76, 0.22);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}

/* Continuous flow line sweeping down the left rail */
.roco-panel::after {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 40%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(201, 168, 76, 0.55),
    transparent
  );
  animation: rocoFlow 1.8s linear infinite;
  pointer-events: none;
}

@keyframes rocoFlow {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(350%);  }
}

.roco-step {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.38);
  position: relative;
  transition: color 0.25s ease, letter-spacing 0.25s ease;
}

.roco-step::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 5px;
  width: 6px;
  height: 6px;
  background: rgba(201, 168, 76, 0.28);
  border-radius: 50%;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.roco-step.active {
  color: #ffffff;
  letter-spacing: 0.08em;
}

.roco-step.active::before {
  background: #C9A84C;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.60);
  transform: scale(1.4);
}

/* ── RAXION CTA ──────────────────────────────────────────────────────────── */
.raxion-cta {
  display: inline-block;
  margin-top: 28px;
  align-self: flex-start;
  opacity: 1;
  background: transparent;
  border: 1px solid rgba(14, 124, 74, 0.35);
  color: #fff;
  letter-spacing: 0.06em;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
}
.raxion-cta:hover {
  background: rgba(14, 124, 74, 0.10);
  border-color: rgba(14, 124, 74, 0.55);
  color: #fff;
  transform: translateY(-2px);
}

/* ── ROCO CTA ────────────────────────────────────────────────────────────── */
.roco-cta {
  display: inline-block;
  margin-top: 32px;
  opacity: 1;
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: #fff;
  letter-spacing: 0.06em;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
}
.roco-cta:hover {
  background: rgba(201, 168, 76, 0.10);
  border-color: rgba(201, 168, 76, 0.55);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .roco-bg {
    opacity: 0.22;
    object-position: 65% center;
  }
  .roco-glow { display: none; }
  .roco-readability {
    background: linear-gradient(
      180deg,
      rgba(5, 5, 6, 0.94) 0%,
      rgba(5, 5, 6, 0.82) 50%,
      rgba(5, 5, 6, 0.68) 100%
    );
  }
}

/* ─── MOBILE (<768px) additions ──────────────────────────────────────────── */
@media (max-width: 768px) {

  *, *::before, *::after { max-width: 100%; }

  p { font-size: 15px; line-height: 1.65; }

  .hero-line-inner       { font-size: clamp(48px, 12vw, 96px); }
  .section-headline      { font-size: clamp(32px, 8vw, 44px); line-height: 1.1; }
  .about-emphasis-inner  { font-size: clamp(40px, 10vw, 72px); }
  .contact-headline      { font-size: clamp(38px, 11vw, 80px); margin-bottom: 40px; }
  .process-header-inner  { font-size: clamp(32px, 9vw, 52px); }
  .process-header        { margin-bottom: 56px; }
  .process-step          { padding: 40px 0; }

  #process { padding: 100px 24px; }

  .recruit-desc, .estate-desc, .perf-desc,
  .process-body, .ri-desc, .ri-insight { max-width: none; }

  .ri-metrics-row  { grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 28px; }
  .ri-metric-number { font-size: clamp(44px, 13vw, 72px); }
  .ri-right        { gap: 32px; }

  .btn-primary     { display: block; width: 100%; text-align: center; padding: 18px 24px; opacity: 1; }
  .btn-primary.green { width: auto; display: inline-block; }

  .nav-links       { gap: 12px; }
  .nav-links a     { font-size: 10px; letter-spacing: 0.05em; }

  .feature-name    { font-size: 15px; }
  .ticker-track    { gap: 48px; }
  .status-badge    { margin-bottom: 14px; }
}
