/* AIPT Ember — generated bundle (fonts.css + main.css + v2.css). Edit the source files, not this file. */

/* ==== assets/css/fonts.css ==== */
/* Self-hosted Google Fonts (SIL Open Font License 1.1), latin subset, variable weight. */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url('../fonts/inter-latin-var.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url('../fonts/plus-jakarta-sans-latin-var.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* Newsreader is requested only when an element uses it ([data-font=serif]). */
@font-face{font-family:'Newsreader';font-style:normal;font-weight:500 800;font-display:swap;src:url('../fonts/newsreader-latin-var.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}


/* ==== assets/css/main.css ==== */
/* ═══════════════════════════════════════════════════════════
   AIPT EMBER — main.css
   Mobile-first · Light/dark adaptive · CSS custom properties
   ═══════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────
   1. CUSTOM PROPERTIES — LIGHT MODE DEFAULT
───────────────────────────────────────── */
:root {
  /* Palette */
  --c-bg:           #FAFAF9;
  --c-surface:      #FFFFFF;
  --c-surface-2:    #F5F4F2;
  --c-surface-3:    #EDE9E4;
  --c-border:       #E7E5E4;
  --c-border-soft:  #F0EDEA;
  --c-text:         #1C1917;
  --c-text-muted:   #78716C;
  --c-text-subtle:  #A8A29E;
  --c-accent:       #F59E0B;
  --c-accent-hover: #D97706;
  --c-accent-dim:   rgba(245,158,11,0.12);
  --c-accent-text:  #92400E;
  --c-overlay:      rgba(28,25,23,0.6);

  /* Category badge colours */
  --c-badge-news:        #0EA5E9;
  --c-badge-tools:       #10B981;
  --c-badge-technical:   #8B5CF6;
  --c-badge-prompt:      #EC4899;
  --c-badge-integration: #F97316;
  --c-badge-knowledge:   #06B6D4;
  --c-badge-religious:   #84CC16;
  --c-badge-default:     #6B7280;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Fluid type scale — clamp(min, preferred, max) */
  --text-xs:   clamp(0.72rem,  0.68rem + 0.2vw,  0.8rem);
  --text-sm:   clamp(0.875rem, 0.82rem + 0.28vw, 0.95rem);
  --text-base: clamp(1rem,     0.96rem + 0.2vw,  1.05rem);
  --text-lg:   clamp(1.1rem,   1rem    + 0.5vw,  1.25rem);
  --text-xl:   clamp(1.25rem,  1.1rem  + 0.75vw, 1.5rem);
  --text-2xl:  clamp(1.5rem,   1.25rem + 1.25vw, 2rem);
  --text-3xl:  clamp(1.875rem, 1.5rem  + 1.875vw,2.5rem);
  --text-4xl:  clamp(2.25rem,  1.75rem + 2.5vw,  3.5rem);
  --text-5xl:  clamp(3rem,     2rem    + 5vw,    5rem);

  /* Spacing tokens */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-7:  1.75rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --container:    1280px;
  --container-md: 900px;
  --container-sm: 680px;
  --gutter:       clamp(1rem, 4vw, 2rem);

  /* Radii */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-2xl:  24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 8px -2px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 24px -4px rgba(0,0,0,0.09), 0 4px 8px -2px rgba(0,0,0,0.04);
  --shadow-xl:  0 24px 40px -8px rgba(0,0,0,0.1),  0 8px 16px -4px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 16px 32px -6px rgba(245,158,11,0.15), 0 6px 12px -3px rgba(0,0,0,0.06);

  /* Transitions */
  --ease-fast:   150ms cubic-bezier(0.4,0,0.2,1);
  --ease-base:   250ms cubic-bezier(0.4,0,0.2,1);
  --ease-slow:   400ms cubic-bezier(0.4,0,0.2,1);
  --ease-spring: 500ms cubic-bezier(0.34,1.56,0.64,1);

  /* Header */
  --header-h: 64px;
}


/* ─────────────────────────────────────────
   2. DARK MODE OVERRIDES
───────────────────────────────────────── */
[data-theme="dark"] {
  --c-bg:           #1C1917;
  --c-surface:      #292524;
  --c-surface-2:    #332F2D;
  --c-surface-3:    #3D3836;
  --c-border:       #44403C;
  --c-border-soft:  #3A3633;
  --c-text:         #FAFAF9;
  --c-text-muted:   #A8A29E;
  --c-text-subtle:  #78716C;
  --c-accent:       #FBBF24;
  --c-accent-hover: #F59E0B;
  --c-accent-dim:   rgba(251,191,36,0.1);
  --c-accent-text:  #FBBF24;
  --c-overlay:      rgba(0,0,0,0.75);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.35);
  --shadow-md:  0 4px 8px -2px rgba(0,0,0,0.5), 0 2px 4px -1px rgba(0,0,0,0.3);
  --shadow-lg:  0 12px 24px -4px rgba(0,0,0,0.6), 0 4px 8px -2px rgba(0,0,0,0.35);
  --shadow-xl:  0 24px 40px -8px rgba(0,0,0,0.7), 0 8px 16px -4px rgba(0,0,0,0.4);
  --shadow-card-hover: 0 16px 32px -6px rgba(251,191,36,0.12), 0 6px 12px -3px rgba(0,0,0,0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg:           #1C1917;
    --c-surface:      #292524;
    --c-surface-2:    #332F2D;
    --c-surface-3:    #3D3836;
    --c-border:       #44403C;
    --c-border-soft:  #3A3633;
    --c-text:         #FAFAF9;
    --c-text-muted:   #A8A29E;
    --c-text-subtle:  #78716C;
    --c-accent:       #FBBF24;
    --c-accent-hover: #F59E0B;
    --c-accent-dim:   rgba(251,191,36,0.1);
    --c-accent-text:  #FBBF24;
    --c-overlay:      rgba(0,0,0,0.75);
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.35);
    --shadow-md:  0 4px 8px -2px rgba(0,0,0,0.5), 0 2px 4px -1px rgba(0,0,0,0.3);
    --shadow-lg:  0 12px 24px -4px rgba(0,0,0,0.6), 0 4px 8px -2px rgba(0,0,0,0.35);
    --shadow-xl:  0 24px 40px -8px rgba(0,0,0,0.7), 0 8px 16px -4px rgba(0,0,0,0.4);
    --shadow-card-hover: 0 16px 32px -6px rgba(251,191,36,0.12), 0 6px 12px -3px rgba(0,0,0,0.4);
  }
}


/* ─────────────────────────────────────────
   3. RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-bg);
  transition: background-color var(--ease-slow), color var(--ease-slow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--c-text);
  font-weight: 700;
}
p { color: var(--c-text-muted); }
strong { color: var(--c-text); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection {
  background: var(--c-accent-dim);
  color: var(--c-text);
}

/* Scrollbar — subtle */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-subtle); }


/* ─────────────────────────────────────────
   4. LAYOUT UTILITIES
───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--md { max-width: var(--container-md); }
.container--sm { max-width: var(--container-sm); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ─────────────────────────────────────────
   5. ANIMATIONS & KEYFRAMES
───────────────────────────────────────── */
@keyframes hero-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes float-orb-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-50px, 20px) scale(1.08); }
  66%       { transform: translate(30px, -40px) scale(0.93); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slide-right {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* Scroll-reveal base states */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--ease-slow), transform var(--ease-slow);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity var(--ease-slow);
}
.reveal-fade.is-visible { opacity: 1; }

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--ease-slow), transform var(--ease-slow);
}
.stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }
.stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}


/* ─────────────────────────────────────────
   6. HEADER
───────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color var(--ease-base),
              box-shadow var(--ease-base),
              backdrop-filter var(--ease-base);
}

/* Transparent on homepage hero, solid on inner pages */
.is-front-page .site-header {
  background: transparent;
}
.is-front-page .site-header.scrolled,
.site-header.scrolled {
  background: color-mix(in srgb, var(--c-surface) 90%, transparent);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  box-shadow: 0 1px 0 var(--c-border);
}
:not(.is-front-page) .site-header {
  background: color-mix(in srgb, var(--c-surface) 95%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  width: 100%;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--c-text);
  text-decoration: none;
  transition: opacity var(--ease-fast);
}
.site-logo:hover { opacity: 0.8; }

.site-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.site-logo .logo-name {
  font-size: var(--text-lg);
  font-weight: 800;
}
.site-logo .logo-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--c-text-muted);
  letter-spacing: 0.05em;
}

/* Primary nav */
.primary-nav {
  display: none;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
}
@media (min-width: 1024px) { .primary-nav { display: flex; } }

.primary-nav > ul,
.primary-nav .menu {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.primary-nav .menu-item > a {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  border-radius: var(--r-md);
  transition: color var(--ease-fast), background-color var(--ease-fast);
  white-space: nowrap;
}
.primary-nav .menu-item > a:hover,
.primary-nav .menu-item.current-menu-item > a,
.primary-nav .menu-item.current-menu-ancestor > a {
  color: var(--c-text);
  background: var(--c-surface-2);
}

/* Dropdown */
.primary-nav .menu-item-has-children {
  position: relative;
}
.primary-nav .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
  transition: transform var(--ease-fast);
}
.primary-nav .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + var(--sp-2));
  left: 0;
  min-width: 200px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--ease-base), transform var(--ease-base), visibility var(--ease-base);
  z-index: 50;
}
/* Invisible hover bridge: covers the gap between item and panel so the
   dropdown survives the mouse travelling down into it. */
.primary-nav .sub-menu::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--sp-2) - 2px);
  left: 0; right: 0;
  height: calc(var(--sp-2) + 2px);
}
/* Grace period: keep the panel open ~250ms after hover leaves, so small
   diagonal mouse movements don't slam it shut. */
.primary-nav .sub-menu {
  transition-delay: 0.25s;
}
.primary-nav .menu-item-has-children:hover .sub-menu,
.primary-nav .menu-item-has-children:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.primary-nav .sub-menu .menu-item a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  border-radius: var(--r-md);
  transition: color var(--ease-fast), background-color var(--ease-fast);
}
.primary-nav .sub-menu .menu-item a:hover {
  color: var(--c-text);
  background: var(--c-surface-2);
}

/* Header actions (right side) */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: auto;
}

