/* ══════════════════════════════════════════════
   A11Y — touch targets (audit + WCAG 2.5.5)
══════════════════════════════════════════════ */
.touch-target,
.touch-target-scope .btn,
.touch-target-scope .navbar__link,
.touch-target-scope .navbar__dropdown-item,
.touch-target-scope a.btn,
.touch-target-scope button:not(.unstyled) {
  min-height: var(--touch-target, 44px);
  min-width: var(--touch-target, 44px);
}

.text-faint {
  color: var(--clr-text-faint);
}

/* ══════════════════════════════════════════════
   LAYOUT STRATEGY
══════════════════════════════════════════════ */
.section {
  padding-block: var(--sp-mobile-section);
  position: relative;
  z-index: var(--z-base);
}

.section-header {
  margin-bottom: var(--sp-12);
  max-width: 600px;
}
.section-header.text-center {
  margin-inline: auto;
  text-align: center;
}

/* ══════════════════════════════════════════════
   TYPOGRAPHY HELPERS
══════════════════════════════════════════════ */
.title { font-size: var(--fs-4xl); margin-bottom: var(--sp-4); }
.title--display { font-size: var(--fs-display); line-height: 1; letter-spacing: -0.03em; }
.desc { color: var(--clr-text-muted); font-size: var(--fs-lg); line-height: var(--lh-relaxed); max-width: 45ch; }
.desc.mx-auto { margin-inline: auto; }

/* WCAG AA copy on white / light-gray marketing surfaces */
.surface-light p,
.surface-light .desc,
.section--light .desc {
  color: var(--clr-gray-700);
}
.surface-light .surface-muted,
.section--light .surface-muted {
  color: var(--clr-gray-600);
}
/* Light-surface status pills — force dark label text (theme-midnight body is light gray) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow:
    0 10px 28px -8px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #0f172a;
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}
.status-pill span:not(.status-pill__dot) {
  color: #0f172a;
}
html.theme-midnight .section .status-pill span:not(.status-pill__dot) {
  color: #0f172a;
}

/* Premium Advisory Pill */
/* Advisory Badge — hover enhancement only (base = tokens.css). */
.advisory-badge:hover {
  background: rgba(16, 185, 129, 0.13);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.18);
  transform: translateY(-1px);
}
/* Photo overlay variant hover */
.home-about-badge .advisory-badge:hover {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255,255,255,1);
}
.status-pill__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clr-emerald);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: status-pill-pulse 2s ease infinite;
}
@keyframes status-pill-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}
.status-pill--on-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.95);
}
.status-pill--on-dark span {
  color: rgba(255, 255, 255, 0.95);
}

/* ═══════════════════════════════════════════════════════
   ENTITY FAQ — efaq-* BEM system (v1.2.2.8)
   Self-contained: no global .label dependency, no native
   browser summary marker artifacts.
═══════════════════════════════════════════════════════ */

