/* ═══════════════════════════════════════════════════════════════════
   GES THEME — screen.css
   Ghost theme: ges-theme v1.0.0 | Ghost >= 6.21.0
   Site: blog.wininhealth.com

   TABLE OF CONTENTS (21 sections)
   ─────────────────────────────────────────────────────────────
   1.  CORE RESET & BOX MODEL
   2.  DESIGN TOKENS (includes dark mode token overrides — see §2b)
   3.  TYPOGRAPHY & GLOBALS
   4.  LAYOUT CONTAINERS
   5.  SITE HEADER
   6.  MEGA-MENU DROPDOWNS
   7.  MOBILE NAVIGATION
   8.  HERO SECTIONS
   9.  MARQUEE & BRAND LISTS
   10. SEASONAL COLLECTIONS
   11. BRAND PROFILE SYSTEM
   12. AUTHOR PROFILE SYSTEM
   13. ARTICLE LAYOUT
   14. POST CARDS & FEED GRIDS
   15. MIGHT ALSO LIKE
   16. GHOST KOENIG CARDS
   17. SITE FOOTER
   18. BRANDS CTA SECTION
   19. ERROR / 404 PAGE
   20. ANIMATIONS & REVEALS
   21. RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────
   1. CORE RESET & BOX MODEL
   Universal *, ::before, ::after reset.
   Smooth scroll, focus-visible outlines, media defaults.
   ───────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Accessibility: Focus styles */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

/* Skip-to-content link (accessibility — keyboard users) */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--color-bg, #fff);
  color: var(--color-text, #0a0b0a);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 1rem;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

/* ─────────────────────────────────────────────────────────────
   2. DESIGN TOKENS
   :root custom properties — palette, glass, spacing, radius,
   shadows, z-index scale, transition durations.
   ───────────────────────────────────────────────────────────── */

:root {
  /* ── Palette ── */
  --color-bg: #F9F8F4;
  --color-bg-alt: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-accent: #B2C5B2;
  --color-olive-accent: #4b5344;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-error: #FF3B30;

  /* ── Blob palette (static fallbacks) ── */
  --blob-color-1: #dbece5;
  --blob-color-2: #f3e6d8;
  --blob-color-3: #e2e2ea;

  /* ── Seasonal palette ── */
  --season-spring-1: #82B585;
  --season-summer-1: #E6C768;
  --season-autumn-1: #C47B50;
  --season-winter-1: #7AAFC4;
  --season-spring-2: #B0D4A0;
  --season-summer-2: #A8CBE3;
  --season-autumn-2: #D99E6A;
  --season-winter-2: #B8CBD6;
  --season-spring-3: #D4EAC8;
  --season-summer-3: #8FA878;
  --season-autumn-3: #C7A056;
  --season-winter-3: #E2EBF0;
  --cycle-duration: 15s;

  /* ── Typography ── */
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Glass ── */
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);

  /* ── Footer (always over dark video) ── */
  --color-footer-text: #ffffff;
  --color-footer-text-muted: rgba(255, 255, 255, 0.7);

  /* ── Spacing & Layout ── */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  --space-xl: 8rem;
  --radius: 12px;
  --nav-height: 72px;
  --blur: 20px;

  /* ── Motion ── */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.45s;
  --duration-fast: 300ms;

  /* ── Z-index scale ── */
  --z-base: 1;
  --z-header: 100;
  --z-dropdown: 200;
  --z-overlay: 300;
  --z-modal: 400;

  /* ── Nav ── */
  --nav-bubble-height: 56px;
  --color-nav-initial: var(--color-text);
  --color-nav-scrolled: #ffffff;
  --glass-bg-mobile: rgba(255, 255, 255, 0.85);
  --color-mobile-text: var(--color-text);
  --shop-bg: var(--color-text);
  --shop-text: #ffffff;
  --shop-bg-scrolled: #ffffff;
  --shop-text-scrolled: var(--color-text);

  /* ── Ghost Admin font API bridge ── */
  --gh-font-heading: var(--font-heading);
  --gh-font-body: var(--font-body);
}

/* ── §2b. DARK MODE TOKEN OVERRIDES ── */
/* ── Deep Dark Mode ── */
body.is-dark {
  /* ── Core palette ── */
  --color-bg: #0a0b0a;
  --color-bg-alt: #141514;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.6);
  --color-accent: #9cb9a9;
  --color-olive-accent: #c0c8b8;
  --color-border: rgba(255, 255, 255, 0.08);

  /* ── Blob palette ── */
  --blob-color-1: #2a3a32;
  --blob-color-2: #3a3028;
  --blob-color-3: #2a2a34;

  /* ── Glass ── */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);

  /* ── Nav ── */
  --color-nav-initial: #ffffff;
  --color-nav-scrolled: #ffffff;
  --glass-bg-mobile: rgba(10, 11, 10, 0.95);
  --color-mobile-text: #ffffff;
  --shop-bg: #ffffff;
  --shop-text: #0a0b0a;
  --shop-bg-scrolled: rgba(255, 255, 255, 0.15);
  --shop-text-scrolled: #ffffff;

  /* ── Force body paint (defeats Ghost/plugin overrides) ── */
  background-color: #0a0b0a !important;
  color: #ffffff !important;
}

/* ── PILLAR THEME MAPPING ── */
/* Base defaults — inherits from :root tokens */
[data-theme] {
  --bg-g1: var(--color-bg);
  --bg-g2: var(--color-bg);
  --season-color: var(--color-text);
}

[data-theme="peak-vitality"] {
  --bg-g1: #FBF5E0;
  /* warm golden-cream */
  --bg-g2: #EAF4F8;
  /* pale sky-blue */
  --season-color: var(--season-summer-1);
  /* #E6C768 golden */
  --hero-blob-1: var(--season-summer-1);
  --hero-blob-2: var(--season-summer-2);
  --hero-blob-3: var(--season-summer-3);
  --season-badge-bg: rgba(230, 199, 104, 0.15);
  --season-badge-border: rgba(230, 199, 104, 0.4);
  --season-badge-text: #8A6F20;
}

[data-theme="restorative-wellness"] {
  --bg-g1: #EFF4F8;
  /* cool ice-blue white, crisp frost */
  --bg-g2: #F4F0F7;
  /* hint of lavender frost */
  --season-color: var(--season-winter-1);
  /* #7AAFC4 frost blue */
  --hero-blob-1: var(--season-winter-1);
  --hero-blob-2: var(--season-winter-2);
  --hero-blob-3: var(--season-winter-3);
  --season-badge-bg: rgba(122, 175, 196, 0.15);
  --season-badge-border: rgba(122, 175, 196, 0.4);
  --season-badge-text: #2A5E7A;
}

[data-theme="metabolic-reset"] {
  --bg-g1: #EEF6EE;
  /* mint-white, fresh spring morning */
  --bg-g2: #F2F7F0;
  /* pale green-white, new growth */
  --season-color: var(--season-spring-1);
  /* #82B585 vivid fresh sage */
  --hero-blob-1: var(--season-spring-1);
  --hero-blob-2: var(--season-spring-2);
  --hero-blob-3: var(--season-spring-3);
  --season-badge-bg: rgba(130, 181, 133, 0.15);
  --season-badge-border: rgba(130, 181, 133, 0.4);
  --season-badge-text: #3E6B42;
}

[data-theme="immune-resilience"] {
  --bg-g1: #F7F0E8;
  /* warm parchment, fallen leaves warmth */
  --bg-g2: #EDF3EF;
  /* cool forest shadow, complementary */
  --season-color: var(--season-autumn-1);
  /* #C47B50 harvest amber-terra */
  --hero-blob-1: var(--season-autumn-1);
  --hero-blob-2: var(--season-autumn-2);
  --hero-blob-3: var(--season-autumn-3);
  --season-badge-bg: rgba(196, 123, 80, 0.15);
  --season-badge-border: rgba(196, 123, 80, 0.4);
  --season-badge-text: #7A4428;
}

body.is-dark [data-theme="peak-vitality"] {
  --bg-g1: #0E1A0F;
  /* deep forest green */
  --bg-g2: #101C20;
  /* deep teal-black */
  --season-color: var(--season-summer-1);
  --hero-blob-1: rgba(230, 199, 104, 0.35);
  --hero-blob-2: rgba(168, 203, 227, 0.25);
  --hero-blob-3: rgba(143, 168, 120, 0.25);
  --season-badge-bg: rgba(230, 199, 104, 0.08);
  --season-badge-border: rgba(230, 199, 104, 0.2);
  --season-badge-text: var(--season-summer-1);
}

body.is-dark [data-theme="restorative-wellness"] {
  --bg-g1: #08101A;
  /* deep navy-black */
  --bg-g2: #100E18;
  /* deep midnight */
  --season-color: var(--season-winter-1);
  --hero-blob-1: rgba(122, 175, 196, 0.35);
  --hero-blob-2: rgba(184, 203, 214, 0.25);
  --hero-blob-3: rgba(226, 235, 240, 0.25);
  --season-badge-bg: rgba(122, 175, 196, 0.08);
  --season-badge-border: rgba(122, 175, 196, 0.2);
  --season-badge-text: var(--season-winter-1);
}

body.is-dark [data-theme="metabolic-reset"] {
  --bg-g1: #0E1A0E;
  /* deep spring green-black */
  --bg-g2: #121A10;
  /* deep new-growth shadow */
  --season-color: var(--season-spring-1);
  --hero-blob-1: rgba(130, 181, 133, 0.35);
  --hero-blob-2: rgba(176, 212, 160, 0.25);
  --hero-blob-3: rgba(212, 234, 200, 0.25);
  --season-badge-bg: rgba(130, 181, 133, 0.08);
  --season-badge-border: rgba(130, 181, 133, 0.2);
  --season-badge-text: var(--season-spring-1);
}

body.is-dark [data-theme="immune-resilience"] {
  --bg-g1: #1A1008;
  /* deep amber-brown dark */
  --bg-g2: #101A10;
  /* deep forest dark */
  --season-color: var(--season-autumn-1);
  --hero-blob-1: rgba(196, 123, 80, 0.35);
  --hero-blob-2: rgba(217, 158, 106, 0.25);
  --hero-blob-3: rgba(199, 160, 86, 0.25);
  --season-badge-bg: rgba(196, 123, 80, 0.08);
  --season-badge-border: rgba(196, 123, 80, 0.2);
  --season-badge-text: var(--season-autumn-1);
}

/* Dark mode is opt-in via manual toggle only (body.is-dark).
   System prefers-color-scheme is intentionally not used —
   light mode is the default experience. */

/* ─────────────────────────────────────────────────────────────
   3. TYPOGRAPHY & GLOBALS
   Base body font-family, line-height.  Heading scale h1–h6.
   Link defaults.  Drop-cap .has-dropcap::first-letter.
   Blockquote, <code>, <pre> styles.
   ───────────────────────────────────────────────────────────── */

body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

/* ─────────────────────────────────────────────────────────────
   4. LAYOUT CONTAINERS
   .viewport — full-page flex wrapper (min-height: 100dvh).
   .site-main — flex-grow child below header.
   Inner content widths & sidebar grid (if applicable).
   ───────────────────────────────────────────────────────────── */
/* ── Consolidate Layout Containers ── */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
  position: relative;
  z-index: 10;
}

@media (min-width: 1200px) {
  .section-container {
    padding: 0;
  }
}

.section-header-block {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0;
}


/* ─────────────────────────────────────────────────────────────
   5. SITE HEADER
   #site-header — fixed / sticky bar.
   .nav-bubble .nav-unified — glass pill nav container.
   .logo / .logo-icon — SVG logo sizing.
   .nav-menu — horizontal link list.
   .search-container / .search-btn — Ghost search wiring.
   .nav-right-content — shop btn, lang link, theme toggle.
   .hamburger-btn — mobile menu trigger.
   ───────────────────────────────────────────────────────────── */

/* ── Header bar ── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: var(--z-header);
  padding: 14px 3vw;
  transition: padding var(--duration) var(--ease-premium);
}

#site-header.scrolled {
  padding: 10px 3vw;
}

/* ── Nav unified wrapper ── */
.nav-unified {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Nav bubbles (shared base) ──
   CRITICAL: Both states share identical height + padding so
   nothing shifts during scroll. Only background/shadow animate. */
.nav-bubble {
  pointer-events: auto;
  display: flex;
  align-items: center;
  height: var(--nav-bubble-height);
  max-height: var(--nav-bubble-height);
  box-sizing: border-box;
  overflow: visible;
  padding: 0 28px;
  border-radius: 100px;
  /* Start fully transparent — no visible border at all */
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  color: var(--color-nav-initial);
  /* Only transition visual properties, never layout ones */
  transition:
    background-color var(--duration) var(--ease-premium),
    border-color var(--duration) var(--ease-premium),
    box-shadow var(--duration) var(--ease-premium),
    backdrop-filter var(--duration) var(--ease-premium),
    -webkit-backdrop-filter var(--duration) var(--ease-premium);
}

/* ── DESKTOP layout ── */
@media (min-width: 1025px) {
  .nav-unified {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
  }

  .nav-left-content {
    gap: 32px;
  }

  .nav-right-content {
    gap: 18px;
  }

  /* Scrolled: glass appears — same height/padding, only visuals change */
  #site-header.scrolled .nav-left-content,
  #site-header.scrolled .nav-right-content {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    box-shadow: var(--glass-shadow);
    border-color: var(--glass-border);
  }
}

