/* ──────────────────────────────────────────────────────────────
   Ranbval Discovery — CINEMATIC landing styles
   "Midnight cinema": deep cool base, warm gold + neon accents,
   letterboxed like a film, alive with motion — action, romance,
   tension, and triumph in every section.
   ────────────────────────────────────────────────────────────── */

:root {
  --bg: #04050a;
  --bg-2: #080a14;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-line: rgba(255, 255, 255, 0.08);
  --text: #eef1fb;
  --text-dim: #9aa3bd;
  --gold: #f5c451;
  --blue: #6aa6ff;
  --violet: #a78bfa;
  --pink: #f472b6;
  --green: #34d399;
  --cyan: #22d3ee;
  --red: #ff5d73;
  --max: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

@media (pointer: fine) { body { cursor: none; } }

/* ════════════════════════════════════════════════
   CINEMATIC TITLE-CARD INTRO
   ════════════════════════════════════════════════ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity 0.9s ease, visibility 0.9s;
}
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__inner { text-align: center; padding: 24px; }
.intro__pre {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: introPre 1s ease forwards 0.25s;
}
.intro__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 5.5rem);
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 18px 0 14px;
  background: linear-gradient(120deg, #fff, var(--blue) 55%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(106, 166, 255, 0.55));
}
.intro__sub {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: introPre 1s ease forwards 1.1s;
}
@keyframes introPre { to { opacity: 1; } }
.intro__sweep {
  position: absolute;
  top: 0; bottom: 0;
  width: 60%;
  left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: introSweep 1.6s ease-in-out 0.6s;
}
@keyframes introSweep { to { left: 120%; } }
.intro__skip {
  position: absolute;
  bottom: 32px; right: 32px;
  background: none;
  border: 1px solid var(--panel-line);
  color: var(--text-dim);
  font-family: var(--font-body);
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: color 0.2s, border-color 0.2s;
}
.intro__skip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }

/* ════════════════════════════════════════════════
   SPOTLIGHT CURSOR
   ════════════════════════════════════════════════ */
.cursor, .cursor-dot { position: fixed; z-index: 999; pointer-events: none; border-radius: 50%; left: 0; top: 0; }
.cursor {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(167, 139, 250, 0.7);
  margin: -19px 0 0 -19px;
  transition: width 0.25s, height 0.25s, margin 0.25s, background 0.25s, border-color 0.25s;
  backdrop-filter: invert(4%);
}
.cursor.hot {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(245, 196, 81, 0.9);
}
.cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}
@media (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ── Cinematic letterbox bars ── */
.letterbox {
  position: fixed; left: 0; right: 0; height: 0;
  background: #000; z-index: 90; pointer-events: none;
  transition: height 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.letterbox--top { top: 0; }
.letterbox--bottom { bottom: 0; }
body.cinema .letterbox { height: clamp(12px, 3vh, 36px); }

/* ── Ambient background ── */
.bg-aurora, .bg-grid, .bg-orb, .bg-grain { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.bg-aurora {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(106, 166, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 60% at 90% 8%, rgba(167, 139, 250, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 50% at 8% 70%, rgba(244, 114, 182, 0.14), transparent 50%),
    radial-gradient(ellipse 90% 60% at 75% 100%, rgba(52, 211, 153, 0.1), transparent 50%);
  animation: aurora 24s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: scale(1) translate(0, 0); opacity: 1; }
  50% { transform: scale(1.08) translate(-2%, 1%); opacity: 0.85; }
  100% { transform: scale(1.04) translate(2%, -1%); opacity: 0.95; }
}
.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 10%, transparent 72%);
  animation: drift 34s linear infinite;
}
@keyframes drift { to { background-position: 64px 64px; } }
.bg-orb { border-radius: 50%; filter: blur(110px); opacity: 0.5; will-change: transform; }
.bg-orb--1 { width: 560px; height: 560px; top: -160px; right: -180px; background: radial-gradient(circle, rgba(106,166,255,0.4), transparent 70%); animation: float 18s ease-in-out infinite; }
.bg-orb--2 { width: 460px; height: 460px; bottom: 8%; left: -160px; background: radial-gradient(circle, rgba(167,139,250,0.32), transparent 70%); animation: float 24s ease-in-out infinite reverse; }
.bg-orb--3 { width: 340px; height: 340px; top: 52%; right: 4%; background: radial-gradient(circle, rgba(244,114,182,0.26), transparent 70%); animation: float 20s ease-in-out infinite 3s; }
@keyframes float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-46px) scale(1.08); } }
.bg-grain {
  z-index: -1; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(3) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 33% { transform: translate(-2%,1%); } 66% { transform: translate(2%,-1%); } }