/* ── Section shell ── */
.efaq-section {
  padding-block: clamp(5rem, 10vw, 8rem);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.efaq--dark {
  background: #030712; /* Deep solid premium black/dark gray background */
  color: #ffffff;
}
.efaq--light {
  background: #f8fafc;
  color: #0f172a;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

/* Decorative ambient light (dark only) */
.efaq--dark::before {
  content: '';
  position: absolute;
  top: 0; left: 25%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Split Grid Layout ── */
.efaq-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
}
@media (min-width: 992px) {
  .efaq-container {
    grid-template-columns: 340px 1fr;
    gap: var(--sp-16);
    align-items: start;
  }
  .efaq-sidebar__sticky {
    position: sticky;
    top: 120px;
  }
}

/* ── Left Column: Sticky Editorial Header ── */
.efaq-sidebar {
  text-align: left;
}
.efaq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.efaq--dark .efaq-eyebrow {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.efaq--light .efaq-eyebrow {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
}
.efaq-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: efaq-dot-pulse 2s ease infinite;
}
.efaq--dark  .efaq-eyebrow__dot { background: #38bdf8; box-shadow: 0 0 8px rgba(56, 189, 248, 0.7); }
.efaq--light .efaq-eyebrow__dot { background: #2563eb; box-shadow: 0 0 8px rgba(37, 99, 235, 0.5); }
@keyframes efaq-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.85); }
}
.efaq-eyebrow__text {
  font-family: var(--ff-mono, 'JetBrains Mono', monospace);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.efaq--dark  .efaq-eyebrow__text { color: #38bdf8; }
.efaq--light .efaq-eyebrow__text { color: #2563eb; }

.efaq-title {
  font-family: var(--ff-head, 'Sora', sans-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.efaq--dark  .efaq-title { color: #ffffff; }
.efaq--light .efaq-title { color: #0f172a; }

.efaq-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.efaq--dark  .efaq-desc { color: #94a3b8; }
.efaq--light .efaq-desc { color: #475569; }

.efaq-sidebar__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
}
.efaq--dark .efaq-sidebar__badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}
.efaq--light .efaq-sidebar__badge {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #475569;
}

/* ── Right Column: Floating Cards ── */
.efaq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.efaq-item {
  border-radius: 16px !important;
  outline: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.efaq--dark .efaq-item {
  background: rgba(17, 24, 39, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.efaq--light .efaq-item {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
}

/* Hover effects (closed only) */
.efaq-item:not([open]):hover {
  transform: translateY(-2px);
}
.efaq--dark .efaq-item:not([open]):hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(17, 24, 39, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.efaq--light .efaq-item:not([open]):hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

/* Active / Open state */
.efaq-item[open] {
  transform: translateY(-2px);
}
.efaq--dark .efaq-item[open] {
  border-color: #38bdf8;
  background: rgba(17, 24, 39, 0.7);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.15);
}
.efaq--light .efaq-item[open] {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.1);
}

/* ── Summary & Question text ── */
.efaq-item__q {
  list-style: none !important;
  list-style-type: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}
.efaq-item__q::-webkit-details-marker { display: none !important; }
.efaq-item__q::-moz-list-bullet       { display: none !important; }
.efaq-item__q::marker                 { display: none !important; content: '' !important; }

.efaq-item__q-text {
  font-family: var(--ff-head, 'Sora', sans-serif);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 700;
  line-height: 1.4;
  flex: 1;
}
.efaq--dark  .efaq-item__q { color: rgba(255, 255, 255, 0.95); }
.efaq--light .efaq-item__q { color: #0f172a; }
.efaq--dark  .efaq-item[open] .efaq-item__q { color: #38bdf8; }
.efaq--light .efaq-item[open] .efaq-item__q { color: #2563eb; }

/* ── Morphing Plus-to-Close Toggle ── */
.efaq-item__icon-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.efaq--dark .efaq-item__icon-wrap {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}
.efaq--light .efaq-item__icon-wrap {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

/* Toggle morph lines */
.efaq-icon-line {
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease;
}
.efaq-icon-line--h {
  width: 12px;
  height: 2px;
}
.efaq-icon-line--v {
  width: 2px;
  height: 12px;
}

/* Open transitions */
.efaq-item[open] .efaq-item__icon-wrap {
  transform: rotate(135deg); /* Plus turns to Cross */
}
.efaq--dark .efaq-item[open] .efaq-item__icon-wrap {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #030712;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}
.efaq--light .efaq-item[open] .efaq-item__icon-wrap {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

/* ── Answer details body ── */
.efaq-item__a {
  padding: 0 1.75rem 1.5rem;
  animation: efaq-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.efaq-item__a p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}
.efaq--dark  .efaq-item__a p { color: #94a3b8; }
.efaq--light .efaq-item__a p { color: #475569; }

@keyframes efaq-slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive responsive margins */
@media (max-width: 640px) {
  .efaq-item__q { padding: 1.25rem 1.5rem; gap: 1rem; }
  .efaq-item__a { padding: 0 1.25rem 1.25rem; }
}


.text-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-4);
}
.label::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-accent-primary);
  box-shadow: 0 0 10px var(--clr-accent-primary);
}

/* ══════════════════════════════════════════════
   FLOATING NAVBAR
══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   FLOATING NAVBAR
══════════════════════════════════════════════ */
.navbar-wrapper {
  position: fixed;
  top: var(--sp-6);
  left: 0; right: 0;
  z-index: var(--z-sticky);
  pointer-events: none;
  display: flex;
  justify-content: center;
  padding-inline: var(--sp-4);
  transition: top 0.3s ease;
}

.navbar-wrapper.is-scrolled {
  top: max(8px, env(safe-area-inset-top, 0px));
}

/* Site chrome must never wait on scroll-reveal */
.navbar-wrapper .navbar.reveal-zoom {
  opacity: 1;
  transform: scale(1);
}

.navbar {
  pointer-events: auto;
  background: rgba(5, 5, 10, 0.55);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-full);
  padding: 6px 8px 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 1120px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.4),
    0 1px 0 rgba(255,255,255,0.06) inset;
  transition: box-shadow 0.4s ease, background 0.3s ease, transform 0.3s ease;
  position: relative;
  /* Removal of overflow:hidden to allow dropdown menu visibility */
  overflow: visible;
}

.navbar-wrapper.is-scrolled .navbar {
  background: rgba(5, 5, 10, 0.82);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(0);
}

/* Dark mode navbar overrides via body classes if required, or contextual nesting */
.mode-dark .navbar {
  background: rgba(10, 10, 10, 0.6);
  border-color: var(--glass-border-light);
}
.mode-dark .navbar__link { color: var(--clr-text); }
.mode-dark .navbar__link:hover { color: var(--clr-white); }

.navbar__brand {
  font-family: var(--ff-head);
  font-size: var(--fs-lg);
  font-weight: var(--fw-extrabold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 44px;
  text-decoration: none;
  color: var(--clr-white);
  flex-shrink: 0;
}

/* Nav menu — desktop link row */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
  flex: 1;          /* take available space between brand and actions */
  justify-content: center;
  /* Removal of overflow:hidden to allow premium shadows on the pill */
  overflow: visible !important;
}

.navbar__link {
  padding: 8px 16px; /* Slightly more padding for luxury feel */
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  border-radius: var(--r-full);
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
  text-decoration: none !important;
  white-space: nowrap;
}
.navbar__link:hover { color: var(--clr-white); }
.navbar__link.active { 
  color: var(--clr-white); 
  border: none !important;
}

/* Magnetic Floating Pill — EXPERT LEVEL UPGRADE */
.navbar__pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.1); 
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-full);
  z-index: 1;
  pointer-events: none;
  transition: 
    width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translate(0px, 0px) scale(0.9);
  left: 0;
  top: 0;
  transform-origin: center;
}

/* Actions: search + CTA + mobile toggle */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0; /* never let it shrink or wrap */
}

/* Search button */
.navbar__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.navbar__search-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

/* Physical key badge */
.navbar__kbd {
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 5px;
  color: rgba(255,255,255,0.55);
}

/* Mobile Hamburger & Drawer (hidden desktop) */
.navbar__drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-base);
}
.navbar__drawer-overlay.active { opacity: 1; pointer-events: auto; }

.navbar__drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(85vw, 400px);
  background: var(--clr-bg);
  z-index: 10001;
  padding: var(--sp-8) var(--sp-6);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  border-left: 1px solid var(--clr-border);
}
.navbar__drawer.active { transform: translateX(0); }

.navbar__drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.navbar__drawer-brand {
  color: var(--clr-heading);
  margin: 0;
}
.navbar__drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  border-style: solid;
}
.navbar__drawer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.navbar__drawer .navbar__link {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 48px;
  padding: 12px 16px;
  white-space: normal;
  text-transform: none;
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 12px;
  color: var(--clr-heading);
}
.navbar__drawer .navbar__link:hover,
.navbar__drawer .navbar__link.active {
  background: rgba(59, 130, 246, 0.08);
  color: var(--clr-accent-primary);
}
.navbar__drawer-section-label {
  padding: var(--sp-3) 16px var(--sp-1);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent-primary);
  opacity: 0.7;
}
.navbar__drawer-footer {
  margin-top: auto;
  padding-top: var(--sp-4);
  flex-shrink: 0;
}
.navbar__drawer-cta {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

/* Mobile hamburger (hidden by default) */
.navbar__toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  transition: background 0.2s, transform 0.25s ease;
}
.navbar__toggle:hover { background: rgba(255,255,255,0.07); }
.navbar__toggle[aria-expanded="true"] {
  transform: rotate(90deg);
  color: #fff;
}

@media (max-width: 1024px) {
  .navbar__menu { display: none !important; }
  .navbar__toggle { display: flex !important; align-items: center !important; }
  .navbar__cta-btn { display: none !important; }
  /* BRAND PROTECTION */
.footer__logo, .footer__logo-faint { 
  color: #FFFFFF !important; 
  opacity: 1 !important; 
  display: block; 
  transition: opacity 0.3s ease;
  filter: brightness(0) invert(1) !important; /* Forces black SVG paths to pure white */
}
.footer__logo-faint { opacity: 0.4 !important; }
  .navbar { padding-right: 8px !important; }
}

@media (max-width: 480px) {
  .navbar__kbd { display: none; }
  .navbar__search-btn { padding: 8px; }
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  font-family: var(--ff-sans);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
  line-height: 1;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: var(--clr-white);
  text-decoration: none;
  box-shadow: 
    0 10px 25px -5px rgba(37, 99, 235, 0.4),
    0 8px 10px -6px rgba(37, 99, 235, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.2); /* Top inner highlight */
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.btn-primary:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
      0 20px 35px -8px rgba(37, 99, 235, 0.5),
      0 0 20px rgba(37, 99, 235, 0.3); /* Ambient Blue Glow */
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  }

  .btn-primary:hover::before { left: 100%; }
}

/* ELITE: Luminous Pulse Button */
.btn-luminous {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: var(--clr-white);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--r-full);
  box-shadow: 
    0 4px 15px rgba(37, 99, 235, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

@media (hover: hover) and (pointer: fine) {
  .btn-luminous:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
      0 12px 30px rgba(37, 99, 235, 0.5),
      0 0 20px rgba(59, 130, 246, 0.4);
  }
}

.btn-luminous::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, transparent 100%);
  opacity: 0.3;
}