/* Search toggle */
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  color: var(--c-text-muted);
  transition: color var(--ease-fast), background-color var(--ease-fast);
}
.search-toggle:hover {
  color: var(--c-text);
  background: var(--c-surface-2);
}
.search-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* Dark mode toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  color: var(--c-text-muted);
  transition: color var(--ease-fast), background-color var(--ease-fast);
}
.theme-toggle:hover {
  color: var(--c-accent);
  background: var(--c-accent-dim);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hamburger */
.menu-toggle {
  display: flex;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  padding: 8px;
  color: var(--c-text-muted);
  transition: color var(--ease-fast), background-color var(--ease-fast);
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.menu-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: var(--r-full);
  transition: transform var(--ease-base), opacity var(--ease-base);
  transform-origin: center;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header search bar */
.header-search {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-4) var(--gutter);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--ease-base), opacity var(--ease-base), visibility var(--ease-base);
  box-shadow: var(--shadow-md);
}
.header-search.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.header-search form {
  display: flex;
  align-items: center;
  max-width: var(--container-md);
  margin-inline: auto;
  gap: var(--sp-3);
}
.header-search input[type="search"] {
  flex: 1;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  font-size: var(--text-base);
  color: var(--c-text);
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}
.header-search input[type="search"]::placeholder { color: var(--c-text-subtle); }
.header-search input[type="search"]:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-dim);
}
.header-search button[type="submit"] {
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--r-lg);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: background var(--ease-fast), transform var(--ease-fast);
}
.header-search button[type="submit"]:hover {
  background: var(--c-accent-hover);
  transform: translateY(-1px);
}


/* ─────────────────────────────────────────
   7. MOBILE NAV OVERLAY
───────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--c-surface);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + var(--sp-6)) var(--gutter) var(--sp-8);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--ease-slow);
}
.mobile-nav.is-open { transform: translateX(0); }

@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

.mobile-nav .menu {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.mobile-nav .menu-item > a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--c-text);
  border-radius: var(--r-md);
  transition: background-color var(--ease-fast), color var(--ease-fast);
}
.mobile-nav .menu-item > a:hover,
.mobile-nav .menu-item.current-menu-item > a {
  background: var(--c-accent-dim);
  color: var(--c-accent-text);
}
.mobile-nav .sub-menu {
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-4);
}
.mobile-nav .sub-menu .menu-item a {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--c-text-muted);
  border-radius: var(--r-md);
  transition: color var(--ease-fast);
}
.mobile-nav .sub-menu .menu-item a:hover { color: var(--c-text); }

/* Page offset for fixed header */
.page-content-wrap { padding-top: var(--header-h); }


/* ─────────────────────────────────────────
   8. HERO SECTION
───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(520px, 80vh, 780px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--c-bg);
}

/* Animated gradient mesh — shown when no video */
.hero-gradient-bg {
  position: absolute;
  inset: 0;
  background: var(--c-bg);
  overflow: hidden;
}
.hero-gradient-bg::before,
.hero-gradient-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}
.hero-gradient-bg::before {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(245,158,11,0.25) 0%, transparent 70%);
  animation: float-orb 12s ease-in-out infinite;
}
.hero-gradient-bg::after {
  width: 500px; height: 500px;
  bottom: -150px; left: -100px;
  background: radial-gradient(circle, rgba(180,83,9,0.2) 0%, transparent 70%);
  animation: float-orb-2 15s ease-in-out infinite;
}
/* Extra orb via .hero-gradient-bg + a child if desired */
.hero-orb {
  position: absolute;
  width: 400px; height: 400px;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,0.1) 0%, transparent 70%);
  filter: blur(60px);
  animation: float-orb 18s ease-in-out infinite reverse;
  pointer-events: none;
}

/* Grid overlay texture */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
}
[data-theme="dark"] .hero-grid-overlay { opacity: 0.15; }

/* Video background */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-video-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.65) 100%
  );
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--sp-16) var(--sp-20);
}
.has-hero-video .hero-content { color: #fff; }
.has-hero-video .hero-content p { color: rgba(255,255,255,0.8); }
.has-hero-video .hero-content .article-card__category,
.has-hero-video .hero-content .category-badge { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.2); }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-4);
}
.hero-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--c-accent);
  border-radius: var(--r-full);
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.1;
  max-width: 16ch;
  margin-bottom: var(--sp-5);
  letter-spacing: -0.02em;
}
.has-hero-video .hero-title { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }

.hero-excerpt {
  font-size: var(--text-lg);
  max-width: 52ch;
  margin-bottom: var(--sp-8);
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}
.has-hero-video .hero-meta { color: rgba(255,255,255,0.7); }

.hero-meta .author-avatar {
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  object-fit: cover;
}
.hero-meta .divider { opacity: 0.4; }

.hero-read-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background var(--ease-fast), transform var(--ease-spring), box-shadow var(--ease-fast);
  box-shadow: 0 4px 16px rgba(245,158,11,0.35);
}
.hero-read-btn:hover {
  background: var(--c-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.45);
}
.hero-read-btn svg { width: 16px; height: 16px; transition: transform var(--ease-spring); }
.hero-read-btn:hover svg { transform: translateX(4px); }


/* ─────────────────────────────────────────
   9. CATEGORY BADGES
───────────────────────────────────────── */
.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--sp-3);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform var(--ease-fast);
}
.category-badge:hover { transform: translateY(-1px); }

.badge--news        { background: rgba(14,165,233,0.1);  color: #0EA5E9; border-color: rgba(14,165,233,0.2); }
.badge--tools       { background: rgba(16,185,129,0.1);  color: #10B981; border-color: rgba(16,185,129,0.2); }
.badge--technical   { background: rgba(139,92,246,0.1);  color: #8B5CF6; border-color: rgba(139,92,246,0.2); }
.badge--prompt      { background: rgba(236,72,153,0.1);  color: #EC4899; border-color: rgba(236,72,153,0.2); }
.badge--integration { background: rgba(249,115,22,0.1);  color: #F97316; border-color: rgba(249,115,22,0.2); }
.badge--knowledge   { background: rgba(6,182,212,0.1);   color: #06B6D4; border-color: rgba(6,182,212,0.2); }
.badge--religious   { background: rgba(132,204,22,0.1);  color: #84CC16; border-color: rgba(132,204,22,0.2); }
.badge--default     { background: rgba(107,114,128,0.1); color: #6B7280; border-color: rgba(107,114,128,0.2); }


/* ─────────────────────────────────────────
   10. ARTICLE CARDS
───────────────────────────────────────── */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition:
    box-shadow var(--ease-base),
    transform var(--ease-base),
    border-color var(--ease-base);
}
.article-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: transparent;
}

.article-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-surface-2);
}
.article-card__image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}
.article-card:hover .article-card__image-wrap img {
  transform: scale(1.04);
}
.article-card__image-wrap .category-badge {
  position: absolute;
  top: var(--sp-3); left: var(--sp-3);
  z-index: 1;
}

/* Placeholder when no image */
.article-card__image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-surface-2) 0%, var(--c-surface-3) 100%);
  color: var(--c-text-subtle);
}
.article-card__image-placeholder svg { width: 40px; height: 40px; opacity: 0.4; }

.article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-5);
  gap: var(--sp-3);
}

.article-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--ease-fast);
}
.article-card:hover .article-card__title { color: var(--c-accent-text); }
[data-theme="dark"] .article-card:hover .article-card__title { color: var(--c-accent); }

.article-card__excerpt {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border-soft);
  margin-top: auto;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--c-text-subtle);
}
.article-card__meta .author-avatar {
  width: 24px; height: 24px;
  border-radius: var(--r-full);
  object-fit: cover;
}

.article-card__read-more {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-accent-text);
  transition: gap var(--ease-spring);
}
[data-theme="dark"] .article-card__read-more { color: var(--c-accent); }
.article-card__read-more svg { width: 14px; height: 14px; transition: transform var(--ease-spring); }
.article-card:hover .article-card__read-more { gap: var(--sp-2); }
.article-card:hover .article-card__read-more svg { transform: translateX(3px); }

/* Card size variants */
.article-card--large .article-card__image-wrap {
  aspect-ratio: 16 / 9;
}
.article-card--large .article-card__title {
  font-size: var(--text-2xl);
  -webkit-line-clamp: 3;
}
.article-card--large .article-card__excerpt {
  -webkit-line-clamp: 3;
}
.article-card--large .article-card__body { padding: var(--sp-6); gap: var(--sp-4); }

.article-card--horizontal {
  flex-direction: row;
}
.article-card--horizontal .article-card__image-wrap {
  width: 160px;
  flex-shrink: 0;
  aspect-ratio: unset;
  height: auto;
  min-height: 120px;
}
.article-card--horizontal .article-card__title { font-size: var(--text-base); -webkit-line-clamp: 2; }
.article-card--horizontal .article-card__excerpt { display: none; }

@media (max-width: 480px) {
  .article-card--horizontal { flex-direction: column; }
  .article-card--horizontal .article-card__image-wrap {
    width: 100%; min-height: unset;
    aspect-ratio: 16/10;
  }
}


/* ─────────────────────────────────────────
   11. SECTION HEADINGS
───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1em;
  background: var(--c-accent);
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.section-view-all {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-text-muted);
  white-space: nowrap;
  transition: color var(--ease-fast), gap var(--ease-spring);
}
.section-view-all:hover { color: var(--c-accent-text); gap: var(--sp-3); }
[data-theme="dark"] .section-view-all:hover { color: var(--c-accent); }
.section-view-all svg { width: 16px; height: 16px; transition: transform var(--ease-spring); }
.section-view-all:hover svg { transform: translateX(3px); }


/* ─────────────────────────────────────────
   12. HOMEPAGE SECTIONS
───────────────────────────────────────── */
.home-section {
  padding-block: var(--sp-16);
}
.home-section + .home-section {
  border-top: 1px solid var(--c-border-soft);
}

/* Top stories grid: 1 large + up to 3 smaller */
.top-stories-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .top-stories-grid {
    grid-template-columns: 1fr 1fr;
  }
  .top-stories-grid .article-card:first-child {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1024px) {
  .top-stories-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .top-stories-grid .article-card:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
  }
}

