/* ==========================================================================
   THE MYSTICAL FLIGHT — Dee Van Balen
   Editorial author-brand design system
   --------------------------------------------------------------------------
   Display: Cormorant Garamond · UI/Body: Inter
   Palette: deep navy + warm ivory, gold as a quiet accent, blue for action.

   Note on !important: Elementor prints per-element CSS keyed to element ids
   (and container `.e-con.e-flex` layout rules) at higher specificity than a
   single class. It is used only where our rule has to beat those.
   ========================================================================== */

:root {
  /* Color */
  --ink: #071426;
  --ink-2: #0D1C31;
  --ink-3: #050E1C;
  --ivory: #F7F4EE;
  --ivory-2: #FBF9F5;
  --white: #FFFFFF;
  --text: #172235;
  --muted: #6D7480;
  --gold: #C9A96A;
  --gold-soft: #E3CD9C;
  --blue: #3FA9F5;
  --blue-strong: #1769C2;
  --blue-strong-hover: #1F7FDB;

  --on-dark: #F3EFE7;
  --on-dark-muted: rgba(243, 239, 231, 0.68);
  --on-dark-faint: rgba(243, 239, 231, 0.42);
  --line-light: rgba(23, 34, 53, 0.1);
  --line-dark: rgba(255, 255, 255, 0.1);
  --line-gold: rgba(201, 169, 106, 0.42);

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-h1: clamp(42px, 5.4vw, 74px);
  --fs-h2: clamp(32px, 3.6vw, 50px);
  --fs-h3: clamp(24px, 2.1vw, 30px);
  --fs-lede: clamp(16px, 1.15vw, 18px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-label: 11.5px;

  /* Layout */
  --container: 1240px;
  --gutter: 40px;
  --section-y: 50px;
  --header-h: 76px;

  /* Shape + depth */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 10px 30px -18px rgba(7, 20, 38, 0.28);
  --shadow-md: 0 24px 60px -30px rgba(7, 20, 38, 0.35);
  --shadow-lg: 0 40px 90px -40px rgba(7, 20, 38, 0.5);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 220ms;
  --t-med: 420ms;
  --t-slow: 700ms;
}

@media (max-width: 1024px) { :root { --gutter: 32px; } }
@media (max-width: 640px) { :root { --gutter: 20px; --header-h: 68px; } }

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: calc(var(--header-h) + 16px); }
body, h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

body.mystical-flight {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Every Elementor global/typography token resolves to our two families. */
body.mystical-flight,
body.mystical-flight .elementor-kit-5 {
  --e-global-typography-primary-font-family: 'Cormorant Garamond';
  --e-global-typography-secondary-font-family: 'Cormorant Garamond';
  --e-global-typography-text-font-family: 'Inter';
  --e-global-typography-accent-font-family: 'Inter';
}
.mystical-flight .elementor-widget-text-editor,
.mystical-flight .elementor-widget-text-editor p { font-family: var(--font-body); font-weight: 400; }

::selection { background: rgba(63, 169, 245, 0.22); }

.mf-container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.mf-narrow { max-width: 780px; }

/* Elementor containers: our classes own spacing, not the builder defaults. */
.mystical-flight .e-con { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; }
.mystical-flight .e-con.mf-container { padding-left: var(--gutter); padding-right: var(--gutter); }
.mystical-flight .elementor-widget:not(:last-child) { margin-block-end: 0; }

/* ==========================================================================
   Typography
   (Heading widgets can't carry classes, so they're styled by tag + context.)
   ========================================================================== */

/* Eyebrow — heading widget rendered as <p> */
p.elementor-heading-title {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body) !important;
  font-size: var(--fs-label) !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  margin: 0 0 18px !important;
}
p.elementor-heading-title::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.8; flex-shrink: 0; }
.dark-section p.elementor-heading-title,
.mf-hero p.elementor-heading-title { color: var(--gold-soft) !important; }
.section-head.centered p.elementor-heading-title { justify-content: center; }

h1.elementor-heading-title,
h2.elementor-heading-title,
h3.elementor-heading-title {
  font-family: var(--font-display) !important;
  font-weight: 500 !important;
  letter-spacing: -0.005em !important;
  margin: 0 !important;
  text-wrap: balance;
}
h1.elementor-heading-title { font-size: var(--fs-h1) !important; line-height: 1.04 !important; color: var(--white) !important; }
h2.elementor-heading-title { font-size: var(--fs-h2) !important; line-height: 1.1 !important; color: var(--text) !important; }
h3.elementor-heading-title { font-size: var(--fs-h3) !important; line-height: 1.2 !important; }
.dark-section h2.elementor-heading-title,
.mf-hero h2.elementor-heading-title,
.mf-quote-immersive h2.elementor-heading-title { color: var(--white) !important; }

h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 500; }
.dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4 { color: var(--white); }
.light-section h1, .light-section h2, .light-section h3, .light-section h4,
.warm-section h1, .warm-section h2, .warm-section h3, .warm-section h4 { color: var(--text); }

/* Body copy / ledes */
.mystical-flight .elementor-widget-text-editor { font-size: var(--fs-lede); line-height: 1.8; text-wrap: pretty; }
.mystical-flight .elementor-widget-text-editor p + p { margin-top: 1em; }
.light-section .elementor-widget-text-editor,
.warm-section .elementor-widget-text-editor { color: var(--muted); }
.dark-section .elementor-widget-text-editor,
.mf-hero .elementor-widget-text-editor { color: var(--on-dark-muted); }

