/* Self-hosted Jasmine Systems Typography (CSP 'self' compliant, zero external requests) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/PlusJakartaSans-latin-400-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/CormorantGaramond-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/CormorantGaramond-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexSansArabic-arabic-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexSansArabic-arabic-600.woff2') format('woff2');
}

/* ============================================================================
   JASMINE SYSTEMS — Arabian Desert Day (Sunlit & Full) / Night (Starry & Vast)
   ============================================================================ */
:root {
  --font-sans: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-w: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Default: Starry Sinai & Red Sea Night (Vast, Deep, Luminous) */
  --bg: #071019;
  --bg-elev: #0d1b2a;
  --surface: rgba(13, 27, 42, 0.80);
  --surface-solid: #102133;
  --surface-hi: rgba(20, 41, 60, 0.90);
  --border: rgba(96, 188, 200, 0.17);
  --border-strong: rgba(96, 188, 200, 0.36);
  --ink: #f6f2ea;
  --mute: #9bb5c4;
  --dim: #6c8799;
  --accent: #38b6c4;      /* Red Sea & North Coast turquoise reef */
  --accent-hi: #8be0e8;   /* Luminous Sharm / Hurghada shallows */
  --accent-deep: #1b7f8e; /* Deep Nile & Red Sea drop-off */
  --sand: #df9b74;        /* Moonlit Sinai mountain sandstone */
  --on-accent: #051319;
  --shadow: 0 24px 64px rgba(2, 9, 16, 0.58);
  --nav-bg: rgba(7, 16, 25, 0.76);
  --hero-glow: radial-gradient(ellipse 72% 52% at 50% 0%, rgba(56, 182, 196, 0.16), transparent 68%),
               radial-gradient(ellipse 50% 40% at 85% 15%, rgba(223, 155, 116, 0.08), transparent 70%);
}

html[data-theme="day"] {
  /* Arabian Desert Morning: Sunlit Limestone, Sinai Terracotta, Desert Amber & Palm Olive (Zero Blue) */
  --bg: #fbf7f0;
  --bg-elev: #f3ebdd;
  --surface: rgba(255, 253, 248, 0.88);
  --surface-solid: #ffffff;
  --surface-hi: #f6eee0;
  --border: rgba(155, 114, 78, 0.20);
  --border-strong: rgba(155, 114, 78, 0.38);
  --ink: #1a1511;
  --mute: #615040;
  --dim: #8a7562;
  --accent: #b5532e;      /* Burnished Sinai terracotta */
  --accent-hi: #8e3b1e;   /* Deep canyon copper */
  --accent-deep: #3f5e45; /* Complementary desert palm olive */
  --sand: #c68332;        /* Sunlit Arabian amber-gold */
  --on-accent: #fffdf9;
  --shadow: 0 22px 54px rgba(108, 72, 38, 0.11);
  --nav-bg: rgba(251, 247, 240, 0.86);
  --hero-glow: radial-gradient(ellipse 75% 55% at 80% -8%, rgba(244, 184, 118, 0.30), transparent 68%),
               radial-gradient(ellipse 65% 48% at 15% 5%, rgba(15, 123, 138, 0.12), transparent 66%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--ink); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}
html[dir="rtl"] body { font-family: 'IBM Plex Sans Arabic', var(--font-sans); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Live Arabian Sky Canvas */
#skyCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 3D Brand Reveal Entry Curtain */
.intro-splash {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  height: 100dvh;
  z-index: 200;
  background: #000000;
  display: block;
  overflow: hidden;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.intro-splash.out { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-pic { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.intro-fallback, .intro-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}
.intro-vid { z-index: 2; background: transparent; transition: none; }
.intro-loop { z-index: 1; }
.intro-vid.done { opacity: 0; visibility: hidden; }
@media (orientation: portrait) {
  .intro-fallback, .intro-vid { object-fit: contain; background: #000000; }
}
.intro-hint {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom, 28px));
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(245, 242, 235, 0.82);
  font: 500 12.5px/1.2 var(--font-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(14, 21, 37, 0.62);
  border: 1px solid rgba(187, 217, 248, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.7s ease;
  white-space: nowrap;
}
.intro-splash.ready .intro-hint { opacity: 1; }
/* Living Looping Old Egyptian Desert Day Video (Arabian Knight Show + Wind + Oasis) */
.desert-day-vid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  display: none;
  filter: saturate(0.86) contrast(0.97);
  transform: translate3d(0, 0, 0) scale(1.02);
  transform-origin: center center;
  will-change: transform;
}
html[data-theme="day"] .desert-day-vid {
  display: block;
}
.desert-day-vid.standby {
  opacity: 0;
  z-index: 0;
}
.desert-day-vid.active-vid {
  opacity: 1;
  z-index: 0;
}
html[data-theme="day"] #skyCanvas {
  filter: none;
  transform: none;
}
html[data-theme="day"] .sec-head h2,
html[data-theme="day"] .sec-head p,
html[data-theme="day"] .eyebrow,
html[data-theme="day"] .sub-hero h1,
html[data-theme="day"] .sub-lead,
html[data-theme="day"] footer {
  color: #16110d;
  text-shadow: none;
}
html[data-theme="day"] .sec-head p,
html[data-theme="day"] .sub-lead {
  color: #3c2e22;
  font-weight: 500;
}
html[data-theme="day"] .tele-item,
html[data-theme="day"] .pillar,
html[data-theme="day"] .vertical-card,
html[data-theme="day"] .cta-box,
html[data-theme="day"] .sprint-bar,
html[data-theme="day"] .cs-col {
  background: rgba(255, 253, 248, 0.92) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(58, 38, 18, 0.12);
}
html[data-theme="day"] .cs-col.old {
  background: rgba(254, 232, 234, 0.96) !important;
  border: 1.5px solid #dc2626 !important;
}
html[data-theme="day"] .cs-col.old .cs-tag {
  color: #b91c1c !important;
}
html[data-theme="day"] .cs-col.new {
  background: rgba(232, 252, 241, 0.96) !important;
  border: 1.5px solid #16a34a !important;
}
html[data-theme="day"] .cs-col.new .cs-tag {
  color: #15803d !important;
}
html[data-theme="day"] .cs-col p,
html[data-theme="day"] .sprint-step b {
  color: #16110d;
}
html[data-theme="day"] .sprint-step p {
  color: #3c2e22;
}
/* Stronger High-Contrast Foreground Palette (Night Mode Only) */
html:not([data-theme="day"]) {
  --ink: #ffffff;
  --mute: #cbd5e4;
  --accent: #36e2f2;
  --accent-hi: #6cf0ff;
  --on-accent: #05131c;
  --sand: #f0c05a;
  --surface: rgba(11, 20, 36, 0.92);
  --border: rgba(108, 240, 255, 0.16);
  --border-strong: rgba(108, 240, 255, 0.34);
}
html:not([data-theme="day"]) .stage-canvas,
html:not([data-theme="day"]) .div-face,
html:not([data-theme="day"]) .vertical-card,
html:not([data-theme="day"]) .tele-item,
html:not([data-theme="day"]) .sprint-bar,
html:not([data-theme="day"]) .pillar,
html:not([data-theme="day"]) .cta-box {
  background: rgba(10, 18, 33, 0.92) !important;
  border-color: rgba(108, 240, 255, 0.22);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
html:not([data-theme="day"]) .pill-cta,
html:not([data-theme="day"]) .chip-cta {
  background: linear-gradient(135deg, #36e2f2, #1fb6d4);
  color: #04121b;
  border-color: #6cf0ff;
  box-shadow: 0 10px 28px rgba(54, 226, 242, 0.32);
}
html:not([data-theme="day"]) .sprint-step {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(108, 240, 255, 0.16);
}
html:not([data-theme="day"]) .cs-col.old {
  background: rgba(185, 28, 28, 0.24) !important;
  border: 1.5px solid #ef4444 !important;
}
html:not([data-theme="day"]) .cs-col.old .cs-tag {
  color: #f87171 !important;
}
html:not([data-theme="day"]) .cs-col.new {
  background: rgba(21, 128, 61, 0.24) !important;
  border: 1.5px solid #22c55e !important;
}
html:not([data-theme="day"]) .cs-col.new .cs-tag {
  color: #4ade80 !important;
}

/* Background Night Sky ALWAYS Softly Blurred Behind Everything (Hero & Foreground 100% Razor-Sharp!) */
html:not([data-theme="day"]) #skyCanvas {
  opacity: 0.72;
  filter: blur(4px) saturate(0.85);
  transform: scale(1.03);
}
/* Scroll-Only Edge Depth-of-Field: Blurs Top & Bottom Edges Only While Scrolling, Center Stays 100% Clear */
body.scrolled::before,
body.scrolled::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 76px;
  z-index: 40;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
body.scrolled::before {
  top: 0;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
}
body.scrolled::after {
  bottom: 0;
  mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .intro-vid { display: none !important; }
  .intro-hint { opacity: 1; }
}

/* Container & Layout */
.wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* Top Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25));
}
.brand-word {
  height: 17px;
  width: auto;
}
.brand-word-light { display: none; }
html[data-theme="day"] .brand-word-dark { display: none; }
html[data-theme="day"] .brand-word-light { display: block; }
html[data-theme="day"] .brand-mark { filter: drop-shadow(0 2px 8px rgba(40, 28, 12, 0.22)); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--mute);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.25s ease, transform 0.2s ease, background-color 0.25s ease;
}
.chip-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.chip-btn:active { transform: scale(0.97); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.22s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 28px rgba(29, 91, 140, 0.26);
}
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  padding: clamp(72px, 11vh, 132px) 0 clamp(64px, 9vh, 112px);
  background: var(--hero-glow);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--sand);
}
.hero h1 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 6.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
html[dir="rtl"] .hero h1 { font-family: 'IBM Plex Sans Arabic', var(--font-sans); font-size: clamp(36px, 5vw, 60px); line-height: 1.18; }
.hero-lead {
  margin: 0 0 32px;
  max-width: 54ch;
  font-size: clamp(16px, 1.45vw, 18.5px);
  line-height: 1.68;
  color: var(--mute);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.metric b {
  display: block;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.15;
}
.metric span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--mute);
}

