/* ============================================================
   KIDSCORP ROBLOX — page additions (on top of styles.css)
   ============================================================ */

/* ---------- Hero ---------- */
.hero.rbx-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 190px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.rbx-stage { position: absolute; inset: 0; z-index: 1; }
.rbx-stage { transition: opacity 400ms ease; }
.rbx-stage.is-swap { opacity: 0; }
.rbx-stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }
.rbx-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(18,18,18,0.85) 0%, rgba(18,18,18,0.5) 26%, rgba(18,18,18,0) 50%);
}
.rbx-hero .container { width: 100%; z-index: 3; pointer-events: none; }
.rbx-hero .hero-content { max-width: 600px; }
.rbx-hero .hero-content a, .rbx-hero .hero-content button { pointer-events: auto; }
.rbx-hero h1 { font-size: clamp(38px, 4.3vw, 68px); line-height: 0.95; letter-spacing: -0.035em; margin: 0 0 28px; text-wrap: balance; }
.rbx-hero .lead { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.5; max-width: 480px; color: rgba(245,242,250,0.85); }
.rbx-hero.no-webgl .rbx-stage { display: none; }
.rbx-hero.no-webgl .rbx-scrim { background: none; }
@media (max-width: 1100px) {
  .rbx-hero h1 { font-size: clamp(44px, 13vw, 72px); }
  .rbx-scrim { background: linear-gradient(180deg, rgba(18,18,18,0.85) 0%, rgba(18,18,18,0.55) 45%, rgba(18,18,18,0) 75%); }
  .rbx-hero { align-items: flex-start; padding-top: 130px; }
  .rbx-hero .hero-content { margin: 0 auto; text-align: center; }
  .rbx-hero .lead { max-width: 46ch; }
}

/* ---------- 3D tilt cards ---------- */
.tilt-wrap { perspective: 1100px; }
.tilt {
  position: relative; transform-style: preserve-3d;
  transition: transform 260ms cubic-bezier(0.2,0.8,0.2,1), box-shadow 300ms;
  will-change: transform;
}
.tilt.is-tilting { transition: transform 60ms linear, box-shadow 300ms; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.22), transparent 45%);
  transition: opacity 250ms;
}
.tilt.is-tilting::after { opacity: 1; }
.tilt .t-pop { transform: translateZ(34px); }