.btn-luminous:active {
  transform: scale(0.96);
}

.btn-outline {
  background: transparent;
  color: var(--clr-heading);
  border: 1px solid var(--clr-border);
}
.btn-outline:hover {
  background: var(--clr-surface);
  border-color: var(--clr-text-muted);
}
.mode-dark .btn-outline { color: var(--clr-white); }
.mode-dark .btn-outline:hover { background: rgba(255,255,255,0.05); }

/* ══════════════════════════════════════════════
   BENTO GRID SYSTEM
══════════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-4);
  grid-auto-rows: minmax(280px, auto);
}

.bento-item {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: var(--sp-8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-spring), box-shadow var(--t-base);
  box-shadow: var(--shadow-sm);
  /* 3D Depth Setup */
  transform-style: preserve-3d;
  perspective: 1000px;
}

.mode-dark .bento-item {
  background: var(--clr-bg-alt);
}

@media (hover: hover) and (pointer: fine) {
  .bento-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-border-glow);
  }
}

/* Full-Range Grid Utilites — ESSENTIAL FOR WORLD CLASS DESKTOP */
.col-span-1  { grid-column: span 1; }
.col-span-2  { grid-column: span 2; }
.col-span-3  { grid-column: span 3; }
.col-span-4  { grid-column: span 4; }
.col-span-5  { grid-column: span 5; }
.col-span-6  { grid-column: span 6; }
.col-span-7  { grid-column: span 7; }
.col-span-8  { grid-column: span 8; }
.col-span-9  { grid-column: span 9; }
.col-span-10 { grid-column: span 10; }
.col-span-11 { grid-column: span 11; }
.col-span-12 { grid-column: span 12; }