/* Section heads */
.section-head { max-width: 760px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.section-head .elementor-widget-text-editor { margin-top: 18px; max-width: 600px; }
.section-head.centered .elementor-widget-text-editor { margin-left: auto; margin-right: auto; }

/* Size helpers kept for interior pages */
.h-lg, .h-xl, .h-md, .h-hero, .editorial-heading { font-family: var(--font-display); }

.gold-divider { width: 64px; height: 1px; margin: 26px 0; background: var(--gold); position: relative; }
.gold-divider.centered { margin-left: auto; margin-right: auto; }
.gold-divider::after { content: ''; position: absolute; left: 0; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.gold-divider.centered::after { left: calc(50% - 2.5px); }

/* ==========================================================================
   Sections
   ========================================================================== */

.dark-section, .light-section, .warm-section { position: relative; padding: var(--section-y) 0; }
.dark-section { background: var(--ink); color: var(--on-dark); }
.light-section { background: var(--white); color: var(--text); }
.warm-section { background: var(--ivory); color: var(--text); }
.mystical-flight [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.mf-anchor-offset { display: block; position: relative; top: calc(-1 * (var(--header-h) + 16px)); visibility: hidden; }
.narrow-grid { max-width: 860px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.mf-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 15px 30px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600; line-height: 1.2;
  letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.mf-btn svg { width: 15px; height: 15px; }
.mf-btn-primary { background: var(--blue-strong); color: #fff; box-shadow: 0 14px 30px -16px rgba(23, 105, 194, 0.8); }
.mf-btn-primary:hover { background: var(--blue-strong-hover); transform: translateY(-2px); box-shadow: 0 18px 36px -16px rgba(31, 127, 219, 0.85); }
.mf-btn-secondary { background: transparent; color: inherit; border-color: var(--line-gold); }
.mf-btn-secondary:hover { border-color: var(--gold); background: rgba(201, 169, 106, 0.08); transform: translateY(-2px); }
.light-section .mf-btn-secondary, .warm-section .mf-btn-secondary, .mf-overlap-card .mf-btn-secondary { color: var(--text); }
.mf-btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.mf-btn-block { width: 100%; }
@media (max-width: 520px) { .mf-btn { white-space: normal; text-align: center; } }

.mf-btn-row { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.mf-btn-row.centered { justify-content: center !important; }
@media (max-width: 520px) {
  .mf-btn-row { flex-direction: column !important; align-items: stretch !important; }
  .mf-btn-row .elementor-widget, .mf-btn-row .mf-btn { width: 100%; }
}

.mf-text-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-strong); border-bottom: 1px solid transparent; padding-bottom: 3px;
  transition: gap var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.mf-text-link svg { width: 14px; height: 14px; }
.mf-text-link:hover { gap: 12px; border-bottom-color: currentColor; }
.dark-section .mf-text-link { color: var(--gold-soft); }

/* Legacy link class used on interior pages */
.explore-link.split-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-strong); }
.dark-section .explore-link.split-link { color: var(--gold-soft); }
.explore-link.split-link svg { width: 14px; height: 14px; }

/* ==========================================================================
   Header
   ========================================================================== */

.mf-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h); display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.mf-header .mf-container { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.mf-header.is-scrolled,
body.mf-not-home .mf-header {
  background: rgba(7, 20, 38, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(201, 169, 106, 0.16);
}
.mf-header.is-scrolled { box-shadow: 0 12px 40px -24px rgba(0, 0, 0, 0.7); }
.admin-bar .mf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mf-header { top: 46px; } }

.mf-brand { display: flex; align-items: center; gap: 12px; color: var(--white); flex-shrink: 0; }
.mf-brand svg { width: 30px; height: 30px; flex-shrink: 0; }
.mf-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.mf-brand-name { font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: 0.01em; }
.mf-brand-sub { margin-top: 4px; font-size: 9.5px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-soft); }

.mf-nav { display: flex; align-items: center; gap: 30px; }
.mf-nav a {
  position: relative; display: inline-block; padding: 6px 0; white-space: nowrap;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-muted); transition: color var(--t-fast) var(--ease);
}
.mf-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.mf-nav a:hover, .mf-nav .current-menu-item > a { color: var(--white); }
.mf-nav a:hover::after, .mf-nav .current-menu-item > a::after { transform: scaleX(1); }

.mf-header-actions { display: flex; align-items: center; gap: 14px; }
.mf-header-actions .mf-btn { min-height: 44px; padding: 11px 22px; font-size: 11.5px; }

.mf-menu-toggle {
  display: none; position: relative; z-index: 201;
  width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px;
}
.mf-menu-toggle span { display: block; width: 100%; height: 1.5px; background: var(--white); transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.mf-menu-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mf-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.mf-menu-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mf-mobile-nav {
  position: fixed; inset: 0; z-index: 199;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  background: rgba(5, 14, 28, 0.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility var(--t-med);
}
.mf-mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mf-mobile-nav > li { list-style: none; }
.mf-mobile-nav a:not(.mf-btn) { font-family: var(--font-display); font-size: 30px; font-weight: 500; color: var(--on-dark); transition: color var(--t-fast) var(--ease); }
.mf-mobile-nav a:not(.mf-btn):hover { color: var(--gold-soft); }
.mf-mobile-nav .mf-btn { margin-top: 14px; }

@media (max-width: 1400px) { .mf-nav { gap: 24px; } }
@media (max-width: 1260px) {
  .mf-nav { display: none; }
  .mf-header-actions .mf-btn { display: none; }
  .mf-menu-toggle { display: flex; }
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.mf-breadcrumbs { padding: 0 0 22px; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-faint); }
.mf-breadcrumbs a { color: var(--gold-soft); transition: color var(--t-fast) var(--ease); }
.mf-breadcrumbs a:hover { color: var(--white); }
.mf-breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }

/* ==========================================================================
   Hero
   ========================================================================== */

.mf-hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  padding: calc(var(--header-h) + var(--section-y)) 0 var(--section-y);
  background:
    radial-gradient(70% 80% at 80% 30%, rgba(63, 169, 245, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--on-dark);
}
.mf-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 24% 68%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 38% 12%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.4px 1.4px at 58% 84%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 66% 16%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.4px 1.4px at 88% 62%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 93% 18%, rgba(255,255,255,0.45), transparent);
}
.mf-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 106, 0.35), transparent);
}

