/* ============================================================
   THE 99 DOORS — Monochrome / Obsidian theme
   Modern black & white, 3D, immersive, image-driven.
   ============================================================ */

:root {
  --bg:        #050505;
  --bg-2:      #0b0b0c;
  --surface:   #101012;
  --surface-2: #17171a;
  --text:      #f4f4f5;
  --muted:     #9b9ba1;
  --faint:     #66666c;
  --line:      rgba(255,255,255,0.12);
  --line-2:    rgba(255,255,255,0.26);
  --white:     #ffffff;
  --glow:      rgba(255,255,255,0.14);

  --accent-blue:    #3b6dff;
  --accent-violet:  #8b5cf6;
  --accent-magenta: #c44fe0;
  --grad-aurora: linear-gradient(120deg, var(--accent-blue), var(--accent-violet) 55%, var(--accent-magenta));
  --accent-glow: rgba(139, 92, 246, 0.35);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui:      "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Source Serif 4", Georgia, serif;
  --font-arabic:  "Amiri", "Traditional Arabic", serif;

  --maxw-text: 720px;
  --maxw-wide: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 18px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
ul { list-style: none; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid var(--accent-violet); outline-offset: 3px; border-radius: 2px; }

/* ---------- Fixed background layers ---------- */
.geo-bg {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(ellipse at 50% 120%, rgba(255,255,255,0.04), transparent 55%),
    var(--bg);
}
.geo-pattern {
  position: fixed; inset: 0; z-index: -2; opacity: 0.04; pointer-events: none;
  background-repeat: repeat; background-size: 90px 90px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M45 6 L54 36 L84 45 L54 54 L45 84 L36 54 L6 45 L36 36 Z'/%3E%3Crect x='23' y='23' width='44' height='44' transform='rotate(45 45 45)'/%3E%3C/g%3E%3C/svg%3E");
}
#points { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* Cursor spotlight + scroll progress */
.spotlight {
  position: fixed; top: 0; left: 0; width: 480px; height: 480px; z-index: 1;
  margin: -240px 0 0 -240px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.07), transparent 70%);
  mix-blend-mode: screen; opacity: 0; transition: opacity 0.4s ease; will-change: transform;
}
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200;
  background: linear-gradient(90deg, rgba(255,255,255,0.3), #fff);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(5,5,5,0.6);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav__logo { display: flex; align-items: baseline; gap: 0.6rem; }
.nav__logo-num { font-family: var(--font-arabic); font-size: 1.6rem; color: #fff; line-height: 1; }
.nav__logo-text { font-family: var(--font-ui); font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a {
  font-family: var(--font-ui); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--grad-aurora);
  transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 1.1rem; }

/* Baby Steps pill */
.pill {
  font-family: var(--font-ui); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: #fff; color: #000; padding: 0.55rem 1.05rem; border-radius: 999px;
  border: 1px solid #fff; transition: all 0.3s var(--ease); white-space: nowrap;
}
.pill:hover { background: transparent; color: #fff; border-color: var(--accent-violet); box-shadow: 0 0 24px var(--accent-glow); }
.pill--ghost { background: transparent; color: #fff; }
.pill--ghost:hover { background: #fff; color: #000; }

/* pill-chromed to match .langsw__btn — same border/radius/height so the two
   nav-right controls read as one family instead of a bordered pill next to a
   bare floating glyph */
.nav__support {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: var(--muted); line-height: 1; position: relative;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.7rem;
  transition: all 0.3s var(--ease);
}
.nav__support:hover { color: #fff; border-color: var(--line-2); transform: scale(1.06); }
.nav__support[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute; top: 150%; right: 0; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  font-family: var(--font-ui); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.4rem 0.7rem; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.nav__support[data-tooltip]:hover::after { opacity: 1; }

/* Floating donate */
.float-donate {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 110;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.05rem; border-radius: 999px;
  background: rgba(12,12,13,0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); color: #fff;
  font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 12px 36px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.float-donate:hover {
  transform: translateY(-3px); background: #fff; color: #000; border-color: var(--accent-violet);
  box-shadow: 0 16px 44px rgba(0,0,0,0.6), 0 0 28px var(--accent-glow);
}
.float-donate__heart {
  font-size: 1.05rem; line-height: 1; transition: transform 0.35s var(--ease);
}
.float-donate:hover .float-donate__heart { transform: scale(1.12); }
.float-donate__text { white-space: nowrap; }

.nav__toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.nav__overlay {
  position: fixed; inset: 0; z-index: 99; background: rgba(5,5,5,0.97);
  backdrop-filter: blur(20px); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 2.2rem;
}
.nav__overlay.open { display: flex; }
.nav__overlay a { font-family: var(--font-ui); font-size: 1.4rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.nav__overlay a:hover { color: #fff; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-ui); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; border: 1px solid var(--line-2); padding: 0.95rem 2rem; border-radius: 2px;
  background: transparent; cursor: pointer; transition: all 0.35s var(--ease); will-change: transform;
}
.btn:hover { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 34px var(--accent-glow); }
.btn--solid { background: #fff; color: #000; border-color: #fff; }
.btn--solid:hover { background: transparent; color: #fff; border-color: var(--accent-violet); box-shadow: 0 0 34px var(--accent-glow); }

/* ============================================================
   TYPE HELPERS
   ============================================================ */
.arabic { font-family: var(--font-arabic); direction: rtl; }
.eyebrow { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); }
.divider { width: 60px; height: 1px; background: var(--line-2); margin: 2rem auto; border: none; }
.outline-text {
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.5); text-stroke: 1px rgba(255,255,255,0.5);
}

/* ============================================================
   HOME HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.55);
  transform: scale(1.08); will-change: transform;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.55), rgba(5,5,5,0.35) 40%, rgba(5,5,5,0.95)),
    radial-gradient(ellipse at center, transparent 30%, rgba(5,5,5,0.6));
}
.hero__inner { position: relative; z-index: 2; max-width: 880px; }
.hero__basmala { font-family: var(--font-arabic); font-size: clamp(2rem, 6vw, 3.2rem); color: #fff; opacity: 0.92; line-height: 1.6; direction: rtl; }
.hero__basmala-en { margin-top: 1rem; font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.hero__title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(3.2rem, 11vw, 7rem);
  line-height: 0.95; margin-top: 2.2rem; letter-spacing: -0.01em;
}
.hero__title em { font-style: italic; font-weight: 300; }
.hero__subtitle { font-family: var(--font-body); font-size: 1.2rem; color: var(--muted); max-width: 600px; margin: 1.6rem auto 0; }
.hero__cta { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-indicator { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: 1.3rem; z-index: 2; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,10px); } }

/* ============================================================
   DOORS — sections, bands, grid, cards
   ============================================================ */
.doors-section { padding: 5rem 0 4rem; }
.section-head { text-align: center; margin: 0 auto 1rem; max-width: 700px; padding: 0 1.5rem; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.4rem); }
.section-head p { color: var(--muted); margin-top: 0.6rem; }

/* Section band (image divider) */
.band {
  position: relative; height: 280px; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; margin: 4rem 0 2rem;
}
.band__media { position: absolute; inset: 0; z-index: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(0.5); transform: scale(1.12); will-change: transform; }
.band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0.7), rgba(5,5,5,0.55), rgba(5,5,5,0.9)); }
.band__inner { position: relative; z-index: 1; padding: 0 1.5rem; }
.band__index { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); }
.band__title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); margin-top: 0.4rem; }

.doors-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem;
  max-width: var(--maxw-wide); margin: 0 auto; padding: 0 1.5rem; perspective: 1200px;
}
.door-card {
  position: relative; display: flex; flex-direction: column; min-height: 200px; padding: 1.6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transform-style: preserve-3d; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
/* section image revealed on hover */
.door-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--img); background-size: cover; background-position: center;
  filter: grayscale(1) brightness(0.5); opacity: 0; transition: opacity 0.5s var(--ease), filter 0.5s var(--ease);
}
.door-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16,16,18,0.2), rgba(16,16,18,0.92));
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.door-card:hover { border-color: var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px var(--line-2); }
.door-card:hover::before { opacity: 0.5; filter: grayscale(0.2) brightness(0.7); }
.door-card:hover::after { opacity: 1; }
.door-card > * { position: relative; z-index: 2; }
.door-card__num { font-family: var(--font-ui); font-weight: 500; font-size: 1.9rem; color: #fff; margin-bottom: auto; letter-spacing: 0.02em; }
.door-card__title { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; margin-top: 1rem; color: var(--text); }
.door-card__teaser { font-size: 0.82rem; color: var(--muted); font-style: italic; margin-top: 0.5rem; line-height: 1.45; }
.door-card__go { font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-top: 1rem; transition: color 0.3s; }
.door-card:hover .door-card__go { color: #fff; }

/* ============================================================
   CTA BAND (Baby Steps)
   ============================================================ */
.cta {
  position: relative; margin: 5rem auto 0; max-width: var(--maxw-wide); border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 420px; padding: 4rem 1.5rem;
}
.cta__media { position: absolute; inset: 0; z-index: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(0.45); transform: scale(1.1); will-change: transform; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(5,5,5,0.55), rgba(5,5,5,0.9)); }
.cta__inner { position: relative; z-index: 1; max-width: 640px; }
.cta__inner h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; }
.cta__inner p { color: var(--muted); margin: 1rem auto 2rem; max-width: 520px; }

