/* ==========================================================================
   כולל דיינות "אהל שלמה" – באר שבע | Modern RTL & Scroll-Motion System v3.0
   ========================================================================== */

@view-transition {
  navigation: auto;
}

:root {
  --navy: #0F243E;
  --navy-deep: #091729;
  --navy-soft: #173458;
  --gold: #C59B43;
  --gold-light: #DFC078;
  --gold-bright: #F1D795;
  --gold-text: #78540D; /* 5.96:1 WCAG AA contrast on cream/tinted badges */
  --cream: #FAF8F4;
  --cream-alt: #F3EFE6;
  --surface: #FFFFFF;
  --ink: #1E293B;
  --muted: #475569;
  --border: rgba(15, 36, 62, 0.12);
  --border-gold: rgba(197, 155, 67, 0.34);
  --whatsapp: #187C4F;
  --whatsapp-hover: #13633F;

  --font-display: "IBM Plex Sans Hebrew", "Assistant", system-ui, -apple-system, sans-serif;
  --font-sans: "Assistant", "IBM Plex Sans Hebrew", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 16px rgba(9, 23, 41, 0.06);
  --shadow-md: 0 14px 36px rgba(9, 23, 41, 0.10);
  --shadow-lg: 0 24px 60px rgba(9, 23, 41, 0.18);
  --container: 1240px;
  --header-h: 82px;
  --transition: 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  padding-bottom: 76px;
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

img, picture, svg {
  display: block;
  max-width: 100%;
}

button, input {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Top Scroll Progress Indicator */
#scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 0%;
  height: 3px;
  z-index: 980;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 60%, var(--gold-light) 100%);
  pointer-events: none;
  transition: width 80ms linear;
}

/* Skip Link & Screen-Reader Utility */
.skip-link {
  position: fixed;
  top: -120px;
  inset-inline-start: 16px;
  z-index: 9999;
  background: var(--navy);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold-light);
  font-weight: 700;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}

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

/* Typography — Modern Architectural Hebrew Display */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  color: var(--navy);
  margin-top: 0;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.45rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.018em;
}

h3 {
  font-size: clamp(1.18rem, 2.0vw, 1.42rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--ink);
}

.lead {
  font-size: clamp(1.06rem, 1.4vw, 1.22rem);
  color: var(--muted);
  line-height: 1.75;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.section {
  padding-block: clamp(56px, 7vw, 96px);
  position: relative;
  overflow-x: clip;
}

.section--surface {
  background-color: var(--surface);
}

.section--alt {
  background-color: var(--cream-alt);
}

.section--navy {
  background:
    radial-gradient(circle at 12% 18%, rgba(197, 155, 67, 0.14) 0%, transparent 45%),
    linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 65%, #132C4D 100%);
  color: #F8FAFC;
}

.section--navy h2,
.section--navy h3,
.section--navy p {
  color: #F8FAFC;
}

/* Floating Ambient Depth Orbs */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(55px);
  transform: translate3d(0, var(--float-y, 0px), 0);
  will-change: transform;
}

.ambient-orb--gold {
  width: clamp(240px, 30vw, 420px);
  height: clamp(240px, 30vw, 420px);
  background: radial-gradient(circle, rgba(197, 155, 67, 0.16) 0%, rgba(197, 155, 67, 0) 70%);
}

.ambient-orb--navy {
  width: clamp(260px, 32vw, 460px);
  height: clamp(260px, 32vw, 460px);
  background: radial-gradient(circle, rgba(15, 36, 62, 0.08) 0%, rgba(15, 36, 62, 0) 70%);
}

/* Sculpted SVG Section Dividers */
.section-wave-top {
  padding-top: clamp(76px, 9vw, 118px);
}

.wave-divider {
  position: absolute;
  inset-inline: 0;
  width: 100%;
  height: clamp(28px, 4vw, 54px);
  pointer-events: none;
  z-index: 3;
}

