/* ==========================================================================
   FATIMA MAHDI · Grow. Transform. Lead.
   Design system: Burgundy 2.3 · Mahdi Burgundy / Signal Crimson / Warm Ivory
   Type: Manrope (UI/body) + Libre Baskerville (editorial accent only)
   ========================================================================== */

:root {
  --obsidian: #3C0B1D;
  --burgundy: #3C0B1D;
  --burgundy-deep: #6F1632;
  --burgundy-muted: #6F1632;
  --burgundy-mist: #F3A7BC;
  --signal-crimson: #C92F4E;
  --royal-berry: #6F1632;
  --blush-rose: #F3A7BC;
  --ice-mist: #CBE8ED;
  --olive: #5C6B4A;
  --parchment: #FFFBF5;
  --ivory: #F5F1EC;
  --stone: #F5F1EC;

  --ivory-70: rgba(245, 241, 236, 0.7);
  --ivory-40: rgba(245, 241, 236, 0.4);
  --ivory-12: rgba(245, 241, 236, 0.12);
  --ivory-08: rgba(245, 241, 236, 0.08);
  --obsidian-80: rgba(60, 11, 29, 0.8);
  --obsidian-70: rgba(60, 11, 29, 0.7);
  --obsidian-62: rgba(60, 11, 29, 0.68);
  --obsidian-40: rgba(60, 11, 29, 0.48);
  --obsidian-12: rgba(60, 11, 29, 0.14);
  --obsidian-08: rgba(60, 11, 29, 0.08);
  --obsidian-lifted: #6F1632;
  --burgundy-30: rgba(60, 11, 29, 0.3);
  --burgundy-hover: #6F1632;
  --burgundy-bright: #C92F4E;
  --ivory-shade: #FFFBF5;

  /* Light-tone family: subtle section variation, luxury body */
  --ivory-white: #FFFBF5;
  --warm-white: #FFFBF5;
  --stone-ivory: #CBE8ED;
  --pale-burgundy: #F3A7BC;
  --pale-rose-stone: #F3A7BC;
  --stone-30: rgba(60, 11, 29, 0.14);
  --stone-20: rgba(60, 11, 29, 0.08);
  --shadow-soft: 0 20px 60px rgba(111, 22, 50, 0.10);
  --shadow-soft-lift: 0 26px 70px rgba(111, 22, 50, 0.16);
  --radius-sm: 16px;
  --radius-md: 28px;
  --radius-lg: 36px;
  --radius-xl: 56px;

  --font-ui: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-editorial: "Libre Baskerville", Georgia, serif;

  --max-w: 1440px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 220ms;
  --dur-nav: 360ms;
  --dur-med: 420ms;
  --dur-editorial: 760ms;
  --dur-hero: 900ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
section[id] { scroll-margin-top: 92px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--obsidian);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--burgundy); color: var(--ivory); }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ivory);
  color: var(--obsidian);
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}
[data-tone="dark"] :focus-visible,
.site-header :focus-visible {
  outline-color: var(--ivory);
}

.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;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--burgundy);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}
[data-tone="dark"] .eyebrow { color: var(--burgundy-bright); }

/* ==========================================================================
   REVEAL-ON-SCROLL (generic, plays once)
   Defined early so later component :hover rules win the cascade once an
   element has finished revealing (equal specificity, source order decides).
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: none;
  filter: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  transition: opacity var(--dur-editorial) var(--ease-soft), transform var(--dur-editorial) var(--ease-soft), filter var(--dur-editorial) var(--ease-soft);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), backdrop-filter var(--dur-med) var(--ease);
  background-color: rgba(10, 10, 11, 0.62);
  background-image:
    radial-gradient(ellipse 58% 180% at 8% -70%, rgba(60, 11, 29, 0.68) 0%, rgba(37, 7, 17, 0.28) 48%, transparent 76%),
    radial-gradient(ellipse 46% 150% at 88% -80%, rgba(60, 11, 29, 0.34) 0%, transparent 72%);
  backdrop-filter: blur(8px) saturate(108%);
}
.site-header.is-solid {
  background-color: rgba(10, 10, 11, 0.94);
  background-image:
    radial-gradient(ellipse 48% 180% at 8% -80%, rgba(60, 11, 29, 0.5) 0%, transparent 72%),
    radial-gradient(ellipse 42% 160% at 92% -70%, rgba(37, 7, 17, 0.46) 0%, transparent 74%);
  border-bottom-color: var(--ivory-08);
  box-shadow: 0 10px 30px rgba(10,10,11,0.25);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
}
.brand-mark {
  width: 30px;
  height: auto;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
.brand-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--stone);
  margin-top: 3px;
}

.primary-nav {
  display: none;
}
.primary-nav ul {
  display: flex;
  gap: 34px;
}
.primary-nav a {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ivory-70);
  padding-block: 14px;
  transition: color var(--dur-fast) var(--ease);
}
.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--ivory); }
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-nav) var(--ease-soft);
}
.site-header.is-solid .primary-nav a::after { background: var(--burgundy-bright); }
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(247, 243, 237, 0.34);
  border-radius: 999px;
  color: var(--ivory);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}
.language-option {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}
.language-option.is-active {
  background: var(--ivory);
  color: var(--obsidian);
}
.language-option:not(.is-active):hover,
.language-option:not(.is-active):focus-visible {
  background: rgba(247, 243, 237, 0.12);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--burgundy-deep);
  color: var(--ivory);
  box-shadow: 0 14px 32px rgba(37,7,17,0.18);
}
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px);
  background: var(--burgundy);
  box-shadow: 0 18px 40px rgba(37,7,17,0.24);
}
.btn-ghost-dark {
  border-color: var(--ivory-12);
  color: var(--ivory);
}
.btn-ghost-dark:hover, .btn-ghost-dark:focus-visible {
  background: var(--ivory-08);
  border-color: var(--ivory-40);
}
.btn-ghost-light {
  border-color: var(--stone-30);
  color: var(--burgundy-deep);
}
.btn-ghost-light:hover, .btn-ghost-light:focus-visible {
  background: var(--pale-burgundy);
  border-color: var(--stone-30);
}
.header-cta { display: none; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ivory-12);
  background: transparent;
  color: var(--ivory);
}
.nav-toggle svg { pointer-events: none; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
}
.mobile-drawer[data-open="true"] { visibility: visible; }
.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,11,0.6);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease);
}
.mobile-drawer[data-open="true"] .mobile-drawer-backdrop { opacity: 1; }
.mobile-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 400px);
  background: var(--obsidian);
  border-left: 1px solid var(--ivory-12);
  padding: 28px var(--gutter);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease);
}
.mobile-drawer[data-open="true"] .mobile-drawer-panel { transform: translateX(0); }
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ivory-08);
}
.drawer-nav {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}
.drawer-nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--ivory-08);
  font-family: var(--font-editorial);
  font-size: 26px;
  color: var(--ivory);
}
.drawer-bottom {
  margin-top: auto;
  padding-top: 20px;
}
.drawer-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone);
  margin-bottom: 14px;
}
.drawer-bottom .btn { width: 100%; justify-content: center; }

@media (min-width: 960px) {
  .primary-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ==========================================================================
   SECTION TRANSITIONS (soft colour-field dividers)
   ========================================================================== */
.divider {
  height: clamp(48px, 8vw, 100px);
  width: 100%;
}
.divider--ivory-to-pale-burgundy { background: linear-gradient(to bottom, var(--ivory), var(--pale-burgundy)); }
.divider--pale-burgundy-to-ivory { background: linear-gradient(to bottom, var(--pale-burgundy), var(--ivory)); }
.divider--ivory-to-stone-ivory { background: linear-gradient(to bottom, var(--ivory), var(--stone-ivory)); }

/* Atmospheric brand thresholds: the page holds darkness for most of each
   composition, then releases through a precision micro-dot matrix. */