/* ── MOBILE layout ── */
@media (max-width: 1024px) {
  .nav-unified {
    padding: 0;
  }

  /* On mobile the unified wrapper IS the bubble */
  .nav-left-content,
  .nav-right-content {
    height: auto;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
  }

  .nav-unified.nav-bubble {
    height: var(--nav-bubble-height);
    padding: 0 20px;
    border-radius: 100px;
    /* Restored to make it a floating pill */
    background: var(--glass-bg);
    /* Permanently glassmorphic on mobile */
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    color: var(--color-mobile-text);
  }

  .nav-right-content {
    display: flex;
    align-items: center;
    gap: 16px;
    /* Increased gap for better thumb clicking */
    padding-right: 4px;
  }

  /* The mobile bubble is permanently glassmorphic, no scroll override needed */

  .nav-group-wrapper,
  .search-container,
  .lang-link {
    display: none !important;
  }

  .nav-unified .shop-btn {
    display: none !important;
  }

  .hamburger-btn {
    display: flex !important;
  }

  .theme-toggle,
  .hamburger-btn {
    min-width: 44px;
    /* Increased size for accessibility */
    min-height: 44px;
  }

  .theme-icon {
    width: 22px !important;
    height: 22px !important;
  }

  .logo-icon {
    height: 38px !important;
    /* Larger logo on mobile */
  }
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-icon {
  width: auto;
  height: 34px;
  display: block;
}

.logo-icon path,
.logo-icon svg {
  fill: currentColor;
}

.logo span,
.logo .is-title {
  display: none !important;
}

/* ── Nav group wrapper ── */
.nav-group-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

/* ── Nav menu ── */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-item {
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  opacity: 0.85;
  transition: opacity 0.2s;
  cursor: pointer;
  white-space: nowrap;
  padding: 8px 0;
}



.nav-link:hover {
  opacity: 0.55;
}

.nav-item.nav-current .nav-link {
  opacity: 1;
  font-weight: 600;
}

/* Reset button appearance for nav triggers (keyboard a11y — replaces <span>) */
button.nav-link {
  background: none;
  border: none;
  padding: 8px 0;
}

/* ── Search button ── */
.search-container {
  display: flex;
  align-items: center;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(128, 128, 128, 0.25);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  transition:
    border-color var(--duration-fast) var(--ease-default),
    background-color var(--duration-fast) var(--ease-default);
}

.search-btn:hover {
  border-color: currentColor;
  background: rgba(128, 128, 128, 0.08);
}

.search-icon-svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ── Theme toggle ── */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition:
    opacity 0.2s,
    transform 0.4s var(--ease-premium);
}

.theme-toggle:hover {
  opacity: 1;
  transform: rotate(15deg);
}

.theme-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* Sun / Moon icon visibility */
.icon-moon {
  display: none;
}

body.is-dark .icon-sun {
  display: none;
}

body.is-dark .icon-moon {
  display: block;
}

/* ── Language link ── */
.lang-link {
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  opacity: 0.85;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.lang-link:hover {
  opacity: 0.55;
}

/* ── Shop button ── */
.shop-btn {
  background-color: var(--shop-bg);
  color: var(--shop-text);
  padding: 8px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s var(--ease-premium);
}

.shop-btn:hover {
  opacity: 0.8;
}

/* ── Hamburger ── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition:
    background 200ms var(--ease-premium),
    transform var(--duration-fast) var(--ease-premium);
}

.hamburger-btn:hover {
  background: rgba(128, 128, 128, 0.08);
}

.hamburger-btn:active {
  transform: scale(0.92);
}

/* Two lines → X morph */
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 350ms var(--ease-premium);
}

/* Top: slides down 5px (half gap 4px + half line 1px) then rotates */
body.is-menu-open .hamburger-line--top {
  transform: translateY(5px) rotate(45deg);
}

/* Bot: slides up 5px then rotates */
body.is-menu-open .hamburger-line--bot {
  transform: translateY(-5px) rotate(-45deg);
}

/* ─────────────────────────────────────────────────────────────
   6. MEGA-MENU DROPDOWNS
   .unified-dropdown — slide-down container.
   .dd-tab-content — tab panels (Wellness, Curations, Discover).
   .dd-item / .dd-thumb — post-preview link + thumbnail.
   Tab active state & open/close transitions.
   ───────────────────────────────────────────────────────────── */

/* ── Desktop dropdown ── */
.unified-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 460px;
  /* Fixed uniform width */
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--glass-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s var(--ease-premium);
  color: var(--color-nav-initial);
  text-align: left;
  font-family: var(--font-body);
}

/* Invisible bridge to prevent hover mistriggers (tunnel bug) */
.unified-dropdown::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 30px;
}

.nav-group-wrapper:hover .unified-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(10px);
}

/* ── Section Label ── */
.dd-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  opacity: 0.6;
  font-weight: 700;
  font-family: var(--font-body);
  display: block;
}

/* ── Wellness Section ── */
.dd-wellness-layout {
  display: flex;
  gap: 16px;
}

.dd-wellness-links {
  flex: 1;
}

.dd-pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dd-pillars li a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.96rem;
  /* Reduced to fit one line */
  font-weight: 500;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  /* Slightly tighter padding for smaller font */
  border-radius: 12px;
  letter-spacing: -0.01em;
  position: relative;
  /* For the ::before layer */
  z-index: 1;
  transition: color 0.2s;
}

/* Delicate pseudo-element to hold the dynamic theme background color */
.dd-pillars li a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background-color: var(--season-color, rgba(128, 128, 128, 0.08));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.2s;
}

.dd-pillars li a:hover::before,
.dd-pillars li a.is-hovered::before {
  opacity: 0.12;
  /* Subtle wash of the seasonal color */
}

/* ── Wellness Showcase Card ── */
.dd-pillar-showcase {
  width: 200px;
  flex-shrink: 0;
}

.dd-showcase-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.2) 100%);
  border: 1px solid rgba(128, 128, 128, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}

/* Seasonal color tint overlay */
.dd-showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background-color: var(--season-color, var(--color-accent));
  opacity: 0.08;
  z-index: 0;
  transition: background-color 0.4s ease;
}

body.is-dark .dd-showcase-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Topic groups — swap on hover */
.dd-topics-group {
  display: none;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
  height: 100%;
  animation: dd-fade-in var(--duration-fast) var(--ease-default);
}

.dd-topics-group.is-visible {
  display: flex;
}

/* Pillar title inside the card */
.dd-showcase-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}

/* Tag pills grid */
.dd-showcase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-content: flex-start;
}

.dd-topic-pill {
  position: relative;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--color-text);
  padding: 4px 9px;
  border-radius: 20px;
  white-space: nowrap;
  overflow: hidden;
  z-index: 1;
}

/* Tinted pill background */
.dd-topic-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background-color: var(--season-color, rgba(128, 128, 128, 0.15));
  opacity: 0.15;
  z-index: -1;
  border: 1px solid rgba(128, 128, 128, 0.08);
}

/* CTA button */
.dd-showcase-cta {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  color: var(--color-text);
  padding: 8px 16px;
  border-radius: 10px;
  text-align: center;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 0.3px;
  transition: transform 0.2s var(--ease-premium);
}

.dd-showcase-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background-color: var(--season-color, var(--color-accent));
  opacity: 0.15;
  z-index: -1;
  transition: opacity 0.2s, background-color 0.4s ease;
}

.dd-showcase-cta:hover {
  transform: translateY(-1px);
}

.dd-showcase-cta:hover::before {
  opacity: 0.25;
}

/* ── Curations Section ── */
.dd-section--curations {
  min-width: 380px;
}

.dd-curation-subtext {
  font-size: 13px;
  opacity: 0.7;
  margin-top: -10px;
  margin-bottom: 24px;
}

.dd-brands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.dd-brands-grid li a {
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}

.dd-brands-grid li a:hover {
  opacity: 0.6;
}

.dd-see-all-link {
  font-size: 12px;
  text-decoration: underline;
  font-weight: 700;
  text-transform: uppercase;
  color: inherit;
  letter-spacing: 1px;
}

/* ── Discover Section ── */
.dd-discover-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 320px;
}

.dd-discover-picks,
.dd-discover-posts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dd-latest-compact {
  border-top: 1px solid rgba(128, 128, 128, 0.1);
  padding-top: 16px;
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease-premium);
}

.dd-item:hover {
  transform: translateX(4px);
}

/* Compact variant for nav dropdown */
.dd-item--compact .dd-thumb {
  width: 48px;
  height: 48px;
}

.dd-item .dd-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.dd-thumb--sm {
  width: 48px !important;
  height: 48px !important;
  border-radius: 10px;
}

.dd-thumb-placeholder {
  background: rgba(128, 128, 128, 0.1);
}

.dd-item .dd-meta {
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.5;
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: 0.3px;
}

.dd-item .dd-title {
  font-size: 14px;
  font-family: var(--font-heading);
  line-height: 1.3;
  margin: 0;
}

.dd-title--sm {
  font-size: 13px !important;
}

/* Author row with tooltip */
.dd-discover-authors {
  border-top: 1px solid rgba(128, 128, 128, 0.1);
  padding-top: 16px;
}

.dd-authors-row {
  display: flex;
  gap: 12px;
}

.dd-author {
  display: block;
  position: relative;
  transition: transform 0.2s;
}

.dd-author:hover {
  transform: translateY(-3px) scale(1.05);
}

.dd-author-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
}

.dd-author-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  text-align: center;
  background: rgba(128, 128, 128, 0.1);
}

/* CSS-only author name tooltip */
.dd-author::after {
  content: attr(data-name);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s var(--ease-premium);
  z-index: 10;
}

.dd-author:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Promotional banner */
.dd-promo-banner {
  display: block;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  color: var(--color-text);
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(128, 128, 128, 0.06) 0%, rgba(128, 128, 128, 0.12) 100%);
  border: 1px solid rgba(128, 128, 128, 0.1);
  margin-top: 4px;
  transition: background 0.2s, transform 0.2s var(--ease-premium);
}

.dd-promo-banner:hover {
  background: linear-gradient(135deg, rgba(128, 128, 128, 0.1) 0%, rgba(128, 128, 128, 0.18) 100%);
  transform: translateY(-1px);
}

/* ── Tab Logic ── */
.dd-section {
  display: none;
  animation: dd-fade-in var(--duration-fast) var(--ease-default);
}

.dd-section.active {
  display: block;
}

@keyframes dd-fade-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────────────────────
   7. MOBILE NAVIGATION
   Full-screen takeover panel with mn-* prefix.
   Extracted from Mega-Menu block (§6).
   ───────────────────────────────────────────────────────────── */

/* ── Overlay + Panel: hidden by default ── */
.mn-overlay,
.mn-panel {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease-premium),
    visibility 0.3s var(--ease-premium);
}

.mn-overlay {
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.4);
}

.mn-panel {
  inset: 0;
  z-index: 999;
  background: var(--glass-bg-mobile);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  overflow: hidden;
}

.mn-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: calc(var(--nav-height, 72px) + 24px);
}

.mn-content {
  padding: 0 28px 48px;
  color: var(--color-mobile-text);
}

/* Keep header above the panel */
@media (max-width: 1024px) {
  #site-header {
    z-index: 1000;
  }
}

/* Active state */
body.is-menu-open {
  overflow: hidden;
}

body.is-menu-open .mn-overlay,
body.is-menu-open .mn-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Hide on desktop */
@media (min-width: 1025px) {

  .mn-overlay,
  .mn-panel {
    display: none !important;
  }
}

/* ── Stagger entrance animation ── */
.mn-item {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s var(--ease-premium),
    transform 0.3s var(--ease-premium);
}

body.is-menu-open .mn-item {
  opacity: 1;
  transform: translateY(0);
}

body.is-menu-open .mn-item[data-mn-index="0"] {
  transition-delay: 50ms;
}

body.is-menu-open .mn-item[data-mn-index="1"] {
  transition-delay: 110ms;
}

body.is-menu-open .mn-item[data-mn-index="2"] {
  transition-delay: 170ms;
}

body.is-menu-open .mn-item[data-mn-index="3"] {
  transition-delay: 230ms;
}

/* On close: no delay, faster */
body:not(.is-menu-open) .mn-item {
  transition-duration: 0.2s;
  transition-delay: 0ms;
}

@media (prefers-reduced-motion: reduce) {
  .mn-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Section dividers ── */
.mn-section {
  border-bottom: 1px solid rgba(128, 128, 128, 0.1);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

/* ── Accordion triggers (Wellness, Discover) ── */
.mn-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 14px 0;
  cursor: pointer;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.mn-accordion-trigger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.mn-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 300ms var(--ease-premium);
}

.mn-accordion-trigger[aria-expanded="true"] .mn-chevron {
  transform: rotate(180deg);
}

/* Accordion body — animated via max-height */
.mn-accordion-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.4s var(--ease-premium),
    opacity 0.3s var(--ease-premium);
}

.mn-accordion-body.is-open {
  max-height: 1400px;
  opacity: 1;
}

/* ── Wellness Pillar Rows ── */
.mn-pillar {
  border-bottom: 1px solid rgba(128, 128, 128, 0.08);
}

.mn-pillar:last-child {
  border-bottom: none;
}

.mn-pillar-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 0 12px 12px;
  cursor: pointer;
  min-height: 44px;
  border-left: 3px solid var(--pillar-color, transparent);
  -webkit-tap-highlight-color: transparent;
}

.mn-pillar-trigger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.mn-pillar-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 250ms var(--ease-premium);
}

.mn-pillar-trigger[aria-expanded="true"] .mn-pillar-chevron {
  transform: rotate(180deg);
}

.mn-pillar-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.3s var(--ease-premium),
    opacity 0.2s var(--ease-premium);
}

.mn-pillar-body.is-open {
  max-height: 400px;
  opacity: 1;
}

/* ── Topic Pills ── */
.mn-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 12px 16px;
}

.mn-pill {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--color-mobile-text);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  overflow: hidden;
  z-index: 1;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

/* Seasonal tint via parent --pillar-color */
.mn-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background-color: var(--pillar-color);
  opacity: 0.15;
  z-index: -1;
  border: 1px solid rgba(128, 128, 128, 0.08);
}

.mn-pillar-cta {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--pillar-color);
  text-decoration: none;
  padding: 8px 16px;
  margin: 4px 0 8px 16px;
  transition: opacity 0.2s;
}

