/* ==========================================================================
   BullishMarketMind (BMM)
   Custom brand layer — sits on top of Tailwind utilities.
   Palette: Royal Purple #4B006E · Bullish Green #6EDC16
   No blue, red, orange, gold or cyan anywhere in this file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --bmm-purple: #4B006E;
  --bmm-purple-deep: #260038;
  --bmm-purple-dark: #35004F;
  --bmm-purple-soft: #7A3F9B;
  --bmm-purple-tint: #EFE3F6;
  --bmm-purple-tint-2: #F7F1FB;

  --bmm-green: #6EDC16;
  --bmm-green-mid: #55A900;
  --bmm-green-dark: #3F8500;
  --bmm-green-tint: #F4FCEB;
  --bmm-green-tint-2: #E7F8D5;

  /* Neutrals */
  --bmm-ink: #14121A;
  --bmm-charcoal: #2A272E;
  --bmm-slate: #4A4650;
  --bmm-muted: #6E6976;
  --bmm-warm: #FAF8F5;
  --bmm-cream: #F5F1EA;
  --bmm-paper: #FFFEFC;
  --bmm-white: #FFFFFF;

  /* Structure */
  --bmm-border: rgba(38, 0, 56, 0.12);
  --bmm-border-strong: rgba(38, 0, 56, 0.22);
  --bmm-border-light: rgba(255, 255, 255, 0.14);
  --bmm-shadow-soft: 0 18px 48px -32px rgba(38, 0, 56, 0.30);
  --bmm-shadow-lift: 0 34px 80px -44px rgba(38, 0, 56, 0.40);

  /* Motion */
  --bmm-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --bmm-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --bmm-dur: 520ms;
  --bmm-dur-slow: 900ms;

  /* Metrics */
  --nav-h: 88px;
  --nav-h-scrolled: 68px;
  --radius: 4px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h-scrolled) + 24px);
}

body {
  margin: 0;
  background-color: var(--bmm-paper);
  color: var(--bmm-charcoal);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.bmm-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }

::selection {
  background: var(--bmm-green);
  color: var(--bmm-purple-deep);
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bmm-warm); }
::-webkit-scrollbar-thumb {
  background: rgba(75, 0, 110, 0.32);
  border: 3px solid var(--bmm-warm);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(75, 0, 110, 0.55); }

/* Focus — accessible and on-brand */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--bmm-green);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. Typography scale
   -------------------------------------------------------------------------- */
.font-display { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }

.display-1,
.display-2,
.display-3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  color: var(--bmm-purple-deep);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

.display-1 { font-size: clamp(2.85rem, 6.6vw, 6.1rem); }
.display-2 { font-size: clamp(2.25rem, 4.6vw, 4rem); }
.display-3 { font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.1; }

.display-1 em,
.display-2 em,
.display-3 em { font-style: italic; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: 'Manrope', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--bmm-eyebrow, 0.24em);
  text-transform: uppercase;
  color: var(--bmm-purple);
  line-height: 1;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}
.eyebrow--bare::before { display: none; }
.eyebrow--light { color: rgba(255, 255, 255, 0.72); }
.eyebrow--green { color: var(--bmm-green-dark); }

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.78;
  color: var(--bmm-slate);
  font-weight: 400;
}

.body-sm { font-size: 0.9375rem; line-height: 1.75; }
.body-xs {
  font-size: 0.75rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* Green word-highlight used inside editorial statements */
.hl {
  color: var(--bmm-green-dark);
  position: relative;
  white-space: nowrap;
}
.hl::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.34em;
  background: rgba(110, 220, 22, 0.16);
  z-index: -1;
}

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.container-bmm {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 768px) { .container-bmm { padding-inline: 40px; } }
@media (min-width: 1280px) { .container-bmm { padding-inline: 56px; } }

.section { padding-block: clamp(72px, 9vw, 148px); }
.section--tight { padding-block: clamp(56px, 6vw, 96px); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

.hairline { border-top: 1px solid var(--bmm-border); }
.hairline-light { border-top: 1px solid var(--bmm-border-light); }

.rule {
  height: 1px;
  width: 100%;
  background: var(--bmm-border);
  border: 0;
  margin: 0;
}

.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }

