/* ============================================================
   Mobile Apps · React Native — page-specific styles
   Builds on styles.css + styles-v2.css + uxv2.css (body.v2)
   ============================================================ */

.rn-page { background: var(--ink-0); color: var(--bone); }

/* ============ FLUID canvas (mouse-reactive WebGL) ============ */
#fluid-canvas {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 60; pointer-events: none;
  opacity: 0.50;
  mix-blend-mode: screen;
}
.rn-page > section,
.rn-page > header,
.rn-page > footer,
.rn-page > .rn-crumb,
.rn-page > .rn-ticker { position: relative; z-index: 3; }

/* ============ Page intro curtain ============ */
.rn-curtain {
  position: fixed; inset: 0; z-index: 999;
  background: var(--ink-0);
  display: grid; place-items: center;
  font: 11px var(--f-mono); letter-spacing: .25em; text-transform: uppercase;
  color: var(--bone-3);
  transform-origin: top center;
}
.rn-curtain span { opacity: .8; }
.rn-curtain.is-out {
  pointer-events: none;
}

/* ============ TICKER ============ */
.rn-ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rn-ticker__track {
  display: inline-flex; gap: 36px; align-items: center;
  white-space: nowrap;
  font-family: var(--f-display); font-size: clamp(28px, 4.4vw, 64px);
  font-weight: 300; letter-spacing: -0.02em; color: var(--bone-2);
  animation: rcMarquee 38s linear infinite;
}
.rn-ticker__track em {
  font-style: italic; color: var(--lime);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.rn-ticker__track .sep { color: var(--bone-3); opacity: .5; }
@keyframes rcMarquee {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

/* ============ LIVE TYPEWRITER ============ */
.rn-typer {
  padding: 120px var(--gutter);
  position: relative;
}
.rn-typer__head { max-width: 1300px; margin: 0 auto 50px; }
.rn-typer__head .rn-section__eyebrow { margin-bottom: 18px; display: inline-flex; }
.rn-typer__head .rn-section__title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(40px, 6vw, 92px); line-height: .92; letter-spacing: -0.03em;
  color: var(--bone); margin: 0;
}
.rn-typer__head .rn-section__title em { font-style: italic; color: var(--lime); font-variation-settings: "SOFT" 100, "WONK" 1; }
.rn-typer__grid {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px;
}
.rn-typer__editor, .rn-typer__preview {
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  overflow: hidden;
  min-height: 460px;
}
.rn-typer__bar, .rn-typer__preview-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font: 10px var(--f-mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--bone-3);
}
.rn-typer__bar i, .rn-typer__preview-bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bone-3); opacity: .35;
}
.rn-typer__bar i:nth-child(1) { background: #ff5b23; opacity: .8; }
.rn-typer__bar i:nth-child(2) { background: #ffc83d; opacity: .8; }
.rn-typer__bar i:nth-child(3) { background: var(--lime); opacity: .8; }
.rn-typer__bar span, .rn-typer__preview-bar span { margin-left: 8px; }
.rn-typer__bar b {
  margin-left: auto; color: var(--lime);
  animation: rcPulse 1.2s steps(2,end) infinite;
}
.rn-typer__code {
  margin: 0; padding: 24px 28px;
  font: 13px/1.7 var(--f-mono);
  color: var(--bone-2); white-space: pre-wrap;
  min-height: 380px;
}
.rn-typer__code .tk-key { color: #ff7a59; }
.rn-typer__code .tk-str { color: var(--lime); }
.rn-typer__code .tk-com { color: var(--bone-3); opacity: .6; }
.rn-typer__code .tk-tag { color: #58b8ff; }
.rn-typer__code .tk-prop { color: #c79bff; }
.rn-typer__code .caret {
  display: inline-block; width: 8px; height: 16px; vertical-align: -3px;
  background: var(--lime); margin-left: 1px;
  animation: rcCaret 1s steps(2) infinite;
}
@keyframes rcCaret { 50% { opacity: 0; } }

.rn-typer__stage {
  display: grid; place-items: center;
  padding: 60px 30px;
  height: 360px; position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(212,255,58,0.06), transparent 60%),
    repeating-linear-gradient(0deg, rgba(245,242,236,0.03) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(245,242,236,0.03) 0 1px, transparent 1px 32px);
}
.rn-typer__btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: var(--lime); color: var(--ink-0);
  font: 600 15px/1 var(--f-sans); letter-spacing: -.01em;
  cursor: pointer; transition: transform .4s var(--ease-out), border-radius .4s var(--ease-out), background .3s, color .3s;
}
.rn-typer__btn .arr { display: inline-block; transition: transform .35s var(--ease-out); }
.rn-typer__legend {
  position: absolute; bottom: 14px; left: 16px; right: 16px;
  display: flex; gap: 18px; font: 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--bone-3);
}
.rn-typer__legend i {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0;
}
@media (max-width: 900px) {
  .rn-typer__grid { grid-template-columns: 1fr; }
  .rn-typer__stage { height: 220px; padding: 30px; }
}

/* ============ Crumb ============ */
.rn-crumb {
  position: relative; z-index: 5;
  padding: 100px var(--gutter) 0;
  font: 11px var(--f-mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--bone-3);
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.rn-crumb a { color: var(--bone-3); text-decoration: none; transition: color .25s; }
.rn-crumb a:hover { color: var(--lime); }
.rn-crumb .sep { opacity: .4; }
.rn-crumb .cur { color: var(--bone); }

/* ============ HERO ============ */
.rn-hero {
  position: relative;
  min-height: 100vh;
  padding: 80px var(--gutter) 60px;
  overflow: hidden;
  isolation: isolate;
}
.rn-hero__inner {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 60px;
  align-items: end;
  min-height: calc(100vh - 200px);
}
.rn-hero__canvas {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: auto;
}
.rn-hero__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.rn-hero__grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: radial-gradient(rgba(245,242,236,0.04) 1px, transparent 1px);
  background-size: 3px 3px; mix-blend-mode: overlay; opacity: 0.55;
}
.rn-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 11px var(--f-mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone-3); margin-bottom: 28px;
}
.rn-hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 12px rgba(212,255,58,.7);
  animation: rcPulse 2s ease-in-out infinite;
}
@keyframes rcPulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.rn-hero__title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(56px, 10vw, 164px);
  line-height: 0.86; letter-spacing: -0.04em;
  color: var(--bone); margin: 0;
}
.rn-hero__title em {
  font-style: italic; color: var(--lime);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.rn-hero__title .char,
.rn-hero__title .word {
  display: inline-block; will-change: transform;
}
.rn-hero__lede {
  margin: 30px 0 0; max-width: 520px;
  font: 18px/1.55 var(--f-sans); color: var(--bone-2);
}
.rn-hero__cta-row {
  margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap;
}

.rn-hero__right {
  position: relative;
  height: clamp(420px, 56vh, 620px);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
  backdrop-filter: blur(2px);
}
.rn-hero__right-label {
  position: absolute; top: 16px; left: 18px; z-index: 4;
  display: inline-flex; align-items: center; gap: 10px;
  font: 10px var(--f-mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--bone-3);
}
.rn-hero__right-label .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
  animation: rcPulse 1.6s ease-in-out infinite;
}
.rn-hero__right-hint {
  position: absolute; bottom: 14px; right: 18px; z-index: 4;
  font: 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--bone-3);
}
.rn-hero__cosmos { position: absolute; inset: 0; z-index: 2; }