/* ============================================================
   HOME VIDEO
   ============================================================ */
.video-section {
  display: block; width: 100%; padding: 4rem 1.5rem 3rem; text-align: center;
  box-sizing: border-box;
}
.video-section__inner {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 640px; margin: 0 auto; padding: 2.4rem 2rem 2rem;
  box-sizing: border-box;
  background: linear-gradient(165deg, rgba(22,22,24,0.95), rgba(12,12,13,0.98));
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow:
    0 28px 70px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.07);
}
.video-section__head { max-width: 520px; margin: 0 auto; }
.video-section__head h2 {
  font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.1; margin-top: 0.85rem;
}
.video-section__head p {
  color: var(--muted); margin-top: 0.9rem; font-size: 1rem; line-height: 1.75;
}
.video-section__head .divider { margin: 1.6rem auto 0; }
.video-frame {
  margin: 1.8rem auto 0; max-width: 520px; width: 100%; flex-shrink: 0;
}
.video-frame__screen {
  position: relative; width: 100%; max-width: 520px; aspect-ratio: 16 / 9; background: #000;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}
.video-frame__screen::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(255,255,255,0.03); opacity: 1; transition: opacity 0.45s var(--ease);
}
.video-frame.is-playing .video-frame__screen::before,
.video-frame:hover .video-frame__screen::before { opacity: 0; }
.video-frame__player {
  width: 100%; height: 100%; display: block; object-fit: contain; background: #000;
}
.video-frame__player:fullscreen,
.video-frame__player:-webkit-full-screen {
  width: 100%; height: 100%; object-fit: contain; background: #000;
}
.video-frame__screen:fullscreen,
.video-frame__screen:-webkit-full-screen {
  width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto;
  border: none; border-radius: 0; display: flex; align-items: center; justify-content: center;
  background: #000; box-shadow: none;
}
.video-frame__screen:fullscreen::before,
.video-frame__screen:-webkit-full-screen::before { display: none; }
.video-frame__screen:fullscreen .video-frame__player,
.video-frame__screen:-webkit-full-screen .video-frame__player {
  width: 100%; height: 100%; max-height: 100vh; object-fit: contain;
}
.video-frame__caption {
  margin-top: 1rem; font-family: var(--font-ui); font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
}