.mn-pillar-cta:active {
  opacity: 0.6;
}

/* ── Curations Preview ── */
.mn-link {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: inherit;
  text-decoration: none;
  padding: 14px 0 8px;
  min-height: 44px;
}

.mn-curations-preview {
  padding-left: 4px;
  padding-bottom: 4px;
}

.mn-brand-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.mn-brand-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  opacity: 0.6;
  text-decoration: none;
  transition: opacity 0.2s;
}

.mn-brand-name:active {
  opacity: 1;
}

.mn-explore-link {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-mobile-text);
  opacity: 0.4;
  text-decoration: none;
  margin-top: 8px;
  padding: 4px 0;
  transition: opacity 0.2s;
}

.mn-explore-link:active {
  opacity: 0.8;
}

/* ── Discover Section ── */
.mn-discover-group {
  margin-bottom: 20px;
}

.mn-discover-group:last-child {
  margin-bottom: 0;
}

.mn-group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.45;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.mn-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 8px 0;
  min-height: 44px;
  transition: opacity 0.2s;
}

.mn-post-item:active {
  opacity: 0.6;
}

.mn-post-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.mn-thumb-placeholder {
  background: rgba(128, 128, 128, 0.1);
}

.mn-post-info {
  flex: 1;
  min-width: 0;
}

.mn-post-meta {
  font-size: 11px;
  opacity: 0.5;
  margin-bottom: 2px;
  display: block;
}

.mn-post-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Expert Authors */
.mn-authors-row {
  display: flex;
  gap: 12px;
  padding: 4px 0;
}

.mn-author {
  text-decoration: none;
  transition: transform 0.15s var(--ease-premium);
}

.mn-author:active {
  transform: scale(0.92);
}

.mn-author-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.mn-author-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  overflow: hidden;
  color: inherit;
  opacity: 0.6;
}

/* Promo Banner */
.mn-promo {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(128, 128, 128, 0.06);
  color: inherit;
  text-decoration: none;
  margin-top: 12px;
  transition: opacity 0.2s;
}

.mn-promo:active {
  opacity: 0.6;
}

body.is-dark .mn-promo {
  background: rgba(255, 255, 255, 0.05);
}

/* ── Footer: Shop, Search, Language ── */
.mn-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(128, 128, 128, 0.1);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mn-shop-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 100px;
  background: var(--color-text);
  color: var(--color-bg);
  transition: opacity 0.2s;
}

.mn-shop-btn:active {
  opacity: 0.7;
}

body.is-dark .mn-shop-btn {
  background: #fff;
  color: #0a0b0a;
}

.mn-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 100px;
  color: inherit;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  min-height: 44px;
  transition: opacity 0.2s;
  font-family: var(--font-body);
}

.mn-search-btn:active {
  opacity: 0.6;
}

body.is-dark .mn-search-btn {
  border-color: rgba(255, 255, 255, 0.1);
}

.mn-lang-link {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  opacity: 0.45;
  text-decoration: none;
  padding: 8px;
  transition: opacity 0.2s;
}

.mn-lang-link:active {
  opacity: 0.8;
}

/* ─────────────────────────────────────────────────────────────
   8. HERO SECTIONS
   .home-hero — full-viewport parallax hero on homepage.
   Overlay gradients, headline positioning, scroll CTA.
   Background-attachment: fixed parallax logic.
   ───────────────────────────────────────────────────────────── */

/* ── Hero container ── */
.hero {
  position: relative;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1px;
  background-color: var(--color-bg);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* ── Background blob layer ── */
.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: var(--z-base);
  will-change: transform;
}

/* ── Blob shared base ── */
.blob {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  filter: blur(100px);
  opacity: 0.8;
  /* Added border-radius and filter to will-change for smooth morphing */
  will-change: transform, background-color, border-radius, filter;
}

.blob-1 {
  width: 60vw;
  height: 60vw;
  top: -15%;
  left: -15%;
  animation:
    season-cycle-1 var(--cycle-duration) infinite linear,
    drift-1 25s infinite alternate ease-in-out;
}

.blob-2 {
  width: 50vw;
  height: 50vw;
  bottom: -10%;
  right: -10%;
  animation:
    season-cycle-2 var(--cycle-duration) infinite linear,
    drift-2 30s infinite alternate ease-in-out;
}

.blob-3 {
  width: 40vw;
  height: 40vw;
  top: 30%;
  left: 30%;
  opacity: 0.6;
  animation:
    season-cycle-3 var(--cycle-duration) infinite linear,
    drift-3 35s infinite alternate ease-in-out;
}

/* ── Seasonal color cycles ── */
@keyframes season-cycle-1 {

  0%,
  100% {
    background-color: var(--season-spring-1);
  }

  25% {
    background-color: var(--season-summer-1);
  }

  50% {
    background-color: var(--season-autumn-1);
  }

  75% {
    background-color: var(--season-winter-1);
  }
}

@keyframes season-cycle-2 {

  0%,
  100% {
    background-color: var(--season-spring-2);
  }

  25% {
    background-color: var(--season-summer-2);
  }

  50% {
    background-color: var(--season-autumn-2);
  }

  75% {
    background-color: var(--season-winter-2);
  }
}

@keyframes season-cycle-3 {

  0%,
  100% {
    background-color: var(--season-spring-3);
  }

  25% {
    background-color: var(--season-summer-3);
  }

  50% {
    background-color: var(--season-autumn-3);
  }

  75% {
    background-color: var(--season-winter-3);
  }
}

/* ── Drift animations ── */
@keyframes drift-1 {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(100px);
  }

  50% {
    filter: blur(130px);
  }

  100% {
    transform: translate(50px, -30px) scale(1.05);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    filter: blur(80px);
  }
}

@keyframes drift-2 {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 30% 70% 50% 50% / 50% 50% 70% 30%;
    filter: blur(90px);
  }

  50% {
    filter: blur(120px);
  }

  100% {
    transform: translate(-40px, 25px) scale(1.08);
    border-radius: 70% 30% 50% 50% / 30% 70% 50% 70%;
    filter: blur(110px);
  }
}

@keyframes drift-3 {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 50% 50% 70% 30% / 30% 70% 50% 50%;
    filter: blur(110px);
  }

  50% {
    filter: blur(85px);
  }

  100% {
    transform: translate(30px, -40px) scale(1.03);
    border-radius: 30% 70% 30% 70% / 50% 30% 70% 50%;
    filter: blur(130px);
  }
}

/* ── Noise overlay ── */
.noise-overlay {
  position: absolute;
  inset: 0;
  z-index: calc(var(--z-base) + 1);
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Hero content ── */
.hero-content {
  position: relative;
  z-index: calc(var(--z-base) + 2);
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  will-change: transform, opacity;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-bg);
  margin-bottom: 24px;
}

.hero-content .subtext {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.85;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-8px);
  }

  60% {
    transform: translateY(-4px);
  }
}

/* ── §8b. Hero — Ghost Typography + Organic Warmth ── */

.hero {
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video: full-bleed background */
.hero-bg-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Warm vignette overlay: replaces hero-glass-overlay */
.hero-warm-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgb(211, 211, 211) 0%, transparent 25%),
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.55) 100%),
    radial-gradient(ellipse at 60% 30%, rgba(200, 160, 60, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* Film grain: replaces noise-overlay for hero */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Hero content: centered above overlays */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Ghost title: outline only — video shows through letters */
.hero-content h1.hero-ghost-title {
  font-family: Georgia, serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Tagline rule: flanking lines + small label */
.hero-tagline-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  width: 100%;
  max-width: 480px;
}

.hero-rule-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.hero-tagline-text {
  font-size: 18px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: 500;
}

/* Italic green subtitle */
.hero-italic-sub {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: rgba(200, 240, 160, 0.7);
  letter-spacing: 0.04em;
  margin: 10px 0 0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 90px;
  left: 50%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.6;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgb(255, 255, 255);
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Scroll indicator fade when scrolled down */
.scroll-indicator.scrolled {
  opacity: 0 !important;
  pointer-events: none;
}

.scroll-indicator .arrow {
  position: relative;
  font-size: 16px;
  opacity: 0.5;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* ── Entrance animation base states ── */
.hero-animate-hidden {
  opacity: 0;
  transform: translateY(12px);
}

.scroll-indicator.hero-animate-hidden {
  transform: translateX(-50%) translateY(12px);
}

.hero-animate-in {
  animation: heroFadeUp 0.6s ease forwards;
}

.scroll-indicator.hero-animate-in {
  animation: scrollIndicatorFadeUp 0.5s ease forwards;
  transform: translateX(-50%) translateY(0);
}

.hero-content h1.hero-ghost-title.hero-animate-in {
  animation: heroCharReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollIndicatorFadeUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes heroCharReveal {
  0% {
    opacity: 0;
    transform: scaleY(0.95);
    text-shadow: 0 0 20px rgba(230, 199, 104, 0.5);
  }

  100% {
    opacity: 1;
    transform: scaleY(1);
    text-shadow: 0 0 0px rgba(230, 199, 104, 0);
  }
}

@keyframes heroFocusPull {
  from {
    opacity: 0;
    filter: blur(20px);
    letter-spacing: 0.2em;
  }

  to {
    opacity: 1;
    filter: blur(0);
    letter-spacing: 0.03em;
  }
}

/* Mobile h1 size and animation override */
@media (max-width: 768px) {
  .hero-content h1.hero-ghost-title {
    font-size: 2.8rem;
    letter-spacing: 0.03em;
    line-height: 1.1;
  }

  /* Remove will-change on mobile to conserve memory and reduce layout thrashing */
  .hero-blob,
  .hero-content,
  .hero-content h1.hero-ghost-title,
  .scroll-indicator,
  .scroll-indicator .arrow {
    will-change: auto;
  }

  /* Reduce film grain visibility on mobile (nearly invisible at small scale) */
  .hero-grain {
    opacity: 0.3;
  }

  /* Shorten entrance animations on mobile for faster perceived load */
  .hero-animate-in {
    animation-duration: 0.4s !important;
  }

  .hero-content h1.hero-ghost-title.hero-animate-in {
    animation: heroCharReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }

  .scroll-indicator.hero-animate-in {
    animation-duration: 0.4s !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   HERO ENTRANCE ANIMATION ACCESSIBILITY
   Respect prefers-reduced-motion for users with motion sensitivity
   ───────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  /* Remove all entrance animations */
  .hero-animate-in {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  /* Scroll indicator entrance */
  .scroll-indicator.hero-animate-in {
    animation: none !important;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  /* Hero title character reveal */
  .hero-content h1.hero-ghost-title.hero-animate-in {
    animation: none !important;
    opacity: 1;
    transform: none;
    text-shadow: 0 0 0px rgba(230, 199, 104, 0);
  }

  /* Ensure content is immediately visible without animation */
  .hero-animate-hidden {
    opacity: 1;
    transform: none;
  }

  .scroll-indicator.hero-animate-hidden {
    transform: translateX(-50%) translateY(0);
  }
}


/* ─────────────────────────────────────────────────────────────
   9. MARQUEE & BRAND LISTS
   .marquee-track — infinite horizontal scroll container.
   @keyframes marquee — continuous left-to-right loop.
   Brand logo items inside track.
   ───────────────────────────────────────────────────────────── */

/* ── Section container (shared) ── */
.brand-marquee {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 5vw;
  overflow: hidden;
  background: transparent;
}

/* ── Background blobs ── */
.marquee-bg-mask {
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.bg-shape {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--blob-color-1);
  top: -10%;
  left: -5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 350px;
  height: 450px;
  background: var(--blob-color-2);
  bottom: -5%;
  right: -5%;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation-delay: 3s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: var(--blob-color-3);
  top: 45%;
  left: 15%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation-delay: 6s;
  opacity: 0.5;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -30px) rotate(5deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(-5deg);
  }
}

/* ── Header content ── */
.brand-marquee .header-content {
  text-align: center;
  margin-bottom: var(--space-l);
  position: relative;
  z-index: var(--z-base);
}

.brand-marquee .eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-s);
}

.brand-marquee .header-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: var(--space-s);
}

.brand-marquee .header-content h2 em {
  font-style: italic;
}

.brand-marquee .description {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 500px;
  margin-inline: auto;
}

/* ── Marquee track ── */
.marquee-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  padding: 1rem 0;
  overflow: hidden;
  margin-bottom: var(--space-l);
}

.marquee-track {
  display: flex;
  align-items: center;
  /* No gap — spacing via padding on .brand-item ensures each
     item slot is identical, so translateX(-50%) loops seamlessly */
  gap: 0;
  width: max-content;
  animation: scroll-left 40s linear infinite;
  will-change: transform;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.brand-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  /* Symmetric padding replaces gap — critical for seamless loop */
  padding: 0 1.5rem;
  white-space: nowrap;
  user-select: none;
  cursor: default;
  opacity: 0.5;
  transition: opacity var(--duration-fast) var(--ease-default);
  flex-shrink: 0;
}

.brand-item:hover {
  opacity: 0.7;
}

.brand-item img {
  height: 100%;
  width: auto;
  max-width: 8rem;
  object-fit: contain;
  filter: grayscale(1);
  /* Sharper rendering for raster-embedded SVGs on mobile */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ── CTA Button ── */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-default);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: var(--z-base);
}

.cta-button:hover {
  border-color: var(--color-text-muted);
  background-color: var(--color-bg-alt);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.cta-button svg {
  margin-left: 8px;
  width: 14px;
  height: 14px;
  transition: transform var(--duration-fast) var(--ease-default);
}

.cta-button:hover svg {
  transform: translateX(4px);
}

/* ── Brand marquee dark mode ── */
body.is-dark .brand-marquee .bg-shape {
  opacity: 0.25;
}

body.is-dark .brand-item {
  color: #ffffff;
  opacity: 0.8;
}

body.is-dark .brand-item:hover {
  opacity: 1;
}

body.is-dark .brand-item img,
body.is-dark .brand-item svg {
  filter: grayscale(1) invert(1);
}

/* ── Brand marquee responsive ── */
@media (max-width: 768px) {
  .brand-marquee {
    padding: 3.5rem 5vw;
  }

  .brand-marquee .header-content h2 {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }

  .brand-item {
    height: 2.5rem;
    padding: 0 1.25rem;
  }

  .brand-item img {
    max-width: 6.5rem;
  }

  .marquee-track {
    animation-duration: 30s;
  }
}

@media (max-width: 480px) {
  .brand-marquee {
    padding: 3rem 5vw;
  }

  .brand-item {
    height: 2rem;
    padding: 0 1rem;
  }

  .brand-item img {
    max-width: 5.5rem;
  }

  .marquee-track {
    animation-duration: 25s;
  }
}

/* ─────────────────────────────────────────────────────────────
   10. SEASONAL COLLECTIONS
   Layered Viewport model with mask-image fade:
   L0 .cat-ambient-bg  — masked dynamic gradient (z-index: 0)
   L1 .section-container — content              (z-index: 10)
   ───────────────────────────────────────────────────────────── */

/* ── Container ── */
.pillars {
  display: block;
  width: 100%;
  position: relative;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* ── L0: Masked ambient gradient ── */
.cat-ambient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(120deg, var(--cat-gradient-1), var(--cat-gradient-2));
  transition: background 1.5s ease;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* ── Dynamic Pillar Themes (Reused for Tag Archive Pages) ── */
/* Base Shared Structure */
.pillar-wrapper,
.brand-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  background: linear-gradient(to bottom, var(--bg-g1, var(--color-bg)), var(--bg-g2, var(--color-bg)));
  background-attachment: fixed;
  /* Ensures background covers the whole scrollable area smoothly */
  min-height: 100vh;
  overflow: hidden;
}

/* ── Bottom fade: dissolves the fixed gradient into the page background before the footer ── */
.pillar-wrapper::after,
.brand-wrapper::after {
  display: block;
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20rem;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
  z-index: 0;
}

.pillar-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
  position: relative;
  z-index: 10;
  padding: 0 5vw;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--cat-accent);
  /* Inherits from theme class below */
  margin-bottom: var(--space-s);
}

.pillar-description {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
}

.pillar-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
}