/* ══════════════════════════════════════════════
   HERO COMPONENTS
══════════════════════════════════════════════ */
.hero-stats-grid {
  display: flex;
  gap: var(--sp-8);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-6);
  margin-top: var(--sp-12);
}

.hero-stat-item {
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .col-span-8 { grid-column: span 12; }
  .col-span-4 { grid-column: span 6; }
}
@media (max-width: 768px) {
  .col-span-6, .col-span-4 { grid-column: span 12; }
}

/* ══════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════ */
.form-group { margin-bottom: var(--sp-4); }
.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-2);
  color: var(--clr-heading);
}
.form-control {
  width: 100%;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  color: var(--clr-text);
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  transition: all var(--t-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--clr-accent-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ══════════════════════════════════════════════
   ELITE FORMS (Premium Tech Aesthetic)
   ══════════════════════════════════════════════ */
.luxury-form-group {
  margin-bottom: var(--sp-6);
  position: relative;
}

.luxury-form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-gray-500);
  margin-bottom: var(--sp-3);
  transition: color var(--t-fast);
}

.luxury-form-control {
  width: 100%;
  background: var(--clr-gray-50);
  border: 1px solid var(--clr-gray-200);
  padding: 14px 18px;
  border-radius: 14px;
  color: var(--clr-gray-900);
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.luxury-form-control:hover {
  border-color: var(--clr-gray-400);
  background: #fff;
}

.luxury-form-control:focus {
  outline: none;
  background: #fff;
  border-color: var(--clr-accent-primary);
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.1),
    0 8px 20px -5px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

/* Custom Select Dropdown */
select.luxury-form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px;
  padding-right: 48px;
}