/* Surfaces */
.surface-warm { background: var(--bmm-warm); }
.surface-cream { background: var(--bmm-cream); }
.surface-deep { background: var(--bmm-purple-deep); color: rgba(255, 255, 255, 0.86); }
.surface-deep .display-1,
.surface-deep .display-2,
.surface-deep .display-3 { color: #fff; }
.surface-deep .lead { color: rgba(255, 255, 255, 0.72); }

.glass {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.glass-deep {
  background: rgba(38, 0, 56, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--bmm-purple);
  --btn-bd: var(--bmm-border-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 1.02em 1.7em;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 380ms var(--bmm-ease),
              color 380ms var(--bmm-ease),
              border-color 380ms var(--bmm-ease),
              transform 380ms var(--bmm-ease);
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn__arrow {
  transition: transform 420ms var(--bmm-ease);
  flex: none;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  --btn-bg: var(--bmm-purple);
  --btn-fg: #fff;
  --btn-bd: var(--bmm-purple);
}
.btn--primary:hover { --btn-bg: var(--bmm-purple-deep); --btn-bd: var(--bmm-purple-deep); }

.btn--outline:hover {
  --btn-bg: var(--bmm-purple);
  --btn-fg: #fff;
  --btn-bd: var(--bmm-purple);
}

.btn--green {
  --btn-bg: var(--bmm-green);
  --btn-fg: var(--bmm-purple-deep);
  --btn-bd: var(--bmm-green);
}
.btn--green:hover { --btn-bg: #fff; --btn-fg: var(--bmm-purple-deep); --btn-bd: #fff; }

.btn--light {
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.34);
}
.btn--light:hover {
  --btn-bg: #fff;
  --btn-fg: var(--bmm-purple-deep);
  --btn-bd: #fff;
}

.btn--sm { padding: 0.82em 1.3em; font-size: 0.6875rem; }

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--bmm-purple);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 460ms var(--bmm-ease);
}
.link:hover::after { transform: scaleX(1); }
.link--light { color: #fff; }
.link--green { color: var(--bmm-green-dark); }

/* Text link with a permanent hairline (editorial style) */
.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bmm-purple);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--bmm-border-strong);
  transition: border-color 400ms var(--bmm-ease), color 400ms var(--bmm-ease);
}
.link-quiet:hover { border-color: var(--bmm-green); color: var(--bmm-green-dark); }
.link-quiet--light { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.3); }
.link-quiet--light:hover { color: var(--bmm-green); border-color: var(--bmm-green); }

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
/* Brand logo (BMM lockup) */
.bmm-logo {
  display: block;
  width: auto;
  height: 48px;
  object-fit: contain;
}
@media (min-width: 1024px) { .bmm-logo { height: 54px; } }

.bmm-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  transition: background-color 560ms var(--bmm-ease),
              box-shadow 560ms var(--bmm-ease),
              border-color 560ms var(--bmm-ease);
  border-bottom: 1px solid transparent;
}
.bmm-header .nav-inner {
  height: var(--nav-h);
  transition: height 560ms var(--bmm-ease);
}
.bmm-header.is-scrolled {
  background: rgba(255, 254, 252, 0.9);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  border-bottom-color: var(--bmm-border);
  box-shadow: 0 18px 40px -40px rgba(38, 0, 56, 0.55);
}
.bmm-header.is-scrolled .nav-inner { height: var(--nav-h-scrolled); }

/* Over the dark hero, before scroll, navigation is inverted */
.bmm-header.is-overlay:not(.is-scrolled) .nav-link,
.bmm-header.is-overlay:not(.is-scrolled) .nav-meta { color: rgba(255,255,255,0.82); }
.bmm-header.is-overlay:not(.is-scrolled) .nav-link::after { background: var(--bmm-green); }
.bmm-header.is-overlay:not(.is-scrolled) .burger-line { background: #fff; }
.bmm-header.is-overlay:not(.is-scrolled) .btn--header {
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.34);
}
.bmm-header.is-overlay:not(.is-scrolled) .btn--header:hover {
  --btn-bg: #fff;
  --btn-fg: var(--bmm-purple-deep);
  --btn-bd: #fff;
}
.bmm-header.is-overlay:not(.is-scrolled) .nav-divider { background: rgba(255, 255, 255, 0.24); }