/* Hero Visual Card (Live Brand Film Frame) */
.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #050810;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}
.hero-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-frame-bar {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.72);
  border: 1px solid rgba(187, 217, 248, 0.18);
  backdrop-filter: blur(12px);
  color: #f5f2eb;
  font-size: 13px;
}
.hero-frame-bar button {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(187, 217, 248, 0.34);
  background: rgba(116, 176, 236, 0.16);
  color: #f5f2eb;
  font-size: 12.5px;
  font-weight: 600;
}
.hero-frame-bar button:hover { background: rgba(116, 176, 236, 0.30); }

/* Sections */
section.band {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 9vh, 112px) 0;
  border-top: 1px solid var(--border);
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4.5vh, 52px);
}
.sec-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
html[dir="rtl"] .sec-head h2 { font-family: 'IBM Plex Sans Arabic', var(--font-sans); font-size: clamp(28px, 3.6vw, 42px); }
.sec-head p {
  margin: 0;
  max-width: 48ch;
  color: var(--mute);
  font-size: 15.5px;
}

/* Systems Grid */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.sys-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: transform 0.28s var(--ease), border-color 0.28s ease;
}
.sys-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.sys-card.featured {
  grid-column: span 2;
  background: linear-gradient(145deg, var(--surface-hi), var(--surface));
}
.sys-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(116, 176, 236, 0.12);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
html[data-theme="day"] .sys-tag { background: rgba(29, 91, 140, 0.08); }
.sys-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}
.sys-card p {
  margin: 0 0 20px;
  color: var(--mute);
  font-size: 14.8px;
  flex: 1;
}
.sys-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.sys-specs span {
  font-size: 12px;
  color: var(--mute);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

/* Ads & Videos Showcase */
.media-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.media-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.28s var(--ease), border-color 0.28s ease;
}
.media-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.media-card.wide { grid-column: span 8; }
.media-card.tall { grid-column: span 4; }
.media-card.half { grid-column: span 6; }
.media-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060912;
  overflow: hidden;
}
.media-card.tall .media-thumb { aspect-ratio: 9 / 11; }
.media-thumb img, .media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.media-card:hover .media-thumb img,
.media-card:hover .media-thumb video { transform: scale(1.03); }
.play-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(7, 11, 20, 0.64);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: transform 0.22s var(--ease), background-color 0.22s ease;
}
.media-card:hover .play-pill { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); color: var(--on-accent); }
.media-meta {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.media-meta h3 { margin: 0 0 3px; font-size: 16.5px; font-weight: 600; }
.media-meta span { font-size: 13px; color: var(--mute); }
.media-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  padding: 28px;
  background: linear-gradient(160deg, var(--surface), var(--bg-elev));
  border-style: dashed;
}
.media-slot b { font-size: 15.5px; margin-bottom: 6px; color: var(--ink); }
.media-slot span { font-size: 13.5px; color: var(--mute); max-width: 34ch; }

/* Architecture / Craft Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.pillar {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--sand);
  line-height: 1;
  margin-bottom: 12px;
}
.pillar h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 600; }
.pillar p { margin: 0; font-size: 14px; color: var(--mute); }

/* Contact CTA Band */
.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface-hi), var(--surface));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.cta-box h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}
html[dir="rtl"] .cta-box h2 { font-family: 'IBM Plex Sans Arabic', var(--font-sans); font-size: clamp(26px, 3.2vw, 38px); }
.cta-box p { margin: 0; color: var(--mute); font-size: 15.5px; max-width: 50ch; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; justify-self: end; min-width: min(290px, 100%); }
.cta-actions .pill-cta,
.cta-actions .pill-ghost { width: 100%; justify-content: center; text-align: center; padding: 0 20px; }

/* Video Lightbox Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-box {
  position: relative;
  width: min(1040px, 100%);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(187, 217, 248, 0.22);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.75);
}
.modal-box video { width: 100%; max-height: 82vh; background: #000; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(7, 11, 20, 0.72);
  color: #fff;
  font-size: 18px;
}

/* Footer */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  color: var(--mute);
  font-size: 13.5px;
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .cta-box { grid-template-columns: 1fr; }
  .cta-actions { justify-self: start; }
  .systems-grid { grid-template-columns: 1fr; }
  .sys-card.featured { grid-column: span 1; }
  .media-card.wide, .media-card.tall, .media-card.half { grid-column: span 12; }
  .media-card.tall .media-thumb { aspect-ratio: 16 / 10; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
}