.section-morph {
  position: relative;
  height: clamp(480px, 56vw, 780px);
  overflow: hidden;
  isolation: isolate;
  --dot-x-slow: 0px;
  --dot-y-slow: 0px;
  --dot-x-mid: 0px;
  --dot-y-mid: 0px;
  --dot-x-fast: 0px;
  --dot-y-fast: 0px;
}
.section-morph--dark-to-light {
  margin-top: calc(-1 * clamp(120px, 14vw, 200px));
  margin-bottom: calc(-1 * clamp(180px, 20vw, 270px));
  background: transparent;
}
.section-morph--light-to-dark {
  margin-top: calc(-1 * clamp(150px, 17vw, 230px));
  /* Let the reverse transition reach its true Obsidian endpoint before the
     footer begins. A tiny overlap prevents sub-pixel seams without cutting
     the gradient off early. */
  margin-bottom: -2px;
  background: transparent;
}
.section-morph::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
}
.section-morph--dark-to-light::before {
  background-color: var(--ivory);
  background-image:
    radial-gradient(ellipse 108% 86% at 50% -8%, rgba(60, 11, 29, 0.56) 0%, rgba(60, 11, 29, 0.2) 48%, transparent 82%),
    radial-gradient(ellipse 84% 72% at -4% 108%, rgba(245, 241, 236, 0.82) 0%, rgba(245, 241, 236, 0.28) 48%, transparent 76%),
    radial-gradient(ellipse 76% 68% at 102% 94%, rgba(184, 177, 173, 0.44) 0%, rgba(140, 109, 118, 0.12) 52%, transparent 78%),
    linear-gradient(180deg,
      #3C0B1D 0%,
      #451625 18%,
      #57313E 37%,
      #76545F 55%,
      #9D858B 70%,
      #B8B1AD 81%,
      #DDD6D1 92%,
      #F5F1EC 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.72) 9%, #000 20%, #000 78%, rgba(0,0,0,0.62) 91%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.72) 9%, #000 20%, #000 78%, rgba(0,0,0,0.62) 91%, transparent 100%);
}
.section-morph--light-to-dark::before {
  background-color: var(--obsidian);
  background-image:
    radial-gradient(ellipse 90% 70% at -8% -2%, rgba(245, 241, 236, 0.72) 0%, rgba(245, 241, 236, 0.18) 48%, transparent 78%),
    radial-gradient(ellipse 82% 74% at 104% 8%, rgba(184, 177, 173, 0.48) 0%, rgba(118, 80, 93, 0.12) 52%, transparent 80%),
    radial-gradient(ellipse 110% 84% at 48% 108%, rgba(37, 7, 17, 0.62) 0%, rgba(37, 7, 17, 0.18) 48%, transparent 82%),
    linear-gradient(180deg,
      #F5F1EC 0%,
      #E6E0DB 11%,
      #C5BCB8 24%,
      #A38C93 39%,
      #76545F 55%,
      #57313E 68%,
      #3C0B1D 78%,
      #250711 87%,
      #16050C 94%,
      #0A0A0B 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.66) 10%, #000 22%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.66) 10%, #000 22%, #000 100%);
}
.morph-dots {
  position: absolute;
  inset: -8% -4%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.morph-dot-layer {
  position: absolute;
  inset: -6%;
  display: block;
  background-repeat: repeat;
  transform-origin: center;
  will-change: transform, opacity;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.04) 9%, rgba(0,0,0,0.26) 23%, rgba(0,0,0,0.82) 43%, #000 56%, rgba(0,0,0,0.6) 73%, rgba(0,0,0,0.18) 87%, rgba(0,0,0,0.03) 96%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.04) 9%, rgba(0,0,0,0.26) 23%, rgba(0,0,0,0.82) 43%, #000 56%, rgba(0,0,0,0.6) 73%, rgba(0,0,0,0.18) 87%, rgba(0,0,0,0.03) 96%, transparent 100%);
}
.morph-dot-layer:nth-child(1) {
  background-image: radial-gradient(circle, rgba(245, 241, 236, 0.46) 0 0.72px, transparent 0.86px);
  background-size: 12px 12px;
  animation: dot-surface-slow 20s ease-in-out infinite;
}
.morph-dot-layer:nth-child(2) {
  background-image: radial-gradient(circle, rgba(140, 109, 118, 0.26) 0 0.62px, transparent 0.78px);
  background-size: 18px 18px;
  background-position: 4px 5px;
  animation: dot-surface-mid 16s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.morph-dot-layer:nth-child(3) {
  background-image: radial-gradient(circle, rgba(184, 177, 173, 0.19) 0 0.54px, transparent 0.7px);
  background-size: 24px 24px;
  background-position: 8px 7px;
  animation: dot-surface-fast 14s ease-in-out infinite;
}
.section-morph--light-to-dark .morph-dot-layer {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.03) 10%, rgba(0,0,0,0.2) 25%, rgba(0,0,0,0.7) 45%, #000 59%, rgba(0,0,0,0.68) 75%, rgba(0,0,0,0.2) 89%, rgba(0,0,0,0.03) 97%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.03) 10%, rgba(0,0,0,0.2) 25%, rgba(0,0,0,0.7) 45%, #000 59%, rgba(0,0,0,0.68) 75%, rgba(0,0,0,0.2) 89%, rgba(0,0,0,0.03) 97%, transparent 100%);
}
.section-morph--light-to-dark .morph-dot-layer:nth-child(1) {
  background-image: radial-gradient(circle, rgba(60, 11, 29, 0.34) 0 0.72px, transparent 0.86px);
}
.section-morph--light-to-dark .morph-dot-layer:nth-child(2) {
  background-image: radial-gradient(circle, rgba(140, 109, 118, 0.3) 0 0.62px, transparent 0.78px);
}
.section-morph--light-to-dark .morph-dot-layer:nth-child(3) {
  background-image: radial-gradient(circle, rgba(245, 241, 236, 0.22) 0 0.54px, transparent 0.7px);
}

@keyframes dot-surface-slow {
  0%, 100% { opacity: 0.62; transform: translate3d(var(--dot-x-slow), calc(var(--dot-y-slow) - 1px), 0) skewX(-0.08deg) scale(0.999); }
  50% { opacity: 0.78; transform: translate3d(calc(var(--dot-x-slow) + 2px), calc(var(--dot-y-slow) + 2px), 0) skewX(0.08deg) scale(1.001); }
}
@keyframes dot-surface-mid {
  0%, 100% { opacity: 0.42; transform: translate3d(var(--dot-x-mid), var(--dot-y-mid), 0) skewX(0.06deg) scale(1); }
  50% { opacity: 0.56; transform: translate3d(calc(var(--dot-x-mid) - 2px), calc(var(--dot-y-mid) + 3px), 0) skewX(-0.06deg) scale(1.001); }
}
@keyframes dot-surface-fast {
  0%, 100% { opacity: 0.26; transform: translate3d(var(--dot-x-fast), var(--dot-y-fast), 0) scale(1); }
  50% { opacity: 0.34; transform: translate3d(calc(var(--dot-x-fast) + 3px), calc(var(--dot-y-fast) - 2px), 0) scale(0.999); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--obsidian);
  background-image:
    radial-gradient(ellipse 76% 44% at 20% 78%, rgba(60, 11, 29, 0.16) 0%, transparent 76%),
    radial-gradient(ellipse 70% 38% at 92% 92%, rgba(60, 11, 29, 0.14) 0%, transparent 74%),
    linear-gradient(180deg,
      #0A0A0B 0%,
      #0A0A0B 39%,
      #100308 51%,
      #16050C 62%,
      #250711 80%,
      #3C0B1D 100%);
  padding-top: 148px;
  padding-bottom: 96px;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  --dot-x-slow: 0px;
  --dot-y-slow: 0px;
  --dot-x-mid: 0px;
  --dot-y-mid: 0px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 38% -5% -8%;
  pointer-events: none;
  background-repeat: repeat;
  will-change: transform, opacity;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.08) 17%, rgba(0,0,0,0.54) 56%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.08) 17%, rgba(0,0,0,0.54) 56%, #000 100%);
}
.hero::before {
  background-image: radial-gradient(circle, rgba(245, 241, 236, 0.18) 0 0.64px, transparent 0.78px);
  background-size: 12px 12px;
  animation: dot-surface-slow 20s ease-in-out infinite;
}
.hero::after {
  background-image: radial-gradient(circle, rgba(184, 177, 173, 0.12) 0 0.52px, transparent 0.68px);
  background-size: 20px 20px;
  background-position: 5px 4px;
  animation: dot-surface-mid 17s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.hero-content { max-width: 760px; order: 1; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: clamp(240px, 62vw, 380px);
  aspect-ratio: 0.67;
  margin: 8px auto 0;
  order: 2;
}
.hero-visual-fallback,
.hero-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  z-index: 1;
}
.hero-visual-fallback {
  opacity: 0.94;
  filter: contrast(1.12) saturate(1.04);
  image-rendering: -webkit-optimize-contrast;
}
.hero-visual-fallback { transition: opacity 900ms var(--ease-soft); }
.hero-visual.is-ready .hero-visual-fallback { opacity: 0; }

/* Phone and tablet art direction: animated horse left, headline right, with
   the longer supporting content returning to the full width below. */
@media (max-width: 899px) {
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: 128px;
    padding-bottom: 104px;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: clamp(104px, 29vw, 180px) minmax(0, 1fr);
    column-gap: clamp(14px, 3vw, 28px);
    row-gap: 0;
    align-items: start;
  }
  .hero-visual {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    align-self: center;
    order: initial;
  }
  .hero-content { display: contents; }
  .hero-title { grid-column: 2; grid-row: 2; }
  .hero-title { font-size: clamp(2.3rem, 10.4vw, 4rem); }
  .hero-sub { grid-column: 1 / -1; grid-row: 3; max-width: 36rem; }
  .hero-ctas { grid-column: 1 / -1; grid-row: 4; }
  .hero-strip { grid-column: 1 / -1; grid-row: 5; }
}