.wave-divider--bottom {
  bottom: -1px;
}

.wave-divider--top {
  top: -1px;
}

.section-header {
  max-width: 760px;
  margin-bottom: clamp(32px, 4.5vw, 52px);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-text);
  background: rgba(197, 155, 67, 0.14);
  border: 1px solid var(--border-gold);
  padding: 6px 15px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.eyebrow--light {
  color: var(--gold-bright);
  background: rgba(15, 36, 62, 0.55);
  border-color: rgba(223, 192, 120, 0.45);
  backdrop-filter: blur(8px);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 0 rgba(241, 215, 149, 0.7);
  flex-shrink: 0;
  animation: pulseDot 2.4s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(241, 215, 149, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(241, 215, 149, 0); }
  100% { box-shadow: 0 0 0 0 rgba(241, 215, 149, 0); }
}

.gold-rule {
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 999px;
  margin-block: 14px 18px;
  transform-origin: right center;
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.section-header--center .gold-rule {
  margin-inline: auto;
  transform-origin: center center;
}

html.has-js .reveal[data-reveal="pending"] .gold-rule {
  transform: scaleX(0);
}

html.has-js .reveal[data-reveal="visible"] .gold-rule {
  transform: scaleX(1);
}

/* Buttons with Subtle Gold Sheen */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.24) 50%, transparent 75%);
  transform: translateX(120%);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.btn:hover::before {
  transform: translateX(-120%);
}

.btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(24, 124, 79, 0.32);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  box-shadow: 0 12px 26px rgba(24, 124, 79, 0.42);
}

.btn-gold {
  background: linear-gradient(135deg, #D8B058 0%, #B88B2E 100%);
  color: #091729;
  box-shadow: 0 8px 22px rgba(197, 155, 67, 0.34);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #E7C87E 0%, #C79B3F 100%);
}

.btn-navy {
  background-color: var(--navy);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-navy:hover {
  background-color: var(--navy-soft);
}

.btn-outline-light {
  background: rgba(15, 36, 62, 0.48);
  color: #FFFFFF;
  border-color: rgba(223, 192, 120, 0.65);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--gold-bright);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: rgba(15, 36, 62, 0.32);
}

.btn-outline-navy:hover {
  border-color: var(--navy);
  background: rgba(15, 36, 62, 0.05);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ==========================================================================
   Luxury Sapphire-Navy Top Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(9, 23, 41, 0.96) 0%, rgba(15, 36, 62, 0.93) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 192, 120, 0.3);
  transition: box-shadow var(--transition), background-color var(--transition);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  opacity: 0.72;
}