/* ── Noise texture ── */
.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 1;
}

/* ── Glass interface grid ── */
.cat-glass-interface {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 450px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  display: grid;
  grid-template-columns: 35% minmax(0, 65%);
  overflow: hidden;
}

/* ── Sidebar ── */
.cat-sidebar {
  padding: 2rem 2rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Nav menu ── */
.cat-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── Nav items ── */
.cat-nav-item {
  cursor: pointer;
  margin-bottom: 1rem;
  opacity: 0.5;
  transition: all 0.4s ease;
  position: relative;
}

.cat-nav-item:hover {
  opacity: 0.8;
}

.cat-nav-item.active {
  opacity: 1;
}

/* ── Nav title ── */
.cat-nav-title {
  font-size: 1.35rem;
  font-weight: 500;
  font-family: var(--font-body);
  display: block;
  transition: transform 0.4s ease;
  white-space: nowrap;
}

.cat-nav-item.active .cat-nav-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-text);
  transform: translateX(10px);
}

/* ── Indicator dot ── */
.cat-indicator {
  position: absolute;
  left: -15px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--cat-accent);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.3s ease, background-color 1.5s ease;
}

.cat-nav-item.active .cat-indicator {
  opacity: 1;
}

/* ── Content area ── */
.cat-content-area {
  position: relative;
  padding: 3rem;
}

/* ── Dynamic content layout ── */
.cat-dynamic-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ── Content header ── */
.cat-content-header {
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.cat-feed-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 0;
  font-weight: 600;
}

.cat-scroll-hint {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

/* ── Article list ── */
.cat-article-list {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  max-height: 400px;
  width: 100%;
}

.cat-article-list.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.cat-article-list.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── Article link ── */
.cat-article-link {
  display: block;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  color: inherit;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cat-article-link:last-child {
  border-bottom: none;
}

.cat-article-link:hover {
  opacity: 0.7;
}

/* ── Article row ── */
.cat-article-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .cat-article-row {
    gap: 1.5rem;
  }
}

/* ── Article thumbnail ── */
.cat-article-thumb {
  margin: 0;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
  position: relative;
}

@media (min-width: 768px) {
  .cat-article-thumb {
    width: 65px;
    height: 65px;
  }
}

.cat-article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-premium);
  display: block;
}

.cat-article-link:hover .cat-article-img {
  transform: scale(1.05);
}

/* ── Article body ── */
.cat-article-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
  width: 100%;
  text-align: left;
}

/* ── Meta header ── */
.meta-header {
  display: flex;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  gap: 1.5rem;
}

.meta-separator {
  opacity: 0.5;
}

/* ── Article heading ── */
.cat-article-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.75rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.15s ease;
}

.cat-article-link:hover .cat-article-heading {
  color: var(--cat-accent);
}

/* ── Article description ── */
.article-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-text-muted);
  font-weight: 300;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Explore bar ── */
.cat-explore-btn-wrapper {
  margin-top: 1.5rem;
  flex-shrink: 0;
  width: 100%;
}

.cat-explore-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.75rem;
  background: color-mix(in srgb, var(--cat-accent, var(--color-accent)), transparent 86%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom-color: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.35s var(--ease-premium);
  color: var(--color-text);
  text-decoration: none;
}

.cat-explore-bar:hover {
  background: color-mix(in srgb, var(--cat-accent, var(--color-accent)), transparent 78%);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}

.cat-explore-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cat-explore-icon {
  font-size: 1rem;
  transition: transform 0.35s var(--ease-premium);
}

.cat-explore-bar:hover .cat-explore-icon {
  transform: translateX(6px);
}

/* ── Empty state ── */
.cat-empty-msg {
  padding: 2rem;
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ── Dark mode ── */
body.is-dark .cat-ambient-bg {
  opacity: 0.05;
}

/* ── Mobile: ≤ 900px ── */
@media (max-width: 900px) {
  .cat-glass-interface {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .cat-sidebar {
    padding: 1.5rem;
    padding-bottom: 0;
    border: none;
    flex-direction: column;
  }

  /* 2×2 grid — all 4 pillars visible, no scrolling needed */
  .cat-nav-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding-bottom: 0;
    overflow: visible;
  }

  .cat-nav-menu::-webkit-scrollbar {
    display: none;
  }

  .cat-nav-item {
    margin-bottom: 0;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--glass-bg);
    flex-shrink: 0;
    white-space: nowrap;
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    transition:
      background-color 0.3s var(--ease-default),
      border-color 0.3s var(--ease-default),
      box-shadow 0.3s var(--ease-default);
  }

  /* Show indicator as a color dot inside the tab */
  .cat-indicator {
    display: block;
    position: static;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 1;
    transform: none;
    background: var(--cat-accent);
  }

  .cat-nav-item.active {
    background: var(--color-text);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .cat-nav-item.active .cat-indicator {
    background: var(--cat-accent);
    opacity: 1;
  }

  .cat-nav-title {
    font-size: 0.85rem !important;
    font-family: var(--font-body) !important;
    font-style: normal !important;
    font-weight: 500 !important;
    transform: none !important;
    color: inherit !important;
  }

  .cat-nav-item.active .cat-nav-title {
    color: var(--color-bg) !important;
  }

  .cat-content-area {
    padding: 1.5rem;
  }
}

/* ── Mobile: ≤ 768px ── */
@media (max-width: 768px) {
  .cat-article-heading {
    font-size: 0.95rem;
  }
}

/* ── Mobile: ≤ 480px ── */
@media (max-width: 480px) {
  .cat-sidebar {
    padding: 1rem;
  }

  .cat-nav-item {
    padding: 0.55rem 0.75rem;
    gap: 0.4rem;
  }

  .cat-nav-title {
    font-size: 0.78rem !important;
  }

  .cat-indicator {
    width: 6px;
    height: 6px;
  }

  .cat-content-area {
    padding: 1rem;
  }

  .article-desc {
    display: none;
  }
}



/* ─────────────────────────────────────────────────────────────
   11. BRAND PROFILE SYSTEM
   custom-brand.hbs layout.
   .brand-hero — cover image + stats row.
   .brand-grid — 2-column post grid below hero.
   ───────────────────────────────────────────────────────────── */

/* ── Brand Subcategory Sliding Animations ── */
@keyframes drillIn {
  from { transform: translateX(15px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes drillOut {
  from { transform: translateX(-15px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.nav-drill-in { animation: drillIn 0.25s ease forwards; }
.nav-drill-out { animation: drillOut 0.25s ease forwards; }

/* ── Category Hero ── */
.category-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
  min-height: 40vh;
  padding: 10rem 5vw 9rem;
  position: relative;
  z-index: 2;
  background: transparent;
}

.category-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 24px;
}

.category-title span {
  font-style: italic;
  color: var(--season-color);
}

.category-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
  opacity: 0.85;
}

/* ── Pillar Hero — Blobs ── */
.hero-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: none; /* Hidden by default on desktop */
}

.hero-blob {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  animation: float 20s ease-in-out infinite;
  transition: opacity 1s ease, filter 1s ease;
  will-change: transform;
  backface-visibility: hidden;
}

body.dark-mode .hero-blob {
  opacity: 0.15;
  filter: blur(120px);
}

.hero-blob--1 {
  width: 400px;
  height: 400px;
  background: var(--blob-color-1);
  top: -10%;
  left: -5%;
  animation-delay: 0s;
}

.hero-blob--2 {
  width: 350px;
  height: 450px;
  background: var(--blob-color-2);
  bottom: -5%;
  right: -5%;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation-delay: 3s;
}

.hero-blob--3 {
  width: 250px;
  height: 250px;
  background: var(--blob-color-3);
  top: 45%;
  left: 15%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation-delay: 6s;
  opacity: 0.5;
}

/* ── Mobile Hero (Blobs instead of Video) ── */
@media (max-width: 767px) {
  .hero-bg-video-wrapper,
  .hero-warm-overlay {
    display: none !important;
  }
  
  .hero-blobs {
    display: block !important;
    opacity: 1 !important;
  }

  .hero-ghost-title {
    color: var(--color-text) !important;
    text-shadow: none !important;
  }
  
  .hero-italic-sub {
    color: var(--color-text-muted) !important;
    text-shadow: none !important;
  }

  .scroll-indicator {
    color: var(--color-text) !important;
    bottom: 140px !important;
  }
}

@keyframes hero-float-1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  40% {
    transform: translate(40px, -25px) scale(1.04);
  }

  70% {
    transform: translate(-20px, 30px) scale(0.97);
  }
}

@keyframes hero-float-2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  35% {
    transform: translate(-35px, 20px) scale(1.06);
  }

  65% {
    transform: translate(25px, -35px) scale(0.96);
  }
}

@keyframes hero-float-3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(20px, -20px) scale(1.05) rotate(8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob {
    animation: none;
  }
}

/* ── Low-memory device optimization ── */
body.low-performance-mode .hero-blob {
  animation: none !important;
  opacity: 0.3;
}

/* ── Mobile blob optimization ── */
@media (max-width: 768px) {
  /* Hide third blob on mobile for reduced DOM work */
  .hero-blob--3 {
    display: none;
  }

  /* Slower, smoother animation on mobile (less CPU work) */
  .hero-blob--1 {
    animation: hero-float-1 25s ease-in-out infinite;
    will-change: auto;
  }

  .hero-blob--2 {
    animation: hero-float-2 30s ease-in-out infinite;
    will-change: auto;
  }
}

/* ── Pillar Hero — Season Badge ── */
.season-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 10px;
  border-radius: 50px;
  background: var(--season-badge-bg);
  border: 1px solid var(--season-badge-border);
  color: var(--season-badge-text);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.season-badge__icon {
  flex-shrink: 0;
  display: block;
}

.season-badge__label {
  line-height: 1;
}

/* ── Pillar Hero — Article Count ── */
.hero-article-count {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.75;
  margin-top: 1.5rem;
  margin-bottom: 0;
  position: relative;
  z-index: 10;
}

@keyframes scroll-hint-drop {
  0% {
    transform: scaleY(0);
    transform-origin: top center;
    opacity: 0;
  }

  40% {
    transform: scaleY(1);
    transform-origin: top center;
    opacity: 0.6;
  }

  70% {
    transform: scaleY(1);
    transform-origin: bottom center;
    opacity: 0.6;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom center;
    opacity: 0;
  }
}

/* ── Category Subnav ── */
.pillar-subnav,
.brand-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 5rem;
  position: relative;
  z-index: 10;
}

.subnav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  background: transparent;
  transition: all 0.3s var(--ease-premium);
}

.subnav-link:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* ── Featured Carousel ── */
.featured-carousel {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto var(--space-l);
  padding: 0 var(--space-s);
  position: relative;
  z-index: 2;
}

/* ── Pagination: line · number · line ── */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: var(--space-m);
}

.carousel-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.carousel-indicator__line {
  width: 36px;
  height: 2px;
  background: var(--glass-border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.carousel-indicator__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--season-color, var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
}

@keyframes indicatorFill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* Timer is driven by .is-timing — force new animation context each time */
.carousel-indicator.is-timing .carousel-indicator__line::after {
  animation: indicatorFill 6s linear forwards;
}

.featured-carousel.is-paused .carousel-indicator.is-timing .carousel-indicator__line::after {
  animation-play-state: paused;
}

.carousel-indicator__num {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text-muted);
  transition: color var(--duration) var(--ease-default),
    font-weight var(--duration) var(--ease-default);
}

.carousel-indicator.is-active .carousel-indicator__num {
  font-weight: 700;
  color: var(--color-text);
}

/* ── Viewport ── */
.carousel-viewport {
  display: grid;
}