@media (max-width: 340px) {
  .hero-grid { grid-template-columns: 86px minmax(0, 1fr); column-gap: 12px; }
  .hero-title { font-size: 2.15rem; }
}

@media (min-width: 341px) and (max-width: 400px) {
  .hero-grid { grid-template-columns: 100px minmax(0, 1fr); column-gap: 12px; }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(300px, 39%) 1fr;
    align-items: stretch;
    gap: 24px;
    min-height: 600px;
  }
  .hero-visual {
    order: 1;
    max-width: none;
    aspect-ratio: auto;
    height: 100%;
    margin: 0;
    align-self: center;
  }
  .hero-content { order: 2; align-self: center; }
}

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ivory);
}
.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero-line span {
  display: block;
  transform: translateY(105%);
  opacity: 0;
  filter: blur(3px);
  animation: line-reveal var(--dur-hero) var(--ease) forwards;
}
.hero-line:nth-child(1) span { animation-delay: 140ms; }
.hero-line:nth-child(2) span { animation-delay: 260ms; }
.hero-line:nth-child(3) span { animation-delay: 380ms; }

.hero-title .serif-accent {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.008em;
  color: var(--burgundy-bright);
}

.hero-sub {
  margin-top: 30px;
  max-width: 480px;
  font-size: clamp(16px, 1.6vw, 17px);
  line-height: 1.6;
  color: var(--stone);
  border-top: 1px solid var(--ivory-12);
  padding-top: 20px;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  animation: fade-up var(--dur-hero) var(--ease) forwards;
  animation-delay: 480ms;
}

.hero-ctas {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  animation: fade-up var(--dur-hero) var(--ease) forwards;
  animation-delay: 600ms;
}

.hero-strip {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0;
  max-width: 520px;
  border-top: 1px solid var(--ivory-12);
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  animation: fade-up var(--dur-hero) var(--ease) forwards;
  animation-delay: 700ms;
}
.hero-strip a {
  padding: 16px 18px 0 0;
  display: block;
  min-height: 52px;
}
.hero-strip a:hover .hero-strip-label { color: var(--ivory); }
.hero-strip-num {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--stone);
  letter-spacing: 0.1em;
}
.hero-strip-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ivory-70);
  transition: color var(--dur-fast) var(--ease);
}

.hero-footer {
  position: absolute;
  left: 0; right: 0; bottom: 28px;
  padding-inline: var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone);
  border-top: 1px solid var(--ivory-08);
  padding-top: 16px;
}
.hero-footer span:nth-child(2) { display: none; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); filter: blur(0px); }
}
@keyframes line-reveal {
  to { transform: translateY(0); opacity: 1; filter: blur(0px); }
}

@media (min-width: 700px) {
  .hero-footer span:nth-child(2) { display: inline; }
}

/* ==========================================================================
   COMMERCIAL PROOF
   ========================================================================== */
.proof {
  background: transparent;
  padding-block: 96px 108px;
  position: relative;
  z-index: 1;
}
.proof > .container { position: relative; z-index: 1; }
.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
}
[data-tone="dark"] .section-head h2 { color: var(--ivory); }
[data-tone="light"] .section-head h2 { color: var(--obsidian); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--stone-20);
  border: 1px solid var(--stone-20);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat-card {
  background: var(--ivory);
  padding: 36px 30px;
  transition: background-color var(--dur-med) var(--ease);
}
.stat-card:hover { background: var(--ivory-white); }
.stat-num {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--burgundy);
  line-height: 1;
}
.stat-label {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--obsidian);
  line-height: 1.4;
}
.stat-context {
  margin-top: 8px;
  font-size: 13px;
  color: var(--obsidian-62);
  line-height: 1.5;
}

@media (min-width: 760px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   WHERE I ENTER
   ========================================================================== */
.enter-section {
  background: var(--ivory);
  color: var(--obsidian);
  padding-block: 88px;
}
.enter-bento {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  grid-template-columns: 1fr;
  grid-template-areas:
    "c1a" "c1b" "c2a" "c2b" "c2c" "c3a" "c3b";
}
.enter-card {
  padding: 30px 28px 26px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  min-height: 150px;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.enter-card:hover {
  transform: translateY(-3px);
}
.enter-card p {
  font-size: 16px;
  line-height: 1.5;
}
.enter-card .num {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 26px;
  line-height: 1;
}

.enter-card--light {
  background: var(--ivory);
  border: 1px solid var(--stone-30);
  color: var(--obsidian-80);
}
.enter-card--light .num { color: var(--burgundy); }
.enter-card--light:hover { box-shadow: var(--shadow-soft); }

.enter-card--dark {
  background: var(--stone-ivory);
  color: var(--obsidian-80);
  position: relative;
  overflow: hidden;
}
.enter-card--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,10,11,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,11,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 60%, transparent 105%);
}
.enter-card--dark .num, .enter-card--dark p { position: relative; }
.enter-card--dark .num { color: var(--burgundy); }
.enter-card--dark:hover { box-shadow: var(--shadow-soft-lift); }

.enter-card--burgundy {
  background: var(--pale-burgundy);
  color: var(--obsidian-80);
}
.enter-card--burgundy .num { color: var(--burgundy-deep); }
.enter-card--burgundy:hover { box-shadow: var(--shadow-soft); }

@media (min-width: 860px) {
  .enter-bento {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, minmax(120px, auto));
    grid-template-areas:
      "c1a c2a c3a"
      "c1a c2b c3b"
      "c1b c2c c3b";
  }
  .enter-card { min-height: 0; }
}

/* ==========================================================================
   ADVISORY / WHAT I DO  (+ left rail horse companion)
   ========================================================================== */
.advisory-section {
  background: var(--ivory);
  color: var(--obsidian);
  padding-block: 0 96px;
  position: relative;
}
.advisory-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.rail {
  display: none;
}
.service-grid {
  display: grid;
  gap: 20px;
}
.service-card {
  border: 1px solid var(--stone-30);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  background: var(--ivory);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
  position: relative;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--burgundy);
  box-shadow: var(--shadow-soft);
}
.service-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.service-index {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--burgundy);
}
.service-icon {
  width: 20px; height: 20px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.service-card:hover .service-icon { opacity: 1; transform: scale(1); }
.service-card h3 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.service-card .desc {
  margin-top: 10px;
  font-size: 15px;
  color: var(--obsidian-62);
  line-height: 1.55;
}
.service-outcomes {
  margin-top: 18px;
  border-top: 1px solid var(--obsidian-12);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.service-outcomes li {
  font-size: 14px;
  color: var(--obsidian-80);
  display: flex;
  gap: 10px;
  line-height: 1.4;
}
.service-outcomes li::before {
  content: "";
  width: 5px; height: 5px;
  margin-top: 6px;
  background: var(--burgundy);
  flex-shrink: 0;
  border-radius: 1px;
}

@media (min-width: 760px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .advisory-layout { grid-template-columns: 140px 1fr; }
  .rail {
    display: block;
    position: sticky;
    top: 140px;
    height: 480px;
  }
  .rail-horse {
    width: 92px;
    height: auto;
    max-width: 100%;
    display: block;
    margin-inline: auto;
    opacity: 0.5;
    transform: translateY(0) rotate(0deg) scale(1);
    transition: opacity 720ms var(--ease-soft), transform 840ms var(--ease-soft);
  }
  .rail[data-pose="1"] .rail-horse { opacity: 0.5; transform: translateY(0) scale(1); }
  .rail[data-pose="2"] .rail-horse { opacity: 0.72; transform: translateY(60px) scale(1.04); }
  .rail[data-pose="3"] .rail-horse { opacity: 0.5; transform: translateY(120px) scale(1); }
  .rail[data-pose="4"] .rail-horse { opacity: 0.85; transform: translateY(180px) scale(1.08); }
}

/* ==========================================================================
   CASE STUDIES
   ========================================================================== */
.cases-section {
  background: var(--ivory);
  color: var(--obsidian);
  padding-block: 8px 96px;
}
.cases-note {
  margin-top: -30px;
  margin-bottom: 40px;
  font-size: 13px;
  color: var(--obsidian-62);
  max-width: 640px;
  font-style: italic;
  font-family: var(--font-editorial);
}
/* ---------- Horizontal case-study rail ---------- */
.rail-outer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 16px 8px;
}
.rail-viewport {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
}
.rail-track {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  width: max-content;
  padding-block: 38px 26px;
  cursor: grab;
  will-change: transform;
  touch-action: pan-y;
}
.rail-track.is-dragging { cursor: grabbing; }
.rail-nav-btn {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--obsidian-12);
  background: var(--ivory);
  color: var(--obsidian);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  z-index: 2;
}
.rail-nav-btn svg { width: 20px; height: 20px; }
.rail-nav-btn:hover, .rail-nav-btn:focus-visible {
  border-color: var(--burgundy);
  color: var(--burgundy);
  transform: scale(1.035);
}
.rail-nav-btn:active { transform: scale(0.96); }