/* Atmospheric Directional Lighting & Tactile Depth (No Flat Surfaces) */
.sys-card, .media-card, .pillar {
  background:
    radial-gradient(ellipse 90% 60% at 8% 0%, rgba(56, 182, 196, 0.12), transparent 58%),
    radial-gradient(ellipse 65% 50% at 95% 100%, rgba(223, 155, 116, 0.08), transparent 60%),
    linear-gradient(155deg, rgba(20, 41, 60, 0.88) 0%, rgba(11, 24, 38, 0.94) 100%);
  box-shadow: 0 22px 54px rgba(2, 9, 16, 0.50), 0 4px 14px rgba(2, 9, 16, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
html[data-theme="day"] .sys-card,
html[data-theme="day"] .media-card,
html[data-theme="day"] .pillar {
  background:
    radial-gradient(ellipse 85% 55% at 95% 0%, rgba(244, 184, 118, 0.16), transparent 58%),
    radial-gradient(ellipse 70% 50% at 5% 0%, rgba(15, 123, 138, 0.07), transparent 58%),
    linear-gradient(155deg, rgba(255, 255, 254, 0.96) 0%, rgba(250, 244, 234, 0.92) 100%);
  box-shadow: 0 18px 44px rgba(108, 72, 38, 0.11), 0 3px 10px rgba(108, 72, 38, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.btn-primary {
  background: linear-gradient(145deg, #56cbd6 0%, #2ba4b3 52%, #137987 100%);
  box-shadow: 0 12px 28px rgba(19, 121, 135, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}
html[data-theme="day"] .btn-primary {
  background: linear-gradient(145deg, #1693a3 0%, #0f7b8a 55%, #0a5e6b 100%);
  box-shadow: 0 12px 28px rgba(15, 123, 138, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}


/* Scroll-Driven Website Expansion Choreography */
.band, .hero {
  will-change: transform, opacity;
  transform-origin: center top;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.75s ease, border-radius 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.band.reveal-pending {
  opacity: 0.18;
  transform: scale(0.92) translateY(42px);
}
.band.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.band.reveal-pending .sys-card,
.band.reveal-pending .media-card,
.band.reveal-pending .pillar,
.band.reveal-pending .cta-box {
  opacity: 0;
  transform: scale(0.94) translateY(28px);
}
.band.revealed .sys-card,
.band.revealed .media-card,
.band.revealed .pillar,
.band.revealed .cta-box {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: transform 0.78s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.68s ease, border-color 0.28s ease;
}
.band.revealed .sys-card:nth-child(2),
.band.revealed .media-card:nth-child(2),
.band.revealed .pillar:nth-child(2) { transition-delay: 0.08s; }
.band.revealed .sys-card:nth-child(3),
.band.revealed .media-card:nth-child(3),
.band.revealed .pillar:nth-child(3) { transition-delay: 0.16s; }
.band.revealed .sys-card:nth-child(4),
.band.revealed .media-card:nth-child(4),
.band.revealed .pillar:nth-child(4) { transition-delay: 0.24s; }

/* Main wrapper smoothly expands from framed intro inset to full viewport on scroll */
main#top {
  transform-origin: center top;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}
body.splash-active main#top {
  transform: scale(0.94);
  opacity: 0.5;
}
/* Living Looping Old Egyptian Desert Day Video (Arabian Knight Show + Wind + Oasis) */
.desert-day-vid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  display: none;
  filter: saturate(0.86) contrast(0.97);
  transform: translate3d(0, 0, 0) scale(1.02);
  transform-origin: center center;
  will-change: transform;
}
html[data-theme="day"] .desert-day-vid {
  display: block;
}
.desert-day-vid.standby {
  opacity: 0;
  z-index: 0;
}
.desert-day-vid.active-vid {
  opacity: 1;
  z-index: 0;
}
html[data-theme="day"] #skyCanvas {
  filter: none;
  transform: none;
}
html[data-theme="day"] .sec-head h2,
html[data-theme="day"] .sec-head p,
html[data-theme="day"] .eyebrow,
html[data-theme="day"] .sub-hero h1,
html[data-theme="day"] .sub-lead,
html[data-theme="day"] footer {
  color: #16110d;
  text-shadow: none;
}
html[data-theme="day"] .sec-head p,
html[data-theme="day"] .sub-lead {
  color: #3c2e22;
  font-weight: 500;
}
html[data-theme="day"] .tele-item,
html[data-theme="day"] .pillar,
html[data-theme="day"] .vertical-card,
html[data-theme="day"] .cta-box,
html[data-theme="day"] .sprint-bar,
html[data-theme="day"] .cs-col {
  background: rgba(255, 253, 248, 0.92) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(58, 38, 18, 0.12);
}
html[data-theme="day"] .cs-col.old {
  background: rgba(254, 232, 234, 0.96) !important;
  border: 1.5px solid #dc2626 !important;
}
html[data-theme="day"] .cs-col.old .cs-tag {
  color: #b91c1c !important;
}
html[data-theme="day"] .cs-col.new {
  background: rgba(232, 252, 241, 0.96) !important;
  border: 1.5px solid #16a34a !important;
}
html[data-theme="day"] .cs-col.new .cs-tag {
  color: #15803d !important;
}
html[data-theme="day"] .cs-col p,
html[data-theme="day"] .sprint-step b {
  color: #16110d;
}
html[data-theme="day"] .sprint-step p {
  color: #3c2e22;
}
/* Stronger High-Contrast Foreground Palette (Night Mode Only) */
html:not([data-theme="day"]) {
  --ink: #ffffff;
  --mute: #cbd5e4;
  --accent: #36e2f2;
  --accent-hi: #6cf0ff;
  --on-accent: #05131c;
  --sand: #f0c05a;
  --surface: rgba(11, 20, 36, 0.92);
  --border: rgba(108, 240, 255, 0.16);
  --border-strong: rgba(108, 240, 255, 0.34);
}
html:not([data-theme="day"]) .stage-canvas,
html:not([data-theme="day"]) .div-face,
html:not([data-theme="day"]) .vertical-card,
html:not([data-theme="day"]) .tele-item,
html:not([data-theme="day"]) .sprint-bar,
html:not([data-theme="day"]) .pillar,
html:not([data-theme="day"]) .cta-box {
  background: rgba(10, 18, 33, 0.92) !important;
  border-color: rgba(108, 240, 255, 0.22);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
html:not([data-theme="day"]) .pill-cta,
html:not([data-theme="day"]) .chip-cta {
  background: linear-gradient(135deg, #36e2f2, #1fb6d4);
  color: #04121b;
  border-color: #6cf0ff;
  box-shadow: 0 10px 28px rgba(54, 226, 242, 0.32);
}
html:not([data-theme="day"]) .sprint-step {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(108, 240, 255, 0.16);
}
html:not([data-theme="day"]) .cs-col.old {
  background: rgba(185, 28, 28, 0.24) !important;
  border: 1.5px solid #ef4444 !important;
}
html:not([data-theme="day"]) .cs-col.old .cs-tag {
  color: #f87171 !important;
}
html:not([data-theme="day"]) .cs-col.new {
  background: rgba(21, 128, 61, 0.24) !important;
  border: 1.5px solid #22c55e !important;
}
html:not([data-theme="day"]) .cs-col.new .cs-tag {
  color: #4ade80 !important;
}

/* Background Night Sky ALWAYS Softly Blurred Behind Everything (Hero & Foreground 100% Razor-Sharp!) */
html:not([data-theme="day"]) #skyCanvas {
  opacity: 0.72;
  filter: blur(4px) saturate(0.85);
  transform: scale(1.03);
}
/* Scroll-Only Edge Depth-of-Field: Blurs Top & Bottom Edges Only While Scrolling, Center Stays 100% Clear */
body.scrolled::before,
body.scrolled::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 76px;
  z-index: 40;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
body.scrolled::before {
  top: 0;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
}
body.scrolled::after {
  bottom: 0;
  mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .band.reveal-pending, body.splash-active main#top { opacity: 1; transform: none; }
}


/* ============================================================================
   V2 UPGRADE — Z-Axis Occlusion Hero, Notched Bento Stage, 3D Tilted System
   Control Board (Blueprint <-> Live Toggle), CAD Crosshairs & Floating Dock
   ============================================================================ */
.hud-coords {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim);
}
.hud-coords i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; }
.chip-cta {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; line-height: 1;
  gap: 8px; height: 36px; padding: 0 6px 0 14px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 13px; font-weight: 600; transition: border-color 0.25s, transform 0.2s;
}
.chip-cta:hover { border-color: var(--accent); transform: translateY(-1px); }
.arrow-dot {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700;
}

/* Notched Bento Hero Stage */
.hero { padding: clamp(28px, 4vh, 48px) 0 clamp(44px, 6vh, 72px); }
.bento-stage {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: stretch;
}
.stage-rail {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 20px 0; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(12px);
}
.stage-rail-brand, .stage-rail-idx {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; color: var(--mute);
}
.stage-rail-idx { color: var(--accent); }
.stage-rail-line { width: 1px; flex: 1; margin: 14px 0; background: var(--border-strong); }

.stage-canvas {
  position: relative; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 75% 58% at 50% 34%, rgba(56, 182, 196, 0.18), transparent 64%),
    radial-gradient(ellipse 52% 44% at 84% 18%, rgba(223, 155, 116, 0.11), transparent 60%),
    linear-gradient(160deg, rgba(16, 33, 51, 0.90) 0%, rgba(7, 16, 25, 0.96) 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  padding: clamp(26px, 4vw, 48px);
  min-height: clamp(540px, 74vh, 690px);
  display: flex; flex-direction: column; justify-content: space-between;
}
html[data-theme="day"] .stage-canvas {
  background:
    radial-gradient(ellipse 72% 55% at 78% 12%, rgba(244, 184, 118, 0.30), transparent 64%),
    radial-gradient(ellipse 68% 52% at 22% 28%, rgba(198, 131, 50, 0.14), transparent 62%),
    linear-gradient(160deg, rgba(255, 254, 250, 0.96) 0%, rgba(245, 236, 222, 0.94) 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Top-Right Floating Action Pill (Zero Black Box Outline) */
.stage-notch {
  position: absolute; top: 18px; right: 18px; z-index: 10;
  padding: 0; background: transparent;
}
.notch-pill {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; line-height: 1;
  gap: 8px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-size: 13px; font-weight: 600; transition: border-color 0.25s, background 0.25s;
}
.notch-pill:hover { border-color: var(--accent); background: var(--surface-hi); }

/* CAD Crosshair & Grid Overlay */
.cad-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: radial-gradient(rgba(139, 224, 232, 0.14) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 90%);
}
html[data-theme="day"] .cad-grid {
  background-image: radial-gradient(rgba(155, 114, 78, 0.18) 1px, transparent 1px);
}
html[data-theme="day"] .cad-meta-tl,
html[data-theme="day"] .cad-meta-br,
html[data-theme="day"] .cad-x {
  color: #11181e !important;
  opacity: 0.88 !important;
}
.cad-x { position: absolute; font: 500 13px/1 monospace; color: var(--dim); opacity: 0.65; }
.cad-x.tl { top: 18px; left: 20px; } .cad-x.tr { top: 62px; right: 20px; }
.cad-x.bl { bottom: 16px; left: 20px; } .cad-x.br { bottom: 16px; right: 20px; }
.cad-meta-tl {
  position: absolute; top: 20px; left: 42px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; color: var(--accent);
}
.cad-meta-br {
  position: absolute; bottom: 18px; right: 42px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; color: var(--dim);
}

/* Z-Axis Typography Occlusion Centerpiece */
.occlusion-stage {
  position: relative; z-index: 3; display: grid; place-items: center;
  margin: 18px 0 8px; min-height: clamp(230px, 34vh, 330px);
}
.occlusion-word {
  grid-area: 1 / 1; z-index: 1;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(54px, 12.8vw, 180px); line-height: 1.24;
  padding: 0.06em 0.06em 0.24em;
  letter-spacing: 0.08em; text-transform: uppercase; user-select: none;
  background: linear-gradient(180deg, rgba(246, 242, 234, 0.92) 0%, rgba(139, 224, 232, 0.35) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="day"] .occlusion-word {
  background: linear-gradient(180deg, rgba(44, 26, 15, 0.88) 0%, rgba(181, 83, 46, 0.42) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.occlusion-stallion {
  grid-area: 1 / 1; z-index: 2;
  width: clamp(230px, 30vw, 410px); height: auto;
  filter: drop-shadow(0 28px 46px rgba(2, 9, 16, 0.65));
  transition: transform 0.25s ease-out;
  will-change: transform;
}
html[data-theme="day"] .occlusion-stallion {
  filter: drop-shadow(0 24px 36px rgba(96, 66, 36, 0.26));
}

.stage-bottom {
  position: relative; z-index: 4;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.stage-copy { max-width: 560px; }
.stage-copy h1 { font-size: clamp(32px, 3.8vw, 50px); margin: 0 0 12px; }
.stage-copy .hero-lead { margin: 0; font-size: 15.5px; }
.stage-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Nested-Circle Pill CTA (NEXA-inspired) */
.pill-cta {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; line-height: 1;
  gap: 12px;
  height: 50px; padding: 0 7px 0 22px; border-radius: 999px;
  border: 1px solid rgba(139, 224, 232, 0.36);
  background: linear-gradient(145deg, rgba(20, 46, 68, 0.92), rgba(10, 24, 38, 0.96));
  color: #f6f2ea; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 14px 32px rgba(2, 9, 16, 0.42);
  transition: transform 0.22s var(--ease), border-color 0.25s;
}
html[data-theme="day"] .pill-cta {
  background: linear-gradient(145deg, #331d12, #4d2c1b); border-color: rgba(181, 83, 46, 0.45); color: #fffdf9;
}
.pill-cta:hover { transform: translateY(-2px); border-color: var(--accent); }
.pill-circle {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, #56cbd6, #0f7b8a); color: #051319; font-weight: 700; font-size: 16px;
}
html[data-theme="day"] .pill-circle {
  background: linear-gradient(145deg, #dca04c, #b5532e); color: #fffdf9;
}
.pill-ghost {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; line-height: 1;
  gap: 9px; height: 50px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--ink); font-size: 14px; font-weight: 600;
  transition: border-color 0.25s, transform 0.2s;
}
.pill-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Kinetic Telemetry Strip */
.telemetry-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px;
}
.tele-item {
  padding: 18px 20px; border-radius: 16px; border: 1px solid var(--border);
  background: var(--surface); backdrop-filter: blur(10px);
}
.tele-item b {
  display: block; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--accent-hi); line-height: 1.1;
}
html[data-theme="day"] .tele-item b { color: var(--accent); }
.tele-item span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--mute); }

/* 002 — 004: 3D Tilted System Control Board + Blueprint/Live Toggle */
.sec-idx { color: var(--sand); font-variant-numeric: tabular-nums; }
.board-mode-wrap { display: flex; align-items: center; gap: 12px; }
.mode-caption { font-size: 13px; color: var(--mute); }
.mode-switch {
  display: inline-flex; padding: 4px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
}
.mode-btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; line-height: 1;
  border: 0; background: transparent; color: var(--mute);
  padding: 8px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  transition: background 0.25s, color 0.25s;
}
.mode-btn.on { background: var(--accent); color: var(--on-accent); }

.board-stage {
  position: relative; margin-bottom: 34px; padding: clamp(28px, 4vw, 52px);
  border-radius: 26px; border: 1px solid var(--border);
  background: radial-gradient(ellipse 65% 55% at 50% 48%, rgba(56, 182, 196, 0.14), transparent 70%), var(--surface);
  perspective: 1400px; overflow: hidden;
}
.board-reticle {
  position: absolute; left: 50%; top: 50%; width: 420px; height: 420px;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px dashed var(--border-strong); pointer-events: none; opacity: 0.55;
}
.board-ruler {
  position: absolute; right: 16px; top: 24px; bottom: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  font: 600 10px/1 monospace; color: var(--dim); pointer-events: none;
}
.board-3d {
  position: relative; z-index: 2; max-width: 880px; margin: 0 auto;
  border-radius: 20px; border: 1px solid var(--border-strong);
  background: linear-gradient(155deg, rgba(16, 33, 51, 0.94), rgba(7, 16, 25, 0.98));
  box-shadow: 0 36px 80px rgba(2, 9, 16, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform-style: preserve-3d;
  transform: rotateX(14deg) rotateY(-8deg);
  transition: transform 0.65s var(--ease), background 0.45s ease, border-color 0.45s ease;
}
.board-stage:hover .board-3d { transform: rotateX(4deg) rotateY(0deg); }
html[data-theme="day"] .board-3d {
  background: linear-gradient(155deg, #ffffff, #f5ede0);
  box-shadow: 0 30px 70px rgba(108, 72, 38, 0.18), inset 0 1px 0 #ffffff;
}
.b3d-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--mute);
}
.b3d-dots { display: inline-flex; gap: 6px; }
.b3d-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); display: block; }
.b3d-pill { padding: 3px 10px; border-radius: 999px; background: rgba(56, 182, 196, 0.16); color: var(--accent-hi); }
html[data-theme="day"] .b3d-pill { color: var(--accent); }
.b3d-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 18px; transform-style: preserve-3d; }
.b3d-nav { display: flex; flex-direction: column; gap: 6px; padding-right: 12px; border-right: 1px solid var(--border); }
.b3d-nav span { padding: 8px 12px; border-radius: 10px; font-size: 13px; color: var(--mute); cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.b3d-nav span:hover { color: var(--ink); background: rgba(56, 182, 196, 0.10); }
.b3d-nav span.on { background: rgba(56, 182, 196, 0.18); color: var(--ink); font-weight: 600; }
.b3d-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; transform-style: preserve-3d; }
.b3d-card {
  padding: 16px; border-radius: 14px; border: 1px solid var(--border);
  background: rgba(20, 41, 60, 0.72);
  transform: translateZ(18px);
  box-shadow: 0 14px 28px rgba(2, 9, 16, 0.34);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
html[data-theme="day"] .b3d-card { background: rgba(255, 253, 248, 0.95); box-shadow: 0 12px 24px rgba(108, 72, 38, 0.10); }
.board-stage:hover .b3d-card.c1 { transform: translateZ(48px) translateY(-4px); border-color: var(--accent); }
.board-stage:hover .b3d-card.c2 { transform: translateZ(64px) translateY(-6px); border-color: var(--sand); }
.board-stage:hover .b3d-card.c3 { transform: translateZ(56px) translateY(-4px); border-color: var(--accent); }
.board-stage:hover .b3d-card.c4 { transform: translateZ(42px) translateY(-2px); border-color: var(--sand); }
.b3d-card small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 6px; }
.b3d-card b { display: block; font-size: 14.5px; margin-bottom: 4px; color: var(--ink); }
.b3d-card p { margin: 0; font-size: 12.5px; color: var(--mute); line-height: 1.45; }

/* Blueprint Wireframe Mode (Before/After Effect) */
.board-stage[data-mode="wireframe"] .board-3d {
  background: repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(139, 224, 232, 0.08) 24px),
              repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(139, 224, 232, 0.08) 24px),
              rgba(7, 16, 25, 0.72)!important;
  border-style: dashed;
}
html[data-theme="day"] .board-stage[data-mode="wireframe"] .board-3d {
  background: repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(15, 123, 138, 0.10) 24px),
              repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(15, 123, 138, 0.10) 24px),
              rgba(255, 253, 248, 0.85)!important;
}
.board-stage[data-mode="wireframe"] .b3d-card {
  background: transparent!important; border-style: dashed; box-shadow: none; transform: translateZ(0)!important;
}
.board-stage[data-mode="wireframe"] .b3d-card p,
.board-stage[data-mode="wireframe"] .b3d-nav span { opacity: 0.55; }