/* ============================================================
   DOOR PAGE
   ============================================================ */
.door-hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 7rem 1.5rem 4rem; overflow: hidden;
}
.door-hero__media { position: absolute; inset: 0; z-index: 0; }
.door-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.07) brightness(0.45); transform: scale(1.1); will-change: transform; }
.door-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0.7), rgba(5,5,5,0.5) 45%, rgba(5,5,5,0.97)); }
.door-hero__back { position: absolute; top: 6rem; left: 2rem; z-index: 3; font-family: var(--font-ui); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.door-hero__back:hover { color: #fff; }
.door-hero__bignum {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -58%); z-index: 1;
  font-family: var(--font-ui); font-weight: 700; font-size: clamp(9rem, 30vw, 24rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.18); user-select: none;
}
.door-hero__inner { position: relative; z-index: 2; max-width: 840px; }
.door-hero__title { font-family: var(--font-display); font-size: clamp(2.4rem, 6.5vw, 4rem); line-height: 1.05; }
.door-hero__arabic { font-family: var(--font-arabic); font-size: clamp(1.5rem, 4vw, 2rem); color: #fff; opacity: 0.9; margin-top: 1.6rem; direction: rtl; line-height: 1.7; }
.door-hero__arabic-en { font-style: italic; color: var(--muted); font-size: 0.9rem; margin-top: 0.6rem; }
.door-hero__readprompt { margin-top: 2.2rem; font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); animation: bounce 2.2s infinite; }

.door-content { max-width: var(--maxw-text); margin: 0 auto; padding: 3.5rem 1.5rem 3rem; }
.door-lead {
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1.5; color: var(--text);
  padding-bottom: 1.8rem; margin-bottom: 2.4rem; border-bottom: 1px solid var(--line);
}
.door-lead::first-letter { font-size: 1.1em; color: #fff; }
.door-quote { border-left: 2px solid #fff; background: var(--surface); padding: 2rem; border-radius: 0 8px 8px 0; margin-bottom: 3rem; }
.door-quote__ar { font-family: var(--font-arabic); direction: rtl; text-align: right; font-size: 1.5rem; color: #fff; line-height: 1.9; }
.door-quote__en { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--text); margin-top: 1rem; }
.door-quote__attr { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.9rem; display: block; }

.door-section { margin-bottom: 2.4rem; }
.door-section h2 { font-family: var(--font-display); font-size: 1.9rem; color: #fff; margin-bottom: 0.5rem; }
.door-section p { font-size: 1.12rem; color: var(--text); line-height: 1.85; }
.door-closing { text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: #fff; max-width: 620px; margin: 3rem auto 0; line-height: 1.45; }

.door-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  max-width: var(--maxw-text); margin: 0 auto; padding: 2.5rem 1.5rem; border-top: 1px solid var(--line);
  font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.06em;
}
.door-nav a { color: var(--muted); flex: 1; } .door-nav a:hover { color: #fff; }
.door-nav .dn-prev { text-align: left; } .door-nav .dn-home { text-align: center; flex: 0 0 auto; } .door-nav .dn-next { text-align: right; }

.share-row { max-width: var(--maxw-text); margin: 0 auto; padding: 1.5rem; text-align: center; }
.share-row p { color: var(--muted); font-style: italic; margin-bottom: 0.8rem; }
.share-row a {
  display: inline-block; margin: 0 0.4rem; font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); border: 1px solid var(--line); padding: 0.5rem 1rem; border-radius: 3px; cursor: pointer;
}
.share-row a:hover { border-color: var(--accent-violet); color: #fff; }

/* per-door next-step strip */
.next-step {
  max-width: var(--maxw-text); margin: 1rem auto 0; padding: 2.2rem 1.6rem; text-align: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.next-step .eyebrow { display: block; margin-bottom: 0.5rem; }
.next-step h3 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 1.1rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-hero { position: relative; padding: 11rem 1.5rem 4rem; text-align: center; overflow: hidden; }
.about-hero__media { position: absolute; inset: 0; z-index: 0; }
.about-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.4); transform: scale(1.08); }
.about-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0.75), rgba(5,5,5,0.95)); }
.about-hero__inner { position: relative; z-index: 1; }
.about-hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 3.6rem); }
.about-hero .arabic { font-size: 1.6rem; color: #fff; margin-top: 1.2rem; }
.about-hero .about-trans { font-style: italic; color: var(--muted); margin-top: 0.5rem; }
.about-body { max-width: var(--maxw-text); margin: 0 auto; padding: 3rem 1.5rem; font-size: 1.15rem; line-height: 1.9; }
.about-body p { margin-bottom: 1.4rem; }
.about-body p:last-child { text-align: center; color: #fff; font-family: var(--font-display); font-style: italic; }

.support-card {
  max-width: 540px; margin: 2rem auto 5rem; text-align: center; border: 1px solid var(--line);
  border-radius: 14px; padding: 2.6rem 2rem; background: var(--surface);
}
.support-card .crescent { font-size: 2.6rem; color: #fff; }
.support-card h3 { font-family: var(--font-display); font-size: 1.8rem; margin: 0.6rem 0 0.8rem; }
.support-card p { color: var(--muted); margin-bottom: 1.4rem; }
.support-card .btns { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.support-card .note { font-size: 0.8rem; margin-top: 1.1rem; font-style: italic; }

/* ============================================================
   DOOR 99 — SILENCE
   ============================================================ */
.silence-page { background: #000 !important; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; }
.silence-page .geo-bg, .silence-page .geo-pattern, .silence-page #points, .silence-page .grain, .silence-page .spotlight { display: none; }
.silence__shahada { font-family: var(--font-arabic); font-size: clamp(3rem, 9vw, 6rem); line-height: 1.6; direction: rtl; color: #fff; opacity: 0; animation: fadeScale 2s ease forwards; animation-delay: 1.5s; }
.silence__trans { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 4vw, 1.8rem); color: var(--text); margin-top: 2rem; opacity: 0; animation: fadeIn 1.5s ease forwards; animation-delay: 3s; }
.silence__line { font-family: var(--font-body); font-size: 1.1rem; color: var(--muted); max-width: 520px; margin: 4rem auto 0; opacity: 0; animation: fadeIn 2s ease forwards; animation-delay: 5.5s; }
.silence__btn { margin-top: 3rem; opacity: 0; animation: fadeIn 2s ease forwards; animation-delay: 8s; }
.silence__bottom { margin-top: 4rem; font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #555; opacity: 0; animation: fadeIn 2s ease forwards; animation-delay: 9s; }
.silence__bottom a { color: #777; margin: 0 0.6rem; } .silence__bottom a:hover { color: #fff; }
@keyframes fadeScale { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Modal */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.modal-overlay.open { display: flex; }
.modal { max-width: 500px; width: 100%; background: rgba(17,17,18,0.92); backdrop-filter: blur(16px); border: 1px solid var(--line-2); border-radius: 14px; padding: 2.6rem 2rem; position: relative; }
.modal h3 { font-family: var(--font-display); font-size: 1.9rem; color: #fff; text-align: center; margin-bottom: 1.5rem; }
.modal__resource { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; transition: all 0.3s var(--ease); }
.modal__resource:hover { border-color: #fff; background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.modal__resource.primary { background: #fff; }
.modal__resource.primary strong, .modal__resource.primary span { color: #000; }
.modal__resource.primary:hover { background: #eaeaea; }
.modal__resource strong { color: #fff; font-family: var(--font-display); font-size: 1.25rem; }
.modal__resource span { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
.modal__close { position: absolute; top: 0.8rem; right: 1rem; background: none; border: none; color: var(--muted); font-size: 1.7rem; cursor: pointer; } .modal__close:hover { color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #000; border-top: 1px solid var(--line); padding: 3.5rem 2rem 3rem; margin-top: 5rem; position: relative; z-index: 3; }
.footer__grid { max-width: var(--maxw-wide); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; align-items: start; }
.footer__logo { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.footer__tag { color: var(--muted); font-style: italic; margin-top: 0.3rem; font-size: 0.92rem; }
.footer__cta { margin-top: 1.2rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }
.footer__links a { color: var(--muted); font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer__links a:hover { color: #fff; }
.footer__ar { text-align: right; }
.footer__ar .arabic { color: #fff; opacity: 0.4; font-size: 1.1rem; }
.footer__ar-en { font-size: 0.75rem; color: var(--muted); margin-top: 0.4rem; }
.footer__strip { text-align: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-family: var(--font-display); font-style: italic; color: var(--muted); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp 1s var(--ease) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.langsw { position: relative; }
.langsw__btn {
  display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.12em;
  padding: 0.45rem 0.7rem; border-radius: 999px; transition: border-color 0.3s var(--ease);
}
.langsw__btn:hover { border-color: var(--line-2); }
.langsw__cur { font-weight: 500; }
.langsw__menu {
  position: absolute; top: 140%; right: 0; min-width: 160px; z-index: 130;
  background: rgba(17,17,18,0.96); backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 0.4rem;
  display: none; flex-direction: column;
}
.langsw.open .langsw__menu { display: flex; }
.langsw__opt {
  background: transparent; border: none; color: var(--text); cursor: pointer;
  font-family: var(--font-ui); font-size: 0.9rem; text-align: left;
  padding: 0.6rem 0.8rem; border-radius: 6px; transition: background 0.2s;
}
.langsw__opt:hover { background: rgba(255,255,255,0.07); }

/* ============================================================
   TAFSEER — Dream Interpretation
   ============================================================ */
.taf-disclaimer {
  font-size: 0.95rem; color: var(--muted); font-style: italic;
  border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 1.2rem;
}
.taf-filter {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
  max-width: var(--maxw-wide); margin: 0 auto 2.5rem; padding: 0 1.5rem;
}
.taf-chip {
  font-family: var(--font-ui); font-size: 0.74rem; letter-spacing: 0.08em;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer; transition: all 0.25s var(--ease);
}
.taf-chip:hover { color: #fff; border-color: var(--accent-violet); }
.taf-chip.is-active { background: var(--grad-aurora); color: #fff; border-color: transparent; }

.taf-card { min-height: 210px; }
.taf-card__term {
  font-family: var(--font-arabic); direction: rtl; font-size: 2.1rem; color: #fff;
  line-height: 1.4; margin-bottom: auto;
}
.taf-card__cat {
  font-family: var(--font-ui); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); margin-top: 0.9rem;
}
.taf-card:hover .taf-card__cat { color: var(--muted); }

.taf-bignum {
  font-family: var(--font-arabic) !important; direction: rtl;
  -webkit-text-stroke: 0 !important; color: rgba(255,255,255,0.08) !important;
  font-size: clamp(4rem, 17vw, 12rem) !important; font-weight: 400 !important;
}
.taf-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1rem 0 2.4rem; }
.taf-box { padding: 1.5rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.taf-box h3 { font-family: var(--font-ui); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.7rem; }
.taf-box p { font-size: 1.02rem; color: var(--text); line-height: 1.7; }
.taf-box--good { border-left: 2px solid rgba(255,255,255,0.55); }
.taf-box--good h3 { color: #fff; }
.taf-box--bad { border-left: 2px solid var(--faint); }
.taf-box--bad h3 { color: var(--muted); }

.taf-context { display: flex; flex-direction: column; gap: 1rem; }
.taf-ctx { padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.02); }
.taf-ctx__label {
  display: block; font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff; margin-bottom: 0.4rem;
}
.taf-ctx p { font-size: 1rem; color: var(--muted); line-height: 1.65; }
.taf-source { font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--faint); margin-top: 1.5rem; }
.taf-source span { color: var(--muted); }

.trans-notice {
  font-size: 0.9rem; color: var(--muted); font-style: italic;
  background: rgba(255,255,255,0.04); border: 1px dashed var(--line-2);
  border-radius: 8px; padding: 0.9rem 1.1rem; margin-bottom: 2rem;
}

/* ============================================================
   RTL (Arabic / Urdu)
   ============================================================ */
[dir="rtl"] {
  --font-ui: "Noto Naskh Arabic", "Amiri", sans-serif;
  --font-body: "Amiri", "Noto Naskh Arabic", serif;
  --font-display: "Amiri", "Noto Naskh Arabic", serif;
}
[dir="rtl"] .door-content, [dir="rtl"] .about-body, [dir="rtl"] .door-section,
[dir="rtl"] .door-lead, [dir="rtl"] .taf-box, [dir="rtl"] .taf-ctx,
[dir="rtl"] .taf-source, [dir="rtl"] .trans-notice { text-align: right; }
[dir="rtl"] .door-quote { border-left: 0; border-right: 2px solid #fff; border-radius: 8px 0 0 8px; }
[dir="rtl"] .taf-box--good, [dir="rtl"] .taf-box--bad { border-left: 0; border-right: 2px solid rgba(255,255,255,0.55); }
[dir="rtl"] .taf-box--bad { border-right-color: var(--faint); }
[dir="rtl"] .door-hero__back { left: auto; right: 2rem; }
[dir="rtl"] .langsw__menu { right: auto; left: 0; }
[dir="rtl"] .langsw__opt { text-align: right; }
[dir="rtl"] .nav__links a { letter-spacing: 0; }
[dir="rtl"] .eyebrow, [dir="rtl"] .nav__logo-text { letter-spacing: 0.05em; }
[dir="rtl"] .door-quote__ar, [dir="rtl"] .taf-card__term { text-align: right; }
[dir="rtl"] #video .video-section__inner { direction: ltr; }
[dir="rtl"] #video .video-section__head { direction: rtl; text-align: center; }
[dir="rtl"] .float-donate { right: auto; left: 1.4rem; }
@media (max-width: 820px) { [dir="rtl"] .door-hero__back { right: 1rem; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; }
  .nav .pill { display: none; }
  .nav { padding: 0.85rem 1rem; gap: 0.5rem; }
  .amaador-brand-logo { display: none !important; }
  .nav__logo { min-width: 0; overflow: hidden; }
  .nav__logo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav__right { flex-shrink: 0; gap: 0.6rem; }
  .langsw__btn { min-width: 40px; min-height: 40px; padding: 0.4rem 0.55rem; }
  .nav__support { min-width: 40px; min-height: 40px; padding: 0.4rem 0.55rem; }
  .langsw__menu { right: -0.5rem; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__links { align-items: center; }
  .footer__ar { text-align: center; }
  .door-hero__back { left: 1rem; top: 5rem; }
  .door-nav { flex-direction: column; gap: 1.1rem; text-align: center; }
  .door-nav a { text-align: center !important; }
  .taf-boxes { grid-template-columns: 1fr; }
  .video-section__inner { padding: 1.8rem 1.25rem 1.6rem; }
  .video-frame { max-width: 100%; }
  .float-donate { right: 1rem; bottom: 1rem; padding: 0.78rem 0.95rem; }
  .float-services { left: 1rem; bottom: 1rem; }
  [dir="rtl"] .float-donate { right: auto; left: 1rem; }
  [dir="rtl"] .float-services { left: auto; right: 1rem; }
}
@media (hover: none) { .spotlight { display: none; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__media img, .band__media img, .cta__media img, .door-hero__media img { transform: none; }
  .float-donate:hover { transform: none; }
  .float-donate:hover .float-donate__heart { transform: none; }
}

/* ============================================================
   CINEMATIC HOMEPAGE — Stage Carousel + Aurora + Cursor
   Adapted from AMAADOR Workshop cinematic design system.
   ============================================================ */

/* ---------- Spinning Aurora ---------- */
.cm-aurora {
  position: absolute; inset: -25%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 0deg at 50% 45%,
    color-mix(in srgb, var(--scene) 32%, transparent),
    transparent 38%,
    color-mix(in srgb, var(--scene) 18%, transparent) 68%,
    transparent);
  filter: blur(95px); opacity: .45;
  animation: cmSpin 52s linear infinite;
  transition: opacity .8s;
}
@keyframes cmSpin { to { transform: rotate(360deg); } }

/* ---------- Stage ---------- */
.cm-stage {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center; isolation: isolate;
  --scene: #ffffff;
}
.cm-bg {
  position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(1200px 820px at 50% 32%,
    color-mix(in srgb, var(--scene) 10%, var(--bg)),
    var(--bg) 70%);
  transition: background 1.1s cubic-bezier(.16, 1, .3, 1);
}
.cm-stage-inner {
  position: relative; width: 100%; max-width: 1180px;
  margin: 0 auto; padding: 120px 34px 80px;
}
.cm-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-ui); font-size: .7rem;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.cm-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--scene);
  box-shadow: 0 0 12px var(--scene);
  transition: background .8s, box-shadow .8s;
}

/* ---------- Scenes ---------- */
.cm-scenes { position: relative; min-height: 460px; }
.cm-scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  opacity: 0; visibility: hidden;
  transform: translateY(34px) scale(.985);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1),
              transform .6s cubic-bezier(.16, 1, .3, 1),
              visibility .6s;
  pointer-events: none;
}
.cm-scene.active {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
}
.cm-scene-no {
  font-family: var(--font-ui); font-size: .74rem;
  letter-spacing: .36em; text-transform: uppercase;
  color: var(--scene); transition: color .8s;
}
.cm-scene-icon {
  font-size: 3.2rem; line-height: 1;
  filter: drop-shadow(0 0 26px color-mix(in srgb, var(--scene) 75%, transparent));
  transition: filter .8s;
}
.cm-scene-title {
  font-family: var(--font-display);
  /* was clamp(2.8rem, 8vw, 6rem) — the 8vw factor scaled the heading wide
     enough at ~800-1000px viewports to run under .cm-rail (absolutely
     positioned at inset-inline-end:34px, see .cm-rail below). Softened to
     6.2vw so mid-width viewports stay clear of the rail; min/max caps are
     unchanged so the heading is still huge at phone and desktop sizes. */
  font-size: clamp(2.8rem, 6.2vw, 6rem); font-weight: 700;
  line-height: .94; letter-spacing: -.03em; color: #fff; margin: 0;
}
.cm-scene-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  color: var(--muted); max-width: 640px; line-height: 1.7; margin: 0;
}
.cm-scene-tools {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px;
}
.cm-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--scene) 8%, rgba(255,255,255,.035));
  border: 1px solid color-mix(in srgb, var(--scene) 22%, var(--line));
  color: var(--text); font-family: var(--font-ui); font-size: .84rem;
  font-weight: 500; text-decoration: none;
  backdrop-filter: blur(10px);
  transition: transform .25s, background .25s, border-color .25s, color .25s;
}
.cm-pill:hover {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--scene) 18%, transparent);
  border-color: var(--scene); color: #fff;
}
.cm-scene-cta {
  align-self: flex-start; margin-top: 12px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 16px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--scene) 88%, #fff),
    var(--scene));
  color: #050505; font-family: var(--font-ui); font-weight: 700;
  font-size: .95rem; text-decoration: none;
  box-shadow: 0 16px 42px -12px color-mix(in srgb, var(--scene) 50%, transparent);
  transition: transform .25s, box-shadow .25s;
}
.cm-scene-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -12px color-mix(in srgb, var(--scene) 70%, transparent);
  color: #050505;
}
.cm-scene-cta span { transition: transform .25s; }
.cm-scene-cta:hover span { transform: translateX(4px); }

/* ---------- Staggered entrance ---------- */
.cm-scene.active > * {
  animation: cmIn .75s cubic-bezier(.16, 1, .3, 1) backwards;
}
.cm-scene.active > .cm-scene-no    { animation-delay: .02s; }
.cm-scene.active > .cm-scene-icon  { animation-delay: .08s; }
.cm-scene.active > .cm-scene-title { animation-delay: .16s; }
.cm-scene.active > .cm-scene-sub   { animation-delay: .26s; }
.cm-scene.active > .cm-scene-tools { animation-delay: .36s; }
.cm-scene.active > .cm-scene-cta   { animation-delay: .46s; }
@keyframes cmIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Rail / Controls ---------- */
.cm-rail {
  position: absolute; top: 50%; inset-inline-end: 34px;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 2px; z-index: 3;
}
.cm-rail button {
  background: none; border: 0; color: var(--faint);
  font-family: var(--font-ui); font-size: .72rem;
  letter-spacing: .06em; cursor: pointer;
  padding: 6px 0; display: flex; align-items: center;
  gap: 9px; justify-content: flex-end; transition: color .3s;
}
.cm-rail button::after {
  content: ""; width: 14px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: width .35s;
}
.cm-rail button:hover { color: var(--muted); }
.cm-rail button.on { color: var(--scene); }
.cm-rail button.on::after { width: 34px; }
.cm-controls {
  position: absolute; inset-inline-start: 34px; bottom: 34px;
  display: flex; align-items: center; gap: 12px; z-index: 3;
}
.cm-arrow, .cm-play {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04);
  color: var(--text); font-size: 1.05rem; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(10px);
  transition: .25s; line-height: 1;
}
.cm-arrow:hover, .cm-play:hover {
  border-color: var(--scene); color: var(--scene);
  transform: translateY(-2px);
}
.cm-dots { display: flex; gap: 8px; margin-inline-start: 6px; }
.cm-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: 0; background: var(--line-2); cursor: pointer;
  transition: .3s; padding: 0;
}
.cm-dots button.on {
  background: var(--scene); width: 26px; border-radius: 6px;
}
.cm-progress-bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: rgba(255,255,255,.06); z-index: 3;
}
.cm-progress-bar > span {
  display: block; height: 100%; width: 0;
  background: var(--scene); transition: background .8s;
}

/* ---------- Scroll-down hint ---------- */
.cm-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  z-index: 3; color: var(--faint);
  font-family: var(--font-ui); font-size: .65rem;
  letter-spacing: .2em; text-transform: uppercase;
  animation: cmFloat 2.5s ease-in-out infinite;
}
@keyframes cmFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Custom Cursor ---------- */
html.cm-cursor,
html.cm-cursor body,
html.cm-cursor a,
html.cm-cursor button,
html.cm-cursor label,
html.cm-cursor summary,
html.cm-cursor select { cursor: none; }
html.cm-cursor input,
html.cm-cursor textarea { cursor: text; }
html.cm-cursor .spotlight { display: none; }

.cursor-dot, .cursor-glow, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999; will-change: transform;
}
.cursor-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #fff; margin: -2.5px 0 0 -2.5px;
}
.cursor-glow {
  width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,.07) 0%,
    rgba(255,255,255,.02) 38%,
    transparent 68%);
  transition: opacity .35s, transform .35s, background .55s;
}
.cursor-ring {
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  transition: border-color .45s, transform .3s, box-shadow .35s;
}
.cursor-on-btn .cursor-ring {
  border-color: rgba(255,255,255,.7);
  transform: scale(1.08);
  box-shadow: 0 0 14px -2px rgba(255,255,255,.3);
}
.cursor-on-btn .cursor-glow {
  background: radial-gradient(circle,
    rgba(255,255,255,.12) 0%,
    rgba(255,255,255,.04) 42%,
    transparent 70%);
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-glow, .cursor-ring { display: none; }
  html.cm-cursor, html.cm-cursor body,
  html.cm-cursor a, html.cm-cursor button { cursor: auto; }
}

