/* ===========================================================================
   MADDS — RESOURCES · knowledge hub ("rs-")
   Behaviour: static/js/resources.js · Markup: templates/resources.html
   Site theme: Afacad · navy/violet fields · brand #B51BB5 #F0A400 #AC20BC #43D2E0
   Hero follows the Web App Development hero: nebula + signal rings + grid,
   typing headline on the left, live moving objects on the right.
   =========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400..700;1,400..700&display=swap');

.rs-page {
    --ink: #0a0b2e; --ink2: #14083a; --violet: #4a128c; --purple: #7b2ff7;
    --magenta: #B51BB5; --orange: #F0A400; --cyan: #43D2E0; --green: #34d399;
    --paper: #f7f4fd; --line: rgba(10, 11, 46, .12);
    --ease: cubic-bezier(.22, .8, .24, 1);
    font-family: "Afacad", sans-serif; color: var(--ink); background: #fff;
}
.rs-page *, .rs-page *::before, .rs-page *::after { box-sizing: border-box; }
.rs-page :where(p, h1, h2, h3) { margin: 0; }
.rs-page :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
.rs-page :where(button, input) { font: inherit; color: inherit; }
.rs-page :where(button) { cursor: pointer; }
.rs-page :where(a) { text-decoration: none; color: inherit; }
.rs-page :focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.rs-shell { width: min(var(--site-width, 88%), 1240px); margin-inline: auto; position: relative; z-index: 1; }
.rs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons & tags ------------------------------------------------ */
.rs-btn { display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.65rem; border-radius: 999px; border: 0px solid transparent; font-size: 1.02rem; font-weight: 600; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease); }
.rs-btn span { transition: transform .35s var(--ease); }
.rs-btn:hover span { transform: translateX(5px); }
.rs-btn--solid { color: var(--ink); background: linear-gradient(105deg, var(--cyan), var(--orange)); box-shadow: 0 14px 36px rgba(67, 210, 224, .3); }
.rs-btn--solid:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(240, 164, 0, .36); }
.rs-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .06); backdrop-filter: blur(10px); }
.rs-btn--ghost:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .14); }
.rs-btn--line { color: var(--ink); border-color: var(--line); background: #fff; padding: .6rem 1.2rem; font-size: .95rem; }
.rs-btn--line:hover { border-color: var(--purple); color: var(--purple); }
.rs-tag { display: inline-block; padding: .3rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #fff; background: var(--magenta); }
.rs-tag--guide { background: #2A7BFF; }
.rs-cta-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- section heads ------------------------------------------------- */
.rs-head { max-width: 46rem; margin: 0 0 clamp(2rem, 4.5vh, 3.2rem); }
.rs-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.015em; font-weight: 600; }
.rs-head p { margin-top: .9rem; font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.6; color: rgba(10, 11, 46, .72); }
.rs-head p.rs-tag { margin: 0; font-size: .85rem; color: #fff; }
.rs-head--light h2 { color: #fff; } .rs-head--light p { color: rgba(255, 255, 255, .78); }

/* ================================================================
   1. HERO
   ================================================================ */
.rs-hero { position: relative; min-height: max(700px, 98svh); display: flex; align-items: center; overflow: hidden; isolation: isolate; color: #fff;
    background: radial-gradient(120% 90% at 88% 8%, rgba(123, 47, 247, .34), transparent 55%), linear-gradient(158deg, var(--ink) 0%, var(--ink2) 46%, var(--violet) 100%); }
.rs-sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.rs-neb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: rs-breathe 12s ease-in-out infinite; }
.rs-neb--a { width: 46vw; height: 46vw; right: -12vw; top: -14vw; background: radial-gradient(circle, rgba(181, 27, 181, .55), transparent 68%); }
.rs-neb--b { width: 38vw; height: 38vw; left: -14vw; bottom: -16vw; background: radial-gradient(circle, rgba(67, 210, 224, .38), transparent 68%); animation-delay: -4s; }
.rs-neb--c { width: 30vw; height: 30vw; left: 34%; top: 30%; background: radial-gradient(circle, rgba(240, 164, 0, .18), transparent 70%); animation-delay: -8s; }
@keyframes rs-breathe { 50% { transform: scale(1.14) translate(2%, -2%); opacity: .75; } }
.rs-rings { position: absolute; right: 2%; top: 44%; width: min(60vw, 780px); aspect-ratio: 1; translate: 0 -50%; }
.rs-rings span { position: absolute; margin: auto; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); inset: 0; }
.rs-rings span:nth-child(2) { inset: 12%; border-color: rgba(67, 210, 224, .16); }
.rs-rings span:nth-child(3) { inset: 24%; border-color: rgba(181, 27, 181, .2); }
.rs-rings span:nth-child(4) { inset: 36%; border-color: rgba(240, 164, 0, .16); }
.rs-rings span::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid transparent; border-top-color: rgba(255, 255, 255, .4); animation: rs-spin 14s linear infinite; }
.rs-rings span:nth-child(2)::after { animation-duration: 11s; animation-direction: reverse; }
.rs-rings span:nth-child(3)::after { animation-duration: 17s; }
.rs-rings span:nth-child(4)::after { animation-duration: 9s; animation-direction: reverse; }
@keyframes rs-spin { to { rotate: 360deg; } }
/* hero rings: centred exactly on the MADDS orbit (same centre as the core circle) */
.rs-rings--orbit { right: auto; top: 50%; left: 50%; width: min(calc(var(--size) * 1.77), 60vw); translate: -50% -50%; z-index: -1; pointer-events: none; }
.rs-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(120% 90% at 30% 40%, #000 20%, transparent 78%); mask-image: radial-gradient(120% 90% at 30% 40%, #000 20%, transparent 78%); }
/* rising particles (created by JS) */
.rs-dots i { position: absolute; left: var(--x); bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); opacity: 0; animation: rs-rise var(--d) linear var(--w) infinite; }
@keyframes rs-rise { 10% { opacity: .8; } 90% { opacity: .5; } to { transform: translate(var(--dx), -105vh); opacity: 0; } }
/* drifting topic objects on the left */
.rs-drift { position: absolute; padding: .45rem .95rem; border-radius: 999px; font-size: .9rem; color: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .07); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(5, 3, 24, .35); animation: rs-drift 9s ease-in-out infinite; }
.rs-drift::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .55rem; border-radius: 50%; background: var(--c, var(--cyan)); }
.rs-drift--1 { left: 3%; top: 15%; --c: var(--magenta); }
.rs-drift--2 { left: 27%; top: 12%; --c: var(--cyan); animation-delay: -2s; animation-duration: 11s; }
.rs-drift--5 { left: 42%; top: 19%; --c: var(--purple); animation-delay: -3s; opacity: .75; }
.rs-drift--3 { left: 2%; bottom: 5%; --c: var(--orange); animation-delay: -4s; }
.rs-drift--4 { left: 21%; bottom: 8%; --c: var(--green); animation-delay: -6s; animation-duration: 12s; }
.rs-drift--6 { left: 40%; bottom: 4%; --c: var(--magenta); animation-delay: -7s; opacity: .75; }
@keyframes rs-drift { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(14px, -18px); } 66% { transform: translate(-10px, 10px); } }