/* ── Glass card ── */
.carousel-card {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  overflow: hidden;
  transform: translateX(16px);
  transition: opacity 0.45s var(--ease-default),
    transform 0.45s var(--ease-default);
}

.carousel-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* ── Inset image — fixed aspect ratio, no zoom ── */
.carousel-card__image {
  margin: 0.75rem;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-border);
  aspect-ratio: 16 / 9;
}

.carousel-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Text content ── */
.carousel-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.25rem 1.5rem 1.5rem;
}

.carousel-card__eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--season-color, var(--color-accent));
}

.carousel-card__meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

.carousel-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.75em;
  /* 3 lines at 1.25 line-height */
}

.carousel-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 45ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.5em;
  /* 3 lines at 1.5 line-height */
}

.carousel-card__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  background: var(--season-color, var(--color-accent));
  border-radius: 50px;
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-default);
}

.carousel-card__cta:hover {
  opacity: 0.85;
}

.carousel-card__cta:focus-visible {
  outline: 2px solid var(--season-color, var(--color-accent));
  outline-offset: 3px;
}

/* ── Desktop: side-by-side ── */
@media (min-width: 768px) {
  .carousel-card {
    flex-direction: row;
    align-items: stretch;
  }

  .carousel-card__image {
    flex: 0 0 50%;
    margin: 0.75rem 0 0.75rem 0.75rem;
    border-radius: 18px;
    aspect-ratio: unset;
  }

  .carousel-card__image img {
    height: 100%;
    min-height: 380px;
  }

  .carousel-card__body {
    padding: var(--space-m) var(--space-m) var(--space-m) var(--space-s);
    justify-content: center;
    gap: 0.75rem;
  }
}

/* ── Dark mode ── */
body.is-dark .carousel-card {
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--bg-g1) 70%, rgba(10, 11, 10, 0.85)),
      color-mix(in srgb, var(--bg-g2) 60%, rgba(10, 11, 10, 0.85)));
}

body.is-dark .carousel-card__cta {
  color: #0a0b0a;
}


/* ── Sub-Collection Topic Feed ── */

.topic-feed {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-l) var(--space-s);
  position: relative;
  z-index: 10;
}

/* ── Heading — mirrors hero title, scaled down ── */
.topic-feed__heading {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-m);
}

.topic-feed__heading em {
  font-style: italic;
  color: var(--season-color);
}

/* ── Mobile Drawer Trigger ── */
.topic-feed__mobile-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  cursor: pointer;
  margin-bottom: var(--space-s);
  transition: border-color var(--duration-fast) var(--ease-default);
}

.topic-feed__mobile-trigger:hover {
  border-color: var(--color-text-muted);
}

.topic-feed__mobile-trigger svg {
  transition: transform var(--duration-fast) var(--ease-default);
}

.topic-feed__mobile-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* ── Sub-nav list — Drawer on Mobile, List on Desktop ── */
.topic-feed__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.4s var(--ease-premium), opacity 0.3s var(--ease-default), visibility 0s 0.3s;
}

.topic-feed__nav.is-open {
  max-height: 900px;
  opacity: 1;
  visibility: visible;
  padding-bottom: var(--space-m);
  transition: max-height 0.4s var(--ease-premium), opacity 0.3s var(--ease-default), visibility 0s 0s;
}

.topic-feed__nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  white-space: normal;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--color-text-muted);
  border: none;
  border-bottom: 1px solid rgba(150, 150, 150, 0.15);
  /* Elegant faded line */
  border-radius: 0;
  cursor: pointer;
  background: transparent;
  transition: color var(--duration-fast) var(--ease-default),
    background var(--duration-fast) var(--ease-default);
}

.topic-feed__nav-item:last-of-type {
  border-bottom: none;
}

.topic-feed__nav-item:hover {
  color: var(--color-text);
}

.topic-feed__nav-item.is-active {
  color: var(--season-color, var(--cat-accent, var(--color-accent)));
  background: var(--season-badge-bg, rgba(0, 0, 0, 0.03));
  font-weight: 600;
}

.topic-feed__count {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  font-style: normal;
  opacity: 0.55;
}

/* ── Klaviyo CTA card — glassmorphic ── */
.topic-feed__cta {
  display: none;
  margin-top: var(--space-l);
  padding: var(--space-m);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
}

.topic-feed__cta-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.topic-feed__cta-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: var(--space-s);
}

.topic-feed__cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.topic-feed__cta-input {
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-default);
}

.topic-feed__cta-input::placeholder {
  color: var(--color-text-muted);
}

.topic-feed__cta-input:focus {
  border-color: var(--cat-accent, var(--color-accent));
}

.topic-feed__cta-btn {
  padding: 0.65rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  background: var(--season-color);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: opacity var(--duration-fast) var(--ease-default);
}

.topic-feed__cta-btn:hover {
  opacity: 0.85;
}

/* ── Feed bar header ── */
.topic-feed__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
}

.topic-feed__bar-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
}

.topic-feed__bar-scroll {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  transition: opacity var(--duration) var(--ease-default);
}

/* ── Scrollable feed viewport — shows ~4 rows ── */
.topic-feed__scroll {
  max-height: 700px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.topic-feed__scroll::-webkit-scrollbar {
  width: 3px;
}

.topic-feed__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.topic-feed__scroll::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

/* ── Feed panels ── */
.topic-feed__panel {
  display: none;
}

.topic-feed__panel.is-active {
  display: flex;
  flex-direction: column;
}

/* ── Article row ── */
.topic-feed__row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-fast) var(--ease-default);
}

.topic-feed__row:last-child {
  border-bottom: none;
}

.topic-feed__row:hover {
  transform: translateX(4px);
}

/* ── Entry animation ── */
@keyframes articleFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topic-feed__panel.is-active .topic-feed__row {
  animation: articleFadeIn 0.5s var(--ease-default) both;
}

.topic-feed__panel.is-active .topic-feed__row:nth-child(2) {
  animation-delay: 0.08s;
}

.topic-feed__panel.is-active .topic-feed__row:nth-child(3) {
  animation-delay: 0.16s;
}

.topic-feed__panel.is-active .topic-feed__row:nth-child(4) {
  animation-delay: 0.24s;
}

/* ── Thumbnail — landscape 120×80 ── */
.topic-feed__thumb {
  width: 100px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-border);
}

.topic-feed__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Row text content ── */
.topic-feed__row-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
}

.topic-feed__row-meta {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

.topic-feed__row-title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0.15rem 0;
}

.topic-feed__row-excerpt {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.topic-feed__empty {
  padding: var(--space-l) 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ── Desktop: sidebar | feed grid ── */
@media (min-width: 768px) {
  .topic-feed {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
  }

  .topic-feed__heading {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  /* Vertical list nav */
  .topic-feed__mobile-trigger {
    display: none;
  }

  .topic-feed__nav {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
    gap: 0;
    max-height: none;
    opacity: 1;
    visibility: visible;
  }

  .topic-feed__nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    white-space: normal;
    line-height: 1.3;
    padding: 0.85rem 0 0.85rem 0.75rem;
    border: none;
    border-bottom: 1px solid rgba(150, 150, 150, 0.15);
    /* Elegant faded line */
    border-radius: 0;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    position: relative;
    transition: color var(--duration-fast) var(--ease-default),
      transform var(--duration-fast) var(--ease-default);
  }

  .topic-feed__nav-item:last-of-type {
    border-bottom: none;
  }

  .topic-feed__nav-item>span:first-child {
    transition: transform var(--duration-fast) var(--ease-default);
  }

  /* Left accent bar */
  .topic-feed__nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 2px;
    height: 60%;
    background: var(--season-color, var(--cat-accent, var(--color-accent)));
    border-radius: 2px;
    transition: transform var(--duration-fast) var(--ease-premium);
  }

  .topic-feed__nav-item:hover {
    color: var(--color-text);
  }

  .topic-feed__nav-item.is-active {
    color: var(--season-color, var(--cat-accent, var(--color-accent)));
    background: transparent;
  }

  .topic-feed__nav-item.is-active>span:first-child {
    transform: translateX(6px);
  }

  .topic-feed__nav-item.is-active::before {
    transform: translateY(-50%) scaleY(1);
  }

  .topic-feed__count {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-style: normal;
  }

  .topic-feed__cta {
    display: block;
  }

  /* Larger thumbnails */
  .topic-feed__row {
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }

  .topic-feed__thumb {
    width: 120px;
    height: 80px;
  }

  .topic-feed__row-title {
    font-size: 1.2rem;
    margin: 0.2rem 0;
  }

  .topic-feed__row-excerpt {
    font-size: 0.9rem;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .topic-feed__panel.is-active .topic-feed__row {
    animation: none;
  }
}

/* ── Dark mode ── */
body.is-dark .topic-feed__cta {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.is-dark .topic-feed__cta-input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

body.is-dark .topic-feed__cta-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}


/* ── Brand Profile Core (authoritative) ── */
.brand-hero {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3rem;
  background: linear-gradient(180deg, var(--brand-color-soft) 0%, var(--color-bg) 100%);
}

.brand-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5vw;
  align-items: center;
}

@media (max-width: 900px) {
  .brand-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .brand-hero {
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 2rem;
  }
}

/* ── Brand CTA (Pillar CTA override) ── */
.brand-cta .pillar-cta__card {
  background: var(--brand-color-soft, var(--color-bg-alt));
  border: 1px solid color-mix(in srgb, var(--brand-color, var(--color-border)), transparent 85%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

body.is-dark .brand-cta .pillar-cta__card {
  background: color-mix(in srgb, var(--brand-color, var(--color-bg-alt)), transparent 92%);
  border-color: color-mix(in srgb, var(--brand-color, var(--color-border)), transparent 80%);
}

.brand-cta .pillar-cta__eyebrow {
  color: var(--brand-color, var(--color-accent));
}

.brand-cta .pillar-cta__title {
  color: var(--color-text);
}

.brand-cta .pillar-cta__title em {
  font-style: italic;
  color: var(--brand-color, var(--color-accent));
}

.brand-cta .pillar-cta__actions {
  justify-content: center;
}

.brand-cta .pillar-cta__btn--primary {
  background: var(--brand-color, var(--color-text));
  color: #fff;
  border-color: var(--brand-color, var(--color-text));
}

.brand-cta .pillar-cta__btn--primary:hover {
  background: color-mix(in srgb, var(--brand-color, var(--color-text)), black 15%);
  border-color: color-mix(in srgb, var(--brand-color, var(--color-text)), black 15%);
}

.brand-cta .pillar-cta__arrow {
  display: inline-block;
  margin-left: 6px;
  line-height: 1;
  transition: transform 0.2s var(--ease-premium);
}

.brand-cta .pillar-cta__btn:hover .pillar-cta__arrow {
  transform: translateX(4px);
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
  display: block;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.brand-description {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 480px;
}

.brand-stats-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.brand-stat-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-stat-number {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1;
}

.brand-stat-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.brand-stat-sep {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 1.2rem;
  opacity: 0.8;
}

.brand-website-btn-wrap {
  display: block;
}

.brand-website-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--color-text);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.brand-website-btn:hover {
  background: var(--brand-color, var(--color-text));
  border-color: var(--brand-color, var(--color-text));
  color: #fff;
}

.brand-website-icon {
  width: 12px;
  height: 12px;
}

/* Featured Card */
.brand-featured-card {
  background: var(--color-bg-alt);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium);
  will-change: transform;
}

.brand-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.brand-featured-image-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  display: block;
}

.brand-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-premium);
}

.brand-featured-card:hover .brand-featured-img {
  transform: scale(1.05);
}

.brand-featured-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--color-text);
  color: var(--color-bg-alt);
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  z-index: 2;
}

.brand-featured-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.brand-featured-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-meta-sep {
  opacity: 0.4;
}

.brand-featured-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.brand-featured-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.brand-featured-title a:hover {
  color: var(--brand-color);
}

.brand-featured-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.brand-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--brand-color, var(--color-text));
  color: #fff;
  text-decoration: none;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: flex-start;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-premium);
}

.brand-featured-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.brand-featured-cta svg {
  width: 12px;
  height: 12px;
}

/* ── Mobile Overrides: Remove heavy motion ── */
@media (max-width: 768px) {
  .brand-hero.fade-section {
    opacity: 1 !important;
    transform: none !important;
  }

  .brand-featured-card {
    transition: none !important;
    transform: none !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04) !important;
  }

  .brand-featured-card:hover {
    transform: none !important;
  }

  .brand-featured-img {
    transition: none !important;
  }

  .brand-featured-card:hover .brand-featured-img {
    transform: none !important;
  }

  .brand-featured-cta {
    transition: none !important;
  }

  .brand-featured-cta:hover {
    transform: none !important;
  }
}

/* ── BRAND TAG PAGE — unique rules not in main brand profile block ── */

/* ── Left column ── */
.brand-hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
}

/* ── Right column: Featured card ── */
.brand-hero-right {
  position: relative;
}

.brand-featured-image-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-no-post {
  padding: 3rem;
  text-align: center;
  color: var(--color-text-muted);
  font-family: var(--font-body);
}

/* ── Subcategories section ── */
.brand-subcategories {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* ── Sidebar header ── */
.brand-subcat-sidebar-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.5rem;
}

.brand-subcat-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.25rem;
}

.brand-subcat-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
}

/* ── Sidebar nav items: override cat-nav-item accent with brand color ── */
.brand-subcat-sidebar .cat-nav-item .cat-indicator {
  background: var(--brand-color, var(--color-accent));
}

.brand-subcat-sidebar .cat-nav-item.active .cat-nav-title {
  color: var(--brand-color, var(--color-accent));
}