.site-header.is-scrolled {
  background: rgba(9, 21, 39, 0.98);
  box-shadow: 0 12px 34px rgba(5, 12, 24, 0.28);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

@media (min-width: 1080px) {
  .header-inner {
    justify-content: space-between;
    gap: 20px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.brand:hover .brand-logo {
  transform: scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 600;
  white-space: nowrap;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 3px;
}

.desktop-nav a {
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 0.91rem;
  font-weight: 600;
  color: #E2E8F0;
  position: relative;
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 3px;
  inset-inline: 11px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.desktop-nav a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.desktop-nav a[aria-current="page"] {
  color: var(--gold-bright);
  font-weight: 700;
  background: rgba(223, 192, 120, 0.14);
}

.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.header-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(223, 192, 120, 0.45);
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.88rem;
  transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.header-phone-btn svg {
  width: 16px;
  height: 16px;
  color: var(--gold-light);
}

.header-phone-btn:hover {
  border-color: var(--gold-bright);
  background: rgba(223, 192, 120, 0.16);
  transform: translateY(-1px);
}

.header-wa-btn {
  padding: 9px 16px;
  font-size: 0.88rem;
}

/* Mobile 3-line Hamburger placed on the RIGHT in RTL */
.menu-toggle {
  order: -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(223, 192, 120, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--transition), border-color var(--transition);
}

.menu-toggle:hover {
  background: rgba(223, 192, 120, 0.18);
  border-color: var(--gold-bright);
}

@media (min-width: 1080px) {
  .desktop-nav,
  .header-actions {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset-block-start: var(--header-h);
  inset-inline: 0;
  background: #0D2038;
  border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow-lg);
  padding: 20px 16px 28px;
  z-index: 880;
  display: none;
}

.mobile-drawer.is-open {
  display: block;
  animation: drawerSlide 220ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes drawerSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.mobile-drawer nav a {
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: #F1F5F9;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer nav a[aria-current="page"] {
  background: rgba(223, 192, 120, 0.16);
  color: var(--gold-bright);
  border-color: rgba(223, 192, 120, 0.45);
  border-inline-start: 4px solid var(--gold-bright);
}

/* ==========================================================================
   Hero Section — Multi-Layer Scroll Parallax & Metallic Gold Accent
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(580px, 82vh, 770px);
  display: flex;
  align-items: center;
  padding-block: 68px 130px;
  background-color: var(--navy-deep);
  overflow: hidden;
  color: #FFFFFF;
}

.hero-bg {
  position: absolute;
  inset: -6% 0 0 0;
  width: 100%;
  height: 112%;
  transform: translate3d(0, var(--hero-bg-y, 0px), 0) scale(var(--hero-bg-scale, 1));
  will-change: transform;
}

.hero-bg picture,
.media-frame picture,
.portrait-frame picture {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(1.12) contrast(1.06) brightness(1.03);
  transform-origin: center center;
  animation: heroZoom 22s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(8, 20, 38, 0.93) 0%, rgba(10, 26, 48, 0.78) 44%, rgba(11, 29, 54, 0.22) 100%),
    linear-gradient(0deg, rgba(8, 20, 38, 0.72) 0%, transparent 45%),
    radial-gradient(circle at 22% 28%, rgba(223, 192, 120, 0.2) 0%, transparent 48%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(223, 192, 120, 0.35) 0,
    rgba(223, 192, 120, 0.35) 1px,
    transparent 1px,
    transparent 64px
  );
  mask-image: linear-gradient(to left, transparent 10%, black 75%);
  -webkit-mask-image: linear-gradient(to left, transparent 10%, black 75%);
  transform: translate3d(0, var(--hero-pat-y, 0px), 0);
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
  transform: translate3d(0, var(--hero-text-y, 0px), 0);
  opacity: var(--hero-text-opacity, 1);
  will-change: transform, opacity;
}

.hero-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroEnter 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-stagger > *:nth-child(1) { animation-delay: 60ms; }
.hero-stagger > *:nth-child(2) { animation-delay: 140ms; }
.hero-stagger > *:nth-child(3) { animation-delay: 220ms; }
.hero-stagger > *:nth-child(4) { animation-delay: 300ms; }
.hero-stagger > *:nth-child(5) { animation-delay: 380ms; }

@keyframes heroEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  color: #FFFFFF;
  margin-bottom: 18px;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.45);
}

.hero-accent {
  display: inline-block;
  background: linear-gradient(115deg, #F6E2A6 0%, #D4A94E 42%, #FFF0C2 62%, #C99C3F 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldShimmer 6.5s linear infinite;
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

.hero-sub {
  font-size: clamp(1.06rem, 1.55vw, 1.24rem);
  color: #F1F5F9;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 640px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  font-size: 0.92rem;
  color: #E2E8F0;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta svg {
  width: 16px;
  height: 16px;
  color: var(--gold-light);
}

.hero-scroll-cue {
  display: none;
}

@media (min-width: 900px) {
  .hero-scroll-cue {
    position: absolute;
    bottom: 84px;
    inset-inline-end: max(24px, calc((100% - var(--container)) / 2));
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-bright);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: 0.9;
    transition: opacity var(--transition), transform var(--transition);
  }
  .hero-scroll-cue:hover {
    opacity: 1;
    transform: translateY(3px);
  }
  .scroll-cue-line {
    width: 2px;
    height: 26px;
    background: linear-gradient(180deg, var(--gold-bright) 0%, transparent 100%);
    border-radius: 99px;
    position: relative;
    overflow: hidden;
  }
  .scroll-cue-line::after {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    width: 2px;
    height: 12px;
    background: #FFFFFF;
    animation: cueDrop 1.9s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  }
}

@keyframes cueDrop {
  0% { transform: translateY(0); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(38px); opacity: 0; }
}

/* Floating Proof Bar overlapping Hero */
.proof-section {
  position: relative;
  z-index: 10;
  margin-top: -70px;
  padding-bottom: 24px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 900px) {
  .proof-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

.proof-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.proof-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.proof-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(15, 36, 62, 0.06);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.proof-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-text);
}

.proof-value {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.1vw, 1.68rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.15;
}

.proof-label {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ==========================================================================
   Continuous Dignified Heritage Ribbon (Marquee)
   ========================================================================== */
.heritage-marquee {
  background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-deep) 100%);
  border-block: 1px solid rgba(223, 192, 120, 0.35);
  color: var(--gold-bright);
  padding-block: 14px;
  overflow: hidden;
  direction: ltr;
  position: relative;
  margin-top: 12px;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeLoop 38s linear infinite;
}

.heritage-marquee:hover .marquee-track,
.heritage-marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-inline-end: 28px;
}

.marquee-item {
  direction: rtl;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: #F8FAFC;
  white-space: nowrap;
}

.marquee-sep {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(223, 192, 120, 0.6);
  flex-shrink: 0;
}

@keyframes marqueeLoop {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   Sub-Page Header (Page Hero)
   ========================================================================== */
.page-hero {
  position: relative;
  background:
    radial-gradient(circle at 18% 25%, rgba(197, 155, 67, 0.2) 0%, transparent 45%),
    linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 70%, #173458 100%);
  color: #FFFFFF;
  padding-block: clamp(48px, 6.5vw, 84px) clamp(64px, 8vw, 98px);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(223, 192, 120, 0.35) 0,
    rgba(223, 192, 120, 0.35) 1px,
    transparent 1px,
    transparent 56px
  );
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #CBD5E1;
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: var(--gold-light);
  font-weight: 600;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  color: #FFFFFF;
  margin-bottom: 14px;
  max-width: 820px;
}

.page-hero .lead {
  color: #E2E8F0;
  max-width: 720px;
  margin-bottom: 0;
}

/* ==========================================================================
   Grid Layouts, Editorial Cards & Interactive 3D Tilt / Spotlight
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 920px) {
  .split-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
  .split-grid--reverse .split-media {
    order: -1;
  }
  [data-parallax-speed] {
    transform: translate3d(0, var(--float-y, 0px), 0);
    will-change: transform;
  }
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

/* Cursor Spotlight & Subtle 3D Tilt on Desktop Hover */
@media (hover: hover) and (pointer: fine) {
  .proof-card::after,
  .card::after,
  .video-card::after,
  .step-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
      260px circle at var(--mx, 50%) var(--my, 50%),
      rgba(197, 155, 67, 0.14),
      transparent 70%
    );
    opacity: 0;
    transition: opacity 280ms ease;
    z-index: 1;
  }

  .proof-card:hover::after,
  .card:hover::after,
  .video-card:hover::after,
  .step-card:hover::after {
    opacity: 1;
  }

  .proof-card:hover,
  .card:hover,
  .video-card:hover,
  .step-card:hover {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px);
  }
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 36, 62, 0.08) 0%, rgba(197, 155, 67, 0.16) 100%);
  border: 1px solid var(--border-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--navy);
  transition: transform var(--transition);
}