.mf-hero-grid {
  position: relative; z-index: 2; width: 100%;
  display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
.mf-hero-grid.mf-hero-centered { grid-template-columns: minmax(0, 1fr) !important; max-width: 860px; margin: 0 auto; text-align: center; }
.mf-hero-grid.mf-hero-centered .mf-hero-copy { align-items: center; }
.mf-hero-grid.mf-hero-centered p.elementor-heading-title { justify-content: center; }

.mf-hero-copy h1.elementor-heading-title { margin-top: 4px !important; }
.mf-hero-copy .elementor-widget-text-editor { margin-top: 26px; max-width: 520px; font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.8; }
.mf-hero-grid.mf-hero-centered .mf-hero-copy .elementor-widget-text-editor { margin-left: auto; margin-right: auto; }
.mf-hero-copy .mf-btn-row { margin-top: 40px; }

.mf-hero-meta { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 13px; color: var(--on-dark-muted); }
.mf-hero-meta span { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--gold-soft); padding-right: 14px; border-right: 1px solid var(--line-dark); }

/* Home hero — author portrait with the book layered in front */
.mf-hero-author-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 540px; }
.mf-hero-author-visual .glow-core {
  position: absolute; width: 120%; aspect-ratio: 1; max-width: 680px;
  background: radial-gradient(circle, rgba(63, 169, 245, 0.28) 0%, rgba(63, 169, 245, 0.08) 40%, transparent 68%);
  pointer-events: none;
}
.mf-hero-author-portrait {
  position: relative; z-index: 2; width: min(78%, 430px); aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.mf-hero-author-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.mf-hero-author-book {
  position: absolute; z-index: 4; right: 0; bottom: 0; width: min(38%, 200px);
  animation: mfFloat 7s ease-in-out infinite;
}
.mf-hero-author-book img { width: 100%; object-fit: contain; filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.6)); }

/* Interior hero — floating book */
.mf-hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.mf-hero-visual .glow-core {
  position: absolute; width: 110%; aspect-ratio: 1; max-width: 620px;
  background: radial-gradient(circle, rgba(63, 169, 245, 0.28) 0%, rgba(63, 169, 245, 0.08) 40%, transparent 68%);
}
.mf-hero-visual .wing-shape { display: none; }
.mf-book-figure { position: relative; z-index: 3; width: min(52%, 300px); animation: mfFloat 7s ease-in-out infinite; }
.mf-book-figure img { width: 100%; object-fit: contain; filter: drop-shadow(0 30px 44px rgba(0, 0, 0, 0.6)); }
.mf-hero-visual .book-shadow { position: absolute; z-index: 2; bottom: 6%; width: 220px; height: 28px; background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5) 0%, transparent 70%); }

@keyframes mfFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 1024px) {
  .mf-hero-grid:not(.mf-hero-centered) { grid-template-columns: minmax(0, 1fr) !important; text-align: center; }
  .mf-hero-grid:not(.mf-hero-centered) .mf-hero-copy { align-items: center; }
  .mf-hero-copy p.elementor-heading-title { justify-content: center; }
  .mf-hero-copy .elementor-widget-text-editor { margin-left: auto; margin-right: auto; }
  .mf-hero-copy .mf-btn-row { justify-content: center; }
  .mf-hero-meta { justify-content: center; }
  .mf-hero-author-visual { min-height: 0; max-width: 460px; margin: 0 auto; width: 100%; }
  .mf-hero-visual { min-height: 340px; }
}
@media (max-width: 640px) {
  .mf-hero-meta span { border-right: none; padding-right: 0; width: 100%; }
  .mf-hero-author-book { width: 36%; right: -2%; }
}

/* ==========================================================================
   About the author — elevated card overlapping the hero
   ========================================================================== */

.mf-overlap-wrap { position: relative; background: var(--ivory); padding: var(--section-y) 0; }
.mf-overlap-card {
  display: grid !important; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr) !important;
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4vw, 56px);
  background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.mf-overlap-card .overlap-portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; }
.mf-overlap-card .overlap-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.mf-overlap-card h2.elementor-heading-title { color: var(--text) !important; }
.mf-overlap-card .elementor-widget-text-editor { margin-top: 20px; max-width: 620px; font-size: var(--fs-body); color: var(--muted); }
.mf-role-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.mf-role-chips li { padding: 7px 14px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); border: 1px solid var(--line-light); border-radius: 999px; background: var(--ivory-2); }
@media (max-width: 860px) {
  .mf-overlap-card { grid-template-columns: minmax(0, 1fr) !important; text-align: center; }
  .mf-overlap-card .overlap-portrait { max-width: 240px; margin: 0 auto; }
  .mf-overlap-copy { align-items: center; }
  .mf-overlap-card p.elementor-heading-title { justify-content: center; }
  .mf-overlap-card .elementor-widget-text-editor { margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .mf-overlap-card .elementor-widget-text-editor { text-align: left; }
  .mf-role-chips { justify-content: center; }
}

/* ==========================================================================
   Split media / copy
   ========================================================================== */

.mf-split { display: grid !important; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important; gap: clamp(40px, 6vw, 96px); align-items: center; }
.mf-split.reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) !important; }
.mf-split.reverse .mf-split-media-col { order: 2; }
.mf-split.balanced { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
.mf-split-copy .elementor-widget-text-editor { max-width: 580px; }

.mf-split-media { position: relative; }
.mf-split-media img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.mf-split-media .frame-glow { display: none; }
.mf-split-media.portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }
.dark-section .mf-split-media img { box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8); }
.mf-split-media.book-cover { max-width: 420px; margin: 0 auto; }
.mf-split-media.book-cover img { object-fit: contain; border-radius: 4px; box-shadow: none; filter: drop-shadow(0 34px 44px rgba(7, 20, 38, 0.35)); }
.dark-section .mf-split-media.book-cover img { filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.6)); }

.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.tag-chips li { padding: 7px 14px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); border: 1px solid var(--line-light); border-radius: 999px; background: var(--ivory-2); }
.dark-section .tag-chips li { color: var(--gold-soft); border-color: var(--line-dark); background: rgba(255, 255, 255, 0.03); }

.mf-pull-quote {
  margin: 30px 0 0; padding: 2px 0 2px 22px; border-left: 1px solid var(--gold);
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.5; color: var(--text);
}
.dark-section .mf-pull-quote { color: var(--on-dark); }
.signature { margin-top: 18px; font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--text); }
.dark-section .signature { color: var(--gold-soft); }