/* hero footer metrics ribbon */
.rn-hero__metrics {
  position: relative; z-index: 3; margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.rn-hero__metric {
  padding: 22px 18px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.rn-hero__metric:last-child { border-right: 0; }
.rn-hero__metric .k {
  font: 10px var(--f-mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--bone-3);
}
.rn-hero__metric .v {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -.03em;
  color: var(--bone); line-height: 1;
}
.rn-hero__metric .v em { font-style: italic; color: var(--lime); font-size: .55em; margin-left: 4px; }

/* ============ SECTION primitives ============ */
.rn-section {
  padding: var(--sec-y) var(--gutter);
  border-top: 1px solid var(--line);
  position: relative;
  background: var(--ink-0);
}
.rn-section__head {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 40px; align-items: end; margin-bottom: 60px;
}
.rn-section__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 11px var(--f-mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone-3);
}
.rn-section__eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
}
.rn-section__title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.95; letter-spacing: -0.035em;
  color: var(--bone); margin: 0;
  text-wrap: balance;
}
.rn-section__title em { font-style: italic; color: var(--bone-2); }
.rn-section__title .lime { color: var(--lime); }

@media (max-width: 860px) {
  .rn-section__head { grid-template-columns: 1fr; gap: 20px; }
  .rn-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .rn-hero__right { height: 380px; }
  .rn-hero__metrics { grid-template-columns: 1fr 1fr; }
  .rn-hero__metric:nth-child(2n) { border-right: 0; }
  .rn-hero__metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ============ ECOSYSTEM GRID ============ */
.rn-eco {
  display: grid; grid-template-columns: repeat(12, 1fr);
  border: 1px solid var(--line);
  background: var(--ink-0);
}
.rn-eco__item {
  grid-column: span 4;
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative; cursor: default;
  display: flex; flex-direction: column; gap: 12px; min-height: 200px;
  transition: background .35s var(--ease-out), color .35s var(--ease-out);
  text-decoration: none; color: inherit;
}
.rn-eco__item.is-wide { grid-column: span 6; }
.rn-eco__item.is-narrow { grid-column: span 3; }
.rn-eco__item:nth-child(3n) { border-right: 0; }
.rn-eco__item:hover { background: rgba(212,255,58,.04); }
.rn-eco__item::before {
  content: ""; position: absolute; left: 0; top: 0; width: 0; height: 1px;
  background: var(--lime); transition: width .5s var(--ease-out);
}
.rn-eco__item:hover::before { width: 100%; }
.rn-eco__cat {
  font: 10px var(--f-mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone-3);
  padding-right: 44px;
  display: flex; justify-content: space-between; align-items: center;
}
.rn-eco__cat .num { color: var(--lime); }
.rn-eco__nm {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -.02em;
  color: var(--bone); line-height: 1;
}
.rn-eco__desc {
  font: 13px/1.5 var(--f-sans); color: var(--bone-2);
  margin: 0; max-width: 30ch;
}
.rn-eco__tags {
  margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px;
}
.rn-eco__tag {
  font: 9.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 9px; border: 1px solid var(--line); color: var(--bone-3);
  border-radius: 999px;
}
.rn-eco__glyph {
  position: absolute; right: 22px; top: 22px;
  width: 26px; height: 26px; opacity: .8;
}
.rn-eco__glyph svg {
  width: 100%; height: 100%; stroke: var(--bone-2); fill: none; stroke-width: 1.4;
}
.rn-eco__item:hover .rn-eco__glyph svg { stroke: var(--lime); }

@media (max-width: 1100px) {
  .rn-eco__item, .rn-eco__item.is-wide, .rn-eco__item.is-narrow { grid-column: span 6; }
  .rn-eco__item:nth-child(3n) { border-right: 1px solid var(--line); }
  .rn-eco__item:nth-child(2n) { border-right: 0; }
}
@media (max-width: 700px) {
  .rn-eco__item, .rn-eco__item.is-wide, .rn-eco__item.is-narrow { grid-column: span 12; border-right: 0; }
}

/* ============ WHAT WE BUILD (vignettes) ============ */
.rn-build {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); background: var(--ink-0);
}
.rn-build__card {
  padding: 36px 30px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
  position: relative; min-height: 460px; overflow: hidden;
  transition: background .4s;
}
.rn-build__card:last-child { border-right: 0; }
.rn-build__card:hover { background: rgba(212,255,58,.025); }
.rn-build__num {
  font: 10px var(--f-mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone-3);
}
.rn-build__num em { color: var(--lime); font-style: normal; }
.rn-build__title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -.02em;
  color: var(--bone); line-height: 1;
}
.rn-build__title em { font-style: italic; color: var(--bone-2); }
.rn-build__desc {
  font: 14px/1.55 var(--f-sans); color: var(--bone-2); max-width: 32ch; margin: 0;
}
.rn-build__viz {
  margin-top: auto;
  height: 180px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  position: relative;
}
.rn-build__viz svg { width: 100%; height: 100%; display: block; }
.rn-build__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0;
}
.rn-build__list li {
  display: grid; grid-template-columns: 22px 1fr auto;
  gap: 10px; padding: 9px 0;
  border-top: 1px solid var(--line);
  font: 12px/1.4 var(--f-mono); color: var(--bone-2); letter-spacing: .04em;
}
.rn-build__list li:first-child { border-top: 0; }
.rn-build__list li span:first-child { color: var(--lime); }
.rn-build__list li small { font-size: 10px; color: var(--bone-3); letter-spacing: .14em; text-transform: uppercase; }