.card:hover .card-icon {
  transform: scale(1.06);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--navy);
}

.card h3 {
  margin-bottom: 10px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Continuous Scroll-Parallax Media Frames & Curtain Reveal */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-md);
  background: var(--navy-deep);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.media-frame:hover img {
  transform: scale(1.04);
}

.media-frame[data-parallax-media] img {
  height: 118%;
  width: 100%;
  position: relative;
  top: -9%;
  transform: translate3d(0, var(--media-y, 0px), 0);
  transition: none;
  will-change: transform;
}

.media-frame--landscape {
  aspect-ratio: 3 / 2;
}

.media-frame--wide {
  aspect-ratio: 16 / 10;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 420px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
  background: var(--navy);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portrait-frame[data-parallax-media] img {
  height: 112%;
  width: 100%;
  position: relative;
  top: -4%;
  object-position: top center;
  transform: translate3d(0, var(--media-y, 0px), 0);
  transition: none;
  will-change: transform;
}

html.has-js .reveal-curtain[data-reveal="pending"] {
  clip-path: inset(8% 0 8% 0 round 24px);
}

html.has-js .reveal-curtain[data-reveal="visible"] {
  clip-path: inset(0 0 0 0 round 24px);
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
              clip-path 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.media-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 28px 20px 16px;
  background: linear-gradient(to top, rgba(9, 23, 41, 0.88) 0%, transparent 100%);
  color: #F8FAFC;
  font-size: 0.88rem;
  font-weight: 500;
}

/* Clean Check List */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
}