.meta-badge {
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  border: 1px solid var(--border-strong); color: var(--accent); white-space: nowrap;
}
.slot-idx {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; color: var(--sand); margin-bottom: 8px;
}

/* Floating Bottom Pill Dock (Liquid Glass + Elastic Clip-Path slidePill) */
html.splash-active,
body.splash-active {
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: none !important;
}

.liquid-glass {
  position: relative;
  backdrop-filter: blur(28px) saturate(165%);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
}
.liquid-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  padding: 1px;
  background:
    radial-gradient(220px circle at var(--gx, 50%) var(--gy, 0%),
      rgba(139, 224, 232, 0.55),
      rgba(223, 155, 116, 0.24) 38%,
      rgba(255, 255, 255, 0.06) 72%,
      transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.pill-dock {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom, 18px));
  transform: translateX(-50%); z-index: 90;
  display: inline-flex; align-items: center; gap: 4px; padding: 6px;
  border-radius: 999px; border: 1px solid rgba(139, 224, 232, 0.24);
  background: rgba(7, 16, 25, 0.72);
  box-shadow:
    0 20px 48px rgba(2, 9, 16, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(56, 182, 196, 0.16);
}
html[data-theme="day"] .liquid-glass::after {
  background:
    radial-gradient(220px circle at var(--gx, 50%) var(--gy, 0%),
      rgba(198, 131, 50, 0.48),
      rgba(181, 83, 46, 0.22) 40%,
      rgba(255, 255, 255, 0.12) 72%,
      transparent 100%);
}
html[data-theme="day"] .pill-dock {
  background: rgba(255, 253, 248, 0.86);
  border-color: rgba(181, 83, 46, 0.24);
  box-shadow:
    0 16px 38px rgba(108, 72, 38, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
html[data-theme="day"] .dock-pill {
  box-shadow: 0 6px 20px rgba(181, 83, 46, 0.34);
}
.dock-pill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hi));
  box-shadow: 0 6px 20px rgba(56, 182, 196, 0.36);
  pointer-events: none;
  z-index: 0;
  clip-path: inset(6px 100% 6px 6px round 999px);
  will-change: clip-path;
}
.pill-dock a {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 5px; line-height: 1;
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--mute); white-space: nowrap; transition: color 0.25s ease;
}
.pill-dock a:hover { color: var(--ink); }
.pill-dock a.on { color: var(--on-accent); }
body.splash-active .pill-dock { opacity: 0; pointer-events: none; }
footer { padding-bottom: 92px; }

