
/* Modern Arabic & English Typography & Spacing Fixes */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-heading: 'Cairo', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Cairo', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tei-muted: #64748b;
  --tei-soft: #f8fafc;
  --tei-border: #e2e8f0;
}

/* Strict Document Direction & Base Alignment */
html[dir="rtl"], body[dir="rtl"], [dir="rtl"] {
  direction: rtl !important;
  text-align: right !important;
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  letter-spacing: 0 !important;
}

html[dir="ltr"], body[dir="ltr"], [dir="ltr"] {
  direction: ltr !important;
  text-align: left !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] strong {
  font-weight: 700;
  line-height: 1.4;
}

/* BiDi Isolation to Stop Number, Phone, Time and Punctuation Mirroring */
[dir="rtl"] bdi,
[dir="rtl"] [dir="ltr"],
[dir="rtl"] .ltr-val,
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"],
[dir="rtl"] code,
[dir="rtl"] .tei-brand span {
  direction: ltr !important;
  display: inline-block;
  unicode-bidi: isolate;
  text-align: left;
}

[dir="ltr"] bdi,
[dir="ltr"] [dir="rtl"] {
  direction: rtl !important;
  display: inline-block;
  unicode-bidi: isolate;
  text-align: right;
}

[dir="rtl"] dd, [dir="rtl"] dt, [dir="rtl"] li, [dir="rtl"] p, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] label {
  text-align: right !important;
}

[dir="ltr"] dd, [dir="ltr"] dt, [dir="ltr"] li, [dir="ltr"] p, [dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3, [dir="ltr"] h4, [dir="ltr"] label {
  text-align: left !important;
}

/* Header & Navigation Fixes */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.tei-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 0 16px;
}

.tei-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  flex-shrink: 0;
}

.tei-nav, .tei-desktop-nav {
  display: flex !important;
  list-style: none;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.tei-nav a, .tei-desktop-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  padding: 7px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.tei-nav a:hover, .tei-nav a.active, .tei-desktop-nav a:hover, .tei-desktop-nav a.active {
  color: #0071e3 !important;
  background: rgba(0, 113, 227, 0.08);
}

.tei-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: #0f172a;
  padding: 0;
  flex-shrink: 0;
}

.tei-menu-toggle:hover {
  background: #f1f5f9;
}

/* 100% Opaque Mobile Navigation Drawer with NO backdrop-filter Bleeding */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: calc(100vh - 74px);
  background: #ffffff !important;
  background-color: #ffffff !important;
  z-index: 999999 !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex-direction: column;
  padding: 24px 20px 48px;
  gap: 8px;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.mobile-nav-drawer.open {
  display: flex !important;
}

.mobile-nav-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.15s ease;
}

[dir="rtl"] .mobile-nav-drawer a {
  text-align: right;
}

[dir="ltr"] .mobile-nav-drawer a {
  text-align: left;
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer a.active {
  background: #eff6ff;
  color: #0071e3;
}

/* Improved Containers and Spacing */
.tei-container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  padding-inline: 0;
}

.tei-hero {
  padding: 64px 0 48px;
}

.tei-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.tei-page {
  padding-bottom: 64px;
}

.tei-breadcrumb {
  padding: 18px 0;
  font-size: 13px;
  color: var(--tei-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tei-breadcrumb a {
  color: #0071e3;
  text-decoration: none;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .tei-nav, .tei-desktop-nav, .tei-header-cta {
    display: none !important;
  }
  .tei-menu-toggle {
    display: inline-flex !important;
  }
  .tei-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .tei-hero {
    padding: 36px 0 32px;
  }
  .tei-container {
    width: calc(100% - 32px);
  }
}

/* ==========================================================================
   Apex Modular Engine v4 — Unified Style System
   Architecture: Refero System [Apple]
   Brand: teilaway-go
   ========================================================================== */

:root {
  --primary: #0071e3;
  --primary-fg: #ffffff;
  --primary-hover: color-mix(in srgb, var(--primary) 85%, #000);
  --primary-light: color-mix(in srgb, var(--primary) 12%, transparent);
  --secondary: #2997ff;
  --accent: #2997ff;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-muted: #ffffff;
  --text: #1d1d1f;
  --text-muted: #86868b;
  --border: #d2d2d7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);

  --font-heading: 'Cairo', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Cairo', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --container-max: 1200px;
  --header-height: 76px;
  --topbar-height: 38px;
  --transition-fast: 0.18s ease;
  --transition-base: 0.28s ease;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Accessibility Skip Link */
.skip {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 9999;
  background: var(--primary);
  color: var(--primary-fg, #ffffff);
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip:focus {
  top: 1rem;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  width: 100% !important;
  max-width: 100% !important;
  display: block;
}

#main-content {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Common Layout Containers */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

.container-narrow {
  max-width: 860px;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Button & Badge Systems — Strict Anti-Distortion Directives */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  min-height: 46px;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg, #ffffff) !important;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent), 0 0 25px color-mix(in srgb, var(--primary) 20%, transparent);
  position: relative;
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 50%, transparent), 0 0 35px color-mix(in srgb, var(--primary) 35%, transparent);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text) !important;
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-muted);
  border-color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  white-space: nowrap;
}

/* Top Utility Bar */
.top-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.45rem 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Site Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  transition: all var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  flex-shrink: 0;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon svg {
  display: block;
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.nav-cta-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-fg, #ffffff) !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 25%, transparent);
}

.nav-cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
}

/* ==========================================================================
   Modular Block Library (11 Modular Blocks)
   ========================================================================== */

/* 1. Hero Block */

/* ==========================================================================
   Multi-Language Switcher (Bilingual & Multi-Geo)
   ========================================================================== */
.nav-lang-wrap {
  display: inline-flex;
  align-items: center;
}

.lang-switcher {
  display: inline-flex !important;
  align-items: center !important;
  background: color-mix(in srgb, var(--surface) 80%, transparent) !important;
  border: 1px solid var(--border) !important;
  border-radius: 9999px !important;
  padding: 3px 5px !important;
  gap: 3px !important;
}

.lang-switcher a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 8px !important;
  border-radius: 9999px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.lang-switcher a:hover {
  color: var(--text) !important;
  background: color-mix(in srgb, var(--primary) 14%, transparent) !important;
}

.lang-switcher a.bg-primary,
.lang-switcher a[class*="bg-primary"],
.lang-switcher a.font-extrabold {
  color: #ffffff !important;
  background: var(--primary) !important;
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 40%, transparent) !important;
}

@media (max-width: 768px) {
  .nav-lang-wrap {
    margin: 0.75rem 0;
  }
}


.hero-section {
  padding: 5rem 0 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--primary) 18%, transparent) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}

.hero-title {
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  width: 100%;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

/* High-Tech macOS-Style Console Card */
.hero-console-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 40px color-mix(in srgb, var(--primary) 10%, transparent);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(16px);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero-console-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 50px color-mix(in srgb, var(--primary) 18%, transparent);
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}

.console-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.console-title {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.console-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  display: inline-block;
  animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.console-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.console-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 10px color-mix(in srgb, var(--primary) 15%, transparent));
}

.console-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.console-mini-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.mini-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.mini-val {
  font-family: monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

/* Linear Issue Stream & Cycle Card */
.linear-issue-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-lg), 0 0 35px color-mix(in srgb, var(--primary) 12%, transparent);
}
.cycle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.cycle-bar {
  height: 6px;
  background: var(--surface-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.4rem;
}
.cycle-bar-fill {
  height: 100%;
  width: 82%;
  background: var(--primary);
  border-radius: var(--radius-full);
}
.issue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  gap: 0.75rem;
  transition: all var(--transition-fast);
}
.issue-row:hover {
  border-color: var(--primary);
  transform: translateX(2px);
}
.issue-tag {
  font-family: monospace;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary);
  font-weight: 700;
}
.shortcut-strip {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
kbd {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-family: monospace;
  font-size: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Stripe Institutional Treasury Card */
.stripe-treasury-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-lg), 0 20px 45px rgba(99, 91, 255, 0.08);
}
.balance-display {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.balance-num {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.balance-growth {
  font-size: 0.8rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}
.currency-progress-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.currency-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.pci-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
}

/* Raycast Command Center Card */
.raycast-command-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-lg), 0 0 45px color-mix(in srgb, var(--primary) 15%, transparent);
}
.raycast-search-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.88rem;
}
.raycast-command-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.command-tile {
  padding: 0.85rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}
.command-tile:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.command-tile-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.command-tile-status {
  font-size: 0.72rem;
  color: var(--primary);
  font-family: monospace;
}

/* Wise Real-Time Currency Calculator Card */
.wise-calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: var(--shadow-lg), 0 15px 40px rgba(22, 51, 0, 0.08);
}
.calc-field-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.calc-field-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.calc-field-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.calc-field-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  font-family: monospace;
}
.calc-currency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.calc-rate-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--primary);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.wise-savings-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: #163300;
  background: #9fe870;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  text-align: center;
}