/* Standard card grid */
.card-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 480px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .card-grid.card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Category spotlight: 1 featured + 2-col list */
.category-spotlight {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .category-spotlight {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}
@media (min-width: 1024px) {
  .category-spotlight {
    grid-template-columns: 2fr 1fr;
  }
}

.category-spotlight__secondary {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}


/* ─────────────────────────────────────────
   13. VIDEO SECTION
───────────────────────────────────────── */
.video-section {
  padding-block: var(--sp-16);
  background: var(--c-surface-2);
  border-top: 1px solid var(--c-border-soft);
  border-bottom: 1px solid var(--c-border-soft);
}

/* Featured Watch Card */
.featured-watch {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 768px) {
  .featured-watch {
    grid-template-columns: 1.3fr 1fr;
  }
}
@media (min-width: 1024px) {
  .featured-watch {
    grid-template-columns: 1.5fr 1fr;
  }
}

.featured-watch__thumb {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--c-surface-3);
  cursor: pointer;
  box-shadow: var(--shadow-xl);
}
.featured-watch__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}
.featured-watch__thumb:hover img { transform: scale(1.03); }

/* Play button */
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  transition: background var(--ease-fast);
}
.play-btn:hover { background: rgba(0,0,0,0.05); }

.play-btn__circle {
  width: clamp(56px, 8vw, 72px);
  height: clamp(56px, 8vw, 72px);
  background: var(--c-accent);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(245,158,11,0.5);
  transition: transform var(--ease-spring), box-shadow var(--ease-base);
}
.play-btn:hover .play-btn__circle {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(245,158,11,0.6);
}
.play-btn__circle svg {
  width: 28px; height: 28px;
  fill: #fff;
  margin-left: 3px;
}

.featured-watch__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.featured-watch__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent-text);
}
[data-theme="dark"] .featured-watch__label { color: var(--c-accent); }
.featured-watch__label svg { width: 16px; height: 16px; color: var(--c-accent); }

.featured-watch__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-text);
  cursor: pointer;
  transition: color var(--ease-fast);
}
.featured-watch__title:hover { color: var(--c-accent-text); }
[data-theme="dark"] .featured-watch__title:hover { color: var(--c-accent); }

.featured-watch__desc {
  font-size: var(--text-base);
  color: var(--c-text-muted);
  line-height: 1.6;
}

.featured-watch__watch-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 700;
  width: fit-content;
  transition: background var(--ease-fast), transform var(--ease-spring);
  box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}
.featured-watch__watch-btn:hover {
  background: var(--c-accent-hover);
  transform: translateY(-2px);
}
.featured-watch__watch-btn svg { width: 16px; height: 16px; fill: #fff; }

/* Video Rail */
.video-rail {
  margin-top: var(--sp-10);
}
.video-rail__heading {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
  margin-bottom: var(--sp-4);
}

.video-rail__scroll {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  padding-bottom: var(--sp-3);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
  -webkit-overflow-scrolling: touch;
}

.video-thumb-card {
  flex-shrink: 0;
  width: clamp(220px, 30vw, 280px);
  scroll-snap-align: start;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  cursor: pointer;
  transition: transform var(--ease-base), box-shadow var(--ease-base), border-color var(--ease-base);
}
.video-thumb-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.video-thumb-card__img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--c-surface-3);
}
.video-thumb-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}
.video-thumb-card:hover .video-thumb-card__img img { transform: scale(1.05); }

.video-thumb-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  transition: background var(--ease-fast);
}
.video-thumb-card:hover .video-thumb-card__play { background: rgba(0,0,0,0.1); }
.video-thumb-card__play svg {
  width: 36px; height: 36px;
  fill: rgba(255,255,255,0.9);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.video-thumb-card__body {
  padding: var(--sp-3) var(--sp-4);
}
.video-thumb-card__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-thumb-card__channel {
  font-size: var(--text-xs);
  color: var(--c-text-subtle);
  margin-top: var(--sp-1);
}


/* ─────────────────────────────────────────
   14. VIDEO LIGHTBOX
───────────────────────────────────────── */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease-base), visibility var(--ease-base);
  backdrop-filter: blur(4px);
}
.video-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.video-lightbox__inner {
  position: relative;
  width: 100%;
  max-width: 960px;
  transform: scale(0.93) translateY(16px);
  transition: transform var(--ease-spring);
}
.video-lightbox.is-open .video-lightbox__inner {
  transform: scale(1) translateY(0);
}
.video-lightbox__embed {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #000;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
}
.video-lightbox__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-lightbox__close {
  position: absolute;
  top: -48px; right: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: color var(--ease-fast);
}
.video-lightbox__close:hover { color: #fff; }
.video-lightbox__close svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }


/* ─────────────────────────────────────────
   15. ARCHIVE / CATEGORY PAGE
───────────────────────────────────────── */
.archive-header {
  padding-block: var(--sp-16) var(--sp-12);
  text-align: center;
}
.archive-header__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
  margin-bottom: var(--sp-4);
}
.archive-header__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}
.archive-header__desc {
  font-size: var(--text-lg);
  color: var(--c-text-muted);
  max-width: 60ch;
  margin-inline: auto;
}

.archive-content {
  padding-bottom: var(--sp-20);
}


/* ─────────────────────────────────────────
   16. SINGLE POST
───────────────────────────────────────── */
.single-post {
  padding-bottom: var(--sp-20);
}

.post-header {
  padding-block: var(--sp-16) var(--sp-10);
  max-width: var(--container-sm);
  margin-inline: auto;
  text-align: left;
}
.post-header__categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.post-header__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-5);
}
.post-header__excerpt {
  font-size: var(--text-xl);
  color: var(--c-text-muted);
  line-height: 1.5;
  margin-bottom: var(--sp-6);
}
.post-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}
.post-header__meta .author-avatar {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 2px solid var(--c-accent);
}

.post-featured-image {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  margin-bottom: var(--sp-12);
  border-radius: var(--r-2xl);
  overflow: hidden;
  aspect-ratio: 21/9;
}
@media (max-width: 768px) { .post-featured-image { aspect-ratio: 16/9; border-radius: var(--r-xl); } }
.post-featured-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Post content */
.post-body {
  max-width: var(--container-sm);
  margin-inline: auto;
}

.post-content {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--c-text-muted);
}
.post-content h2, .post-content h3, .post-content h4 {
  color: var(--c-text);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-4);
}
.post-content h2 { font-size: var(--text-3xl); }
.post-content h3 { font-size: var(--text-2xl); }
.post-content h4 { font-size: var(--text-xl); }

.post-content p { margin-bottom: var(--sp-5); color: var(--c-text-muted); }
.post-content a {
  color: var(--c-accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--ease-fast);
}
[data-theme="dark"] .post-content a { color: var(--c-accent); }
.post-content a:hover { color: var(--c-accent-hover); }

.post-content ul, .post-content ol {
  margin-bottom: var(--sp-5);
  padding-left: var(--sp-6);
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: var(--sp-2); color: var(--c-text-muted); }

.post-content blockquote {
  border-left: 4px solid var(--c-accent);
  padding: var(--sp-4) var(--sp-6);
  margin-block: var(--sp-8);
  background: var(--c-accent-dim);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.post-content blockquote p {
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--c-text);
  font-family: var(--font-heading);
  margin-bottom: 0;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  color: var(--c-text);
}
.post-content pre {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  overflow-x: auto;
  margin-block: var(--sp-6);
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--text-sm);
}

.post-content img {
  border-radius: var(--r-lg);
  margin-block: var(--sp-8);
  box-shadow: var(--shadow-md);
}
.post-content figure { margin-block: var(--sp-8); }
.post-content figcaption {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--c-text-subtle);
  margin-top: var(--sp-3);
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border);
}
.post-tag {
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-text-muted);
  transition: background var(--ease-fast), color var(--ease-fast), border-color var(--ease-fast);
}
.post-tag:hover {
  background: var(--c-accent-dim);
  border-color: var(--c-accent);
  color: var(--c-accent-text);
}
[data-theme="dark"] .post-tag:hover { color: var(--c-accent); }

/* Related posts */
.related-posts {
  margin-top: var(--sp-16);
  padding-top: var(--sp-12);
  border-top: 1px solid var(--c-border);
}


/* ─────────────────────────────────────────
   17. SEARCH RESULTS
───────────────────────────────────────── */
.search-page {
  padding-block: var(--sp-16) var(--sp-20);
}
.search-page__header {
  margin-bottom: var(--sp-10);
}
.search-page__heading {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--sp-3);
}
.search-page__count {
  font-size: var(--text-base);
  color: var(--c-text-muted);
}
.search-page__count strong { color: var(--c-accent-text); }
[data-theme="dark"] .search-page__count strong { color: var(--c-accent); }

.search-page__form {
  display: flex;
  gap: var(--sp-3);
  max-width: 560px;
  margin-bottom: var(--sp-10);
}
.search-page__form input[type="search"] {
  flex: 1;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  font-size: var(--text-base);
  color: var(--c-text);
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}
.search-page__form input[type="search"]:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-dim);
}
.search-page__form button {
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--r-lg);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: background var(--ease-fast);
}
.search-page__form button:hover { background: var(--c-accent-hover); }

.no-results {
  text-align: center;
  padding: var(--sp-16) var(--sp-8);
}
.no-results__icon {
  width: 64px; height: 64px;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
  color: var(--c-text-subtle);
}
.no-results__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}
.no-results__text {
  font-size: var(--text-base);
  color: var(--c-text-muted);
  max-width: 40ch;
  margin-inline: auto;
}


/* ─────────────────────────────────────────
   18. PAGINATION
───────────────────────────────────────── */
.pagination {
  margin-top: var(--sp-12);
}
.pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  transition: background var(--ease-fast), color var(--ease-fast), border-color var(--ease-fast);
}
.pagination li a:hover {
  background: var(--c-surface-2);
  color: var(--c-text);
  border-color: var(--c-accent);
}
.pagination li .current {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
  font-weight: 700;
}


/* ─────────────────────────────────────────
   19. BREADCRUMBS
───────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--c-text-subtle);
  margin-bottom: var(--sp-6);
}
.breadcrumbs a {
  color: var(--c-text-muted);
  transition: color var(--ease-fast);
}
.breadcrumbs a:hover { color: var(--c-accent-text); }
[data-theme="dark"] .breadcrumbs a:hover { color: var(--c-accent); }


/* ─────────────────────────────────────────
   20. 404 PAGE
───────────────────────────────────────── */
.error-404 {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-16) var(--gutter);
}
.error-404__inner { max-width: 480px; }
.error-404__number {
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 900;
  line-height: 1;
  color: var(--c-accent);
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-4);
  display: block;
}
.error-404__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-4);
}
.error-404__text {
  font-size: var(--text-base);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-8);
}
.btn-home {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: var(--text-sm);
  transition: background var(--ease-fast), transform var(--ease-spring);
}
.btn-home:hover {
  background: var(--c-accent-hover);
  transform: translateY(-2px);
}