.luxury-form-group:focus-within .luxury-form-label {
  color: var(--clr-accent-primary);
}

/* Footer layout rules */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   CASE STUDY EDITORIAL TYPOGRAPHY & CARDS
══════════════════════════════════════════════ */
.article-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--clr-heading);
  letter-spacing: -0.02em;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--clr-heading);
}

.article-body p { margin-bottom: 1.5rem; }

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

.article-body pre {
  background: var(--clr-bg-alt);
  padding: 1.5rem;
  border-radius: var(--r-xl);
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--clr-border);
}

.article-body code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875em;
  color: var(--clr-accent-violet);
}

.article-body blockquote {
  border-left: 4px solid var(--clr-accent-primary);
  padding: 1.5rem;
  margin: 2rem 0;
  background: rgba(16,185,129,0.03);
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
  color: var(--clr-text);
  font-style: italic;
  font-size: 1.125rem;
}

/* Base Link Reset for Related Cards */
.related-case-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.2s ease, box-shadow 0.4s ease;
}

.related-case-card:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .related-case-card:hover {
    transform: translateY(-4px);
    border-color: var(--clr-border-hover);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.2);
  }
}

/* ══════════════════════════════════════════════
   COOKIE BANNER & ALERTS
══════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 600px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner--visible {
  bottom: calc(20px + env(safe-area-inset-bottom));
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner__text {
  flex: 1;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
}

.btn-cookie {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-cookie--outline {
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
}

.btn-cookie--primary {
  border: none;
  background: #3B82F6;
  color: #fff;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.btn-cookie:active {
  transform: scale(0.96);
}

/* BRAND PROTECTION */
.navbar__logo, .footer__logo, .footer__logo-faint { 
  color: #FFFFFF !important; 
  opacity: 1 !important; 
  display: block; 
  visibility: visible !important;
  transition: opacity 0.3s ease;
  filter: brightness(0) invert(1) !important;
}
.footer__logo-faint { opacity: 0.4 !important; }
/* ------------------------------------------------------------------
   Sovereign Porter Studio � Edit Mode (v1.0.19.16)
   All classes prefixed .porter-* or .block-* � zero frontend bleed.
   ------------------------------------------------------------------ */