/* 4-Category Gateway Grid (Dashboard V60 Contrast + Spatial Glass) */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(16, 33, 51, 0.72), rgba(7, 16, 25, 0.88));
  box-shadow: 0 18px 42px rgba(2, 9, 16, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.35s var(--ease);
  overflow: hidden;
}
html[data-theme="day"] .cat-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(248, 241, 230, 0.82));
  box-shadow: 0 16px 36px rgba(108, 72, 38, 0.10), inset 0 1px 0 #ffffff;
}
.cat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 26px 56px rgba(2, 9, 16, 0.44), 0 0 0 1px rgba(56, 182, 196, 0.28);
}
.cat-card.spotlight {
  background: linear-gradient(145deg, #0b3a46 0%, #0a2534 55%, #071420 100%);
  border-color: rgba(139, 224, 232, 0.38);
  color: #f4f7f8;
}
html[data-theme="day"] .cat-card.spotlight {
  background: linear-gradient(145deg, #4b2a19 0%, #6e3b22 55%, #2f1a0f 100%);
  border-color: rgba(243, 210, 156, 0.42);
  color: #fbf7f0;
}
html[data-theme="day"] .cat-card.spotlight .cat-tag,
html[data-theme="day"] .cat-card.spotlight .cat-foot { color: #f3d29c; border-color: rgba(243, 210, 156, 0.32); }
html[data-theme="day"] .cat-tag { background: rgba(181, 83, 46, 0.10); }
html[data-theme="day"] .vertical-card.live {
  background: linear-gradient(145deg, rgba(198, 131, 50, 0.14), rgba(255, 253, 248, 0.95));
  border-color: rgba(181, 83, 46, 0.34);
}
html[data-theme="day"] .v-status.live {
  color: #2e5a3c;
  border-color: rgba(63, 94, 69, 0.36);
  background: rgba(63, 94, 69, 0.12);
}
html[data-theme="day"] .plan-card.recommended {
  background: linear-gradient(155deg, #4b2a19 0%, #6e3b22 58%, #2f1a0f 100%);
  border-color: rgba(243, 210, 156, 0.42);
  color: #fbf7f0;
}
html[data-theme="day"] .plan-card.recommended .plan-tier { color: #f3d29c; }
html[data-theme="day"] .board-stage {
  background: radial-gradient(ellipse 65% 55% at 50% 48%, rgba(198, 131, 50, 0.16), transparent 70%), var(--surface);
}
html[data-theme="day"] .b3d-pill,
html[data-theme="day"] .b3d-nav span.on { background: rgba(181, 83, 46, 0.14); color: var(--accent); }
html[data-theme="day"] .board-stage[data-mode="wireframe"] .board-3d {
  background: repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(181, 83, 46, 0.10) 24px),
              repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(181, 83, 46, 0.10) 24px),
              rgba(255, 253, 248, 0.88)!important;
}
.cat-card.spotlight p,
.cat-card.spotlight .cat-sub { color: rgba(235, 248, 250, 0.82); }
.cat-card.spotlight .cat-tag { background: rgba(255, 255, 255, 0.14); color: #8be0e8; border-color: rgba(139, 224, 232, 0.34); }
.cat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat-idx { font: 700 11.5px/1 monospace; letter-spacing: 0.16em; color: var(--sand); }
.cat-tag {
  padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--border-strong); color: var(--accent); background: rgba(56, 182, 196, 0.10);
}
.cat-card h3 {
  margin: 0; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1.12;
}
html[dir="rtl"] .cat-card h3 { font-family: 'IBM Plex Sans Arabic', var(--font-sans); font-size: clamp(22px, 2.2vw, 28px); }
.cat-card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--mute); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chips span {
  padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: inherit;
}
.cat-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 13.5px; font-weight: 700; color: var(--accent-hi);
}
html[data-theme="day"] .cat-card:not(.spotlight) .cat-foot { color: var(--accent); }
.cat-card.spotlight .cat-foot { border-top-color: rgba(255, 255, 255, 0.16); color: #8be0e8; }
.cat-arrow {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid currentColor; transition: transform 0.28s var(--ease), background 0.28s ease;
}
.cat-card:hover .cat-arrow { transform: translate(3px, -3px); }

/* Vertical Stacked 3-Division Sliding + Scroll-Triggered 3D Flip Info Cards */
.div-flip-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
}
.div-flip-card {
  position: relative;
  perspective: 1600px;
  cursor: pointer;
  outline: none;
  opacity: 0;
  transform: translate3d(-56px, 24px, 0);
  transition: transform 0.78s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.65s ease;
  will-change: transform, opacity;
}
.div-flip-card:nth-child(even) {
  transform: translate3d(56px, 24px, 0);
}
.div-flip-card.slid-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.div-flip-inner {
  position: relative;
  width: 100%;
  min-height: 286px;
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.88s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.div-flip-card.flipped .div-flip-inner {
  transform: rotateY(180deg);
}
.div-face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 24px;
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(16, 33, 51, 0.76), rgba(7, 16, 25, 0.90));
  box-shadow: 0 20px 46px rgba(2, 9, 16, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.div-face.back {
  transform: rotateY(180deg);
  background: linear-gradient(155deg, rgba(12, 28, 44, 0.88), rgba(6, 14, 24, 0.95));
  border-color: rgba(139, 224, 232, 0.36);
}
.div-flip-card.spotlight .div-face.front {
  background: linear-gradient(145deg, #0b3a46 0%, #0a2534 55%, #071420 100%);
  border-color: rgba(139, 224, 232, 0.38);
  color: #f4f7f8;
}
.div-flip-card.spotlight .div-face.back {
  background: linear-gradient(145deg, #092c38 0%, #071b27 58%, #05111b 100%);
  border-color: rgba(139, 224, 232, 0.44);
  color: #f4f7f8;
}
html[data-theme="day"] .div-face {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.90), rgba(248, 241, 230, 0.86));
  box-shadow: 0 16px 36px rgba(108, 72, 38, 0.10), inset 0 1px 0 #ffffff;
}
html[data-theme="day"] .div-face.back {
  background: linear-gradient(160deg, rgba(252, 246, 236, 0.96), rgba(242, 230, 212, 0.92));
  border-color: rgba(181, 83, 46, 0.36);
}
html[data-theme="day"] .div-flip-card.spotlight .div-face.front,
html[data-theme="day"] .div-flip-card.spotlight .div-face.back {
  background: linear-gradient(145deg, #4b2a19 0%, #6e3b22 55%, #2f1a0f 100%);
  border-color: rgba(243, 210, 156, 0.44);
  color: #fbf7f0;
}
html[data-theme="day"] .div-flip-card.spotlight .cat-tag { color: #f3d29c; border-color: rgba(243, 210, 156, 0.34); }
.div-flip-card.spotlight .div-face p { color: rgba(235, 248, 250, 0.84); }
.div-flip-card.spotlight .cat-tag { background: rgba(255, 255, 255, 0.14); color: #8be0e8; border-color: rgba(139, 224, 232, 0.34); }
.div-front-body h3 {
  margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(28px, 2.8vw, 38px); font-weight: 600; line-height: 1.1;
}
html[dir="rtl"] .div-front-body h3 { font-family: 'IBM Plex Sans Arabic', var(--font-sans); font-size: clamp(24px, 2.4vw, 30px); }
.div-front-body p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--mute); max-width: 68ch; }
.div-back-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}
.div-info-cell {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}
html[data-theme="day"] .div-flip-card:not(.spotlight) .div-info-cell {
  background: rgba(181, 83, 46, 0.05);
  border-color: rgba(181, 83, 46, 0.18);
}
.div-info-cell b {
  display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 6px; color: var(--accent-hi);
}
html[data-theme="day"] .div-flip-card:not(.spotlight) .div-info-cell b { color: var(--accent); }
.div-flip-card.spotlight .div-info-cell b { color: #8be0e8; }
html[data-theme="day"] .div-flip-card.spotlight .div-info-cell b { color: #f3d29c; }
.div-info-cell p {
  margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--mute);
}
@media (max-width: 820px) {
  .div-face { padding: 24px 20px; }
  .div-back-grid { grid-template-columns: 1fr; }
}

/* Guided Contact Us Multi-Step Menu Modal */
.cm-ov {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(3, 8, 14, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center; padding: 18px;
}
.cm-ov[hidden] { display: none; }
.cm-box {
  width: min(520px, 100%); max-height: 88vh; overflow-y: auto;
  border-radius: 22px; padding: 24px 26px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(14, 28, 44, 0.92), rgba(7, 15, 24, 0.96));
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.62);
}
html[data-theme="day"] .cm-box {
  background: linear-gradient(160deg, rgba(255, 252, 246, 0.96), rgba(246, 236, 220, 0.94));
  box-shadow: 0 24px 56px rgba(108, 72, 38, 0.22);
}
.cm-hd {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border);
}
.cm-step {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sand); margin-bottom: 4px;
}
.cm-hd h3 {
  margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.1;
}
html[dir="rtl"] .cm-hd h3 { font-family: 'IBM Plex Sans Arabic', var(--font-sans); font-size: 22px; }
.cm-close {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--ink); font-size: 15px; cursor: pointer;
  display: grid; place-items: center;
}
.cm-close:hover { border-color: var(--accent); color: var(--accent-hi); }
.cm-list { display: flex; flex-direction: column; gap: 10px; }
.cm-opt {
  width: 100%; padding: 15px 18px; border-radius: 14px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03);
  color: var(--ink); text-align: start; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.cm-opt:hover { border-color: var(--accent); background: rgba(56, 182, 196, 0.10); transform: translateX(3px); }