/* ─────────────────────────────────────────
   21. FOOTER
───────────────────────────────────────── */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding-block: var(--sp-16) var(--sp-8);
}

.footer-grid {
  display: grid;
  gap: var(--sp-10);
  grid-template-columns: 1fr;
  margin-bottom: var(--sp-12);
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand .site-logo {
  margin-bottom: var(--sp-4);
}
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.6;
  max-width: 36ch;
}

.footer-col__title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col ul a {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  transition: color var(--ease-fast);
}
.footer-col ul a:hover { color: var(--c-accent-text); }
[data-theme="dark"] .footer-col ul a:hover { color: var(--c-accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-border);
}
.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--c-text-subtle);
}
.footer-bottom a {
  color: var(--c-text-muted);
  transition: color var(--ease-fast);
}
.footer-bottom a:hover { color: var(--c-accent-text); }
[data-theme="dark"] .footer-bottom a:hover { color: var(--c-accent); }

.footer-bottom__links {
  display: flex;
  gap: var(--sp-5);
}
.footer-bottom__links a {
  font-size: var(--text-sm);
  color: var(--c-text-subtle);
}


/* ─────────────────────────────────────────
   22. WORDPRESS CORE OVERRIDES
───────────────────────────────────────── */
/* Alignments */
.alignleft  { float: left;  margin: 0 var(--sp-6) var(--sp-4) 0; }
.alignright { float: right; margin: 0 0 var(--sp-4) var(--sp-6); }
.aligncenter { margin-inline: auto; display: block; }
.alignwide  { margin-inline: calc(var(--gutter) * -1); max-width: unset; }
.alignfull  { margin-inline: calc(var(--gutter) * -2); max-width: unset; width: calc(100% + var(--gutter) * 4); }

/* WP Caption */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--text-sm); color: var(--c-text-subtle); text-align: center; margin-top: var(--sp-2); }

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px; width: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

/* Embeds */
.wp-block-embed__wrapper,
.embed-responsive {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.wp-block-embed__wrapper iframe,
.embed-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}


/* ═══════════════════════════════════════════════════════════
   TABLE OF CONTENTS — Universal plugin styling
   Covers: Easy Table of Contents, TOC Plus, Rank Math,
   Yoast, Elementor TOC widget, WP core block.
   ═══════════════════════════════════════════════════════════ */

/* ── Container ── */
#ez-toc-container,
.ez-toc-container,
#toc_container,
.toc_container,
.wp-block-table-of-contents,
.wp-block-rank-math-toc-block,
.wp-block-yoast-seo-table-of-contents,
.elementor-toc__container,
.aipt-toc {
  position: relative;
  background: var(--c-surface-2) !important;
  border: 1px solid var(--c-border) !important;
  border-left: 4px solid var(--c-accent) !important;
  border-radius: var(--r-xl) !important;
  padding: var(--sp-6) var(--sp-7) !important;
  margin: var(--sp-8) 0 var(--sp-10) !important;
  overflow: hidden;
  width: auto !important;
  max-width: 100% !important;
  float: none !important;
  box-shadow: var(--shadow-md) !important;
}

/* Ambient amber glow top-right */
#ez-toc-container::before,
#toc_container::before,
.wp-block-table-of-contents::before,
.wp-block-rank-math-toc-block::before,
.elementor-toc__container::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--c-accent-dim) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Title ── */
.ez-toc-title,
.ez-toc-title-container p,
#toc_container .toc_title,
.toc_title,
.wp-block-table-of-contents__title,
.elementor-toc__header-title,
.wp-block-rank-math-toc-block h2,
.wp-block-rank-math-toc-block h3,
.wp-block-yoast-seo-table-of-contents h2,
.wp-block-yoast-seo-table-of-contents h3 {
  display: flex !important;
  align-items: center !important;
  gap: var(--sp-2) !important;
  font-family: var(--font-heading) !important;
  font-size: var(--text-xs) !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--c-accent-text) !important;
  margin: 0 0 var(--sp-5) 0 !important;
  padding: 0 !important;
  border: none !important;
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .ez-toc-title,
[data-theme="dark"] .toc_title,
[data-theme="dark"] .wp-block-table-of-contents__title,
[data-theme="dark"] .elementor-toc__header-title {
  color: var(--c-accent) !important;
}

/* Icon before title */
.ez-toc-title::before,
#toc_container .toc_title::before,
.wp-block-table-of-contents__title::before,
.elementor-toc__header-title::before {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F59E0B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}

/* Divider line after title */
.ez-toc-title::after,
#toc_container .toc_title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
  margin-left: var(--sp-3);
}

/* ── Lists ── */
.ez-toc-list,
.ez-toc-list-level-1,
#toc_container .toc_list,
.toc_list,
.wp-block-table-of-contents ol,
.wp-block-table-of-contents ul,
.wp-block-rank-math-toc-block ol,
.wp-block-rank-math-toc-block ul,
.wp-block-yoast-seo-table-of-contents ol,
.elementor-toc__list-items {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  counter-reset: toc-counter;
  position: relative;
  z-index: 1;
}

/* Nested lists */
.ez-toc-list .ez-toc-list,
#toc_container .toc_list ul,
.wp-block-table-of-contents ol ol {
  padding-left: var(--sp-6) !important;
  margin-top: var(--sp-1) !important;
}

/* ── List items ── */
.ez-toc-list-level-1 > li,
#toc_container .toc_list > li,
.wp-block-table-of-contents > ol > li,
.wp-block-rank-math-toc-block > ol > li,
.elementor-toc__list-items > li {
  counter-increment: toc-counter;
  border-bottom: 1px solid var(--c-border-soft) !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ez-toc-list-level-1 > li:last-child,
#toc_container .toc_list > li:last-child,
.wp-block-table-of-contents > ol > li:last-child {
  border-bottom: none !important;
}

/* ── Links ── */
.ez-toc-link,
.ez-toc-list a,
#toc_container .toc_list a,
.toc_list a,
.wp-block-table-of-contents a,
.wp-block-rank-math-toc-block a,
.wp-block-yoast-seo-table-of-contents a,
.elementor-toc__list-item-text {
  display: flex !important;
  align-items: center !important;
  gap: var(--sp-3) !important;
  padding: var(--sp-3) var(--sp-2) !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-sm) !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: var(--c-text-muted) !important;
  text-decoration: none !important;
  background: transparent !important;
  border-radius: var(--r-md) !important;
  transition: color var(--ease-fast), background var(--ease-fast), gap var(--ease-spring) !important;
}
.ez-toc-link:hover,
.ez-toc-list a:hover,
#toc_container .toc_list a:hover,
.wp-block-table-of-contents a:hover,
.elementor-toc__list-item-text:hover {
  color: var(--c-text) !important;
  background: var(--c-accent-dim) !important;
  gap: var(--sp-4) !important;
}

/* Number badge — top-level items only */
.ez-toc-list-level-1 > li > a::before,
#toc_container .toc_list > li > a::before,
.wp-block-table-of-contents > ol > li > a::before,
.wp-block-rank-math-toc-block > ol > li > a::before {
  content: counter(toc-counter, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 var(--sp-2);
  background: var(--c-accent-dim);
  color: var(--c-accent-text) !important;
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
[data-theme="dark"] .ez-toc-list-level-1 > li > a::before,
[data-theme="dark"] #toc_container .toc_list > li > a::before,
[data-theme="dark"] .wp-block-table-of-contents > ol > li > a::before {
  color: var(--c-accent) !important;
}

/* Arrow that appears on hover */
.ez-toc-list-level-1 > li > a::after,
#toc_container .toc_list > li > a::after,
.wp-block-table-of-contents > ol > li > a::after {
  content: '→';
  margin-left: auto;
  opacity: 0;
  font-size: var(--text-xs);
  color: var(--c-accent-text);
  transform: translateX(-8px);
  transition: opacity var(--ease-fast), transform var(--ease-spring);
  flex-shrink: 0;
}
[data-theme="dark"] .ez-toc-list-level-1 > li > a::after,
[data-theme="dark"] #toc_container .toc_list > li > a::after {
  color: var(--c-accent);
}
.ez-toc-list-level-1 > li > a:hover::after,
#toc_container .toc_list > li > a:hover::after,
.wp-block-table-of-contents > ol > li > a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Nested items — dash prefix, no counter */
.ez-toc-list .ez-toc-list a,
#toc_container .toc_list ul a,
.wp-block-table-of-contents ol ol a {
  padding-left: var(--sp-3) !important;
  font-size: var(--text-xs) !important;
  color: var(--c-text-subtle) !important;
}
.ez-toc-list .ez-toc-list a::before,
#toc_container .toc_list ul a::before {
  content: '–' !important;
  background: none !important;
  min-width: auto !important;
  color: var(--c-text-subtle) !important;
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
}

/* Hide the Easy TOC collapse toggle — cleaner without it */
.ez-toc-toggle-hide-btn,
#ez-toc-container .ez-toc-toggle,
a.ez-toc-toggle-hide-btn {
  display: none !important;
}

/* Scroll offset so headings clear the fixed header when jumped to */
:target {
  scroll-margin-top: calc(var(--header-h) + var(--sp-4));
}

/* ─────────────────────────────────────────
   PLUGIN SUITE CAROUSEL (homepage)
───────────────────────────────────────── */
.suite-section { position: relative; }
.suite-kicker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 .3em;
}
.suite-sub { color: var(--c-text-muted); max-width: 46rem; margin: .4em 0 0; }
.suite-nav { display: flex; gap: var(--sp-2); }
.suite-arrow {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--ease-fast);
}
.suite-arrow:hover { border-color: var(--c-accent); color: var(--c-accent); transform: translateY(-1px); }

.suite-track {
  display: flex;
  gap: var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--sp-2) var(--sp-1) var(--sp-5);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.suite-track::-webkit-scrollbar { display: none; }
.suite-track:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }

.suite-card {
  flex: 0 0 min(420px, 86%);
  scroll-snap-align: start;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl, 16px);
  padding: var(--sp-6) var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: border-color var(--ease-base), transform var(--ease-base), box-shadow var(--ease-base);
}
.suite-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px var(--c-overlay);
}
.suite-card-head { display: flex; align-items: center; gap: var(--sp-3); }
.suite-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  font-size: 1.6rem;
  border-radius: var(--r-lg);
  background: var(--c-accent-dim);
  border: 1px solid var(--c-border);
}
.suite-name { font-family: var(--font-heading); font-size: var(--text-xl); margin: 0; color: var(--c-text); }
.suite-tag {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-accent-text);
  background: var(--c-accent-dim);
  border-radius: var(--r-full);
  padding: .15em .8em;
}
[data-theme="dark"] .suite-tag { color: var(--c-accent); }
.suite-pitch { color: var(--c-text-muted); line-height: 1.65; margin: 0; flex: 1; }
.suite-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35em; }
.suite-points li {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  padding-left: 1.4em;
  position: relative;
}
.suite-points li::before { content: "✓"; position: absolute; left: 0; color: var(--c-accent); font-weight: 700; }
.suite-actions { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-2); }
.suite-btn {
  background: var(--c-accent);
  color: #fff !important;
  border-radius: var(--r-md);
  padding: .6em 1.3em;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: background var(--ease-fast), transform var(--ease-fast);
}
.suite-btn:hover { background: var(--c-accent-hover); transform: translateY(-1px); }
.suite-link { font-size: var(--text-sm); font-weight: 600; color: var(--c-text-muted); text-decoration: none; }
.suite-link:hover { color: var(--c-accent); }

.suite-dots { display: flex; justify-content: center; gap: var(--sp-2); }
.suite-dot {
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  border: 0;
  background: var(--c-border);
  cursor: pointer;
  padding: 0;
  transition: all var(--ease-fast);
}
.suite-dot.is-active { width: 24px; background: var(--c-accent); }

@media (max-width: 640px) {
  .suite-nav { display: none; } /* swipe + dots on touch */
  .suite-card { flex-basis: 88%; }
}

/* Carousel shown above the hero on the homepage */
.suite-first { padding-top: calc(var(--header-h, 64px) + var(--sp-6)); }
.suite-first .suite-section { padding-bottom: 0; }

/* ─────────────────────────────────────────
   HOMEPAGE FLOW: carousel first → hero as
   a contained "featured story" card
───────────────────────────────────────── */

/* Top-of-page carousel: soft accent glow that fades into the page */
.suite-first { position: relative; }
.suite-first::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 100%);
  height: 75%;
  background: radial-gradient(ellipse at 50% 0%, var(--c-accent-dim), transparent 70%);
  pointer-events: none;
}
.suite-first .container { position: relative; }

/* Hero following the carousel becomes a rounded feature panel */
.suite-first + .hero {
  max-width: calc(var(--container) - 2 * var(--gutter));
  width: calc(100% - 2 * var(--gutter));
  margin: var(--sp-4) auto var(--sp-10);
  min-height: clamp(420px, 56vh, 600px);
  border-radius: 24px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  box-shadow: 0 24px 60px -40px var(--c-overlay);
}
/* Re-scale the backdrop art for the smaller panel */
.suite-first + .hero .hero-gradient-bg { background: var(--c-surface); border-radius: inherit; }
.suite-first + .hero .hero-gradient-bg::before { width: 420px; height: 420px; top: -140px; right: -60px; }
.suite-first + .hero .hero-gradient-bg::after  { width: 360px; height: 360px; bottom: -120px; left: -60px; }
.suite-first + .hero .hero-grid-overlay { border-radius: inherit; opacity: 0.5; }
[data-theme="dark"] .suite-first + .hero .hero-grid-overlay { opacity: 0.12; }
.suite-first + .hero .hero-content { padding-bottom: var(--sp-8); }

/* A quiet hand-off into the video band below */
.suite-first ~ .video-section { border-top: 0; }

/* Light-theme polish for the carousel & hero card */
.suite-card,
.suite-overview-card { background: var(--c-surface); }
[data-theme="dark"] .suite-icon,
[data-theme="dark"] .soc-icon { border-color: var(--c-border); }
.suite-dot { background: var(--c-border); }
.suite-dot:hover { background: var(--c-text-subtle); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .suite-first::before { opacity: 0.8; }
}

/* Mobile: keep the featured panel comfortable */
@media (max-width: 640px) {
  .suite-first + .hero { min-height: 420px; border-radius: 18px; margin-bottom: var(--sp-8); }
}

/* ─────────────────────────────────────────
   WP ADMIN BAR: offset the fixed header
───────────────────────────────────────── */
body.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
body.admin-bar .mobile-nav { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 32px)); }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .mobile-nav { top: calc(var(--header-h) + 46px); }
}

/* ─────────────────────────────────────────
   CAROUSEL — mobile "deck" presentation
───────────────────────────────────────── */
@media (max-width: 640px) {
  .suite-track {
    gap: var(--sp-3);
    scroll-snap-type: x mandatory;
    padding-inline: 7vw;             /* lets first/last card centre */
    padding-block: var(--sp-3) var(--sp-5);
  }
  .suite-card {
    flex: 0 0 82%;
    scroll-snap-align: center;        /* centre stage, neighbours peek */
    padding: 1.15rem 1.2rem;
    border-radius: 16px;
    box-shadow: 0 14px 30px -22px var(--c-overlay);
    transition: transform .25s ease, opacity .25s ease;
  }
  .suite-track.is-moving .suite-card {
    will-change: transform, opacity;
  }
  .suite-card-head { gap: .7rem; }
  .suite-icon { width: 44px; height: 44px; font-size: 1.3rem; }
  .suite-name { font-size: var(--text-lg); }
  .suite-pitch { font-size: var(--text-sm); }
  .suite-points li { font-size: 0.82rem; }
  .suite-actions { gap: .7rem; }
  .suite-btn { padding: .55em 1.1em; }
  .suite-dots { margin-top: .2rem; }
  .suite-dot { width: 7px; height: 7px; }
  .suite-dot.is-active { width: 22px; }
}

/* ─────────────────────────────────────────
   THEME OWNS THE CANVAS
   Elementor's global kit (and similar) hard-codes body colors,
   which breaks light/dark switching. The variables win, always.
───────────────────────────────────────── */
body, body.elementor-kit-1, [class*="elementor-kit-"] {
  background-color: var(--c-bg) !important;
  color: var(--c-text) !important;
}

/* ─────────────────────────────────────────
   MOBILE HEADER FIX
   The unshrinkable logo + tagline pushed the theme toggle and
   burger off the right edge on phones. Logo now yields space.
───────────────────────────────────────── */
@media (max-width: 1023px) {
  .header-inner { gap: var(--sp-3); }
  .site-header .site-logo { flex-shrink: 1; min-width: 0; }
  .site-header .logo-text { min-width: 0; }
  .site-header .logo-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--text-base);
  }
  .site-header .logo-tag { display: none; }   /* tagline hides on small screens */
  .header-actions { flex-shrink: 0; }          /* buttons always survive */
}

/* Mobile: trim the dead air above the carousel */
@media (max-width: 640px) {
  .suite-first { padding-top: calc(var(--header-h, 64px) + var(--sp-3)); }
  .suite-first .suite-section { padding-block-start: var(--sp-4); }
  .suite-first .section-header { margin-bottom: var(--sp-2); }
}


/* ==== assets/css/v2.css ==== */
/* ═══════════════════════════════════════════════════════════
   AIPT EMBER 2.0 — v2.css
   Loaded after main.css. Everything new in version 2.
   Motion levels: body.motion-full (default) · .motion-subtle · .motion-off
   prefers-reduced-motion always wins.
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   0. TOKENS & ACCESSIBILITY FIXES
───────────────────────────────────────── */
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --gold-1: #FDE68A;
  --gold-2: #FBBF24;
  --gold-3: #D97706;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  /* v2: --c-text-subtle failed WCAG AA (2.4:1); now 4.6:1 on the page background */
  --c-text-subtle: #77706B;
  /* Accent used AS TEXT on light backgrounds (amber on white was 2.1:1) */
  --c-accent-ink: var(--c-accent-text);
  /* Category badge ink, light mode (all ≥ 4.5:1 on white) */
  --ink-news: #0369A1; --ink-tools: #047857; --ink-technical: #6D28D9; --ink-prompt: #BE185D;
  --ink-integration: #C2410C; --ink-knowledge: #0E7490; --ink-religious: #4D7C0F; --ink-default: #4B5563;
}
[data-theme="dark"] {
  --c-text-subtle: #9C958F;
  --c-accent-ink: var(--c-accent);
  --ink-news: #38BDF8; --ink-tools: #34D399; --ink-technical: #A78BFA; --ink-prompt: #F472B6;
  --ink-integration: #FB923C; --ink-knowledge: #22D3EE; --ink-religious: #A3E635; --ink-default: #9CA3AF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-text-subtle: #9C958F;
    --c-accent-ink: var(--c-accent);
    --ink-news: #38BDF8; --ink-tools: #34D399; --ink-technical: #A78BFA; --ink-prompt: #F472B6;
    --ink-integration: #FB923C; --ink-knowledge: #22D3EE; --ink-religious: #A3E635; --ink-default: #9CA3AF;
  }
}
.badge--news        { color: var(--ink-news); }
.badge--tools       { color: var(--ink-tools); }
.badge--technical   { color: var(--ink-technical); }
.badge--prompt      { color: var(--ink-prompt); }
.badge--integration { color: var(--ink-integration); }
.badge--knowledge   { color: var(--ink-knowledge); }
.badge--religious   { color: var(--ink-religious); }
.badge--default     { color: var(--ink-default); }
/* Badges sitting on photos get a solid chip so they stay readable */
.article-card__image-wrap .category-badge {
  background: color-mix(in srgb, var(--c-surface) 90%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-label, .suite-kicker { color: var(--c-accent-ink); }

/* Closed mobile menu: hidden from keyboard and screen readers (v1 left its
   links focusable off-screen) and no sideways page scroll on phones */
.mobile-nav { visibility: hidden; transition: transform var(--ease-slow), visibility 0s linear 400ms; }
.mobile-nav.is-open { visibility: visible; transition: transform var(--ease-slow), visibility 0s; }
html, body { overflow-x: clip; }

/* Content is never hidden when JavaScript is off or fails (v1 left .reveal at opacity 0) */
html:not(.js) .reveal,
html:not(.js) .reveal-fade,
html:not(.js) .stagger > * { opacity: 1 !important; transform: none !important; }

/* Skip link */
.skip-link:focus {
  clip: auto; width: auto; height: auto;
  position: fixed; top: var(--sp-3); left: var(--sp-3);
  z-index: 1000;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-text); color: var(--c-bg);
  border-radius: var(--r-full);
  font-weight: 700; text-decoration: none;
}
main:focus { outline: none; }

/* Clearer keyboard focus, with a halo that works on photos and dark art */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-accent) 22%, transparent);
}