@media (max-width: 960px) { .rn-build { grid-template-columns: 1fr; } .rn-build__card { border-right: 0; border-bottom: 1px solid var(--line); } .rn-build__card:last-child { border-bottom: 0; } }

/* ============ PROCESS — 5 sticky scenes ============ */
.rn-process { padding: 0 !important; border-top: 1px solid var(--line); background: var(--ink-0); }
.rn-process__track { position: relative; height: 500vh; }
.rn-process__sticky {
  position: sticky; top: 0; height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; padding: 100px var(--gutter);
  align-items: center; overflow: hidden;
}
.rn-process__copy {
  position: relative; max-width: 480px; align-self: center;
}
.rn-process__step {
  font: 10px var(--f-mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 18px;
}
.rn-process__heading {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(40px, 5.6vw, 84px); line-height: .95; letter-spacing: -.03em;
  color: var(--bone); margin: 0 0 20px;
}
.rn-process__heading em { font-style: italic; color: var(--lime); }
.rn-process__desc { font: 16px/1.55 var(--f-sans); color: var(--bone-2); max-width: 46ch; margin: 0 0 22px; }
.rn-process__deliv { display: flex; flex-wrap: wrap; gap: 8px; }
.rn-process__deliv span {
  font: 10.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 12px; border: 1px solid var(--line); color: var(--bone-2);
  border-radius: 999px;
}
.rn-process__visual {
  position: relative; height: 100%; max-height: 600px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.012);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.rn-process__scene { position: absolute; inset: 0; opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.rn-process__scene.is-active { opacity: 1; transform: translateY(0); }
.rn-process__scene svg { width: 100%; height: 100%; display: block; padding: 30px; }
.rn-process__num {
  position: absolute; left: var(--gutter); bottom: 30px;
  font-family: var(--f-display); font-weight: 200; font-style: italic;
  font-size: clamp(80px, 12vw, 180px); line-height: 1;
  color: var(--bone); opacity: .15; pointer-events: none;
}
.rn-process__rail {
  position: absolute; right: var(--gutter); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 10px var(--f-mono); letter-spacing: .14em; color: var(--bone-3);
}
.rn-process__rail .bar { width: 1px; height: 220px; background: var(--line); position: relative; }
.rn-process__rail .bar i { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--lime); transition: height .4s var(--ease-out); }

@media (max-width: 960px) { .rn-process__sticky { grid-template-columns: 1fr; } .rn-process__visual { max-height: 360px; } .rn-process__rail { display: none; } }

/* ============ ARCHITECTURE diagram (live request flow) ============ */
.rn-arch {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(212,255,58,0.02), transparent);
  padding: 40px;
  overflow: hidden;
}
.rn-arch__topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 30px;
  font: 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--bone-3);
}
.rn-arch__topbar .rn-arch__legend { display: flex; gap: 20px; }
.rn-arch__legend span { display: inline-flex; align-items: center; gap: 8px; }
.rn-arch__legend i { width: 10px; height: 10px; border-radius: 50%; }
.rn-arch__svg { width: 100%; height: clamp(440px, 50vh, 620px); display: block; }
.rn-arch__metrics {
  margin-top: 30px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.rn-arch__metric { padding: 20px 0 0; }
.rn-arch__metric .k { font: 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3); }
.rn-arch__metric .v { font-family: var(--f-display); font-weight: 300; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.02em; color: var(--bone); margin-top: 6px; line-height: 1; }
.rn-arch__metric .v em { font-style: italic; color: var(--lime); font-size: .55em; }