.rail-card {
  flex-shrink: 0;
  width: min(76vw, 820px);
  height: 480px;
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-lg);
  background: var(--ivory);
  color: var(--obsidian);
  border: 1px solid var(--stone-30);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  position: relative;
  transform-origin: center;
  transition: transform 560ms var(--ease-soft), opacity var(--dur-med) var(--ease), box-shadow 560ms var(--ease-soft), border-color 560ms var(--ease-soft);
  overflow: hidden;
}
.rail-card--ivory-white { background: var(--ivory-white); }
.rail-card--pale-burgundy { background: var(--pale-burgundy); }
.rail-card--stone-ivory { background: var(--stone-ivory); }
.rail-card:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 4px;
}
.rail-track.rail-track--has-active .rail-card:not(.is-active) {
  opacity: 0.58;
}
.rail-card.is-active {
  z-index: 4;
  transform: translateY(-12px) scale(1.026);
  border-color: rgba(60, 11, 29, 0.42);
  box-shadow: 0 34px 90px rgba(37, 7, 17, 0.18);
}

.rail-card-content {
  flex: 1 1 100%;
  min-width: 0;
  padding: clamp(28px, 3.2vw, 44px);
  display: flex;
  flex-direction: column;
}
.rail-card-industry {
  margin-top: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--obsidian-62);
}
.rail-card-result {
  margin-top: clamp(18px, 2.4vw, 28px);
}
.rail-card-result-lead {
  display: block;
  margin: 0;
  font-size: clamp(44px, 4.2vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.96;
  color: var(--burgundy);
}
.rail-card-result-support {
  margin-top: 10px;
  max-width: 34ch;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--obsidian);
}
.rail-card-footer-zone {
  margin-top: auto;
  padding-top: 20px;
}
.rail-card-cue {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--obsidian-40);
  transition: color var(--dur-fast) var(--ease), opacity var(--dur-med) var(--ease);
}
.rail-card.is-active .rail-card-cue {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.rail-card-divider {
  display: none;
}
.rail-card-visual {
  display: none;
}
.industry-icon {
  width: clamp(120px, 13vw, 200px);
  height: clamp(120px, 13vw, 200px);
  color: var(--burgundy);
  transition: transform 700ms var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}
.rail-card.is-active .industry-icon { transform: scale(1.03); }

.icon-accent { opacity: 0.45; transition: opacity 700ms var(--ease); transform-box: fill-box; transform-origin: center; }
.rail-card.is-active .icon-accent { opacity: 1; }
.icon-ring { transition: transform 800ms var(--ease); transform-box: fill-box; transform-origin: center; }
.rail-card.is-active .icon-ring { transform: rotate(5deg); }
.icon-vector, .icon-trail { transition: transform 750ms var(--ease); transform-box: fill-box; transform-origin: center; }
.rail-card.is-active .icon-vector { transform: translate(4px, -4px); }
.rail-card.is-active .icon-trail { transform: translateX(-4px); }
.icon-pulse { opacity: 0.45; transition: opacity 800ms var(--ease); }
.rail-card.is-active .icon-pulse { opacity: 1; }
.icon-connect { opacity: 0.4; transition: opacity 750ms var(--ease); }
.rail-card.is-active .icon-connect { opacity: 1; }
.icon-node { transition: transform 750ms var(--ease); transform-box: fill-box; transform-origin: center; }
.rail-card.is-active .icon-node { transform: scale(1.15); }

.rail-card-detail {
  margin-top: 22px;
  max-height: 0;
  opacity: 0;
  overflow-y: auto;
  transition: max-height 560ms var(--ease-soft), opacity var(--dur-med) var(--ease) 80ms, margin-top 560ms var(--ease-soft);
}
.rail-card.is-active .rail-card-detail {
  max-height: 230px;
  opacity: 1;
}
.rail-card.is-active .rail-card-detail .case-grid {
  opacity: 1;
  transform: translateY(0);
}
.rail-card-detail { border-top: 1px solid var(--stone-30); padding-top: 20px; }
.rail-card-detail .case-meta { margin-bottom: 16px; }
.rail-card-detail .case-grid {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 460ms var(--ease-soft) 120ms, transform 460ms var(--ease-soft) 120ms;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}
.rail-card-detail .case-lesson { grid-column: 1 / -1; }

@media (max-width: 899px) {
  .rail-card { height: auto; min-height: 460px; }
  .rail-card-visual { flex-basis: 30%; }
}

@media (max-width: 759px) {
  .rail-nav-btn { display: none; }
  .rail-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
  }
  .rail-viewport::-webkit-scrollbar { display: none; }
  .rail-track { gap: 16px; padding: 28px var(--gutter) 34px; cursor: auto; }
  .rail-card {
    width: 88vw;
    height: auto;
    min-height: 0;
    flex-direction: column;
    border-radius: var(--radius-md);
    scroll-snap-align: center;
  }
  .rail-card.is-active {
    z-index: 2;
    transform: none;
    border-color: rgba(60, 11, 29, 0.42);
    box-shadow: 0 24px 64px rgba(37, 7, 17, 0.14);
  }
  .rail-card-content { order: 2; padding: 28px 26px 30px; }
  .rail-card-result { margin-top: 22px; }
  .rail-card-result-support { max-width: none; }
  .rail-card.is-active .rail-card-detail { max-height: 420px; overflow-y: auto; }
  .rail-card-detail .case-grid { grid-template-columns: 1fr; }
  .rail-card-detail .case-lesson { grid-column: auto; }
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.case-meta span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--obsidian-62);
  background: var(--obsidian-08);
  padding: 6px 11px;
  border-radius: 999px;
}
.case-grid {
  display: grid;
  gap: 22px;
}
.case-field dt {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--burgundy);
  margin-bottom: 6px;
}
.case-field dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--obsidian-80);
}
.case-lesson {
  margin-top: 6px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--burgundy-deep);
  color: var(--ivory);
}
.case-lesson dt { color: var(--burgundy-bright); }
.case-lesson dd { color: var(--ivory); }
.case-footer {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.case-related {
  font-size: 13px;
  color: var(--obsidian-62);
}
.case-related strong { color: var(--obsidian); }

@media (min-width: 700px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-lesson { grid-column: 1 / -1; }
}

/* ==========================================================================
   HOW I THINK - pinboard (Burgundy chapter break)
   ========================================================================== */
.think-section {
  background: var(--pale-burgundy);
  color: var(--obsidian);
  padding-block: 120px;
  position: relative;
  overflow: hidden;
}
.think-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 20%, rgba(60,11,29,0.06), transparent 55%);
  pointer-events: none;
}
.think-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(10,10,11,0.04) 1px, transparent 1px);
  background-size: 100% 34px;
}
.think-section .section-head { position: relative; }
.think-section .section-head p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--obsidian-62);
  max-width: 520px;
}

.pinboard {
  position: relative;
  max-width: 780px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pinboard::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, rgba(37, 7, 17, 0.68) 0 4px, transparent 4px 11px);
  pointer-events: none;
}
.pinboard-path {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(37, 7, 17, 0.68);
}
.pinboard-path path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-dasharray: 4 8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  animation: pinboard-dash 5.5s linear infinite;
}
@keyframes pinboard-dash {
  to { stroke-dashoffset: -140; }
}

.pin-card {
  position: relative;
  z-index: 1;
  transform: rotate(2deg);
  transition: transform var(--dur-med) var(--ease);
}
.pin-card:nth-child(even) { transform: rotate(-2deg); }
.pin-card:hover { z-index: 5; }
.pin-card-frame {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  background: #F8F4F0;
  border: 1px solid rgba(37, 7, 17, 0.16);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 560ms var(--ease-soft), box-shadow 560ms var(--ease-soft), border-color 560ms var(--ease-soft);
}
.js .pin-card-frame.reveal {
  transform: translateY(34px) scale(0.965) rotate(-1deg);
  filter: blur(6px);
  transition: opacity 900ms var(--ease-soft), transform 900ms var(--ease-soft), filter 900ms var(--ease-soft), box-shadow 560ms var(--ease-soft), border-color 560ms var(--ease-soft);
}
.js .pin-card-frame.reveal.is-visible {
  transform: translateY(0) scale(1) rotate(0deg);
  filter: blur(0);
}
.pin-card:hover .pin-card-frame,
.js .pin-card:hover .pin-card-frame.reveal.is-visible {
  transform: translateY(-10px) scale(1.055) rotate(0deg);
  border-color: rgba(60, 11, 29, 0.38);
  box-shadow: 0 30px 72px rgba(37, 7, 17, 0.16);
}
.pin-icon {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto 14px;
  color: var(--burgundy-deep);
}
.pin-card-inner {
  background: #E8D8DE;
  border: 1px solid rgba(60,11,29,0.24);
  border-radius: 13px;
  padding: 16px;
}
.pin-num {
  display: block;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 26px;
  color: var(--burgundy-deep);
  margin-bottom: 10px;
  line-height: 1;
}
.pin-card-inner h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--obsidian);
  margin-bottom: 8px;
  line-height: 1.2;
}
.pin-card-inner p {
  font-size: 13.5px;
  color: var(--obsidian-62);
  line-height: 1.5;
}