@media (max-width: 900px) {
  .mf-split, .mf-split.reverse, .mf-split.balanced { grid-template-columns: minmax(0, 1fr) !important; }
  .mf-split.reverse .mf-split-media-col { order: -1; }
  .mf-split-media { max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ==========================================================================
   About the book (home)
   ========================================================================== */

.mf-book-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 56px);
  background: radial-gradient(80% 70% at 50% 40%, #13305a 0%, var(--ink) 75%);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.mf-book-stage img { position: relative; z-index: 1; width: min(78%, 360px); object-fit: contain; filter: drop-shadow(0 36px 44px rgba(0, 0, 0, 0.65)); transition: transform var(--t-slow) var(--ease); }
.mf-book-stage:hover img { transform: translateY(-6px); }

.mf-available-badge {
  position: absolute; z-index: 3; top: 18px; right: 18px;
  padding: 7px 14px; font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-soft); border: 1px solid var(--line-gold); border-radius: 999px; background: rgba(7, 20, 38, 0.6);
}

.mf-book-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; border-top: 1px solid var(--line-light); }
.mf-book-meta > div { padding: 16px 0; border-bottom: 1px solid var(--line-light); }
.mf-book-meta > div:nth-child(odd) { padding-right: 20px; }
.mf-book-meta dt { font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.mf-book-meta dd { margin-top: 4px; font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--text); }
@media (max-width: 480px) { .mf-book-meta { grid-template-columns: minmax(0, 1fr); } .mf-book-meta > div:nth-child(odd) { padding-right: 0; } }

/* ==========================================================================
   Book formats (home)
   ========================================================================== */

.mf-format-row { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 24px; align-items: stretch; }
.mf-format-card {
  position: relative; display: flex !important; flex-direction: column !important;
  padding: 36px 32px 32px; background: var(--white); color: var(--text);
  border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.mf-format-card > .elementor-widget-html:first-child { flex: 1; }
.mf-format-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(201, 169, 106, 0.5); }
.mf-format-card.is-featured { background: var(--ink); color: var(--on-dark); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.mf-format-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.mf-format-num { font-family: var(--font-display); font-size: 44px; font-weight: 500; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.mf-format-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--blue-strong); background: rgba(63, 169, 245, 0.1); }
.mf-format-card.is-featured .mf-format-icon { color: var(--blue); background: rgba(63, 169, 245, 0.14); }
.mf-format-icon svg { width: 21px; height: 21px; }
.mf-format-card .format-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.mf-format-card h3 { margin-top: 8px; font-family: var(--font-display); font-size: 32px; font-weight: 500; line-height: 1.1; color: inherit; }
.mf-format-desc { margin-top: 12px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.mf-format-card.is-featured .mf-format-desc { color: var(--on-dark-muted); }
.mf-format-price { display: flex; align-items: baseline; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-light); }
.mf-format-card.is-featured .mf-format-price { border-top-color: var(--line-dark); }
.mf-format-price .price-value { font-family: var(--font-display); font-size: 36px; font-weight: 500; line-height: 1; }
.mf-format-price .price-note { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.mf-format-card.is-featured .price-note { color: var(--on-dark-muted); }
.mf-format-card .mf-btn { margin-top: 26px; }
.mf-format-card.is-featured .mf-btn-secondary { color: var(--on-dark); }
@media (max-width: 960px) {
  .mf-format-row { grid-template-columns: minmax(0, 1fr) !important; max-width: 480px; margin: 0 auto; row-gap: 32px; }
}

/* ==========================================================================
   Cards (interior: editions, info)
   ========================================================================== */

.mf-grid-2 { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px; }
.mf-grid-3 { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 24px; }
.mf-grid-4 { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 20px; }
@media (max-width: 960px) { .mf-grid-3, .mf-grid-4 { grid-template-columns: minmax(0, 1fr) !important; max-width: 520px; margin: 0 auto; } }
@media (max-width: 680px) { .mf-grid-2 { grid-template-columns: minmax(0, 1fr) !important; } }

.mf-card {
  position: relative; display: flex !important; flex-direction: column !important;
  padding: 36px 32px 32px; background: var(--white); color: var(--text);
  border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.mf-card > .elementor-widget-html:first-child { flex: 1; }
.mf-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(201, 169, 106, 0.5); }
.mf-card.is-featured { border-color: var(--line-gold); box-shadow: var(--shadow-md); }
.mf-card-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; margin-bottom: 26px; border-radius: 50%; color: var(--blue-strong); background: rgba(63, 169, 245, 0.1); }
.mf-card-icon svg { width: 21px; height: 21px; }
.mf-card .format-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.mf-card h3 { margin: 8px 0 12px; font-family: var(--font-display); font-size: 32px; font-weight: 500; line-height: 1.1; color: var(--text); }
.mf-card p.desc { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.mf-card-price { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 26px; padding-top: 22px; border-top: 1px solid var(--line-light); }
.mf-card-price .price-value { font-family: var(--font-display); font-size: 36px; font-weight: 500; line-height: 1; color: var(--text); }
.mf-card-price .price-note { font-size: 12px; color: var(--muted); }

/* ==========================================================================
   Video trailer
   ========================================================================== */

.mf-video-trailer.dark-section { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); overflow: hidden; }
.mf-video-trailer .video-glow-a, .mf-video-trailer .video-glow-b { display: none; }
.mf-video-frame {
  position: relative; z-index: 1; width: 100%; max-width: 1000px; margin: 0 auto;
  aspect-ratio: 16 / 9; overflow: hidden; background: #000;
  border-radius: var(--radius-lg);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(201, 169, 106, 0.22);
}
.mf-video-frame video { position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
.mf-video-frame::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 20, 38, 0.1) 0%, rgba(7, 20, 38, 0) 40%, rgba(7, 20, 38, 0.45) 100%);
  transition: opacity var(--t-med) var(--ease);
}
.mf-video-frame .frame-glow { display: none; }
.mf-video-frame.is-playing::before { opacity: 0; }
.mf-video-badge {
  position: absolute; z-index: 3; top: 20px; left: 20px;
  padding: 7px 14px; font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-soft); border: 1px solid var(--line-gold); border-radius: 999px;
  background: rgba(7, 20, 38, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity var(--t-fast) var(--ease);
}
.mf-video-play {
  position: absolute; z-index: 4; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); cursor: pointer; color: var(--ink);
  background: rgba(255, 255, 255, 0.92); box-shadow: 0 20px 50px -14px rgba(0, 0, 0, 0.6);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-med) var(--ease), background-color var(--t-fast) var(--ease);
}
.mf-video-play svg { width: 26px; height: 26px; margin-left: 4px; }
.mf-video-play .play-ring { display: none; }
.mf-video-play:hover { transform: translate(-50%, -50%) scale(1.06); background: #fff; }
.mf-video-frame.is-playing .mf-video-play,
.mf-video-frame.is-playing .mf-video-badge { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .mf-video-frame { border-radius: var(--radius-md); }
  .mf-video-play { width: 64px; height: 64px; }
  .mf-video-play svg { width: 20px; height: 20px; }
  .mf-video-badge { top: 12px; left: 12px; font-size: 9px; padding: 5px 10px; }
}

/* ==========================================================================
   Retailers
   ========================================================================== */

.mf-retailer-card {
  display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 22px;
  padding: 32px; background: var(--white); color: var(--text);
  border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.mf-retailer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-gold); }