.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  background: #fff; border: 1px solid #8B8B8B; border-radius: var(--r-card-lg);
  padding: 32px 28px 28px; display: flex; flex-direction: column; min-height: 340px; overflow: hidden;
}
.svc-card:hover { box-shadow: 0 24px 56px -16px rgba(179,58,240,0.28); border-color: rgba(179,58,240,0.4); }
.svc-card .svc-num { font-family: var(--kc-font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--kc-base-400); margin-bottom: 18px; }
.svc-card h3 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.svc-card p { font-size: 15px; line-height: 1.6; color: var(--kc-base-500); margin: 0 0 20px; }
.svc-card ul { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-card li {
  font-family: var(--kc-font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--r-pill); background: var(--card-2); color: var(--kc-violet-700);
}

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px;
  background: linear-gradient(90deg, var(--kc-fuchsia-500), var(--kc-cyan-300)); opacity: 0.45;
}
.step { position: relative; padding-top: 0; }
.step-cube {
  width: 68px; height: 68px; margin-bottom: 24px; position: relative; transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(32deg); transition: transform 600ms cubic-bezier(0.2,0.8,0.2,1);
}
.step:hover .step-cube { transform: rotateX(-24deg) rotateY(212deg); }
.step-cube i {
  position: absolute; inset: 0; border: 1px solid rgba(255,255,255,0.28); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-style: normal;
  background: linear-gradient(135deg, rgba(179,58,240,0.85), rgba(104,12,175,0.9));
}
.step-cube i .material-symbols-rounded { color: #fff; font-size: 28px; }
.step-cube i:nth-child(1) { transform: translateZ(34px); }
.step-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(34px); background: linear-gradient(135deg, #8812E3, #4A057D); }
.step-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(34px); background: linear-gradient(135deg, #9F44FB, #4A057D); }
.step-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(34px); background: linear-gradient(135deg, #9F44FB, #4A057D); }
.step-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(34px); background: #C098FD; }
.step-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(34px); background: #2F0544; }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step .mono { font-size: 11px; letter-spacing: 0.2em; color: var(--kc-cyan-300); margin-bottom: 8px; display: block; }
.step p { font-size: 15px; line-height: 1.6; color: var(--fg-dim); margin: 0; }
@media (max-width: 880px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Showcase (placeholders) ---------- */
.showcase { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.exp { grid-column: span 4; border-radius: var(--r-card-lg); background: #fff; border: 1px solid #8B8B8B; overflow: hidden; display: flex; flex-direction: column; }
.exp-feature { grid-column: span 8; grid-row: span 2; }
.exp:hover { box-shadow: 0 24px 56px -16px rgba(179,58,240,0.28); border-color: rgba(179,58,240,0.4); }
.exp-media { position: relative; aspect-ratio: 16/10; background: var(--kc-base-900); }
.exp-feature .exp-media { aspect-ratio: 16/9; }
.exp-media img, .exp-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: rgba(245,242,250,0.75); text-align: center; padding: 16px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 14px, transparent 14px 28px),
    radial-gradient(ellipse 80% 80% at 30% 20%, rgba(179,58,240,0.45), transparent 60%),
    radial-gradient(ellipse 70% 70% at 90% 100%, rgba(76,203,255,0.25), transparent 60%),
    #1b1024;
}
.media-ph .material-symbols-rounded { font-size: 44px; color: var(--kc-fuchsia-100); }
.exp-feature .media-ph .material-symbols-rounded { font-size: 72px; }
.media-ph code { font-family: var(--kc-font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: rgba(245,242,250,0.5); }
.media-ph b { font-family: var(--kc-font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.exp-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.exp-tag { font-family: var(--kc-font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #9414FA; }
.exp-body h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.exp-feature .exp-body h3 { font-size: 26px; }
.exp-body p { margin: 0; font-size: 14px; color: var(--kc-base-500); line-height: 1.55; }
.exp-metrics { display: flex; gap: 22px; margin-top: 10px; }
.exp-metrics div { display: flex; flex-direction: column; }
.exp-metrics b { font-size: 22px; font-weight: 800; color: #9414FA; letter-spacing: -0.02em; }
.exp-metrics span { font-size: 12px; color: var(--kc-base-500); }
@media (max-width: 980px) {
  .exp, .exp-feature { grid-column: span 12; grid-row: auto; }
  .exp:not(.exp-feature) { grid-column: span 6; }
}
@media (max-width: 620px) { .exp:not(.exp-feature) { grid-column: span 12; } }

.rbx-cta { text-align: center; }
.rbx-cta .lead { margin-left: auto; margin-right: auto; }
.rbx-cta .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .tilt, .step-cube { transition: none; }
}

/* ============================================================
   PROCESS · interactive cubes (hover = cube takes the stage)
   ============================================================ */
.steps { padding-bottom: 0; }
.step { cursor: pointer; outline: none; transition: opacity 800ms cubic-bezier(0.2,0.8,0.2,1), transform 800ms cubic-bezier(0.2,0.8,0.2,1), filter 400ms; z-index: 1; }
.step-cube { position: relative; z-index: 7; transition: transform 700ms cubic-bezier(0.2,0.8,0.2,1), filter 500ms; transform-origin: 50% 50%; }
.step:hover, .step:focus-visible, .step.is-open { z-index: 6; }
.step:hover .step-cube, .step:focus-visible .step-cube, .step.is-open .step-cube {
  transform: translate3d(var(--cx, 0px), -12px, 0) rotateX(-24deg) rotateY(392deg) scale(1.5);
}
/* glow lives on a flat sibling layer: filter/opacity on the cube itself would flatten its 3D faces */
.step::before {
  content: ""; position: absolute; left: 0; top: 0; width: 68px; height: 68px; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 46px 14px rgba(179,58,240,0.6); opacity: 0; z-index: 0;
  transition: opacity 500ms, transform 700ms cubic-bezier(0.2,0.8,0.2,1);
}
.step:hover::before, .step:focus-visible::before, .step.is-open::before { opacity: 1; transform: translate3d(var(--cx, 0px), -12px, 0) scale(1.35); }
.steps:has(.step:hover) .step:not(:hover),
.steps:has(.step.is-open) .step:not(.is-open) { opacity: 0.32; filter: blur(1.5px) saturate(0.7); }
.process { overflow: visible; z-index: 4; padding-bottom: 56px; }
.process .bg-clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.steps { padding-bottom: 70px; }
/* the cube drifts toward the centre of the row while it grows */
.step:nth-child(1) { --cx: 38px; } .step:nth-child(2) { --cx: 14px; }
.step:nth-child(3) { --cx: -14px; } .step:nth-child(4) { --cx: -38px; }

/* hover card: opens right under the cube's centre, layered behind the cube */
.step-peek {
  --ox: 10%; --pw: min(500px, 120vw); margin: 0;
  position: absolute; z-index: 5; top: 48px; left: -12px; width: var(--pw);
  pointer-events: none;
}
.step:nth-child(2) .step-peek, .step:nth-child(3) .step-peek { left: 50%; margin-left: calc(var(--pw) / -2); --ox: 50%; }
.step:nth-child(4) .step-peek { left: auto; right: -12px; --ox: 90%; }
.peek-card {
  display: grid; grid-template-columns: 0.82fr 1.18fr; min-height: 190px;
  border-radius: 20px; overflow: hidden; background: #1b1024;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 36px 80px -18px rgba(0,0,0,0.75), 0 0 0 1px rgba(179,58,240,0.25), 0 0 60px -10px rgba(179,58,240,0.45);
  clip-path: inset(0 100% 100% 0 round 20px);
  opacity: 0; transform: perspective(900px) translateY(-10px) rotateX(-12deg) scale(0.92); transform-origin: var(--ox) 0;
  transition: clip-path 750ms cubic-bezier(0.2,0.8,0.2,1), opacity 300ms, transform 750ms cubic-bezier(0.2,0.8,0.2,1);
}
.step:nth-child(4) .peek-card { clip-path: inset(0 0 100% 100% round 20px); }
.step:hover .step-peek, .step:focus-visible .step-peek, .step.is-open .step-peek { pointer-events: auto; }
.step:hover .peek-card, .step:focus-visible .peek-card, .step.is-open .peek-card {
  clip-path: inset(0 0 0 0 round 20px); opacity: 1; transform: perspective(900px) translateY(0) rotateX(0) scale(1);
}
.peek-media { position: relative; overflow: hidden; min-height: 190px; }
.peek-media > * { transform: scale(1.35); filter: blur(10px); transition: transform 1100ms cubic-bezier(0.2,0.8,0.2,1) 80ms, filter 800ms 80ms; }
.step:hover .peek-media > *, .step:focus-visible .peek-media > *, .step.is-open .peek-media > * { transform: scale(1); filter: blur(0); }
.peek-media img { width: 100%; height: 100%; object-fit: cover; }
.peek-media .media-ph { gap: 6px; padding: 10px; }
.peek-media .media-ph .material-symbols-rounded { font-size: 30px; }
.peek-media .media-ph code { display: none; }
.step-peek figcaption {
  padding: 22px 24px 22px 22px; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  transform: translateY(12px); opacity: 0; transition: transform 600ms cubic-bezier(0.2,0.8,0.2,1) 260ms, opacity 500ms 260ms;
}
.step:hover .step-peek figcaption, .step:focus-visible .step-peek figcaption, .step.is-open .step-peek figcaption { transform: none; opacity: 1; }
.step-peek figcaption .mono { color: var(--kc-cyan-300); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0; }
.step-peek figcaption strong { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: #fff; line-height: 1.15; }
.step-peek figcaption p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.55; color: rgba(245,242,250,0.78); }
@media (max-width: 880px) {
  .process { padding-bottom: var(--space-section); }
  .steps { padding-bottom: 0; }
  .step-cube { z-index: auto; }
  .step-peek, .step:nth-child(2) .step-peek, .step:nth-child(3) .step-peek, .step:nth-child(4) .step-peek {
    position: relative; top: auto; left: auto; right: auto; margin: 14px 0 0; width: 100%; display: none;
  }
  .peek-card, .step:nth-child(4) .peek-card { grid-template-columns: 1fr; clip-path: none; opacity: 1; transform: none; }
  .peek-media { min-height: 0; aspect-ratio: 2/1; }
  .step.is-open .step-peek { display: block; }
  .step-peek figcaption, .peek-media > * { transform: none; opacity: 1; filter: none; }
  .steps:has(.step:hover) .step:not(:hover) { opacity: 1; filter: none; }
  .step:hover .step-cube { transform: rotateX(-24deg) rotateY(32deg); }
  .step:hover::before { opacity: 0; }
  .step.is-open .step-cube { transform: translate3d(0,-6px,0) rotateX(-24deg) rotateY(392deg) scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .peek-card, .peek-media > *, .step-peek figcaption { transition-duration: 1ms; }
}

/* ============================================================
   CASES TIMELINE · pinned, horizontal travel
   ============================================================ */
.tl { position: relative; background: var(--kc-base-0); color: var(--kc-base-900); --cw: min(78vw, 940px); }
.tl-pin { position: relative; padding: 110px 0 48px; }
.tl-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 85% 10%, rgba(179,58,240,0.10), transparent 70%), radial-gradient(ellipse 50% 40% at 0% 100%, rgba(76,203,255,0.10), transparent 70%);
}
.tl-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.tl-head .display-l { margin: 0 0 10px; }
.tl-head .lead { margin: 0; color: var(--kc-base-500); max-width: 52ch; }

.tl-viewport { position: relative; overflow-x: auto; padding: 8px 0 20px; scrollbar-width: thin; }
.tl-track {
  position: relative; display: flex; align-items: stretch; gap: 5vw; width: max-content;
  padding: 0 calc(50vw - var(--cw) / 2);
}
.tl-line { position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: var(--hairline-strong); }
.tl-line i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--kc-fuchsia-500), var(--kc-cyan-300)); box-shadow: 0 0 14px rgba(179,58,240,0.6); }
.tl-item { position: relative; width: var(--cw); flex: none; padding-top: 0; display: flex; flex-direction: column; transition: opacity 500ms, transform 700ms cubic-bezier(0.2,0.8,0.2,1), filter 500ms; }
.tl-marker { display: flex; align-items: center; gap: 12px; height: 36px; margin-bottom: 22px; position: relative; }
.tl-marker i {
  width: 14px; height: 14px; border-radius: 4px; background: var(--kc-base-0); border: 2px solid var(--kc-base-300);
  transform: rotate(45deg); transition: background 400ms, border-color 400ms, box-shadow 400ms, transform 500ms; flex: none; margin-left: 2px; z-index: 1;
}
.tl-marker .mono { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--kc-base-400); background: var(--kc-base-0); padding: 4px 10px; border-radius: 999px; transition: color 400ms; }
.tl-item.is-passed .tl-marker i { border-color: var(--kc-fuchsia-500); background: var(--kc-fuchsia-500); }
.tl-item.is-active .tl-marker i { transform: rotate(45deg) scale(1.5); border-color: var(--kc-cyan-300); background: var(--kc-cyan-300); box-shadow: 0 0 18px var(--kc-cyan-300); }
.tl-item.is-active .tl-marker .mono { color: #9414FA; }

.tl-card {
  flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; background: #121212; color: #F5F2FA; border-radius: var(--r-card-lg);
  overflow: hidden; box-shadow: 0 30px 70px -28px rgba(47,5,68,0.55); border: 1px solid rgba(255,255,255,0.08);
  transform: scale(0.9); opacity: 0.4; filter: saturate(0.6); transform-origin: 50% 0;
  transition: transform 700ms cubic-bezier(0.2,0.8,0.2,1), opacity 500ms, filter 500ms, box-shadow 500ms;
}
.tl-item.is-active .tl-card { transform: scale(1); opacity: 1; filter: none; box-shadow: 0 40px 90px -26px rgba(179,58,240,0.55); }
.tl-media { position: relative; overflow: hidden; min-height: 320px; background: #1a1224; isolation: isolate; }
.tl-media img { position: absolute; top: 0; left: -6%; width: 112%; max-width: none; height: 100%; object-fit: cover; transform: translate3d(var(--px, 0px), 0, 0) scale(1.04); }
.tl-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(18,18,18,0.65)); pointer-events: none; }
.tl-body { padding: clamp(22px, 2.6vw, 38px); display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.tl-body .exp-tag { color: var(--kc-cyan-300); }
.tl-body h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.tl-body h3 small { display: block; font-size: 12px; font-weight: 500; font-family: var(--kc-font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--kc-fuchsia-100); margin-bottom: 8px; }
.tl-body p { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(245,242,250,0.7); }
.tl-metrics { display: flex; gap: 26px; margin: 6px 0 4px; flex-wrap: wrap; }
.tl-metrics div { display: flex; flex-direction: column; }
.tl-metrics b { font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; color: var(--kc-cyan-300); letter-spacing: -0.02em; line-height: 1.1; }
.tl-metrics span { font-size: 12px; color: rgba(245,242,250,0.55); max-width: 18ch; }
.tl-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: #fff; margin-top: 6px; width: fit-content; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 2px; transition: color 200ms, border-color 200ms; }
.tl-link:hover { color: var(--kc-cyan-300); border-color: var(--kc-cyan-300); }
.tl-link .material-symbols-rounded { font-size: 18px; transition: transform 220ms; }
.tl-link:hover .material-symbols-rounded { transform: translateX(4px); }
.tl-soon { color: rgba(245,242,250,0.5); border-bottom-color: transparent; }
.tl-foot { position: relative; margin-top: 4px; }
.tl-progress { height: 3px; border-radius: 3px; background: var(--hairline-strong); overflow: hidden; }
.tl-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--kc-fuchsia-500), var(--kc-cyan-300)); }

/* pinned mode (added by JS when motion is allowed) */
.tl.is-pinned .tl-pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 92px 0 28px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.tl.is-pinned .tl-viewport { overflow: hidden; }
.tl.is-pinned .tl-track { will-change: transform; }
.tl:not(.is-pinned) .tl-item { opacity: 1; }
.tl:not(.is-pinned) .tl-card { transform: none; opacity: 1; filter: none; }
.tl:not(.is-pinned) .tl-foot { display: none; }

@media (max-width: 880px) {
  .tl { --cw: 84vw; }
  .tl-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 16px; }
  .tl-head .lead { display: none; }
    .tl-card { grid-template-columns: 1fr; }
  .tl-media { min-height: 0; aspect-ratio: 16/9; }
  .tl-media::after { background: linear-gradient(180deg, transparent 60%, rgba(18,18,18,0.6)); }
  .tl-body { padding: 18px 20px 20px; gap: 8px; }
  .tl-body p { font-size: 13.5px; }
  .tl.is-pinned .tl-pin { padding-top: 84px; }
}
@media (max-height: 720px) and (min-width: 881px) {
  .tl-head .lead { display: none; }
  .tl-media { min-height: 260px; }
}

/* ---------- Hero lockup + numbers marquee (same pattern as the home clients bar) ---------- */
.rbx-marquee {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; pointer-events: none; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0 24px;
  background: linear-gradient(180deg, rgba(18,18,18,0) 0%, rgba(18,18,18,0.6) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rbx-marquee__track { display: inline-flex; white-space: nowrap; animation: rbxMarquee 70s linear infinite; }
.rbx-num { display: inline-flex; flex-direction: column; gap: 6px; padding: 0 clamp(28px, 3.6vw, 60px); border-right: 1px solid rgba(255,255,255,0.1); }
.rbx-num b { font-size: clamp(30px, 3.6vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--kc-cyan-300); }
.rbx-num i { font-style: normal; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,242,250,0.6); }
@keyframes rbxMarquee { to { transform: translateX(-50%); } }
@media (max-width: 700px) { .rbx-hero { padding-bottom: 170px; } .rbx-marquee { padding: 14px 0 18px; } }
@media (prefers-reduced-motion: reduce) { .rbx-marquee__track { animation: none; } .rbx-marquee { overflow-x: auto; pointer-events: auto; } }

/* ============================================================
   STORY · pinned horizontal narrative (text always white for legibility)
   ============================================================ */
.story { position: relative; background: var(--kc-base-900); color: #fff; }
.story-pin { position: relative; overflow: hidden; padding: 110px 0 90px; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; }
.story-video { position: absolute; left: 0; top: -6%; width: 100%; height: 106%; object-fit: cover; opacity: 0.2; pointer-events: none; } /* oversized upwards: the source file has a black bar on its top edge */
.story-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 85% 100%, rgba(179,58,240,0.35), transparent 65%), radial-gradient(ellipse 50% 40% at 0% 0%, rgba(76,203,255,0.12), transparent 60%), linear-gradient(180deg, rgba(18,18,18,0.55), rgba(18,18,18,0.35) 50%, rgba(18,18,18,0.7));
}
.story-ghost { position: absolute; right: -1%; bottom: -9%; font-size: clamp(220px, 34vw, 560px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: rgba(179,58,240,0.09); pointer-events: none; user-select: none; }
.story-track { position: relative; display: flex; align-items: center; gap: 7vw; padding: 0 10vw; width: max-content; }
.sp { flex: none; margin: 0; }
.sp h2, .sp h3 { font-weight: 800; font-size: clamp(28px, 3vw, 46px); letter-spacing: -0.02em; line-height: 1.08; color: #fff; margin: 0; text-wrap: balance; }
.story .sp em { font-style: normal; color: var(--kc-violet-300); }
.sp p { margin: 24px 0 0; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.55; color: #fff; opacity: 0.92; max-width: 46ch; }
.sp-eyebrow { display: block; margin-bottom: 20px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--kc-cyan-300); }
.sp-intro { width: min(82vw, 640px); }
.sp-cue { display: inline-flex; align-items: center; gap: 8px; margin-top: 34px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--kc-cyan-300); animation: spCue 1.8s ease-in-out infinite; }
@keyframes spCue { 50% { transform: translateX(8px); } }
.sp-big { width: min(82vw, 560px); }
.sp-outro { width: min(82vw, 640px); }
.sp-img { display: flex; flex-direction: column; gap: 14px; }
.sp-frame {
  position: relative; overflow: hidden; height: min(66vh, 600px); aspect-ratio: 4 / 5;
  border-radius: 105px 24px 24px 24px; border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8), 0 0 80px -20px rgba(179,58,240,0.45); background: #1b1024;
}
.sp-frame img { position: absolute; top: 0; left: -12%; width: 124%; max-width: none; height: 100%; object-fit: cover; transform: translate3d(var(--px, 0px), 0, 0); will-change: transform; }
.sp-img figcaption { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.story-progress { position: absolute; left: var(--wrap-pad); right: var(--wrap-pad); bottom: 34px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.16); overflow: hidden; }
.story-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--kc-fuchsia-500), var(--kc-cyan-300)); }
.story.is-pinned .story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; }
.story:not(.is-pinned) .story-track { width: auto; overflow-x: auto; padding-bottom: 40px; }
.story:not(.is-pinned) .story-progress { display: none; }
@media (max-width: 880px) {
  .story-track { gap: 10vw; padding: 0 8vw; }
  .sp-frame { height: min(56vh, 460px); border-radius: 64px 20px 20px 20px; }
}