@media (min-width: 860px) {
  .pinboard {
    max-width: 1000px;
    height: 1200px;
    display: block;
  }
  .pinboard::before { display: none; }
  .pinboard-path { display: block; }
  .pin-card {
    position: absolute;
    top: var(--top);
    transform: rotate(var(--rot));
  }
  .pin-card[style*="--side:right"] { left: auto; right: var(--offset); }
  .pin-card[style*="--side:left"] { left: var(--offset); right: auto; }
  .pin-card:hover { transform: rotate(0deg); }
  .pin-card:hover .pin-card-frame,
  .js .pin-card:hover .pin-card-frame.reveal.is-visible { transform: translateY(-12px) scale(1.065) rotate(0deg); }
}

/* ==========================================================================
   THE OPERATOR
   ========================================================================== */
.operator-section {
  background: var(--ivory);
  color: var(--obsidian);
  padding-block: 96px;
}
.operator-layout {
  display: grid;
  gap: 44px;
}
.operator-quote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.4;
  color: var(--burgundy);
  border-left: 3px solid var(--burgundy);
  padding-left: 26px;
  max-width: 640px;
}
.operator-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--obsidian-80);
}
.operator-copy p strong { color: var(--obsidian); }
.operator-positioning {
  margin-top: 8px;
  padding: 28px 30px;
  border-radius: var(--radius-md);
  background: var(--burgundy-deep);
  color: var(--ivory);
}
.operator-positioning p {
  font-size: 15.5px;
  line-height: 1.7;
}
.operator-positioning span {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--burgundy-bright);
}

@media (min-width: 1000px) {
  .operator-layout { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

/* ==========================================================================
   INSIGHTS
   ========================================================================== */
.insights-section {
  background: var(--stone-ivory);
  padding-block: 120px;
}
.insights-section .section-head p {
  margin-top: 16px;
  color: var(--obsidian-62);
  font-size: 15px;
  max-width: 520px;
}
.insight-grid {
  display: grid;
  gap: 1px;
  background: var(--stone-30);
  border: 1px solid var(--stone-30);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.insight-card {
  background: var(--ivory-white);
  padding: 34px 28px;
  transition: background-color var(--dur-med) var(--ease);
}
.insight-card:hover { background: var(--ivory); }
.insight-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--obsidian-62);
  border: 1px solid var(--stone-30);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.insight-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--obsidian);
  margin-bottom: 10px;
}
.insight-card p {
  font-size: 13.5px;
  color: var(--obsidian-62);
  line-height: 1.55;
}

@media (min-width: 760px) {
  .insight-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .insight-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   SPEAKING / MENTORING / PUBLICATIONS (thin ivory strip)
   ========================================================================== */
.authority-strip {
  background: var(--ivory);
  color: var(--obsidian);
  padding-block: 56px;
}
.authority-grid {
  display: grid;
  gap: 28px;
  align-items: stretch;
}
.authority-item h3 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--burgundy);
  margin-bottom: 8px;
}
.authority-item p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--obsidian-62);
}
.authority-link {
  color: var(--obsidian-62);
  text-decoration-color: rgba(60, 11, 29, 0.3);
  text-underline-offset: 4px;
  transition: color var(--dur-fast) var(--ease), text-decoration-color var(--dur-fast) var(--ease);
}
.authority-link:hover,
.authority-link:focus-visible {
  color: var(--burgundy);
  text-decoration-color: var(--burgundy);
}

@media (min-width: 760px) {
  .authority-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   FINAL CTA + FOOTER
   ========================================================================== */
.final-cta {
  background-color: var(--ivory);
  background-image:
    radial-gradient(ellipse 72% 92% at 8% 108%, rgba(182, 154, 163, 0.2) 0%, rgba(118, 80, 93, 0.08) 48%, transparent 76%),
    radial-gradient(ellipse 52% 70% at 96% 104%, rgba(60, 11, 29, 0.07) 0%, transparent 76%);
  padding-block: clamp(86px, 9vw, 130px) clamp(160px, 16vw, 230px);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 15% 0%, rgba(60,11,29,0.045), transparent 58%);
  pointer-events: none;
}
.final-cta-layout {
  position: relative;
  display: grid;
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
}
.final-cta-inner { position: relative; }
.final-cta-portrait {
  width: min(100%, 430px);
  justify-self: center;
}
.final-cta-portrait picture { display: block; }
.final-cta-portrait-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: 570px;
  object-fit: contain;
  filter: drop-shadow(0 24px 44px rgba(37, 7, 17, 0.12));
}
.final-cta h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--obsidian);
  max-width: 720px;
  line-height: 1.08;
}
.final-cta p {
  margin-top: 20px;
  font-size: 16px;
  color: var(--obsidian-62);
  max-width: 480px;
}
.final-cta-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.final-cta-actions .btn-primary { padding: 16px 30px; font-size: 13px; }
.final-cta-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--burgundy-deep);
  padding-block: 11px;
  border-bottom: 1px solid var(--stone-30);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.social-link:hover, .social-link:focus-visible { color: var(--burgundy); border-color: var(--burgundy); }
.social-link-email svg { flex: 0 0 auto; }

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ivory-12);
  color: var(--stone);
  font-size: 11px;
  font-weight: 800;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.footer-social a:hover, .footer-social a:focus-visible {
  color: var(--ivory);
  border-color: var(--ivory-40);
}
.footer-social svg { display: block; }

.site-footer {
  position: relative;
  isolation: isolate;
  background-color: var(--obsidian);
  background-image:
    linear-gradient(180deg, #0A0A0B 0%, rgba(10, 10, 11, 0.96) 12%, transparent 36%),
    radial-gradient(ellipse 72% 118% at 12% 18%, rgba(60, 11, 29, 0.18) 0%, rgba(37, 7, 17, 0.08) 48%, transparent 76%),
    radial-gradient(ellipse 66% 108% at 96% 8%, rgba(60, 11, 29, 0.12) 0%, transparent 74%),
    linear-gradient(180deg, #0A0A0B 0%, #0A0A0B 42%, #080809 100%);
  padding-block: clamp(86px, 9vw, 130px) 48px;
  border-top: 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { width: 26px; }
.footer-brand-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--ivory);
}
.footer-brand-text span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--stone);
  margin-top: 2px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-nav a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone);
  padding-block: 13px;
  transition: color var(--dur-fast) var(--ease);
}
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--ivory); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--stone);
  padding-top: 24px;
  border-top: 1px solid var(--ivory-08);
}
@media (max-width: 699px) {
  .final-cta-layout { gap: 42px; }
  .final-cta-portrait { width: min(82vw, 330px); }
  .final-cta-portrait-art { max-height: 460px; }
}

@media (min-width: 760px) {
  .final-cta-layout { grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr); }
}

@media (min-width: 760px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ==========================================================================
   SCROLL PROGRESS - horse indicator (desktop only)
   ========================================================================== */
.scroll-progress {
  position: fixed;
  right: 20px;
  top: 50%;
  z-index: 90;
  display: none;
  width: 34px;
  height: 180px;
  pointer-events: none;
}
.scroll-progress-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--ivory-12);
  transform: translateX(-50%);
}
.scroll-progress-badge {
  position: absolute;
  left: 50%;
  top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--burgundy);
  display: grid;
  place-items: center;
  transform: translate(-50%, 0);
  box-shadow: 0 6px 18px rgba(60,11,29,0.4);
  transition: background-color var(--dur-fast) var(--ease);
}
.scroll-progress-badge img { width: 15px; }

@media (min-width: 1280px) {
  .scroll-progress { display: block; }
}

/* ==========================================================================
   BURGUNDY 2.3 · VERSION 4.0 COLOR APPLICATION
   Color-only layer: no layout, type, content, interaction or motion changes.
   ========================================================================== */