/* ── Scroll progress ── */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 95; }
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink), var(--gold));
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.7);
}

/* ── Shared ── */
.grad {
  background: linear-gradient(120deg, var(--blue) 0%, var(--violet) 45%, var(--pink) 75%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% auto; animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.kicker, .section-eyebrow {
  display: inline-block; font-family: var(--font-body); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim);
  padding: 6px 14px; border: 1px solid var(--panel-line); border-radius: 100px;
  background: var(--panel); margin-bottom: 22px;
}
.section-title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 5vw, 3.1rem);
  letter-spacing: -0.03em; line-height: 1.08; max-width: 18ch;
}
.section-lead { color: var(--text-dim); max-width: 56ch; margin-top: 16px; font-size: 1.05rem; }

/* ── Buttons + magnetic ── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn span { transition: transform 0.25s; }
.btn:hover span { transform: translateX(4px); }
.btn--primary {
  color: #08101f;
  background: linear-gradient(120deg, #fff, var(--blue) 70%, var(--violet));
  box-shadow: 0 8px 30px rgba(106, 166, 255, 0.35);
}
.btn--primary:hover { box-shadow: 0 14px 50px rgba(167, 139, 250, 0.6); }
.btn--ghost { color: var(--text); border-color: var(--panel-line); background: var(--panel); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.07); }
/* click ripple */
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,0.5); animation: ripple 0.6s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 80; display: flex; align-items: center; gap: 22px;
  padding: 16px var(--pad); max-width: var(--max); margin: 0 auto;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(4, 5, 10, 0.7); backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%); border-bottom-color: var(--panel-line);
}
.nav__brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.nav__logo { color: var(--gold); font-size: 1.3rem; filter: drop-shadow(0 0 10px rgba(245,196,81,0.6)); animation: spin 9s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav__word-accent { margin-left: 6px; background: linear-gradient(120deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav__links { display: flex; gap: 24px; }
.nav__links a { font-size: 0.88rem; color: var(--text-dim); position: relative; transition: color 0.2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1.5px; background: linear-gradient(90deg, var(--blue), var(--pink)); transition: right 0.3s; }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { right: 0; }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ── Hero ── */
.hero { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(60px,13vh,130px) var(--pad) clamp(50px,8vh,90px); min-height: 88vh; display: flex; flex-direction: column; justify-content: center; }
.hero__inner { will-change: transform; }
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1.02; letter-spacing: -0.04em; margin: 8px 0 22px; }
.rotator { display: inline-block; min-width: 4ch; color: var(--gold); text-shadow: 0 0 28px rgba(245,196,81,0.45); position: relative; transition: opacity .25s, transform .25s; }
.rotator::after { content: ""; position: absolute; right: -8px; top: 8%; width: 3px; height: 84%; background: var(--gold); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero__lead { max-width: 62ch; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-dim); }
.hero__lead strong { color: var(--text); }
.hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 60px; border-top: 1px solid var(--panel-line); padding-top: 30px; }
@media (max-width: 700px) { .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 26px; } }
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1; letter-spacing: -0.03em; }
.stat__label { font-size: 0.82rem; color: var(--text-dim); margin-top: 8px; }
.hero__scroll { position: absolute; bottom: 24px; left: var(--pad); display: flex; align-items: center; gap: 12px; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.hero__scroll span { width: 26px; height: 40px; border: 1.5px solid var(--panel-line); border-radius: 14px; position: relative; }
.hero__scroll span::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; border-radius: 3px; background: var(--text-dim); transform: translateX(-50%); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 50% { transform: translate(-50%, 12px); opacity: 0.3; } }