/* Layout */
.porter-edit-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
@media (max-width: 1100px) { .porter-edit-grid { grid-template-columns: 1fr; } }
.porter-edit-left, .porter-edit-right { display: flex; flex-direction: column; gap: 1.5rem; }
.porter-edit-right { position: sticky; top: 2rem; }

/* EasyMDE dark override */
.EasyMDEContainer { border: 1px solid rgba(255,255,255,0.08) !important; border-radius: 16px !important; overflow: hidden !important; }
.EasyMDEContainer .CodeMirror { background: #0a0a0f !important; color: #e2e8f0 !important; border: none !important; font-size: 14px !important; line-height: 1.7 !important; min-height: 420px !important; }
.EasyMDEContainer .editor-toolbar { background: rgba(255,255,255,0.03) !important; border-color: rgba(255,255,255,0.08) !important; }
.EasyMDEContainer .editor-toolbar button { color: rgba(255,255,255,0.6) !important; }
.EasyMDEContainer .editor-toolbar button:hover, .EasyMDEContainer .editor-toolbar button.active { background: rgba(99,102,241,0.2) !important; border-color: rgba(99,102,241,0.4) !important; color: #6366f1 !important; }
.EasyMDEContainer .editor-statusbar { background: rgba(255,255,255,0.02) !important; color: rgba(255,255,255,0.3) !important; border-color: rgba(255,255,255,0.05) !important; }
.editor-preview { background: #0d0d14 !important; color: #e2e8f0 !important; }

/* Block Palette */
.block-palette { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1rem 1.25rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; }
.block-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.2); border-radius: 8px; color: #a5b4fc; font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: all 0.2s; letter-spacing: 0.03em; }
.block-btn:hover { background: rgba(99,102,241,0.2); border-color: rgba(99,102,241,0.5); color: #818cf8; transform: translateY(-1px); }

/* Preview pane */
.porter-preview-pane { display: none; background: #0d0d14; border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 2rem; min-height: 300px; max-height: 600px; overflow-y: auto; color: #e2e8f0; font-size: 0.9375rem; line-height: 1.8; }
.porter-preview-toggle { display: flex; gap: 0; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; width: fit-content; }
.porter-preview-btn { padding: 8px 18px; background: transparent; border: none; color: rgba(255,255,255,0.4); font-size: 0.8125rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.porter-preview-btn.active { background: rgba(99,102,241,0.2); color: #a5b4fc; }

/* Field helpers */
.porter-lock-badge { display: block; font-size: 0.7rem; font-family: monospace; color: #f59e0b; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); border-radius: 6px; padding: 3px 10px; margin-top: 4px; }
.porter-fm-label { font-size: 0.6875rem; font-weight: 800; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; display: block; }
.porter-autosave { font-size: 0.75rem; font-family: monospace; color: rgba(255,255,255,0.3); transition: color 0.3s; }
.porter-autosave.saved { color: #10b981; }
.porter-autosave.unsaved { color: #f59e0b; }
.porter-img-preview { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); margin-bottom: 0.75rem; }

/* Homepage About Image Aspect Ratio Alignment (Premium) */
.home-about-img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

/* Diagram lightbox — global guard (detail-shared.css not on hub pages) */
.ds-diagram-lightbox:not(.is-open) {
  display: none !important;
}
.ds-diagram-lightbox-hint,
.ds-diagram-lightbox-meta {
  display: none !important;
}

/* ── Accessibility — WCAG AA focus + contrast guards (v1.3.0.0) ── */
:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 3px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}
.skip-to-content:focus-visible {
  outline: 3px solid #FBBF24;
  outline-offset: 2px;
}
/* Ensure muted labels stay AA on light surfaces */
.surface-light .muted,
.surface-light .text-muted,
.section--light .an-text-muted {
  color: #475569;
}
/* Cert filter chips — keyboard focus */
.cert-filter:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}
.cert-card:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 4px;
}