@media (max-width: 760px) { .rn-arch__metrics { grid-template-columns: 1fr 1fr; gap: 14px 0; } }

/* ============ STATS LEDGER (abstract, no clients) ============ */
.rn-stats {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px;
}
.rn-stats__copy { padding-top: 8px; }
.rn-stats__copy h3 {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(40px, 5vw, 72px); line-height: .95; letter-spacing: -.03em;
  color: var(--bone); margin: 16px 0 18px;
}
.rn-stats__copy h3 em { font-style: italic; color: var(--bone-2); }
.rn-stats__copy p { font: 15px/1.55 var(--f-sans); color: var(--bone-2); margin: 0 0 30px; max-width: 36ch; }
.rn-stats__bigstat {
  border-top: 1px solid var(--line); padding-top: 18px;
  display: flex; flex-direction: column; gap: 6px; max-width: 220px;
}
.rn-stats__bigstat .k { font: 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3); }
.rn-stats__bigstat strong {
  font-family: var(--f-display); font-weight: 300; font-style: italic;
  font-size: 64px; line-height: 1; color: var(--lime); letter-spacing: -.03em;
}
.rn-stats__bigstat small { font: 10px var(--f-mono); letter-spacing: .14em; color: var(--bone-3); text-transform: uppercase; }

.rn-stats__ledger {
  border: 1px solid var(--line);
  background: var(--ink-0);
}
.rn-stats__head {
  display: grid; grid-template-columns: 70px 1.4fr 1fr 1fr;
  font: 10px var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--bone-3); padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.rn-stats__row {
  display: grid; grid-template-columns: 70px 1.4fr 1fr 1fr;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  transition: background .35s;
}
.rn-stats__row:hover { background: rgba(212,255,58,.03); }
.rn-stats__row:last-child { border-bottom: 0; }
.rn-stats__row .num { font: 11px var(--f-mono); letter-spacing: .14em; color: var(--bone-3); }
.rn-stats__row .k { color: var(--bone); font: 14px var(--f-sans); }
.rn-stats__row .k small { display: block; font: 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3); margin-top: 4px; }
.rn-stats__row .v {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(28px, 2.4vw, 40px); letter-spacing: -.02em;
  color: var(--lime); line-height: 1;
}
.rn-stats__row .v em { font-style: italic; font-size: .55em; color: var(--bone-2); margin-left: 4px; }
.rn-stats__row .src { font: 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3); }
@media (max-width: 960px) {
  .rn-stats { grid-template-columns: 1fr; gap: 30px; }
  .rn-stats__head, .rn-stats__row { grid-template-columns: 50px 1fr 1fr; }
  .rn-stats__head span:nth-child(4), .rn-stats__row .src { display: none; }
}