/* ── Kinetic marquee ── */
.marquee { overflow: hidden; border-top: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line); background: linear-gradient(90deg, rgba(106,166,255,0.05), rgba(167,139,250,0.05)); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 0; white-space: nowrap; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 2.4vw, 1.7rem); letter-spacing: -0.01em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.35); padding: 0 28px; transition: color 0.3s, -webkit-text-stroke 0.3s; }
.marquee__item:hover { color: var(--gold); -webkit-text-stroke: 1px transparent; }
.marquee__dot { color: var(--violet); align-self: center; }

/* ── Sections base ── */
section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 11vw, 120px) var(--pad); }

/* ── Acts ── */
.acts__list { display: grid; gap: 26px; margin-top: 36px; }
.act { position: relative; padding: clamp(28px, 5vw, 52px); border-radius: 22px; border: 1px solid var(--panel-line); background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)); overflow: hidden; }
.act::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 0% 0%, var(--act-accent), transparent 45%); opacity: 0.14; }
.act::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--act-accent); box-shadow: 0 0 24px var(--act-accent); animation: heartbeat 2.4s ease-in-out infinite; }
@keyframes heartbeat { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.act__tag { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.act__num { font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.2em; color: var(--act-accent); }
.act__mood { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.act__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3.5vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 14px; max-width: 22ch; }
.act__body { color: var(--text-dim); max-width: 70ch; font-size: 1.05rem; position: relative; }

/* ── Flow ── */
.flow__rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 900px) { .flow__rail { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .flow__rail { grid-template-columns: 1fr; } }
.flow__step { padding: 26px 22px; border-radius: 18px; border: 1px solid var(--panel-line); background: var(--panel); transition: transform 0.3s, border-color 0.3s, background 0.3s; }
.flow__step:hover { transform: translateY(-6px); border-color: rgba(106,166,255,0.5); background: rgba(106,166,255,0.06); }
.flow__num { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; background: linear-gradient(120deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.flow__step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin: 12px 0 8px; }
.flow__step p { color: var(--text-dim); font-size: 0.95rem; }

/* ── Engines / features ── */
.engines__controls { display: flex; align-items: center; gap: 16px; margin: 30px 0 26px; flex-wrap: wrap; }
.engines__search { flex: 1; min-width: 240px; padding: 15px 20px; border-radius: 14px; border: 1px solid var(--panel-line); background: var(--panel); color: var(--text); font-family: var(--font-body); font-size: 1rem; transition: border-color 0.25s, box-shadow 0.25s; }
.engines__search::placeholder { color: var(--text-dim); }
.engines__search:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(167,139,250,0.18); }
.engines__count { font-size: 0.85rem; color: var(--text-dim); white-space: nowrap; }
.engines__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; perspective: 1400px; }
.engine {
  --c: var(--blue);
  position: relative; border-radius: 20px; border: 1px solid var(--panel-line);
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  padding: 24px; transform-style: preserve-3d;
  transition: transform 0.18s ease, border-color 0.3s, box-shadow 0.3s;
}
.engine::before { /* glow that follows cursor */
  content: ""; position: absolute; inset: 0; border-radius: 20px; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 22%, transparent), transparent 60%);
  transition: opacity 0.3s; pointer-events: none;
}
.engine:hover::before { opacity: 1; }
.engine:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--c) 75%, transparent); }
.engine__head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.engine__icon { width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.5rem; border-radius: 14px; background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); transition: transform 0.3s; }
.engine:hover .engine__icon { transform: translateZ(40px) scale(1.08); }
.engine__name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em; }
.engine__n { font-size: 0.74rem; color: var(--c); font-weight: 600; }
.engine__tag { color: var(--text-dim); font-size: 0.92rem; margin: 6px 0 16px; }
.engine__features { list-style: none; display: flex; flex-direction: column; gap: 3px; max-height: 132px; overflow: hidden; position: relative; transition: max-height 0.5s ease; }
.engine__features.open { max-height: 1400px; }
.engine__features::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(transparent, var(--bg-2)); pointer-events: none; transition: opacity 0.3s; }
.engine__features.open::after { opacity: 0; }
.engine__features li { font-size: 0.9rem; color: var(--text); padding: 4px 0 4px 22px; position: relative; }
.engine__features li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 80%, transparent); }
.engine__features li mark { background: color-mix(in srgb, var(--gold) 35%, transparent); color: var(--text); border-radius: 3px; padding: 0 2px; }