/* While the fullscreen menu is open the header dissolves into the overlay */
.bmm-header.is-menu-open {
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}
.bmm-header.is-menu-open .btn--header { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.34); }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--bmm-charcoal);
  text-decoration: none;
  transition: color 380ms var(--bmm-ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--bmm-purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 460ms var(--bmm-ease);
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--bmm-purple); }

/* Scroll progress hairline */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--bmm-green);
  z-index: 90;
  pointer-events: none;
}

/* Burger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger-line {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--bmm-charcoal);
  transition: transform 420ms var(--bmm-ease), opacity 300ms var(--bmm-ease),
              background-color 420ms var(--bmm-ease);
}
.burger.is-open .burger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: #fff; }
.burger.is-open .burger-line:nth-child(2) { opacity: 0; }
.burger.is-open .burger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: #fff; }

/* Fullscreen mobile navigation */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bmm-purple-deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 16px) 30px 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2%);
  transition: opacity 520ms var(--bmm-ease), transform 620ms var(--bmm-ease),
              visibility 0s linear 620ms;
  overflow-y: auto;
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 520ms var(--bmm-ease), transform 620ms var(--bmm-ease),
              visibility 0s;
}
.mobile-nav__link {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.95rem;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--bmm-ease), transform 600ms var(--bmm-ease), color 300ms;
}
.mobile-nav.is-open .mobile-nav__link { opacity: 1; transform: translateY(0); }
.mobile-nav__link:hover { color: var(--bmm-green); }
.mobile-nav.is-open .mobile-nav__link:nth-child(1) { transition-delay: 90ms; }
.mobile-nav.is-open .mobile-nav__link:nth-child(2) { transition-delay: 140ms; }
.mobile-nav.is-open .mobile-nav__link:nth-child(3) { transition-delay: 190ms; }
.mobile-nav.is-open .mobile-nav__link:nth-child(4) { transition-delay: 240ms; }
.mobile-nav.is-open .mobile-nav__link:nth-child(5) { transition-delay: 290ms; }
.mobile-nav.is-open .mobile-nav__link:nth-child(6) { transition-delay: 340ms; }
.mobile-nav.is-open .mobile-nav__link:nth-child(7) { transition-delay: 390ms; }
.mobile-nav.is-open .mobile-nav__link:nth-child(8) { transition-delay: 440ms; }

.mobile-nav__patterns {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  opacity: 0.16;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7. Preloader
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bmm-purple-deep);
  transition: opacity 620ms var(--bmm-ease), visibility 0s linear 620ms;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.preloader__logo { width: auto; height: 72px; object-fit: contain; }