/* ── Count badge ── */
.brand-subcat-count {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  background: var(--color-border);
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-subcat-sidebar .cat-nav-item.active .brand-subcat-count {
  background: color-mix(in srgb, var(--brand-color, var(--color-accent)), transparent 85%);
  color: var(--brand-color, var(--color-accent));
}

/* ── Explore all link ── */
.brand-subcat-explore-link {
  display: block;
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--brand-color, var(--color-accent));
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity var(--duration-fast) var(--ease-default);
  margin-top: 0.5rem;
}

.brand-subcat-explore-link:hover {
  opacity: 0.7;
}

/* ── Related wrapper (might-also-like) ── */
.brand-related-wrapper .might-also-like {
  --season-color: var(--brand-color, var(--color-accent));
}

.brand-related-wrapper .might-also-like .ambient-blob {
  background: var(--brand-color-soft, color-mix(in srgb, var(--color-accent), transparent 88%));
}

/* ── Dark mode overrides ── */
body.is-dark .brand-featured-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.is-dark .brand-website-btn:hover {
  background: var(--brand-color, var(--color-accent));
  color: #0a0b0a;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .brand-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .brand-description {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .brand-hero {
    padding: 5rem 0 3rem;
  }

  .brand-stats-row {
    gap: 1.5rem;
  }

  .brand-subcat-sidebar-header {
    padding: 0 1rem 1rem;
  }
}


/* ─────────────────────────────────────────────────────────────
   12. AUTHOR PROFILE SYSTEM
   Hero Profile, Links, Feed Overrides
   ───────────────────────────────────────────────────────────── */

.author-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 40px;
}

.author-hero-image {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ambient Background for Author Hero */
.author-hero-layout .ambient-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: transparent;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  pointer-events: none;
}

.author-hero-layout .ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
  transition: opacity 1s ease;
}

body.is-dark .author-hero-layout .ambient-blob {
  opacity: 0.1;
  filter: blur(120px);
}

.author-hero-layout .blob-1 {
  width: 450px;
  height: 450px;
  background: var(--blob-color-1);
  top: 10%;
  left: -15%;
  animation-delay: 1s;
}

.author-hero-layout .blob-2 {
  width: 350px;
  height: 350px;
  background: var(--blob-color-3);
  bottom: 5%;
  right: -10%;
  animation-delay: 4s;
}

.post-hero-image,
.post-hero-content {
  position: relative;
  z-index: 1;
  /* Protect content from ambient bg */
}

/* Fallback Layout When No Profile Image Exists */
.author-hero-layout.no-profile-image {
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: auto !important;
  min-height: 100px;
  padding: 40px 0 0;
}

.author-hero-layout.no-profile-image .author-hero-content {
  width: 100% !important;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.author-hero-layout.no-profile-image .author-pill-wrapper {
  justify-content: center;
}

.author-hero-layout.no-profile-image .author-meta-footer {
  width: 100%;
  max-width: 600px;
  justify-content: center;
  gap: 32px;
}

.author-hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  z-index: 1;
  /* Protect from ambient bg */
}

@media (min-width: 960px) {
  .author-hero-image-wrapper {
    flex: 0 0 45%;
    max-width: 450px;
  }

  /* Override full-bleed stretch from post-hero-layout */
  .post-hero-layout.author-hero-layout {
    height: auto;
    align-items: center;
    padding: 2rem 0;
  }
}

.author-floating-pill {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  padding: 8px 16px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.70rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.author-meta-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Align the count and share button to center axis */
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.author-article-count-block {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}

.author-count-number {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.author-count-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  line-height: 1;
}

.author-featured-carousel {
  margin-bottom: 64px;
}

.author-articles-feed {
  padding-top: 2rem;
}

.author-grid-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}


/* ─────────────────────────────────────────────────────────────
   13. ARTICLE LAYOUT (post.hbs)
   Post Hero, Sidebar, TOC Glass
   ─────────────────���─────────────────────────────────────────── */

.post-main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 40px;
}

.post-hero-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 64px;
}

.post-hero-image {
  width: 100%;
  height: 40vh;
  min-height: 300px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.post-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 960px) {
  .post-hero-layout {
    flex-direction: row;
    align-items: stretch;
    height: 600px;
    gap: 64px;
  }

  .post-hero-image {
    width: 50%;
    height: 100%;
    min-height: auto;
  }

  .post-hero-content {
    width: 50%;
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

.pill-wrapper {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.category-pill {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--tag-color, var(--color-accent));
  color: #ffffff;
  border: 1px solid var(--tag-color, var(--color-accent));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px color-mix(in srgb, var(--tag-color, var(--color-accent)), transparent 80%);
  transition: all 0.3s ease;
  text-decoration: none;
}

.category-pill:hover {
  background: color-mix(in srgb, var(--tag-color, var(--color-accent)), transparent 85%);
  color: var(--tag-color, var(--color-text));
  border-color: color-mix(in srgb, var(--tag-color, var(--color-accent)), transparent 70%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--tag-color, var(--color-accent)), transparent 60%);
}

.is-dark .category-pill:hover {
  color: var(--tag-color, var(--color-bg));
}

.post-hero-content h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--color-text);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.post-summary {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  font-weight: 300;
  margin-bottom: 48px;
  max-width: 90%;
}

.meta-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 32px;
  margin-top: auto;
}

.author-info {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  gap: 6px;
}

.author-name {
  font-weight: 700;
  color: var(--color-text);
}

.read-time {
  color: var(--color-text-muted);
  font-weight: 500;
}

.share-container {
  position: relative;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 8px 0;
  background: none;
  border: none;
  transition: color 0.3s;
}

.share-btn:hover,
.share-btn[aria-expanded="true"] {
  color: var(--color-text);
}

.share-arrow {
  transition: transform 0.3s ease;
}

.share-btn:hover .share-arrow,
.share-btn[aria-expanded="true"] .share-arrow {
  transform: rotate(180deg);
}

.share-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 12px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--color-border);
  z-index: 50;
}

.is-dark .share-menu {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.share-container:hover .share-menu,
.share-container:focus-within .share-menu,
.share-container.is-open .share-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.share-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--color-text);
  transition: background 0.2s;
  font-weight: 500;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.share-item:hover {
  background: var(--color-bg);
}

.share-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
}

.share-divider {
  height: 1px;
  background: var(--color-border);
  margin: 4px 0;
}

.post-article-body {
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 960px) {
  .post-article-body {
    display: grid;
    grid-template-columns: 75% minmax(0, 1fr);
    gap: 48px;
  }

  .post-article-content {
    grid-column: 1 / 2;
    padding-left: 2%;
    padding-right: 5%;
    width: 100%;
  }
}

/* Raised-cap (Aligned to baseline) */
.post-article-content>p:first-of-type::first-letter {
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 300;
  font-family: var(--font-heading);
}

.toc-glass {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 32px 40px;
  margin-bottom: 64px;
  transition: all 0.3s ease;
  max-width: 850px;
  cursor: pointer;
}

.is-dark .toc-glass {
  background: rgba(20, 22, 20, 0.4);
}

.toc-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.toc-title-icon {
  transition: transform 0.3s ease;
}

.toc-glass.is-expanded .toc-title-icon {
  transform: rotate(180deg);
}

.toc-list-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-premium), opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.toc-glass.is-expanded .toc-list-wrapper {
  max-height: 800px;
  opacity: 1;
  margin-top: 24px;
}

.toc-list {
  padding: 0;
  margin: 0;
}

.toc-list li {
  position: relative;
  list-style: none;
}

.toc-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: var(--color-text);
  text-decoration: none;
}

.toc-link:hover {
  color: var(--color-text-muted);
}

.toc-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
}

.toc-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  font-weight: 300;
  font-size: 1.2rem;
}

.toc-link:hover .toc-arrow {
  opacity: 1;
  transform: translateX(0);
}

.toc-divider {
  border: 0;
  height: 1px;
  background: var(--color-border);
  margin: 0;
}

.post-article-body h2 {
  font-size: 1.8rem;
  color: var(--color-text);
  margin-top: 48px;
  margin-bottom: 24px;
  max-width: 850px;
}

.post-article-body p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  font-weight: 300;
  margin-bottom: 32px;
  line-height: 1.75;
  max-width: 850px;
}

/* Sidebar styling */
.post-sidebar {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 960px) {
  .post-sidebar {
    grid-column: 2 / 3;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    position: sticky;
    top: 120px;
    align-self: flex-start;
  }
}

.sidebar-header {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.related-item:hover {
  transform: translateX(5px);
}

.related-thumb {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.related-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.related-meta {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 2px;
}

.related-title {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.3;
}


/* ─────────────────────────────────────────────────────────────
   14. POST CARDS & FEED GRIDS
   .post-card — reusable card (partials/post-card.hbs).
   .post-card-image-link / .post-card-image — responsive img.
   .post-card-content — title, excerpt, meta footer.
   .post-card.no-image — fallback layout without feature image.
   .posts-grid — CSS Grid container for card feed.
   Excerpt toggle (expand/collapse) JS hook classes.
   ───────────────────────────────────────────────────────────── */

/* ── Curated News container ── */
.curated-news {
  display: block;
  width: 100%;
  position: relative;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* ── Ambient fade (inherits §10 mask pattern) ── */
.curated-news-ambient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(120deg, var(--color-accent), var(--color-bg-alt));
  opacity: 0.15;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* ── Glass article grid ── */
.curated-news-article {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 768px) {
  .curated-news-article {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── List column ── */
.curated-news-list-col {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-top: 1px solid var(--color-border);
  order: 1;
}

@media (min-width: 768px) {
  .curated-news-list-col {
    padding: 3rem;
    border-top: none;
    border-right: 1px solid var(--color-border);
    order: -1;
  }
}

/* ── Scroll area ── */
.curated-news-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  max-height: 400px;
}

.curated-news-scroll.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.curated-news-scroll.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── List item ── */
.list-item {
  display: block;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  opacity: 0.9;
}

/* ── Active / dim states ── */
.news-article-active {
  opacity: 1;
}

.news-article-dim {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.news-article-dim:hover {
  opacity: 1;
}

/* ── Figure (right column / top on mobile) ── */
.curated-news-figure {
  position: relative;
  width: 100%;
  height: 240px;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  order: -1;
}

@media (min-width: 768px) {
  .curated-news-figure {
    height: auto;
    min-height: 400px;
    order: 1;
  }
}

/* ── Feature image ── */
.curated-news-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.7s var(--ease-premium);
}

/* ── Read more button ── */
.curated-read-more-btn {
  position: absolute;
  z-index: 10;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-body);
  border-radius: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.3s var(--ease-premium);
}

.curated-read-more-btn:hover {
  transform: scale(1.05);
  background: var(--color-bg-alt);
}

.curated-read-more-btn:hover~picture .curated-news-img {
  transform: scale(1.02);
}

/* ── Dark mode ── */
body.is-dark .curated-news-ambient {
  opacity: 0.05;
}

/* ── Previous Posts container ── */
.previous-posts {
  display: block;
  width: 100%;
  position: relative;
  padding-top: 2rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

/* ── Ambient Mask ── */
.previous-posts .ambient-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: transparent;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  pointer-events: none;
}

/* ── Floating Blobs ── */
.previous-posts .ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
  transition: opacity 1s ease;
}

body.is-dark .previous-posts .ambient-blob {
  opacity: 0.1;
  filter: blur(120px);
}

.previous-posts .blob-1 {
  width: 450px;
  height: 450px;
  background: var(--blob-color-1);
  top: 10%;
  left: -15%;
  animation-delay: 1s;
}

.previous-posts .blob-2 {
  width: 350px;
  height: 350px;
  background: var(--blob-color-3);
  bottom: 5%;
  right: -10%;
  animation-delay: 4s;
}

/* ── Post Grid ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* ── Glass Post Card ── */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s var(--ease-premium);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
  border-color: var(--color-border);
}



/* ── Card Image ── */
.post-card .image-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.post-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  transition: transform 0.8s var(--ease-premium);
}

.post-card:hover .image-wrapper img {
  transform: scale(1.05);
}

/* ── Card Tag Overlay (shared) ── */
.post-card .card-tag-overlay {
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 20;
  pointer-events: none;
}

/* ── Tag Glass — neutral default (previous-posts) ── */
.post-card .tag-glass {
  display: inline-block;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
  background: var(--color-border);
  color: var(--color-text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

/* ── Previous-posts card: space for floating overlay tag ── */
.previous-posts .post-card {
  margin-top: 12px;
  margin-left: 8px;
}


/* ── Image Link ── */
.post-card .image-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Card Content Area ── */
.post-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Card Typography ── */
.post-card .post-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 10px;
}

.post-card .post-title a {
  color: var(--color-text);
  text-decoration: none;
}

.post-card .post-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Post Meta Row ── */
.post-card .post-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.post-card .author-name {
  font-weight: 600;
  color: var(--color-text);
}

.post-card .meta-sep {
  opacity: 0.5;
}

.post-card .post-date {
  color: var(--color-text-muted);
}

/* ── Card Read-More — neutral default (previous-posts) ── */
.post-card .card-read-more {
  display: inline-block;
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.post-card .card-read-more:hover {
  color: var(--color-olive-accent);
  border-color: var(--color-olive-accent);
}



/* ── Load More Container & Button ── */
.load-more-container {
  text-align: center;
  margin-top: 40px;
  position: relative;
  z-index: 10;
}

.btn-load-more {
  background: transparent;
  border: 1px solid var(--color-text);
  padding: 12px 32px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s var(--ease-premium);
  color: var(--color-text);
}

.btn-load-more:hover {
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-2px);
}



/* ── Hidden Posts (DOM Reveal) ── */
.hidden-post {
  display: none !important;
  opacity: 0;
  transform: translateY(20px);
}

.reveal-post {
  display: flex !important;
  animation: fadeInPost 0.6s var(--ease-premium) forwards;
}

@keyframes fadeInPost {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────────────────────
   16. GHOST KOENIG CARDS (REQUIRED by GScan)
   .kg-image-card, .kg-image — base image card.
   .kg-width-wide — 85vw breakout.
   .kg-width-full — 100vw full-bleed.
   .kg-gallery-container / .kg-gallery-row / .kg-gallery-image.
   .kg-embed-card / .fluid-width-video-wrapper — 16:9 aspect.
   .kg-bookmark-card / -container / -content / -thumbnail.
   .kg-button-card / .kg-btn / .kg-btn-accent.
   .kg-callout-card / .kg-callout-emoji / .kg-callout-text.
   .kg-toggle-card / .kg-toggle-heading / .kg-toggle-content.
   .kg-header-card / .kg-header-card-button.
   .kg-blockquote-alt — centred italic pull-quote.
   ───────────────────────────────────────────────────────────── */



/* ─────────────────────────────────────────────────────────────
   17. SITE FOOTER
   .footer-wrapper — full-width footer shell.
   .footer-bg — video layer (parallax CTA).
   .footer-noise / .footer-overlay — texture layers.
   .footer-content — columns, links, copyright.
   #footer-video — autoplay muted loop background.
   .footer-cta — email / newsletter CTA overlay.
   ───────────────────────────────────────────────────────────── */

/* ── Footer wrapper ── */
.footer-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: transparent;
  color: var(--color-footer-text);
  font-family: var(--font-body);
}

/* ── Video background layer ── */
.footer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0px, transparent 15px, black 100px, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0px, transparent 15px, black 100px, black 100%);
}