/* Nicer type rag */
h1, h2, h3, .section-title, .hero-title, .post-header__title { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* v1 selector ":not(.is-front-page) .site-header" matched every page */
body.is-front-page .site-header:not(.scrolled) { box-shadow: none; }


/* ─────────────────────────────────────────
   1. GLASS HEADER
───────────────────────────────────────── */
.site-header { transition: background-color var(--ease-base), box-shadow var(--ease-base), height var(--ease-base), backdrop-filter var(--ease-base); }
.site-header.scrolled {
  height: calc(var(--header-h) - 8px);
  background: color-mix(in srgb, var(--c-surface) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--c-border) 70%, transparent), 0 10px 30px -20px rgba(0,0,0,.35);
}
/* Hairline of gold that draws in under the glass */
.site-header::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  transform: scaleX(0);
  transition: transform 700ms var(--ease-out-expo);
  opacity: .55;
}
.site-header.scrolled::after { transform: scaleX(1); }

/* Over the (always dark) spread, the header uses light ink until you scroll */
.has-spread .site-header:not(.scrolled) {
  --c-text: #FAFAF9; --c-text-muted: #E7E5E4; --c-text-subtle: #D6D3D1;
  --c-surface: #292524; --c-surface-2: #332F2D; --c-border: #44403C; --c-border-soft: #3A3633;
  --c-accent-ink: #FBBF24; --c-accent-text: #FBBF24;
  background: linear-gradient(180deg, rgba(16,13,11,.62) 0%, rgba(16,13,11,0) 100%);
  color: #FAFAF9;
}
.has-spread .page-content-wrap { padding-top: 0; }


/* ─────────────────────────────────────────
   2. THE HYPERLINKED BOOK SPREAD
───────────────────────────────────────── */
.spread {
  --mx: 62%; --my: 70%;
  position: relative;
  isolation: isolate;
  min-height: clamp(600px, 86vh, 820px);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  color: #FAFAF9;
  background: #100D0B;
}
.spread-media { position: absolute; inset: 0; z-index: 0; }
.spread-media picture, .spread-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.spread-art {
  object-fit: cover;
  object-position: center 100%;
  transform-origin: 50% 100%;
  user-select: none; pointer-events: none;
}
/* Golden threads shimmer: a light sweep masked by the threads themselves */
.spread-shimmer {
  position: absolute; inset: 0;
  -webkit-mask: var(--mask) center 100% / cover no-repeat;
          mask: var(--mask) center 100% / cover no-repeat;
  background:
    radial-gradient(28% 40% at var(--mx) var(--my), rgba(255,236,179,.55), transparent 70%),
    linear-gradient(105deg, transparent 35%, rgba(255,240,200,.75) 48%, rgba(255,214,120,.35) 52%, transparent 65%);
  background-size: 100% 100%, 250% 100%;
  background-position: 0 0, 120% 0;
  mix-blend-mode: screen;
  opacity: .9;
  pointer-events: none;
}
.spread-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16,13,11,.74) 0%, rgba(16,13,11,.30) 34%, rgba(16,13,11,.04) 58%, rgba(16,13,11,.62) 92%, var(--c-bg) 100%),
    linear-gradient(90deg, rgba(16,13,11,.58) 0%, rgba(16,13,11,.18) 42%, rgba(16,13,11,0) 100%);
}
/* A few soft "stars" — pure CSS, no images */
.spread-stars {
  position: absolute; inset: 0 0 45% 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff8, transparent 60%),
    radial-gradient(1px 1px at 78% 14%, #fff9, transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 32%, #ffe8a6aa, transparent 60%),
    radial-gradient(1px 1px at 88% 40%, #fff7, transparent 60%),
    radial-gradient(1px 1px at 42% 8%, #fff6, transparent 60%),
    radial-gradient(1.5px 1.5px at 30% 36%, #ffe8a699, transparent 60%);
}

.spread-content {
  position: relative; z-index: 2;
  padding-top: calc(var(--header-h) + var(--sp-12));
  padding-bottom: var(--sp-24);
}
.spread-eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 var(--sp-5);
}
.spread-eyebrow::before {
  content: ''; display: block; width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-1));
  border-radius: var(--r-full);
}
.spread-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -.03em;
  max-width: 13.5em;
  margin: 0 0 var(--sp-5);
  color: #fff;
  background: linear-gradient(100deg, #fff 0%, #fff 55%, var(--gold-1) 75%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.spread-dek {
  font-size: var(--text-lg); line-height: 1.6;
  color: rgba(250,250,249,.88);
  max-width: 38rem;
  margin: 0 0 var(--sp-8);
}
.spread-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5) var(--sp-7); }

.spread-btn {
  --tx: 0px; --ty: 0px;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: .95em 1.55em;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 45%, #F59E0B);
  color: #1C1917;
  border-radius: var(--r-full);
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700; letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 6px 24px -4px rgba(251,191,36,.45), inset 0 1px 0 rgba(255,255,255,.5);
  transform: translate(var(--tx), var(--ty));
  transition: transform 300ms var(--ease-out-expo), box-shadow var(--ease-base);
}
.spread-btn svg { width: 16px; height: 16px; transition: transform var(--ease-spring); }
.spread-btn:hover { color: #1C1917; box-shadow: 0 10px 34px -4px rgba(251,191,36,.6), inset 0 1px 0 rgba(255,255,255,.5); }
.spread-btn:hover svg { transform: translateX(3px); }
/* Light sweep across the button on hover */
.spread-btn::after, .hero-read-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out-expo);
  pointer-events: none;
}
.spread-btn:hover::after, .hero-read-btn:hover::after { transform: translateX(120%); }

.spread-secondary {
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600;
  color: rgba(250,250,249,.9); text-decoration: none;
  background: linear-gradient(var(--gold-2), var(--gold-2)) 0 100% / 100% 1px no-repeat;
  padding-bottom: .15em;
  transition: background-size 400ms var(--ease-out-expo), color var(--ease-fast);
}
.spread-secondary:hover { color: var(--gold-1); background-size: 100% 2px; }

/* Stats strip — glass cards, numbers from the /bible/ page */
.spread-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
  max-width: 46rem;
  /* pinned to the bottom of the spread, in the dark ground under the dome */
  margin: auto 0 0;
  padding-top: var(--sp-10);
}
@media (min-width: 721px) {
  .spread-content {
    min-height: clamp(600px, 86vh, 820px);
    display: flex; flex-direction: column; align-items: flex-start;
    padding-bottom: var(--sp-8);
  }
}
.spread-stat {
  position: relative;
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  border-radius: var(--r-lg);
  background: rgba(28,25,23,.38);
  border: 1px solid rgba(251,191,36,.22);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  display: flex; flex-direction: column-reverse; gap: 2px;
}
.spread-stat dd {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 800; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.spread-stat dt {
  font-size: var(--text-xs); line-height: 1.35;
  color: rgba(250,250,249,.78);
}
@media (max-width: 720px) {
  .spread { min-height: 0; }
  .spread-content { padding-bottom: var(--sp-16); }
  .spread-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--sp-8); }
  .spread-art { object-position: 60% 100%; }
}

/* Entrance: staggered rise on load (CSS only, no JS needed) */
@keyframes v2-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes v2-settle { from { transform: scale(1.08); filter: brightness(.6); } to { transform: scale(1); filter: none; } }
@keyframes v2-sweep { 0%, 15% { background-position: 0 0, 120% 0; } 70%, 100% { background-position: 0 0, -120% 0; } }
@keyframes v2-twinkle { 0%, 100% { opacity: .35; } 50% { opacity: .7; } }

.motion-full .spread-art { animation: v2-settle 2.2s var(--ease-out-expo) both; }
.motion-full .spread-shimmer { animation: v2-sweep 7s ease-in-out 1.2s infinite; }
.motion-full .spread-stars { animation: v2-twinkle 6s ease-in-out infinite; }
.motion-full .spread-content > *,
.motion-subtle .spread-content > * { animation: v2-rise 900ms var(--ease-out-expo) both; }
.spread-content > :nth-child(2) { animation-delay: 80ms; }
.spread-content > :nth-child(3) { animation-delay: 160ms; }
.spread-content > :nth-child(4) { animation-delay: 240ms; }
.spread-content > :nth-child(5) { animation-delay: 380ms; }

/* Parallax with CSS scroll-driven animations (Chrome/Edge 115+, Safari 26+); others simply don't move */
@supports (animation-timeline: view()) {
  @keyframes v2-parallax { to { transform: translateY(14%) scale(1.04); } }
  @keyframes v2-lift     { to { transform: translateY(-40px); opacity: .0; } }
  .motion-full .spread-media picture {
    animation: v2-parallax linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 100%;
  }
  .motion-full .spread-content {
    animation: v2-lift linear both;
    animation-timeline: view();
    animation-range: exit 10% exit 90%;
  }
}

/* ─────────────────────────────────────────
   3. HOMEPAGE FLOW UNDER THE SPREAD
───────────────────────────────────────── */
.suite-after-spread { padding-top: var(--sp-10); }
.has-spread .suite-first::before { display: none; }

/* "Faith first" order: feature card directly under the spread */
.feature-first { padding-top: var(--sp-10); }
.feature-first > .hero,
.suite-after-spread + .hero {
  max-width: calc(var(--container) - 2 * var(--gutter));
  width: calc(100% - 2 * var(--gutter));
  margin: var(--sp-4) auto var(--sp-10);
  min-height: clamp(420px, 56vh, 600px);
  border-radius: 24px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  box-shadow: 0 24px 60px -40px var(--c-overlay);
}
.feature-first > .hero .hero-gradient-bg { background: var(--c-surface); border-radius: inherit; }
.feature-first > .hero .hero-gradient-bg::before { width: 420px; height: 420px; top: -140px; right: -60px; }
.feature-first > .hero .hero-gradient-bg::after  { width: 360px; height: 360px; bottom: -120px; left: -60px; }
.feature-first > .hero .hero-grid-overlay { border-radius: inherit; opacity: .5; }
[data-theme="dark"] .feature-first > .hero .hero-grid-overlay { opacity: .12; }
.feature-first > .hero .hero-content { padding-bottom: var(--sp-8); }
.suite-after-feature .suite-section { padding-top: var(--sp-4); }
@media (max-width: 640px) {
  .feature-first > .hero { min-height: 420px; border-radius: 18px; margin-bottom: var(--sp-8); }
}