.preloader__track {
  position: relative;
  width: 168px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.preloader__bar {
  position: absolute;
  inset: 0;
  background: var(--bmm-green);
  transform: scaleX(0);
  transform-origin: left;
  animation: bmm-load 900ms var(--bmm-ease) forwards;
}
.preloader__label {
  font-size: 0.625rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
@keyframes bmm-load { to { transform: scaleX(1); } }

/* --------------------------------------------------------------------------
   8. Custom cursor (desktop, pointer devices only)
   -------------------------------------------------------------------------- */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 1px solid rgba(110, 220, 22, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 150;
  opacity: 0;
  transition: width 260ms var(--bmm-ease), height 260ms var(--bmm-ease),
              margin 260ms var(--bmm-ease), opacity 260ms var(--bmm-ease),
              background-color 260ms var(--bmm-ease), border-color 260ms var(--bmm-ease);
  mix-blend-mode: normal;
}
.cursor-ring.is-active { opacity: 1; }
.cursor-ring.is-hover {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  background: rgba(75, 0, 110, 0.1);
  border-color: rgba(75, 0, 110, 0.6);
}
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  background: var(--bmm-purple);
  border-radius: 50%;
  pointer-events: none;
  z-index: 151;
  opacity: 0;
  transition: opacity 260ms var(--bmm-ease);
}
.cursor-dot.is-active { opacity: 1; }

/* --------------------------------------------------------------------------
   9. Scroll reveal system
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 900ms var(--bmm-ease), transform 900ms var(--bmm-ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-fade { opacity: 0; transition: opacity 1100ms var(--bmm-ease); }
.reveal-fade.is-visible { opacity: 1; }

.reveal-left { transform: translateX(-34px); }
.reveal-right { transform: translateX(34px); }
.reveal-scale { transform: scale(0.965); }

.reveal-mask {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: opacity 900ms var(--bmm-ease), clip-path 1100ms var(--bmm-ease);
}
.reveal-mask.is-visible { opacity: 1; clip-path: inset(0 0 0 0); }

.reveal-line {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1200ms var(--bmm-ease);
}
.reveal-line.is-visible { transform: scaleX(1); }

[data-delay="1"] { transition-delay: 90ms; }
[data-delay="2"] { transition-delay: 180ms; }
[data-delay="3"] { transition-delay: 270ms; }
[data-delay="4"] { transition-delay: 360ms; }
[data-delay="5"] { transition-delay: 450ms; }
[data-delay="6"] { transition-delay: 540ms; }
[data-delay="7"] { transition-delay: 630ms; }

/* --------------------------------------------------------------------------
   10. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 64px;
  overflow: hidden;
}
.hero__media {
  position: relative;
  overflow: hidden;
  background: var(--bmm-purple-deep);
}
.hero__media img,
.hero__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media-tag {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.82);
  max-width: 260px;
}
.hero__frame {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
  z-index: 2;
}

.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bmm-muted);
  text-decoration: none;
}
.scroll-indicator__track {
  width: 1px;
  height: 54px;
  background: var(--bmm-border-strong);
  overflow: hidden;
  position: relative;
}
.scroll-indicator__track::after {
  content: '';
  position: absolute;
  top: -60%;
  left: 0;
  width: 100%;
  height: 60%;
  background: var(--bmm-green);
  animation: bmm-scroll 2.4s var(--bmm-ease-soft) infinite;
}
@keyframes bmm-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(270%); }
}

/* Animated accent line that draws itself in the hero */
.accent-draw {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: bmm-draw 2.4s var(--bmm-ease) 0.5s forwards;
}
@keyframes bmm-draw { to { stroke-dashoffset: 0; } }

.grow-bar {
  transform-origin: bottom;
  transform: scaleY(0);
  animation: bmm-grow 1.6s var(--bmm-ease) 0.7s forwards;
}
@keyframes bmm-grow { to { transform: scaleY(1); } }

/* --------------------------------------------------------------------------
   11. Editorial components
   -------------------------------------------------------------------------- */
/* Pillars — Our Approach */
.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 32px 44px;
  background: var(--bmm-paper);
  transition: background-color 520ms var(--bmm-ease), transform 520ms var(--bmm-ease),
              padding 520ms var(--bmm-ease);
}
.pillar::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--bmm-green);
  transition: width 620ms var(--bmm-ease);
}
.pillar:hover { background: var(--bmm-purple-tint-2); transform: translateY(-4px); }
.pillar:hover::before { width: 100%; }

.pillar__mark {
  width: 46px;
  height: 46px;
  color: var(--bmm-purple);
  transition: color 420ms var(--bmm-ease), transform 620ms var(--bmm-ease);
}
.pillar:hover .pillar__mark { color: var(--bmm-green-dark); transform: translateY(-3px); }

.pillar__reveal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 620ms var(--bmm-ease), opacity 520ms var(--bmm-ease),
              margin 620ms var(--bmm-ease);
}
.pillar:hover .pillar__reveal,
.pillar:focus-within .pillar__reveal {
  max-height: 240px;
  opacity: 1;
  margin-top: 18px;
}