/* ---------- Stage responsive ---------- */
/* .cm-rail is visible again just above the 820px cutoff below, but
   .cm-stage-inner (max-width:1180px, padding-right:34px) never reserved
   room for it — .cm-rail is position:absolute at inset-inline-end:34px, so
   at ~800-1024px viewports the wide .cm-scene-title clamp used to run
   directly under the rail's nav labels. Add right-side breathing room here
   so scene content stays clear of the rail without hiding it. */
@media (min-width: 821px) {
  /* padding-inline-end is a logical property: it already tracks the same
     physical side as .cm-rail's inset-inline-end in both LTR and RTL, so a
     single rule covers both directions without a separate [dir="rtl"] flip.
     Fixed twice (2026-07-04f) after live-browser checks kept finding overlap:
     (1) 148px under-measured .cm-rail (a flex-column sized to the widest
     label, e.g. "Finance Calculators") — actual width 178px + 34px inset
     needs 212px minimum, raised to 250px for a safety margin. (2) the range
     was originally capped at max-width:1024px, but .cm-scene-title's
     `font-size: clamp(2.8rem, 6.2vw, 6rem)` keeps GROWING past 1024px (does
     not hit its 6rem cap until ~1548px viewport width) while .cm-rail stays
     visible at any width ≥821px (see max-width:820px below, which hides it)
     — so the upper bound let the overlap come right back one pixel past
     1024px. Removed the upper bound entirely: the reserved padding costs
     nothing at wide viewports where there is ample room anyway. */
  .cm-stage-inner { padding-inline-end: 250px; }
}
@media (max-width: 820px) {
  .cm-rail { display: none; }
  .cm-scenes { min-height: 400px; }
  .cm-scene-title { font-size: 2.6rem; }
  .cm-controls { inset-inline-start: 20px; bottom: 24px; }
  .cm-stage-inner { padding: 100px 20px 80px; }
  .cm-scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-aurora { animation: none; }
  .cm-scene, .cm-scene.active > * {
    transition: none !important; animation: none !important;
  }
  .cm-bg { transition: none; }
}