/* ── HEAVY "SHOW ALL" REVEAL — 3D flip cascade + light sweep ── */
.engine__features.exploding { overflow: visible; }
.engine__features.exploding li.fx {
  transform-origin: left center;
  animation: featureFlip 0.62s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
@keyframes featureFlip {
  0%   { opacity: 0; transform: perspective(700px) rotateX(-92deg) translateX(-24px) translateZ(-40px); filter: blur(6px); }
  55%  { opacity: 1; filter: blur(0); }
  72%  { transform: perspective(700px) rotateX(8deg) translateX(0) translateZ(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
.engine__features.exploding li.fx::before {
  animation: dotPop 0.62s ease backwards;
  animation-delay: inherit;
}
@keyframes dotPop { 0% { transform: scale(0); } 60% { transform: scale(1.9); } 100% { transform: scale(1); } }
.engine.swept::after {
  content: ""; position: absolute; inset: 0; border-radius: 20px; pointer-events: none; z-index: 3;
  background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--c) 55%, #fff) 50%, transparent 65%);
  mix-blend-mode: screen;
  animation: cardSweep 0.7s ease-out;
}
@keyframes cardSweep { from { opacity: 0.9; transform: translateX(-60%); } to { opacity: 0; transform: translateX(60%); } }

.engine__toggle { margin-top: 14px; background: none; border: none; color: var(--c); font-family: var(--font-body); font-weight: 600; font-size: 0.86rem; cursor: pointer; padding: 0; }
.engine__toggle:hover { text-decoration: underline; }
.engines__empty { grid-column: 1 / -1; text-align: center; color: var(--text-dim); padding: 50px; }

/* ── Positioning ── */
.position__table { margin-top: 36px; border: 1px solid var(--panel-line); border-radius: 18px; overflow: hidden; }
.position__row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--panel-line); transition: background 0.25s; }
.position__row:last-child { border-bottom: none; }
.position__row:hover { background: rgba(255,255,255,0.03); }
.position__row--us { background: linear-gradient(120deg, rgba(106,166,255,0.12), rgba(244,114,182,0.1)); }
.position__row--us:hover { background: linear-gradient(120deg, rgba(106,166,255,0.18), rgba(244,114,182,0.14)); }
.position__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.position__row--us .position__name { color: var(--gold); }
.position__role { color: var(--text-dim); font-size: 0.95rem; }
.position__row--us .position__role { color: var(--text); }
.position__mark { font-size: 1.2rem; }
.position__note { margin-top: 22px; color: var(--text-dim); max-width: 70ch; font-size: 1.05rem; }
.position__note strong { color: var(--text); }
@media (max-width: 600px) { .position__row { grid-template-columns: 1fr auto; } .position__role { display: none; } }

/* ── Founder ── */
.founder__card { margin-top: 30px; display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 48px); align-items: center; padding: clamp(28px, 5vw, 48px); border-radius: 24px; border: 1px solid var(--panel-line); background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)); }
@media (max-width: 680px) { .founder__card { grid-template-columns: 1fr; text-align: center; } }
.founder__photo-wrap { position: relative; width: 168px; height: 168px; }
@media (max-width: 680px) { .founder__photo-wrap { margin: 0 auto; } }
.founder__photo-wrap::before { content: ""; position: absolute; inset: -4px; border-radius: 26px; background: conic-gradient(from 0deg, var(--blue), var(--violet), var(--pink), var(--gold), var(--blue)); animation: spin 6s linear infinite; filter: blur(2px); }
.founder__photo { position: relative; width: 168px; height: 168px; border-radius: 22px; object-fit: cover; border: 2px solid rgba(0,0,0,0.4); }
.founder__role { color: var(--blue); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.founder__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.03em; margin: 6px 0 16px; }
.founder__quote { font-size: 1.15rem; color: var(--text); line-height: 1.6; font-style: italic; max-width: 60ch; }
.founder__links { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
@media (max-width: 680px) { .founder__links { justify-content: center; } }
.founder__link { font-size: 0.9rem; padding: 9px 16px; border-radius: 100px; border: 1px solid var(--panel-line); background: var(--panel); transition: border-color 0.25s, transform 0.25s; }
.founder__link:hover { border-color: var(--blue); transform: translateY(-2px); }

/* ── CTA ── */
.cta { text-align: center; }
.cta__inner { border: 1px solid var(--panel-line); border-radius: 28px; padding: clamp(40px,8vw,80px) var(--pad); background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(167,139,250,0.18), transparent 60%), linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)); position: relative; overflow: hidden; }
.cta__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -0.03em; }
.cta__lead { color: var(--text-dim); max-width: 56ch; margin: 18px auto 0; font-size: 1.08rem; }
.cta__form { display: flex; gap: 12px; justify-content: center; margin: 32px auto 0; max-width: 480px; flex-wrap: wrap; }
.cta__form input { flex: 1; min-width: 220px; padding: 14px 20px; border-radius: 100px; border: 1px solid var(--panel-line); background: rgba(0,0,0,0.3); color: var(--text); font-family: var(--font-body); font-size: 1rem; }
.cta__form input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(167,139,250,0.18); }
.cta__micro { margin-top: 16px; font-size: 0.85rem; color: var(--text-dim); }
.cta__micro.success { color: var(--green); font-weight: 600; }