/* Wealth Planning — editorial index */
.solution {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 20px;
  width: 100%;
  padding: 26px 4px;
  border-bottom: 1px solid var(--bmm-border);
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-align: left;
  cursor: pointer;
  transition: padding 480ms var(--bmm-ease), background-color 480ms var(--bmm-ease);
}
.solution::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--bmm-green);
  transition: width 620ms var(--bmm-ease);
}
.solution:hover,
.solution.is-active { padding-left: 16px; padding-right: 16px; background: var(--bmm-purple-tint-2); }
.solution:hover::after,
.solution.is-active::after { width: 100%; }
.solution__num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--bmm-purple);
  opacity: 0.5;
  transition: opacity 380ms var(--bmm-ease), color 380ms var(--bmm-ease);
}
.solution.is-active .solution__num { opacity: 1; color: var(--bmm-green-dark); }
.solution__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.12;
  color: var(--bmm-purple-deep);
  transition: color 380ms var(--bmm-ease);
}
.solution__plus {
  font-size: 1.1rem;
  color: var(--bmm-purple);
  transition: transform 480ms var(--bmm-ease);
}
.solution.is-active .solution__plus { transform: rotate(45deg); color: var(--bmm-green-dark); }

.solution-panel {
  position: sticky;
  top: calc(var(--nav-h-scrolled) + 32px);
  border: 1px solid var(--bmm-border);
  background: var(--bmm-white);
  padding: 40px;
  min-height: 340px;
}
.solution-panel__loading { display: flex; align-items: center; gap: 12px; color: var(--bmm-muted); }

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(75, 0, 110, 0.2);
  border-top-color: var(--bmm-purple);
  border-radius: 50%;
  animation: bmm-spin 700ms linear infinite;
  flex: none;
}
@keyframes bmm-spin { to { transform: rotate(360deg); } }

/* Insight cards */
.insight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bmm-white);
  border: 1px solid var(--bmm-border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 620ms var(--bmm-ease), border-color 420ms var(--bmm-ease),
              box-shadow 620ms var(--bmm-ease);
}
.insight-card:hover {
  transform: translateY(-5px);
  border-color: var(--bmm-border-strong);
  box-shadow: var(--bmm-shadow-soft);
}
.insight-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bmm-purple-tint);
}
.insight-card__media img,
.insight-card__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--bmm-ease);
}
.insight-card:hover .insight-card__media img,
.insight-card:hover .insight-card__media svg { transform: scale(1.045); }
.insight-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.insight-card__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--bmm-purple-deep);
  margin: 0;
}
.insight-card__excerpt { color: var(--bmm-slate); font-size: 0.9375rem; line-height: 1.7; flex: 1; }
.insight-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--bmm-border);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--bmm-muted);
  text-transform: uppercase;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--bmm-border-strong);
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bmm-purple);
  background: rgba(255, 255, 255, 0.7);
}
.tag--green { color: var(--bmm-green-dark); border-color: rgba(63, 133, 0, 0.35); }
.tag--light { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.28); background: transparent; }

/* Filter pills */
.filter {
  padding: 10px 18px;
  border: 1px solid var(--bmm-border-strong);
  background: transparent;
  color: var(--bmm-charcoal);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 380ms var(--bmm-ease), color 380ms var(--bmm-ease),
              border-color 380ms var(--bmm-ease);
}
.filter:hover { border-color: var(--bmm-purple); color: var(--bmm-purple); }
.filter.is-active {
  background: var(--bmm-purple);
  border-color: var(--bmm-purple);
  color: #fff;
}

/* Chapters — For Every Chapter of Wealth */
.chapters-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 24px;
  scrollbar-width: none;
}
.chapters-track::-webkit-scrollbar { display: none; }
.chapter {
  scroll-snap-align: start;
  flex: 0 0 min(78vw, 460px);
  border: 1px solid var(--bmm-border);
  background: var(--bmm-white);
  padding: 40px 36px 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 520ms var(--bmm-ease), transform 520ms var(--bmm-ease),
              background-color 520ms var(--bmm-ease);
}
.chapter:hover,
.chapter.is-current { border-color: var(--bmm-purple); transform: translateY(-4px); }
.chapter__index {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--bmm-purple-tint);
  transition: color 520ms var(--bmm-ease);
}
.chapter:hover .chapter__index,
.chapter.is-current .chapter__index { color: var(--bmm-green); }
.chapter__title { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.8rem; color: var(--bmm-purple-deep); margin: 0; }
.chapter__progress { height: 2px; background: var(--bmm-border); overflow: hidden; margin-top: auto; }
.chapter__progress span { display: block; height: 100%; width: 0; background: var(--bmm-green); transition: width 520ms var(--bmm-ease); }
.chapter.is-current .chapter__progress span { width: 100%; }