/* ============ TOOLING rail ============ */
.rn-tools {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.rn-tool {
  padding: 26px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  min-height: 150px; position: relative;
  transition: background .3s;
}
.rn-tool:nth-child(4n) { border-right: 0; }
.rn-tool:nth-last-child(-n+4) { border-bottom: 0; }
.rn-tool:hover { background: rgba(212,255,58,.04); }
.rn-tool .cat { font: 10px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--bone-3); }
.rn-tool .nm { font-family: var(--f-display); font-weight: 300; font-size: 26px; letter-spacing: -.02em; color: var(--bone); }
.rn-tool .nm em { font-style: italic; color: var(--bone-2); }
.rn-tool .meta { margin-top: auto; font: 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-3); }
.rn-tool .meta .lime { color: var(--lime); }

@media (max-width: 960px) {
  .rn-tools { grid-template-columns: 1fr 1fr; }
  .rn-tool:nth-child(4n) { border-right: 1px solid var(--line); }
  .rn-tool:nth-child(2n) { border-right: 0; }
  .rn-tool:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .rn-tool:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ============ ENGAGEMENT models ============ */
.rn-eng {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.rn-eng__card {
  padding: 36px 30px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
  position: relative; min-height: 460px;
  transition: background .4s;
}
.rn-eng__card:last-child { border-right: 0; }
.rn-eng__card.is-feature { background: rgba(212,255,58,.04); }
.rn-eng__card.is-feature::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--lime);
}
.rn-eng__cat {
  display: flex; justify-content: space-between; align-items: center;
  font: 10px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--bone-3);
}
.rn-eng__cat .pop { color: var(--lime); }
.rn-eng__nm { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 3.2vw, 48px); letter-spacing: -.02em; color: var(--bone); line-height: 1; }
.rn-eng__nm em { font-style: italic; color: var(--bone-2); }
.rn-eng__price { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: 26px; color: var(--lime); margin-top: -8px; }
.rn-eng__price small { font-family: var(--f-mono); font-style: normal; font-size: 11px; letter-spacing: .14em; color: var(--bone-3); margin-left: 6px; text-transform: uppercase; }
.rn-eng__list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 0; }
.rn-eng__list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px;
  padding: 11px 0; border-top: 1px solid var(--line);
  font: 13px/1.4 var(--f-sans); color: var(--bone-2);
}
.rn-eng__list li span { color: var(--lime); }
.rn-eng__cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border: 1px solid var(--line);
  font: 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--bone); text-decoration: none; transition: background .3s, color .3s, border-color .3s;
  border-radius: 999px;
}
.rn-eng__cta:hover { background: var(--lime); color: var(--ink-0); border-color: var(--lime); }
.rn-eng__card.is-feature .rn-eng__cta { background: var(--lime); color: var(--ink-0); border-color: var(--lime); }
.rn-eng__card.is-feature .rn-eng__cta:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--bone); }