.site-header {
  background-color: var(--burgundy);
  background-image: none;
  color: var(--ivory);
  overflow: hidden;
}
.site-header.is-solid {
  background-color: var(--burgundy);
  background-image: none;
  border-bottom-color: rgba(245, 241, 236, 0.18);
  box-shadow: 0 10px 30px rgba(111, 22, 50, 0.2);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 250px 112px at -34px 112%, rgba(201, 47, 78, 0.28) 0 54%, transparent 55%),
    radial-gradient(ellipse 310px 138px at calc(100% + 54px) -56%, rgba(111, 22, 50, 0.88) 0 56%, transparent 57%),
    radial-gradient(ellipse 205px 94px at calc(100% - 46px) 132%, rgba(243, 167, 188, 0.13) 0 48%, transparent 49%);
}
.site-header::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 13px;
  right: clamp(210px, 23vw, 360px);
  width: 92px;
  height: 50px;
  pointer-events: none;
  opacity: 0.42;
  background-image: radial-gradient(circle, var(--ivory) 1px, transparent 1.35px);
  background-size: 8px 8px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse at center, #000 18%, transparent 74%);
}
.header-inner {
  position: relative;
  z-index: 1;
}
.primary-nav a::after,
.site-header.is-solid .primary-nav a::after { background: var(--signal-crimson); }
.language-option.is-active {
  background: var(--signal-crimson);
  color: var(--ivory);
}
.btn-primary { background: var(--signal-crimson); }
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--burgundy); }
.btn-ghost-light:hover,
.btn-ghost-light:focus-visible { background: var(--blush-rose); }
.mobile-drawer-backdrop { background: rgba(60, 11, 29, 0.72); }

.hero {
  background-color: var(--burgundy);
  background-image: none;
}
.hero::after {
  background-image: radial-gradient(circle, rgba(245, 241, 236, 0.12) 0 0.52px, transparent 0.68px);
}
.hero-title .serif-accent { color: var(--signal-crimson); }
[data-tone="dark"] .eyebrow { color: var(--ivory); }

.proof { background: var(--parchment); }
.stat-card { background: var(--parchment); }
.stat-card:nth-child(2) { background: var(--ice-mist); }
.stat-card:nth-child(3) { background: var(--blush-rose); }
.stat-card:hover { background: var(--ivory); }

.enter-section { background: var(--ivory); }
.enter-card--light { background: var(--parchment); }
.enter-card--dark { background: var(--ice-mist); }
.enter-card--burgundy { background: var(--blush-rose); }

.advisory-section { background: var(--parchment); }
.service-card { background: var(--ivory); }
.service-card:nth-child(2) { background: var(--ice-mist); }
.service-card:nth-child(3) { background: var(--blush-rose); }
.service-card:hover { border-color: var(--signal-crimson); }
.service-index,
.service-outcomes li::before { color: var(--olive); }
.service-outcomes li::before { background: var(--olive); }

.cases-section { background: var(--ivory); }
.rail-nav-btn { background: var(--parchment); }
.rail-nav-btn:hover,
.rail-nav-btn:focus-visible {
  border-color: var(--signal-crimson);
  color: var(--signal-crimson);
}
.rail-card { background: var(--ivory); }
.rail-card--ivory-white { background: var(--parchment); }
.rail-card--pale-burgundy { background: var(--blush-rose); }
.rail-card--stone-ivory { background: var(--ice-mist); }
.case-meta span {
  color: var(--olive);
  background: rgba(92, 107, 74, 0.12);
}
.case-lesson { background: var(--royal-berry); }
.case-lesson dt { color: var(--ivory); }

.think-section { background: var(--blush-rose); }
.pin-card-frame { background: var(--parchment); }
.pin-card-inner { background: var(--ivory); }
.pin-card:nth-child(2n) .pin-card-inner { background: var(--ice-mist); }
.pin-card:nth-child(3n) .pin-card-inner { background: var(--parchment); }
.pin-icon { color: var(--olive); }

.operator-section { background: var(--ivory); }
.operator-positioning { background: var(--royal-berry); }
.operator-positioning span { color: var(--ivory); }

.insights-section { background: var(--ice-mist); }
.insight-grid {
  background: rgba(60, 11, 29, 0.14);
  border-color: rgba(60, 11, 29, 0.14);
}
.insight-card { background: var(--parchment); }
.insight-card:hover { background: var(--ivory); }
.insight-pill {
  color: var(--olive);
  border-color: var(--olive);
}

.authority-strip { background: var(--parchment); }
.authority-item h3 { color: var(--olive); }

.final-cta {
  background-color: var(--blush-rose);
  background-image: none;
}
.final-cta::before { background: none; }
.social-link { color: var(--royal-berry); }
.social-link:hover,
.social-link:focus-visible {
  color: var(--signal-crimson);
  border-color: var(--signal-crimson);
}