/* Stat / counter */
.stat__num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1;
  color: var(--bmm-purple-deep);
}
.stat__num sup { font-size: 0.42em; top: -0.9em; color: var(--bmm-green-dark); }

/* Principle rows */
.principle {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--bmm-border);
  transition: padding-left 480ms var(--bmm-ease);
}
.principle:hover { padding-left: 12px; }
.principle__idx { font-size: 0.75rem; letter-spacing: 0.16em; color: var(--bmm-green-dark); font-weight: 700; padding-top: 6px; }
.principle__title { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.35rem; color: var(--bmm-purple-deep); margin: 0 0 6px; }

/* Financing vertical progress */
.progress-rail {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--bmm-border);
}
.progress-rail__fill {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 0;
  background: var(--bmm-green);
  transition: height 120ms linear;
}
.finance-step { position: relative; padding-left: 40px; }
.finance-step::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--bmm-border-strong);
  background: var(--bmm-paper);
  transition: background-color 420ms var(--bmm-ease), border-color 420ms var(--bmm-ease);
}
.finance-step.is-current::before,
.finance-step.is-current::after { background: var(--bmm-green); border-color: var(--bmm-green); }

/* --------------------------------------------------------------------------
   12. Relationship / network compositions
   --------------------------------------------------------------------------
   -------------------------------------------------------------------------- */
.net-node { fill: var(--bmm-purple); }
.net-node--active { fill: var(--bmm-green); }
.net-link {
  stroke: rgba(75, 0, 110, 0.28);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  transition: stroke-dashoffset 1600ms var(--bmm-ease);
}
.is-drawn .net-link { stroke-dashoffset: 0; }
.net-link--active { stroke: rgba(110, 220, 22, 0.85); }
.net-label {
  font-family: 'Manrope', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--bmm-purple);
}
.net-ring {
  fill: none;
  stroke: rgba(75, 0, 110, 0.14);
  stroke-width: 1;
}
.net-ring--pulse { animation: bmm-pulse 4.5s var(--bmm-ease-soft) infinite; transform-origin: center; }
@keyframes bmm-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.08; transform: scale(1.06); }
}
.node-flow {
  stroke: var(--bmm-purple);
  stroke-width: 1;
  fill: none;
  opacity: 0.16;
  stroke-dasharray: 4 8;
  animation: bmm-flow 22s linear infinite;
}
@keyframes bmm-flow { to { stroke-dashoffset: -300; } }

