/* IDRAQX - Risk & Controls story page. Loaded after styles.css; tokens come from :root there. */
.rc-page { background: #0c1a33; }

/* ---------- the story: one tall section with a sticky stage ---------- */
.rc-story { position: relative; background: #0c1a33; color: #fff; }
.rc-static { padding: calc(var(--header-h) + 3rem) 0 4rem; }
.rc-static h1 { margin-bottom: 1.5rem; color: #fff; }
.rc-static ol { display: grid; gap: 1.2rem; margin-bottom: 2rem; }
.rc-static li { padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(255,255,255,.04); }
.rc-static li h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.rc-static .actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.rc-stage { display: none; }
.js .rc-story { height: 1800vh; }
.js .rc-static .actions { display: none; }
.js .rc-static { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.js .rc-stage { display: grid; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; grid-template-columns: .8fr 1.3fr; gap: 3rem; align-items: center; padding: var(--header-h) clamp(1.25rem, 5vw, 6rem) 2.6rem; max-width: 1440px; margin-inline: auto; background: #0c1a33; }
.rc-bg, .rc-grid, .rc-sh { position: absolute; pointer-events: none; }
.rc-bg { inset: 0; }
.rc-grid { inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 62% 50%, #000, transparent); }
.rc-sh { border-radius: 50%; filter: blur(70px); }
.rc-sh0 { width: 560px; height: 560px; background: #279fcb; inset-inline-start: 8vw; top: -8vh; opacity: .15; }
.rc-sh1 { width: 480px; height: 480px; background: #cda278; inset-inline-start: 62vw; top: 40vh; opacity: .08; }
.rc-sh2 { width: 420px; height: 420px; background: #279fcb; inset-inline-start: 30vw; top: 90vh; opacity: .15; }
.rc-txt { position: relative; z-index: 2; height: 100%; overflow: hidden; }
.rc-tstrip { position: absolute; inset-inline: 0; top: 0; will-change: transform; }
.rc-tcell { display: flex; align-items: center; }
.rc-tx { width: 100%; }
.rc-note { max-width: 27rem; margin-bottom: 2.4rem; padding-inline-start: .9rem; border-inline-start: 2px solid var(--tan); font-size: .78rem; line-height: 1.55; color: #8ea3c0; }
.rc-note b { color: #cfe0f0; font-weight: 700; }
.rc-ch { font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.2rem; }
.rc-tx h2 { font-size: clamp(2.2rem, 1rem + 3.2vw, 3.6rem); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin: 0 0 1.1rem; color: #fff; }
.rc-tx em { font-style: normal; color: var(--tan); }
.rc-tx p { font-size: 1.12rem; line-height: 1.55; color: #b3c1d6; max-width: 24em; }
.rc-tx .rc-note, .rc-tx .rc-ch { max-width: none; }
.rc-l2 { opacity: 0; }
.rc-acts { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2rem; opacity: 0; }
.rc-prog { position: absolute; z-index: 3; inset-inline: clamp(1.25rem, 5vw, 6rem); bottom: 1.1rem; display: flex; gap: 6px; }
.rc-prog i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.rc-prog u { display: block; height: 100%; width: 0; background: var(--cyan); }

/* ---------- the persistent window (a sample ERP screen) ---------- */
.rc-win { direction: ltr; position: relative; z-index: 2; height: min(30rem, 66svh); border-radius: 20px; background: linear-gradient(165deg, #1b2d4d, #12213b); border: 1px solid rgba(39,159,203,.45); box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 90px rgba(39,159,203,.2); overflow: hidden; will-change: transform; }
.rc-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: .5rem; height: 3rem; padding: 0 1.2rem; border-bottom: 1px solid var(--line-dark); background: #182a49; }
.rc-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); flex: none; }
.rc-bar span { margin-left: .7rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #9fb2cc; }
.rc-bar em { margin-left: auto; flex: none; white-space: nowrap; font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--tan); border: 1px solid rgba(205,162,120,.55); border-radius: 999px; padding: .15rem .6rem; }
.rc-view { position: absolute; inset: 3rem 0 0 0; overflow: hidden; }
.rc-pstrip { position: absolute; inset-inline: 0; top: 0; will-change: transform; }
.rc-panel { position: relative; overflow: hidden; }
.rc-pin { position: absolute; inset: 0; }
@media (max-width: 600px) { .rc-pin { inset: auto; top: 0; left: 0; transform-origin: 0 0; } }
.rc-body { position: absolute; inset: 0; padding: 1.4rem 1.6rem; }
.rc-chip { position: absolute; z-index: 2; display: inline-block; opacity: 0; font-size: .7rem; font-weight: 800; letter-spacing: .06em; color: #1a1206; background: var(--tan); border-radius: 999px; padding: .35rem .85rem; bottom: 1.2rem; left: 1.6rem; }
.rc-chip.r { left: auto; right: 1.6rem; }
.rc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }
.rc-tile { height: 7.5rem; border-radius: 14px; display: grid; place-items: center; font-size: 2rem; font-weight: 300; border: 1px solid var(--line-dark); background: rgba(255,255,255,.06); color: var(--cyan); opacity: 0; }
.rc-tile.add { border: 1px dashed rgba(205,162,120,.6); color: var(--tan); background: transparent; }

/* 0 stream */
.rc-stream { position: absolute; inset: 0 0 5rem; overflow: hidden; mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
.rc-stream div { position: absolute; left: 0; right: 0; display: grid; grid-template-columns: 6.5rem 1fr 5rem; gap: 1rem; padding: .55rem 1.6rem; font-size: .95rem; color: #c7d6ea; border-top: 1px solid rgba(255,255,255,.06); font-variant-numeric: tabular-nums; }
.rc-stream b { text-align: right; font-weight: 500; }
.rc-total { position: absolute; left: 1.6rem; bottom: 1.2rem; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #9fb2cc; }
.rc-total b { display: block; font-size: 2rem; letter-spacing: 0; color: #fff; line-height: 1.1; }

/* 1 flow */
.rc-flow-body { padding: 0; }
.rc-flow { width: 100%; height: 100%; display: block; }

/* 2 table */
.rc-tb { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.rc-tb th { text-align: start; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: #8ea3c0; font-weight: 700; padding: .4rem .7rem; }
.rc-tb td { padding: .62rem .7rem; border-top: 1px solid var(--line-dark); font-variant-numeric: tabular-nums; }
.rc-tb .n { text-align: right; }
.rc-scan { position: absolute; left: 1.6rem; right: 1.6rem; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow: 0 0 22px 5px rgba(39,159,203,.5); opacity: 0; }
.rc-rls { position: absolute; left: 1.6rem; bottom: 1.2rem; }
.rc-rl { display: inline-block; font-size: .7rem; font-weight: 700; color: #cfe0f0; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.04); opacity: .4; margin-right: .5rem; }
.rc-rl.ok { opacity: 1; border-color: rgba(39,159,203,.6); color: #fff; }
.rc-kp { position: absolute; right: 1.6rem; bottom: 1.1rem; text-align: right; }
.rc-kp b { display: block; font-size: 1.8rem; line-height: 1; }
.rc-kp small { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: #8ea3c0; }

/* 3 bars */
.rc-cols { position: absolute; left: 3rem; right: 3rem; top: 1rem; bottom: 5rem; display: flex; gap: 2.4rem; align-items: flex-end; border-bottom: 1px solid var(--line-dark); }
.rc-col { flex: 1; position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.rc-v { position: relative; width: 100%; height: 0; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, #3bb0db, #1f7ea3); }
.rc-ov { position: absolute; left: 0; right: 0; top: 0; height: 0; border-radius: 10px 10px 0 0; background: repeating-linear-gradient(135deg, var(--tan) 0 8px, #b88c63 8px 16px); }
.rc-col .rc-num { font-size: 1.6rem; font-weight: 800; margin-bottom: .4rem; opacity: 0; }
.rc-col .rc-lb { position: absolute; bottom: -2.2rem; white-space: nowrap; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #9fb2cc; }

/* 4 timeline */
.rc-tl-h { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: 1rem; }
.rc-tl-h b { font-size: 1.15rem; }
.rc-tl-h span { font-size: .8rem; color: #9fb2cc; }
.rc-track { position: relative; height: 16px; border-radius: 999px; background: rgba(255,255,255,.1); margin-top: 3.4rem; }
.rc-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: var(--cyan); }
.rc-fill.late { background: var(--tan); }
.rc-thr { position: absolute; left: 75%; top: -1.5rem; bottom: -.6rem; width: 2px; background: rgba(255,255,255,.55); }
.rc-thr span { position: absolute; top: -1.2rem; left: 50%; transform: translateX(-50%); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #cfe0f0; white-space: nowrap; }
.rc-days { margin-top: 2rem; font-size: clamp(2.8rem, 6vw, 4.2rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.rc-days.late { color: var(--tan); }
.rc-days small { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #9fb2cc; margin-left: .6rem; font-weight: 700; }

/* 5 journals */
.rc-jb { position: absolute; left: 1.8rem; right: 1.8rem; top: 1.6rem; bottom: 4.6rem; display: flex; gap: 6px; align-items: flex-end; border-bottom: 1px solid var(--line-dark); }
.rc-jb i { flex: 1; height: 0; border-radius: 5px 5px 0 0; background: rgba(39,159,203,.7); }
.rc-jb i.big { background: var(--tan); }
.rc-pe { position: absolute; top: 1rem; bottom: 4.6rem; right: 1.8rem; width: 5.2rem; opacity: 0; border-radius: 10px; background: rgba(205,162,120,.12); border: 1px dashed rgba(205,162,120,.5); }
.rc-pe span { position: absolute; top: -1.1rem; right: 0; white-space: nowrap; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--tan); }
.rc-jl { position: absolute; left: 1.8rem; bottom: 1.1rem; font-size: .9rem; color: #cfe0f0; opacity: 0; }

/* 6 formula */
.rc-fm { display: flex; align-items: stretch; gap: .8rem; justify-content: center; margin-top: .6rem; }
.rc-fb { flex: 1; text-align: center; padding: 1.2rem .5rem; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); }
.rc-fb b { display: block; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.rc-fb small, .rc-res small { display: block; margin-top: .5rem; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #9fb2cc; }
.rc-op { align-self: center; font-size: 1.8rem; color: #8ea3c0; font-weight: 300; }
.rc-res { margin-top: 1.4rem; padding: 1.4rem; border-radius: 16px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.05); text-align: center; }
.rc-res b { font-size: clamp(2.8rem, 7vw, 4.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.rc-res.neg { border-color: rgba(205,162,120,.7); }
.rc-res.neg b { color: var(--tan); }

/* 7 review */
.rc-sum { display: flex; gap: .8rem; margin-bottom: 1rem; }
.rc-sum div { flex: 1; padding: .8rem 1rem; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); opacity: 0; }
.rc-sum b { display: block; font-size: 1.8rem; line-height: 1.1; }
.rc-sum small { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: #9fb2cc; }
.rc-rk { display: grid; grid-template-columns: 10px 1fr auto; gap: .9rem; align-items: center; padding: .85rem 1.1rem; margin-bottom: .55rem; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); font-size: .98rem; opacity: 0; direction: inherit; }
.rc-rk small { font-weight: 800; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: #9fb2cc; }
.rc-dot { width: 10px; height: 10px; border-radius: 50%; }
.rc-dot.h { background: #e0694f; }
.rc-dot.m { background: var(--tan); }

/* ---------- phones and small tablets ---------- */
@media (max-width: 960px) {
  .js .rc-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: .6rem; padding-top: calc(var(--header-h) + .4rem); padding-bottom: 2.2rem; align-items: stretch; }
  .rc-tx h2 { font-size: clamp(1.8rem, 7.4vw, 2.4rem); margin-bottom: .6rem; }
  .rc-tx p { font-size: .98rem; }
  .rc-ch { margin-bottom: .6rem; font-size: .66rem; }
  .rc-note { margin-bottom: 1rem; font-size: .68rem; }
  .rc-win { height: min(19rem, 36svh); }
  .rc-body { padding: 1rem; }
  .rc-bar span { letter-spacing: .1em; font-size: .6rem; }
  .rc-tb { font-size: .8rem; }
  .rc-tb td { padding: .3rem .5rem; }
  .rc-chip { bottom: .55rem; }
  .rc-cols { bottom: 4.7rem; }
  .rc-col .rc-lb { bottom: -1.9rem; }
  .rc-jb, .rc-pe { bottom: 5.6rem; }
  .rc-jl { bottom: 2.9rem; }
  .rc-rl { display: none; }
  .rc-cols { left: 1.4rem; right: 1.4rem; gap: 1.2rem; bottom: 4.7rem; }
  .rc-days small { display: block; margin: .5rem 0 0; }
  .rc-fm { gap: .4rem; }
  .rc-fb { padding: .8rem .3rem; }
  .rc-op { font-size: 1.2rem; }
  .rc-res { margin-top: .9rem; padding: .9rem; }
  .rc-rk { font-size: .82rem; padding: .6rem .8rem; margin-bottom: .4rem; gap: .6rem; }
  .rc-sum { gap: .5rem; margin-bottom: .6rem; }
  .rc-sum div { padding: .5rem .7rem; }
  .rc-sum b { font-size: 1.3rem; }
  .rc-chip { font-size: .62rem; bottom: .8rem; }
  .rc-stream div { grid-template-columns: 5.2rem 1fr 4rem; font-size: .8rem; padding-inline: 1rem; }
  .rc-tile { height: 3.6rem; }
  .rc-acts { margin-top: .9rem; gap: .55rem; flex-wrap: wrap; }
  .rc-acts .btn { padding: .72rem 1.05rem; font-size: .88rem; min-height: 0; }
  .rc-note { margin-bottom: .7rem; }
}
@media (max-width: 960px) and (max-height: 700px) { .rc-tx h2 { font-size: clamp(1.55rem, 6.4vw, 2rem); } .rc-tx p { font-size: .9rem; line-height: 1.45; } .rc-win { height: min(17rem, 35svh); } }
@media (max-width: 520px) { .rc-rk { grid-template-columns: 10px 1fr; } .rc-rk small { display: none; } }