.check-list li svg {
  width: 20px;
  height: 20px;
  color: var(--gold-text);
  flex-shrink: 0;
  margin-top: 4px;
}

/* ==========================================================================
   YouTube Showcase & Lite Embed Facade
   ========================================================================== */
.video-featured {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(223, 192, 120, 0.32);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 900px) {
  .video-featured {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 32px;
  }
}

.yt-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #060E1A;
  border: 1px solid rgba(223, 192, 120, 0.3);
}

.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.yt-facade:hover img {
  transform: scale(1.04);
  filter: brightness(0.88);
}

.yt-play-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: linear-gradient(to top, rgba(9, 23, 41, 0.55) 0%, rgba(9, 23, 41, 0.15) 60%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.yt-play-circle {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(15, 36, 62, 0.88);
  border: 2px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition), background-color var(--transition);
}

.yt-play-btn:hover .yt-play-circle {
  transform: scale(1.1);
  background: var(--gold);
}

.yt-play-circle svg {
  width: 26px;
  height: 26px;
  fill: var(--gold-light);
  margin-inline-start: 3px;
}

.yt-play-btn:hover .yt-play-circle svg {
  fill: var(--navy-deep);
}

.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card {
  position: relative;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.section--navy .video-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(223, 192, 120, 0.24);
  color: #F8FAFC;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.video-card .yt-facade {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--border-gold);
}

.video-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.video-role {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.section--navy .video-role {
  color: #CBD5E1;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(197, 155, 67, 0.15);
  color: var(--gold-text);
  border: 1px solid var(--border-gold);
}

.section--navy .badge {
  background: rgba(223, 192, 120, 0.16);
  color: var(--gold-light);
  border-color: rgba(223, 192, 120, 0.36);
}

.badge--navy {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

.section--navy .badge--navy {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.28);
}

.video-card h3 {
  font-size: 1.12rem;
  margin-bottom: 2px;
}

.section--navy .video-card h3 {
  color: #FFFFFF;
}

.video-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}

.section--navy .video-card p {
  color: #CBD5E1;
}

/* Filter Toolbar (/shiurim/) */
.filter-toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.filter-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  position: relative;
  flex: 1 1 260px;
  max-width: 380px;
}

.search-box input {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  font-size: 0.95rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
}