/* ── Footer ── */
.footer { max-width: var(--max); margin: 0 auto; padding: 40px var(--pad) 70px; border-top: 1px solid var(--panel-line); text-align: center; }
.footer__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--gold); }
.footer__tag { color: var(--text-dim); margin: 6px 0; }
.footer__copy { color: var(--text-dim); font-size: 0.85rem; opacity: 0.7; }

/* ── Reveal animation (directional) ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }

/* screen-flash for action accents */
.flash { position: fixed; inset: 0; z-index: 120; pointer-events: none; background: radial-gradient(circle at center, rgba(255,255,255,0.18), transparent 60%); opacity: 0; }
.flash.go { animation: flash 0.4s ease-out; }
@keyframes flash { 0% { opacity: 0.9; } 100% { opacity: 0; } }

/* ════════════════════════════════════════════════
   CINEMATIC ENGINE THEATER (modal)
   ════════════════════════════════════════════════ */
.theater {
  position: fixed; inset: 0; z-index: 180;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.theater.open { opacity: 1; visibility: visible; }
.theater__backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--c, #6aa6ff) 22%, #04050a) 0%, #04050a 70%);
  backdrop-filter: blur(8px);
}
.theater__bar { position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 4; transition: height 0.6s cubic-bezier(0.16,1,0.3,1) 0.1s; }
.theater__bar--top { top: 0; }
.theater__bar--bottom { bottom: 0; }
.theater.open .theater__bar { height: clamp(18px, 5vh, 60px); }
.theater__close {
  position: absolute; top: 18px; right: 22px; z-index: 6;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--panel-line);
  color: var(--text); font-size: 1.1rem; cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.theater__close:hover { transform: rotate(90deg) scale(1.1); background: rgba(255,93,115,0.2); border-color: var(--red); }