.footer-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: brightness(0.65) contrast(1.1);
}

/* Respect prefers-reduced-motion: pause video and reduce visual complexity */
@media (prefers-reduced-motion: reduce) {
  .footer-bg video {
    animation: none;
  }
  #footer-video {
    animation: none !important;
  }
  /* Pause video for users with motion sensitivity */
  #footer-video::after {
    content: '';
  }
}

/* ── Overlay: blends footer into previous section ── */
.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      var(--color-bg) 0px,
      var(--color-bg) 15px,
      transparent 100px,
      rgba(0, 0, 0, 0.35) 100%);
  z-index: 1;
  pointer-events: none;
}

.is-dark .footer-overlay {
  background: linear-gradient(to bottom,
      var(--color-bg) 0px,
      var(--color-bg) 15px,
      transparent 100px,
      rgba(5, 6, 5, 0.7) 100%);
}

/* ── Noise texture ── */
.footer-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Blob layer ── */
#footer-blobs-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0px, transparent 15px, black 100px, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0px, transparent 15px, black 100px, black 100%);
}

.footer-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.7;
  animation: float 25s ease-in-out infinite;
  pointer-events: none;
}

.is-dark .footer-blob {
  opacity: 0.35;
}

.blob-ft-1 {
  width: 500px;
  height: 500px;
  background: var(--color-accent);
  top: 5%;
  left: -5%;
  animation-delay: 0s;
}

.blob-ft-2 {
  width: 650px;
  height: 650px;
  background: var(--blob-color-2);
  top: 30%;
  right: -10%;
  animation-delay: 4s;
}

/* ── Footer container ── */
.footer-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-l);
}

/* ── CTA section ── */
.footer-cta {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 10rem;
  padding-bottom: 5rem;
}

.footer-cta-left {
  flex: 1;
  max-width: 550px;
  margin-bottom: 3rem;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: var(--space-m);
  color: var(--color-footer-text);
  font-weight: 500;
}

.footer-title span {
  font-style: italic;
  font-weight: 400;
  color: var(--color-footer-text-muted);
}

.footer-desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--color-footer-text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 95%;
}

.footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

/* ── Footer buttons ── */
.btn-footer {
  padding: 1.1rem 2.8rem;
  border-radius: 50px;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  cursor: pointer;
}

.btn-footer-white {
  background: var(--color-footer-text);
  color: #0a0b0a;
  /* Deep dark for high contrast on white */
  border: 1px solid var(--color-footer-text);
}

.btn-footer-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--color-footer-text);
}

.btn-footer-glass {
  background: transparent;
  color: var(--color-footer-text);
  border: 1px solid var(--color-footer-text-muted);
}

.btn-footer-glass:hover {
  background: var(--color-footer-text);
  color: #0a0b0a;
  /* Deep dark for high contrast on hover */
  border-color: var(--color-footer-text);
}

/* ── CTA right side (Klaviyo card) ── */
.footer-cta-right {
  flex: 1;
  max-width: 440px;
  width: 100%;
  position: relative;
  z-index: 10;
}

.footer-glass-card {
  background: transparent;
  color: var(--color-footer-text);
}

.footer-glass-card h3 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 var(--space-s) 0;
}

.footer-glass-card p {
  font-size: 0.95rem;
  color: var(--color-footer-text-muted);
  margin-bottom: var(--space-m);
  line-height: 1.5;
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--color-footer-text-muted);
  margin-top: 1.25rem;
}

/* ── Footer bottom ── */
.footer-bottom {
  position: relative;
  z-index: 10;
  background: transparent;
  padding: var(--space-s) 0 3rem;
}

.footer-divider {
  height: 1px;
  width: 100%;
  background-color: var(--color-footer-text-muted);
  margin: var(--space-m) 0;
}

/* ── Navigation columns ── */
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-m);
  margin-bottom: var(--space-s);
  width: 100%;
}

.f-col {
  flex: 1;
  min-width: 120px;
}

.f-col h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-footer-text-muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.f-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.f-col li {
  margin-bottom: 0.85rem;
}

.f-col a {
  color: var(--color-footer-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color var(--duration-fast);
}

.f-col a:hover {
  color: var(--color-footer-text);
}

/* ── Bottom bar ── */
.footer-bar {
  position: relative;
  padding-top: 1.5rem;
  padding-bottom: var(--space-s);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-footer-text-muted);
  letter-spacing: 0.05em;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-footer-text);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  display: inline-block;
}

/* ── Footer responsive ── */
@media (min-width: 768px) {
  .footer-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
  }

  .footer-bar-left {
    text-align: left;
  }

  .footer-bar-center {
    text-align: center;
  }

  .footer-bar-right {
    text-align: right;
  }
}

@media (min-width: 992px) {
  .footer-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6rem;
  }

  .footer-cta-left {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 0 var(--space-m);
  }
}



/* ─────────────────────────────────────────────────────────────
   18. BRANDS CTA SECTION
   .pillar-cta card grid used on brand/pillar pages.
   ───────────────────────────────────────────────────────────── */

.pillar-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 3rem;
  padding-bottom: 5rem;
  background: transparent;
  position: relative;
  z-index: 1;
  /* Stays above the pillar-wrapper::after bottom-fade layer */
}

.pillar-cta__card {
  background-color: color-mix(in srgb, var(--season-color, var(--color-accent)), transparent 35%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  padding: 4rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  width: 90vw;
  max-width: 1400px;
  /* Truly wider than the previous 1200px section */
  margin: 0 auto;
}

/* Subtle pattern / grain overlay */
.pillar-cta__card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.pillar-cta__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  color: #ffffff;
}

.pillar-cta__eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
  opacity: 0.8;
  color: #ffffff;
}

.pillar-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: 500;
}

.pillar-cta__title em {
  font-style: italic;
  font-weight: 400;
  opacity: 0.95;
}

.pillar-cta__description {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.pillar-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.pillar-cta__btn {
  padding: 0.95rem 2.2rem;
  border-radius: 50px;
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-premium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
}

.pillar-cta__btn--primary {
  background-color: #ffffff;
  color: var(--season-color, var(--color-accent));
  border: 1px solid #ffffff;
}

.pillar-cta__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background-color: transparent;
  color: #ffffff;
}

.pillar-cta__btn--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.pillar-cta__btn--secondary:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .pillar-cta {
    padding: 1.5rem 0;
    margin: 0;
  }

  .pillar-cta__card {
    padding: 2.5rem 1.25rem;
    border-radius: 12px;
    margin: 0;
    box-shadow: none;
  }

  .pillar-cta__title {
    font-size: 1.85rem;
    margin-bottom: 1.25rem;
  }

  .pillar-cta__description {
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
  }

  .pillar-cta__actions {
    flex-direction: column;
    gap: 1rem;
  }

  .pillar-cta__btn {
    width: 100%;
    min-width: 0;
    padding: 1rem 1.5rem;
  }
}




/* ─────────────────────────────────────────────────────────────
   20. ANIMATIONS & REVEALS
   .fade-section — IntersectionObserver fade-in trigger.
   @keyframes fadeInUp / fadeInScale.
   .is-visible — class toggled by main.js observer.
   Reduced-motion: @media (prefers-reduced-motion: reduce).
   GSAP ScrollTrigger hook classes (if loaded via Code Injection).
   ───────────────────────────────────────────────────────────── */

/* ── Fade-in reveal (IntersectionObserver) ── */
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s var(--ease-premium),
    transform 0.8s var(--ease-premium);
}