.search-box svg {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.filter-chip:hover {
  border-color: var(--gold);
}

.filter-chip.is-active {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

.filter-count {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.is-hidden {
  display: none !important;
}

/* ==========================================================================
   Roadmap & Scroll-Drawing Golden Progress Rail
   ========================================================================== */
.roadmap-wrap {
  position: relative;
}

.roadmap-rail {
  display: none;
}

@media (min-width: 900px) {
  .roadmap-rail {
    display: block;
    position: absolute;
    top: 44px;
    inset-inline: 10%;
    height: 3px;
    background: rgba(15, 36, 62, 0.12);
    border-radius: 99px;
    z-index: 0;
    overflow: hidden;
  }
  .roadmap-rail-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
    transform-origin: right center;
    transform: scaleX(var(--rail-progress, 0));
    will-change: transform;
  }
}

.roadmap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  position: relative;
  z-index: 1;
}

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

.step-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 2px solid var(--gold);
}

/* ==========================================================================
   Notice / Callout Boxes
   ========================================================================== */
.notice-box {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-inline-start: 5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.notice-box--soft {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF5E8 100%);
}

/* ==========================================================================
   Smooth CSS Grid FAQ Accordion
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item[data-open="true"] {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.faq-trigger svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold-text);
  transition: transform var(--transition);
}

.faq-item[data-open="true"] .faq-trigger svg {
  transform: rotate(180deg);
}

.faq-panel-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[data-open="true"] .faq-panel-wrap {
  grid-template-rows: 1fr;
}

.faq-panel {
  overflow: hidden;
}

.faq-panel-inner {
  padding: 0 22px 18px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ==========================================================================
   Final CTA Band & Footer
   ========================================================================== */
