/* =========================================================================
   Rush Mind — modern purple layer (Nov 2026)
   Loaded AFTER styles.css on every public page. Unifies the brand on one
   purple palette, the ladder logo, and a cleaner, calmer layout.
   ========================================================================= */

:root {
  --rm-ink: #0d0a17;
  --rm-ink-2: #130e24;
  --rm-surface: #1a1430;
  --rm-surface-2: #211941;
  --rm-line: rgba(177, 140, 254, 0.16);
  --rm-line-strong: rgba(177, 140, 254, 0.3);
  --rm-900: #2c1376;
  --rm-800: #371a94;
  --rm-700: #4d22b3;
  --rm-500: #874efe;
  --rm-300: #b18cfe;
  --rm-100: #e1cdff;
  --rm-text: #f5f2ff;
  --rm-muted: #b9b2cf;
  --rm-grad: linear-gradient(135deg, #874efe 0%, #4d22b3 100%);
  --rm-radius: 18px;
  --rm-radius-sm: 12px;
  --rm-shadow: 0 20px 50px rgba(5, 2, 15, 0.45);

  /* re-point legacy tokens so every older rule inherits the purple theme */
  --color-bg: var(--rm-ink);
  --color-surface: var(--rm-surface);
  --color-text: var(--rm-text);
  --color-text-muted: var(--rm-muted);
  --color-accent: var(--rm-300);
  --color-accent-alt: var(--rm-500);
  --color-accent-hover: var(--rm-100);
  --color-border: var(--rm-line);
  --footer-bar: var(--rm-900);
  --glass-dark: rgba(13, 10, 23, 0.72);
  --glass-edge: var(--rm-line);
}

body {
  background: var(--rm-ink);
  color: var(--rm-text);
}

::selection { background: rgba(135, 78, 254, 0.45); color: #fff; }

a { color: var(--rm-300); }
a:hover { color: var(--rm-100); }

:focus-visible { outline: 2px solid var(--rm-300) !important; outline-offset: 3px; }

/* ---------- Header (all pages): dark purple glass ---------- */
.site-header,
.page-home .site-header--immersive {
  position: sticky;
  top: 0;
  background: rgba(13, 10, 23, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--rm-line);
  box-shadow: none;
  min-height: calc(68px + env(safe-area-inset-top));
}
.page-home .site-header--immersive { position: fixed; }
.page-home #content { padding-top: calc(68px + env(safe-area-inset-top)); }
.site-header--scrolled,
.page-home .site-header--immersive.site-header--scrolled {
  background: rgba(13, 10, 23, 0.94);
}
.logo-img,
.page-home .site-header--immersive .logo-img {
  height: 36px;
  max-width: none;
  filter: none;
}
.nav-links a,
.nav-portal-link,
.page-home .site-header--immersive .nav-links a {
  color: var(--rm-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-portal-link:hover,
.page-home .site-header--immersive .nav-links a:hover { color: #fff; }
.nav-toggle { color: #fff; }

.nav-primary-cta,
.page-home .site-header--immersive .nav-primary-cta {
  background: var(--rm-grad);
  color: #fff !important;
  border: 0;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 0.55rem 1.2rem;
  box-shadow: 0 6px 20px rgba(135, 78, 254, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.nav-primary-cta:hover,
.page-home .site-header--immersive .nav-primary-cta:hover {
  background: var(--rm-grad);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(135, 78, 254, 0.5);
}

@media (max-width: 768px) {
  .site-header,
  .page-home .site-header--immersive { min-height: calc(58px + env(safe-area-inset-top)); }
  .page-home #content { padding-top: calc(58px + env(safe-area-inset-top)); }
  .logo-img,
  .page-home .site-header--immersive .logo-img { height: 28px; }
  .primary-nav,
  .page-home .site-header--immersive .primary-nav {
    background: rgba(13, 10, 23, 0.98);
    border-bottom: 1px solid var(--rm-line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4);
  }
  .primary-nav .nav-links { padding: 0.25rem 1.25rem 1rem; }
  .primary-nav .nav-links li,
  .page-home .site-header--immersive .primary-nav .nav-links li { border-bottom-color: var(--rm-line); }
  .nav-primary-cta { padding: 0.45rem 0.95rem; font-size: 13px; }
}
@media (max-width: 400px) {
  .logo-img,
  .page-home .site-header--immersive .logo-img { height: 24px; }
}

/* ---------- Buttons ---------- */
.btn {
  background: var(--rm-grad);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.75rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(135, 78, 254, 0.3);
}
.btn:hover {
  background: var(--rm-grad);
  color: #fff;
  box-shadow: 0 12px 30px rgba(135, 78, 254, 0.45);
}
.btn-outline,
.btn--ghost,
.about-block .btn-outline,
.cta-section .btn-outline {
  background: transparent;
  color: var(--rm-text);
  border: 1px solid var(--rm-line-strong);
  box-shadow: none;
}
.btn-outline:hover,
.btn--ghost:hover,
.about-block .btn-outline:hover,
.cta-section .btn-outline:hover {
  background: rgba(135, 78, 254, 0.14);
  border-color: var(--rm-300);
  color: #fff;
}

/* ---------- Type ---------- */
.section-title,
#coaching .section-title,
#trust .section-title,
.dedication-section .section-title,
.about-block .section-title {
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.rm-eyebrow {
  display: inline-block;
  font-family: var(--font-tag);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-300);
  margin: 0 0 1rem;
}

/* ---------- Clean sections: drop the busy photo plates ---------- */
.section--coaching__pan,
.section--trust__pan,
.dedication-section__pan,
.cta-with-bg__pan,
.about-block__bg {
  display: none !important;
}
.section--coaching,
.section--trust,
.dedication-section,
.about-block,
.cta-section,
.cta-with-bg {
  background: var(--rm-ink) !important;
  border: 0 !important;
}
.section--coaching::after,
.section--trust::after,
.section--trust::before,
.dedication-section::before,
.dedication-section::after,
.about-block::before,
.about-block::after,
.cta-with-bg::before,
.cta-with-bg::after { display: none !important; }

.section--coaching,
.section--trust,
.dedication-section,
.about-block { padding: clamp(4rem, 9vw, 7rem) 1.5rem; }
.section--trust { background: var(--rm-ink-2) !important; }
.about-block { background: var(--rm-ink-2) !important; }

.trust-section__lead { color: var(--rm-muted); }

/* ---------- Cards: one consistent style ---------- */
.coaching-steps { gap: 1.25rem; }
.step-card,
.step-card[class*="step-card--"] {
  position: relative;
  background: linear-gradient(180deg, var(--rm-surface-2) 0%, var(--rm-surface) 100%) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-radius);
  padding: 2rem 1.75rem;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.step-card::before,
.step-card[class*="step-card--"]::before {
  content: '' !important;
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--rm-grad) !important;
  background-image: var(--rm-grad) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  opacity: 0.85;
  animation: none !important;
  transform: none !important;
}
.step-card::after,
.step-card[class*="step-card--"]::after { display: none !important; }
.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--rm-line-strong) !important;
  box-shadow: var(--rm-shadow);
}
.step-card .step-num,
.step-card[class*="step-card--"] .step-num {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--rm-300) !important;
  background: none;
  -webkit-text-fill-color: currentColor;
  margin: 0 0 0.75rem;
}
.step-card h3,
.step-card[class*="step-card--"] h3 {
  color: #fff !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}
.step-card p,
.step-card[class*="step-card--"] p {
  color: var(--rm-muted) !important;
  font-size: 0.975rem;
  line-height: 1.7;
  border: 0 !important;
}
.step-card a { color: var(--rm-300) !important; }

/* ---------- Dedication list ---------- */
.dedication-list { gap: 1rem; }
.dedication-item {
  background: var(--rm-surface);
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius);
  padding: 1.5rem;
  box-shadow: none;
}
.dedication-icon {
  background: rgba(135, 78, 254, 0.14) !important;
  color: var(--rm-300) !important;
  border: 1px solid var(--rm-line-strong) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
.dedication-content h3 { color: #fff; }
.dedication-content p { color: var(--rm-muted); }

/* ---------- About + CTA ---------- */
.about-block p { color: var(--rm-muted); }
.about-block .lead { color: var(--rm-text); }
.cta-section {
  padding: clamp(4rem, 8vw, 6rem) 1.5rem !important;
}
.cta-section__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(177, 140, 254, 0.25) 0%, transparent 55%),
    linear-gradient(135deg, var(--rm-800) 0%, var(--rm-900) 100%);
  border: 1px solid var(--rm-line-strong);
  box-shadow: var(--rm-shadow);
  text-align: center;
}
.cta-section h2 { color: #fff !important; font-weight: 600; letter-spacing: -0.02em; }
.cta-section .btn,
.cta-section .btn-outline {
  background: #fff;
  color: var(--rm-900);
  border: 0;
}
.cta-section .btn:hover,
.cta-section .btn-outline:hover { background: var(--rm-100); color: var(--rm-900); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--rm-ink-2);
  border-top: 1px solid var(--rm-line);
}
.footer-top { background: transparent; }
.footer-logo img { height: 40px; width: auto; }
.footer-legal a,
.site-footer p,
.site-footer p a,
.footer-company,
.footer-top .link-button { color: var(--rm-muted); }
.footer-legal a:hover,
.site-footer p a:hover,
.footer-top .link-button:hover { color: #fff; }
.footer-bottom {
  background: var(--rm-ink);
  border-top: 1px solid var(--rm-line);
  color: var(--rm-muted);
}

/* ---------- Inner pages: legal, FAQ, forms, about ---------- */
.legal-content h2,
.faq-page .faq-page__h2 { color: #fff; }
.legal-content h3 { color: var(--rm-100); }
.legal-content p,
.legal-content li { color: var(--rm-muted); }
.faq-item {
  background: var(--rm-surface);
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius-sm);
}
.faq-item[open] { border-color: var(--rm-line-strong); }
.faq-item summary { color: #fff; }
.legal-table th { background: var(--rm-surface-2); color: #fff; }
.legal-table td { border-color: var(--rm-line); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], input[type="date"], select, textarea {
  background: var(--rm-ink-2);
  color: var(--rm-text);
  border: 1px solid var(--rm-line-strong);
  border-radius: var(--rm-radius-sm);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--rm-500);
  box-shadow: 0 0 0 3px rgba(135, 78, 254, 0.25);
  outline: none;
}

.cookie-banner__inner,
.cookie-dialog {
  background: var(--rm-surface);
  border: 1px solid var(--rm-line-strong);
  border-radius: var(--rm-radius);
  color: var(--rm-text);
}

/* =========================================================================
   Home hero (new): clean two-column intro with the ladder mark
   ========================================================================= */
.rm-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(4rem, 10vw, 8rem) 1.5rem clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(135, 78, 254, 0.32) 0%, transparent 65%),
    radial-gradient(50% 60% at 10% 0%, rgba(77, 34, 179, 0.35) 0%, transparent 70%),
    var(--rm-ink);
  border-bottom: 1px solid var(--rm-line);
}
.rm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(177, 140, 254, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 140, 254, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 0%, transparent 75%);
}
.rm-hero__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.rm-hero__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
  color: #fff;
}
.rm-hero__title span {
  background: linear-gradient(90deg, var(--rm-300) 0%, var(--rm-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rm-hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--rm-muted);
  max-width: 36rem;
  margin: 0 0 2rem;
}
.rm-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.rm-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--rm-muted);
}
.rm-hero__proof li { display: flex; align-items: center; gap: 0.5rem; }
.rm-hero__proof li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rm-500);
  box-shadow: 0 0 10px var(--rm-500);
}
.rm-hero__mark {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 40px;
  background: linear-gradient(160deg, rgba(77, 34, 179, 0.55) 0%, rgba(28, 11, 82, 0.55) 100%);
  border: 1px solid var(--rm-line-strong);
  box-shadow: 0 30px 80px rgba(77, 34, 179, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.rm-hero__mark img {
  width: auto;
  height: 74%;
  filter: drop-shadow(0 10px 30px rgba(135, 78, 254, 0.45));
  animation: rm-float 7s ease-in-out infinite;
}
@keyframes rm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .rm-hero__mark img { animation: none; }
}
@media (max-width: 860px) {
  .rm-hero__inner { grid-template-columns: 1fr; }
  .rm-hero__mark { order: -1; width: 180px; border-radius: 28px; justify-self: start; }
}

/* Restored opening animation (ladder slide + RUSH MIND fade), purple-tinted */
.hero-cinematic__veil {
  background:
    radial-gradient(ellipse 85% 70% at 50% 55%, rgba(77, 34, 179, 0.3) 0%, rgba(13, 10, 23, 0.72) 68%, rgba(13, 10, 23, 0.95) 100%),
    linear-gradient(180deg, rgba(44, 19, 118, 0.4) 0%, rgba(13, 10, 23, 0.85) 100%);
}
.hero-cinematic__glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(135, 78, 254, 0.55) 0%, transparent 62%);
  opacity: 0.5;
}
.page-home .hero-cinematic::after {
  background: linear-gradient(to bottom, transparent, var(--rm-ink));
}