.rs-hero__in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(2rem, 4.5vw, 4rem); align-items: center; padding: calc(var(--hdr-full, 108px) + 2.2rem) 0 clamp(3.5rem, 8vh, 6rem); }
.rs-eyebrow { font-size: .95rem; font-weight: 600; letter-spacing: .08em; color: var(--cyan); }
.rs-title { margin: 1rem 0 1.3rem; font-size: clamp(2.3rem, 5vw, 4.05rem); line-height: 1.04; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.rs-lead { max-width: 33rem; font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.66; color: rgba(255, 255, 255, .8); }
.rs-hero .rs-cta-row { margin: 2rem 0 1.6rem; }
.rs-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.rs-chips button { padding: .42rem .95rem; border-radius: 999px; font-size: .88rem; color: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); transition: background .3s, border-color .3s; }
.rs-chips button:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
/* typing headline (same technique as the Web App hero) */
.rs-typing-line { display: block; position: relative; color: #fff; }
.rs-typing-line::before { content: attr(data-text); display: block; visibility: hidden; padding-bottom: .18em; margin-bottom: -.18em; line-height: 1.05; }
.rs-typing-text { position: absolute; top: 0; left: 0; width: 100%; display: block; padding: 0 .06em .18em 0; line-height: 1.05; }
.rs-typing-grad .rs-typing-text { background: linear-gradient(100deg, var(--cyan), var(--magenta) 55%, var(--orange)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.rs-typing-cursor { display: inline-block; width: .06em; height: .85em; margin-left: .06em; vertical-align: -.02em; background: var(--cyan); -webkit-text-fill-color: initial; animation: rs-blink .7s steps(1, end) infinite; }
@keyframes rs-blink { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }

/* the orbit: topics circling MADDS */
.rs-stage { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.rs-orbit { --size: min(38vw, 440px); --r: calc(var(--size) * .4); position: relative; width: var(--size); aspect-ratio: 1; }
.rs-orbit__ring { position: absolute; inset: 10%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .22); }
.rs-orbit__ring--2 { inset: 30%; border: 1px solid rgba(67, 210, 224, .2); }
.rs-orbit__spin { position: absolute; inset: 0; animation: rs-spin 80s linear infinite; }
.rs-orbit__spin li { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)); }
.rs-orbit__spin li::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: var(--r); transform-origin: 0 0; transform: rotate(var(--a)); background: linear-gradient(180deg, var(--c), transparent); opacity: .5; pointer-events: none; }
.rs-node { position: absolute; left: 0; top: 0; translate: -50% -50%; z-index: 2; padding: 0; border: 0; background: none; }
.rs-node__in { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.05rem; border-radius: 999px; font-weight: 600; font-size: 1rem; color: #fff; white-space: nowrap; background: rgba(20, 8, 58, .72); border: 1px solid rgba(255, 255, 255, .26); backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(5, 3, 24, .45); animation: rs-spin 80s linear infinite reverse; transition: background .3s, border-color .3s, box-shadow .3s; }
.rs-node__in i { width: .65rem; height: .65rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.rs-node:hover .rs-node__in, .rs-node.is-on .rs-node__in { border-color: var(--c); background: rgba(20, 8, 58, .95); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 28%, transparent), 0 12px 30px rgba(5, 3, 24, .5); }
.rs-orbit:hover .rs-orbit__spin, .rs-orbit:hover .rs-node__in, .rs-orbit.is-held .rs-orbit__spin, .rs-orbit.is-held .rs-node__in { animation-play-state: paused; }
.rs-core { position: absolute; inset: 36%; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 35% 30%, #fff3, transparent 60%), linear-gradient(135deg, var(--magenta), var(--purple)); box-shadow: 0 0 0 10px rgba(181, 27, 181, .18), 0 0 70px rgba(123, 47, 247, .7); animation: rs-pulse 4s ease-in-out infinite; }
.rs-core b { font-size: clamp(1rem, 1.7vw, 1.35rem); letter-spacing: .06em; }
.rs-core small { font-size: .85rem; opacity: .85; }
@keyframes rs-pulse { 50% { box-shadow: 0 0 0 18px rgba(181, 27, 181, .08), 0 0 90px rgba(123, 47, 247, .85); } }
.rs-chain { width: min(100%, 470px); padding: .9rem 1.1rem; border-radius: 16px; background: rgba(20, 8, 58, .62); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px); box-shadow: 0 18px 44px rgba(5, 3, 24, .45); }
.rs-chain__t { font-size: .92rem; color: rgba(255, 255, 255, .72); }
.rs-chain__t b { color: #fff; font-size: 1.02rem; }
.rs-chain__list { display: flex; flex-wrap: wrap; gap: .4rem .25rem; margin-top: .6rem; }
.rs-chain__list li { display: inline-flex; align-items: center; animation: rs-in .5s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.rs-chain__list li:not(:last-child)::after { content: "\2192"; margin: 0 .2rem 0 .3rem; color: var(--cyan); }
.rs-chain__list button { padding: .28rem .75rem; border-radius: 999px; font-size: .88rem; color: #fff; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .08); transition: background .25s, color .25s; }
.rs-chain__list button:hover { background: var(--cyan); color: var(--ink); }
@keyframes rs-in { from { opacity: 0; transform: translateX(-8px); } }
.rs-scroll { position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0; display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.rs-scroll span { width: 1px; height: 32px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .75)); animation: rs-drip 1.8s ease-in-out infinite; }
@keyframes rs-drip { 50% { translate: 0 8px; opacity: .45; } }

/* ================================================================
   2. FEATURED
   ================================================================ */
.rs-featured { padding: clamp(3.5rem, 8vh, 6rem) 0 clamp(1.5rem, 3vh, 2.5rem); background: var(--paper); }
.rs-feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.8rem, 4vw, 3.4rem); border-radius: 28px; color: #fff; background: radial-gradient(90% 120% at 100% 0, rgba(181, 27, 181, .45), transparent 60%), linear-gradient(150deg, var(--ink), var(--violet)); box-shadow: 0 30px 70px rgba(74, 18, 140, .28); }
.rs-feat h2 { margin: 1rem 0; font-size: clamp(1.8rem, 3.3vw, 2.8rem); line-height: 1.1; letter-spacing: -.015em; font-weight: 600; }
.rs-feat p:not(.rs-tag) { margin-bottom: 1.6rem; max-width: 30rem; line-height: 1.62; font-size: 1.1rem; color: rgba(255, 255, 255, .82); }
.rs-pipe { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.rs-pipe::before { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 8px, transparent 8px 16px); }
.rs-pipe__n { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: 1rem .8rem; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); }
.rs-pipe__n:nth-child(even) { transform: translateY(26px); }
.rs-pipe__n b { font-size: 1.1rem; } .rs-pipe__n small { font-size: .82rem; line-height: 1.35; color: rgba(255, 255, 255, .7); }
.rs-pipe__pulse { position: absolute; top: calc(50% - 7px); left: 4%; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 20px var(--orange); animation: rs-run 5s ease-in-out infinite; }
@keyframes rs-run { 0% { left: 4%; opacity: 0; } 10%, 90% { opacity: 1; } 100% { left: 94%; opacity: 0; } }

/* ================================================================
   3. LIBRARY
   ================================================================ */
.rs-library { padding: clamp(3rem, 7vh, 5rem) 0 clamp(4rem, 8vh, 6.5rem); background: linear-gradient(180deg, var(--paper), #fff 22%); scroll-margin-top: 70px; }
.rs-types { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; }
.rs-type { position: relative; display: flex; flex-direction: column; gap: .2rem; text-align: left; padding: .85rem .8rem .7rem; border-radius: 14px; border: 1px solid var(--line); border-top: 4px solid var(--t); background: #fff; transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s; }
.rs-type b { font-size: 1rem; line-height: 1.15; padding-right: 1.8rem; }
.rs-type span { font-size: .8rem; line-height: 1.3; color: rgba(10, 11, 46, .62); }
.rs-type em { position: absolute; right: .7rem; top: .7rem; font-style: normal; font-size: .85rem; font-weight: 600; color: var(--t); }
.rs-type:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(74, 18, 140, .14); }
.rs-type.is-on { background: var(--ink); color: #fff; border-color: var(--ink); border-top-color: var(--t); }
.rs-type.is-on span { color: rgba(255, 255, 255, .72); }
.rs-tools { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; margin: 1.6rem 0 1rem; }
.rs-search { flex: 1 1 280px; max-width: 420px; }
.rs-search input { width: 100%; padding: .8rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 1rem; }
.rs-search input:focus { outline: 0; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(123, 47, 247, .15); }
.rs-topics { display: flex; flex-wrap: wrap; gap: .45rem; }
.rs-topics button { padding: .45rem 1rem; border-radius: 999px; font-size: .92rem; border: 1px solid var(--line); background: #fff; transition: background .25s, color .25s, border-color .25s; }
.rs-topics button:hover { border-color: var(--purple); }
.rs-topics button.is-on { background: var(--purple); border-color: var(--purple); color: #fff; }
.rs-count { margin-bottom: 1rem; font-size: .95rem; color: rgba(10, 11, 46, .6); }
.rs-grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.rs-card { display: flex; flex-direction: column; gap: .55rem; padding: 1.3rem 1.3rem 1.15rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--t); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.rs-card[hidden] { display: none; }
.rs-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(74, 18, 140, .14); }
.rs-card__fmt { font-size: .85rem; font-weight: 600; color: var(--t); }
.rs-card h3 { font-size: 1.22rem; line-height: 1.22; font-weight: 600; }
.rs-card p { font-size: 1rem; line-height: 1.5; color: rgba(10, 11, 46, .7); flex: 1; }
.rs-card__go { font-size: .95rem; font-weight: 600; color: var(--ink); }
.rs-card__go::after { content: "\2192"; display: inline-block; margin-left: .4em; transition: transform .3s var(--ease); }
.rs-card:hover .rs-card__go::after { transform: translateX(5px); }
.rs-empty { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; padding: 1.6rem; border-radius: 16px; border: 1px dashed var(--line); background: var(--paper); }
.rs-empty[hidden] { display: none; }
.rs-empty p { flex: 1 1 100%; font-size: 1.1rem; }

/* ================================================================
   4. CASE STUDIES
   ================================================================ */
.rs-cases { padding: clamp(4rem, 9vh, 6.5rem) 0; color: #fff; scroll-margin-top: 70px; background: radial-gradient(70% 60% at 90% 0, rgba(181, 27, 181, .3), transparent 60%), radial-gradient(60% 60% at 0 100%, rgba(67, 210, 224, .16), transparent 60%), linear-gradient(160deg, var(--ink), var(--ink2) 55%, var(--violet)); }
.rs-case { margin-top: 1.4rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 24px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(14px); }
.rs-case__top { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: flex-start; }
.rs-case__ind { font-size: .95rem; font-weight: 600; color: var(--orange); margin-bottom: .5rem; }
.rs-case h3 { max-width: 34rem; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; font-weight: 600; }
.rs-case__svc { display: flex; flex-wrap: wrap; gap: .45rem; max-width: 26rem; }
.rs-case__svc li { padding: .32rem .85rem; border-radius: 999px; font-size: .85rem; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .06); }
.rs-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; margin: 1.8rem 0 1.4rem; }
.rs-flow li { position: relative; padding-top: 1.4rem; border-top: 2px solid rgba(255, 255, 255, .22); }
.rs-flow li::before { content: ""; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(67, 210, 224, .2); }
.rs-flow li:last-child::before { background: var(--orange); box-shadow: 0 0 0 4px rgba(240, 164, 0, .25); }
.rs-flow b { display: block; margin-bottom: .45rem; font-size: 1.1rem; }
.rs-flow p { font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.rs-case__go { display: inline-block; font-weight: 600; color: var(--cyan); }
.rs-case__go span { display: inline-block; transition: transform .3s var(--ease); }
.rs-case__go:hover span { transform: translateX(6px); }

/* ================================================================
   5. TECHNOLOGY, EXPLAINED
   ================================================================ */
.rs-explained {
    padding: clamp(4rem, 8vh, 6rem) 0;
    background: var(--paper);
    scroll-margin-top: 70px;
    overflow: clip;
}
.rs-explained .rs-shell { width: min(88%, 1480px); }
.rs-explained .rs-head { max-width: 860px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.rs-explained .rs-head h2 { text-wrap: balance; }
.rs-explained .rs-head p { max-width: 70ch; }

.rs-order {
    position: relative;
    padding: clamp(1.15rem, 2.3vw, 2rem);
    border-radius: 26px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(49, 28, 94, .12);
    box-shadow: 0 22px 60px rgba(74, 18, 140, .09);
    overflow: hidden;
}

/* The rail owns horizontal overflow, so the whole card can never widen the page. */
.rs-order__rail {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(123, 47, 247, .25) transparent;
    padding: .3rem .15rem .7rem;
}
.rs-order__rail::-webkit-scrollbar { height: 6px; }
.rs-order__rail::-webkit-scrollbar-thumb { background: rgba(123, 47, 247, .2); border-radius: 999px; }

.rs-order__track {
    --rs-track-gap: 0px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, minmax(108px, 1fr));
    min-width: 790px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.rs-order__track::before {
    content: "";
    position: absolute;
    left: calc(100% / 14);
    right: calc(100% / 14);
    top: 13px;
    height: 2px;
    background: linear-gradient(90deg, rgba(123, 47, 247, .16), rgba(42, 123, 255, .18));
    border-radius: 999px;
}
.rs-order__track li {
    position: relative;
    z-index: 2;
    min-width: 0;
    display: flex;
    justify-content: center;
}
.rs-order__track button {
    width: 100%;
    min-width: 0;
    min-height: 68px;
    display: grid;
    grid-template-rows: 28px minmax(2.35em, auto);
    justify-items: center;
    align-items: start;
    gap: .55rem;
    padding: 0 .45rem;
    border: 0;
    background: none;
    font: inherit;
    font-size: clamp(.82rem, 1.1vw, .96rem);
    line-height: 1.15;
    font-weight: 600;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: anywhere;
    color: rgba(10, 11, 46, .58);
    transition: color .3s ease;
}
.rs-order__track button::before {
    content: "";
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(49, 28, 94, .16);
    box-shadow: 0 0 0 0 rgba(123, 47, 247, 0);
    transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.rs-order__track button.is-done::before {
    background: var(--cyan);
    border-color: var(--cyan);
}
.rs-order__track button.is-on { color: var(--ink); }
.rs-order__track button.is-on::before {
    background: var(--purple);
    border-color: var(--purple);
    box-shadow: 0 0 0 6px rgba(123, 47, 247, .13), 0 8px 18px rgba(123, 47, 247, .18);
    transform: scale(1.06);
}
.rs-order__packet {
    position: absolute;
    top: 7px;
    left: calc(100% / 14 + var(--p, 0) * (100% / 7));
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(67, 210, 224, .12), 0 0 18px rgba(67, 210, 224, .58);
    transition: left .75s var(--ease);
    pointer-events: none;
    z-index: 3;
}

/* Reserved footprint keeps autoplay/manual changes from moving surrounding content. */
.rs-order__say {
    display: grid;
    grid-template-columns: minmax(92px, auto) minmax(0, 1fr) auto;
    gap: .9rem 1.25rem;
    align-items: center;
    min-height: 104px;
    margin-top: 1.15rem;
    padding: 1.15rem 1.25rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(247, 242, 253, .96), rgba(241, 246, 255, .96));
    border: 1px solid rgba(123, 47, 247, .06);
}
.rs-order__step {
    margin: 0;
    font-size: .82rem;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    color: var(--purple);
}
.rs-order__txt {
    margin: 0;
    min-width: 0;
    min-height: 3.2em;
    display: flex;
    align-items: center;
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.45;
    color: var(--ink);
    overflow-wrap: anywhere;
}
.rs-order__say .rs-btn {
    justify-self: end;
    min-width: 86px;
    white-space: nowrap;
}

.rs-asks {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .65rem;
    margin-top: 1.2rem;
    padding: 0;
    list-style: none;
}
.rs-asks li { min-width: 0; }
.rs-asks button {
    width: 100%;
    min-height: 48px;
    padding: .65rem .9rem;
    border-radius: 999px;
    border: 1px solid rgba(49, 28, 94, .13);
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font: inherit;
    font-size: .94rem;
    line-height: 1.2;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: anywhere;
    transition: transform .25s var(--ease), border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.rs-asks button:hover,
.rs-asks button:focus-visible {
    background: #fff;
    border-color: rgba(123, 47, 247, .42);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(74, 18, 140, .09);
}

@media (max-width: 1100px) {
    .rs-asks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .rs-order__say {
        grid-template-columns: minmax(84px, auto) minmax(0, 1fr);
        min-height: 132px;
    }
    .rs-order__say .rs-btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
    .rs-explained { padding: 3.5rem 0; }
    .rs-explained .rs-shell { width: min(92%, 1480px); }
    .rs-order { padding: 1rem; border-radius: 20px; }
    .rs-order__track { min-width: 720px; }
    .rs-order__track button { font-size: .82rem; }
    .rs-order__say {
        grid-template-columns: 1fr;
        gap: .55rem;
        min-height: 172px;
        padding: 1rem;
    }
    .rs-order__txt { min-height: 4.6em; }
    .rs-order__say .rs-btn { width: 100%; justify-content: center; }
    .rs-asks { grid-template-columns: 1fr 1fr; gap: .55rem; }
    .rs-asks button { min-height: 52px; border-radius: 16px; }
}
@media (max-width: 420px) {
    .rs-asks { grid-template-columns: 1fr; }
}

/* ================================================================
   6. GUIDE
   ================================================================ */
.rs-guide { padding: clamp(4rem, 9vh, 6.5rem) 0; background: #fff; }
.rs-guide__in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.rs-guide .rs-head { margin: 0; position: sticky; top: 110px; }
.rs-guide .rs-head h2 { margin-top: 1rem; }
.rs-guide .rs-head .rs-btn { margin-top: 1.6rem; }
.rs-steps { counter-reset: s; position: relative; }
.rs-steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.rs-steps li { counter-increment: s; position: relative; display: flex; flex-direction: column; gap: .2rem; padding: 0 0 1.7rem 4rem; opacity: .35; transform: translateX(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 140ms); }
.rs-steps.is-in li { opacity: 1; transform: none; }
.rs-steps li:last-child { padding-bottom: 0; }
.rs-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--purple), var(--magenta)); box-shadow: 0 0 0 5px #fff; }
.rs-steps b { font-size: 1.3rem; padding-top: .5rem; } .rs-steps span { font-size: 1.05rem; line-height: 1.5; color: rgba(10, 11, 46, .7); }

/* ================================================================
   7. CTA + subscribe
   ================================================================ */
.rs-end { position: relative; overflow: hidden; isolation: isolate; padding: clamp(4rem, 9vh, 6.5rem) 0; color: #fff; background: linear-gradient(158deg, var(--ink), var(--ink2) 50%, var(--violet)); }
.rs-end .rs-rings { right: -10%; width: min(70vw, 720px); }
.rs-end__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.rs-end h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.08; letter-spacing: -.015em; font-weight: 600; }
.rs-end__copy p { margin: 1.1rem 0 1.8rem; max-width: 32rem; font-size: 1.12rem; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.rs-sub { padding: 1.6rem; border-radius: 22px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px); }
.rs-sub h3 { font-size: 1.3rem; font-weight: 600; }
.rs-sub p { margin: .4rem 0 1rem; color: rgba(255, 255, 255, .75); line-height: 1.5; }
.rs-sub__row { display: flex; flex-wrap: wrap; gap: .6rem; }
.rs-sub__row input { flex: 1 1 200px; padding: .8rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(10, 11, 46, .5); color: #fff; font-size: 1rem; }
.rs-sub__row input::placeholder { color: rgba(255, 255, 255, .5); }
.rs-sub .rs-sub__msg { margin: .8rem 0 0; font-weight: 600; color: var(--cyan); }
.rs-sub .rs-sub__msg.is-err { color: #ffb4c2; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
    .rs-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rs-grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rs-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .rs-hero__in, .rs-feat, .rs-guide__in, .rs-end__in { grid-template-columns: 1fr; }
    .rs-orbit { --size: min(84vw, 420px); --r: calc(var(--size) * .35); }
    .rs-rings--orbit { width: calc(var(--size) * 1.5); }
    .rs-drift--2, .rs-drift--4, .rs-drift--5, .rs-drift--6 { display: none; }
    .rs-guide .rs-head { position: static; }
    .rs-order__say { grid-template-columns: 1fr; }
    .rs-scroll { display: none; }
}
@media (max-width: 640px) {
    .rs-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rs-grid-cards, .rs-flow { grid-template-columns: 1fr; }
    .rs-pipe { grid-template-columns: 1fr 1fr; } .rs-pipe::before, .rs-pipe__pulse { display: none; }
    .rs-pipe__n:nth-child(even) { transform: none; }
    .rs-drift { display: none; }
    .rs-node__in { padding: .4rem .8rem; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
    .rs-page *, .rs-page *::before, .rs-page *::after { animation: none !important; transition: none !important; }
    .rs-typing-cursor { opacity: 1; } .rs-steps li { opacity: 1; transform: none; }
}
/* ================================================================
   8. FROM THE BLOG  (added)
   ================================================================ */
.rs-blogs { padding: clamp(4rem, 9vh, 6.5rem) 0; background: var(--paper); scroll-margin-top: 70px; }
.rs-head--blog { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; max-width: none; flex-wrap: wrap; }
.rs-head--blog > div { max-width: 46rem; }
.rs-head--blog h2 { margin-top: .9rem; }
.rs-head--blog p { margin-top: .9rem; }
.rs-tag--blog { background: linear-gradient(90deg, #B217BA, #2A7BFF); }

.rs-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.1rem, 2vw, 1.7rem); }

.rs-blog {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: .7rem;
    padding: 1.55rem 1.5rem 1.35rem;
    border-radius: 18px;
    background: #fff; border: 1px solid var(--line);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.rs-blog::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, #B217BA, #2A7BFF);
}
.rs-blog:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(74, 18, 140, .16); }

.rs-blog__meta { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.rs-blog__cat {
    padding: .24rem .75rem; border-radius: 999px;
    font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: #fff; background: linear-gradient(90deg, #B217BA, #2A7BFF);
}
.rs-blog time { font-size: .88rem; color: rgba(10, 11, 46, .55); }
.rs-blog h3 { font-size: 1.28rem; line-height: 1.28; letter-spacing: -.01em; color: var(--ink); }
.rs-blog p { font-size: 1rem; line-height: 1.55; color: rgba(10, 11, 46, .68); }
.rs-blog__go { margin-top: auto; padding-top: .6rem; font-size: .95rem; font-weight: 600; color: var(--ink); }
.rs-blog__go::after { content: "\2192"; display: inline-block; margin-left: .4em; transition: transform .3s var(--ease); }
.rs-blog:hover .rs-blog__go::after { transform: translateX(5px); }

@media (max-width: 980px) { .rs-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rs-blog-grid { grid-template-columns: 1fr; } }

/* ================================================================
   9. BRAND BUTTON COLOURS — match the other pages
   (the site's CTA gradient is purple→blue: style.css .quote-btn and
    the career/solutions pages. The old solid button here was
    cyan→orange, which stood out from the rest of the website.)
   ================================================================ */
.rs-btn--solid {
    color: #fff;
    background: linear-gradient(90deg, #B217BA, #2A7BFF);
    box-shadow: 0 14px 36px rgba(122, 26, 214, .35);
}
.rs-btn--solid:hover {
    transform: translateY(-3px);
    background: linear-gradient(90deg, #2A7BFF, #B217BA);
    box-shadow: 0 20px 48px rgba(42, 123, 255, .42);
}
.rs-btn--dark { color: #fff; }
.rs-btn--line:hover { border-color: #B217BA; color: #B217BA; }