.mf-retailer-card > .elementor-widget-html:first-child { width: 100%; flex: 1; align-items: flex-start !important; }
.mf-retailer-card > .elementor-widget-html:first-child > .elementor-widget-container,
.mf-retailer-card > .elementor-widget-html:first-child { display: flex; align-items: center; gap: 18px; }
.mf-retailer-card .elementor-widget-html:last-child { width: 100%; }
.mf-retailer-card .mf-btn { width: 100%; }
.mf-retailer-icon { flex-shrink: 0; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--blue-strong); background: rgba(63, 169, 245, 0.1); }
.mf-retailer-icon svg { width: 23px; height: 23px; }
.mf-retailer-copy .retailer-name { font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1.15; color: var(--text); }
.mf-retailer-copy p:not(.retailer-name) { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* Edition comparison table */
.mf-compare-wrap { overflow-x: auto; border: 1px solid var(--line-light); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.mf-compare { width: 100%; min-width: 560px; border-collapse: collapse; }
.mf-compare th, .mf-compare td { padding: 18px 24px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line-light); }
.mf-compare thead th { font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--text); background: var(--ivory-2); }
.mf-compare tbody th { font-weight: 500; color: var(--muted); }
.mf-compare td { color: var(--text); }
.mf-compare tr:last-child td, .mf-compare tr:last-child th { border-bottom: none; }

/* ==========================================================================
   Reviews
   ========================================================================== */

.mf-reviews-section.dark-section { background: var(--ink-2); }
.mf-testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
@media (max-width: 1024px) { .mf-testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .mf-testimonials { grid-template-columns: minmax(0, 1fr); } }
.mf-testimonial {
  display: flex; flex-direction: column; margin: 0; padding: 32px 30px;
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.03);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.mf-testimonial:hover { transform: translateY(-4px); border-color: var(--line-gold); }
.mf-testimonial blockquote { flex: 1; }
.mf-testimonial blockquote p + p { margin-top: 0.8em; }
.mf-stars { display: flex; gap: 3px; margin-bottom: 20px; }
.mf-stars svg { width: 15px; height: 15px; fill: var(--gold); }
.mf-stars svg.off { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: 0.5; }
.light-section .mf-testimonial, .warm-section .mf-testimonial { background: var(--white); border-color: var(--line-light); box-shadow: var(--shadow-sm); }
.light-section .mf-testimonial blockquote, .warm-section .mf-testimonial blockquote { color: var(--text); }
.light-section .mf-testimonial figcaption, .warm-section .mf-testimonial figcaption { border-top-color: var(--line-light); }
.light-section .mf-testimonial .name, .warm-section .mf-testimonial .name { color: var(--text); }
.light-section .mf-testimonial .role, .warm-section .mf-testimonial .role { color: var(--gold); }
.light-section .mf-review-invite, .warm-section .mf-review-invite { background: var(--white); border-color: var(--line-light); box-shadow: var(--shadow-sm); }
.light-section .mf-review-invite .invite-text, .warm-section .mf-review-invite .invite-text { color: var(--text); }
.light-section .mf-review-invite .mf-btn-secondary, .warm-section .mf-review-invite .mf-btn-secondary { color: var(--text); }
.mf-reviews-more { display: flex !important; flex-direction: row !important; justify-content: center; margin-top: 40px; }
.mf-testimonial blockquote { font-family: var(--font-display); font-style: italic; font-size: 21px; line-height: 1.5; color: var(--on-dark); }
.mf-testimonial figcaption { font-style: normal; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 2px; }
.mf-testimonial .name { font-size: 14px; font-weight: 600; color: var(--on-dark); }
.mf-testimonial .role { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); }

.mf-review-invite {
  grid-column: 1 / -1; max-width: 640px; margin: 0 auto; text-align: center;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 56px);
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.025);
}
.mf-review-invite .quote-glyph { font-family: var(--font-display); font-size: 72px; line-height: 0.6; color: var(--gold); margin-bottom: 18px; }
.mf-review-invite .invite-text { font-family: var(--font-display); font-style: italic; font-size: clamp(21px, 2vw, 26px); line-height: 1.5; color: var(--on-dark); }
.mf-review-invite .mf-btn { margin-top: 30px; }

/* Honest empty state used on interior pages */
.mf-empty-state { max-width: 600px; margin: 0 auto; padding: 44px 32px; text-align: center; border: 1px dashed var(--line-dark); border-radius: var(--radius-lg); }
.mf-empty-state p { font-size: 15.5px; line-height: 1.75; color: var(--on-dark-muted); }
.light-section .mf-empty-state, .warm-section .mf-empty-state { border-color: var(--line-light); }
.light-section .mf-empty-state p, .warm-section .mf-empty-state p { color: var(--muted); }
.mf-note { margin-top: 28px; text-align: center; font-size: 12.5px; color: var(--on-dark-faint); }
.light-section .mf-note, .warm-section .mf-note { color: var(--muted); }