@media (max-width: 960px) {
  .rn-eng { grid-template-columns: 1fr; }
  .rn-eng__card { border-right: 0; border-bottom: 1px solid var(--line); }
  .rn-eng__card:last-child { border-bottom: 0; }
}

/* ============ FAQ ============ */
.rn-faq { border: 1px solid var(--line); background: var(--ink-0); }
.rn-faq__row { border-bottom: 1px solid var(--line); position: relative; }
.rn-faq__row:last-child { border-bottom: 0; }
.rn-faq__q {
  width: 100%; background: transparent; border: 0;
  display: grid; grid-template-columns: 60px 1fr 30px;
  align-items: center; gap: 20px;
  padding: 26px 30px; cursor: pointer;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(20px, 2vw, 30px); letter-spacing: -.01em;
  color: var(--bone); text-align: left;
  transition: color .25s;
}
.rn-faq__q:hover { color: var(--lime); }
.rn-faq__q .num { font: 11px var(--f-mono); letter-spacing: .14em; color: var(--bone-3); }
.rn-faq__q .plus {
  width: 24px; height: 24px; position: relative; justify-self: end;
}
.rn-faq__q .plus::before, .rn-faq__q .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--bone-2);
  transition: transform .35s var(--ease-out), background .35s;
}
.rn-faq__q .plus::before { width: 14px; height: 1px; transform: translate(-50%,-50%); }
.rn-faq__q .plus::after { width: 1px; height: 14px; transform: translate(-50%,-50%); }
.rn-faq__row.is-open .rn-faq__q .plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.rn-faq__row.is-open .rn-faq__q .plus::before { background: var(--lime); }
.rn-faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}
.rn-faq__a > div {
  overflow: hidden;
  padding: 0 30px 0 110px;
  font: 15px/1.6 var(--f-sans);
  color: var(--bone-2);
  max-width: 70ch;
}
.rn-faq__row.is-open .rn-faq__a { grid-template-rows: 1fr; }
.rn-faq__row.is-open .rn-faq__a > div { padding-bottom: 30px; }

/* ============ CTA ============ */
.rn-cta {
  padding: var(--sec-y) var(--gutter);
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.rn-cta__title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(56px, 9vw, 152px); line-height: .92; letter-spacing: -.04em;
  color: var(--bone); margin: 24px 0;
}
.rn-cta__title em { font-style: italic; color: var(--bone-2); }
.rn-cta__lede {
  font: 17px/1.55 var(--f-sans); color: var(--bone-2);
  max-width: 56ch; margin: 0 auto 36px; text-wrap: balance;
}
#cta-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.rn-cta > * { position: relative; z-index: 1; }