/* ============================================================
   CAPABILITIES on a light background
   ============================================================ */
.process.section-light .step .mono { color: #9414FA; }
.process.section-light .step h3 { color: var(--kc-base-900); }
.process.section-light .steps::before { opacity: 0.5; }
.process .section-intro .lead { color: var(--kc-base-500); }

/* ============================================================
   TIMELINE on a dark background
   ============================================================ */
.tl { background: var(--kc-base-900); color: #F5F2FA; }
.tl-bg { background: radial-gradient(ellipse 60% 50% at 85% 10%, rgba(179,58,240,0.22), transparent 70%), radial-gradient(ellipse 50% 40% at 0% 100%, rgba(76,203,255,0.12), transparent 70%); }
.tl-head .lead { color: rgba(245,242,250,0.68); }
.tl-head .brand-em { color: var(--kc-violet-300); }
.tl-line { background: rgba(255,255,255,0.14); }
.tl-marker i { background: var(--kc-base-900); border-color: rgba(255,255,255,0.35); }
.tl-marker .mono { background: var(--kc-base-900); color: rgba(245,242,250,0.5); }
.tl-item.is-active .tl-marker .mono { color: var(--kc-cyan-300); }
.tl-card { background: #1a1224; border-color: rgba(255,255,255,0.12); }
/* fade the photo into the card with a mask (not an overlay): the last column is fully transparent, so no layer/sub-pixel seam can show a bright line */
.tl-media::after { display: none; }
.tl-media { -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 48%, rgba(0,0,0,0.55) 78%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, #000 48%, rgba(0,0,0,0.55) 78%, transparent 100%); }
.tl-progress { background: rgba(255,255,255,0.14); }
@media (max-width: 880px) { .tl-media { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,0.55) 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,0.55) 82%, transparent 100%); } }

/* ---------- Markets chips (closing section) ---------- */
.rbx-markets { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-bottom: 28px; }
.rbx-markets .mono { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--kc-base-400); margin-right: 6px; }
.rbx-markets i { font-style: normal; font-family: var(--kc-font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 13px; border-radius: var(--r-pill); background: var(--card-2); color: var(--kc-violet-700); }

/* ---------- Titles + lead aligned left, same scale as the home section heads ---------- */
.section-intro { text-align: left; max-width: 880px; margin: 0 0 56px; }
.section-intro .display-l { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
.section-intro .lead { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; max-width: 640px; margin: 22px 0 0; }
.tl-head .lead { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; max-width: 640px; margin-top: 22px; }
.tl-head .display-l { margin: 0; }
.rbx-cta { text-align: left; }
.rbx-cta .lead { margin: 22px 0 28px; max-width: 640px; font-size: clamp(16px, 1.25vw, 19px); }
.rbx-cta .cta-row { justify-content: flex-start; }
.rbx-cta .display-l { margin: 0; }
.rbx-markets { justify-content: flex-start; }

/* ---------- Cubes: fade in up + spin the first time the section scrolls into view ---------- */
@keyframes cubeIn {
  from { transform: translateY(56px) rotateX(-24deg) rotateY(-110deg) scale(0.55); }
  to   { transform: translateY(0) rotateX(-24deg) rotateY(32deg) scale(1); }
}
.step.in .step-cube { animation: cubeIn 1300ms cubic-bezier(0.2,0.8,0.2,1) backwards; }
.step:nth-child(1).in .step-cube { animation-delay: 80ms; }
.step:nth-child(2).in .step-cube { animation-delay: 230ms; }
.step:nth-child(3).in .step-cube { animation-delay: 380ms; }
.step:nth-child(4).in .step-cube { animation-delay: 530ms; }
@media (prefers-reduced-motion: reduce) { .step.in .step-cube { animation: none; } }

/* ---------- Timeline CTA: button pinned to the bottom of the card ---------- */
.tl-body .tl-cta { margin-top: auto; align-self: flex-start; padding: 12px 20px; font-size: 14px; }
.tl-body .tl-cta .material-symbols-rounded { font-size: 18px; }
.tl-metrics { margin-bottom: 14px; }

/* pinned column flex + auto side margins shrinks .wrap to its content and centres it: force full width */
.tl-head, .tl-foot { width: 100%; }
.tl-head > div { text-align: left; }

/* ============================================================
   HERO · Roblox lockup + review switcher + proposals A / B
   ============================================================ */
.rbx-lockup { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 9px 18px 9px 12px; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rbx-lockup__mark { width: 30px; height: 30px; fill: #fff; flex: none; }
.rbx-lockup__word { font-weight: 900; font-size: 22px; letter-spacing: 0.06em; line-height: 1; color: #fff; }
.rbx-lockup__x { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.75); padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.28); }
@media (max-width: 520px) { .rbx-lockup__x { display: none; } }

.rbx-switch { position: absolute; z-index: 6; top: 96px; right: var(--wrap-pad, 24px); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(18,18,18,0.72); border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rbx-switch__k { padding: 0 10px 0 12px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.rbx-switch button { font: inherit; font-size: 12px; font-weight: 700; color: #fff; background: transparent; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: background 200ms; }
.rbx-switch button:hover { background: rgba(255,255,255,0.14); }
.rbx-switch button.is-on { background: #fff; color: #121212; }
@media (max-width: 900px) { .rbx-switch { top: 76px; right: 12px; left: 12px; justify-content: center; flex-wrap: wrap; border-radius: 22px; } .rbx-switch__k { display: none; } }

.rbx-stage--alt { display: none; }
.rbx-hero:is([data-mode="a"], [data-mode="b"]) .rbx-stage--alt { display: block; }
.rbx-hero:is([data-mode="a"], [data-mode="b"]) #rbxStage,
.rbx-hero:is([data-mode="a"], [data-mode="b"]) .blob { display: none; }
.rbx-hero:is([data-mode="a"], [data-mode="b"]) {
  background:
    radial-gradient(ellipse 40% 34% at 82% 14%, rgba(255,246,196,0.95), rgba(255,246,196,0) 70%),
    linear-gradient(180deg, #1F8FFF 0%, #52BEFF 52%, #C4EDFF 100%);
}
.rbx-hero:is([data-mode="a"], [data-mode="b"]) .rbx-scrim { background: linear-gradient(90deg, rgba(6,38,110,0.78) 0%, rgba(6,38,110,0.42) 30%, rgba(6,38,110,0) 52%); }
.rbx-hero:is([data-mode="a"], [data-mode="b"]) h1 { text-shadow: 0 3px 0 rgba(6,38,110,0.35), 0 10px 30px rgba(6,38,110,0.35); }
.rbx-hero:is([data-mode="a"], [data-mode="b"]) h1 em { color: var(--kc-fuchsia-500, #B33AF0); }
.rbx-hero:is([data-mode="a"], [data-mode="b"]) .lead { color: #fff; text-shadow: 0 2px 12px rgba(6,38,110,0.55); }
.rbx-hero:is([data-mode="a"], [data-mode="b"]) .rbx-marquee { background: linear-gradient(180deg, rgba(6,38,110,0) 0%, rgba(6,38,110,0.72) 100%); border-top-color: rgba(255,255,255,0.2); }
.rbx-hero:is([data-mode="a"], [data-mode="b"]) .rbx-num b { color: var(--kc-fuchsia-500, #B33AF0); text-shadow: 0 2px 0 rgba(255,255,255,0.35); }

.rbx-overlay { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rbx-tag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 10px; background: #fff; color: #121212; font-size: 12px; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap; box-shadow: 0 4px 0 rgba(6,38,110,0.28), 0 10px 24px -8px rgba(6,38,110,0.5); transition: opacity 300ms, background 200ms, color 200ms; will-change: transform; }
.rbx-tag i { width: 9px; height: 9px; border-radius: 50%; background: #F0382F; animation: rbxPing 1.6s ease-out infinite; }
.rbx-tag.is-on { background: var(--kc-fuchsia-500, #B33AF0); color: #fff; }
@keyframes rbxPing { 0% { box-shadow: 0 0 0 0 rgba(240,56,47,0.6); } 100% { box-shadow: 0 0 0 10px rgba(240,56,47,0); } }
.rbx-tip { position: absolute; left: 0; top: 0; z-index: 5; max-width: 260px; padding: 12px 14px; border-radius: 14px; background: #121212; color: #fff; opacity: 0; transition: opacity 160ms; box-shadow: 0 14px 34px -10px rgba(0,0,0,0.6); }
.rbx-tip.is-on { opacity: 1; }
.rbx-tip b { display: block; font-size: 14px; margin-bottom: 3px; color: var(--kc-fuchsia-100, #CC95F7); }
.rbx-tip span { font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,0.88); }

.rbx-hud { position: absolute; right: var(--wrap-pad, 24px); bottom: 176px; width: min(320px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.rbx-hud__card { width: 100%; padding: 14px 16px; border-radius: 16px; background: rgba(18,18,18,0.82); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: translateY(10px); transition: opacity 250ms, transform 250ms; border: 1px solid rgba(255,255,255,0.14); }
.rbx-hud__card.is-on { opacity: 1; transform: none; }
.rbx-hud__k { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--kc-fuchsia-100, #CC95F7); margin-bottom: 4px; }
.rbx-hud__card b { display: block; font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.rbx-hud__card p { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.85); }
.rbx-hud__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.rbx-hud__coins, .rbx-hud__keys { padding: 7px 12px; border-radius: 999px; background: rgba(18,18,18,0.7); color: #fff; font-size: 12px; font-weight: 700; }
.rbx-hud__coins b { color: var(--kc-fuchsia-100, #CC95F7); margin-left: 4px; }
.rbx-hud__keys { font-weight: 600; opacity: 0.85; }
@media (max-width: 900px) { .rbx-hud { bottom: 150px; } .rbx-hud__card p { display: none; } .rbx-hud__keys { display: none; } }

/* ============================================================
   Doc adjustments
   ============================================================ */
/* story: paragraphs fully white */
.sp p { color: #fff; opacity: 1; text-shadow: 0 1px 14px rgba(0,0,0,0.55); }

/* process: tighter height */
.process.section { padding-top: clamp(48px, 5vw, 80px); padding-bottom: 12px; }
.process .section-intro { margin-bottom: clamp(28px, 3vw, 44px); }
.process .steps { padding-bottom: 36px; }
@media (max-width: 880px) { .process.section { padding-bottom: 56px; } }

/* compliance FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); transition: background 200ms, border-color 200ms; }
.faq details[open] { background: rgba(255,255,255,0.09); border-color: rgba(179,58,240,0.55); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 16px; font-weight: 700; line-height: 1.3; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; line-height: 1; background: rgba(255,255,255,0.12); transition: transform 250ms, background 200ms; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--kc-fuchsia-500, #B33AF0); }
.faq summary:focus-visible { outline: 2px solid var(--kc-cyan-300, #4CCBFF); outline-offset: 2px; border-radius: 16px; }
.faq details p { margin: 0; padding: 0 22px 20px; font-size: 15px; line-height: 1.6; color: rgba(245,242,250,0.88); }
.privacy-layout--faq { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
@media (max-width: 960px) { .privacy-layout--faq { grid-template-columns: 1fr; } }
.rbx-hero:is([data-mode="a"], [data-mode="b"])::before,
.rbx-hero:is([data-mode="a"], [data-mode="b"])::after { display: none; }