.mf-stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.mf-stat-tile { padding: 28px 20px; text-align: center; border: 1px solid var(--line-dark); border-radius: var(--radius-md); }
.mf-stat-tile .stat-value { font-family: var(--font-display); font-size: 44px; font-weight: 500; line-height: 1.1; color: var(--white); }
.mf-stat-tile .stat-value span { font-size: 22px; color: var(--on-dark-muted); margin-left: 2px; }
.mf-stat-tile .stat-label { margin-top: 6px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
@media (max-width: 640px) { .mf-stat-row { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Editorial quotes
   ========================================================================== */

.mf-quote-immersive {
  position: relative; text-align: center; color: var(--on-dark);
  padding: var(--section-y) 0;
  background: var(--ink-3);
  border-top: 1px solid rgba(201, 169, 106, 0.14);
}
.mf-quote-immersive .quote-glow-a, .mf-quote-immersive .quote-glow-b { display: none; }
.mf-quote-immersive .quote-mark-lg { font-family: var(--font-display); font-size: clamp(64px, 7vw, 96px); line-height: 0.6; color: var(--gold); margin-bottom: 18px; }
.mf-quote-immersive blockquote { max-width: 860px; margin: 0 auto; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.35; color: var(--white); }
.mf-quote-immersive .gold-divider { margin: 30px auto 18px; }
.mf-quote-immersive .quote-attrib { font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); }

.mf-quote-section { position: relative; text-align: center; overflow: hidden; }
.mf-quote-section .quote-glow { display: none; }
.quote-mark { font-family: var(--font-display); font-size: 96px; line-height: 0.6; color: var(--gold); margin-bottom: 18px; }
blockquote.mf-quote { max-width: 860px; margin: 0 auto; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(24px, 3vw, 38px); line-height: 1.4; color: var(--white); }
.light-section blockquote.mf-quote, .warm-section blockquote.mf-quote { color: var(--text); }
.mf-quote-attribution { margin-top: 18px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); }

/* ==========================================================================
   Author resources
   ========================================================================== */

.mf-explore-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mf-explore-card {
  display: flex; flex-direction: column; padding: 30px 26px;
  background: var(--white); color: var(--text);
  border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.mf-explore-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-gold); }
.mf-explore-card .explore-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; border-radius: 50%; color: var(--blue-strong); background: rgba(63, 169, 245, 0.1); }
.mf-explore-card .explore-icon svg { width: 20px; height: 20px; }
.mf-explore-card .explore-title { font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1.2; }
.mf-explore-card .explore-desc { flex: 1; margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.mf-explore-card .explore-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-strong); }
.mf-explore-card .explore-link svg { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease); }
.mf-explore-card:hover .explore-link svg { transform: translateX(4px); }
@media (max-width: 1024px) { .mf-explore-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mf-explore-row { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Final CTA (home + interior pages)
   ========================================================================== */

.mf-final-cta.dark-section {
  position: relative; overflow: hidden; text-align: center;
  padding: var(--section-y) 0;
  background: radial-gradient(70% 90% at 50% 100%, rgba(63, 169, 245, 0.16) 0%, transparent 60%), var(--ink);
  border-top: 1px solid rgba(201, 169, 106, 0.14);
}
.mf-final-cta .mf-container { position: relative; z-index: 1; }
.mf-final-cta .section-head,
.mf-final-cta > .mf-container > .elementor-widget-heading,
.mf-final-cta > .mf-container > .elementor-widget-text-editor { margin-left: auto; margin-right: auto; max-width: 760px; }
.mf-final-cta p.elementor-heading-title { justify-content: center; }
.mf-final-cta .section-head { margin-bottom: 0; }
.mf-final-cta .elementor-widget-text-editor { margin-top: 18px; max-width: 580px; margin-left: auto; margin-right: auto; }
.mf-final-cta .mf-btn-row { margin-top: 38px; }

/* Newsletter form */
.mf-form { display: flex; gap: 12px; max-width: 480px; margin: 40px auto 0; }
.mf-form input[type="email"], .mf-form input[type="text"] {
  flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.05); color: var(--on-dark);
  transition: border-color var(--t-fast) var(--ease);
}
.mf-form input::placeholder { color: var(--on-dark-faint); }
.mf-form input:focus { outline: none; border-color: var(--gold); }
.light-section .mf-form input, .warm-section .mf-form input { background: var(--white); color: var(--text); border-color: var(--line-light); }
.light-section .mf-form input::placeholder, .warm-section .mf-form input::placeholder { color: var(--muted); }
@media (max-width: 520px) { .mf-form { flex-direction: column; } }
.mf-form button:disabled, .mf-footer-newsletter button:disabled, #mf-contact-form button:disabled { opacity: 0.7; cursor: wait; }

/* ==========================================================================
   Interior components
   ========================================================================== */

/* Trust strip (The Book) */
.mf-trust-strip { padding: var(--section-y) 0; background: var(--ink-2); color: var(--on-dark); border-top: 1px solid var(--line-dark); }
.mf-trust-strip .trust-line { max-width: 820px; margin: 0 auto 30px; text-align: center; font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2vw, 26px); line-height: 1.5; color: var(--gold-soft); }
.mf-trust-items { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; }
.mf-trust-items li { display: flex; align-items: center; gap: 10px; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); }
.mf-trust-items li svg { width: 15px; height: 15px; color: var(--blue); flex-shrink: 0; }