/* Faith and AI row gets a quiet gold wash so it reads as the lead section */
.home-section--faith { position: relative; }
.home-section--faith::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 80% at 50% 0%, var(--c-accent-dim), transparent 70%);
}

/* Section titles: a gold underline draws in as the header reveals */
.section-header .section-title { position: relative; }
.section-header.reveal .section-title::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 2.5em;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-1));
  border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 900ms var(--ease-out-expo) 200ms;
}
.section-header.reveal.is-visible .section-title::after { transform: scaleX(1); }
html:not(.js) .section-header .section-title::after { transform: none; }

/* Smoother, springier reveals */
.reveal, .stagger > * { transition-timing-function: var(--ease-out-expo); transition-duration: 800ms; }
.motion-full .reveal:not(.is-visible) { filter: blur(6px); }
.motion-full .reveal { transition-property: opacity, transform, filter; }


/* ─────────────────────────────────────────
   4. CARDS — stretched link, gradient border, pointer glow
───────────────────────────────────────── */
.article-card { position: relative; isolation: isolate; }
.article-card__link { color: inherit; text-decoration: none; }
.article-card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.article-card .category-badge { position: absolute; z-index: 2; }
.article-card:focus-within { box-shadow: var(--shadow-card-hover); }
.article-card__link:focus-visible { outline: none; box-shadow: none; }
.article-card:has(.article-card__link:focus-visible) {
  outline: 2px solid var(--c-accent); outline-offset: 3px;
}

/* Gradient border that spins in on hover */
.glow-card { --mx: 50%; --my: 0%; }
.glow-card::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--angle), transparent 0 40%, var(--gold-2) 50%, var(--gold-1) 55%, transparent 65% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--ease-base);
}
.glow-card::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--c-accent) 12%, transparent), transparent 45%);
  opacity: 0; transition: opacity var(--ease-base);
}
@keyframes v2-spin { to { --angle: 360deg; } }
.motion-full .glow-card:hover::before { opacity: 1; animation: v2-spin 3.5s linear infinite; }
.motion-full .glow-card:hover::after { opacity: 1; }
.motion-subtle .glow-card:hover::before { opacity: .8; }
.suite-card.glow-card { position: relative; }
.suite-card.glow-card > * { position: relative; z-index: 1; }

/* Magnetic hero button */
.hero-read-btn { --tx: 0px; --ty: 0px; position: relative; overflow: hidden; transform: translate(var(--tx), var(--ty)); transition: transform 300ms var(--ease-out-expo), box-shadow var(--ease-base), gap var(--ease-spring); }


/* ─────────────────────────────────────────
   5. ARTICLES — reading progress
───────────────────────────────────────── */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 101;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2), var(--gold-1));
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}
body.admin-bar .reading-progress { top: var(--wp-admin--admin-bar--height, 32px); }
@supports (animation-timeline: scroll()) {
  @keyframes v2-progress { to { transform: scaleX(1); } }
  .reading-progress { animation: v2-progress linear both; animation-timeline: scroll(root); }
}
.post-header__excerpt p { margin: 0; }


/* ─────────────────────────────────────────
   6. PAGE-TO-PAGE VIEW TRANSITIONS (cross-document)
   Chrome/Edge 126+, Safari 18.2+. Other browsers navigate normally.
───────────────────────────────────────── */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: 220ms ease both v2-vt-out; }
::view-transition-new(root) { animation: 380ms var(--ease-out-expo) both v2-vt-in; }
::view-transition-group(*) { animation-duration: 450ms; animation-timing-function: var(--ease-out-expo); }
@keyframes v2-vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes v2-vt-in  { from { opacity: 0; transform: translateY(12px); } }


/* ─────────────────────────────────────────
   7. MOTION LEVELS & REDUCED MOTION
───────────────────────────────────────── */
.motion-subtle .hero-gradient-bg::before,
.motion-subtle .hero-gradient-bg::after,
.motion-subtle .hero-orb { animation: none; }

.motion-off *, .motion-off *::before, .motion-off *::after {
  animation: none !important;
  transition-duration: 0.01ms !important;
}
.motion-off .reveal, .motion-off .reveal-fade, .motion-off .stagger > * { opacity: 1 !important; transform: none !important; filter: none !important; }
.motion-off .section-header .section-title::after { transform: none; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-fade, .stagger > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .section-header .section-title::after { transform: none; }
  .spread-btn, .hero-read-btn { transform: none !important; }
  .spread-media picture, .spread-content { animation: none !important; }
  .reading-progress { animation: none; display: none; }
  .suite-track { scroll-behavior: auto; }
}

/* High-contrast / forced colours: drop decorative layers */
@media (forced-colors: active) {
  .spread-shimmer, .spread-stars, .glow-card::before, .glow-card::after, .spread-btn::after { display: none; }
  .spread-title { -webkit-text-fill-color: CanvasText; background: none; }
}