html[data-theme="day"] .cm-opt { background: rgba(181, 83, 46, 0.04); }
html[data-theme="day"] .cm-opt:hover { background: rgba(181, 83, 46, 0.10); }
.cm-opt b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.cm-opt span { display: block; font-size: 12.5px; color: var(--mute); line-height: 1.4; }
.cm-opt .cm-go { flex: none; font-size: 16px; color: var(--accent-hi); }
html[data-theme="day"] .cm-opt .cm-go { color: var(--accent); }
.cm-summary {
  padding: 10px 14px; border-radius: 12px; margin-bottom: 14px;
  border: 1px solid var(--border-strong); background: rgba(56, 182, 196, 0.10);
  font-size: 13px; font-weight: 600; color: var(--accent-hi);
}
html[data-theme="day"] .cm-summary { background: rgba(181, 83, 46, 0.08); color: var(--accent); }
.cm-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.cm-field label { font-size: 12px; font-weight: 600; color: var(--mute); }
.cm-field input, .cm-field textarea {
  width: 100%; padding: 10px 13px; border-radius: 11px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.05);
  color: var(--ink); font: inherit; font-size: 13.5px;
}
html[data-theme="day"] .cm-field input, html[data-theme="day"] .cm-field textarea { background: #ffffff; }
.cm-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
}
.cm-back {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--mute); font-size: 13px; font-weight: 600; cursor: pointer;
}
.cm-back:hover { color: var(--ink); border-color: var(--accent); }
.cm-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px; border: 1px solid rgba(139, 224, 232, 0.36);
  background: linear-gradient(135deg, #249eb0, #0f7b8a); color: #ffffff;
  font-size: 13.5px; font-weight: 700; cursor: pointer; text-align: center;
  transition: transform 0.16s ease, filter 0.16s ease;
}
.cm-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.cm-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
html[data-theme="day"] .cm-primary {
  background: linear-gradient(135deg, #b5532e, #8e3b1e); border-color: transparent;
}
.cm-send-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Popup Commercial Video Cinema Modal (Prev/Next Arrows on Both Ends) */
.vm-ov {
  position: fixed; inset: 0; z-index: 960;
  background: rgba(3, 7, 13, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid; place-items: center; padding: 20px;
}
.vm-ov[hidden] { display: none; }
.vm-shell {
  width: min(1060px, 100%);
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 16px; align-items: center;
}
.vm-box {
  width: 100%; border-radius: 22px; padding: 18px 20px 16px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(13, 24, 38, 0.94), rgba(6, 12, 20, 0.98));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.72);
}
html[data-theme="day"] .vm-box {
  background: linear-gradient(160deg, rgba(255, 252, 246, 0.98), rgba(245, 235, 218, 0.96));
}
.vm-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.vm-hd h3 {
  margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.1;
}
.vm-stage {
  border-radius: 14px; overflow: hidden; background: #05080f;
  border: 1px solid var(--border);
}
.vm-stage video {
  width: 100%; max-height: 70vh; display: block; aspect-ratio: 16 / 9; background: #05080f;
}
.vm-nav {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(14, 24, 38, 0.88); color: #f4efe6;
  font-size: 30px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: transform 0.18s var(--ease), border-color 0.18s, background 0.18s;
}
.vm-nav:hover { transform: scale(1.08); border-color: var(--accent); background: var(--accent); color: #061019; }
.vm-dots {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 12px;
}
.vm-dot {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); background: transparent; color: var(--mute); cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.vm-dot.on { border-color: var(--accent); background: rgba(56, 182, 196, 0.16); color: var(--ink); }
html[data-theme="day"] .vm-dot.on { background: rgba(181, 83, 46, 0.14); color: var(--accent); }
@media (max-width: 760px) {
  .vm-shell { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 8px; }
  .vm-nav { width: 38px; height: 38px; font-size: 22px; }
  .vm-box { padding: 12px; }
}

/* 5-Vertical Systems Lineup (Balanced 2 Live 50/50 + 3 Upcoming 33/33/33) */
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.vertical-card {
  grid-column: span 2;
  display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.25s ease;
}
.vertical-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.vertical-card.live {
  grid-column: span 3;
  background: linear-gradient(145deg, rgba(15, 123, 138, 0.20), rgba(7, 16, 25, 0.85));
  border-color: rgba(56, 182, 196, 0.42);
}
html[data-theme="day"] .vertical-card.live {
  background: linear-gradient(145deg, rgba(15, 123, 138, 0.12), rgba(255, 253, 248, 0.94));
}
.v-status {
  display: inline-flex; align-items: center; gap: 7px; width: fit-content;
  padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--border-strong); color: var(--mute);
}
.v-status.live { color: #5ce6d0; border-color: rgba(92, 230, 208, 0.42); background: rgba(15, 123, 138, 0.22); }
html[data-theme="day"] .v-status.live { color: #0a6370; background: rgba(15, 123, 138, 0.12); }
.v-status.upcoming { color: var(--sand); border-color: rgba(223, 155, 116, 0.40); background: rgba(194, 109, 74, 0.12); }
.v-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.vertical-card h3 { margin: 0; font-size: 20px; font-weight: 700; }
.vertical-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mute); }