/* Network compositions sitting on the deep purple surface */
.surface-deep .net-label { fill: rgba(255, 255, 255, 0.7); }
.surface-deep .net-node { fill: #9C6BB8; }
.surface-deep .net-node--active { fill: var(--bmm-green); }
.surface-deep .net-link { stroke: rgba(255, 255, 255, 0.2); }
.surface-deep .net-link--active { stroke: rgba(110, 220, 22, 0.8); }
.surface-deep .net-ring { stroke: rgba(255, 255, 255, 0.12); }

.map-point { fill: var(--bmm-green); }
.map-point__halo {
  fill: var(--bmm-green);
  opacity: 0.28;
  transform-origin: center;
  animation: bmm-halo 3.6s var(--bmm-ease-soft) infinite;
}
@keyframes bmm-halo {
  0%, 100% { opacity: 0.28; transform: scale(1); }
  50% { opacity: 0.06; transform: scale(1.9); }
}
.map-label {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: rgba(255, 255, 255, 0.62);
}
.map-land { fill: rgba(255, 255, 255, 0.055); stroke: rgba(255, 255, 255, 0.14); stroke-width: 0.6; }
.map-grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 0.6; fill: none; }
.map-arc { stroke: rgba(110, 220, 22, 0.42); stroke-width: 0.9; fill: none; stroke-dasharray: 3 6; animation: bmm-flow 26s linear infinite; }

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 9px; }
.field__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bmm-purple);
}
.field__label .req { color: var(--bmm-green-dark); }
.input,
.select,
.textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--bmm-border-strong);
  background: var(--bmm-white);
  color: var(--bmm-ink);
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-radius: var(--radius);
  transition: border-color 320ms var(--bmm-ease), box-shadow 320ms var(--bmm-ease),
              background-color 320ms var(--bmm-ease);
  appearance: none;
}
.textarea { min-height: 150px; resize: vertical; }
.input::placeholder,
.textarea::placeholder { color: #9A949F; }
.input:hover,
.select:hover,
.textarea:hover { border-color: var(--bmm-purple-soft); }
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--bmm-purple);
  box-shadow: 0 0 0 3px rgba(75, 0, 110, 0.08);
  outline: none;
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234B006E' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--bmm-purple-dark); background: rgba(75, 0, 110, 0.03); }
.field__error {
  font-size: 0.75rem;
  color: var(--bmm-purple-dark);
  min-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 300ms var(--bmm-ease), transform 300ms var(--bmm-ease);
}
.field.has-error .field__error { opacity: 1; transform: none; }
.field.is-valid .input,
.field.is-valid .select,
.field.is-valid .textarea { border-color: rgba(63, 133, 0, 0.5); }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--bmm-border);
  border-left-width: 2px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.6;
}
.form-status.is-shown { display: flex; }
.form-status--success { border-left-color: var(--bmm-green-dark); background: var(--bmm-green-tint); color: var(--bmm-purple-deep); }
.form-status--error { border-left-color: var(--bmm-purple-dark); background: var(--bmm-purple-tint-2); color: var(--bmm-purple-deep); }

.checkbox { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.checkbox input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--bmm-purple); flex: none; }