/* Intro sits below the animation: one centred column */
.hero-cinematic + .rm-hero {
  border-top: 0;
  padding-top: clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(135, 78, 254, 0.22) 0%, transparent 70%),
    var(--rm-ink);
}
.hero-cinematic + .rm-hero .rm-hero__inner {
  grid-template-columns: 1fr;
  max-width: 820px;
  text-align: center;
}
.hero-cinematic + .rm-hero .rm-hero__lead { margin-left: auto; margin-right: auto; }
.hero-cinematic + .rm-hero .rm-hero__actions,
.hero-cinematic + .rm-hero .rm-hero__proof { justify-content: center; }

/* Section header used on home */
.rm-section-head {
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
}
.rm-section-head .section-title { margin-bottom: 0.75rem; padding: 0; }
.rm-section-head p { color: var(--rm-muted); margin: 0; }

/* ---------- Menu order (desktop): Blog · About Rush Mind · Apps · Client Login · Get Started · Privacy & Engagement ---------- */
@media (min-width: 769px) {
  .header-nav-cluster > .primary-nav,
  .header-nav-cluster .primary-nav > .nav-links { display: contents !important; }
  .header-nav-cluster .nav-links > li { order: 1 !important; list-style: none; }
  .header-nav-cluster > .nav-primary-cta { order: 2 !important; }
  .header-nav-cluster .nav-links > li.nav-links__after-cta { order: 3 !important; }
  .header-nav-cluster > .nav-toggle { order: 4 !important; }
}
@media (min-width: 769px) and (max-width: 1180px) {
  .header-nav-cluster { gap: 1.1rem !important; }
  .nav-links a, .nav-portal-link { font-size: 13px !important; }
  .site-header .logo-img { height: 30px !important; }
}
@media (min-width: 769px) and (max-width: 940px) {
  .header-nav-cluster { gap: 0.8rem !important; }
  .nav-links a, .nav-portal-link { font-size: 12px !important; }
  .nav-primary-cta { padding: 0.45rem 0.85rem !important; font-size: 12px !important; }
  .site-header .logo-img { height: 24px !important; }
}