/* Dedicated Category Subpages & Plans Grid */
.sub-hero {
  position: relative; z-index: 2;
  padding: clamp(92px, 12vh, 140px) 0 clamp(44px, 6vh, 68px);
}
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font-size: 13px; font-weight: 600; color: var(--mute);
}
.breadcrumb a { color: var(--accent); }
.sub-hero h1 {
  margin: 0 0 18px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.06; max-width: 18ch;
}
html[dir="rtl"] .sub-hero h1 { font-family: 'IBM Plex Sans Arabic', var(--font-sans); font-size: clamp(32px, 4.4vw, 54px); }
.sub-lead { margin: 0 0 28px; max-width: 60ch; font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.68; color: var(--mute); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.plan-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  padding: 28px; border-radius: 22px; border: 1px solid var(--border-strong);
  background: var(--surface);
  transition: transform 0.32s var(--ease), border-color 0.25s ease;
}
.plan-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.plan-card.recommended {
  background: linear-gradient(155deg, #0b3a46 0%, #081e2c 60%, #07121c 100%);
  border-color: rgba(139, 224, 232, 0.48);
  color: #f4f7f8;
  box-shadow: 0 24px 54px rgba(2, 9, 16, 0.45);
}
.plan-card .pill-cta,
.plan-card .pill-ghost {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  gap: 10px;
  margin-top: auto;
}
.plan-card .pill-cta .pill-circle {
  width: 30px;
  height: 30px;
  font-size: 14px;
}
.plan-card.recommended p,
.plan-card.recommended li { color: rgba(235, 248, 250, 0.86); }
.plan-tier { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); }
.plan-card.recommended .plan-tier { color: #8be0e8; }
.plan-card h3 { margin: 6px 0 8px; font-size: 24px; font-weight: 700; }
.plan-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--mute); }
.plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-list li {
  position: relative; padding-inline-start: 22px; font-size: 14px; line-height: 1.5; color: var(--mute);
}
.plan-list li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0; font-weight: 700; color: var(--accent-hi);
}
html[data-theme="day"] .plan-card:not(.recommended) .plan-list li::before { color: var(--accent); }