/* Print: no decoration */
@media print {
  .site-header, .reading-progress, .spread-media, .spread-arc-label, .suite-first, .suite-after-feature, .suite-band, .video-section, .font-toggle { display: none !important; }
  .spread { min-height: 0; color: #000; background: none; }
  .spread-title { -webkit-text-fill-color: #000; }
}


/* ═══════════════════════════════════════════════════════════
   v2.1 ADDITIONS
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   8. SERIF HEADLINE SWITCH
───────────────────────────────────────── */
.font-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  color: var(--c-text-muted);
  background: transparent; border: 0; cursor: pointer;
  transition: color var(--ease-fast), background-color var(--ease-fast);
}
.font-toggle:hover { color: var(--c-accent-ink); background: var(--c-accent-dim); }
.font-toggle__glyph {
  /* System serif so Newsreader is not requested until the switch is on. */
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; line-height: 1;
}
[data-font="serif"] .font-toggle__glyph {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
}
.font-toggle[aria-pressed="true"] { color: var(--c-accent-ink); background: var(--c-accent-dim); }
.font-toggle[aria-pressed="true"] .font-toggle__glyph { font-family: var(--font-heading); }

[data-font="serif"] {
  --font-heading: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
}
[data-font="serif"] :is(h1, h2, h3, .hero-title, .section-title, .post-header__title, .article-card__title, .spread-title, .suite-name, .study-hero__title, .study-series__title) {
  font-weight: 600;
  letter-spacing: -.012em;
}
[data-font="serif"] .spread-title { font-weight: 600; letter-spacing: -.02em; line-height: 1.04; }


/* ─────────────────────────────────────────
   9. LIVE ARCS ON THE SPREAD
───────────────────────────────────────── */
.spread-arcs {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0; transition: opacity 600ms ease;
}
.spread.has-arcs .spread-arcs { opacity: 1; }

/* Standfirst: "Sweep across…" only when live arcs are running (or, on a
   typical desktop, when they are about to). Otherwise a true alternative. */
.spread-dek__arcs,
.spread-dek__explore { margin-left: 0.3em; }
.spread-dek__arcs { display: none; }
.spread-dek__explore { display: inline; }
@media (pointer: fine) and (min-width: 900px) {
  body.motion-full .spread:not(.no-arcs) .spread-dek__arcs { display: inline; }
  body.motion-full .spread:not(.no-arcs) .spread-dek__explore { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .spread-dek__arcs { display: none !important; }
  .spread-dek__explore { display: inline !important; }
}
.spread.has-arcs .spread-dek__arcs { display: inline; }
.spread.has-arcs .spread-dek__explore { display: none; }

.spread-arc-label {
  position: absolute; z-index: 3;
  left: 0; top: 0;
  contain: layout paint style;
  will-change: transform;
  padding: .35em .8em;
  border-radius: var(--r-full);
  background: rgba(28,25,23,.72);
  border: 1px solid rgba(251,191,36,.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #FDE68A;
  font-size: var(--text-xs); font-weight: 600; white-space: nowrap;
  pointer-events: none;
  opacity: 0; transition: opacity 250ms ease;
}
.spread-arc-label.is-on { opacity: 1; }
@supports (animation-timeline: view()) {
  .motion-full .spread-arcs { animation: v2-parallax linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
}


/* ─────────────────────────────────────────
   10. PLUGIN SUITE — SLIM BAND NEAR THE FOOTER
───────────────────────────────────────── */
.suite-btn { color: #1C1917 !important; } /* v1 white on amber was 2.2:1 */
.suite-band {
  position: relative;
  margin-top: var(--sp-16);
  padding-block: var(--sp-12);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(251,191,36,.14), transparent 60%),
    radial-gradient(50% 120% at 100% 100%, rgba(217,119,6,.12), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--c-surface) 70%, var(--c-bg)), var(--c-bg));
  border-block: 1px solid color-mix(in srgb, var(--gold-2) 22%, var(--c-border));
}
.suite-band::before { /* faint arc motif echoing the spread */
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; right: -320px; top: -560px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 100%, transparent 0 22px, rgba(251,191,36,.07) 22px 23px);
  mask: radial-gradient(closest-side, #000 55%, transparent);
}
.suite-band .suite-section { padding-block: 0; }
.suite-band .container {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  grid-template-areas: "head track" "dots track";
  gap: var(--sp-4) var(--sp-10);
  align-items: start;
}
.suite-band .section-header {
  grid-area: head;
  flex-direction: column; align-items: flex-start;
  border: 0; margin: 0; padding: 0; gap: var(--sp-5);
}
.suite-band .section-title { font-size: var(--text-2xl); }
.suite-band .section-title::after { display: none; }
.suite-band .suite-sub { font-size: var(--text-sm); }
.suite-band .suite-track { grid-area: track; padding: var(--sp-1) var(--sp-1) var(--sp-3); gap: var(--sp-4);
  mask: linear-gradient(90deg, #000 85%, transparent); -webkit-mask: linear-gradient(90deg, #000 85%, transparent); }
.suite-band .suite-dots { grid-area: dots; justify-content: flex-start; }
.suite-band .suite-card {
  flex: 0 0 min(330px, 80%);
  padding: var(--sp-5);
  gap: var(--sp-2);
  background: color-mix(in srgb, var(--c-surface) 82%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.suite-band .suite-icon { width: 42px; height: 42px; font-size: 1.3rem; }
.suite-band .suite-name { font-size: var(--text-lg); }
.suite-band .suite-pitch {
  font-size: var(--text-sm); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  flex: 0 0 auto; max-height: calc(1.55em * 3);
}
.suite-band .suite-points { flex-direction: row; flex-wrap: wrap; gap: .35em; }
.suite-band .suite-points li {
  font-size: .72rem; padding: .2em .65em .2em 1.5em;
  border-radius: var(--r-full);
  background: var(--c-accent-dim);
}
.suite-band .suite-points li::before { left: .55em; }
.suite-band .suite-actions { margin-top: auto; padding-top: var(--sp-2); }
@media (max-width: 900px) {
  .suite-band .container { grid-template-columns: 1fr; grid-template-areas: "head" "track" "dots"; }
  .suite-band .suite-track { mask: none; -webkit-mask: none; }
  .suite-band .suite-dots { justify-content: center; }
}
.site-main > .suite-band:last-child { margin-bottom: 0; }


/* ─────────────────────────────────────────
   11. AI DESK (tabs)
───────────────────────────────────────── */
.ai-desk__kicker {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-accent-ink); margin: 0 0 .3em;
}
.ai-desk__tabs {
  position: relative;
  display: none;
  gap: var(--sp-1);
  padding: 4px;
  margin-bottom: var(--sp-6);
  border-radius: var(--r-full);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  width: max-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
}
.ai-desk.is-tabbed .ai-desk__tabs { display: flex; }
.ai-desk__tab {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: .5em;
  padding: .55em 1.1em;
  border: 0; border-radius: var(--r-full);
  background: transparent; cursor: pointer; white-space: nowrap;
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600;
  color: var(--c-text-muted);
  transition: color var(--ease-fast);
}
.ai-desk__tab:hover { color: var(--c-text); }
.ai-desk__tab[aria-selected="true"] { color: #1C1917; }
.ai-desk__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; padding: 0; border: 0; }
.ai-desk__tab[aria-selected="true"] .ai-desk__dot { color: #1C1917 !important; }
.ai-desk__ink {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0;
  width: var(--w, 0); transform: translateX(var(--x, 0));
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 50%, #F59E0B);
  box-shadow: 0 6px 18px -6px rgba(251,191,36,.6);
  transition: transform 450ms var(--ease-out-expo), width 450ms var(--ease-out-expo);
}
.ai-desk__panel + .ai-desk__panel { margin-top: var(--sp-12); }
.ai-desk.is-tabbed .ai-desk__panel + .ai-desk__panel { margin-top: 0; }
.ai-desk__panel:focus-visible { outline-offset: 8px; border-radius: var(--r-lg); }
.ai-desk__panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.ai-desk__panel-title { font-size: var(--text-xl); margin: 0; }
.ai-desk.is-tabbed .ai-desk__panel-title { clip: rect(1px,1px,1px,1px); position: absolute; width: 1px; height: 1px; overflow: hidden; }
.ai-desk.is-tabbed .ai-desk__panel-head { justify-content: flex-end; margin-top: calc(-1 * var(--sp-4)); }
@keyframes v2-panel-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.motion-full .ai-desk__panel.is-entering,
.motion-subtle .ai-desk__panel.is-entering { animation: v2-panel-in 520ms var(--ease-out-expo) both; }


/* ─────────────────────────────────────────
   12. STUDY PATH PAGE
───────────────────────────────────────── */
.study-hero {
  position: relative;
  padding: var(--sp-16) 0 var(--sp-10);
  background: radial-gradient(70% 90% at 50% 0%, var(--c-accent-dim), transparent 70%);
}
.study-hero__eyebrow {
  font-family: var(--font-heading); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--c-accent-ink);
  margin: var(--sp-6) 0 var(--sp-3);
}
.study-hero__title { font-size: var(--text-4xl); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 var(--sp-5); }
.study-hero__intro p { font-size: var(--text-lg); line-height: 1.65; max-width: 44rem; }
.study-hero__note { font-size: var(--text-sm); color: var(--c-text-subtle); display: flex; flex-wrap: wrap; gap: .5em 1em; align-items: center; }
.study-reset {
  border: 1px solid var(--c-border); background: transparent; color: var(--c-text-muted);
  border-radius: var(--r-full); padding: .25em .9em; font-size: var(--text-xs); cursor: pointer;
}
.study-reset:hover { border-color: var(--c-accent); color: var(--c-accent-ink); }
.study-continue {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  border: 1px solid color-mix(in srgb, var(--gold-2) 40%, var(--c-border));
  box-shadow: 0 14px 40px -28px rgba(251,191,36,.6);
}
.study-continue[hidden] { display: none; }
.study-continue__label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-ink); }
.study-continue__link { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-heading); font-weight: 700; color: var(--c-text); text-decoration: none; }
.study-continue__link svg { width: 16px; height: 16px; transition: transform var(--ease-spring); }
.study-continue__link:hover svg { transform: translateX(3px); }

.study-series-list { padding-bottom: var(--sp-20); display: grid; gap: var(--sp-8); }
.study-series {
  --pct: 0;
  position: relative;
  padding: var(--sp-6);
  border-radius: var(--r-2xl);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
}
.study-series__head { display: flex; gap: var(--sp-5); align-items: flex-start; margin-bottom: var(--sp-5); }
.study-ring {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(closest-side, var(--c-surface) 78%, transparent 80% 100%),
    conic-gradient(var(--gold-2) calc(var(--pct) * 1%), var(--c-surface-3) 0);
  transition: --pct 600ms var(--ease-out-expo);
}
.study-ring span { font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; color: var(--c-text); }
.study-series.is-complete .study-ring span::after { content: '✓'; margin-left: 2px; color: var(--gold-2); }
.study-series__title { font-size: var(--text-2xl); margin: 0 0 .25em; }
.study-series__title a { color: inherit; text-decoration: none; }
.study-series__title a:hover { color: var(--c-accent-ink); }
.study-series__blurb { margin: 0 0 .4em; }
.study-series__count { font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-accent-ink); margin: 0; }

.study-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.study-steps::before { /* the path line */
  content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(var(--c-border), var(--c-border));
}
.study-step {
  position: relative;
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: var(--sp-4); align-items: center;
  padding: var(--sp-3) 0;
}
.study-step__num {
  position: relative; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: var(--text-sm); font-weight: 700;
  background: var(--c-surface-2); border: 2px solid var(--c-border); color: var(--c-text-muted);
  transition: background var(--ease-base), border-color var(--ease-base), color var(--ease-base), box-shadow var(--ease-base);
}
.study-step.is-read .study-step__num { background: var(--gold-2); border-color: var(--gold-2); color: #1C1917; }
.study-step.is-next .study-step__num { border-color: var(--gold-2); color: var(--c-accent-ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold-2) 18%, transparent); }
.motion-full .study-step.is-next .study-step__num { animation: v2-pulse 2.4s ease-in-out infinite; }
@keyframes v2-pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--gold-2) 8%, transparent); } }
.study-step__link { font-family: var(--font-heading); font-weight: 700; color: var(--c-text); text-decoration: none; line-height: 1.35; }
.study-step__link:hover { color: var(--c-accent-ink); }
.study-step.is-read .study-step__link { color: var(--c-text-muted); }
.study-step__meta { display: block; font-size: var(--text-xs); color: var(--c-text-subtle); margin-top: 2px; }
.study-step__mark {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .4em .85em; border-radius: var(--r-full);
  border: 1px solid var(--c-border); background: transparent; cursor: pointer;
  font-size: var(--text-xs); font-weight: 600; color: var(--c-text-muted);
  transition: all var(--ease-fast);
}
.study-step__mark svg { width: 14px; height: 14px; opacity: .45; }
.study-step__mark:hover { border-color: var(--gold-2); color: var(--c-accent-ink); }
.study-step__mark[aria-pressed="true"] { background: var(--c-accent-dim); border-color: color-mix(in srgb, var(--gold-2) 50%, transparent); color: var(--c-accent-ink); }
.study-step__mark[aria-pressed="true"] svg { opacity: 1; }
html:not(.js) .study-step__mark, html:not(.js) .study-reset, html:not(.js) .study-hero__note { display: none; }
@media (max-width: 640px) {
  .study-series { padding: var(--sp-5) var(--sp-4); }
  .study-step { grid-template-columns: 36px minmax(0, 1fr); }
  .study-step__mark { grid-column: 2; justify-self: start; }
  .study-ring { flex-basis: 52px; width: 52px; height: 52px; }
}
@property --pct { syntax: '<number>'; inherits: true; initial-value: 0; }

/* v2.2: plugin landing pages (live 1.1.1 templates) use white on amber, 2.2:1.
   Same fix as .suite-btn: dark text on amber. */
.aipt-lp .lp-btn-primary,
.aipt-lp .lp-btn-primary:hover,
.aipt-lp .lp-rail-item.is-active .lp-rail-num { color: #1C1917 !important; }

/* ─────────────────────────────────────────
   12. MOBILE PERFORMANCE (2.2.2)
   Phones and other coarse pointers: keep the still art and short
   entrances, drop the continuous/paint-heavy motion-full effects.
   Desktop (pointer: fine) is unchanged. Customizer
   motion-subtle / motion-off and prefers-reduced-motion still win.
───────────────────────────────────────── */
@media (pointer: coarse) {
  .spread-shimmer,
  .spread-stars { display: none; }

  .motion-full .spread-art { animation: none; }
  .motion-full .hero-gradient-bg::before,
  .motion-full .hero-gradient-bg::after,
  .motion-full .hero-orb,
  .hero-gradient-bg::before,
  .hero-gradient-bg::after,
  .hero-orb {
    animation: none;
    filter: none;
  }
  .motion-full .reveal:not(.is-visible) { filter: none; }
  .motion-full .reveal { transition-property: opacity, transform; }

  @supports (animation-timeline: view()) {
    .motion-full .spread-media picture,
    .motion-full .spread-content,
    .motion-full .spread-arcs { animation: none !important; }
  }

  /* Solid header: never blur on a coarse pointer. The v1 selector
     :not(.is-front-page) .site-header also matches wrappers on the
     homepage, so it is overridden here too. Homepage stays transparent
     until scroll; inner pages and the scrolled bar are opaque. */
  .site-header,
  :not(.is-front-page) .site-header,
  .is-front-page .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header.scrolled,
  .is-front-page .site-header.scrolled,
  body:not(.is-front-page) .site-header,
  :not(.is-front-page) .site-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--c-surface);
  }

  /* Suite cards: same shape, solid fill instead of frosted glass. */
  .suite-band .suite-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--c-surface);
  }
}