.hero-image-frame {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2. Trust Strip */
.trust-strip {
  padding: 2.25rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* 3. Metrics Bento Block */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.metric-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 4. Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-title {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-features {
  list-style: none;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text);
}

.service-feature svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* 5. Interactive WOW / Telemetry Graph */
.interactive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.telemetry-tabs {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.telemetry-tab {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.telemetry-tab:hover {
  background: var(--surface-muted);
  color: var(--text);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.telemetry-tab.active {
  background: var(--primary);
  color: var(--primary-fg, #ffffff) !important;
  border-color: var(--primary);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent);
}

.telemetry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg), 0 0 35px color-mix(in srgb, var(--primary) 6%, transparent);
  position: relative;
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.telemetry-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.telemetry-chart-area {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.telemetry-rows {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.telemetry-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.telemetry-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
}

.telemetry-percent {
  font-family: monospace;
  font-weight: 700;
  color: var(--primary);
}

.telemetry-bar-bg {
  height: 8px;
  background: var(--surface-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.telemetry-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  transition: width 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 6. About & Mission Block */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.25rem;
}

.about-text p {
  margin-bottom: 1.25rem;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.value-card h4 {
  margin-bottom: 0.35rem;
  color: var(--primary);
}

.value-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* 7. Workflow Steps */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  position: relative;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  position: relative;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-title {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.step-desc {
  font-size: 0.9rem;
}

/* 8. Testimonials Block */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: #f59e0b;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.author-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 9. FAQ Accordion Block */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-item.open {
  border-color: var(--primary);
}

.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  color: var(--primary);
}

.faq-item.open .faq-icon,
[class*="faq-item"].open .faq-icon,
button[aria-expanded="true"] .faq-icon,
[aria-expanded="true"] .faq-icon,
.faq-trigger.active .faq-icon,
.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content,
.faq-answer,
[class*="faq-answer"],
[class*="faq-content"] {
  display: none;
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.faq-item.open .faq-content,
.faq-item.open .faq-answer,
.faq-item.open [class*="faq-answer"],
.faq-item.open [class*="faq-content"],
[class*="faq-item"].open .faq-content,
[class*="faq-item"].open .faq-answer,
[class*="faq-item"].open [class*="faq-answer"],
[class*="faq-item"].open [class*="faq-content"],
.faq-answer.open,
.faq-answer.is-open,
.faq-content.open,
.faq-content.is-open,
details[open] .faq-answer,
details[open] .faq-content,
details[open] [class*="faq-answer"],
details[open] [class*="faq-content"] {
  display: block !important;
}

details summary {
  cursor: pointer;
  user-select: none;
}

/* 10. Contact Section & Interactive Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  height: 100%;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
}

.contact-val {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

textarea.form-input {
  resize: vertical;
  min-height: 110px;
}

.form-feedback {
  display: none;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
}

/* 11. Final CTA Banner */
.cta-banner {
  padding: 5rem 0;
}

.cta-banner-inner {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 90%, #000), var(--primary));
  border-radius: var(--radius-xl);
  padding: 4rem 2.5rem;
  text-align: center;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner-inner h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-banner-inner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2rem auto;
  font-size: 1.15rem;
}

.cta-banner-inner .btn-secondary {
  background: #ffffff;
  color: var(--primary) !important;
  border: none;
}

.cta-banner-inner .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.92);
}

/* Informational & Transparency Disclosure Section (Ad Policy Safeguard) */
.policy-disclosure {
  padding: 2.5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.policy-disclosure-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  line-height: 1.6;
}

/* Site Footer */
.site-footer {
  width: 100%;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Legal Pages Styling (Shared Design System) */
.legal-page-header {
  padding: 4rem 0 2rem 0;
  border-bottom: 1px solid var(--border);
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.legal-body {
  padding: 3.5rem 0;
}

.legal-body h2 {
  font-size: 1.45rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.legal-body p {
  margin-bottom: 1.15rem;
}

.legal-body ul, .legal-body ol {
  margin: 1rem 0 1.25rem 1.75rem;
  color: var(--text-muted);
}

.legal-body li {
  margin-bottom: 0.5rem;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* GDPR Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.cookie-banner.hidden {
  display: none !important;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-actions .btn {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  min-height: 38px;
}

/* ==========================================================================
   Modular Architectural Layouts & UI Primitives (UI/UX Pro Max)
   ========================================================================== */

/* Centered & Editorial Hero Variations */
.hero-centered {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-centered .hero-actions {
  justify-content: center;
}

.hero-centered .hero-badges {
  justify-content: center;
}

.hero-centered .hero-desc {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.bento-col-12 { grid-column: span 12; }
.bento-col-8 { grid-column: span 8; }
.bento-col-7 { grid-column: span 7; }
.bento-col-6 { grid-column: span 6; }
.bento-col-5 { grid-column: span 5; }
.bento-col-4 { grid-column: span 4; }
.bento-col-3 { grid-column: span 3; }

/* Asymmetric & Multi-Column Helper Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Card Enhancements */
.card-glass {
  background: color-mix(in srgb, var(--surface) 82%, transparent) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
}

.card-highlight {
  border: 2px solid var(--primary) !important;
  position: relative;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
}

.feature-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.feature-check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-check-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ==========================================================================
   Brand Signature Components (Refero Styles & Taste Directives)
   ========================================================================== */

/* Linear Midnight Issue Stream */
.linear-issue-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.cycle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-family: monospace;
}
.cycle-tag {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cycle-status {
  color: var(--text-muted);
}
.cycle-bar {
  height: 4px;
  background: color-mix(in srgb, var(--border) 60%, transparent);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.cycle-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}
.issue-rows {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.issue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: color-mix(in srgb, var(--surface-muted) 50%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}
.issue-row:hover {
  background: var(--surface-muted);
  border-color: var(--border);
  transform: translateX(2px);
}
.issue-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.issue-id {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.issue-title {
  color: var(--text);
  font-weight: 500;
}
.issue-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-family: monospace;
}
.issue-badge.done {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.issue-badge.review {
  background: color-mix(in srgb, #f59e0b 15%, transparent);
  color: #f59e0b;
  border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent);
}
.issue-badge.backlog {
  background: color-mix(in srgb, var(--text-muted) 15%, transparent);
  color: var(--text-muted);
  border: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}
.shortcut-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.shortcut-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
kbd {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-size: 0.72rem;
  font-family: monospace;
  line-height: 1;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-muted) 80%, #fff 10%);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

/* Stripe Institutional Treasury */
.stripe-treasury-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.balance-display {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.balance-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.balance-val-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.balance-val {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.growth-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: color-mix(in srgb, #10b981 12%, transparent);
  color: #10b981;
}
.currency-progress-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  background: var(--surface-muted);
  border-radius: var(--radius-md);
}
.currency-multi-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  gap: 2px;
}
.multi-bar-seg {
  height: 100%;
}
.multi-bar-seg.usd { background: var(--primary); }
.multi-bar-seg.eur { background: var(--secondary); }
.multi-bar-seg.gbp { background: var(--accent); }
.currency-labels-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.currency-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.currency-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.pci-shield-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface) 90%, var(--primary) 10%);
}

/* Raycast Command Center */
.raycast-command-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.raycast-search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.raycast-search-box svg {
  color: var(--accent);
  flex-shrink: 0;
}
.raycast-search-placeholder {
  flex: 1;
}
.raycast-command-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.command-tile {
  background: color-mix(in srgb, var(--surface-muted) 50%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.command-tile:hover {
  background: var(--surface-muted);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.command-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.command-tile-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.command-tile-status {
  font-size: 0.75rem;
  color: var(--accent);
  font-family: monospace;
}
.command-tile-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Wise FX Calculator */
.wise-calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.calc-field-group {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  transition: border-color var(--transition-fast);
}
.calc-field-group:focus-within {
  border-color: var(--accent);
}
.calc-field-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.calc-field-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.calc-field-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-heading);
}
.calc-currency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: var(--surface-muted);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.calc-rate-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-left: 2px dashed color-mix(in srgb, var(--accent) 50%, var(--border));
  margin-left: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.calc-rate-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calc-rate-item strong {
  color: var(--text);
}
.wise-savings-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ==========================================================================
   Structural Archetype Layouts (Linear, Stripe, Raycast, Wise)
   ========================================================================== */

/* 1. Linear: Centered Terminal Layout */
.hero-centered-terminal {
  text-align: center;
  padding: 5rem 0 4.5rem 0;
  position: relative;
}
.hero-centered-content {
  max-width: 860px;
  margin: 0 auto 3rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-centered-content .hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.hero-centered-content .hero-desc {
  font-size: 1.2rem;
  max-width: 680px;
  margin: 0 auto 2rem auto;
}
.hero-centered-content .hero-actions {
  justify-content: center;
  margin-bottom: 1.5rem;
}
.hero-centered-terminal-body {
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}
.hero-centered-terminal-body .hero-visual {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px color-mix(in srgb, var(--primary) 12%, transparent);
}

/* Linear Asymmetric 8/4 Bento Grid */
.bento-linear {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.bento-linear-card-8 {
  grid-column: span 8;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.bento-linear-card-4 {
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.telemetry-stream-linear {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.terminal-contact-box {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

/* 2. Stripe: Editorial & Institutional Ledger Layout */
.hero-editorial {
  padding: 5.5rem 0 5rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}
.hero-grid-editorial {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  align-items: center;
  gap: 4rem;
}
.hero-content-editorial .hero-title-editorial {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-content-editorial .hero-desc-editorial {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 620px;
}
.hero-visual-editorial .hero-visual {
  box-shadow: 0 25px 60px rgba(10,37,64,0.12);
  border-radius: var(--radius-lg);
}

/* Stripe Horizontal Institutional Metrics Rail */
.metrics-rail-stripe {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  background: var(--surface);
}
.metrics-rail-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.metrics-rail-item {
  border-left: 1px solid var(--border);
  padding-left: 1.75rem;
}
.metrics-rail-item:first-child {
  border-left: none;
  padding-left: 0;
}
.metrics-rail-val {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.metrics-rail-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.metrics-rail-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Stripe Clearing Ledger Table */
.clearing-ledger-stripe {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.clearing-ledger-stripe th {
  background: var(--surface-muted);
  text-align: left;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.clearing-ledger-stripe td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
}
.clearing-ledger-stripe tr:last-child td {
  border-bottom: none;
}
.clearing-ledger-stripe .highlight-rail {
  font-weight: 700;
  color: var(--primary);
}

/* 3. Raycast: Spotlight Command Palette Hero & 4-Tile Power Grid */
.hero-command-palette {
  padding: 5rem 0 4.5rem 0;
  text-align: center;
}
.hero-palette-wrap {
  max-width: 920px;
  margin: 0 auto;
}
.command-palette-spotlight {
  background: #141517;
  border: 1px solid #26282c;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 35px rgba(255,99,99,0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2.5rem auto 1.5rem auto;
  text-align: left;
  position: relative;
}
.palette-search-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #0c0d0e;
  border: 1px solid #2e3036;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
}
.palette-search-bar input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  flex: 1;
  outline: none;
}
.bento-raycast {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.bento-raycast-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-fast);
}
.bento-raycast-tile:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,99,99,0.12);
}

/* 4. Wise: Calculator-First Split & Transparency Fee Comparison Table */
.hero-calculator-split {
  padding: 4.5rem 0 5rem 0;
}
.hero-grid-calc {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 3.5rem;
}
.hero-calc-wrapper {
  width: 100%;
}

/* Wise 3-Column Fee Comparison Table */
.table-wise-wrap {
  overflow-x: auto;
  margin-top: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.table-wise {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.table-wise th {
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}
.table-wise td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.table-wise tr:last-child td {
  border-bottom: none;
}
.col-wise-highlight {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--text);
  font-weight: 700;
}
.table-wise th.col-wise-highlight {
  background: var(--accent);
  color: #163300;
}
.col-wise-muted {
  color: var(--text-muted);
}
.bento-wise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.bento-wise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* Brand-Tailored Topbars */
.top-bar-linear {
  border-bottom: 1px solid #1a1c20;
  background: #08090a;
}
.top-bar-stripe {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: #f8fafc;
}
.top-bar-raycast {
  border-bottom: 1px solid #1c1d1f;
  background: #0c0d0e;
}

/* ==========================================================================
   Dynamic E-E-A-T Sources, Domain Calculators & Lane Guidance Modules
   ========================================================================== */

.top-bar-compliance {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  color: #94a3b8;
}

.sources-grid, [class*="sources-grid"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

[class*="link-card"] {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

[class*="link-card"]:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

[class*="link-header"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

[class*="link-domain"] {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 6px;
  border-radius: 4px;
}

[class*="link-icon"] {
  color: var(--text-muted);
}

[class*="link-title"] {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

[class*="link-desc"] {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Domain Calculator Grid */
.calculator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.calc-price-box {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.calc-total {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.5rem 0;
}

.calc-badge {
  font-family: monospace;
  font-size: 0.75rem;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.calc-radios {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

/* Terminal & Lane Guidance Bento */
.lane-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.lane-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.lane-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.lane-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.lane-pill.green { background: #064e3b; color: #34d399; }
.lane-pill.blue { background: #0c4a6e; color: #38bdf8; }
.lane-pill.yellow { background: #78350f; color: #fde047; }

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

@media (max-width: 991px) {
  .bento-col-12, .bento-col-8, .bento-col-7, .bento-col-6, .bento-col-5, .bento-col-4, .bento-col-3 {
    grid-column: span 12;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  :root {
    --header-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav-link {
    padding: 0.6rem 0;
    font-size: 1rem;
  }

  .nav-cta-btn {
    width: 100%;
    text-align: center;
  }

  .hero-grid, .hero-grid-editorial, .hero-grid-calc, .interactive-grid, .about-grid, .contact-grid, .bento-linear, .bento-raycast, .bento-wise, .metrics-rail-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .bento-linear-card-8, .bento-linear-card-4 {
    grid-column: span 12;
  }
  .metrics-rail-item {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 1.5rem;
  }
  .metrics-rail-item:first-child {
    border-top: none;
    padding-top: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}


/* === BESPOKE AI-ENGINEERED COMPONENT STYLES === */
:root {
  --primary: #0071e3;
  --accent: #0369a1;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --border: #d2d2d7;
  --text: #1d1d1f;
  --font-heading: "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --font-body: "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --tei-muted: #626269;
  --tei-soft: #f5f5f7;
  --tei-radius: 28px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; }
.tei-container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.tei-skip { position: fixed; top: -100px; right: 20px; z-index: 100; padding: 12px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.tei-skip:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251,251,253,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid rgba(0,0,0,.07); }
.tei-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 80px; }
.tei-brand { display: inline-flex; gap: 10px; align-items: center; font-size: 21px; font-weight: 750; letter-spacing: -.8px; white-space: nowrap; }
.tei-brand svg { color: var(--primary); }
.tei-nav { display: flex; list-style: none; align-items: center; gap: 28px; margin: 0; padding: 0; }
.tei-nav a { font-size: 14px; color: var(--tei-muted); }
.tei-nav a:hover, .tei-nav .active { color: var(--primary); }
.tei-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: 999px; background: var(--primary); color: white; font-weight: 600; font-size: 15px; transition: transform .25s, box-shadow .25s, background .25s; }
.tei-button:hover { transform: translateY(-3px); background: #0063c7; box-shadow: 0 10px 25px rgba(0,113,227,.17); }
.tei-button-secondary { background: transparent; color: var(--primary); border-color: var(--border); }
.tei-button-secondary:hover { background: #eef6ff; }
.tei-menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 50%; width: 44px; height: 44px; color: var(--text); align-items: center; justify-content: center; }
#main-content { overflow: clip; }
#main-content section { scroll-margin-top: 105px; }
.tei-hero { position: relative; padding: 92px 0 52px; }
.tei-hero::before { content: ""; pointer-events: none; position: absolute; inset: 0; background: radial-gradient(ellipse at 18% 36%, rgba(2,132,199,.09), transparent 53%); }
.tei-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 68px; }
.tei-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 13px; font-weight: 650; margin: 0 0 22px; }
.tei-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px rgba(0,113,227,.08); animation: tei-pulse 3s infinite; }
.tei-hero h1 { font-size: clamp(42px, 4.5vw, 66px); line-height: 1.23; letter-spacing: -.035em; font-weight: 750; margin: 0 0 26px; }
.tei-hero h1 span { color: var(--primary); }
.tei-lead { font-size: 18px; line-height: 1.95; color: var(--tei-muted); max-width: 570px; margin: 0; }
.tei-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.tei-caption { color: var(--tei-muted); font-size: 12px; line-height: 1.8; }
.tei-console { position: relative; background: rgba(255,255,255,.8); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.95); outline: 1px solid rgba(0,0,0,.07); border-radius: 32px; box-shadow: 0 28px 80px -30px rgba(25,70,110,.2); padding: 28px; }
.tei-console::before { content: ""; position: absolute; inset: 0 24px auto; height: 1px; background: linear-gradient(90deg, transparent, #79bcff, transparent); }
.tei-console-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 25px; }
.tei-console-heading h2 { margin: 0; font-size: 17px; }
.tei-chip { border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px; color: var(--tei-muted); font-size: 11px; white-space: nowrap; }
.tei-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--tei-soft); padding: 5px; border-radius: 15px; }
.tei-switch button { border: none; border-radius: 11px; background: transparent; color: #55555b; min-height: 42px; font-size: 13px; transition: background .2s, box-shadow .2s; }
.tei-switch button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 2px 7px #00000010; color: var(--primary); font-weight: 700; }
.tei-network { display: flex; align-items: center; justify-content: center; gap: 0; margin: 38px 0 30px; direction: ltr; }
.tei-node { width: 88px; text-align: center; position: relative; }
.tei-node-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 10px; border: 1px solid #ccddec; border-radius: 20px; color: var(--primary); background: linear-gradient(150deg, #fff, #eef7ff); }
.tei-node small { font-size: 11px; color: var(--tei-muted); }
.tei-network-line { height: 2px; background: #c8def3; flex: 1; max-width: 58px; position: relative; margin-bottom: 26px; overflow: hidden; }
.tei-network-line::after { content: ""; position: absolute; width: 25px; height: 2px; background: var(--primary); animation: tei-transmit 3s linear infinite; }
.tei-console-copy { min-height: 138px; padding: 20px; border: 1px solid rgba(0,0,0,.07); border-radius: 19px; background: var(--surface); }
.tei-console-copy h3 { margin: 0 0 8px; font-size: 18px; }
.tei-console-copy p { font-size: 14px; color: var(--tei-muted); line-height: 1.9; margin: 0; }
.tei-console-note { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 11px; color: var(--tei-muted); }
.tei-floating-note { position: absolute; left: -20px; top: -19px; border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.95); box-shadow: 0 8px 30px #18334d0b; border-radius: 14px; padding: 10px 15px; font-size: 12px; animation: tei-float 5s ease-in-out infinite; }
.tei-hero-rail { position: relative; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--border); padding-top: 25px; margin-top: 68px; gap: 24px; }
.tei-rail-item { display: flex; align-items: baseline; gap: 12px; }
.tei-rail-item strong { font-size: 15px; }
.tei-rail-item span { font-size: 13px; color: var(--tei-muted); }
.tei-section { padding: 85px 0; }
.tei-section-head { margin-bottom: 34px; max-width: 760px; }
.tei-section-head h2 { font-size: clamp(30px, 3vw, 43px); line-height: 1.4; letter-spacing: -.025em; margin: 0 0 15px; }
.tei-section-head p { color: var(--tei-muted); font-size: 16px; line-height: 1.9; margin: 0; }
.tei-kicker { color: var(--accent); font-size: 12px; font-weight: 700; display: block; margin-bottom: 13px; }
.tei-bento { display: grid; grid-template-columns: repeat(6,1fr); gap: 20px; }
.tei-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--tei-radius); padding: 30px; min-width: 0; transition: transform .25s, box-shadow .25s; }
.tei-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px rgba(0,0,0,.1); }
.tei-card-wide { grid-column: span 4; }
.tei-card-small { grid-column: span 2; }
.tei-card h3 { margin: 0 0 12px; font-size: 23px; line-height: 1.5; letter-spacing: -.02em; }
.tei-card p { color: var(--tei-muted); line-height: 1.95; font-size: 15px; margin: 0; }
.tei-card-label { display: block; color: var(--accent); margin-bottom: 24px; font-size: 12px; }
.tei-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tei-tags span { background: var(--tei-soft); border-radius: 7px; padding: 7px 10px; font-size: 12px; color: #51515a; }
.tei-table-wrap { overflow-x: auto; margin-top: 26px; }
.tei-table { width: 100%; border-collapse: collapse; text-align: right; font-size: 13px; line-height: 1.8; min-width: 440px; }
.tei-table th { font-weight: 600; color: var(--tei-muted); }
.tei-table th, .tei-table td { padding: 12px 8px; border-bottom: 1px solid #e9e9ed; vertical-align: top; }
.tei-table td:first-child { font-weight: 650; }
.tei-method { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.tei-method-quote { font-size: clamp(27px, 3vw, 39px); line-height: 1.6; letter-spacing: -.02em; margin: 0 0 24px; }
.tei-method-text { color: var(--tei-muted); font-size: 16px; line-height: 2; }
.tei-step { display: flex; gap: 22px; padding: 25px 0; border-top: 1px solid var(--border); }
.tei-step-number { font-size: 13px; color: var(--primary); padding-top: 6px; font-variant-numeric: tabular-nums; }
.tei-step h3 { margin: 0 0 8px; font-size: 20px; }
.tei-step p { margin: 0; color: var(--tei-muted); line-height: 1.9; font-size: 14px; }
.tei-proof-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.tei-scenario { display: flex; flex-direction: column; }
.tei-scenario .tei-card-label { margin-bottom: 18px; }
.tei-scenario h3 { font-size: 20px; }
.tei-scenario-result { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e8e8ed; font-size: 13px; line-height: 1.9; color: var(--accent); }
.tei-sources-section { border-top: 1px solid #e5e5ea; }
.tei-sources-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.tei-link-card { grid-column: span 2; background: var(--surface); border: 1px solid var(--border); padding: 24px; border-radius: 22px; transition: transform .25s, box-shadow .25s; }
.tei-link-card-primary { grid-column: span 3; }
.tei-link-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px #00000020; }
.tei-link-header { display: flex; justify-content: space-between; align-items: center; color: var(--primary); font-size: 12px; margin-bottom: 22px; }
.tei-link-card h3 { font-size: 18px; line-height: 1.6; margin: 0 0 10px; }
.tei-link-card p { color: var(--tei-muted); font-size: 13px; line-height: 1.9; margin: 0; }
.tei-source-subhead { margin: 30px 0 16px; font-size: 16px; }
.tei-faq-layout { display: block; max-width: 860px; margin-inline: auto; }
.tei-faq-layout .tei-section-head { text-align: center; margin-bottom: 40px; margin-inline: auto; }
.tei-faq-layout .tei-section-head h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.35; margin-bottom: 12px; }
.tei-faq-layout .tei-section-head p { color: var(--tei-muted); font-size: 15px; line-height: 1.8; max-width: 600px; margin-inline: auto; }
.tei-faq-list { display: flex; flex-direction: column; gap: 14px; border: none !important; }
.tei-faq-item { border: 1px solid var(--border) !important; border-radius: 16px !important; background: var(--surface); overflow: hidden; transition: all 0.2s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.tei-faq-item:hover { border-color: #94a3b8 !important; box-shadow: 0 6px 16px rgba(0,0,0,0.05); }
.tei-faq-question { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 24px !important; background: none; border: none; font-size: 16px; font-weight: 700; color: var(--text); cursor: pointer; line-height: 1.5; }
[dir="rtl"] .tei-faq-question { text-align: right !important; }
[dir="ltr"] .tei-faq-question { text-align: left !important; }
.tei-faq-question::after { content: "+"; font-size: 20px; font-weight: 600; color: var(--primary); background: #f0f7ff; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s ease; }
.tei-faq-question[aria-expanded="true"]::after, .tei-faq-item.open .tei-faq-question::after { content: "−"; background: var(--primary); color: #ffffff; }
.tei-faq-answer { padding: 0 24px 22px !important; border-top: 1px solid #f1f5f9; margin-top: 2px; }
.tei-faq-answer p { margin: 0; line-height: 1.85; color: #475569; font-size: 14px; }
[dir="rtl"] .tei-faq-answer { text-align: right !important; }
[dir="ltr"] .tei-faq-answer { text-align: left !important; }
.tei-contact-shell { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; border: 1px solid var(--border); background: var(--surface); border-radius: 32px; padding: 45px; }
.tei-contact-info { margin: 30px 0 0; }
.tei-contact-info div { margin-bottom: 18px; }
.tei-contact-info dt { font-size: 12px; color: var(--tei-muted); margin-bottom: 5px; }
.tei-contact-info dd { margin: 0; line-height: 1.85; font-size: 14px; overflow-wrap: anywhere; }
.tei-contact-info a { color: var(--accent); }
.tei-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.tei-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tei-field-full { grid-column: 1 / -1; }
.tei-field label { font-size: 13px; font-weight: 600; }
.tei-field input, .tei-field select, .tei-field textarea { width: 100%; min-height: 49px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); padding: 12px 14px; }
.tei-field textarea { resize: vertical; min-height: 125px; }
.tei-form-note { margin: 0; color: var(--tei-muted); font-size: 12px; line-height: 1.9; }
.tei-form-note a { text-decoration: underline; }
.tei-form-feedback { padding: 18px; border: 1px solid #b3d4f2; border-radius: 14px; background: #f2f8ff; font-size: 14px; line-height: 1.9; }
.tei-email-draft { display: inline-block; color: var(--primary); text-decoration: underline; margin-top: 8px; font-weight: 600; }
.site-footer { border-top: 1px solid var(--border); padding: 55px 0 24px; }
.tei-footer-top { display: flex; justify-content: space-between; align-items: start; gap: 40px; }
.tei-footer-manifesto { font-size: 26px; line-height: 1.6; font-weight: 650; margin: 0 0 15px; }
.tei-footer-copy { font-size: 13px; line-height: 1.9; color: var(--tei-muted); max-width: 450px; }
.tei-footer-links { display: flex; flex-wrap: wrap; gap: 14px 24px; max-width: 390px; font-size: 13px; line-height: 1.8; }
.tei-footer-links a:hover { color: var(--primary); }
.tei-footer-ledger { padding: 25px 0; margin-top: 30px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 22px; color: var(--tei-muted); font-size: 12px; line-height: 2; }
.tei-footer-ledger p { margin: 0; overflow-wrap: anywhere; }
.tei-footer-bottom { border-top: 1px solid #e8e8ed; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; color: var(--tei-muted); font-size: 11px; }
@keyframes tei-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes tei-pulse { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes tei-transmit { from { transform: translateX(-30px); } to { transform: translateX(90px); } }
@media (min-width: 901px) { .tei-nav[hidden] { display: flex !important; } }
@media (max-width: 1050px) {
  .tei-nav { gap: 18px; }
  .tei-hero-grid { gap: 35px; }
  .tei-method, .tei-faq-layout { gap: 45px; }
  .tei-contact-shell { gap: 30px; padding: 32px; }
}
@media (max-width: 900px) {
  .tei-menu-toggle { display: inline-flex; }
  .tei-header-inner { min-height: 72px; gap: 16px; }
  .tei-header-cta { margin-inline-start: auto; }
  .tei-nav { position: absolute; inset: 72px 0 auto; padding: 24px 32px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 16px 28px #00000008; flex-direction: column; align-items: stretch; gap: 0; }
  .tei-nav a { display: block; padding: 12px 0; }
  .tei-hero-grid { grid-template-columns: 1fr; gap: 65px; }
  .tei-hero { padding-top: 60px; }
  .tei-hero h1 { max-width: 650px; }
  .tei-console { max-width: 600px; width: 100%; margin-inline: auto; }
  .tei-hero-rail { margin-top: 45px; }
  .tei-rail-item { flex-direction: column; gap: 7px; }
  .tei-card-wide, .tei-card-small { grid-column: span 3; }
  .tei-proof-grid { grid-template-columns: 1fr; }
  .tei-method, .tei-faq-layout, .tei-contact-shell { grid-template-columns: 1fr; }
  .tei-link-card { grid-column: span 3; }
  .tei-section { padding: 60px 0; }
}
@media (max-width: 600px) {
  .tei-container { width: calc(100% - 36px); }
  .tei-brand { font-size: 18px; gap: 6px; }
  .tei-header-inner { gap: 10px; }
  .tei-header-cta { font-size: 12px; padding: 9px 14px; min-height: 40px; }
  .tei-menu-toggle { width: 38px; height: 38px; }
  .tei-hero h1 { font-size: 42px; }
  .tei-lead { font-size: 16px; }
  .tei-hero-grid { gap: 50px; }
  .tei-console { padding: 22px 16px; border-radius: 25px; }
  .tei-floating-note { left: 12px; top: -20px; }
  .tei-console-heading h2 { font-size: 15px; }
  .tei-console-copy { min-height: 160px; }
  .tei-hero-rail { gap: 14px; }
  .tei-rail-item strong { font-size: 13px; }
  .tei-rail-item span { font-size: 11px; line-height: 1.8; }
  .tei-card-wide, .tei-card-small, .tei-link-card { grid-column: 1 / -1; }
  .tei-card { padding: 25px; }
  .tei-method, .tei-faq-layout { gap: 25px; }
  .tei-contact-shell { padding: 25px 20px; border-radius: 25px; }
  .tei-form { grid-template-columns: 1fr; }
  .tei-footer-top, .tei-footer-bottom { flex-direction: column; }
  .tei-footer-ledger { grid-template-columns: 1fr; }
  .tei-footer-manifesto { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* === BESPOKE STYLES: about === */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;450;500;600;700&display=swap');

:root {
  --tei-canvas: #fbfbfd;
  --tei-surface: #fff;
  --tei-text: #1d1d1f;
  --tei-muted: #61616a;
  --tei-border: #d2d2d7;
  --tei-primary: #0071e3;
  --tei-primary-dark: #005bb7;
  --tei-azure: #0284c7;
  --tei-radius: 28px;
  --tei-font: "IBM Plex Sans Arabic", Tahoma, sans-serif;
}
.site-header, .tei-page, .site-footer, .tei-skip {
  font-family: var(--tei-font);
  color: var(--tei-text);
  direction: rtl;
  box-sizing: border-box;
}
.site-header *, .tei-page *, .site-footer * { box-sizing: border-box; }
.site-header a, .tei-page a, .site-footer a { color: inherit; text-decoration: none; }
.tei-page { background: var(--tei-canvas); overflow: hidden; }
.tei-container { width: min(100% - 64px, 1240px); margin-inline: auto; }
.tei-skip {
  position: fixed; top: -100px; right: 24px; z-index: 100;
  padding: 12px 20px; background: #fff; border: 2px solid var(--tei-primary);
}
.tei-skip:focus { top: 12px; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251,251,253,.9);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(29,29,31,.09);
}
.tei-header-inner {
  min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.tei-brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.tei-brand svg { width: 34px; height: 34px; color: var(--tei-primary); }
.tei-wordmark { font: 700 22px/1.2 var(--tei-font); letter-spacing: -.7px; }
.tei-desktop-nav { display: flex; gap: 32px; align-items: center; }
.tei-desktop-nav a { font-size: 14px; color: var(--tei-muted); position: relative; padding-block: 30px; }
.tei-desktop-nav a[aria-current] { color: var(--tei-text); font-weight: 600; }
.tei-desktop-nav a[aria-current]::after {
  content: ""; position: absolute; bottom: 19px; right: 0; left: 0;
  height: 2px; background: var(--tei-primary);
}
.tei-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 12px;
  background: var(--tei-primary); color: #fff !important; padding: 13px 23px;
  border-radius: 999px; font-weight: 500; font-size: 14px; border: 1px solid transparent;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.tei-button:hover { background: var(--tei-primary-dark); transform: translateY(-3px); box-shadow: 0 10px 24px #0071e322; }
.tei-button svg { width: 18px; height: 18px; }
.tei-mobile-nav { display: none; position: relative; }
.tei-mobile-nav summary { cursor: pointer; padding: 10px; font-size: 14px; }
.tei-mobile-links {
  position: absolute; top: 46px; left: 0; min-width: 220px; padding: 12px;
  background: #fff; border: 1px solid var(--tei-border); border-radius: 18px; box-shadow: 0 18px 44px #00000012;
}
.tei-mobile-links a { display: block; padding: 12px; border-radius: 10px; }
.tei-mobile-links a[aria-current] { color: var(--tei-primary); background: #f2f7fd; }
.tei-breadcrumb { padding-top: 27px; font-size: 12px; color: var(--tei-muted); }
.tei-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.tei-breadcrumb li + li::before { content: "/"; margin-inline-end: 12px; color: #92929b; }
.tei-hero { padding: 65px 0 80px; position: relative; }
.tei-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 15% 48%, #0284c714, transparent 55%);
}
.tei-hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; align-items: center; }
.tei-eyebrow { color: var(--tei-primary-dark); font-size: 13px; font-weight: 600; display: block; margin-bottom: 20px; }
.tei-page h1, .tei-page h2, .tei-page h3, .tei-page p { margin-top: 0; }
.tei-page h1 { font-size: clamp(44px, 5.3vw, 74px); line-height: 1.22; letter-spacing: -.045em; margin-bottom: 26px; font-weight: 600; }
.tei-hero-emphasis { color: var(--tei-primary); }
.tei-lead { font-size: 19px; line-height: 1.95; color: var(--tei-muted); max-width: 570px; margin-bottom: 29px; }
.tei-text-link { color: var(--tei-primary-dark) !important; font-size: 14px; font-weight: 500; display: inline-flex; gap: 12px; align-items: center; }
.tei-text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.tei-preview-wrap { position: relative; padding: 25px 0; }
.tei-preview-wrap::before {
  content: ""; position: absolute; inset: 10% 12%; border-radius: 50%;
  background: radial-gradient(ellipse, #0284c72b, #a4d9f51a 55%, transparent 72%); filter: blur(25px);
}
.tei-preview {
  position: relative; padding: 30px; border: 1px solid #fff; border-radius: 32px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 26px 65px -28px #1a537040, inset 0 0 0 1px #1d1d1f0a;
  transform: rotate(-2deg); animation: tei-float 8s ease-in-out infinite;
}
.tei-preview-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid #1d1d1f12; }
.tei-caption { font-size: 12px; color: var(--tei-muted); }
.tei-preview-title { font-size: 25px; line-height: 1.5; margin: 27px 0 20px !important; font-weight: 500; }
.tei-route { list-style: none; padding: 0; margin: 0; }
.tei-route li { position: relative; padding: 0 27px 24px 0; border-right: 1px solid #bfd6e7; margin-right: 5px; }
.tei-route li:last-child { padding-bottom: 4px; border-color: transparent; }
.tei-route li::before { content: ""; position: absolute; width: 9px; height: 9px; right: -5px; top: 8px; border-radius: 50%; background: var(--tei-primary); box-shadow: 0 0 0 5px #ecf5fd; }
.tei-route strong { display: block; font-size: 15px; margin-bottom: 5px; font-weight: 500; }
.tei-route p { font-size: 13px; line-height: 1.8; margin-bottom: 0; color: var(--tei-muted); }
.tei-preview-note { margin-top: 25px; padding-top: 18px; border-top: 1px solid #1d1d1f12; font-size: 12px; color: var(--tei-muted); line-height: 1.8; }
.tei-strip { border-block: 1px solid #1d1d1f12; background: #fff; }
.tei-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 25px; gap: 28px; }
.tei-strip-item { display: flex; gap: 15px; align-items: center; }
.tei-strip-item svg { width: 23px; height: 23px; flex: none; color: var(--tei-primary-dark); }
.tei-strip-item strong { display: block; font-size: 14px; font-weight: 500; }
.tei-strip-item p { font-size: 12px; color: var(--tei-muted); margin: 3px 0 0; }
.tei-section { padding-block: 88px; }
.tei-section-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 35px; }
.tei-page h2 { font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -.025em; line-height: 1.4; font-weight: 500; margin-bottom: 16px; }
.tei-section-intro { max-width: 470px; line-height: 1.9; font-size: 15px; color: var(--tei-muted); margin-bottom: 0; }
.tei-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.tei-card { border: 1px solid #1d1d1f12; border-radius: var(--tei-radius); background: var(--tei-surface); padding: 34px; }
.tei-story { grid-column: span 4; }
.tei-identity { grid-column: span 2; position: relative; overflow: hidden; }
.tei-identity::before, .tei-cta::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, #0284c77a, transparent);
}
.tei-page h3 { font-size: 21px; font-weight: 500; line-height: 1.5; margin-bottom: 17px; }
.tei-prose p { font-size: 15px; line-height: 2.05; color: var(--tei-muted); margin-bottom: 18px; }
.tei-prose p:last-child { margin-bottom: 0; }
.tei-identity dl { margin: 28px 0 0; }
.tei-identity dt { color: var(--tei-muted); font-size: 12px; margin-top: 22px; }
.tei-identity dd { font-size: 15px; line-height: 1.8; margin: 5px 0 0; }
.tei-identity small { display: block; margin-top: 23px; font-size: 12px; line-height: 1.9; color: var(--tei-muted); }
.tei-standards { background: #fff; border-block: 1px solid #1d1d1f0d; }
.tei-standards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 75px; align-items: start; }
.tei-workbench { padding: 28px; border: 1px solid var(--tei-border); border-radius: var(--tei-radius); background: var(--tei-canvas); }
.tei-tabs { display: flex; padding: 5px; gap: 4px; border-radius: 16px; border: 1px solid #1d1d1f12; background: #fff; margin-bottom: 26px; }
.tei-tab {
  flex: 1; border: 0; border-radius: 11px; padding: 10px 7px; cursor: pointer;
  font: 500 13px var(--tei-font); background: transparent; color: var(--tei-muted); transition: background .2s, color .2s;
}
.tei-tab[aria-selected="true"] { background: var(--tei-primary); color: #fff; }
.tei-panel[hidden] { display: none; }
.tei-panel { min-height: 230px; animation: tei-reveal .25s ease; }
.tei-panel h3 { font-size: 24px; }
.tei-panel p, .tei-panel li { font-size: 14px; color: var(--tei-muted); line-height: 1.95; }
.tei-panel ul { padding-inline-start: 20px; margin-bottom: 0; }
.tei-panel li + li { margin-top: 7px; }
.tei-workbench-foot { border-top: 1px solid var(--tei-border); padding-top: 17px; font-size: 12px; color: var(--tei-muted); line-height: 1.8; }
.tei-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.tei-value { padding: 27px; transition: transform .25s, box-shadow .25s; }
.tei-value:hover, .tei-source:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px #00000020; }
.tei-value svg { width: 25px; height: 25px; color: var(--tei-primary-dark); margin-bottom: 24px; }
.tei-value h3 { font-size: 19px; margin-bottom: 12px; }
.tei-value p { font-size: 14px; line-height: 1.95; color: var(--tei-muted); margin-bottom: 0; }
.tei-leadership { padding-top: 0; }
.tei-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tei-role { padding: 30px; border-top: 2px solid #0071e34d; }
.tei-role-label { display: block; color: var(--tei-primary-dark); font-size: 12px; margin-bottom: 20px; }
.tei-role h3 { font-size: 22px; }
.tei-role p { font-size: 14px; line-height: 1.95; color: var(--tei-muted); }
.tei-role-bottom { border-top: 1px solid #1d1d1f12; padding-top: 16px; margin-top: 22px; font-size: 12px; color: var(--tei-muted); line-height: 1.8; }
.tei-disclosure { font-size: 13px; color: var(--tei-muted); line-height: 1.9; margin-top: 22px; max-width: 820px; }
.tei-sources { border-top: 1px solid #1d1d1f12; padding-top: 65px; }
.tei-sources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tei-source { display: block; transition: transform .25s, box-shadow .25s; padding: 26px; }
.tei-source h3 { font-size: 17px; display: flex; justify-content: space-between; gap: 12px; }
.tei-source p { color: var(--tei-muted); font-size: 13px; line-height: 1.85; margin-bottom: 0; }
.tei-source-domain { display: block; direction: ltr; text-align: right; color: var(--tei-primary-dark); font-size: 12px; margin-top: 20px; }
.tei-footnote { font-size: 12px; line-height: 1.95; color: var(--tei-muted); margin: 22px 0 0; }
.tei-cta-section { padding: 0 0 90px; }
.tei-cta { position: relative; overflow: hidden; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 35px; background: radial-gradient(ellipse at 85% 0%, #0284c70a, transparent 70%), #fff; }
.tei-cta h2 { font-size: clamp(28px, 3vw, 40px); }
.tei-cta p { color: var(--tei-muted); font-size: 15px; line-height: 1.9; max-width: 670px; margin: 0; }
.tei-cta .tei-button { flex: none; }
.site-footer { background: #f5f5f7; border-top: 1px solid #1d1d1f12; padding: 55px 0 25px; }
.tei-footer-grid { display: grid; grid-template-columns: 1.3fr 1.3fr .7fr 1fr; gap: 40px; }
.tei-footer-intro { font-size: 13px; color: var(--tei-muted); line-height: 1.9; max-width: 260px; margin-top: 20px; }
.site-footer h2 { font-size: 14px; font-weight: 600; margin: 0 0 18px; }
.tei-footer-list { list-style: none; margin: 0; padding: 0; }
.tei-footer-list li { margin-bottom: 12px; font-size: 12px; color: var(--tei-muted); line-height: 1.8; }
.site-footer address { font-style: normal; font-size: 12px; line-height: 2; color: var(--tei-muted); }
.site-footer a:hover { color: var(--tei-primary-dark); }
.tei-footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--tei-border); margin-top: 35px; padding-top: 22px; color: var(--tei-muted); font-size: 11px; line-height: 1.9; }
.tei-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.site-header :focus-visible, .tei-page :focus-visible, .site-footer :focus-visible { outline: 3px solid var(--tei-primary); outline-offset: 5px; }
@keyframes tei-float { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-6px); } }
@keyframes tei-reveal { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1440px) { .tei-hero { padding-block: 85px 95px; } }
@media (max-width: 1000px) {
  .tei-hero-grid { gap: 35px; }
  .tei-standards-grid { gap: 35px; }
  .tei-values { grid-template-columns: repeat(2, 1fr); }
  .tei-story { grid-column: span 3; }
  .tei-identity { grid-column: span 3; }
  .tei-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .tei-desktop-nav { gap: 22px; }
  .tei-roles { gap: 15px; }
  .tei-role { padding: 23px; }
}
@media (max-width: 760px) {
  .tei-container { width: calc(100% - 40px); }
  .tei-header-inner { min-height: 74px; gap: 16px; }
  .tei-desktop-nav, .tei-header-cta { display: none; }
  .tei-mobile-nav { display: block; }
  .tei-hero { padding: 43px 0 48px; }
  .tei-hero-grid, .tei-standards-grid { grid-template-columns: 1fr; gap: 28px; }
  .tei-page h1 { font-size: clamp(43px, 10vw, 64px); }
  .tei-lead { font-size: 17px; }
  .tei-preview-wrap { padding: 12px 8px; }
  .tei-preview { padding: 25px; }
  .tei-strip-grid { grid-template-columns: 1fr; gap: 22px; }
  .tei-section { padding-block: 58px; }
  .tei-section-head { display: block; margin-bottom: 28px; }
  .tei-section-intro { max-width: none; }
  .tei-bento { grid-template-columns: 1fr; }
  .tei-story, .tei-identity { grid-column: auto; }
  .tei-card { padding: 26px; }
  .tei-values { gap: 14px; }
  .tei-value { padding: 22px; }
  .tei-roles, .tei-sources-grid { grid-template-columns: 1fr; }
  .tei-leadership { padding-top: 0; }
  .tei-panel { min-height: 255px; }
  .tei-cta-section { padding-bottom: 58px; }
  .tei-cta { display: block; padding: 32px 26px; }
  .tei-cta .tei-button { margin-top: 25px; }
  .tei-footer-grid { gap: 30px; }
  .tei-footer-bottom { flex-direction: column; gap: 5px; }
}
@media (max-width: 430px) {
  .tei-values, .tei-footer-grid { grid-template-columns: 1fr; }
  .tei-value svg { margin-bottom: 16px; }
  .tei-workbench { padding: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .tei-page *, .site-header * { animation: none !important; transition: none !important; }
  .tei-preview { transform: none; }
}


/* === BESPOKE STYLES: services === */
:root {
  --tei-canvas: #fbfbfd;
  --tei-surface: #fff;
  --tei-ink: #1d1d1f;
  --tei-muted: #606872;
  --tei-border: #d2d2d7;
  --tei-brand: #0071e3;
  --tei-azure: #0284c7;
  --tei-amber: #b86200;
  --tei-radius: 26px;
  --tei-shadow: 0 24px 70px -35px rgba(19, 60, 98, .3);
}
* { box-sizing: border-box; }
.tei-page, .site-header, .site-footer {
  direction: rtl;
  color: var(--tei-ink);
  font-family: "SF Arabic", "Geeza Pro", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.tei-page { background: var(--tei-canvas); overflow: clip; }
.site-header a, .tei-page a, .site-footer a { color: inherit; text-decoration: none; }
.tei-container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.tei-page h1, .tei-page h2, .tei-page h3, .tei-page p { margin: 0; }
.tei-page h1, .tei-page h2 { letter-spacing: -.035em; }
.tei-page p { line-height: 1.95; }
.tei-page button, .tei-page input, .tei-page select { font: inherit; }
.tei-page a:focus-visible, .site-header a:focus-visible,
.tei-page button:focus-visible, .tei-page select:focus-visible,
.site-header summary:focus-visible, .site-footer a:focus-visible {
  outline: 3px solid var(--tei-azure);
  outline-offset: 5px;
}
.tei-skip { position: fixed; top: -100px; right: 24px; padding: 12px 20px; background: #fff; z-index: 100; }
.tei-skip:focus { top: 12px; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251,251,253,.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(29,29,31,.09);
}
.tei-header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.tei-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tei-brand svg { width: 34px; height: 34px; color: var(--tei-brand); }
.tei-wordmark { direction: ltr; font: 700 23px/1.1 Arial, sans-serif; letter-spacing: -1.2px; }
.tei-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.tei-nav a { padding-block: 12px; color: #51555c; transition: color .2s; }
.tei-nav a:hover, .tei-nav a[aria-current] { color: var(--tei-brand); }
.tei-nav a[aria-current] { box-shadow: inset 0 -2px var(--tei-brand); }
.tei-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  background: var(--tei-brand); color: #fff !important;
  border: 1px solid transparent; font-size: 14px; font-weight: 700;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.tei-button:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -8px #0071e366; background: #0065cc; }
.tei-button--secondary { background: #fff; color: var(--tei-ink) !important; border-color: var(--tei-border); }
.tei-button--secondary:hover { background: #f5f8fc; box-shadow: var(--tei-shadow); }
.tei-mobile { display: none; position: relative; }
.tei-mobile summary { list-style: none; cursor: pointer; padding: 10px; font-size: 14px; }
.tei-mobile summary::-webkit-details-marker { display: none; }
.tei-mobile nav { position: absolute; top: 50px; left: 0; width: 235px; padding: 14px; background: #fff; border: 1px solid var(--tei-border); border-radius: 18px; box-shadow: var(--tei-shadow); }
.tei-mobile nav a { display: block; padding: 12px; border-radius: 8px; }
.tei-mobile nav a:hover { background: #f2f7fc; }
.tei-breadcrumb { padding-top: 30px; font-size: 12px; color: var(--tei-muted); }
.tei-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.tei-breadcrumb li + li::before { content: "/"; margin-inline-end: 12px; color: #777; }
.tei-hero { position: relative; padding: 64px 0 76px; }
.tei-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 18% 42%, rgba(2,132,199,.1), transparent 54%);
}
.tei-hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 60px; }
.tei-eyebrow { color: #0369a1; font-size: 12px; font-weight: 700; display: block; margin-bottom: 22px; }
.tei-hero h1 { font-size: clamp(40px, 4.65vw, 65px); line-height: 1.35; font-weight: 700; }
.tei-hero h1 span { color: var(--tei-brand); }
.tei-intro { color: var(--tei-muted); font-size: 17px; max-width: 570px; margin-top: 24px !important; }
.tei-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tei-text-link { color: var(--tei-brand) !important; font-weight: 700; font-size: 14px; }
.tei-hero-note { margin-top: 24px !important; color: var(--tei-muted); font-size: 12px; }
.tei-route-stage { position: relative; padding: 28px 22px; }
.tei-route-stage::before {
  content: ""; position: absolute; inset: 8% 0; border-radius: 50%;
  background: radial-gradient(ellipse, #d2eaff 0, #eaf5fb 45%, transparent 70%);
}
.tei-route-card {
  position: relative; background: rgba(255,255,255,.78); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border: 1px solid #fff;
  border-radius: 30px; box-shadow: var(--tei-shadow); padding: 30px;
  animation: tei-float 7s ease-in-out infinite;
}
.tei-route-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 23px; border-bottom: 1px solid #dce5ee; }
.tei-route-top strong { font-size: 18px; }
.tei-small-label { display: block; font-size: 11px; color: var(--tei-muted); margin-bottom: 7px; }
.tei-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #dce5ee; border-radius: 99px; font-size: 11px; color: #315b75; background: #fff; white-space: nowrap; }
.tei-dot { width: 6px; height: 6px; border-radius: 50%; background: #0284c7; box-shadow: 0 0 0 4px #0284c715; animation: tei-pulse 3s infinite; }
.tei-route-list { list-style: none; padding: 26px 0 10px; margin: 0; }
.tei-route-list li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; position: relative; padding-bottom: 29px; }
.tei-route-list li:not(:last-child)::before { content: ""; position: absolute; top: 39px; right: 19px; width: 1px; height: calc(100% - 32px); background: #bfd9ed; }
.tei-route-number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid #c7dfef; color: #0369a1; font-size: 13px; }
.tei-route-list h3 { font-size: 15px; margin-bottom: 6px; }
.tei-route-list p { font-size: 12px; color: var(--tei-muted); line-height: 1.8; }
.tei-route-bottom { border-top: 1px solid #dce5ee; padding-top: 17px; display: flex; flex-wrap: wrap; gap: 8px; }
.tei-caption { position: relative; margin-top: 18px !important; text-align: center; font-size: 11px; color: var(--tei-muted); }
.tei-section { padding-block: 88px; border-top: 1px solid #e6e6eb; }
.tei-section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.tei-section-head h2 { font-size: clamp(29px, 3vw, 42px); line-height: 1.45; }
.tei-section-head p { font-size: 14px; color: var(--tei-muted); max-width: 400px; }
.tei-section-head .tei-eyebrow { margin-bottom: 12px; }
.tei-principles { border-block: 1px solid #e6e6eb; padding-block: 24px; }
.tei-principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tei-principles-grid > div { padding-inline: 20px; border-inline-start: 1px solid var(--tei-border); }
.tei-principles strong { font-size: 14px; display: block; margin-bottom: 6px; }
.tei-principles p { font-size: 12px; color: var(--tei-muted); }
.tei-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tei-card {
  padding: 32px; border-radius: var(--tei-radius); background: var(--tei-surface);
  border: 1px solid rgba(0,0,0,.09); position: relative;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
}
.tei-card:hover { transform: translateY(-3px); box-shadow: var(--tei-shadow); }
.tei-card--wide { grid-column: span 4; }
.tei-card--small { grid-column: span 2; }
.tei-card::before { content: ""; position: absolute; top: -1px; right: 18%; left: 18%; height: 1px; background: linear-gradient(90deg, transparent, #90c6ee, transparent); }
.tei-card-index { color: #0369a1; font-size: 12px; margin-bottom: 26px; display: block; }
.tei-card h3 { font-size: 23px; line-height: 1.5; margin-bottom: 14px; }
.tei-card p { font-size: 14px; color: var(--tei-muted); }
.tei-list { padding-inline-start: 20px; margin: 18px 0 24px; color: #454b53; font-size: 13px; line-height: 2.1; }
.tei-delivery { border-top: 1px solid #ececf0; padding-top: 16px; font-size: 12px; color: var(--tei-muted); }
.tei-delivery strong { color: var(--tei-ink); }
.tei-editorial-layout { display: grid; grid-template-columns: .6fr 1.4fr; gap: 80px; align-items: start; }
.tei-editorial-aside h2 { font-size: 37px; line-height: 1.5; }
.tei-editorial-aside p { margin-top: 20px; font-size: 14px; color: var(--tei-muted); }
.tei-lead-card { padding: 25px 28px; background: #fff; border: 1px solid #dce5ee; border-inline-start: 3px solid var(--tei-brand); border-radius: 18px; margin-bottom: 36px; }
.tei-lead-card .tei-eyebrow { margin-bottom: 10px; }
.tei-lead-card p { font-size: 15px; }
.tei-prose h3 { font-size: 22px; margin: 32px 0 14px; }
.tei-prose > p { color: #51565e; font-size: 15px; line-height: 2.1; margin-bottom: 18px; }
.tei-method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.tei-step { padding-top: 24px; border-top: 2px solid #d6e8f8; }
.tei-step-number { color: var(--tei-brand); font-size: 12px; display: block; margin-bottom: 24px; }
.tei-step h3 { font-size: 19px; margin-bottom: 12px; }
.tei-step p { color: var(--tei-muted); font-size: 13px; }
.tei-table-wrap { overflow-x: auto; border: 1px solid var(--tei-border); border-radius: 20px; background: #fff; }
.tei-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: right; font-size: 13px; }
.tei-table caption { text-align: right; padding: 23px; font-size: 14px; color: var(--tei-muted); }
.tei-table th, .tei-table td { padding: 22px; border-top: 1px solid #e6e6eb; vertical-align: top; line-height: 1.9; }
.tei-table thead th { background: #f5f7fa; color: #48525c; font-size: 12px; }
.tei-table tbody th { width: 19%; }
.tei-footnote { color: var(--tei-muted); font-size: 12px; margin-top: 18px !important; }
.tei-estimator { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; padding: 42px; border: 1px solid #d6e4f0; border-radius: 30px; background: radial-gradient(ellipse at 20% 0%, #eaf4ff, transparent 65%), #fff; }
.tei-fields { display: grid; gap: 24px; }
.tei-field label, .tei-field legend { font-size: 14px; font-weight: 700; margin-bottom: 12px; display: block; }
.tei-field select { width: 100%; min-height: 50px; border-radius: 12px; padding: 10px 14px; background: #fff; color: var(--tei-ink); border: 1px solid #bbc7d2; }
.tei-field input[type="range"] { width: 100%; accent-color: var(--tei-brand); cursor: pointer; }
.tei-range-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--tei-muted); margin-top: 8px; }
.tei-fieldset { border: 0; padding: 0; margin: 0; }
.tei-check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #424b55; line-height: 1.9; }
.tei-check input { accent-color: var(--tei-brand); width: 17px; height: 17px; }
.tei-result { border-radius: 22px; background: rgba(255,255,255,.85); border: 1px solid #d6e4f0; padding: 30px; box-shadow: 0 14px 40px -30px #0369a160; }
.tei-result h3 { font-size: 24px; line-height: 1.6; margin-bottom: 14px; }
.tei-result p { font-size: 14px; color: var(--tei-muted); }
.tei-result dl { margin: 22px 0; }
.tei-result dl > div { display: flex; justify-content: space-between; gap: 20px; padding-block: 14px; border-bottom: 1px solid #e1e7ed; font-size: 13px; }
.tei-result dt { color: var(--tei-muted); }
.tei-result dd { margin: 0; font-weight: 700; text-align: left; }
.tei-result .tei-button { width: 100%; margin-top: 22px; }
.tei-sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tei-source { padding-top: 22px; border-top: 1px solid #cbd9e5; }
.tei-source a { display: inline-block; color: #0064be; font-size: 16px; font-weight: 700; line-height: 1.7; margin-bottom: 12px; }
.tei-source p { color: var(--tei-muted); font-size: 13px; }
.tei-cta { padding: 0 0 80px; }
.tei-cta-inner { border: 1px solid #d6e4f0; border-radius: 30px; padding: 55px; background: radial-gradient(ellipse at 10% 0%, #e3f0ff, transparent 65%), #fff; display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.tei-cta h2 { font-size: 34px; line-height: 1.5; }
.tei-cta p { max-width: 650px; color: var(--tei-muted); margin-top: 15px; font-size: 14px; }
.tei-cta .tei-button { flex-shrink: 0; }
.site-footer { padding: 56px 0 25px; background: #f5f5f7; border-top: 1px solid #dedee4; }
.tei-footer-grid { display: grid; grid-template-columns: 1.2fr 1.25fr .75fr .8fr; gap: 38px; }
.tei-footer-title { font-size: 13px; margin: 0 0 20px; }
.tei-footer-grid p, .tei-footer-grid address, .tei-footer-grid li { font-size: 12px; line-height: 2; color: #575d65; font-style: normal; }
.tei-footer-grid p { margin: 18px 0 0; }
.tei-footer-grid ul { padding: 0; margin: 0; list-style: none; }
.tei-footer-grid li { margin-bottom: 8px; }
.site-footer a:hover { color: #0064be; text-decoration: underline; }
.tei-footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--tei-border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 11px; color: #626872; line-height: 1.9; }
@keyframes tei-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes tei-pulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@media (min-width: 1100px) { .tei-editorial-aside { position: sticky; top: 120px; } }
@media (max-width: 1050px) {
  .tei-nav { gap: 18px; }
  .tei-hero-grid { gap: 25px; }
  .tei-hero h1 { font-size: 47px; }
  .tei-card--wide, .tei-card--small { grid-column: span 3; }
  .tei-editorial-layout { gap: 42px; grid-template-columns: .65fr 1.35fr; }
  .tei-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .tei-container { width: calc(100% - 36px); }
  .tei-header-inner { min-height: 74px; gap: 12px; }
  .tei-nav, .tei-header-inner > .tei-button { display: none; }
  .tei-mobile { display: block; }
  .tei-hero { padding-block: 45px; }
  .tei-hero-grid, .tei-editorial-layout, .tei-estimator { grid-template-columns: 1fr; }
  .tei-hero h1 { font-size: clamp(36px, 8vw, 53px); }
  .tei-route-stage { max-width: 540px; width: 100%; margin-inline: auto; padding-inline: 6px; }
  .tei-section { padding-block: 58px; }
  .tei-section-head { display: block; }
  .tei-section-head p { margin-top: 18px; }
  .tei-card { padding: 26px; }
  .tei-principles-grid { gap: 18px; grid-template-columns: 1fr; }
  .tei-method, .tei-sources { grid-template-columns: 1fr 1fr; }
  .tei-estimator { padding: 24px; gap: 28px; }
  .tei-cta-inner { padding: 30px; display: block; }
  .tei-cta .tei-button { margin-top: 25px; }
  .tei-cta h2 { font-size: 29px; }
}
@media (max-width: 500px) {
  .tei-bento, .tei-method, .tei-sources, .tei-footer-grid { grid-template-columns: 1fr; }
  .tei-card--wide, .tei-card--small { grid-column: auto; }
  .tei-route-card { padding: 23px; }
  .tei-route-top { align-items: start; }
  .tei-route-top strong { font-size: 16px; }
  .tei-result { padding: 22px; }
  .tei-section-head h2, .tei-editorial-aside h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .tei-page *, .site-header * { animation: none !important; transition: none !important; }
}


/* === BESPOKE STYLES: note-night-circuit === */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

  :root {
    --tei-canvas: #fbfbfd;
    --tei-surface: #fff;
    --tei-text: #1d1d1f;
    --tei-muted: #62626a;
    --tei-border: #d2d2d7;
    --tei-brand: #0071e3;
    --tei-azure: #0284c7;
    --tei-soft: #eef6ff;
    --tei-radius: 26px;
    --tei-font: "IBM Plex Sans Arabic", sans-serif;
  }

  * { box-sizing: border-box; }
  .site-header, #main-content, .site-footer {
    direction: rtl;
    font-family: var(--tei-font);
    color: var(--tei-text);
    background: var(--tei-canvas);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
  }
  .site-header a, #main-content a, .site-footer a { color: inherit; text-decoration: none; }
  button, input { font: inherit; }
  a, button, summary, input { -webkit-tap-highlight-color: transparent; }
  a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
    outline: 3px solid var(--tei-azure);
    outline-offset: 5px;
  }
  .tei-container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
  .tei-skip {
    position: fixed; top: -90px; right: 20px; z-index: 100;
    padding: 10px 20px; background: #fff; border: 1px solid var(--tei-border);
  }
  .tei-skip:focus { top: 12px; }
  .site-header {
    position: sticky; top: 0; z-index: 30;
    background: rgba(251,251,253,.88);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(29,29,31,.09);
  }
  .tei-header-inner { display: flex; align-items: center; gap: 32px; min-height: 86px; }
  .tei-brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
  .tei-brand svg { width: 32px; height: 32px; color: var(--tei-brand); }
  .tei-wordmark { direction: ltr; font-size: 23px; font-weight: 700; letter-spacing: -1.1px; }
  .tei-nav { display: flex; align-items: center; gap: 27px; margin-inline: auto; }
  .tei-nav a { font-size: 14px; color: #56565c; position: relative; padding-block: 12px; }
  .tei-nav a:hover, .tei-nav a.active { color: var(--tei-brand); }
  .tei-nav a.active::after { content: ""; position: absolute; bottom: 3px; right: 0; left: 0; height: 2px; background: var(--tei-brand); }
  #main-content .tei-button, .site-header .tei-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    padding: 12px 24px; border-radius: 999px; background: var(--tei-brand);
    color: #fff; font-weight: 500; font-size: 14px; border: 1px solid transparent;
    transition: transform .25s, box-shadow .25s, background .25s;
  }
  .tei-button:hover { transform: translateY(-3px); box-shadow: 0 10px 25px #0071e325; background: #0065cb; }
  .tei-button svg { width: 18px; height: 18px; }
  .tei-mobile { display: none; }
  .tei-breadcrumb { padding-top: 26px; font-size: 12px; color: var(--tei-muted); }
  .tei-breadcrumb ol { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
  .tei-breadcrumb li + li::before { content: "/"; margin-inline-end: 10px; color: #92929b; }
  .tei-breadcrumb a:hover { color: var(--tei-brand); }
  .tei-hero { position: relative; overflow: hidden; padding: 58px 0 72px; }
  .tei-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 17% 55%, #0284c714, transparent 52%);
  }
  .tei-hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 64px; align-items: center; position: relative; }
  .tei-eyebrow { color: #0062b4; display: block; font-size: 12px; font-weight: 600; margin-bottom: 18px; }
  .tei-hero h1 { font-size: clamp(54px, 6.8vw, 91px); line-height: 1.22; letter-spacing: -.05em; margin: 0 0 24px; font-weight: 600; }
  .tei-hero h1 span { display: block; color: var(--tei-brand); }
  .tei-deck { font-size: 21px; line-height: 1.95; max-width: 540px; color: var(--tei-muted); margin: 0 0 28px; }
  .tei-text-link { display: inline-flex; gap: 12px; align-items: center; color: var(--tei-brand) !important; font-weight: 500; }
  .tei-text-link:hover { text-decoration: underline !important; text-underline-offset: 5px; }
  .tei-orbit { padding: 20px 0; position: relative; }
  .tei-route-preview {
    border: 1px solid rgba(255,255,255,.95); border-radius: 30px;
    background: rgba(255,255,255,.76); backdrop-filter: blur(16px);
    box-shadow: 0 24px 80px -24px #173b6026, 0 0 0 1px #1d1d1f0d;
    padding: 30px; position: relative; animation: tei-float 7s ease-in-out infinite;
  }
  .tei-route-preview::before, .tei-planner::before {
    content: ""; height: 1px; position: absolute; top: 0; right: 12%; left: 12%;
    background: linear-gradient(90deg, transparent, #0284c7a0, transparent);
  }
  .tei-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 32px; font-size: 12px; color: var(--tei-muted); }
  .tei-live { display: inline-flex; align-items: center; gap: 7px; }
  .tei-dot { width: 7px; height: 7px; background: var(--tei-azure); border-radius: 50%; animation: tei-pulse 3s ease-in-out infinite; }
  .tei-preview-title { font-size: 27px; font-weight: 500; margin: 0 0 8px; }
  .tei-preview-intro { margin: 0; color: var(--tei-muted); font-size: 13px; }
  .tei-stops { list-style: none; margin: 28px 0; padding: 0; }
  .tei-stops li { position: relative; display: flex; gap: 20px; padding-bottom: 25px; }
  .tei-stops li:last-child { padding-bottom: 0; }
  .tei-stops li:not(:last-child)::after { content: ""; position: absolute; right: 15px; top: 34px; bottom: 3px; width: 1px; background: #c8dded; }
  .tei-stop-index { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border: 1px solid #d1dfeb; border-radius: 50%; font-size: 12px; color: #0062b4; background: #fff; }
  .tei-stops strong { display: block; font-size: 15px; font-weight: 500; }
  .tei-stops p { font-size: 12px; color: var(--tei-muted); margin: 3px 0 0; }
  .tei-preview-bottom { border-top: 1px solid #e7e7ec; padding-top: 16px; font-size: 12px; color: var(--tei-muted); display: flex; justify-content: space-between; gap: 10px; }
  .tei-rail { border-top: 1px solid var(--tei-border); border-bottom: 1px solid var(--tei-border); }
  .tei-rail-grid { display: grid; grid-template-columns: repeat(3,1fr); }
  .tei-rail-item { padding: 24px 28px; }
  .tei-rail-item + .tei-rail-item { border-inline-start: 1px solid var(--tei-border); }
  .tei-rail-item small { display: block; color: var(--tei-muted); margin-bottom: 3px; }
  .tei-rail-item strong { font-weight: 500; font-size: 15px; }
  .tei-editorial { padding: 78px 0; }
  .tei-editorial-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 72px; align-items: start; }
  .tei-contents { position: sticky; top: 118px; }
  .tei-contents p { font-size: 12px; color: var(--tei-muted); margin: 0 0 20px; }
  .tei-contents a { display: block; font-size: 14px; margin: 15px 0; }
  .tei-contents a:hover { color: var(--tei-brand) !important; }
  .tei-contents-note { border-top: 1px solid var(--tei-border); padding-top: 20px; margin-top: 30px !important; line-height: 1.9; }
  .tei-lead-card { padding: 30px 34px; border: 1px solid var(--tei-border); border-inline-start: 3px solid var(--tei-brand); border-radius: 0 22px 22px 0; background: var(--tei-surface); margin-bottom: 50px; }
  .tei-lead-card .tei-eyebrow { margin-bottom: 10px; }
  .tei-lead-card p { margin: 0; font-size: 18px; line-height: 2; }
  .tei-article-section { margin-bottom: 54px; scroll-margin-top: 115px; }
  .tei-article-section h2 { font-size: clamp(25px,3vw,34px); line-height: 1.5; font-weight: 600; letter-spacing: -.025em; margin: 0 0 20px; }
  .tei-article-section p { font-size: 16px; line-height: 2.1; color: #4d4d55; margin: 0 0 20px; }
  .tei-article-section ul { color: #4d4d55; padding-inline-start: 23px; line-height: 2.1; }
  .tei-article-section li { padding-inline-start: 6px; margin-block: 8px; }
  .tei-callout { background: #fff; border: 1px solid var(--tei-border); border-radius: 20px; padding: 22px 26px; margin-top: 24px; }
  .tei-callout strong { color: var(--tei-text); display: block; margin-bottom: 5px; font-weight: 500; }
  .tei-callout p { margin: 0; font-size: 14px; }
  .tei-table-wrap { overflow-x: auto; border: 1px solid var(--tei-border); border-radius: 20px; margin-block: 25px; background: #fff; }
  .data-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: start; min-width: 610px; }
  .data-table caption { text-align: start; padding: 20px; font-weight: 600; font-size: 15px; }
  .data-table th, .data-table td { padding: 16px 20px; border-top: 1px solid #e7e7ec; text-align: start; vertical-align: top; }
  .data-table th { background: var(--tei-canvas); font-weight: 500; color: var(--tei-text); }
  .data-table td { color: #55555c; }
  .tei-small { font-size: 12px !important; color: var(--tei-muted) !important; }
  .tei-planner { padding: 30px; background: #fff; border: 1px solid var(--tei-border); border-radius: var(--tei-radius); position: relative; overflow: hidden; margin-top: 28px; }
  .tei-planner-head { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; }
  .tei-planner h3 { font-size: 21px; margin: 0 0 8px; font-weight: 500; }
  .tei-planner p { font-size: 14px; }
  .tei-range-label { display: flex; justify-content: space-between; align-items: center; font-size: 14px; gap: 15px; }
  .tei-range-label output { font-weight: 600; color: var(--tei-brand); }
  .tei-range { width: 100%; accent-color: var(--tei-brand); margin: 18px 0 24px; cursor: pointer; min-height: 24px; }
  .tei-plan-result { border-top: 1px solid var(--tei-border); padding-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .tei-plan-result small { display: block; color: var(--tei-muted); font-size: 12px; }
  .tei-plan-result strong { display: block; font-size: 24px; font-weight: 500; margin-block: 4px; }
  .tei-plan-result p { font-size: 13px; margin: 0; }
  .tei-takeaways { padding: 66px 0; border-top: 1px solid var(--tei-border); }
  .tei-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
  .tei-section-heading h2 { font-size: 36px; line-height: 1.4; font-weight: 600; letter-spacing: -.025em; margin: 0; }
  .tei-section-heading p { color: var(--tei-muted); margin: 0; font-size: 14px; }
  .tei-bento { display: grid; grid-template-columns: repeat(6,1fr); gap: 18px; }
  .tei-bento-card { grid-column: span 2; border: 1px solid var(--tei-border); background: #fff; border-radius: var(--tei-radius); padding: 30px; transition: transform .25s, box-shadow .25s; }
  .tei-bento-card:first-child { grid-column: span 4; }
  .tei-bento-card:last-child { grid-column: span 6; display: flex; gap: 40px; align-items: baseline; }
  .tei-bento-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px #00000015; }
  .tei-bento-card h3 { margin: 0 0 12px; font-size: 21px; font-weight: 500; }
  .tei-bento-card p { font-size: 15px; color: var(--tei-muted); margin: 0; }
  .tei-sources { padding: 40px 0 75px; scroll-margin-top: 110px; }
  .tei-source-list { border-top: 1px solid var(--tei-border); }
  .tei-source-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 23px 0; border-bottom: 1px solid var(--tei-border); }
  .tei-source-row h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
  .tei-source-row p { margin: 0; color: var(--tei-muted); font-size: 13px; }
  .tei-source-row a { color: var(--tei-brand) !important; white-space: nowrap; font-size: 13px; }
  .tei-source-note { color: var(--tei-muted); font-size: 13px; margin-top: 20px; max-width: 900px; }
  .tei-cta { padding: 15px 0 80px; }
  .tei-cta-inner { background: radial-gradient(ellipse at 50% 0%, #0284c710, transparent 70%), #fff; border: 1px solid var(--tei-border); border-radius: 30px; padding: 58px; text-align: center; }
  .tei-cta h2 { margin: 0 0 15px; font-size: clamp(28px,4vw,43px); font-weight: 600; letter-spacing: -.03em; }
  .tei-cta p { color: var(--tei-muted); max-width: 650px; margin: 0 auto 26px; }
  .site-footer { border-top: 1px solid var(--tei-border); padding: 48px 0 25px; }
  .tei-footer-grid { display: grid; grid-template-columns: 1.3fr 1.5fr .8fr; gap: 50px; }
  .tei-footer-grid h2 { font-size: 14px; font-weight: 600; margin: 0 0 16px; }
  .tei-footer-grid p, .tei-footer-grid address { font-size: 13px; color: var(--tei-muted); font-style: normal; margin: 14px 0; }
  .tei-footer-grid a:not(.tei-brand) { display: block; font-size: 13px; margin-bottom: 9px; }
  .tei-footer-grid a:hover { color: var(--tei-brand); }
  .tei-footer-bottom { border-top: 1px solid var(--tei-border); padding-top: 22px; margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; color: var(--tei-muted); font-size: 11px; }
  .tei-legal { display: flex; flex-wrap: wrap; gap: 18px; }
  @keyframes tei-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  @keyframes tei-pulse { 0%,100% { opacity: .6; } 50% { opacity: 1; } }

  @media (min-width: 1500px) { .tei-hero { padding-block: 80px 90px; } }
  @media (max-width: 1000px) {
    .tei-header-inner { gap: 20px; }
    .tei-nav { gap: 16px; }
    .tei-nav a { font-size: 12px; }
    .tei-hero-grid { gap: 32px; }
    .tei-editorial-layout { grid-template-columns: 170px minmax(0,1fr); gap: 35px; }
    .tei-route-preview { padding: 24px; }
  }
  @media (max-width: 760px) {
    .tei-container { width: calc(100% - 36px); }
    .tei-header-inner { min-height: 72px; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
    .tei-nav, .tei-header-cta { display: none !important; }
    .tei-mobile { display: block; }
    .tei-mobile summary { list-style: none; cursor: pointer; border: 1px solid var(--tei-border); border-radius: 999px; padding: 6px 16px; font-size: 13px; }
    .tei-mobile summary::-webkit-details-marker { display: none; }
    .tei-mobile nav { position: absolute; right: 18px; left: 18px; top: 73px; background: #fff; border: 1px solid var(--tei-border); border-radius: 20px; padding: 20px; box-shadow: 0 15px 35px #00000012; }
    .tei-mobile nav a { display: block; padding: 9px 4px; font-size: 15px; }
    .tei-mobile nav a.active { color: var(--tei-brand); }
    .tei-hero { padding: 35px 0 40px; }
    .tei-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .tei-hero h1 { font-size: 61px; }
    .tei-deck { font-size: 18px; }
    .tei-orbit { padding: 0; }
    .tei-route-preview { animation: none; }
    .tei-rail-grid { grid-template-columns: 1fr; }
    .tei-rail-item { padding: 17px 3px; }
    .tei-rail-item + .tei-rail-item { border-inline-start: 0; border-top: 1px solid #e7e7ec; }
    .tei-editorial { padding: 40px 0 15px; }
    .tei-editorial-layout { grid-template-columns: 1fr; gap: 25px; }
    .tei-contents { position: static; border-bottom: 1px solid var(--tei-border); padding-bottom: 18px; }
    .tei-contents p { margin-bottom: 10px; }
    .tei-contents a { display: inline-block; margin: 5px 0 5px 16px; font-size: 12px; }
    .tei-contents-note { display: none; }
    .tei-lead-card { padding: 23px; margin-bottom: 35px; }
    .tei-lead-card p { font-size: 16px; }
    .tei-article-section h2 { font-size: 27px; }
    .tei-planner { padding: 23px; }
    .tei-plan-result { gap: 16px; }
    .tei-plan-result strong { font-size: 20px; }
    .tei-section-heading { display: block; }
    .tei-section-heading h2 { font-size: 30px; margin-bottom: 12px; }
    .tei-bento { grid-template-columns: 1fr; }
    .tei-bento-card, .tei-bento-card:first-child, .tei-bento-card:last-child { grid-column: auto; display: block; padding: 25px; }
    .tei-takeaways { padding-block: 40px; }
    .tei-source-row { align-items: start; gap: 18px; }
    .tei-source-row a { font-size: 12px; }
    .tei-sources { padding-bottom: 40px; }
    .tei-cta { padding-bottom: 45px; }
    .tei-cta-inner { padding: 35px 23px; }
    .tei-footer-grid { grid-template-columns: 1fr; gap: 22px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }


/* === BESPOKE STYLES: note-district-loop === */
:root {
    --tei-canvas: #fbfbfd;
    --tei-surface: #ffffff;
    --tei-text: #1d1d1f;
    --tei-muted: #62626b;
    --tei-border: #d2d2d7;
    --tei-brand: #0071e3;
    --tei-azure: #0284c7;
    --tei-deep: #0369a1;
    --tei-accent: #b45309;
    --tei-radius: 26px;
    --tei-shadow: 0 24px 70px -35px rgba(19, 64, 100, .25);
  }
  .tei-page, .site-header, .site-footer {
    direction: rtl;
    color: var(--tei-text);
    font-family: "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.85;
    background: var(--tei-canvas);
    -webkit-font-smoothing: antialiased;
  }
  .tei-page *, .site-header *, .site-footer * { box-sizing: border-box; }
  .tei-container { width: min(100% - 64px, 1240px); margin-inline: auto; }
  .tei-page a, .site-header a, .site-footer a { color: inherit; text-decoration: none; }
  .tei-page a:focus-visible, .site-header a:focus-visible, .site-footer a:focus-visible,
  .tei-page button:focus-visible, .tei-page input:focus-visible, .site-header summary:focus-visible {
    outline: 3px solid var(--tei-brand); outline-offset: 5px;
  }
  .tei-skip { position: absolute; inset-inline-start: 20px; top: -100px; padding: 10px 20px; background: white; z-index: 100; }
  .tei-skip:focus { top: 12px; }
  .site-header { position: sticky; top: 0; z-index: 30; background: rgba(251,251,253,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid rgba(29,29,31,.09); }
  .tei-header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
  .tei-brand { display: inline-flex; align-items: center; gap: 10px; direction: ltr; white-space: nowrap; font-size: 21px; font-weight: 750; letter-spacing: -.8px; }
  .tei-brand svg { width: 35px; height: 35px; color: var(--tei-brand); }
  .tei-desktop-nav { display: flex; align-items: center; gap: 27px; font-size: 14px; }
  .tei-desktop-nav a { color: var(--tei-muted); padding-block: 26px; }
  .tei-desktop-nav a:hover, .tei-desktop-nav .active { color: var(--tei-brand); }
  .tei-desktop-nav .active { box-shadow: inset 0 -2px var(--tei-brand); }
  .tei-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 23px; border-radius: 999px; background: var(--tei-brand); color: #fff !important; font-size: 14px; font-weight: 650; transition: transform .25s, box-shadow .25s; }
  .tei-button:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px rgba(0,113,227,.5); }
  .tei-button svg { width: 18px; height: 18px; }
  .tei-mobile-nav { display: none; }
  .tei-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 29px; color: var(--tei-muted); font-size: 12px; }
  .tei-breadcrumb a:hover { color: var(--tei-brand); }
  .tei-hero { padding: 55px 0 74px; overflow: hidden; background: radial-gradient(ellipse at 22% 45%, rgba(2,132,199,.08), transparent 58%); }
  .tei-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 64px; }
  .tei-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--tei-deep); font-size: 12px; font-weight: 700; }
  .tei-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tei-azure); box-shadow: 0 0 0 5px rgba(2,132,199,.09); animation: tei-pulse 4s infinite; }
  .tei-page h1, .tei-page h2, .tei-page h3 { font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, Arial, sans-serif; letter-spacing: -.025em; line-height: 1.4; }
  .tei-page h1 { font-size: clamp(40px, 4.8vw, 66px); margin: 19px 0 23px; font-weight: 750; }
  .tei-title-accent { color: var(--tei-brand); }
  .tei-hero-desc { font-size: 19px; color: var(--tei-muted); max-width: 540px; margin: 0 0 28px; }
  .tei-hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
  .tei-meta { font-size: 12px; padding: 5px 12px; border: 1px solid var(--tei-border); border-radius: 999px; background: rgba(255,255,255,.7); color: var(--tei-muted); }
  .tei-route { position: relative; border: 1px solid rgba(255,255,255,.95); border-radius: 32px; background: rgba(255,255,255,.76); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--tei-shadow), inset 0 0 0 1px rgba(0,0,0,.04); padding: 27px; margin: 0; animation: tei-float 8s ease-in-out infinite; }
  .tei-route-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
  .tei-route-top strong { display: block; font-size: 17px; }
  .tei-route-top span { font-size: 12px; color: var(--tei-muted); }
  .tei-route-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; border: 1px solid var(--tei-border); color: var(--tei-brand); }
  .tei-route-mark svg { width: 22px; height: 22px; }
  .tei-circuit { padding-block: 25px; }
  .tei-route-stop { display: grid; grid-template-columns: 36px 1fr auto; gap: 13px; position: relative; align-items: center; min-height: 76px; }
  .tei-route-stop:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 17px; top: 55px; height: 39px; border-inline-start: 1px dashed #91bdd8; }
  .tei-route-number { display: grid; place-items: center; height: 36px; width: 36px; border-radius: 50%; border: 1px solid #c5dae9; background: #fff; color: var(--tei-deep); font-size: 12px; }
  .tei-route-stop strong { font-size: 14px; display: block; }
  .tei-route-stop p { margin: 0; color: var(--tei-muted); font-size: 12px; }
  .tei-stop-tag { font-size: 11px; color: var(--tei-deep); }
  .tei-route-caption { border-top: 1px solid var(--tei-border); padding-top: 15px; color: var(--tei-muted); font-size: 12px; margin: 0; }
  .tei-index { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-block: 23px; border-top: 1px solid var(--tei-border); border-bottom: 1px solid var(--tei-border); font-size: 13px; }
  .tei-index strong { margin-inline-end: auto; }
  .tei-index a { color: var(--tei-muted); }
  .tei-index a:hover { color: var(--tei-brand); }
  .tei-editorial { padding-block: 70px; }
  .tei-lead { position: relative; padding: 34px 38px; border: 1px solid var(--tei-border); border-inline-start: 3px solid var(--tei-brand); border-radius: var(--tei-radius); background: var(--tei-surface); margin-bottom: 70px; overflow: hidden; }
  .tei-lead::before, .tei-planner::before { content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 1px; background: linear-gradient(90deg, transparent, var(--tei-azure), transparent); }
  .tei-label { color: var(--tei-deep); font-size: 12px; font-weight: 700; }
  .tei-lead p { margin: 12px 0 0; max-width: 980px; font-size: 19px; line-height: 2; }
  .tei-article-layout { display: grid; grid-template-columns: 210px 1fr; gap: 65px; }
  .tei-margin-note { color: var(--tei-muted); font-size: 12px; border-top: 1px solid var(--tei-border); padding-top: 18px; align-self: start; }
  .tei-margin-note strong { color: var(--tei-text); display: block; font-size: 14px; margin-bottom: 9px; }
  .tei-prose { max-width: 870px; }
  .tei-prose section { margin-bottom: 54px; scroll-margin-top: 115px; }
  .tei-prose h2 { font-size: clamp(25px, 3vw, 33px); margin: 0 0 20px; }
  .tei-prose p { margin: 0 0 18px; color: #4d4d56; font-size: 16px; line-height: 2.1; }
  .tei-prose ul { padding-inline-start: 23px; color: #4d4d56; line-height: 2.1; }
  .tei-prose li { padding-inline-start: 5px; margin-block: 8px; }
  .tei-table-wrap { overflow-x: auto; border: 1px solid var(--tei-border); border-radius: 20px; margin-block: 26px; background: #fff; }
  .data-table { width: 100%; border-collapse: collapse; min-width: 610px; text-align: start; font-size: 13px; }
  .data-table caption { text-align: start; padding: 18px 22px; font-weight: 700; color: var(--tei-deep); }
  .data-table th, .data-table td { text-align: start; padding: 17px 20px; border-top: 1px solid #e6e6eb; vertical-align: top; }
  .data-table th { color: var(--tei-text); font-weight: 650; }
  .data-table td { color: #55555e; }
  .tei-note { padding: 18px 23px; border: 1px solid var(--tei-border); border-radius: 16px; background: #fff; font-size: 13px !important; }
  .tei-planner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 45px; background: #fff; padding: 36px; border: 1px solid var(--tei-border); border-radius: var(--tei-radius); box-shadow: var(--tei-shadow); margin-bottom: 72px; }
  .tei-planner h2 { font-size: 27px; margin: 10px 0 13px; }
  .tei-planner p { color: var(--tei-muted); font-size: 14px; margin: 0 0 18px; }
  .tei-control-label { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; font-weight: 650; }
  .tei-range { width: 100%; accent-color: var(--tei-brand); margin: 25px 0; cursor: pointer; }
  .tei-result { padding-inline-start: 35px; border-inline-start: 1px solid var(--tei-border); display: flex; flex-direction: column; justify-content: center; }
  .tei-result-value { font-size: 49px; letter-spacing: -.04em; font-weight: 750; line-height: 1.2; color: var(--tei-brand); }
  .tei-result-value small { font-size: 16px; font-weight: 500; letter-spacing: 0; }
  .tei-result dl { margin: 20px 0 0; }
  .tei-result dl div { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; padding-block: 8px; }
  .tei-result dt { color: var(--tei-muted); }
  .tei-result dd { margin: 0; }
  .tei-takeaways { padding: 0 0 75px; }
  .tei-section-heading { font-size: 34px; margin: 0 0 26px; }
  .tei-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .tei-insight { padding: 30px; background: #fff; border: 1px solid var(--tei-border); border-radius: var(--tei-radius); grid-column: span 2; transition: transform .25s, box-shadow .25s; }
  .tei-insight:first-child { grid-column: span 4; }
  .tei-insight:last-child { grid-column: span 6; display: grid; grid-template-columns: 1fr 2fr; gap: 35px; align-items: start; }
  .tei-insight:hover { transform: translateY(-3px); box-shadow: var(--tei-shadow); }
  .tei-insight h3 { margin: 10px 0; font-size: 21px; }
  .tei-insight p { margin: 0; color: var(--tei-muted); font-size: 14px; }
  .tei-sources { border-top: 1px solid var(--tei-border); padding-block: 50px; }
  .tei-sources-intro { max-width: 780px; color: var(--tei-muted); font-size: 14px; }
  .tei-source-list { margin-top: 25px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
  .tei-source { padding-block: 18px; border-top: 1px solid var(--tei-border); }
  .tei-source a { font-weight: 650; font-size: 15px; }
  .tei-source a:hover { color: var(--tei-brand); }
  .tei-source p { font-size: 13px; color: var(--tei-muted); margin: 8px 0 0; }
  .tei-cta { padding-block: 35px 80px; }
  .tei-cta-inner { border: 1px solid var(--tei-border); border-radius: 30px; padding: 46px; background: radial-gradient(ellipse at 0% 0%, rgba(0,113,227,.07), transparent 65%), #fff; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
  .tei-cta h2 { font-size: 31px; margin: 0 0 10px; }
  .tei-cta p { margin: 0; color: var(--tei-muted); max-width: 660px; }
  .tei-cta .tei-button { flex-shrink: 0; }
  .site-footer { border-top: 1px solid var(--tei-border); padding-block: 50px 25px; }
  .tei-footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1.4fr; gap: 60px; }
  .tei-footer-grid h2 { font-size: 14px; margin: 0 0 15px; }
  .tei-footer-grid p, .tei-footer-grid address { font-size: 13px; color: var(--tei-muted); font-style: normal; }
  .tei-footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--tei-muted); }
  .tei-footer-grid a:hover, .tei-legal a:hover { color: var(--tei-brand); }
  .tei-contact-lines { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
  .tei-legal { margin-top: 35px; padding-top: 22px; border-top: 1px solid var(--tei-border); display: flex; flex-wrap: wrap; gap: 12px 23px; color: var(--tei-muted); font-size: 11px; }
  .tei-legal p { margin: 0; margin-inline-end: auto; }
  @keyframes tei-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  @keyframes tei-pulse { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
  @media (max-width: 1000px) {
    .tei-desktop-nav { gap: 17px; }
    .tei-header-inner { gap: 18px; }
    .tei-hero-grid { gap: 30px; }
    .tei-article-layout { grid-template-columns: 150px 1fr; gap: 35px; }
    .tei-footer-grid { gap: 30px; }
  }
  @media (max-width: 780px) {
    .tei-container { width: min(100% - 36px, 1240px); }
    .tei-header-inner { min-height: 72px; flex-wrap: wrap; padding-block: 13px; }
    .tei-desktop-nav, .tei-header-cta { display: none; }
    .tei-mobile-nav { display: block; position: relative; }
    .tei-mobile-nav summary { cursor: pointer; font-size: 13px; padding: 6px 15px; border: 1px solid var(--tei-border); border-radius: 999px; }
    .tei-mobile-links { position: absolute; top: 50px; inset-inline-end: 0; width: 235px; padding: 18px; display: flex; flex-direction: column; gap: 13px; background: #fff; border: 1px solid var(--tei-border); border-radius: 18px; box-shadow: var(--tei-shadow); }
    .tei-mobile-links [aria-current] { color: var(--tei-brand); }
    .tei-hero { padding-block: 36px 45px; }
    .tei-hero-grid, .tei-article-layout, .tei-planner, .tei-footer-grid { grid-template-columns: 1fr; }
    .tei-hero-grid { gap: 38px; }
    .tei-hero h1 { font-size: 43px; }
    .tei-margin-note { display: none; }
    .tei-lead { padding: 26px; margin-bottom: 42px; }
    .tei-lead p { font-size: 17px; }
    .tei-editorial { padding-block: 40px; }
    .tei-planner { padding: 26px; gap: 20px; }
    .tei-result { border-inline-start: 0; border-top: 1px solid var(--tei-border); padding: 25px 0 0; }
    .tei-bento, .tei-source-list { grid-template-columns: 1fr; }
    .tei-insight, .tei-insight:first-child, .tei-insight:last-child { grid-column: auto; display: block; }
    .tei-insight:last-child p { margin-top: 15px; }
    .tei-cta-inner { align-items: flex-start; flex-direction: column; padding: 28px; }
    .tei-cta h2 { font-size: 27px; }
    .tei-index { gap: 12px 19px; }
    .tei-index strong { width: 100%; }
    .tei-footer-grid { gap: 28px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .tei-page *, .site-header *, .site-footer * { animation: none !important; transition: none !important; }
  }


/* === BESPOKE STYLES: note-weather-timing === */
:root {
    --tei-canvas: #fbfbfd;
    --tei-surface: #ffffff;
    --tei-text: #1d1d1f;
    --tei-muted: #62626a;
    --tei-border: #d2d2d7;
    --tei-primary: #0071e3;
    --tei-azure: #0284c7;
    --tei-amber: #a85b00;
    --tei-radius: 26px;
    --tei-shadow: 0 24px 70px -36px rgba(22, 66, 100, .24);
  }

  *, *::before, *::after { box-sizing: border-box; }
  .site-header, .site-footer, #main-content {
    direction: rtl;
    color: var(--tei-text);
    font-family: "Inter", "Tahoma", "Arial", sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  .site-header a, .site-footer a, #main-content a { color: inherit; text-decoration: none; }
  .site-header button, #main-content button { font: inherit; }
  #main-content { background: var(--tei-canvas); overflow: clip; }
  .tei-container { width: min(100% - 64px, 1240px); margin-inline: auto; }
  .tei-skip {
    position: fixed; top: -100px; right: 20px; z-index: 100;
    background: white; padding: 14px 20px; border: 2px solid var(--tei-primary);
  }
  .tei-skip:focus { top: 12px; }
  :where(a, button, summary):focus-visible { outline: 3px solid var(--tei-primary); outline-offset: 5px; }
  .site-header {
    position: sticky; top: 0; z-index: 30;
    background: rgba(251,251,253,.9);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(29,29,31,.1);
  }
  .tei-header-inner { min-height: 84px; display: flex; align-items: center; gap: 32px; }
  .tei-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
  .tei-brand svg { width: 34px; height: 34px; color: var(--tei-primary); }
  .tei-wordmark { font-family: "Plus Jakarta Sans", sans-serif; font-size: 23px; font-weight: 750; letter-spacing: -.9px; }
  .tei-desktop-nav { display: flex; align-items: center; gap: 27px; margin-inline: auto; }
  .tei-nav-link { font-size: 14px; color: var(--tei-muted) !important; padding-block: 10px; }
  .tei-nav-link:hover, .tei-nav-link.active { color: var(--tei-primary) !important; }
  .tei-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 46px; padding: 11px 23px; border-radius: 999px;
    background: var(--tei-primary); color: #fff !important;
    font-size: 14px; font-weight: 700; border: 1px solid transparent;
    transition: transform .25s, box-shadow .25s, background .25s;
  }
  .tei-button:hover { background: #0064ca; transform: translateY(-3px); box-shadow: 0 10px 24px -12px #0071e3; }
  .tei-button svg { width: 18px; height: 18px; }
  .tei-mobile-menu { display: none; position: relative; }
  .tei-mobile-menu summary { list-style: none; cursor: pointer; padding: 10px; font-size: 14px; }
  .tei-mobile-menu summary::-webkit-details-marker { display: none; }
  .tei-mobile-links {
    position: absolute; inset-inline-end: 0; top: 48px; width: 240px;
    display: grid; padding: 18px; gap: 7px; background: white;
    border: 1px solid var(--tei-border); border-radius: 20px; box-shadow: var(--tei-shadow);
  }
  .tei-breadcrumb { padding-top: 28px; }
  .tei-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; color: var(--tei-muted); font-size: 12px; }
  .tei-breadcrumb li + li::before { content: "/"; margin-inline-end: 10px; color: #94949c; }
  .tei-breadcrumb a:hover { color: var(--tei-primary) !important; }
  .tei-hero { padding: 66px 0 58px; position: relative; }
  .tei-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 18% 40%, rgba(2,132,199,.09), transparent 60%);
  }
  .tei-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; position: relative; }
  .tei-eyebrow { display: block; font-size: 12px; font-weight: 700; color: #0064b9; margin-bottom: 20px; }
  .tei-hero h1 {
    font-family: "Plus Jakarta Sans", "Tahoma", sans-serif;
    font-size: clamp(44px, 5.2vw, 70px); line-height: 1.3;
    letter-spacing: -.035em; margin: 0 0 22px; font-weight: 750;
  }
  .tei-hero h1 span { color: var(--tei-primary); }
  .tei-hero-description { font-size: 19px; color: var(--tei-muted); line-height: 1.95; max-width: 570px; margin: 0 0 28px; }
  .tei-meta { display: flex; flex-wrap: wrap; gap: 10px; }
  .tei-meta span { border: 1px solid var(--tei-border); border-radius: 999px; padding: 7px 12px; font-size: 11px; background: rgba(255,255,255,.75); }
  .tei-view-card {
    position: relative; background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.95);
    outline: 1px solid rgba(29,29,31,.08); border-radius: 30px;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 28px; box-shadow: var(--tei-shadow);
  }
  .tei-view-card::before {
    content: ""; position: absolute; height: 1px; top: 0; inset-inline: 30px;
    background: linear-gradient(90deg, transparent, #7bc8ec, transparent);
  }
  .tei-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; }
  .tei-concept-label { color: var(--tei-muted); font-size: 11px; }
  .tei-status { display: inline-flex; align-items: center; gap: 7px; }
  .tei-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tei-azure); animation: tei-pulse 4s ease-in-out infinite; }
  .tei-light-study { padding: 36px 0 24px; }
  .tei-light-study strong { font-size: 32px; letter-spacing: -.03em; display: block; margin-bottom: 10px; }
  .tei-light-study p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--tei-muted); min-height: 80px; }
  .tei-spectrum { height: 8px; border-radius: 9px; background: linear-gradient(90deg, #9ac6e4, #e5f1f8 45%, #eacb97); margin: 24px 0 10px; }
  .tei-spectrum-labels { display: flex; justify-content: space-between; color: var(--tei-muted); font-size: 11px; }
  .tei-tabs { display: flex; gap: 5px; border: 1px solid #e3e3e8; padding: 5px; border-radius: 999px; margin-top: 25px; background: #f5f5f7; }
  .tei-tab {
    flex: 1; border: 0; background: transparent; color: var(--tei-muted);
    cursor: pointer; border-radius: 999px; padding: 10px 8px; font-size: 12px !important;
    transition: background .2s, color .2s;
  }
  .tei-tab[aria-selected="true"] { background: white; color: #0064b9; box-shadow: 0 2px 6px #0000000a; }
  .tei-view-note { margin: 16px 0 0; font-size: 11px; color: var(--tei-muted); line-height: 1.8; }
  .tei-editorial { padding: 24px 0 80px; }
  .tei-lead {
    display: grid; grid-template-columns: 220px 1fr; gap: 40px;
    padding: 35px 38px; background: white; border: 1px solid var(--tei-border);
    border-radius: var(--tei-radius); margin-bottom: 64px;
  }
  .tei-lead-title { margin: 0; font-size: 19px; line-height: 1.7; }
  .tei-lead-title span { display: block; color: var(--tei-primary); font-size: 12px; margin-bottom: 8px; }
  .tei-lead p { margin: 0; font-size: 17px; line-height: 2; }
  .tei-article-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 60px; }
  .tei-article-nav { align-self: start; position: sticky; top: 115px; }
  .tei-article-nav p { font-size: 12px; color: var(--tei-muted); margin: 0 0 20px; }
  .tei-article-nav a { display: block; padding: 12px 0; font-size: 13px; line-height: 1.8; border-bottom: 1px solid #e7e7eb; }
  .tei-article-nav a:hover { color: var(--tei-primary) !important; }
  .tei-prose section { margin-bottom: 50px; scroll-margin-top: 110px; }
  .tei-prose h2, .tei-section-title { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.025em; line-height: 1.55; margin: 0 0 20px; }
  .tei-prose p { color: #48484f; font-size: 16px; line-height: 2.1; margin: 0 0 18px; }
  .tei-prose ul { padding-inline-start: 22px; color: #48484f; line-height: 2.05; font-size: 15px; }
  .tei-prose li { padding-inline-start: 5px; margin-bottom: 8px; }
  .tei-callout { padding: 24px; border-inline-start: 3px solid var(--tei-primary); background: #fff; border-radius: 18px; margin-top: 24px; }
  .tei-callout strong { display: block; margin-bottom: 8px; font-size: 14px; }
  .tei-callout p { font-size: 14px; margin: 0; }
  .tei-table-wrap { overflow-x: auto; border: 1px solid var(--tei-border); border-radius: 22px; background: #fff; margin: 26px 0; }
  .tei-data-table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: right; font-size: 13px; line-height: 1.9; }
  .tei-data-table caption { text-align: right; padding: 20px; font-size: 15px; font-weight: 700; }
  .tei-data-table th, .tei-data-table td { padding: 17px 20px; vertical-align: top; border-top: 1px solid #e7e7eb; }
  .tei-data-table th { font-weight: 700; }
  .tei-data-table td { color: #515159; }
  .tei-takeaways { padding: 64px 0; border-top: 1px solid #e5e5e9; }
  .tei-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
  .tei-section-heading p { color: var(--tei-muted); font-size: 14px; margin: 0 0 7px; }
  .tei-bento { display: grid; grid-template-columns: repeat(6,1fr); gap: 20px; }
  .tei-takeaway { grid-column: span 2; padding: 30px; background: white; border: 1px solid var(--tei-border); border-radius: var(--tei-radius); transition: transform .25s, box-shadow .25s; }
  .tei-takeaway:first-child { grid-column: span 4; }
  .tei-takeaway:last-child { grid-column: span 6; display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: center; }
  .tei-takeaway:hover { transform: translateY(-3px); box-shadow: var(--tei-shadow); }
  .tei-takeaway h3 { font-size: 21px; margin: 0 0 12px; }
  .tei-takeaway p { margin: 0; font-size: 15px; line-height: 1.95; color: var(--tei-muted); }
  .tei-small-label { display: block; color: var(--tei-amber); font-size: 11px; font-weight: 700; margin-bottom: 14px; }
  .tei-sources { padding: 36px 0 70px; }
  .tei-source-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
  .tei-source {
    display: block; border: 1px solid var(--tei-border); padding: 24px;
    border-radius: 22px; background: white; transition: transform .25s, box-shadow .25s;
  }
  .tei-source:hover { transform: translateY(-3px); box-shadow: var(--tei-shadow); }
  .tei-source strong { display: block; font-size: 16px; margin-bottom: 12px; line-height: 1.7; }
  .tei-source p { font-size: 13px; line-height: 1.9; color: var(--tei-muted); margin: 0 0 18px; }
  .tei-source span { color: #0064b9; font-size: 12px; }
  .tei-source-note { font-size: 13px; color: var(--tei-muted); line-height: 2; margin: 22px 0 0; }
  .tei-source-note a { color: #0064b9 !important; text-decoration: underline !important; text-underline-offset: 4px; }
  .tei-cta { padding: 15px 0 80px; }
  .tei-cta-inner {
    padding: 48px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px;
    border-radius: 30px; border: 1px solid var(--tei-border);
    background: radial-gradient(ellipse at 0 0, rgba(0,113,227,.07), transparent 65%), #fff;
  }
  .tei-cta h2 { font-size: 32px; line-height: 1.5; margin: 0 0 12px; letter-spacing: -.025em; }
  .tei-cta p { margin: 0; max-width: 690px; font-size: 15px; color: var(--tei-muted); line-height: 1.95; }
  .site-footer { background: #f5f5f7; border-top: 1px solid #dedee3; padding: 54px 0 24px; }
  .tei-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 38px; }
  .tei-footer-intro { font-size: 13px; color: var(--tei-muted); line-height: 2; max-width: 290px; }
  .tei-footer-title { font-size: 13px; margin: 6px 0 19px; }
  .tei-footer-list { list-style: none; padding: 0; margin: 0; }
  .tei-footer-list li { font-size: 12px; color: #57575f; line-height: 1.9; margin-bottom: 10px; overflow-wrap: anywhere; }
  .tei-footer-list a:hover { color: var(--tei-primary); text-decoration: underline; }
  .tei-footer-address { font-style: normal; font-size: 12px; line-height: 2; color: #57575f; }
  .tei-footer-address a { display: block; margin-top: 9px; }
  .tei-footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid #dcdce1; }
  .tei-footer-bottom p { font-size: 11px; color: #62626a; line-height: 1.9; margin: 0 0 9px; }
  @keyframes tei-pulse { 0%,100% { opacity: .6; } 50% { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
  @media (max-width: 1050px) {
    .tei-desktop-nav { gap: 17px; }
    .tei-header-inner { gap: 20px; }
    .tei-hero-grid { gap: 35px; }
    .tei-article-layout { grid-template-columns: 180px minmax(0,1fr); gap: 35px; }
    .tei-footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 800px) {
    .tei-container { width: min(100% - 36px,1240px); }
    .tei-header-inner { min-height: 74px; gap: 12px; }
    .tei-desktop-nav { display: none; }
    .tei-mobile-menu { display: block; margin-inline-start: auto; }
    .tei-header-cta { font-size: 12px; padding: 10px 15px; min-height: 40px; }
    .tei-wordmark { font-size: 20px; }
    .tei-hero { padding-top: 40px; }
    .tei-hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .tei-hero h1 { font-size: 47px; }
    .tei-view-card { max-width: 560px; width: 100%; }
    .tei-lead { grid-template-columns: 1fr; gap: 16px; padding: 26px; margin-bottom: 42px; }
    .tei-article-layout { grid-template-columns: 1fr; gap: 30px; }
    .tei-article-nav { position: static; }
    .tei-article-nav a { display: inline-block; margin-inline-end: 18px; padding-block: 8px; }
    .tei-section-heading { display: block; }
    .tei-takeaway, .tei-takeaway:first-child, .tei-takeaway:last-child { grid-column: span 6; display: block; }
    .tei-takeaway:last-child h3 { margin-bottom: 12px; }
    .tei-source-grid { grid-template-columns: 1fr; }
    .tei-cta-inner { grid-template-columns: 1fr; padding: 30px; gap: 25px; }
    .tei-cta-inner .tei-button { justify-self: start; }
    .tei-footer-grid { gap: 30px 24px; }
  }
  @media (max-width: 430px) {
    .tei-header-inner { flex-wrap: wrap; padding-block: 12px; }
    .tei-brand svg { width: 28px; }
    .tei-header-cta { padding-inline: 12px; }
    .tei-mobile-menu summary { padding-inline: 3px; }
    .tei-hero h1 { font-size: 39px; }
    .tei-hero-description { font-size: 17px; }
    .tei-view-card { padding: 22px; }
    .tei-footer-grid { grid-template-columns: 1fr; }
  }


/* === BESPOKE STYLES: contact === */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;450;500;600;700&display=swap');

  :root {
    --tei-canvas: #fbfbfd;
    --tei-surface: #fff;
    --tei-ink: #1d1d1f;
    --tei-muted: #62626b;
    --tei-border: #d2d2d7;
    --tei-brand: #0071e3;
    --tei-azure: #0284c7;
    --tei-radius: 28px;
    --tei-font: "IBM Plex Sans Arabic", Arial, sans-serif;
  }

  .tei-page, .site-header, .site-footer, .tei-skip {
    font-family: var(--tei-font);
    direction: rtl;
    color: var(--tei-ink);
    box-sizing: border-box;
  }
  .tei-page *, .site-header *, .site-footer * { box-sizing: border-box; }
  .tei-page { background: var(--tei-canvas); overflow: clip; }
  .tei-page a, .site-header a, .site-footer a { color: inherit; text-decoration: none; }
  .tei-container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
  .tei-page h1, .tei-page h2, .tei-page h3, .tei-page p,
  .site-footer p { margin: 0; }
  .tei-page button, .tei-page input, .tei-page select, .tei-page textarea {
    font: inherit;
  }
  .tei-page a:focus-visible, .site-header a:focus-visible,
  .site-header summary:focus-visible, .site-footer a:focus-visible,
  .tei-page button:focus-visible {
    outline: 3px solid var(--tei-azure);
    outline-offset: 5px;
  }
  .tei-skip {
    position: absolute; top: -100px; right: 20px; z-index: 50;
    background: white; padding: 12px 20px; border-radius: 12px;
  }
  .tei-skip:focus { top: 12px; }

  .site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(251,251,253,.88);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(29,29,31,.09);
  }
  .tei-header-inner { display: flex; align-items: center; gap: 36px; min-height: 84px; }
  .tei-brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
  .tei-wordmark { font: 700 23px/1.2 Arial, sans-serif; letter-spacing: -1px; }
  .tei-logo { width: 36px; height: 36px; color: var(--tei-brand); }
  .tei-nav { display: flex; align-items: center; gap: 28px; margin-inline: auto; }
  .tei-nav a { font-size: 14px; color: #515159; transition: color .2s; }
  .tei-nav a:hover, .tei-nav .active { color: var(--tei-brand); }
  .tei-nav .active { position: relative; }
  .tei-nav .active::after {
    content: ""; position: absolute; bottom: -12px; inset-inline: 0;
    height: 2px; background: var(--tei-brand);
  }
  .tei-button {
    display: inline-flex; justify-content: center; align-items: center;
    gap: 12px; border: 1px solid transparent; border-radius: 100px;
    padding: 12px 23px; background: var(--tei-brand); color: #fff !important;
    font-weight: 500; font-size: 14px; min-height: 48px; cursor: pointer;
    transition: transform .25s, box-shadow .25s, background .25s;
  }
  .tei-button:hover { transform: translateY(-2px); background: #0064cb; box-shadow: 0 8px 22px #0071e326; }
  .tei-button svg { width: 18px; height: 18px; flex: none; }
  .tei-mobile { display: none; position: relative; margin-inline-start: auto; }
  .tei-mobile summary {
    list-style: none; cursor: pointer; padding: 10px 15px;
    border: 1px solid var(--tei-border); border-radius: 100px; font-size: 14px;
  }
  .tei-mobile summary::-webkit-details-marker { display: none; }
  .tei-mobile-links {
    position: absolute; top: 52px; inset-inline-end: 0; width: 220px;
    padding: 12px; background: white; border: 1px solid var(--tei-border);
    border-radius: 18px; box-shadow: 0 20px 40px #1d1d1f12;
  }
  .tei-mobile-links a { display: block; padding: 12px; border-radius: 8px; }
  .tei-mobile-links a:hover { background: #f5f5f7; }

  .tei-hero {
    position: relative; padding: 30px 0 62px;
    background: radial-gradient(ellipse at 18% 55%, #0284c70b, transparent 58%);
  }
  .tei-breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--tei-muted); }
  .tei-breadcrumb a:hover { color: var(--tei-brand); }
  .tei-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 65px; align-items: center; padding-top: 58px; }
  .tei-kicker { display: inline-block; color: #0369a1; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
  .tei-hero h1 { font-size: clamp(40px, 4.7vw, 65px); font-weight: 600; line-height: 1.27; letter-spacing: -.035em; }
  .tei-hero h1 span { color: var(--tei-brand); }
  .tei-lead { max-width: 560px; color: var(--tei-muted); font-size: 17px; line-height: 1.95; margin-top: 22px !important; }
  .tei-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 29px; }
  .tei-text-link { font-size: 14px; color: #005bb8 !important; border-bottom: 1px solid #0071e333; padding-bottom: 3px; }
  .tei-window {
    position: relative; padding: 27px; border: 1px solid #ffffff;
    border-radius: 30px; background: rgba(255,255,255,.7);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 25px 70px #254c7210, inset 0 1px 0 white;
    animation: tei-float 7s ease-in-out infinite;
  }
  .tei-window::before {
    content: ""; position: absolute; inset: -35px; z-index: -1;
    background: radial-gradient(ellipse, #0071e312, transparent 68%);
  }
  .tei-window-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--tei-muted); }
  .tei-status { display: inline-flex; gap: 7px; align-items: center; }
  .tei-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tei-azure); box-shadow: 0 0 0 4px #0284c70d; animation: tei-pulse 3s infinite; }
  .tei-window h2 { font-size: 32px; margin-top: 24px; font-weight: 500; }
  .tei-window p { color: var(--tei-muted); font-size: 14px; line-height: 1.9; margin-top: 9px; }
  .tei-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 25px 0 18px; }
  .tei-day { text-align: center; border-radius: 10px; background: #f5f5f7; padding: 12px 1px; color: #45454c; font-size: 10px; }
  .tei-day-off { color: #73737b; background: transparent; border: 1px solid #e8e8ed; }
  .tei-window-bottom { border-top: 1px solid #e5e5ea; padding-top: 16px; display: flex; justify-content: space-between; font-size: 12px; gap: 10px; }

  .tei-contact { padding: 22px 0 80px; }
  .tei-contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
  .tei-card { background: var(--tei-surface); border: 1px solid #dedee4; border-radius: var(--tei-radius); }
  .tei-office { padding: 33px; }
  .tei-section-label { color: var(--tei-muted); font-size: 12px; margin-bottom: 10px !important; }
  .tei-card h2 { font-size: 27px; font-weight: 600; letter-spacing: -.025em; }
  .tei-card-intro { color: var(--tei-muted); line-height: 1.8; font-size: 14px; margin-top: 10px !important; }
  .tei-details { margin: 26px 0 0; }
  .tei-detail { padding: 18px 0; border-bottom: 1px solid #ededf0; }
  .tei-detail:last-child { border-bottom: 0; }
  .tei-detail dt { color: var(--tei-muted); font-size: 12px; margin-bottom: 6px; }
  .tei-detail dd { margin: 0; font-size: 15px; line-height: 1.8; }
  .tei-detail a:hover { color: var(--tei-brand); }
  .tei-detail bdi { display: inline-block; overflow-wrap: anywhere; }
  .tei-office-note { margin-top: 20px; border-top: 1px solid #ededf0; padding-top: 20px; }
  .tei-office-note p { font-size: 12px; line-height: 1.9; color: var(--tei-muted); margin-bottom: 10px; }

  .tei-form-panel { position: relative; padding: 33px; overflow: hidden; }
  .tei-form-panel::before {
    content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
    background: linear-gradient(90deg, transparent, #0071e3, transparent);
  }
  .tei-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
  .tei-form-number { font-size: 12px; color: #73737b; border: 1px solid #e5e5ea; padding: 6px 12px; border-radius: 100px; white-space: nowrap; }
  .tei-form { display: grid; grid-template-columns: 1fr 1fr; gap: 21px 18px; margin-top: 27px; }
  .tei-field { min-width: 0; }
  .tei-field-full { grid-column: 1 / -1; }
  .tei-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
  .tei-optional { font-size: 11px; color: var(--tei-muted); font-weight: 400; }
  .tei-input {
    width: 100%; min-height: 51px; padding: 12px 14px; border: 1px solid #d2d2d7;
    border-radius: 12px; color: var(--tei-ink); background: #fdfdfe;
    transition: box-shadow .2s, border-color .2s;
  }
  .tei-input::placeholder { color: #73737b; opacity: 1; }
  .tei-input:focus { outline: none; border-color: var(--tei-brand); box-shadow: 0 0 0 4px #0071e312; }
  textarea.tei-input { resize: vertical; min-height: 132px; line-height: 1.8; }
  .tei-help { font-size: 11px; color: var(--tei-muted); line-height: 1.8; margin-top: 8px !important; }
  .tei-consent { display: flex; gap: 9px; align-items: flex-start; }
  .tei-consent input { accent-color: var(--tei-brand); width: 17px; height: 17px; flex: none; margin-top: 5px; }
  .tei-consent label { font-weight: 400; color: var(--tei-muted); font-size: 12px; line-height: 1.9; margin: 0; }
  .tei-consent a { text-decoration: underline; color: #005bb8; }
  .tei-submit { width: 100%; }
  .tei-feedback {
    margin-top: 20px; padding: 17px; background: #f5f9ff;
    border: 1px solid #cbdff5; border-radius: 14px; font-size: 13px; line-height: 1.9;
  }
  .tei-feedback[hidden] { display: none; }

  .tei-protocol { padding: 0 0 80px; }
  .tei-section-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 27px; }
  .tei-section-head h2 { font-size: 32px; font-weight: 600; letter-spacing: -.025em; }
  .tei-section-head > p { color: var(--tei-muted); font-size: 14px; max-width: 350px; line-height: 1.9; }
  .tei-protocol-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .tei-protocol-card { grid-column: span 2; padding: 28px; transition: transform .25s, box-shadow .25s; }
  .tei-protocol-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px #0000001a; }
  .tei-step { display: block; color: #0369a1; font-size: 12px; margin-bottom: 25px; }
  .tei-protocol-card h3 { font-size: 18px; font-weight: 500; margin-bottom: 10px; }
  .tei-protocol-card p { font-size: 13px; color: var(--tei-muted); line-height: 1.95; }

  .tei-sources { padding-bottom: 70px; }
  .tei-source-strip { border-top: 1px solid var(--tei-border); padding-top: 27px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
  .tei-source-strip h2 { font-size: 17px; font-weight: 500; }
  .tei-source-strip p { font-size: 12px; line-height: 1.9; color: var(--tei-muted); margin-top: 9px; }
  .tei-source-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 25px; }
  .tei-source-links a { font-size: 12px; color: #005bb8; padding-block: 8px; }
  .tei-source-links a:hover { text-decoration: underline; }

  .site-footer { background: #f5f5f7; border-top: 1px solid #e4e4e9; }
  .tei-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .7fr; gap: 55px; padding-block: 45px; }
  .tei-footer-description { color: var(--tei-muted); font-size: 13px; line-height: 1.9; margin-top: 16px !important; max-width: 310px; }
  .tei-footer-heading { margin: 0 0 16px; font-size: 13px; font-weight: 600; }
  .tei-footer-address { font-style: normal; color: #55555e; font-size: 12px; line-height: 2.2; }
  .tei-footer-address a { display: block; overflow-wrap: anywhere; }
  .tei-footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 12px; color: #55555e; }
  .site-footer a:hover { color: var(--tei-brand); }
  .tei-footer-bottom { border-top: 1px solid #dcdce1; padding-block: 22px; display: flex; justify-content: space-between; gap: 20px; color: #62626b; font-size: 11px; }
  .tei-legal { display: flex; flex-wrap: wrap; gap: 17px; }
  .tei-attribution { font-size: 10px; color: #62626b; line-height: 1.9; padding-bottom: 22px; }
  @keyframes tei-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  @keyframes tei-pulse { 0%,100% { opacity: .65; } 50% { opacity: 1; } }

  @media (max-width: 1000px) {
    .tei-header-inner { gap: 20px; }
    .tei-nav { gap: 19px; }
    .tei-hero-grid { gap: 35px; }
    .tei-office, .tei-form-panel { padding: 25px; }
    .tei-form { grid-template-columns: 1fr; }
    .tei-protocol-card { padding: 23px; }
  }
  @media (max-width: 760px) {
    .tei-container { width: calc(100% - 36px); }
    .tei-header-inner { min-height: 72px; gap: 12px; }
    .tei-nav, .tei-header-cta { display: none; }
    .tei-mobile { display: block; }
    .tei-wordmark { font-size: 21px; }
    .tei-hero { padding-top: 24px; padding-bottom: 36px; }
    .tei-hero-grid { grid-template-columns: 1fr; padding-top: 35px; gap: 36px; }
    .tei-hero h1 { font-size: clamp(37px, 8.5vw, 56px); }
    .tei-lead { font-size: 15px; }
    .tei-window { padding: 24px; animation: none; }
    .tei-contact-grid { grid-template-columns: 1fr; gap: 20px; }
    .tei-form-panel { grid-row: 1; }
    .tei-contact { padding-bottom: 52px; }
    .tei-section-head { display: block; }
    .tei-section-head h2 { font-size: 28px; }
    .tei-section-head > p { margin-top: 14px; }
    .tei-protocol-grid { grid-template-columns: 1fr; gap: 14px; }
    .tei-protocol-card { grid-column: auto; }
    .tei-step { margin-bottom: 15px; }
    .tei-protocol { padding-bottom: 50px; }
    .tei-source-strip { grid-template-columns: 1fr; gap: 15px; }
    .tei-sources { padding-bottom: 40px; }
    .tei-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .tei-footer-brand { grid-column: 1 / -1; }
    .tei-footer-bottom { flex-direction: column; }
  }
  @media (prefers-reduced-motion: reduce) {
    .tei-page *, .site-header * { animation: none !important; transition: none !important; }
  }