section, [id] { scroll-margin-top: 96px; }
.stage-canvas { padding-top: 72px !important; }
.board-mode-wrap { flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .hud-coords, .stage-rail, .board-ruler { display: none; }
  .nav-inner { flex-wrap: nowrap; gap: 8px; padding: 10px 0; min-height: 58px; }
  .brand-word { display: none; }
  .nav-tools { gap: 6px; flex-wrap: nowrap; }
  .nav-tools .chip-btn, .nav-tools button { white-space: nowrap; padding: 7px 11px; font-size: 12px; }
  .nav-tools .chip-cta { display: none; }
  .hero { padding-top: 18px; }
  .stage-canvas { padding: 18px !important; }
  .stage-notch {
    position: relative !important; top: auto !important; right: auto !important;
    display: flex; justify-content: flex-end; margin-bottom: 14px; z-index: 5;
  }
  .cad-meta-tl, .cad-meta-br { display: none; }
  .bento-stage { grid-template-columns: 1fr; }
  .telemetry-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b3d-body { grid-template-columns: 1fr; }
  .b3d-nav { flex-direction: row; overflow-x: auto; gap: 6px; border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 10px; scrollbar-width: none; }
  .b3d-nav span { white-space: nowrap; flex: none; }
  .b3d-cards { grid-template-columns: 1fr; }
  .board-3d { transform: none!important; }
  .cat-grid, .verticals-grid, .plans-grid { grid-template-columns: 1fr; }
  .vertical-card, .vertical-card.live { grid-column: span 1; }
  .cta-actions { justify-self: stretch; width: 100%; }
  .stage-actions { width: 100%; }
  .stage-actions .pill-cta, .stage-actions .pill-ghost { flex: 1 1 220px; padding: 0 18px; }
  main { padding-bottom: 84px; }
  .foot { padding-bottom: 96px; }
  .pill-dock {
    bottom: max(10px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 16px);
    padding: 4px 6px;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .pill-dock a { padding: 6px 8px; font-size: 10.8px; white-space: nowrap; }
}


/* ==========================================================================
   Kitchen by dqnamo Tactile Controls & OriginKit Flicker Text
   ========================================================================== */

/* Tactile Keycap Bevel & Depress Physics */
.pill-cta,
.pill-ghost,
.chip-cta,
.notch-pill {
  box-shadow:
    0 4px 0 rgba(2, 9, 16, 0.36),
    0 12px 26px rgba(2, 9, 16, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
  transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.14s ease, border-color 0.22s ease, background 0.22s ease;
}
html[data-theme="day"] .pill-cta,
html[data-theme="day"] .pill-ghost,
html[data-theme="day"] .chip-cta,
html[data-theme="day"] .notch-pill {
  box-shadow:
    0 3px 0 rgba(15, 75, 88, 0.20),
    0 10px 22px rgba(108, 72, 38, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.pill-cta:active,
.pill-ghost:active,
.chip-cta:active,
.notch-pill:active {
  transform: translateY(2px) !important;
  box-shadow:
    0 1px 0 rgba(2, 9, 16, 0.38),
    0 4px 10px rgba(2, 9, 16, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Perforated Boarding-Pass / Offer-Ticket Plan Cards */
.plan-card {
  position: relative;
  overflow: hidden;
}
.plan-card .plan-list {
  position: relative;
  padding-top: 18px;
  border-top: 1px dashed var(--border-strong);
}
.plan-card.recommended .plan-list {
  border-top-color: rgba(139, 224, 232, 0.34);
}
.plan-card .plan-list::before,
.plan-card .plan-list::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg, #071019);
  border: 1px solid var(--border-strong);
  pointer-events: none;
}
html[data-theme="day"] .plan-card .plan-list::before,
html[data-theme="day"] .plan-card .plan-list::after {
  background: #fbf7f0;
}
.plan-card .plan-list::before { inset-inline-start: -36px; }
.plan-card .plan-list::after { inset-inline-end: -36px; }

/* OriginKit Staggered Flicker Text */
@keyframes originkitFlicker {
  0% { opacity: 0; filter: blur(2px); }
  35% { opacity: 0.92; filter: blur(0); }
  52% { opacity: 0.28; }
  74% { opacity: 1; }
  84% { opacity: 0.65; }
  100% { opacity: 1; }
}
.flicker-char {
  display: inline-block;
  opacity: 0;
}
.flicker-on .flicker-char {
  animation: originkitFlicker 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--fd, 0ms);
}
/* Living Looping Old Egyptian Desert Day Video (Arabian Knight Show + Wind + Oasis) */
.desert-day-vid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  display: none;
  filter: saturate(0.86) contrast(0.97);
  transform: translate3d(0, 0, 0) scale(1.02);
  transform-origin: center center;
  will-change: transform;
}
html[data-theme="day"] .desert-day-vid {
  display: block;
}
.desert-day-vid.standby {
  opacity: 0;
  z-index: 0;
}
.desert-day-vid.active-vid {
  opacity: 1;
  z-index: 0;
}
html[data-theme="day"] #skyCanvas {
  filter: none;
  transform: none;
}
html[data-theme="day"] .sec-head h2,
html[data-theme="day"] .sec-head p,
html[data-theme="day"] .eyebrow,
html[data-theme="day"] .sub-hero h1,
html[data-theme="day"] .sub-lead,
html[data-theme="day"] footer {
  color: #16110d;
  text-shadow: none;
}
html[data-theme="day"] .sec-head p,
html[data-theme="day"] .sub-lead {
  color: #3c2e22;
  font-weight: 500;
}
html[data-theme="day"] .tele-item,
html[data-theme="day"] .pillar,
html[data-theme="day"] .vertical-card,
html[data-theme="day"] .cta-box,
html[data-theme="day"] .sprint-bar,
html[data-theme="day"] .cs-col {
  background: rgba(255, 253, 248, 0.92) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(58, 38, 18, 0.12);
}
html[data-theme="day"] .cs-col.old {
  background: rgba(254, 232, 234, 0.96) !important;
  border: 1.5px solid #dc2626 !important;
}
html[data-theme="day"] .cs-col.old .cs-tag {
  color: #b91c1c !important;
}
html[data-theme="day"] .cs-col.new {
  background: rgba(232, 252, 241, 0.96) !important;
  border: 1.5px solid #16a34a !important;
}
html[data-theme="day"] .cs-col.new .cs-tag {
  color: #15803d !important;
}
html[data-theme="day"] .cs-col p,
html[data-theme="day"] .sprint-step b {
  color: #16110d;
}
html[data-theme="day"] .sprint-step p {
  color: #3c2e22;
}
/* Compact Start-to-Finish Sales Pitch + Clickable Expanding Video Panes */
.band { padding: clamp(38px, 4.4vw, 62px) 0 !important; }
.sec-head { margin-bottom: 20px !important; }
.hero { padding-bottom: 24px !important; }
.telemetry-strip { gap: 10px !important; margin-top: 14px !important; }
.tele-item { padding: 13px 16px !important; }

.sprint-bar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  padding: 16px; border-radius: 18px; border: 1px solid var(--border-strong);
  margin-bottom: 14px;
}
.sprint-step {
  padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
html[data-theme="day"] .sprint-step { background: rgba(255, 252, 246, 0.72); }
.sp-num {
  display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-hi); margin-bottom: 5px;
}
html[data-theme="day"] .sp-num { color: var(--accent); }
.sprint-step b { display: block; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.sprint-step p { margin: 0; font-size: 12.2px; color: var(--mute); line-height: 1.4; }

.contrast-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px;
}
.cs-col {
  padding: 20px 24px; border-radius: 14px; border: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 6px;
}
.cs-col.old { background: rgba(184, 41, 61, 0.08); border-color: rgba(184, 41, 61, 0.24); }
.cs-col.new { border-color: var(--accent); }
.cs-tag {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; margin: 0; color: var(--mute);
}
.cs-col.new .cs-tag { color: var(--accent-hi); }
html[data-theme="day"] .cs-col.new .cs-tag { color: var(--accent); }
.cs-col p { margin: 0; font-size: 13.5px; color: var(--ink); line-height: 1.45; max-width: 440px; }

.div-flip-stack { gap: 12px !important; }
.div-flip-card { min-height: 178px !important; }
.div-face { padding: 18px 22px !important; }
.board-stage { margin-bottom: 22px !important; padding: clamp(20px, 3vw, 34px) !important; }
.verticals-grid { gap: 12px !important; }
.vertical-card { padding: 18px 20px !important; }

.v-top-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px;
}
.v-top-row .v-status { margin-bottom: 0; }
.v-play-hint {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(56, 182, 196, 0.14); border: 1px solid rgba(56, 182, 196, 0.36);
  color: var(--accent-hi); font-size: 11px; padding-left: 2px;
  transition: transform 0.22s var(--ease), background 0.22s, color 0.22s;
}
.vertical-card.clickable-pane {
  cursor: pointer;
  transition: transform 0.26s var(--ease), border-color 0.26s, box-shadow 0.26s;
}
.vertical-card.clickable-pane:hover,
.vertical-card.clickable-pane:focus-visible {
  transform: translateY(-4px) scale(1.012);
  border-color: var(--accent);
  box-shadow: 0 22px 48px rgba(4, 14, 24, 0.45), 0 0 0 1px var(--accent);
  outline: none;
}
.vertical-card.clickable-pane:hover .v-play-hint {
  transform: scale(1.12); background: var(--accent); color: var(--on-accent);
}

/* Pure Expanding Video Modal (Zero Header/Arrows/Pills — Only the Video Opens) */
.vm-box.vm-pure {
  position: relative; width: min(1080px, 92vw) !important; padding: 0 !important; background: #000 !important;
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.78);
}
.vm-box.vm-pure video {
  display: block; width: 100%; max-height: 82vh; aspect-ratio: 16 / 9; background: #000;
}
.vm-x {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(5, 8, 14, 0.72); color: #fff; font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); transition: background 0.2s, transform 0.2s;
}
.vm-x:hover { background: rgba(54, 226, 242, 0.9); color: #04121b; transform: scale(1.08); }

/* Smooth Spring Expand when Video Cinema Modal Opens from Clicked Pane */
.vm-ov:not([hidden]) .vm-box {
  animation: vmExpandIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes vmExpandIn {
  from { opacity: 0; transform: scale(0.84) translateY(18px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 900px) {
  .sprint-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contrast-strip { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sprint-bar { grid-template-columns: 1fr; }
}

/* Stronger High-Contrast Foreground Palette (Night Mode Only) */
html:not([data-theme="day"]) {
  --ink: #ffffff;
  --mute: #cbd5e4;
  --accent: #36e2f2;
  --accent-hi: #6cf0ff;
  --on-accent: #05131c;
  --sand: #f0c05a;
  --surface: rgba(11, 20, 36, 0.92);
  --border: rgba(108, 240, 255, 0.16);
  --border-strong: rgba(108, 240, 255, 0.34);
}
html:not([data-theme="day"]) .stage-canvas,
html:not([data-theme="day"]) .div-face,
html:not([data-theme="day"]) .vertical-card,
html:not([data-theme="day"]) .tele-item,
html:not([data-theme="day"]) .sprint-bar,
html:not([data-theme="day"]) .pillar,
html:not([data-theme="day"]) .cta-box {
  background: rgba(10, 18, 33, 0.92) !important;
  border-color: rgba(108, 240, 255, 0.22);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
html:not([data-theme="day"]) .pill-cta,
html:not([data-theme="day"]) .chip-cta {
  background: linear-gradient(135deg, #36e2f2, #1fb6d4);
  color: #04121b;
  border-color: #6cf0ff;
  box-shadow: 0 10px 28px rgba(54, 226, 242, 0.32);
}
html:not([data-theme="day"]) .sprint-step {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(108, 240, 255, 0.16);
}
html:not([data-theme="day"]) .cs-col.old {
  background: rgba(185, 28, 28, 0.24) !important;
  border: 1.5px solid #ef4444 !important;
}
html:not([data-theme="day"]) .cs-col.old .cs-tag {
  color: #f87171 !important;
}
html:not([data-theme="day"]) .cs-col.new {
  background: rgba(21, 128, 61, 0.24) !important;
  border: 1.5px solid #22c55e !important;
}
html:not([data-theme="day"]) .cs-col.new .cs-tag {
  color: #4ade80 !important;
}

/* Background Night Sky ALWAYS Softly Blurred Behind Everything (Hero & Foreground 100% Razor-Sharp!) */
html:not([data-theme="day"]) #skyCanvas {
  opacity: 0.72;
  filter: blur(4px) saturate(0.85);
  transform: scale(1.03);
}
/* Scroll-Only Edge Depth-of-Field: Blurs Top & Bottom Edges Only While Scrolling, Center Stays 100% Clear */
body.scrolled::before,
body.scrolled::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 76px;
  z-index: 40;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
body.scrolled::before {
  top: 0;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
}
body.scrolled::after {
  bottom: 0;
  mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .flicker-char { opacity: 1 !important; animation: none !important; }
}