.fade-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Respect user motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ─────────────────────────────────────────────────────────────
   21. RESPONSIVE BREAKPOINTS
   Mobile-first overrides.
   @media (max-width: 768px)  — tablet / small screens.
   @media (max-width: 480px)  — mobile.
   @media (min-width: 1200px) — wide desktop enhancements.
   ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {

  .section-title {
    font-size: 1.85rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
  }

  .section-header-block {
    margin-bottom: 1.5rem;
  }

  .section-container {
    padding: 0 6vw;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.65rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   15. MIGHT ALSO LIKE
   4-column post grid variant used at end of articles.
   Tag color fallback: --season-color > --color-text-muted
   ───────────────────────────────────────────────────────────── */

/* Noise overlay opacity (replaces removed inline style) */
.might-also-like .noise-overlay {
  opacity: 0.03;
}

/* Ambient mask: fade blobs so they dissolve naturally below the article and above the footer */
.might-also-like .ambient-bg {
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 70%, transparent 100%);
}

/* 4-column grid override (desktop) */
@media (min-width: 1024px) {
  .might-also-like .posts-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card context */
.might-also-like .post-card {
  position: relative;
  margin-top: 12px;
  margin-inline: auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  /* reduced from glass-shadow (0 16px 48px) to avoid clipping at section edge */
}

/* Tag overlay: annotated rotation */
.might-also-like .card-tag-overlay,
.previous-posts .card-tag-overlay,
.author-articles-feed .card-tag-overlay {
  position: absolute;
  top: -14px;
  left: -10px;
  z-index: 30;
  pointer-events: none;
  transform: rotate(-2deg);
}

/* Tag glass: solid by default */
.might-also-like .tag-glass,
.previous-posts .tag-glass,
.author-articles-feed .tag-glass {
  background: var(--season-color, var(--color-text-muted));
  color: var(--color-bg);
  border: 1.5px solid color-mix(in srgb,
      var(--season-color, var(--color-text-muted)),
      transparent 20%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Tag glass hover: becomes transparent */
.might-also-like .post-card:hover .tag-glass,
.previous-posts .post-card:hover .tag-glass,
.author-articles-feed .post-card:hover .tag-glass {
  transform: translateY(-2px) rotate(0deg);
  background: color-mix(in srgb,
      var(--season-color, var(--color-text-muted)),
      transparent 50%);
  color: var(--season-color, var(--color-text-muted));
}

/* Post meta */
.might-also-like .post-meta {
  opacity: 0.85;
}

/* Author name uppercase */
.might-also-like .author-name {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Read-more: dynamic color override */
.might-also-like .card-read-more {
  color: var(--season-color, var(--color-text-muted));
  border-color: color-mix(in srgb,
      var(--season-color, var(--color-text-muted)),
      transparent 60%);
}

.might-also-like .card-read-more:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

/* Article page context: top border separation */
.post-might-also-like-wrapper .might-also-like {
  margin-top: 4rem;
  border-top: 1px solid var(--color-border);
  padding-top: 5rem;
  padding-bottom: 5rem;
  --season-color: var(--tag-color, var(--color-accent));
}

.post-might-also-like-wrapper .might-also-like .ambient-blob {
  background: var(--tag-color, var(--color-accent));
}

/* ── Mobile: disable all hover animations on both sections ── */
@media (max-width: 768px) {

  .previous-posts.fade-section,
  .might-also-like.fade-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .previous-posts .post-card:hover,
  .might-also-like .post-card:hover {
    transform: none;
    box-shadow: var(--glass-shadow);
  }

  .previous-posts .post-card:hover .image-wrapper img,
  .might-also-like .post-card:hover .image-wrapper img {
    transform: none;
  }

  .might-also-like .post-card:hover .tag-glass,
  .previous-posts .post-card:hover .tag-glass,
  .author-articles-feed .post-card:hover .tag-glass {
    transform: rotate(-2deg);
    background: color-mix(in srgb,
        var(--season-color, var(--color-text-muted)),
        transparent 50%);
    color: var(--season-color, var(--color-text-muted));
  }

  /* Might-also-like mobile layout */
  .might-also-like .posts-grid {
    gap: 1rem;
    margin: 0 4px;
  }

  .might-also-like .post-card {
    padding: 12px;
    margin-top: 14px;
    margin-left: 8px;
  }

  .might-also-like .image-wrapper {
    height: 140px;
    margin-bottom: 12px;
  }

  .might-also-like .card-tag-overlay {
    top: -14px;
    left: -10px;
  }

  .might-also-like .tag-glass {
    padding: 4px 10px;
    font-size: 0.55rem;
    background: var(--season-color, var(--color-text-muted));
    color: var(--color-bg);
    opacity: 1;
  }

  .might-also-like .post-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  .might-also-like .post-meta {
    font-size: 0.7rem;
    margin-bottom: 10px;
  }

  .might-also-like .post-excerpt {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .might-also-like .card-read-more {
    font-size: 0.7rem;
    padding-bottom: 1px;
  }
}

/* ─────────────────────────────────────────────────────────────
   19. ERROR / 404 PAGE
   Full-screen breathing orb, glassmorphic recovery paths.
   Standalone page — always dark (#0a0b0a).
   ───────────────────────────────────────────────────────────── */


/* ─── Box Breathing Keyframes ─────────────────────────────────
   Cycle: Inhale 4s → Hold 4s → Exhale 4s → Hold 4s = 16s
   Each phase uses per-keyframe animation-timing-function.
   ───────────────────────────────────────────────────────────── */

/* Orb breath — scale + glow intensity */
@keyframes breathe-orb {
  0% {
    transform: scale(0.82) rotate(0deg);
    box-shadow: 0 0 20px 3px rgba(255, 255, 255, 0.15);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  25% {
    transform: scale(1.12) rotate(0deg);
    box-shadow: 0 0 60px 18px rgba(255, 255, 255, 0.35);
    animation-timing-function: linear;
  }

  50% {
    transform: scale(1.12) rotate(0deg);
    box-shadow: 0 0 60px 18px rgba(255, 255, 255, 0.35);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  75% {
    transform: scale(0.82) rotate(0deg);
    box-shadow: 0 0 20px 3px rgba(255, 255, 255, 0.15);
    animation-timing-function: linear;
  }

  100% {
    transform: scale(0.82) rotate(0deg);
    box-shadow: 0 0 20px 3px rgba(255, 255, 255, 0.15);
  }
}

/* Focus ring breath — expands beyond orb at peak */
@keyframes breathe-ring {
  0% {
    transform: scale(0.88);
    opacity: 0.45;
    border-color: rgba(255, 255, 255, 0.15);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  25% {
    transform: scale(1.28);
    opacity: 0.85;
    border-color: rgba(255, 255, 255, 0.35);
    animation-timing-function: linear;
  }

  50% {
    transform: scale(1.28);
    opacity: 0.85;
    border-color: rgba(255, 255, 255, 0.35);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  75% {
    transform: scale(0.88);
    opacity: 0.45;
    border-color: rgba(255, 255, 255, 0.15);
    animation-timing-function: linear;
  }

  100% {
    transform: scale(0.88);
    opacity: 0.45;
    border-color: rgba(255, 255, 255, 0.15);
  }
}

/* Ambient glow breath */
@keyframes breathe-glow {
  0% {
    transform: scale(0.75);
    opacity: 0.25;
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  25% {
    transform: scale(1.25);
    opacity: 0.50;
    animation-timing-function: linear;
  }

  50% {
    transform: scale(1.25);
    opacity: 0.50;
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  75% {
    transform: scale(0.75);
    opacity: 0.25;
    animation-timing-function: linear;
  }

  100% {
    transform: scale(0.75);
    opacity: 0.25;
  }
}


/* ─── Organic Morph ──────────────────────────────────────────
   Slow-cycling complex border-radius creates a living-cell /
   water-drop shape. Rotation layered on top via separate
   animation so morph + rotation remain independent.
   ───────────────────────────────────────────────────────────── */

@keyframes orb-morph {

  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(0deg);
  }

  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: rotate(90deg);
  }

  50% {
    border-radius: 50% 60% 30% 50% / 40% 50% 60% 50%;
    transform: rotate(180deg);
  }

  75% {
    border-radius: 40% 30% 60% 50% / 60% 40% 50% 30%;
    transform: rotate(270deg);
  }
}

/* ─── Seasonal Color Cycle ─────────────────────────────────── */
@keyframes orb-season {

  0%,
  100% {
    background-color: var(--season-spring-1);
  }

  25% {
    background-color: var(--season-summer-1);
  }

  50% {
    background-color: var(--season-autumn-1);
  }

  75% {
    background-color: var(--season-winter-1);
  }
}


/* ─── Breathing Phase Labels ─────────────────────────────────
   Pure CSS — four stacked spans, each fades in for its 4s
   phase and fades out for the remaining 12s. Staggered via
   animation-delay.
   ───────────────────────────────────────────────────────────── */

.error-breath-labels {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.error-breath-phase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0;
  animation: phase-reveal 16s infinite;
}

.error-breath-phase--inhale {
  animation-delay: 0s;
}

.error-breath-phase--hold-1 {
  animation-delay: 4s;
}

.error-breath-phase--exhale {
  animation-delay: 8s;
}

.error-breath-phase--hold-2 {
  animation-delay: 12s;
}

@keyframes phase-reveal {
  0% {
    opacity: 0;
  }

  2% {
    opacity: 1;
  }

  23% {
    opacity: 1;
  }

  25% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}


/* ── Error Page Variables ── */
:root {
  --error-orb-size: 260px;
  --error-copy-max-width: 420px;
  --error-card-gap: 0.85rem;

  /* Glass — inherits from global tokens, auto dark mode */
  --error-glass-bg: var(--glass-bg);
  --error-glass-bg-hover: rgba(255, 255, 255, 0.75);
  --error-glass-border: var(--glass-border);
  --error-glass-border-hover: rgba(255, 255, 255, 0.6);
  --error-glass-shadow: var(--glass-shadow);
  --error-glass-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ── Error Page Body ── */
.error-page-body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── Error Standalone Container ── */
.error-standalone {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem 1.5rem;
  z-index: 1;
}

/* ── Blob Background Layer ── */
.error-blob-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Grain texture (matches hero) */
.error-blob-background::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.error-blob {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform, background-color, border-radius, filter;
}

.error-blob--1 {
  width: 55vw;
  height: 55vw;
  max-width: 550px;
  max-height: 550px;
  top: -15%;
  left: -15%;
  animation:
    season-cycle-1 var(--cycle-duration) infinite linear,
    drift-1 25s infinite alternate ease-in-out;
}

.error-blob--2 {
  width: 45vw;
  height: 45vw;
  max-width: 450px;
  max-height: 450px;
  bottom: -10%;
  right: -10%;
  animation:
    season-cycle-2 var(--cycle-duration) infinite linear,
    drift-2 30s infinite alternate ease-in-out;
}

.error-blob--3 {
  width: 35vw;
  height: 35vw;
  max-width: 350px;
  max-height: 350px;
  top: 40%;
  left: 40%;
  opacity: 0.3;
  animation:
    season-cycle-3 var(--cycle-duration) infinite linear,
    drift-3 35s infinite alternate ease-in-out;
}

/* ── Orb Scene ── */
.error-orb-scene {
  position: relative;
  width: var(--error-orb-size);
  height: var(--error-orb-size);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  /* Scene breathes as a unit — inhale grows, exhale shrinks */
  animation: breathe-scene 16s infinite;
}

/* Ripple ring 2 — middle expansion */
.error-orb-scene::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  animation: ripple-ring 16s ease-out infinite;
  animation-delay: 0.8s;
  pointer-events: none;
}

/* Ripple ring 3 — outermost, faintest */
.error-orb-scene::after {
  content: '';
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: ripple-ring 16s ease-out infinite;
  animation-delay: 1.6s;
  pointer-events: none;
}

/* Layer 1 — Deep ambient glow (seasonal color halo) */
.error-orb-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  will-change: transform, opacity, background-color;
  animation:
    breathe-glow 16s infinite,
    orb-season 15s linear infinite;
}

/* Layer 2 — Primary ripple ring (closest to orb) */
.error-focus-ring {
  position: absolute;
  width: 185px;
  height: 185px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px 1px rgba(255, 255, 255, 0.06);
  will-change: transform, opacity;
  animation: ripple-ring 16s ease-out infinite;
  pointer-events: none;
}

/* Layer 3 — Luminous Seasonal Orb */
.error-orb {
  width: 150px;
  height: 150px;
  position: relative;
  z-index: 1;
  border-radius: 50%;
  /* Translucent glass sphere */
  background: radial-gradient(
    circle at 35% 30%,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.06) 55%,
    transparent 75%
  );
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.1),
    0 0 40px 8px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  will-change: border-radius;
  animation: orb-morph 20s ease-in-out infinite;
}

/* Inner luminous glow — pulses brighter on inhale */
.error-orb::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 40% 35%,
    rgba(255, 255, 255, 0.55),
    transparent 65%
  );
  opacity: 0.4;
  animation: inner-luminance 16s infinite;
  pointer-events: none;
}

/* Seasonal color wash — tints the orb with cycling colors */
.error-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.25;
  mix-blend-mode: overlay;
  animation: orb-season 15s linear infinite;
  pointer-events: none;
}

/* ── Copy Block ── */
.error-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  max-width: var(--error-copy-max-width);
  z-index: 3;
  position: relative;
}

.error-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}

.error-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.01em;
}

.error-sub {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  font-weight: 300;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* ── Recovery Path Cards (glassmorphic) ── */
.error-paths {
  display: flex;
  flex-direction: row;
  gap: var(--error-card-gap);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 660px;
  width: 100%;
  margin-top: 0.5rem;
  z-index: 3;
  position: relative;
}

.error-path-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.4rem 1.2rem;
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  border-radius: 18px;
  background: var(--error-glass-bg);
  border: 1px solid var(--error-glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  color: inherit;
  transition:
    background 0.4s var(--ease-premium),
    border-color 0.4s var(--ease-premium),
    box-shadow 0.4s var(--ease-premium),
    transform 0.4s var(--ease-premium);
}

.error-path-card:hover {
  background: var(--error-glass-bg-hover);
  border-color: var(--error-glass-border-hover);
  box-shadow: var(--error-glass-shadow-hover);
  transform: translateY(-4px);
}

.error-path-card:active {
  transform: scale(0.98);
}

.error-path-card:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.error-path-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.error-path-desc {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── New Keyframes for Luminous Orb ── */

/* Scene breathing — scales the entire orb unit */
@keyframes breathe-scene {
  0% {
    transform: scale(0.88);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  25% {
    transform: scale(1.0);
    animation-timing-function: linear;
  }

  50% {
    transform: scale(1.0);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  75% {
    transform: scale(0.88);
    animation-timing-function: linear;
  }

  100% {
    transform: scale(0.88);
  }
}

/* Ripple ring — concentric rings expand on inhale */
@keyframes ripple-ring {
  0% {
    transform: scale(0.85);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  10% {
    opacity: 0.5;
  }

  25% {
    transform: scale(1.25);
    opacity: 0.35;
    animation-timing-function: linear;
  }

  50% {
    transform: scale(1.25);
    opacity: 0.25;
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  75% {
    transform: scale(0.85);
    opacity: 0.08;
    animation-timing-function: linear;
  }

  100% {
    transform: scale(0.85);
    opacity: 0;
  }
}

/* Inner luminance — orb center glow brightens on inhale */
@keyframes inner-luminance {
  0% {
    opacity: 0.3;
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  25% {
    opacity: 0.85;
    animation-timing-function: linear;
  }

  50% {
    opacity: 0.75;
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  75% {
    opacity: 0.3;
    animation-timing-function: linear;
  }

  100% {
    opacity: 0.3;
  }
}


/* ─────────────────────────────────────────────────────────────
   ERROR PAGE RESPONSIVE BREAKPOINTS
   ───────────────────────────────────────────────────────────── */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  :root {
    --error-orb-size: 220px;
  }

  .error-orb-glow {
    width: 240px;
    height: 240px;
  }

  .error-focus-ring {
    width: 160px;
    height: 160px;
  }

  .error-orb {
    width: 130px;
    height: 130px;
  }

  .error-orb-scene::before {
    width: 175px;
    height: 175px;
  }

  .error-orb-scene::after {
    width: 195px;
    height: 195px;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  :root {
    --error-orb-size: 200px;
  }

  .error-standalone {
    gap: 1.5rem;
    padding: 1.5rem 1.25rem;
  }

  .error-orb-glow {
    width: 210px;
    height: 210px;
  }

  .error-focus-ring {
    width: 140px;
    height: 140px;
  }

  .error-orb {
    width: 110px;
    height: 110px;
  }

  .error-orb-scene::before {
    width: 155px;
    height: 155px;
  }

  .error-orb-scene::after {
    width: 175px;
    height: 175px;
  }

  .error-paths {
    flex-direction: column;
    align-items: center;
  }

  .error-path-card {
    max-width: 100%;
    width: 100%;
  }

  /* Reduce blob sizes on mobile */
  .error-blob--1 {
    width: 250px;
    height: 250px;
  }

  .error-blob--2 {
    width: 200px;
    height: 200px;
  }

  .error-blob--3 {
    width: 180px;
    height: 180px;
  }
}

/* ─────────────────────────────────────────────────────────────
   ERROR PAGE DARK MODE
   Token-based colors auto-switch. Only blob/orb visuals and
   glass hover states need explicit dark overrides.
   ───────────────────────────────────────────────────────────── */

body.is-dark .error-blob {
  opacity: 0.25;
  filter: blur(100px);
}

body.is-dark .error-orb-glow {
  opacity: 0.25;
}

body.is-dark .error-orb {
  background: radial-gradient(
    circle at 35% 30%,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.04) 55%,
    transparent 75%
  );
  border-color: rgba(255, 255, 255, 0.12);
}

body.is-dark .error-path-card:focus {
  outline-color: rgba(178, 197, 178, 0.4);
}

/* Dark mode glass hover overrides */
body.is-dark {
  --error-glass-bg-hover: rgba(255, 255, 255, 0.08);
  --error-glass-border-hover: rgba(255, 255, 255, 0.2);
  --error-glass-shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.3);
}

/* ─────────────────────────────────────────────────────────────
   ERROR PAGE MOTION PREFERENCES (Accessibility)
   Respect prefers-reduced-motion for users with vestibular issues
   ───────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {

  .error-orb,
  .error-orb::before,
  .error-orb::after,
  .error-orb-glow,
  .error-focus-ring,
  .error-orb-scene,
  .error-orb-scene::before,
  .error-orb-scene::after,
  .error-blob {
    animation: none !important;
  }

  .error-orb {
    border-radius: 50%;
  }

  .error-orb::before {
    opacity: 0.5;
  }

  .error-breath-phase {
    animation: none;
  }

  .error-breath-phase--inhale {
    opacity: 1;
  }

  .error-path-card {
    transition: none !important;
  }

  .error-path-card:hover {
    transform: none !important;
  }
}