.theater__panel {
  position: relative; z-index: 5;
  width: min(960px, 92vw); max-height: 86vh; overflow-y: auto;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 26px;
  border: 1px solid color-mix(in srgb, var(--c, #6aa6ff) 35%, transparent);
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
  box-shadow: 0 40px 120px -30px color-mix(in srgb, var(--c, #6aa6ff) 70%, transparent);
  transform: scale(0.92) translateY(18px); opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1) 0.12s, opacity 0.5s ease 0.12s;
  scrollbar-width: thin;
}
.theater.open .theater__panel { transform: none; opacity: 1; }

.theater__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.theater__icon { width: 58px; height: 58px; flex-shrink: 0; display: grid; place-items: center; font-size: 1.9rem; border-radius: 16px; background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.theater__kicker { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--c); font-weight: 600; }
.theater__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.05; }
.theater__tag { color: var(--text-dim); margin-top: 4px; font-size: 0.95rem; }

/* ── The stage where each capability "performs" ── */
.theater__stage {
  position: relative; overflow: hidden;
  border-radius: 18px;
  min-height: clamp(170px, 30vh, 260px);
  display: grid; place-items: center; text-align: center;
  padding: 28px;
  background:
    radial-gradient(ellipse 90% 120% at 50% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  border: 1px solid var(--panel-line);
}
.theater__stage::before { /* moving spotlight cone */
  content: ""; position: absolute; top: -40%; left: 50%; width: 60%; height: 180%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%);
  transform: translateX(-50%) rotate(0deg); filter: blur(30px); opacity: 0.5;
  animation: spotSwing 5s ease-in-out infinite alternate;
}
@keyframes spotSwing { 0% { transform: translateX(-50%) rotate(-12deg); } 100% { transform: translateX(-50%) rotate(12deg); } }
.theater__scanline { position: absolute; left: 0; right: 0; height: 2px; top: 0; background: color-mix(in srgb, var(--c) 80%, #fff); box-shadow: 0 0 16px var(--c); opacity: 0.45; animation: scan 3.2s linear infinite; }
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }
.theater__scene-no { position: absolute; top: 14px; left: 18px; font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.2em; color: color-mix(in srgb, var(--c) 80%, #fff); opacity: 0.7; z-index: 2; }
.theater__scene { position: relative; z-index: 2; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 5vw, 3rem); letter-spacing: -0.02em; line-height: 1.1; max-width: 18ch; }
.theater__scene .w { display: inline-block; opacity: 0; transform: translateY(18px); }
.theater__scene.play .w { animation: wordIn 0.5s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes wordIn { from { opacity: 0; transform: translateY(22px) rotateX(-40deg); } to { opacity: 1; transform: none; } }

/* per-scene entrance flavors applied to .theater__scene */
.theater__scene.fx-zoom  { animation: scZoom 0.6s cubic-bezier(0.16,1,0.3,1); }
.theater__scene.fx-slide { animation: scSlide 0.6s cubic-bezier(0.16,1,0.3,1); }
.theater__scene.fx-flip  { animation: scFlip 0.7s cubic-bezier(0.16,1,0.3,1); }
.theater__scene.fx-glitch{ animation: scGlitch 0.5s steps(2) ; }
.theater__scene.fx-rise  { animation: scRise 0.7s cubic-bezier(0.16,1,0.3,1); }
.theater__scene.fx-swing { animation: scSwing 0.7s cubic-bezier(0.16,1,0.3,1); }
@keyframes scZoom { from { transform: scale(0.2); filter: blur(10px); opacity: 0; } to { transform: none; filter: none; opacity: 1; } }
@keyframes scSlide { from { transform: translateX(80px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes scFlip { from { transform: perspective(800px) rotateY(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes scGlitch { 0% { transform: translate(-6px,2px); opacity: 0.2; } 25% { transform: translate(5px,-3px); } 50% { transform: translate(-3px,2px); } 100% { transform: none; opacity: 1; } }
@keyframes scRise { from { transform: translateY(60px); letter-spacing: 0.4em; opacity: 0; } to { transform: none; letter-spacing: -0.02em; opacity: 1; } }
@keyframes scSwing { from { transform: rotate(-8deg) translateY(-30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Timeline ── */
.theater__timeline { display: flex; gap: 5px; margin: 18px 0 14px; flex-wrap: wrap; }
.theater__tick { flex: 1 1 14px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.12); cursor: pointer; overflow: hidden; position: relative; transition: background 0.2s; min-width: 8px; }
.theater__tick:hover { background: rgba(255,255,255,0.3); }
.theater__tick.done { background: color-mix(in srgb, var(--c) 55%, transparent); }
.theater__tick.active { background: rgba(255,255,255,0.12); }
.theater__tick.active::after { content: ""; position: absolute; inset: 0; background: var(--c); box-shadow: 0 0 12px var(--c); transform-origin: left; animation: tickFill var(--dur, 2200ms) linear forwards; }
@keyframes tickFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.theater__tick.paused::after { animation-play-state: paused; }

/* ── Controls ── */
.theater__controls { display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap; }
.theater__ctrl { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; border: 1px solid var(--panel-line); background: var(--panel); color: var(--text); font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.theater__ctrl:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.theater__ctrl--play { width: 50px; height: 50px; justify-content: center; padding: 0; font-size: 1.2rem; }

/* ── Grid finale ── */
.theater__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 24px; max-height: 0; overflow: hidden; transition: max-height 0.6s ease, margin 0.4s; }
.theater__grid.show { max-height: 1600px; margin-top: 24px; }
.theater__chip { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--panel-line); background: rgba(255,255,255,0.03); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(14px) scale(0.96); }
.theater__grid.show .theater__chip { animation: chipIn 0.5s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes chipIn { to { opacity: 1; transform: none; } }
.theater__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

/* ════════════════════════════════════════════════
   MOBILE / RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .hero { min-height: 78vh; padding-top: clamp(40px, 9vh, 90px); }
  .hero__title { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .hero__cta .btn { flex: 1; justify-content: center; }
  .hero__scroll { display: none; }
  .marquee__item { font-size: clamp(1rem, 5vw, 1.4rem); padding: 0 18px; }
  .section-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .founder__photo-wrap, .founder__photo { width: 132px; height: 132px; }
}

@media (max-width: 560px) {
  .nav { gap: 10px; padding: 12px var(--pad); }
  .nav__brand { font-size: 1rem; }
  .nav__cta { padding: 9px 13px; font-size: 0.82rem; }
  .cta__form { flex-direction: column; }
  .cta__form input, .cta__form .btn { width: 100%; }
}

/* very small / squeezed nav — keep the CTA label short */
@media (max-width: 420px) {
  .nav__word-accent { display: none; }   /* show just "Ranbval" */
  .nav__cta { font-size: 0; padding: 11px; }
  .nav__cta::before { content: "Access"; font-size: 0.82rem; }
  .nav__cta span { display: none; }
}

/* Theater on phones */
@media (max-width: 640px) {
  .theater__panel { width: 94vw; max-height: 92vh; padding: 20px 16px; border-radius: 20px; }
  .theater__head { gap: 12px; }
  .theater__icon { width: 46px; height: 46px; font-size: 1.5rem; }
  .theater__stage { min-height: 150px; padding: 20px 16px; }
  .theater__scene { font-size: clamp(1.2rem, 7vw, 2rem); }
  .theater__controls { gap: 8px; }
  .theater__ctrl { padding: 9px 12px; font-size: 0.82rem; }
  .theater__ctrl--play { width: 46px; height: 46px; }
  .theater__close { top: 10px; right: 12px; width: 40px; height: 40px; }
  .theater__bar { display: none; }   /* drop letterbox bars on small screens for space */
}

/* Touch devices: native cursor, no custom spotlight */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
}
.theater__chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex-shrink: 0; }
.theater__chip.lit { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .intro { display: none; }
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
  .theater__scene .w { opacity: 1; transform: none; }
  .theater__chip { opacity: 1; transform: none; }
}