/* ============================================================
   FLOATING SERVICES BUTTON (expandable AMAADOR Corporation)
   ============================================================ */
.float-services {
  position: fixed; left: 1.4rem; bottom: 1.4rem; z-index: 1200;
}
.float-services__btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.05rem; border-radius: 999px;
  background: rgba(12,12,13,0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  color: #fff; cursor: pointer;
  font-family: var(--font-ui); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 12px 36px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.float-services__btn:hover {
  transform: translateY(-3px);
  background: #fff; color: #000; border-color: #fff;
  box-shadow: 0 16px 44px rgba(0,0,0,0.6), 0 0 28px var(--glow);
}
.float-services__icon { font-size: 1rem; line-height: 1; }
.float-services__panel {
  position: absolute; bottom: calc(100% + 12px); left: 0;
  min-width: 230px; padding: 12px 0;
  background: rgba(12,12,13,0.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  opacity: 0; visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.float-services.open .float-services__panel {
  opacity: 1; visibility: visible; transform: none;
}
.float-services__panel a {
  display: block; padding: 9px 20px;
  font-family: var(--font-ui); font-size: 0.78rem;
  letter-spacing: 0.04em; color: var(--muted);
  text-decoration: none; transition: color 0.2s, background 0.2s;
}
.float-services__panel a:hover {
  color: #fff; background: rgba(255,255,255,0.06);
}
.float-services__panel a.current {
  color: #fff; font-weight: 600;
}
[dir="rtl"] .float-services { left: auto; right: 1.4rem; }
[dir="rtl"] .float-services__panel { left: auto; right: 0; }

/* ============================================================
   FOOTER — AMAADOR Corporation network
   ============================================================ */
.footer__contact {
  margin-top: 0.6rem;
}
.footer__contact a {
  color: var(--muted); font-family: var(--font-ui);
  font-size: 0.78rem; letter-spacing: 0.04em;
  text-decoration: none; transition: color 0.2s;
}
.footer__contact a:hover { color: #fff; }
.footer__corp {
  grid-column: 1 / -1; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.footer__corp-label {
  font-family: var(--font-ui); font-size: 0.68rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 1rem; text-align: center;
}
.footer__corp-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem;
}
/* Icon-only sister-site links: the visible label is removed from layout
   (kept for a11y/SEO via title + aria-label on the <a>, and .sr-only text
   inside), replaced by a monochrome glyph. Hover/focus get a tinted circle
   + a native tooltip (matches .nav__support[data-tooltip] pattern) so the
   control never reads as unlabeled. */
.footer__corp-grid a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; position: relative;
  color: var(--muted); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.footer__corp-grid a svg {
  width: 1.05rem; height: 1.05rem; fill: none;
  stroke: currentColor; stroke-width: 1.6;
}
.footer__corp-grid a:hover,
.footer__corp-grid a:focus-visible {
  color: #fff; border-color: var(--line-2);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.footer__corp-grid a:focus-visible { outline: 2px solid var(--line-2); outline-offset: 2px; }
.footer__corp-grid a.current { color: #fff; border-color: var(--line-2); background: var(--surface-2); }
.footer__corp-grid a[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute; bottom: 130%; left: 50%;
  transform: translateX(-50%); white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  font-family: var(--font-ui); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35rem 0.6rem; border-radius: 4px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease; z-index: 5;
}
.footer__corp-grid a:hover[data-tooltip]::after,
.footer__corp-grid a:focus-visible[data-tooltip]::after { opacity: 1; }
.footer__corp-grid a .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;
}
.footer__corp-founder {
  font-family: var(--font-ui); font-size: 0.72rem;
  color: var(--faint); text-align: center;
  letter-spacing: 0.02em; margin-top: 1rem;
}

/* ============================================================
   MOBILE NAV — Corporation links
   ============================================================ */
.nav__overlay-corp {
  border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
}
.nav__overlay-corp-label {
  font-family: var(--font-ui); font-size: 0.6rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 0.3rem;
}
.nav__overlay-corp a {
  color: var(--muted); font-size: 0.85rem;
  text-decoration: none; transition: color 0.2s;
}
.nav__overlay-corp a:hover { color: #fff; }

/* ============================================================
   AD SLOTS — blended, dark-theme aware
   ============================================================ */
.ad-slot {
  max-width: var(--maxw-text); margin: 2.5rem auto;
  padding: 0 1rem; opacity: 0.85;
}
.ad-slot ins { display: block; }

/* ============================================================
   RESPONSIVE REFINEMENTS
   ============================================================ */
@media (max-width: 600px) {
  .cm-scene-title { font-size: 2rem; }
  .cm-scene-sub { font-size: 0.92rem; }
  .cm-pill { padding: 7px 12px; font-size: 0.76rem; }
  .cm-scene-cta { padding: 12px 20px; font-size: 0.85rem; }
  .cm-stage-inner { padding: 80px 16px 70px; }
  .cm-scenes { min-height: 360px; }
  .cm-controls { bottom: 18px; }
  .doors-grid { grid-template-columns: 1fr; }
  .door-card { min-height: 180px; }
  .footer__corp-grid { flex-direction: column; align-items: center; gap: 0.3rem; }
  .float-donate { padding: 0.65rem 0.8rem; font-size: 0.65rem; }
  .float-services { left: 1rem; bottom: 1rem; }
  .float-services__btn { padding: 0.65rem 0.8rem; font-size: 0.65rem; }
  .float-services__panel { min-width: 200px; }
  .nav__logo-text { font-size: 0.72rem; letter-spacing: 0.08em; }
  .tools-hero, .guides-hero { padding: 6rem 1rem 2rem; }
  .tools-hero h1, .guides-hero h1 { font-size: 1.8rem; }
  .tool-card-link, .guide-card { padding: 1.4rem; }
  .ad-slot { margin: 1.5rem auto; }
}
@media (max-width: 400px) {
  .cm-scene-title { font-size: 1.6rem; }
  .cm-scene-tools { gap: 6px; }
  .cm-pill { padding: 5px 10px; font-size: 0.7rem; }
  .float-services__text { display: none; }
  .float-donate__text { display: none; }
  .nav__logo-text { font-size: 0.6rem; }
}

/* Contextual AMAADOR Academy course pathway */
.academy-pathway{margin-block:1.35rem;padding:1rem 1.1rem;display:grid;gap:.35rem;border:1px solid var(--line,var(--border,rgba(127,127,127,.25)));border-radius:16px;background:var(--surface,var(--panel,rgba(127,127,127,.08)));color:inherit}
.academy-pathway__eyebrow{font-size:.66rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:var(--gold,#f2d58b)}
.academy-pathway strong{font-size:1.05rem;line-height:1.3}
.academy-pathway>span:not(.academy-pathway__eyebrow){font-size:.86rem;line-height:1.55;opacity:.78}
.academy-pathway__actions{margin-top:.45rem;display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}
.academy-pathway__button{display:inline-flex;justify-content:center;padding:.66rem .95rem;border-radius:999px;background:var(--gold,#f2d58b);color:#111;font-size:.82rem;font-weight:800;text-decoration:none}
.academy-pathway__langs{display:inline-flex;gap:.3rem}
.academy-pathway__langs a{padding:.38rem .5rem;border:1px solid var(--line,var(--border,rgba(127,127,127,.28)));border-radius:999px;color:inherit;font-size:.68rem;font-weight:700;text-decoration:none}
.academy-pathway[dir="rtl"]{text-align:right}
@media(max-width:560px){html,body{overflow-x:clip}.academy-pathway__actions{align-items:stretch;flex-direction:column}.academy-pathway__button{width:100%}.academy-pathway__langs{justify-content:center}.float-donate,.float-services,.cursor-glow,.cursor-dot{display:none!important}}