/* "My dedication to you": drop the legacy outline + heavy shadow (looked jagged on the clean background) */
.dedication-section .section-title {
  -webkit-text-stroke: 0 !important;
  text-stroke: 0;
  text-shadow: none !important;
  color: #fff !important;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================================
   About page (about-james.html): purple scheme, no lime leftovers
   ========================================================================= */
.page-about-james { background: var(--rm-ink); }

/* Hero */
.about-page-hero__scrim {
  background:
    linear-gradient(180deg, rgba(44, 19, 118, 0.25) 0%, rgba(13, 10, 23, 0.6) 45%, rgba(13, 10, 23, 0.94) 100%) !important;
}
.about-page-hero__eyebrow { color: var(--rm-300) !important; letter-spacing: 0.14em; }
.about-page-hero__inner h1 { color: #fff; font-weight: 600; letter-spacing: -0.03em; }
.about-page-hero__tagline { color: var(--rm-muted) !important; }

/* Profile + intro */
.about-page-lead { color: var(--rm-text) !important; }
.about-page-profile__body p { color: var(--rm-muted); }
.about-page-profile__figure {
  background: var(--rm-surface) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-radius);
}
.about-page-blurb {
  border-left: 3px solid var(--rm-500) !important;
  background: rgba(135, 78, 254, 0.06);
  border-radius: 0 var(--rm-radius-sm) var(--rm-radius-sm) 0;
}
.about-page-blurb p { color: var(--rm-muted) !important; }
.about-page-blurb cite { color: var(--rm-100) !important; }
.about-page-quals {
  border: 1px solid var(--rm-line-strong) !important;
  background: linear-gradient(180deg, var(--rm-surface-2) 0%, var(--rm-surface) 100%) !important;
  border-radius: var(--rm-radius);
}
.about-page-quals strong { color: var(--rm-300) !important; }

/* Slideshow */
.about-page-profile__slideshow .about-page-profile__slideshow-viewport {
  background: var(--rm-ink-2) !important;
  border-radius: var(--rm-radius);
}
.about-page-profile__slideshow-btn {
  background: rgba(13, 10, 23, 0.7) !important;
  border-color: var(--rm-line-strong) !important;
  color: #fff;
}
.about-page-profile__slideshow-btn:hover {
  background: rgba(77, 34, 179, 0.85) !important;
  border-color: var(--rm-300) !important;
  color: #fff !important;
}
.about-page-profile__slideshow-dot { background: rgba(177, 140, 254, 0.3) !important; }
.about-page-profile__slideshow-dot--active { background: var(--rm-300) !important; }

/* Social links */
.about-social__link {
  background: var(--rm-surface) !important;
  border: 1px solid var(--rm-line) !important;
}
.about-social__link:hover {
  background: rgba(135, 78, 254, 0.14) !important;
  border-color: var(--rm-300) !important;
  color: #fff !important;
}
.about-social__icon { color: var(--rm-300) !important; }

/* Section titles on this page: white, like the rest of the site */
.about-page-awards__title,
.about-page-credits__title {
  color: #fff !important;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.about-page-awards__lead,
.about-page-credits__intro { color: var(--rm-muted) !important; }
.about-page-awards__lead strong { color: var(--rm-text) !important; }

/* Awards */
.about-awards-list__item {
  background: var(--rm-surface) !important;
  border: 1px solid var(--rm-line) !important;
  border-left: 4px solid var(--rm-500) !important;
  border-radius: var(--rm-radius-sm);
}
.about-awards-list__fest { color: #fff !important; }
.about-awards-list__meta { color: var(--rm-muted) !important; }
.about-awards-list__meta cite { color: var(--rm-100) !important; }

/* Credits */
.about-credits-subheading {
  color: #fff !important;
  border-bottom: 1px solid var(--rm-line-strong) !important;
}
.about-credits-role {
  background: var(--rm-surface) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-radius);
}
.about-credits-role__name { color: var(--rm-300) !important; }
.about-credits-list li {
  background: rgba(135, 78, 254, 0.05) !important;
  border-left: 3px solid rgba(135, 78, 254, 0.55) !important;
  color: var(--rm-muted) !important;
  border-radius: 0 8px 8px 0;
}
.about-credits-list--upcoming li { border-left-color: var(--rm-300) !important; }
.about-credits__title { color: #fff !important; }
.about-credits__type { color: var(--rm-muted) !important; }
.about-credits__year { color: var(--rm-300) !important; }

/* Home hero: H1 carries the search phrase, styled as the eyebrow */
h1.rm-eyebrow { font-size: 0.8rem; line-height: 1.5; max-width: 40rem; margin-left: auto; margin-right: auto; }
p.rm-hero__title { font-size: clamp(2.6rem, 6.4vw, 5rem); }

/* About page: "About Rush Mind Coaching" intro above James's banner */
.rm-about-intro {
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(135, 78, 254, 0.25) 0%, transparent 70%),
    var(--rm-ink);
  border-bottom: 1px solid var(--rm-line);
  text-align: center;
}
.rm-about-intro__inner { max-width: 860px; margin: 0 auto; }
.rm-about-intro__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1.25rem;
}
.rm-about-intro__title span {
  background: linear-gradient(90deg, var(--rm-300) 0%, var(--rm-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rm-about-intro__lead { color: var(--rm-muted); font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.75; margin: 0 auto 2rem; max-width: 46rem; }
.rm-about-intro__pillars {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
}
.rm-about-intro__pillars li {
  background: linear-gradient(180deg, var(--rm-surface-2) 0%, var(--rm-surface) 100%);
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius);
  padding: 1.25rem 1.25rem 1.35rem;
  position: relative;
  overflow: hidden;
}
.rm-about-intro__pillars li::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--rm-grad);
}
.rm-about-intro__pillars strong { display: block; color: #fff; font-family: var(--font-heading); font-weight: 600; margin-bottom: 0.35rem; }
.rm-about-intro__pillars span { color: var(--rm-muted); font-size: 0.95rem; line-height: 1.6; }
.rm-about-intro__note { color: var(--rm-muted); font-size: 0.9rem; margin: 0 0 1.75rem; }
.rm-about-intro__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.rm-about-intro__actions .fa-instagram { margin-right: 0.35rem; }
@media (max-width: 720px) {
  .rm-about-intro__pillars { grid-template-columns: 1fr; }
}
/* James's banner name is now an H2 (page H1 is the Rush Mind intro) */
.about-page-hero__inner h2.about-page-hero__name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

/* =========================================================================
   Consent card (Nov 2026): the cookie banner as a floating "title card" in
   the cinematic style — purple glass, the brand ladder's colour line, and a
   slow rise into focus. Accept and Reject are styled identically (PECR:
   rejecting must be as easy and as prominent as accepting).
   ========================================================================= */
:root {
  --rm-ladder-line: linear-gradient(90deg, #2fb8ff 0%, #22d3e6 16%, #2ee6b0 32%, #8be36a 48%, #e8e64a 62%, #ffc23c 74%, #ff8a2e 87%, #ff4a36 100%);
  --rm-consent-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1002;
  display: flex;
  justify-content: center;
  padding: 0 max(16px, env(safe-area-inset-left, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px));
  background: none;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
}
.cookie-banner__inner {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 1.6rem 1.7rem 1.4rem;
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(135, 78, 254, 0.22) 0%, transparent 55%),
    linear-gradient(160deg, rgba(42, 30, 84, 0.82) 0%, rgba(13, 10, 23, 0.86) 100%);
  border: 1px solid rgba(177, 140, 254, 0.28);
  box-shadow:
    0 40px 90px rgba(5, 2, 15, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  color: var(--rm-text, #f5f2ff);
  pointer-events: auto;
  animation: rm-consent-in 1.3s var(--rm-consent-ease) both;
}
.page-home .cookie-banner__inner { animation-delay: 1.8s; }   /* after the opening titles */

/* the ladder's colour line along the top edge, with one slow sweep of light */
.cookie-banner__inner::before,
.cookie-dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--rm-ladder-line);
  box-shadow: 0 0 14px rgba(120, 220, 255, 0.45), 0 0 22px rgba(255, 140, 60, 0.25);
}
.cookie-banner__inner::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 30%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  filter: blur(1px);
  opacity: 0;
  animation: rm-consent-sweep 2.4s var(--rm-consent-ease) 0.6s both;
  pointer-events: none;
}
.page-home .cookie-banner__inner::after { animation-delay: 2.4s; }

.cookie-banner__title,
.cookie-dialog__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.7rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.cookie-banner__title::before,
.cookie-dialog__title::before {
  content: '';
  flex: none;
  width: 20px;
  height: 29px;
  background: url('/images/ladder-mark.png') center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(120, 220, 255, 0.45));
}
.cookie-banner__text {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #d6cfea;
}
.cookie-banner__text a,
.cookie-dialog__desc a { color: var(--rm-300, #b18cfe); }
.cookie-banner__text a:hover,
.cookie-dialog__desc a:hover { color: #fff; }

/* buttons: Accept and Reject are twins */
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.cookie-banner__actions .btn:not(.btn--ghost),
.cookie-dialog__actions .btn:not(.btn--ghost) {
  flex: 1 1 170px;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--rm-grad, linear-gradient(135deg, #874efe 0%, #4d22b3 100%));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(135, 78, 254, 0.35), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transition: transform 0.25s var(--rm-consent-ease), box-shadow 0.25s var(--rm-consent-ease);
}
.cookie-banner__actions .btn:not(.btn--ghost):hover,
.cookie-dialog__actions .btn:not(.btn--ghost):hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(135, 78, 254, 0.5), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.cookie-banner__actions .btn--ghost,
.cookie-dialog__actions .btn--ghost {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--rm-300, #b18cfe);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner__actions .btn--ghost:hover,
.cookie-dialog__actions .btn--ghost:hover { color: #fff; background: none; }

/* ---------- preferences dialog ---------- */
.cookie-dialog {
  position: fixed;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 1.8rem 1.7rem 1.5rem;
  border-radius: 22px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(135, 78, 254, 0.2) 0%, transparent 55%),
    linear-gradient(160deg, rgba(36, 26, 72, 0.96) 0%, rgba(13, 10, 23, 0.97) 100%);
  border: 1px solid rgba(177, 140, 254, 0.28);
  box-shadow: 0 50px 120px rgba(5, 2, 15, 0.7);
  color: var(--rm-text, #f5f2ff);
  overflow: auto;
}
.cookie-dialog[open] { animation: rm-consent-in 0.9s var(--rm-consent-ease) both; }
.cookie-dialog::backdrop {
  background: radial-gradient(ellipse at 50% 60%, rgba(44, 19, 118, 0.45), rgba(8, 5, 18, 0.82));
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
}
.cookie-dialog__fieldset {
  margin: 0 0 0.9rem;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid rgba(177, 140, 254, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.cookie-dialog__legend {
  padding: 0 0.4rem;
  font-family: var(--font-tag);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rm-300, #b18cfe);
}
.cookie-dialog__desc { margin: 0 0 0.85rem; font-size: 0.86rem; line-height: 1.6; color: #cfc7e6; }
.cookie-dialog__desc[data-consent-status] { margin: 0.75rem 0 0; font-size: 0.8rem; color: var(--rm-muted, #b9b2cf); }
.cookie-dialog__desc[data-consent-status]:empty { display: none; }
.cookie-dialog__row { align-items: center; gap: 0.8rem; font-size: 0.92rem; color: #fff; cursor: pointer; }
.cookie-dialog__row--muted { opacity: 0.8; cursor: default; }
.cookie-dialog__actions { gap: 0.65rem; margin-top: 1rem; }
.cookie-dialog__fineprint { color: var(--rm-muted, #b9b2cf); }

/* checkboxes become switches; the "always on" one glows the ladder's green */
.cookie-dialog__row input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  position: relative;
  width: 46px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  background: rgba(177, 140, 254, 0.18);
  box-shadow: inset 0 0 0 1px rgba(177, 140, 254, 0.3);
  cursor: pointer;
  transition: background 0.3s var(--rm-consent-ease), box-shadow 0.3s;
}
.cookie-dialog__row input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--rm-consent-ease);
}
.cookie-dialog__row input[type="checkbox"]:checked {
  background: var(--rm-grad, linear-gradient(135deg, #874efe 0%, #4d22b3 100%));
  box-shadow: 0 0 14px rgba(135, 78, 254, 0.55);
}
.cookie-dialog__row input[type="checkbox"]:checked::after { transform: translateX(20px); }
.cookie-dialog__row input[type="checkbox"]:disabled { cursor: default; }
.cookie-dialog__row input[type="checkbox"]:disabled:checked {
  background: linear-gradient(135deg, #2ee6b0 0%, #22a6c8 100%);
  box-shadow: 0 0 12px rgba(46, 230, 176, 0.4);
}
.cookie-dialog__row input[type="checkbox"]:focus-visible { outline: 2px solid var(--rm-300, #b18cfe); outline-offset: 3px; }

@keyframes rm-consent-in {
  from { opacity: 0; transform: translate3d(0, 40px, 0) scale(0.96); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes rm-consent-sweep {
  0%   { opacity: 0; transform: translateX(-30%); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(330%); }
}

@media (max-width: 768px) {
  .cookie-banner { padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .cookie-banner__inner { padding: 1.35rem 1.2rem 1.15rem; border-radius: 18px; max-height: calc(100vh - 24px); }
  .cookie-banner__text { font-size: 0.86rem; }
  .cookie-banner__actions { flex-direction: row; }
  .cookie-banner__actions .btn:not(.btn--ghost) { width: auto; flex: 1 1 130px; }
  .cookie-banner__actions .btn--ghost { width: 100%; min-height: 40px; }
  .page-home .cookie-banner__inner { animation-delay: 1s; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner__inner,
  .cookie-dialog[open] { animation: none; }
  .cookie-banner__inner::after { display: none; }
  .cookie-banner__actions .btn:not(.btn--ghost):hover { transform: none; }
}

/* ---------- "Change your mind" widget: a small glass button, ringed in the ladder's colours ---------- */
.consent-fab {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(160deg, rgba(42, 30, 84, 0.88), rgba(13, 10, 23, 0.9)) padding-box,
    var(--rm-ladder-line) border-box;
  color: #e1cdff;
  box-shadow: 0 10px 30px rgba(5, 2, 15, 0.5), 0 0 16px rgba(135, 78, 254, 0.25);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 0.3s, gap 0.45s var(--rm-consent-ease), box-shadow 0.3s, transform 0.3s var(--rm-consent-ease);
  animation: rm-consent-in 1s var(--rm-consent-ease) both;
}
.page-home .consent-fab { animation-delay: 2.2s; }
.consent-fab[hidden] { display: none !important; }
.consent-fab svg { flex: none; }
.consent-fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.5s var(--rm-consent-ease), opacity 0.3s;
}
.consent-fab:hover,
.consent-fab:focus-visible {
  opacity: 1;
  gap: 0.5rem;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(5, 2, 15, 0.55), 0 0 22px rgba(135, 78, 254, 0.45);
}
.consent-fab:hover .consent-fab__label,
.consent-fab:focus-visible .consent-fab__label { max-width: 140px; opacity: 1; }
.consent-fab:focus-visible { outline: 2px solid var(--rm-300, #b18cfe); outline-offset: 3px; }
@media (max-width: 768px) {
  .consent-fab { left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); height: 40px; min-width: 40px; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .consent-fab { animation: none; transition: none; }
  .consent-fab:hover { transform: none; }
}

/* ---------- Consent card v2: wider, no scrollbar ----------
   The light sweep travelled past the card's edge and, with overflow:auto,
   left a permanent horizontal scrollbar. Clip it, and lay the card out wide:
   words on the left, choices on the right. */
.cookie-banner__inner {
  width: min(980px, 100%);
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title   actions"
    "text    actions";
  column-gap: 2rem;
  align-items: center;
  padding: 1.5rem 1.8rem 1.4rem;
}
.cookie-banner__title { grid-area: title; }
.cookie-banner__text { grid-area: text; margin: 0; max-width: 62ch; }
.cookie-banner__actions {
  grid-area: actions;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  min-width: 210px;
}
.cookie-banner__actions .btn:not(.btn--ghost) { flex: 0 0 auto; width: 100%; }
.cookie-banner__actions .btn--ghost { width: 100%; min-height: 36px; padding: 0.4rem 1rem; }
@media (max-width: 860px) {
  .cookie-banner__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "text" "actions";
    row-gap: 1.1rem;
  }
  .cookie-banner__title { margin-bottom: -0.4rem; }
  .cookie-banner__actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .cookie-banner__actions .btn:not(.btn--ghost) { flex: 1 1 150px; width: auto; }
}