/* --------------------------------------------------------------------------
   14. Page hero / breadcrumbs / CTA / modal
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 76px);
  padding-bottom: clamp(56px, 7vw, 104px);
  background: var(--bmm-purple-deep);
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}
.page-hero .display-1,
.page-hero .display-2 { color: #fff; }
.page-hero__pattern { position: absolute; inset: 0; opacity: 0.14; pointer-events: none; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; }
.breadcrumbs a { color: rgba(255,255,255,0.62); text-decoration: none; transition: color 300ms; }
.breadcrumbs a:hover { color: var(--bmm-green); }
.breadcrumbs span[aria-current] { color: #fff; }
.breadcrumbs .sep { color: rgba(255,255,255,0.3); }

.cta-band {
  position: relative;
  background: var(--bmm-purple);
  color: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}
.cta-band .display-2 { color: #fff; }
.cta-band__pattern { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(26, 0, 38, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms var(--bmm-ease), visibility 0s linear 420ms;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity 420ms var(--bmm-ease), visibility 0s; }
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bmm-paper);
  border: 1px solid var(--bmm-border);
  padding: 44px;
  transform: translateY(18px) scale(0.985);
  transition: transform 520ms var(--bmm-ease);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bmm-border);
  background: transparent;
  color: var(--bmm-purple);
  cursor: pointer;
  transition: background-color 320ms, color 320ms;
}
.modal__close:hover { background: var(--bmm-purple); color: #fff; }

/* Accordion */
.accordion__item { border-bottom: 1px solid var(--bmm-border); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--bmm-purple-deep);
}
.accordion__icon { position: relative; width: 16px; height: 16px; flex: none; }
.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background: var(--bmm-purple);
  transition: transform 420ms var(--bmm-ease), background-color 420ms;
}
.accordion__icon::before { top: 7px; left: 0; width: 16px; height: 1.5px; }
.accordion__icon::after { left: 7px; top: 0; width: 1.5px; height: 16px; }
.accordion__item.is-open .accordion__icon::after { transform: scaleY(0); }
.accordion__item.is-open .accordion__icon::before { background: var(--bmm-green-dark); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height 520ms var(--bmm-ease); }
.accordion__panel-inner { padding-bottom: 28px; color: var(--bmm-slate); }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.bmm-footer {
  background: var(--bmm-purple-deep);
  color: rgba(255, 255, 255, 0.66);
  padding-top: clamp(64px, 7vw, 104px);
  font-size: 0.875rem;
}
.footer-link {
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1.9;
  transition: color 320ms var(--bmm-ease), padding-left 320ms var(--bmm-ease);
}
.footer-link:hover { color: var(--bmm-green); padding-left: 4px; }
.footer-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 20px;
}
.footer-disclaimer {
  font-size: 0.75rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.44);
}
.social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  transition: background-color 340ms, color 340ms, border-color 340ms, transform 340ms;
}
.social-link:hover { background: var(--bmm-green); border-color: var(--bmm-green); color: var(--bmm-purple-deep); transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   16. Misc utilities
   -------------------------------------------------------------------------- */
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.aspect-arch { aspect-ratio: 4 / 5; }
.aspect-wide { aspect-ratio: 16 / 10; }
.aspect-square { aspect-ratio: 1 / 1; }
.overflow-clip { overflow: hidden; }

.parallax { will-change: transform; }

.count-up { font-variant-numeric: tabular-nums; }

.skeleton {
  background: linear-gradient(90deg, var(--bmm-purple-tint-2) 25%, var(--bmm-purple-tint) 37%, var(--bmm-purple-tint-2) 63%);
  background-size: 400% 100%;
  animation: bmm-skeleton 1.4s ease infinite;
}
@keyframes bmm-skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.empty-state {
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed var(--bmm-border-strong);
  color: var(--bmm-muted);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bmm-border-strong);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--bmm-purple);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 420ms var(--bmm-ease), transform 420ms var(--bmm-ease),
              visibility 0s linear 420ms, background-color 320ms, color 320ms;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.back-to-top:hover { background: var(--bmm-purple); color: #fff; }

.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Fade-in for AJAX-swapped content */
.js-fade-in { animation: bmm-fade-in 520ms var(--bmm-ease) both; }
@keyframes bmm-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   17. Responsive refinements
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  :root { --nav-h: 74px; --nav-h-scrolled: 64px; }
  .solution-panel { position: static; margin-top: 28px; }
  /* Chapters become a calm vertical stack */
  .chapters-track { flex-direction: column; overflow: visible; scroll-snap-type: none; gap: 18px; }
  .chapter { flex: 1 1 auto; }
}
@media (max-width: 767px) {
  .grid-12 { gap: 18px; }
  .solution { grid-template-columns: auto 1fr auto; gap: 14px; padding: 22px 0; }
  .modal__dialog { padding: 32px 22px; }
  .chapter { flex-basis: 84vw; padding: 32px 26px 36px; }
}
@media (hover: none) {
  .cursor-ring, .cursor-dot { display: none !important; }
}

/* --------------------------------------------------------------------------
   18. Reduced motion — respect the user's preference
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal-fade, .reveal-left, .reveal-right, .reveal-scale, .reveal-mask {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .net-link { stroke-dashoffset: 0 !important; }
  .cursor-ring, .cursor-dot { display: none !important; }
}

/* Low-power devices get a calmer experience (class applied by JS). */
.is-low-power .node-flow,
.is-low-power .map-arc,
.is-low-power .net-ring--pulse,
.is-low-power .map-point__halo,
.is-low-power .scroll-indicator__track::after { animation: none !important; }
.is-low-power .parallax { transform: none !important; }

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */
@media print {
  .bmm-header, .mobile-nav, .preloader, .cursor-ring, .cursor-dot,
  .back-to-top, .scroll-progress, .scroll-indicator { display: none !important; }
  body { color: #000; background: #fff; }
  .surface-deep, .page-hero, .cta-band, .bmm-footer { background: #fff !important; color: #000 !important; }
}