.site-footer {
  background-color: var(--burgundy);
  background-image: none;
  color: var(--ivory);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 44% 70% at -7% 116%, rgba(111, 22, 50, 0.96) 0 48%, transparent 49%),
    radial-gradient(ellipse 48% 48% at 18% 122%, rgba(201, 47, 78, 0.42) 0 52%, transparent 53%),
    radial-gradient(ellipse 34% 68% at 106% 110%, rgba(92, 107, 74, 0.58) 0 48%, transparent 49%),
    radial-gradient(ellipse 45% 48% at 88% 122%, rgba(243, 167, 188, 0.28) 0 54%, transparent 55%),
    radial-gradient(ellipse 24% 42% at 91% 80%, rgba(203, 232, 237, 0.18) 0 48%, transparent 49%);
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.46;
  background-image: radial-gradient(circle, var(--ivory) 1px, transparent 1.35px);
  background-size: 9px 9px;
  -webkit-mask-image:
    radial-gradient(ellipse 150px 100px at 12% 76%, #000 10%, transparent 72%),
    radial-gradient(ellipse 145px 96px at 88% 24%, #000 10%, transparent 72%);
  mask-image:
    radial-gradient(ellipse 150px 100px at 12% 76%, #000 10%, transparent 72%),
    radial-gradient(ellipse 145px 96px at 88% 24%, #000 10%, transparent 72%);
}
.footer-inner {
  position: relative;
  z-index: 1;
}
.section-morph--light-to-dark::before {
  background-color: var(--burgundy);
  background-image: linear-gradient(180deg,
    var(--blush-rose) 0%,
    var(--blush-rose) 12%,
    var(--royal-berry) 64%,
    var(--burgundy) 100%);
}

html[dir="rtl"] .site-header::before,
html[dir="rtl"] .site-header::after,
html[dir="rtl"] .site-footer::before,
html[dir="rtl"] .site-footer::after {
  transform: scaleX(-1);
}
@media (max-width: 699px) {
  .site-header::after { display: none; }
}
.scroll-progress-badge {
  background: var(--signal-crimson);
  box-shadow: 0 6px 18px rgba(111, 22, 50, 0.36);
}

/* ==========================================================================
   ORGANIC EDITORIAL SHELL · VERSION 5.0
   Hero, header and footer visual rebuild. Content and interactions unchanged.
   ========================================================================== */
.site-header,
.site-header.is-solid {
  background-color: rgba(255, 251, 245, 0.94);
  background-image: none;
  color: var(--burgundy);
  border-bottom-color: rgba(60, 11, 29, 0.12);
  box-shadow: 0 8px 28px rgba(60, 11, 29, 0.07);
  backdrop-filter: blur(12px) saturate(112%);
}
.site-header.is-solid {
  background-color: rgba(255, 251, 245, 0.98);
  box-shadow: 0 10px 32px rgba(60, 11, 29, 0.1);
}
.site-header::before {
  background:
    radial-gradient(ellipse 230px 98px at -24px 118%, rgba(243, 167, 188, 0.58) 0 54%, transparent 55%),
    radial-gradient(ellipse 280px 112px at calc(100% + 28px) -44%, rgba(245, 241, 236, 0.96) 0 57%, transparent 58%),
    radial-gradient(ellipse 190px 84px at calc(100% - 36px) 128%, rgba(203, 232, 237, 0.62) 0 49%, transparent 50%);
}
.site-header::after {
  opacity: 0.36;
  background-image: radial-gradient(circle, var(--signal-crimson) 1px, transparent 1.4px);
}
.site-header .brand-name,
.site-header .primary-nav a,
.site-header .language-switch,
.site-header .nav-toggle {
  color: var(--burgundy);
}
.site-header .brand-role { color: var(--royal-berry); }
.site-header .primary-nav a:hover,
.site-header .primary-nav a:focus-visible { color: var(--signal-crimson); }
.site-header .language-switch,
.site-header .nav-toggle { border-color: rgba(60, 11, 29, 0.28); }
.site-header .language-option:not(.is-active):hover,
.site-header .language-option:not(.is-active):focus-visible {
  background: rgba(243, 167, 188, 0.3);
}
.site-header :focus-visible { outline-color: var(--signal-crimson); }

.hero {
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse 58% 44% at 3% 22%, rgba(243, 167, 188, 0.28) 0%, transparent 70%),
    radial-gradient(ellipse 72% 64% at 100% 4%, rgba(255, 251, 245, 0.96) 0%, rgba(245, 241, 236, 0.68) 56%, transparent 76%),
    linear-gradient(145deg, var(--parchment) 0%, var(--ivory) 48%, var(--parchment) 100%);
  color: var(--burgundy);
  isolation: isolate;
}
.hero::before,
.hero::after {
  inset: auto;
  z-index: 0;
  -webkit-mask-image: none;
  mask-image: none;
  background-repeat: no-repeat;
}
.hero::before {
  left: -8vw;
  right: -8vw;
  bottom: -19%;
  height: 54%;
  background:
    radial-gradient(ellipse 44% 84% at 5% 110%, rgba(111, 22, 50, 0.96) 0 49%, transparent 50%),
    radial-gradient(ellipse 50% 62% at 33% 116%, rgba(201, 47, 78, 0.74) 0 50%, transparent 51%),
    radial-gradient(ellipse 48% 54% at 70% 119%, rgba(243, 167, 188, 0.76) 0 50%, transparent 51%),
    radial-gradient(ellipse 33% 76% at 101% 104%, rgba(92, 107, 74, 0.76) 0 49%, transparent 50%);
  animation: dot-surface-slow 20s ease-in-out infinite;
}
.hero::after {
  top: 12%;
  right: 2.5%;
  width: clamp(110px, 13vw, 180px);
  height: clamp(90px, 11vw, 150px);
  opacity: 0.52;
  background-image: radial-gradient(circle, var(--signal-crimson) 1.1px, transparent 1.5px);
  background-size: 10px 10px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 12%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 12%, transparent 72%);
  animation: dot-surface-mid 17s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.hero-inner { z-index: 2; }
.hero-title { color: var(--burgundy); }
.hero-title .serif-accent { color: var(--signal-crimson); }
.hero-sub {
  color: rgba(60, 11, 29, 0.76);
  border-top-color: rgba(60, 11, 29, 0.18);
}
.hero .btn-ghost-dark {
  color: var(--burgundy);
  border-color: rgba(60, 11, 29, 0.28);
}
.hero .btn-ghost-dark:hover,
.hero .btn-ghost-dark:focus-visible {
  color: var(--burgundy);
  background: rgba(243, 167, 188, 0.38);
  border-color: var(--signal-crimson);
}
.hero-strip { border-top-color: rgba(60, 11, 29, 0.18); }
.hero-strip-num { color: var(--olive); }
.hero-strip-label { color: var(--royal-berry); }
.hero-strip a:hover .hero-strip-label { color: var(--signal-crimson); }
.hero-footer {
  color: var(--royal-berry);
  border-top-color: rgba(60, 11, 29, 0.13);
}

.hero-organic {
  overflow: hidden;
  border-radius: 54% 46% 48% 52% / 42% 58% 42% 58%;
  background:
    radial-gradient(ellipse 76% 42% at 2% 96%, rgba(111, 22, 50, 0.98) 0 51%, transparent 52%),
    radial-gradient(ellipse 70% 38% at 41% 88%, rgba(201, 47, 78, 0.78) 0 50%, transparent 51%),
    radial-gradient(ellipse 64% 34% at 80% 72%, rgba(243, 167, 188, 0.86) 0 49%, transparent 50%),
    radial-gradient(ellipse 48% 27% at 76% 24%, rgba(203, 232, 237, 0.92) 0 48%, transparent 49%),
    linear-gradient(145deg, rgba(255, 251, 245, 0.42), rgba(245, 241, 236, 0.12));
  box-shadow: inset 0 0 0 1px rgba(60, 11, 29, 0.08);
}
.hero-organic::before {
  content: "";
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  top: -12%;
  right: -32%;
  border: 2px solid rgba(201, 47, 78, 0.58);
  border-radius: 50%;
}
.hero-organic::after {
  content: "";
  position: absolute;
  left: 8%;
  bottom: 18%;
  width: 48%;
  height: 24%;
  opacity: 0.64;
  background-image: radial-gradient(circle, var(--burgundy) 1.2px, transparent 1.55px);
  background-size: 10px 10px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 14%, transparent 74%);
  mask-image: radial-gradient(ellipse at center, #000 14%, transparent 74%);
}

.site-footer {
  background-color: var(--parchment);
  background-image: linear-gradient(180deg, var(--parchment), var(--ivory));
  color: var(--burgundy);
  padding-block: clamp(86px, 9vw, 126px) clamp(180px, 18vw, 260px);
  border-top: 1px solid rgba(60, 11, 29, 0.1);
}
.site-footer::before {
  background:
    radial-gradient(ellipse 34% 82% at -4% 110%, rgba(111, 22, 50, 0.98) 0 49%, transparent 50%),
    radial-gradient(ellipse 48% 48% at 18% 118%, rgba(201, 47, 78, 0.8) 0 51%, transparent 52%),
    radial-gradient(ellipse 45% 38% at 48% 122%, rgba(243, 167, 188, 0.78) 0 51%, transparent 52%),
    radial-gradient(ellipse 27% 58% at 88% 108%, rgba(92, 107, 74, 0.9) 0 49%, transparent 50%),
    radial-gradient(ellipse 34% 48% at 101% 112%, rgba(201, 47, 78, 0.74) 0 50%, transparent 51%),
    radial-gradient(ellipse 20% 32% at 91% 56%, rgba(203, 232, 237, 0.9) 0 48%, transparent 49%);
}
.site-footer::after {
  opacity: 0.48;
  background-image: radial-gradient(circle, var(--royal-berry) 1px, transparent 1.4px);
  background-size: 10px 10px;
  -webkit-mask-image:
    radial-gradient(ellipse 160px 110px at 15% 66%, #000 8%, transparent 72%),
    radial-gradient(ellipse 160px 105px at 84% 43%, #000 8%, transparent 72%);
  mask-image:
    radial-gradient(ellipse 160px 110px at 15% 66%, #000 8%, transparent 72%),
    radial-gradient(ellipse 160px 105px at 84% 43%, #000 8%, transparent 72%);
}
.site-footer .footer-brand-text { color: var(--burgundy); }
.site-footer .footer-brand-text span,
.site-footer .footer-nav a,
.site-footer .footer-meta { color: var(--royal-berry); }
.site-footer .footer-nav a:hover,
.site-footer .footer-nav a:focus-visible { color: var(--signal-crimson); }
.site-footer .footer-social a {
  color: var(--royal-berry);
  border-color: rgba(60, 11, 29, 0.25);
  background: rgba(255, 251, 245, 0.46);
}
.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
  color: var(--signal-crimson);
  border-color: var(--signal-crimson);
  background: rgba(243, 167, 188, 0.28);
}
.site-footer .footer-meta { border-top-color: rgba(60, 11, 29, 0.16); }
.site-footer .footer-meta {
  position: relative;
  z-index: 1;
}
.site-footer .footer-meta a {
  color: var(--burgundy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(60, 11, 29, 0.34);
  text-underline-offset: 4px;
}
.site-footer .footer-meta a:hover,
.site-footer .footer-meta a:focus-visible {
  color: var(--signal-crimson);
  text-decoration-color: currentColor;
}
.site-footer :focus-visible { outline-color: var(--signal-crimson); }

html[dir="rtl"] .hero-organic { transform: scaleX(-1); }
html[dir="rtl"] .final-cta-portrait-art { transform: scaleX(-1); }

@media (max-width: 899px) {
  .hero-organic { border-radius: 48% 52% 44% 56% / 40% 55% 45% 60%; }
}
@media (max-width: 699px) {
  .site-footer { padding-block: 76px 176px; }
  .site-footer::before {
    background:
      radial-gradient(ellipse 58% 64% at -8% 112%, rgba(111, 22, 50, 0.98) 0 49%, transparent 50%),
      radial-gradient(ellipse 72% 42% at 30% 119%, rgba(201, 47, 78, 0.76) 0 50%, transparent 51%),
      radial-gradient(ellipse 56% 50% at 103% 112%, rgba(92, 107, 74, 0.88) 0 49%, transparent 50%),
      radial-gradient(ellipse 54% 38% at 82% 120%, rgba(243, 167, 188, 0.82) 0 50%, transparent 51%);
  }
}

/* Version 5.1: the header shares the hero field at the top of the page. */
.site-header:not(.is-solid) {
  background-color: transparent;
  background-image: none;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.site-header:not(.is-solid)::before,
.site-header:not(.is-solid)::after {
  opacity: 0;
}

/* Version 5.2: organic shapes belong to the hero, never to the header. */
.site-header::before,
.site-header::after,
.site-header.is-solid::before,
.site-header.is-solid::after {
  display: none;
}
.hero {
  background-image:
    radial-gradient(ellipse 270px 116px at -30px 5px, rgba(243, 167, 188, 0.56) 0 54%, transparent 55%),
    radial-gradient(ellipse 330px 142px at calc(100% + 48px) -38px, rgba(245, 241, 236, 0.98) 0 56%, transparent 57%),
    radial-gradient(ellipse 230px 102px at calc(100% - 28px) 30px, rgba(203, 232, 237, 0.64) 0 48%, transparent 49%),
    radial-gradient(ellipse 58% 44% at 3% 22%, rgba(243, 167, 188, 0.26) 0%, transparent 70%),
    radial-gradient(ellipse 72% 64% at 100% 4%, rgba(255, 251, 245, 0.96) 0%, rgba(245, 241, 236, 0.68) 56%, transparent 76%),
    linear-gradient(145deg, var(--parchment) 0%, var(--ivory) 48%, var(--parchment) 100%);
}
.hero-visual {
  animation: horse-hero-breathe 7s var(--ease-soft) 1.25s infinite;
  transform-origin: 50% 58%;
  will-change: transform;
}
.hero-line span {
  transform: translateY(112%) rotateX(-7deg);
  transform-origin: 50% 100%;
  animation-name: hero-text-reveal;
  animation-duration: 1050ms;
}
.hero-line:nth-child(2) span {
  animation-name: hero-text-reveal, hero-accent-glow;
  animation-duration: 1050ms, 5.4s;
  animation-delay: 260ms, 1500ms;
  animation-iteration-count: 1, infinite;
}
.hero-sub {
  animation-name: hero-copy-reveal;
  animation-duration: 1000ms;
}

@keyframes horse-hero-breathe {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-0.2deg); }
  50% { transform: translate3d(0, -7px, 0) rotate(0.35deg); }
}
@keyframes hero-text-reveal {
  0% { transform: translateY(112%) rotateX(-7deg); opacity: 0; filter: blur(5px); }
  64% { opacity: 1; }
  100% { transform: translateY(0) rotateX(0); opacity: 1; filter: blur(0); }
}
@keyframes hero-copy-reveal {
  0% { opacity: 0; transform: translateY(18px); filter: blur(5px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes hero-accent-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(201, 47, 78, 0); }
  50% { text-shadow: 0 10px 34px rgba(201, 47, 78, 0.2); }
}

/* Version 5.3: static horse and higher-fidelity organic hero composition. */
.hero {
  background-color: var(--parchment);
  background-image:
    radial-gradient(circle at calc(100% + 18px) 44px,
      transparent 0 168px,
      rgba(201, 47, 78, 0.58) 169px 171px,
      transparent 172px),
    radial-gradient(ellipse 59% 48% at 101% -4%,
      rgba(255, 240, 215, 0.78) 0 67%,
      rgba(255, 240, 215, 0.42) 68%,
      transparent 69%),
    radial-gradient(ellipse 31% 20% at -5% 2%,
      rgba(243, 167, 188, 0.3) 0 66%,
      transparent 67%),
    radial-gradient(ellipse 74% 62% at 50% 42%,
      rgba(255, 251, 245, 0.96) 0 62%,
      rgba(245, 241, 236, 0.82) 82%,
      transparent 100%),
    linear-gradient(145deg, var(--parchment) 0%, var(--ivory) 54%, var(--parchment) 100%);
}
.hero::before {
  left: -9vw;
  right: -9vw;
  bottom: -17%;
  height: 50%;
  background:
    radial-gradient(ellipse 46% 83% at 2% 112%, rgba(111, 22, 50, 0.98) 0 48.5%, transparent 49%),
    radial-gradient(ellipse 50% 62% at 31% 119%, rgba(201, 47, 78, 0.72) 0 49.5%, transparent 50%),
    radial-gradient(ellipse 50% 52% at 67% 121%, rgba(243, 167, 188, 0.72) 0 49.5%, transparent 50%),
    radial-gradient(ellipse 36% 72% at 102% 108%, rgba(111, 22, 50, 0.94) 0 48.5%, transparent 49%);
  filter: saturate(104%);
}
.hero::after {
  top: 5%;
  right: 2%;
  width: clamp(150px, 18vw, 250px);
  height: clamp(120px, 15vw, 205px);
  opacity: 0.62;
  background-image: radial-gradient(circle, rgba(111, 22, 50, 0.82) 0 1px, transparent 1.35px);
  background-size: 10px 10px;
  -webkit-mask-image:
    radial-gradient(ellipse at 68% 38%, #000 8%, transparent 70%),
    linear-gradient(135deg, transparent 8%, #000 42%, transparent 88%);
  mask-image:
    radial-gradient(ellipse at 68% 38%, #000 8%, transparent 70%),
    linear-gradient(135deg, transparent 8%, #000 42%, transparent 88%);
}
.hero-visual {
  animation: none;
  transform: none;
  will-change: auto;
}
.hero-visual canvas {
  display: block;
  pointer-events: auto;
}
.hero-visual.is-ready .hero-visual-fallback { opacity: 0; }
html[dir="rtl"] .hero-visual { transform: none; }

@media (max-width: 699px) {
  .hero {
    background-image:
      radial-gradient(circle at calc(100% + 18px) 24px,
        transparent 0 96px,
        rgba(201, 47, 78, 0.52) 97px 98px,
        transparent 99px),
      radial-gradient(ellipse 74% 23% at 104% 0%, rgba(203, 232, 237, 0.66) 0 65%, transparent 66%),
      radial-gradient(ellipse 58% 17% at -9% 1%, rgba(243, 167, 188, 0.34) 0 65%, transparent 66%),
      linear-gradient(145deg, var(--parchment) 0%, var(--ivory) 54%, var(--parchment) 100%);
  }
  .hero::after {
    top: 3%;
    right: -8%;
    width: 150px;
    height: 116px;
    opacity: 0.4;
  }
}

/* ==========================================================================
   ARABIC / RTL
   ========================================================================== */
html[dir="rtl"] body {
  font-family: "Alexandria", Tahoma, Arial, sans-serif;
  text-align: right;
}
html[dir="rtl"] .brand-role,
html[dir="rtl"] .primary-nav a,
html[dir="rtl"] .btn,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .service-index,
html[dir="rtl"] .service-outcomes,
html[dir="rtl"] .rail-card-industry,
html[dir="rtl"] .rail-card-cue,
html[dir="rtl"] .case-meta span,
html[dir="rtl"] .case-field dt,
html[dir="rtl"] .social-link,
html[dir="rtl"] .footer-nav a {
  letter-spacing: 0;
}
html[dir="rtl"] .serif-accent,
html[dir="rtl"] .pin-num,
html[dir="rtl"] .cases-note,
html[dir="rtl"] .operator-quote {
  font-family: "Noto Naskh Arabic", "Times New Roman", serif;
}
html[dir="rtl"] .primary-nav a::after { transform-origin: right; }
html[dir="rtl"] .mobile-drawer-panel {
  right: auto;
  left: 0;
  border-left: 0;
  border-right: 1px solid var(--ivory-12);
  transform: translateX(-100%);
}
html[dir="rtl"] .hero-title,
html[dir="rtl"] .final-cta { text-align: right; }
html[dir="rtl"] .rail-viewport,
html[dir="rtl"] .rail-track { direction: ltr; }
html[dir="rtl"] .rail-card {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .rail-nav-btn svg { transform: scaleX(-1); }
html[dir="rtl"] .service-outcomes li::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .service-outcomes li {
  padding-left: 0;
  padding-right: 22px;
}
html[dir="rtl"] .footer-meta a {
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir="rtl"] .brand-mark,
html[dir="rtl"] .hero-visual-fallback,
html[dir="rtl"] .hero-visual canvas,
html[dir="rtl"] .scroll-progress-badge img,
html[dir="rtl"] .footer-brand img {
  transform: scaleX(-1);
}
@media (min-width: 1100px) {
  html[dir="rtl"] .rail[data-pose="1"] .rail-horse { transform: translateY(0) scale(-1, 1); }
  html[dir="rtl"] .rail[data-pose="2"] .rail-horse { transform: translateY(60px) scale(-1.04, 1.04); }
  html[dir="rtl"] .rail[data-pose="3"] .rail-horse { transform: translateY(120px) scale(-1, 1); }
  html[dir="rtl"] .rail[data-pose="4"] .rail-horse { transform: translateY(180px) scale(-1.08, 1.08); }
}

@media (max-width: 420px) {
  .language-switch { flex-shrink: 0; }
  .language-option { min-width: 27px; height: 27px; padding-inline: 6px; }
  .header-actions { gap: 8px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before,
  .hero::after,
  .morph-dot-layer {
    animation: none !important;
    transform: none !important;
  }
  .hero-line span,
  .hero-sub, .hero-ctas, .hero-strip {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .service-card:hover, .btn-primary:hover, .stat-card:hover {
    transform: none !important;
  }
  .rail-horse { transition: none !important; }
  .rail-viewport {
    overflow-x: auto !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  .rail-nav-btn { display: none !important; }
  .rail-card, .rail-card-detail { transition: none !important; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

html.reduced-motion .hero-line span,
html.reduced-motion .hero-sub,
html.reduced-motion .hero-ctas,
html.reduced-motion .hero-strip {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