/* Numbered themes (The Book) */
.mf-story-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mf-story-item { position: relative; overflow: hidden; padding: 30px 26px; background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius-lg); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.mf-story-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mf-story-item .num { position: absolute; top: 18px; right: 22px; font-family: var(--font-display); font-size: 44px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.mf-story-item .accent-dash { display: block; width: 24px; height: 1px; margin-bottom: 40px; background: var(--gold); }
.mf-story-item h4 { font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--text); }
.mf-story-item p { margin-top: 8px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
@media (max-width: 1024px) { .mf-story-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mf-story-row { grid-template-columns: minmax(0, 1fr); } }

/* Elevated panel */
.mf-panel { padding: clamp(32px, 5vw, 60px); background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.mf-panel .elementor-widget-text-editor { color: var(--muted); }

/* Two-beat story split (About) */
.mf-story-split { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 56px; }
.mf-story-split-item:first-child { padding-right: 28px; border-right: 1px solid var(--line-light); }
.mf-story-split-item h2.elementor-heading-title { font-size: clamp(24px, 2.2vw, 32px) !important; margin-bottom: 14px !important; }
@media (max-width: 800px) {
  .mf-story-split { grid-template-columns: minmax(0, 1fr) !important; gap: 32px; }
  .mf-story-split-item:first-child { padding: 0 0 32px; border-right: none; border-bottom: 1px solid var(--line-light); }
}

/* Cinematic banner (Where to Buy) */
.mf-cinematic { position: relative; overflow: hidden; padding: var(--section-y) 0; background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%); color: var(--on-dark); }
.mf-cinematic .banner-glow { display: none; }
.mf-cinematic .banner-inner { position: relative; z-index: 1; width: 100%; }
.mf-cinematic .duo-figure { margin: 0 auto; }
.mf-cinematic .duo-figure img { width: 100%; object-fit: contain; filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.6)); }

/* Spec sheet */
.mf-spec-sheet { padding: 8px; background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.mf-spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mf-spec-cell { padding: 28px 26px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.mf-spec-cell:nth-child(4n) { border-right: none; }
.mf-spec-cell:nth-last-child(-n+4) { border-bottom: none; }
.mf-spec-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.mf-spec-value { margin-top: 8px; font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--text); }
.mf-spec-value.placeholder { font-family: var(--font-body); font-size: 14.5px; font-style: italic; color: var(--muted); }
@media (max-width: 960px) {
  .mf-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mf-spec-cell:nth-child(4n) { border-right: 1px solid var(--line-light); }
  .mf-spec-cell:nth-child(2n) { border-right: none; }
  .mf-spec-cell:nth-last-child(-n+4) { border-bottom: 1px solid var(--line-light); }
  .mf-spec-cell:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 520px) { .mf-spec-grid { grid-template-columns: minmax(0, 1fr); } .mf-spec-cell { border-right: none !important; } .mf-spec-cell:nth-last-child(2) { border-bottom: 1px solid var(--line-light); } }

/* Gallery + lightbox (Inside the Book) */
.mf-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mf-gallery-item { position: relative; aspect-ratio: 3 / 4; overflow: hidden; cursor: pointer; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform var(--t-med) var(--ease); }
.mf-gallery-item:hover { transform: translateY(-4px); }
.mf-gallery-item img, .mf-gallery-item .ph { width: 100%; height: 100%; object-fit: cover; }
.mf-gallery-item .zoom-badge { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: rgba(7, 20, 38, 0.6); opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.mf-gallery-item:hover .zoom-badge { opacity: 1; }
.mf-gallery-item .zoom-badge svg { width: 15px; height: 15px; }
.page-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px; text-align: center; color: var(--muted); background: var(--ivory-2); border: 1px dashed rgba(23, 34, 53, 0.2); }
.page-placeholder svg { width: 32px; height: 32px; opacity: 0.6; }
.page-placeholder .ph-title { font-family: var(--font-display); font-size: 18px; color: var(--text); }
.page-placeholder .ph-sub { max-width: 200px; font-size: 12px; line-height: 1.6; }
.mf-lightbox { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; background: rgba(5, 14, 28, 0.94); opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease), visibility var(--t-med); }
.mf-lightbox.is-open { opacity: 1; visibility: visible; }
.mf-lightbox-inner { position: relative; max-width: 84vw; max-height: 84vh; }
.mf-lightbox-inner img, .mf-lightbox-inner .page-placeholder { max-width: 84vw; max-height: 84vh; border-radius: var(--radius-sm); }
.mf-lightbox-close { position: absolute; top: -48px; right: 0; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; cursor: pointer; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); }
.mf-lightbox-close svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .mf-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mf-gallery { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.mf-contact-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) !important; gap: clamp(40px, 6vw, 80px); align-items: start; }
.mf-contact-info-item { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-light); }
.mf-contact-info-item:last-of-type { border-bottom: none; }
.mf-contact-info-item .icon { flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--blue-strong); background: rgba(63, 169, 245, 0.1); }
.mf-contact-info-item .icon svg { width: 19px; height: 19px; }
.mf-contact-info-item h4 { font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--text); }
.mf-contact-info-item p { margin-top: 2px; font-size: 14.5px; color: var(--muted); }
.mf-contact-form-card { padding: clamp(28px, 4vw, 44px); background: var(--white); color: var(--text); border: 1px solid var(--line-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.mf-field { margin-bottom: 20px; }
.mf-field label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mf-field input, .mf-field textarea { width: 100%; padding: 14px 16px; background: var(--ivory-2); border: 1px solid var(--line-light); border-radius: var(--radius-sm); color: var(--text); transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.mf-field input:focus, .mf-field textarea:focus { outline: none; border-color: var(--blue-strong); background: var(--white); }
.mf-field textarea { min-height: 140px; resize: vertical; }
@media (max-width: 900px) { .mf-contact-grid { grid-template-columns: minmax(0, 1fr) !important; } }

/* FAQ */
.mf-faq-item { padding: 22px 0; border-bottom: 1px solid var(--line-light); }
.mf-faq-item:first-child { border-top: 1px solid var(--line-light); }
.mf-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; }
.mf-faq-q h4 { font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--text); }
.mf-faq-q .plus { position: relative; flex-shrink: 0; width: 18px; height: 18px; }
.mf-faq-q .plus::before, .mf-faq-q .plus::after { content: ''; position: absolute; background: var(--gold); transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.mf-faq-q .plus::before { left: 0; top: 50%; width: 100%; height: 1px; }
.mf-faq-q .plus::after { top: 0; left: 50%; width: 1px; height: 100%; }
.mf-faq-item.is-open .plus::after { transform: rotate(90deg); opacity: 0; }
.mf-faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t-med) var(--ease); }
.mf-faq-item.is-open .mf-faq-a { max-height: 320px; }
.mf-faq-a p { max-width: 600px; padding-top: 12px; font-size: 15px; line-height: 1.75; color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */

.mf-footer { padding: var(--section-y) 0; background: var(--ink-3); color: var(--on-dark-muted); border-top: 1px solid rgba(201, 169, 106, 0.14); }
.mf-footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.mf-footer-brand .mf-brand { margin-bottom: 20px; }
.mf-footer-brand p { max-width: 320px; font-size: 14.5px; line-height: 1.75; }
.mf-footer-col h5 { margin-bottom: 20px; font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); }
.mf-footer-col ul { display: grid; gap: 12px; }
.mf-footer-col a { font-size: 14.5px; transition: color var(--t-fast) var(--ease); }
.mf-footer-col a:hover { color: var(--white); }
.mf-footer-col .mf-footer-note { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.mf-footer-newsletter { display: flex; flex-direction: column; gap: 10px; }
.mf-footer-newsletter input { min-height: 46px; padding: 12px 14px; font-size: 14px; color: var(--on-dark); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark); border-radius: var(--radius-sm); }
.mf-footer-newsletter input::placeholder { color: var(--on-dark-faint); }
.mf-footer-newsletter input:focus { outline: none; border-color: var(--gold); }
.mf-footer-newsletter .mf-btn { min-height: 46px; padding: 12px 18px; font-size: 11px; color: var(--on-dark); }
.mf-footer-social { display: flex; gap: 10px; margin-top: 24px; }
.mf-footer-social a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line-dark); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.mf-footer-social a:hover { background: var(--white); color: var(--ink); }
.mf-footer-social a svg { width: 16px; height: 16px; }
.mf-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 26px; font-size: 12.5px; color: var(--on-dark-faint); }
.mf-footer-bottom .legal-links { display: flex; gap: 24px; }
.mf-footer-bottom a:hover { color: var(--white); }
@media (max-width: 1024px) { .mf-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mf-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .mf-footer-top { grid-template-columns: minmax(0, 1fr); } .mf-footer-bottom { flex-direction: column; text-align: center; } }