.cta-band {
  background:
    radial-gradient(circle at 80% 20%, rgba(197, 155, 67, 0.24) 0%, transparent 45%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid rgba(223, 192, 120, 0.35);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

@media (min-width: 860px) {
  .cta-band {
    flex-direction: row;
    align-items: center;
  }
}

.cta-band h2 {
  color: #FFFFFF;
  margin-bottom: 10px;
}

.cta-band p {
  color: #E2E8F0;
  margin-bottom: 0;
  max-width: 600px;
}

.site-footer {
  background: var(--navy-deep);
  color: #CBD5E1;
  padding-block: 56px 28px;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (min-width: 780px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.1fr;
  }
}

.site-footer h3 {
  color: #FFFFFF;
  font-size: 1.12rem;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #94A3B8;
}

/* Mobile Sticky Action Bar */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 950;
  background: rgba(9, 23, 41, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1.5px solid var(--gold);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

.mobile-cta-bar .btn {
  padding: 11px 12px;
  font-size: 0.9rem;
  width: 100%;
}

@media (min-width: 900px) {
  .mobile-cta-bar {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero .cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .hero .cta-group .btn {
    width: 100%;
  }
  .eyebrow {
    border-radius: 14px;
    line-height: 1.45;
  }
}

/* ==========================================================================
   Native Accessibility Toolbar (ת"י 5568 / WCAG 2.1 AA)
   ========================================================================== */
.a11y-fab {
  position: fixed;
  bottom: 84px;
  inset-inline-end: 12px;
  z-index: 940;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #FFFFFF;
  border: 2px solid var(--gold-light);
  box-shadow: 0 8px 24px rgba(9, 23, 41, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition);
}

@media (min-width: 900px) {
  .a11y-fab {
    bottom: 22px;
    inset-inline-end: 22px;
  }
}

.a11y-fab:hover {
  transform: scale(1.06);
  background: var(--navy-soft);
}

.a11y-fab svg {
  width: 24px;
  height: 24px;
}

.a11y-panel {
  position: fixed;
  bottom: 140px;
  inset-inline-end: 12px;
  z-index: 945;
  width: min(330px, calc(100vw - 24px));
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  display: none;
}

@media (min-width: 900px) {
  .a11y-panel {
    bottom: 80px;
    inset-inline-end: 22px;
  }
}

.a11y-panel.is-open {
  display: block;
}

.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.a11y-panel-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.a11y-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}

.a11y-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.a11y-btn {
  padding: 9px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.a11y-btn:hover {
  border-color: var(--gold);
}

.a11y-btn[aria-pressed="true"] {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--gold);
}

.a11y-footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.a11y-footer-links a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
}

.a11y-reset-btn {
  background: transparent;
  border: 0;
  color: var(--gold-text);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

/* Accessibility Mode Overrides */
html.a11y-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px;
}

html.a11y-font body,
html.a11y-font h1,
html.a11y-font h2,
html.a11y-font h3,
html.a11y-font h4,
html.a11y-font .display {
  font-family: Arial, "Assistant", sans-serif !important;
}

html.a11y-contrast body {
  background: #000000 !important;
  color: #FFFFFF !important;
}

html.a11y-contrast .section,
html.a11y-contrast .section--surface,
html.a11y-contrast .section--alt,
html.a11y-contrast .section--navy,
html.a11y-contrast .card,
html.a11y-contrast .proof-card,
html.a11y-contrast .step-card,
html.a11y-contrast .notice-box,
html.a11y-contrast .faq-item,
html.a11y-contrast .filter-toolbar,
html.a11y-contrast .video-card,
html.a11y-contrast .a11y-panel,
html.a11y-contrast .heritage-marquee {
  background: #0B0F17 !important;
  color: #FFFFFF !important;
  border-color: #FFD700 !important;
}

html.a11y-contrast h1,
html.a11y-contrast h2,
html.a11y-contrast h3,
html.a11y-contrast p,
html.a11y-contrast li,
html.a11y-contrast .lead,
html.a11y-contrast .proof-value,
html.a11y-contrast .proof-label,
html.a11y-contrast .faq-trigger,
html.a11y-contrast .faq-panel-inner,
html.a11y-contrast .video-role,
html.a11y-contrast .filter-count,
html.a11y-contrast .marquee-item {
  color: #FFFFFF !important;
}

html.a11y-contrast .hero-accent {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #FFD700 !important;
}

html.a11y-contrast a,
html.a11y-contrast .eyebrow,
html.a11y-contrast .badge {
  color: #FFD700 !important;
}

html.a11y-contrast .wave-divider,
html.a11y-contrast .ambient-orb {
  display: none;
}

/* ==========================================================================
   Directional Scroll Reveal Transitions & Reduced-Motion Guards
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 640ms cubic-bezier(0.22, 1, 0.36, 1), transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

html.has-js .reveal[data-reveal="pending"] {
  opacity: 0;
  transform: translateY(24px);
}

html.has-js .reveal[data-reveal="pending"][data-reveal-dir="right"] {
  transform: translateX(30px);
}

html.has-js .reveal[data-reveal="pending"][data-reveal-dir="left"] {
  transform: translateX(-30px);
}

html.has-js .reveal[data-reveal="pending"][data-reveal-dir="scale"] {
  transform: scale(0.95);
}

html.has-js .reveal[data-reveal="visible"] {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after {
  transition: none !important;
  animation: none !important;
  scroll-behavior: auto !important;
}

html.a11y-no-motion .reveal,
html.a11y-no-motion .hero-stagger > *,
html.a11y-no-motion .hero-content {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}

html.a11y-no-motion .hero-bg,
html.a11y-no-motion .hero-pattern,
html.a11y-no-motion [data-parallax-media] img,
html.a11y-no-motion [data-parallax-speed],
html.a11y-no-motion .marquee-track {
  transform: none !important;
}

html.a11y-no-motion .roadmap-rail-fill,
html.a11y-no-motion .gold-rule {
  transform: scaleX(1) !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal,
  .hero-stagger > *,
  .hero-content {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .hero-bg,
  .hero-pattern,
  [data-parallax-media] img,
  [data-parallax-speed],
  .marquee-track {
    transform: none !important;
  }
  .roadmap-rail-fill,
  .gold-rule {
    transform: scaleX(1) !important;
  }
}