/* ============ Tweaks panel ============ */
.rn-tweaks {
  position: fixed; bottom: 22px; right: 22px; z-index: 100;
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  padding: 16px 18px; border-radius: 14px;
  display: none; flex-direction: column; gap: 12px;
  min-width: 240px;
  font-family: var(--f-mono);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.5);
}
.rn-tweaks.is-open { display: flex; }
.rn-tweaks h6 {
  margin: 0; font: 10px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-3);
}
.rn-tweaks__row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font: 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-2);
}
.rn-tweaks__swatches { display: flex; gap: 6px; }
.rn-tweaks__swatches button {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line);
  cursor: pointer; padding: 0;
}
.rn-tweaks__swatches button.active { box-shadow: 0 0 0 2px var(--bone); }
.rn-tweaks__seg { display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.rn-tweaks__seg button {
  background: transparent; border: 0; padding: 6px 10px;
  font: 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--bone-2); cursor: pointer;
}
.rn-tweaks__seg button.active { background: var(--lime); color: var(--ink-0); }
.rn-tweaks__close {
  position: absolute; top: 6px; right: 8px;
  background: transparent; border: 0; color: var(--bone-3);
  font-size: 18px; cursor: pointer; padding: 0; line-height: 1;
}

/* ============ Sound toggle (matches v2) ============ */
.rn-sound {
  position: fixed; bottom: 22px; left: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(15,15,15,0.85); backdrop-filter: blur(8px);
  border: 1px solid var(--line); color: var(--bone-2);
  font: 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
}
.rn-sound .bars { display: inline-flex; gap: 2px; align-items: end; height: 10px; }
.rn-sound .bars i { width: 2px; height: 4px; background: var(--bone-3); transition: height .25s; }
.rn-sound.is-on .bars i:nth-child(1) { height: 6px; background: var(--lime); animation: rcBar 0.6s ease infinite alternate; }
.rn-sound.is-on .bars i:nth-child(2) { height: 9px; background: var(--lime); animation: rcBar 0.5s ease infinite alternate-reverse; }
.rn-sound.is-on .bars i:nth-child(3) { height: 5px; background: var(--lime); animation: rcBar 0.7s ease infinite alternate; }
@keyframes rcBar { from { height: 2px; } to { height: 10px; } }

/* ============ Buttons (re-use v2) ============ */
.rn-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--bone); text-decoration: none;
  background: transparent;
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.rn-btn:hover { background: var(--bone); color: var(--ink-0); border-color: var(--bone); }
.rn-btn--lime { background: var(--lime); color: var(--ink-0); border-color: var(--lime); }
.rn-btn--lime:hover { background: var(--bone); color: var(--ink-0); border-color: var(--bone); transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--lime); }
.rn-btn .arr { display: inline-block; transition: transform .3s; }
.rn-btn:hover .arr { transform: translateX(4px); }

/* ============ Reduced motion ============ */
.rn-page[data-motion="off"] *,
.rn-page[data-motion="off"] *::before,
.rn-page[data-motion="off"] *::after {
  animation: none !important; transition: none !important;
}


/* ============================================================
   EDITORIAL REBUILD · v2 — hero, argument, refinements
   ============================================================ */

/* ---- HERO · single-word editorial -------------------------- */
.rn-hero--ed {
  position: relative;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(24px, 4vw, 56px);
  overflow: hidden;
}
.rn-hero--ed .rn-hero__canvas {
  position: absolute; inset: 0;
  z-index: 0;
  opacity: 0.55;
}
.rn-hero--ed .rn-hero__grain {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .25;
  mix-blend-mode: overlay;
}
.rn-hero--ed > * { position: relative; z-index: 2; }

.rn-hero__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
}
.rn-hero__top .rn-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 11px var(--f-mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--bone-3);
}
.rn-hero__top .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: rcPulseDot 1.6s ease-in-out infinite;
}
@keyframes rcPulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .55; transform: scale(.7); }
}

.rn-hero__loader {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(6px);
  font: 11px var(--f-mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--bone-3);
}
.rn-hero__loader #rn-loader-pct {
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  min-width: 3ch; text-align: right;
}
.rn-hero__loader i {
  width: 1px; height: 14px; background: var(--line);
}