/* Decorative corner frames / side lines are retired site-wide; hide any markup still carrying them. */
.frame-line, .mf-final-cta-lines { display: none !important; }

/* ==========================================================================
   Motion
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

.skip-link { position: absolute; top: -60px; left: 16px; z-index: 300; padding: 12px 18px; color: #fff; background: var(--blue-strong); border-radius: var(--radius-sm); transition: top var(--t-fast) var(--ease); }
.skip-link:focus { top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Review invitation cards (shown only until real reviews are added) */
.mf-testimonial.is-invite { border-style: dashed; }
.mf-testimonial.is-invite .invite-kicker { margin-bottom: 12px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); }
.light-section .mf-testimonial.is-invite .invite-kicker, .warm-section .mf-testimonial.is-invite .invite-kicker { color: var(--gold); }
.mf-testimonial.is-invite .name { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.mf-testimonial.is-invite figcaption .mf-btn { margin-top: 16px; }
.light-section .mf-testimonial.is-invite .mf-btn-secondary, .warm-section .mf-testimonial.is-invite .mf-btn-secondary { color: var(--text); }
.dark-section .mf-testimonial.is-invite .mf-btn-secondary { color: var(--on-dark); }

/* Contact page social icons + email link */
.mf-social-row { display: flex; gap: 12px; margin-top: 26px; }
.mf-social-row a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text); border: 1px solid var(--line-light); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.mf-social-row a:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.mf-social-row a svg { width: 18px; height: 18px; }
.mf-contact-info-item p a { color: var(--blue-strong); border-bottom: 1px solid transparent; transition: border-color var(--t-fast) var(--ease); }
.mf-contact-info-item p a:hover { border-bottom-color: currentColor; }

/* Edition comparison — real Amazon data */
.mf-compare { table-layout: fixed; min-width: 720px; }
.mf-compare th:first-child { width: 22%; }
.mf-compare thead th { padding-top: 22px; padding-bottom: 20px; vertical-align: bottom; }
.mf-compare thead .col-sub { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.mf-compare thead th:first-child .col-sub { margin-top: 0; }
.mf-compare thead th.is-featured { background: var(--ink); color: var(--white); }
.mf-compare tbody td:nth-child(3), .mf-compare tfoot td:nth-child(3) { background: rgba(63, 169, 245, 0.05); }
.mf-compare tbody tr:nth-child(even) th, .mf-compare tbody tr:nth-child(even) td { background-color: var(--ivory-2); }
.mf-compare tbody tr:nth-child(even) td:nth-child(3) { background: rgba(63, 169, 245, 0.08); }
.mf-compare .price { font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1; color: var(--text); }
.mf-compare tfoot th, .mf-compare tfoot td { padding: 20px 24px 24px; border-top: 1px solid var(--line-light); border-bottom: none; }
.mf-compare tfoot .mf-btn { min-height: 46px; padding: 12px 14px; font-size: 11px; }
.mf-compare-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.mf-spec-value br + * , .mf-spec-value { word-break: normal; }
/* Neutralise Hello Elementor's default table borders/striping inside our table */
.mf-compare th, .mf-compare td { border: 0; border-bottom: 1px solid var(--line-light); border-right: 1px solid var(--line-light); background-color: var(--white); }
.mf-compare th:last-child, .mf-compare td:last-child { border-right: 0; }
.mf-compare tbody tr:nth-child(odd) > td, .mf-compare tbody tr:nth-child(odd) > th { background-color: var(--white); }
.mf-compare tbody tr:nth-child(even) > td, .mf-compare tbody tr:nth-child(even) > th { background-color: var(--ivory-2); }
.mf-compare tbody tr > td:nth-child(3) { background-color: rgba(63, 169, 245, 0.05); }
.mf-compare tbody tr:nth-child(even) > td:nth-child(3) { background-color: rgba(63, 169, 245, 0.09); }
.mf-compare thead th { background-color: var(--ivory-2); }
.mf-compare thead th.is-featured { background-color: var(--ink); border-right-color: var(--ink); }
.mf-compare tfoot th, .mf-compare tfoot td { background-color: var(--white); border-bottom: 0; }
.mf-compare tfoot td:nth-child(3) { background-color: rgba(63, 169, 245, 0.05); }
.mf-compare tbody tr:hover > td, .mf-compare tbody tr:hover > th { background-color: rgba(201, 169, 106, 0.08); }