/* ---- THE WORD ---- */
.rn-hero__word {
  position: relative;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(120px, 22vw, 360px);
  line-height: .82;
  letter-spacing: -0.045em;
  color: var(--bone);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 24px);
  text-align: center;
  font-variation-settings: "opsz" 144, "WONK" 0;
}
.rn-hero__word .w {
  display: inline-block;
  background: linear-gradient(180deg, var(--bone) 0%, var(--bone-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rn-hero__word .dotwrap {
  display: inline-block;
  width: clamp(28px, 4vw, 78px);
  height: clamp(28px, 4vw, 78px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.85) 0%, var(--lime) 30%, #88c019 70%, #4a6a08 100%);
  box-shadow:
    0 0 32px rgba(212,255,58,0.55),
    0 0 80px rgba(212,255,58,0.32),
    inset 0 0 18px rgba(255,255,255,0.25);
  align-self: flex-end;
  margin-bottom: clamp(18px, 2.8vw, 48px);
  animation: rcDotBreathe 4s ease-in-out infinite;
  position: relative;
  cursor: grab;
}
.rn-hero__word .dotwrap::before {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(212,255,58,0.25);
  animation: rcDotRing 3.4s ease-out infinite;
}
@keyframes rcDotBreathe {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-6px) scale(1.04); }
}
@keyframes rcDotRing {
  0%   { transform: scale(1);   opacity: .9; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---- HERO · subline ---- */
.rn-hero__sub {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  max-width: 1400px; margin: 0 auto; width: 100%;
}
.rn-hero__tagline {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--bone-2);
  max-width: 56ch;
  margin: 0;
}
.rn-hero__cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  background: var(--lime);
  color: #0a0a0a;
  font: 600 13px/1 var(--f-mono);
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .3s var(--e), box-shadow .3s var(--e);
  box-shadow: 0 10px 40px -10px rgba(212,255,58,0.5);
}
.rn-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 60px -12px rgba(212,255,58,0.7);
}
.rn-hero__cta .arr { display: inline-block; transition: transform .3s var(--e); }
.rn-hero__cta:hover .arr { transform: translateX(4px); }

/* ---- HERO · footer metrics row (re-styled) ---- */
.rn-hero--ed .rn-hero__footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.rn-hero--ed .rn-hero__metric {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 28px;
  border-right: 1px solid var(--line);
}
.rn-hero--ed .rn-hero__metric:last-child { border-right: none; }
.rn-hero--ed .rn-hero__metric:first-child { padding-left: 0; }
.rn-hero--ed .rn-hero__metric .k {
  font: 10px var(--f-mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--bone-3);
}
.rn-hero--ed .rn-hero__metric .v {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(28px, 3vw, 44px); line-height: 1;
  letter-spacing: -0.02em; color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.rn-hero--ed .rn-hero__metric .v em {
  font-style: normal;
  font-size: .42em; color: var(--bone-3); margin-left: 4px;
  letter-spacing: 0;
}

@media (max-width: 880px) {
  .rn-hero--ed .rn-hero__footer { grid-template-columns: repeat(2, 1fr); }
  .rn-hero--ed .rn-hero__metric { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .rn-hero--ed .rn-hero__metric:nth-child(2) { border-right: none; }
}

/* ============================================================
   ARGUMENT · pinned editorial reveal
   ============================================================ */
.rn-arg {
  position: relative;
  height: 280vh; /* scroll length for the pin */
}
.rn-arg__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(60px, 8vw, 120px) clamp(28px, 5vw, 72px);
  align-items: center;
}
.rn-arg__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 11px var(--f-mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--bone-3);
  align-self: start;
}
.rn-arg__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}
.rn-arg__line {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(46px, 9vw, 168px);
  line-height: .96;
  letter-spacing: -0.035em;
  color: var(--bone);
  margin: 0;
  max-width: 1500px;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.18em 0.32em;
  align-items: baseline;
}
.rn-arg__line .w {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding-bottom: 0.02em;
}
.rn-arg__line .w::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--ink-0);
  transform-origin: bottom;
  transition: transform .6s cubic-bezier(.65,.05,.36,1);
}
.rn-arg__line .w.is-on::before {
  transform: scaleY(0);
}
.rn-arg__line em {
  font-style: italic;
  color: var(--lime);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.rn-arg__rail {
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.rn-arg__rail i {
  position: absolute; left: 0; top: 0; height: 100%;
  width: 0%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}
.rn-arg__foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font: 11px var(--f-mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--bone-3);
}
.rn-arg__foot span {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.rn-arg__foot span:first-child { padding-left: 0; }
.rn-arg__foot span:last-child  { border-right: none; }

@media (max-width: 880px) {
  .rn-arg { height: 220vh; }
  .rn-arg__foot { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
  .rn-arg__foot span { padding: 6px 0; border-right: none; border-bottom: 1px solid var(--line); }
}
