/* ============================================================
   8X REAL ESTATE — MLS LISTING SERVICE PAGE
   Design system: Hanken Grotesk + Poppins, brand red #BE1E2D
   ============================================================ */

/* Fonts self-hosted from /ld/fonts/ — see seo-meta-worker for @font-face injection */

:root {
  /* Brand */
  --brand-red:#BE1E2D; --brand-red-600:#9E1925; --brand-red-100:#FBE9EB;
  --vermillion:#D93A2C; --jade:#2F6B5E; --jade-bright:#0FA968; --jade-bright-tint:#E4F6EE;
  --gold:#B89653; --ivory:#F5EFE6;
  /* Neutrals */
  --ink:#181A22; --graphite:#22242D; --graphite-2:#2E3038;
  --slate:#5A5A5A; --slate-2:#8A8A8A; --mist:#BFBFBF; --fog:#E5E5E5;
  --cloud:#F1F1F1; --paper:#F4F5F8; --white:#FFFFFF;
  /* Semantic */
  --fg:var(--ink); --fg-1:var(--graphite); --fg-2:var(--slate); --fg-3:var(--slate-2);
  --bg:var(--paper); --bg-1:var(--white); --border:var(--fog); --border-strong:var(--mist);
  --accent:var(--brand-red); --accent-hover:var(--brand-red-600); --accent-soft:var(--brand-red-100);
  /* Type stacks */
  --font-sans:'Hanken Grotesk',ui-sans-serif,system-ui,-apple-system,sans-serif;
  --font-display:'Poppins','Hanken Grotesk',ui-sans-serif,system-ui,sans-serif;
  --font-serif:'Instrument Serif','Noto Serif SC',ui-serif,Georgia,serif;
  --font-cjk:'Noto Serif SC','Instrument Serif',ui-serif,serif;
  --font-mono:'JetBrains Mono',ui-monospace,'SF Mono',Menlo,monospace;
  /* Motion */
  --ease-out:cubic-bezier(0.22,1,0.36,1);
  --ease-spring:cubic-bezier(0.34,1.56,0.64,1);
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(24,26,34,0.06), 0 1px 1px rgba(24,26,34,0.04);
  --shadow-md: 0 6px 14px -4px rgba(24,26,34,0.10), 0 2px 4px rgba(24,26,34,0.05);
  --shadow-lg: 0 18px 36px -12px rgba(24,26,34,0.16), 0 6px 12px -4px rgba(24,26,34,0.06);
  --ring: 0 0 0 3px rgba(190, 30, 45, 0.22);
  /* Layout */
  --container: 1240px;
  --container-narrow: 920px;
  --nav-height: 72px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-sans); font-size:16px; line-height:1.55;
  color: var(--fg-1); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
ul,ol { list-style:none; }
button { font-family:inherit; cursor:pointer; border:0; background:transparent; }
:focus-visible { outline:0; box-shadow: var(--ring); border-radius: 4px; }

/* Defer layout for off-screen sections — saves ~2-3s Style & Layout on initial render */
.method, .meaning, .chapter, .rooted, .compare, .results, .guidebook, .testimonials, .cta-v2 {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
#mls-page-root .container { display: block !important; flex-direction: unset !important; max-width: var(--container) !important; margin: 0 auto !important; padding: 0 32px !important; margin-bottom: 0 !important; }
#mls-page-root .container-narrow { display: block !important; max-width: var(--container-narrow) !important; margin: 0 auto !important; padding: 0 32px !important; }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.eyebrow {
  font-family: var(--font-sans); font-size:12px; font-weight:600;
  letter-spacing: 0.18em; text-transform: lowercase; color: var(--fg-2);
  display: inline-flex; align-items:center; gap:8px;
}
.eyebrow.red { color: var(--accent); }
.eyebrow::before { content:""; width:24px; height:1px; background: currentColor; opacity: 0.5; }

.eyebrow-mono {
  font-family: var(--font-mono); font-size:11px; font-weight:500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2);
}

.display {
  font-family: var(--font-display); font-weight:700;
  letter-spacing: -0.035em; line-height: 1; color: var(--ink);
}
.h1 { font-family: var(--font-display); font-weight:700; font-size: clamp(36px, 5vw, 56px); line-height:1.05; letter-spacing: -0.03em; color: var(--ink); }
.h2 { font-family: var(--font-display); font-weight:700; font-size: clamp(30px, 3.4vw, 44px); line-height:1.1; letter-spacing: -0.025em; color: var(--ink); }
.h3 { font-family: var(--font-display); font-weight:600; font-size: clamp(22px, 1.8vw, 26px); line-height:1.2; letter-spacing: -0.015em; color: var(--ink); }
.serif-em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--accent); }

.lede {
  font-size: 20px; line-height: 1.6; color: var(--fg-1); font-weight: 400;
}
.body-md { font-size: 16px; line-height: 1.7; color: var(--fg-1); }

/* On dark backgrounds */
.on-dark { color: rgba(255,255,255,0.7); }
.on-dark .h1, .on-dark .h2, .on-dark .h3, .on-dark .display { color: #fff; }
.on-dark .eyebrow { color: rgba(255,255,255,0.5); }
.on-dark .eyebrow.red { color: var(--accent); }
.on-dark .lede, .on-dark .body-md { color: rgba(255,255,255,0.72); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display:inline-flex; align-items:center; gap:10px; font-family: var(--font-sans);
       font-weight:600; font-size:14px; letter-spacing:0.01em; text-transform: lowercase;
       padding: 13px 22px; border-radius: 4px; cursor:pointer;
       transition: background 200ms var(--ease-out), color 200ms var(--ease-out),
                   transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out),
                   border-color 200ms var(--ease-out); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform 250ms var(--ease-out); }
.btn:hover svg.arrow-right { transform: translateX(3px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 20px rgba(190,30,45,0.3); }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-ghost-dark { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

.btn-link { color: var(--ink); font-weight: 600; font-size: 13px;
            display: inline-flex; align-items:center; gap: 6px;
            padding-bottom: 2px; border-bottom: 1.5px solid var(--accent); }
.btn-link:hover { color: var(--accent); }
.btn-link.on-dark-link { color: #fff; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed; top:0; left:0; right:0; z-index:100;
  height: var(--nav-height);
  background: rgba(24,26,34,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 250ms var(--ease-out);
}
.site-nav.transparent { background: transparent; border-bottom-color: transparent; }
.nav-inner {
  max-width: 1400px; margin: 0 auto; height: 100%;
  padding: 0 32px; display: flex; align-items: center; gap: 36px;
}
.nav-logo { display: flex; align-items: center; height: 40px; }
.nav-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.nav-logo img.with-frame { filter: none; } /* keep the red frame */

.nav-links { display: flex; align-items: center; gap: 28px; margin-left: 12px; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em; text-transform: lowercase;
  padding-bottom: 2px; border-bottom: 1.5px solid transparent;
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; border-bottom-color: var(--accent); }

.nav-spacer { flex: 1; }
.nav-cta {
  background: var(--accent); color: #fff;
  padding: 9px 18px; border-radius: 4px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: lowercase;
  display:inline-flex; align-items:center; gap:6px;
  transition: background 200ms var(--ease-out);
}
.nav-cta:hover { background: var(--accent-hover); }

.nav-burger { display:none; width: 40px; height: 40px; align-items:center; justify-content:center;
              border-radius: 4px; color: #fff; }
.nav-burger:hover { background: rgba(255,255,255,0.08); }

.mobile-menu {
  position: fixed; top: var(--nav-height); left:0; right:0;
  background: var(--ink); padding: 24px 32px;
  z-index: 99;
  transform: translateY(-110%); transition: transform 280ms var(--ease-out);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { display:block; padding: 14px 0; color:#fff; font-size: 16px;
                 font-weight:500; text-transform: lowercase; letter-spacing:0.02em;
                 border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-menu .btn { width:100%; justify-content:center; margin-top:16px; padding: 14px; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.rv-l { opacity: 0; transform: translateX(-32px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.rv-l.in { opacity: 1; transform: none; }
.rv-r { opacity: 0; transform: translateX(32px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.rv-r.in { opacity: 1; transform: none; }
.rv-s { opacity: 0; transform: scale(0.95); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.rv-s.in { opacity: 1; transform: none; }
.d1 { transition-delay: 80ms; } .d2 { transition-delay: 160ms; } .d3 { transition-delay: 240ms; }
.d4 { transition-delay: 320ms; } .d5 { transition-delay: 400ms; } .d6 { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  .rv, .rv-l, .rv-r, .rv-s { transition: none; opacity:1; transform:none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; overflow: hidden;
  padding: calc(var(--nav-height) + 56px) 0 96px;
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.45;
}
.hero-video-overlay {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: linear-gradient(180deg, rgba(24,26,34,0.45) 0%, rgba(24,26,34,0.2) 40%, rgba(24,26,34,0.85) 100%),
              linear-gradient(90deg, rgba(24,26,34,0.5) 0%, rgba(24,26,34,0) 50%);
}
.hero-grid-bg {
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0));
}
.hero-mark {
  position:absolute; right: -4vw; bottom: -8vw; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  z-index: 1; opacity: 0.06; pointer-events:none;
  background: url('/ld/mls/8-mark.svg') center/contain no-repeat;
  filter: brightness(0) invert(1);
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 56px;
}
.hero-left { max-width: 760px; }
.hero-eyebrow { color: rgba(255,255,255,0.6); margin-bottom: 24px; }
.hero-eyebrow::before { background: var(--accent); opacity: 1; width: 32px; }
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 6.4vw, 88px); line-height: 0.98; letter-spacing: -0.04em;
  color: #fff; margin-bottom: 28px;
}
.hero-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: #fff; letter-spacing: -0.02em; display: inline-block; }
.hero-title em::after {
  content:""; display:block; width: 80px; height: 3px; background: var(--accent); margin-top: 8px;
}
.hero-lede {
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6;
  color: rgba(255,255,255,0.72); max-width: 580px; margin-bottom: 40px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center;
  margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; min-width: 90px; }
.hero-stat-num {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  color: #fff; line-height: 1; letter-spacing: -0.02em;
}
.hero-stat-num .tail { color: var(--accent); }
.hero-stat-label {
  font-family: var(--font-mono); font-size: 10px;
  color: rgba(255,255,255,0.5); letter-spacing: 0.1em; text-transform: uppercase;
}

.scroll-indicator {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-indicator span {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.scroll-line {
  width: 1px; height: 48px; background: rgba(255,255,255,0.15); position: relative; overflow: hidden;
}
.scroll-line::after {
  content:""; position: absolute; top: 0; left: 0; width: 100%; height: 40%;
  background: var(--accent); animation: scrollDrop 2.4s ease-in-out infinite;
}
@keyframes scrollDrop { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* ============================================================
   TRUST STRIP (channels marquee)
   ============================================================ */
.trust-strip {
  background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 22px 0; overflow: hidden; position: relative;
}
.trust-strip::before, .trust-strip::after {
  content:""; position:absolute; top:0; bottom:0; width: 80px; z-index:2; pointer-events:none;
}
.trust-strip::before { left:0; background: linear-gradient(90deg, var(--white), transparent); }
.trust-strip::after { right:0; background: linear-gradient(-90deg, var(--white), transparent); }
.marquee-track { display: flex; align-items: center; white-space: nowrap; animation: marquee 50s linear infinite; }
.marquee-track > * { padding: 0 36px; flex-shrink: 0; }
.marquee-track span {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--fg-2); text-transform: lowercase;
}
.marquee-track .dot { color: var(--accent); font-size: 10px; padding: 0 8px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   METHOD INTRO + TIMELINE NAV
   ============================================================ */
.method {
  padding: 120px 0 96px; background: var(--paper); position: relative;
}
.method-head {
  display: grid !important; grid-template-columns: 1.2fr 1.4fr !important; gap: 80px; align-items: end;
  margin-bottom: 64px; padding-bottom: 40px; border-bottom: 1px solid var(--border);
}
.method-head .h2 { margin-top: 14px; }
.method-head .lede { max-width: 520px; margin-bottom: 0; }

.timeline-nav {
  position: relative; display: grid !important; grid-template-columns: repeat(8, 1fr) !important;
  gap: 0; width: 100%; box-sizing: border-box;
}
.timeline-rail {
  position: absolute; top: 16px; left: calc(100% / 16); right: calc(100% / 16);
  height: 2px; background: var(--fog); border-radius: 1px;
}
.timeline-rail-fill {
  position: absolute; top: 0; left: 0; height: 100%; width: 12%;
  background: var(--accent); border-radius: 1px;
  transition: width 200ms linear;
}
.timeline-step {
  display: flex !important; flex-direction: column; align-items: center; gap: 14px;
  position: relative; z-index: 2; cursor: pointer; padding-top: 6px;
  transition: transform 200ms var(--ease-out); text-decoration: none;
}
.timeline-step:hover { transform: translateY(-3px); }
.timeline-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--mist);
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out),
              box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.timeline-step.active, .timeline-step.passed {
  background: transparent; padding: 6px 0 0; margin: 0; transition: none;
}
.timeline-step.active .timeline-dot,
.timeline-step:hover .timeline-dot {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(190,30,45,0.15);
  transform: scale(1.1);
}
.timeline-step.passed .timeline-dot {
  background: var(--accent); border-color: var(--accent);
}
.timeline-label {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; color: var(--fg-2);
  text-align: center; text-transform: lowercase;
  transition: color 200ms var(--ease-out);
}
.timeline-step.active .timeline-label,
.timeline-step:hover .timeline-label { color: var(--accent); }
.timeline-num {
  font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.1em;
}

/* ============================================================
   CHAPTERS
   ============================================================ */
.chapter {
  padding: 120px 0; position: relative; overflow: hidden;
}
.chapter.dark { background: var(--ink); color: rgba(255,255,255,0.7); }
.chapter.ivory { background: var(--ivory); }
.chapter.white { background: var(--white); }
.chapter.paper { background: var(--paper); }

.chapter-num-bg {
  position: absolute; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(140px, 18vw, 240px); line-height: 0.85;
  color: var(--ink); opacity: 0.05;
  top: -20px; pointer-events: none; user-select: none; z-index: 0;
}
.chapter.dark .chapter-num-bg { color: #fff; opacity: 0.05; }
.chapter-num-bg.right { right: 4vw; }
.chapter-num-bg.left { left: 4vw; }
.chapter-num-bg.hide { display: none; }

/* The signature brand frame motif — used inline as a chapter marker.
   Mirrors the 8X logo: 3 red borders with one open corner. */
.chapter-frame {
  display: inline-flex; align-items: center; gap: 18px;
  margin-bottom: 28px; padding: 14px 22px 12px 18px;
  position: relative;
  border: 2.5px solid var(--accent); border-right: 0; border-bottom: 0;
}
.chapter-frame::after  { content:""; position:absolute; right:0; bottom:0; width: 60%; height: 2.5px; background: var(--accent); }
.chapter-frame::before { content:""; position:absolute; right:0; top:0;    width: 2.5px; height: 60%; background: var(--accent); }
.chapter.dark .chapter-frame { border-color: var(--accent); }
.chapter-frame-num {
  font-family: var(--font-display); font-weight: 800; font-size: 40px;
  color: var(--ink); line-height: 1; letter-spacing: -0.04em;
}
.chapter.dark .chapter-frame-num { color: #fff; }
.chapter-frame-meta { display: flex; flex-direction: column; gap: 2px; }
.chapter-frame-step {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-3);
}
.chapter.dark .chapter-frame-step { color: rgba(255,255,255,0.45); }
.chapter-frame-label {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--accent); text-transform: lowercase;
}

.chapter-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px;
  align-items: start; position: relative; z-index: 1;
}
.chapter-grid.reverse .chapter-media { order: 2; }
.chapter-media { position: sticky; top: 100px; }

.chapter-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.chapter-step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--accent); letter-spacing: 0.06em;
}
.chapter-eyebrow { color: var(--fg-2); letter-spacing: 0.16em; text-transform: lowercase; font-size: 12px; font-weight: 600; }
.chapter.dark .chapter-eyebrow { color: rgba(255,255,255,0.5); }

.chapter h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 20px;
}
.chapter.dark h2 { color: #fff; }
.chapter h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }

.chapter-body p {
  font-size: 17px; line-height: 1.7; color: var(--fg-1); margin-bottom: 14px;
}
.chapter-body p.lede { font-size: 20px; color: var(--fg); margin-bottom: 18px; }
.chapter-body strong { color: var(--ink); font-weight: 600; }
.chapter-body .body-rule { width: 32px; height: 2px; background: var(--accent); margin: 20px 0 24px; opacity: 0.7; }
.chapter-body .margin-aside {
  font-family: var(--font-serif); font-style: italic;
  font-size: 20px; line-height: 1.5; color: var(--accent);
  padding-left: 16px; border-left: 2px solid var(--accent);
  margin: 18px 0 6px;
}
.chapter.dark .chapter-body p { color: rgba(255,255,255,0.7); }

/* Stat callout */
.stat-callout {
  margin: 28px 0; padding: 22px 28px;
  background: var(--white); border-left: 4px solid var(--accent);
  display: flex; align-items: center; gap: 24px;
  border-radius: 0 6px 6px 0; box-shadow: var(--shadow-sm);
}
.chapter.dark .stat-callout { background: rgba(255,255,255,0.04); }
.chapter.ivory .stat-callout { background: #fff; }
.stat-callout-num {
  font-family: var(--font-display); font-weight: 700; font-size: 32px;
  color: var(--accent); line-height: 1; letter-spacing: -0.02em; white-space: nowrap;
}
.stat-callout-text { font-size: 16px; color: var(--fg-1); line-height: 1.6; }
.stat-callout.principle {
  flex-direction: column; align-items: flex-start; gap: 8px;
}
.stat-callout.principle .stat-callout-num {
  font-size: 22px; color: var(--ink); letter-spacing: -0.015em; line-height: 1.15;
}
.chapter.dark .stat-callout-text { color: rgba(255,255,255,0.75); }

/* Check list */
.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.check-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 16px; color: var(--fg-1); line-height: 1.6; }
.chapter.dark .check-list li { color: rgba(255,255,255,0.75); }
.check-list svg { flex-shrink: 0; margin-top: 4px; color: var(--accent); }

/* Media placeholder */
.media-frame {
  position: relative; aspect-ratio: 5/6; background: var(--cloud);
  border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-lg);
  max-height: 460px;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.media-frame.tall { aspect-ratio: 4/5; max-height: none; }
.media-frame.wide { aspect-ratio: 5/4; max-height: 420px; }
.media-frame .placeholder-label {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
  background: rgba(24,26,34,0.7); padding: 6px 10px; border-radius: 3px;
  backdrop-filter: blur(6px);
}
.media-caption {
  font-family: var(--font-serif); font-style: italic; font-size: 15px;
  color: var(--fg-2); margin-top: 18px; padding-left: 16px; border-left: 2px solid var(--accent);
}
.chapter.dark .media-caption { color: rgba(255,255,255,0.5); }

/* CJK accent */
.cjk-accent {
  position: absolute; font-family: var(--font-cjk); font-weight: 700;
  font-size: clamp(100px, 14vw, 200px); color: var(--accent); opacity: 0.06;
  pointer-events: none; user-select: none; line-height: 1;
}

/* ============================================================
   CHAPTER 03 — MEDIA PRODUCTION GRID (dark)
   ============================================================ */
.media-hero {
  text-align: center; max-width: 720px; margin: 0 auto 64px; position: relative; z-index: 1;
}
.media-hero h2 { margin-bottom: 18px; }
.media-hero .lede { color: rgba(255,255,255,0.65); }
.media-hero .lede.secondary { font-size: 17px; color: rgba(255,255,255,0.65); }

/* CJK proverb callout */
.cjk-proverb {
  margin: 0 auto 32px; max-width: 600px;
  padding: 28px 36px 24px; text-align: left;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.04);
  border-radius: 0 8px 8px 0; position: relative;
  text-align: center;
}
.cjk-proverb::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.cjk-proverb-chars {
  font-family: 'Noto Serif SC', serif; font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  color: #fff; letter-spacing: 0.12em; line-height: 1.1; margin-bottom: 10px;
}
.cjk-proverb-rom {
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.18em; color: var(--accent);
  text-transform: lowercase; margin-bottom: 8px;
}
.cjk-proverb-trans {
  font-family: var(--font-serif); font-style: italic;
  font-size: 18px; color: rgba(255,255,255,0.65); line-height: 1.45;
}
.chapter.paper .media-hero .lede,
.chapter.white .media-hero .lede,
.chapter.ivory .media-hero .lede { color: var(--fg-1); }
.media-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px 280px; gap: 16px;
  position: relative; z-index: 1; max-width: 1240px; margin: 0 auto;
}
.media-tile {
  position: relative; overflow: hidden; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  transition: transform 350ms var(--ease-out), border-color 250ms var(--ease-out);
  cursor: pointer;
}
.media-tile:hover { transform: translateY(-4px); border-color: rgba(190,30,45,0.4); }
.media-tile img { width:100%; height:100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.media-tile:hover img { transform: scale(1.04); }
.media-tile::after {
  content:""; position:absolute; inset:0; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(24,26,34,0.85) 100%);
}
.media-tile-label {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  color: #fff; letter-spacing: 0.02em;
}
.media-tile-icon {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent);
  display:flex; align-items:center; justify-content:center;
}
.media-tile-video img, .media-tile-preview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
/* Drone slideshow */
.drone-slideshow { background: #0e1018 !important; border-color: #0e1018 !important; }
.drone-slideshow:hover { border-color: #0e1018 !important; }
.drone-slide {
  position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; object-position: center !important;
  opacity: 0; transition: opacity 1.2s ease-in-out; z-index: 0;
  border: 0 !important; margin: 0 !important; padding: 0 !important;
  border-radius: 0 !important; max-width: none !important; min-width: 100% !important;
  display: block !important; vertical-align: top !important;
  box-sizing: border-box !important;
}
.drone-slide.active { opacity: 1; z-index: 1; }
/* Matterport tile */
.media-tile-matterport img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.media-tile-matterport .media-tile-play { background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); }
.media-tile-matterport:hover .media-tile-play { background: var(--accent); }
.media-tile-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 3; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(190,30,45,0.85); display: flex; align-items: center; justify-content: center;
  transition: transform 300ms var(--ease-out), background 200ms var(--ease-out);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.media-tile-play svg { margin-left: 4px; }
.media-tile-video:hover .media-tile-play { transform: translate(-50%, -50%) scale(1.1); background: var(--accent); }

/* Video modal */
.video-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 300ms var(--ease-out), visibility 300ms;
}
.video-modal.open { opacity: 1; visibility: visible; }
.video-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.88);
  cursor: pointer;
}
.video-modal-content {
  position: relative; width: 90vw; max-width: 1100px;
  aspect-ratio: 16/9;
  transform: scale(0.92); transition: transform 350ms var(--ease-out);
}
.video-modal.open .video-modal-content { transform: scale(1); }
.video-modal-player { width: 100%; height: 100%; border-radius: 8px; overflow: hidden; }
.video-modal-player iframe { width: 100%; height: 100%; border: 0; }
.video-modal-close {
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff;
  font-size: 24px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 0; transition: background 200ms;
}
.video-modal-close:hover { background: rgba(255,255,255,0.25); }

/* HDR Gallery modal */
.hdr-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 300ms var(--ease-out), visibility 300ms;
}
.hdr-modal.open { opacity: 1; visibility: visible; }
.hdr-modal-content {
  position: relative; width: 92vw; max-width: 1200px; max-height: 88vh;
  background: var(--ink); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transform: scale(0.92); transition: transform 350ms var(--ease-out);
}
.hdr-modal.open .hdr-modal-content { transform: scale(1); }
.hdr-modal-title {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: #fff; padding: 28px 32px 0; letter-spacing: -0.02em;
}
.hdr-tabs {
  display: flex; gap: 8px; padding: 18px 32px 0; flex-wrap: wrap;
}
.hdr-tab {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 999px;
  padding: 8px 18px; cursor: pointer;
  transition: all 200ms var(--ease-out);
}
.hdr-tab:hover { color: #fff; background: rgba(255,255,255,0.1); }
.hdr-tab.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.hdr-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px;
  padding: 20px 32px 32px; overflow-y: auto; flex: 1;
}
.hdr-grid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px;
  cursor: pointer; transition: transform 250ms var(--ease-out);
}
.hdr-grid img:hover { transform: scale(1.02); }
/* Lightbox for single image */
.hdr-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden; transition: opacity 250ms;
}
.hdr-lightbox.open { opacity: 1; visibility: visible; }
.hdr-lightbox img {
  max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: 4px;
}
.media-tile.feature { grid-column: 1; grid-row: 1 / 3; }
.media-tile.tall-r { grid-column: 3; grid-row: 1 / 3; }
/* Row 3 tiles: video + print */
.media-tile.wide-video { grid-column: 1 / 3; grid-row: 3; }
.media-tile.wide-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: 0; }
.media-tile.print-tile { grid-column: 3; grid-row: 3; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.03); }
.media-tile.print-tile:hover { border-color: rgba(190,30,45,0.4); }
.print-tile-mockup {
  position: relative; z-index: 1; display: flex; gap: 8px;
  transform: perspective(600px) rotateY(-4deg); transition: transform 400ms var(--ease-out);
}
.media-tile.print-tile:hover .print-tile-mockup { transform: perspective(600px) rotateY(0deg) scale(1.03); }
.print-tile-page {
  width: 80px; height: 110px; background: #fff; border-radius: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4); padding: 8px; position: relative; overflow: hidden;
}
.print-tile-page-back { opacity: 0.7; transform: translateY(4px); }
.print-tile-header { height: 14px; background: var(--accent); border-radius: 2px; margin-bottom: 6px; }
.print-tile-lines { display: flex; flex-direction: column; gap: 4px; }
.print-tile-lines span { display: block; height: 3px; background: #ddd; border-radius: 1px; }
.print-tile-lines span:last-child { width: 60%; }
.print-tile-photo { width: 100%; height: 28px; background: #e8e8e8; border-radius: 2px; margin-top: 6px; }

/* Print & Marketing modal */
.print-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease-out), visibility 300ms;
}
.print-modal.open { opacity: 1; visibility: visible; }
.print-modal-content {
  position: relative; width: 90vw; max-width: 720px;
  background: #1a1c24; border-radius: 16px; padding: 40px 36px 36px;
  border: 1px solid rgba(255,255,255,0.08);
  transform: scale(0.92); transition: transform 350ms var(--ease-out);
  max-height: 90vh; overflow-y: auto;
}
.print-modal.open .print-modal-content { transform: scale(1); }
.print-modal-sub {
  font-family: var(--font-body); font-size: 14px; color: rgba(255,255,255,0.5);
  margin: -4px 0 28px; line-height: 1.5;
}
.print-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.print-card {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; text-decoration: none; color: #fff;
  transition: border-color 200ms, background 200ms; position: relative;
}
.print-card:hover { border-color: rgba(190,30,45,0.5); background: rgba(255,255,255,0.07); }
.print-card-preview { flex-shrink: 0; }
.print-card-page {
  width: 56px; height: 72px; background: #fff; border-radius: 3px;
  padding: 5px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.print-card-header { height: 10px; background: var(--accent); border-radius: 1px; margin-bottom: 4px; }
.print-card-img { width: 100%; height: 22px; background: #e4e4e4; border-radius: 1px; margin-bottom: 4px; }
.print-card-lines { display: flex; flex-direction: column; gap: 3px; }
.print-card-lines span { display: block; height: 2px; background: #ddd; border-radius: 1px; }
.print-card-lines span:last-child { width: 55%; }
/* Floor plan card variant */
.print-card-page-fp {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 6px;
}
.print-card-page-fp .fp-room { border: 1px solid #bbb; border-radius: 1px; min-height: 16px; }
.print-card-page-fp .fp-room-lg { grid-row: 1 / 3; border-color: #7ab8d9; background: rgba(122,184,217,0.15); }
.print-card-page-fp .fp-room-md { border-color: #8bc48a; background: rgba(139,196,138,0.15); }
.print-card-page-fp .fp-room-sm { border-color: #d4a84b; background: rgba(212,168,75,0.15); }
/* Ad card variant */
.print-card-page-ad .print-card-hero-img { width: 100%; height: 30px; background: #e4e4e4; border-radius: 1px; margin-bottom: 3px; }
.print-card-page-ad .print-card-headline { width: 70%; height: 6px; background: var(--accent); border-radius: 1px; margin-bottom: 4px; }
.print-card-info { flex: 1; min-width: 0; }
.print-card-title {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  color: #fff; margin-bottom: 2px;
}
.print-card-addr {
  font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}
.print-card-badge {
  position: absolute; top: 10px; right: 12px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.35); display: flex; align-items: center; gap: 4px;
  letter-spacing: 0.04em;
}
@media (max-width: 760px) {
  .print-modal-content { padding: 32px 20px 24px; }
  .print-modal-grid { grid-template-columns: 1fr; }
}

.pull-quote {
  max-width: 760px; margin: 80px auto 0; padding: 32px 40px;
  border-left: 3px solid var(--accent); position: relative;
  background: transparent !important; border-radius: 0 !important;
  box-shadow: none !important; text-align: left !important;
}
.pull-quote p {
  font-family: var(--font-serif); font-style: italic;
  font-size: 24px; line-height: 1.5; color: rgba(255,255,255,0.9) !important; margin-bottom: 16px;
}
.pull-quote cite {
  font-style: normal; font-family: var(--font-display); font-size: 13px;
  font-weight: 600; color: rgba(255,255,255,0.5) !important; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ============================================================
   CHAPTER 04 — 4 P'S  (signature 8X frame motif per card)
   ============================================================ */
.fourps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 56px; position: relative; z-index: 1;
}
.fourp-card {
  position: relative; background: var(--white);
  padding: 36px 28px 32px;
  border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; min-height: 320px;
  display: flex; flex-direction: column;
  transition: transform 350ms var(--ease-out), border-color 250ms var(--ease-out),
              box-shadow 350ms var(--ease-out);
}
.fourp-card:hover {
  transform: translateY(-6px);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}

/* Big watermark numeral — the visual anchor */
.fourp-watermark {
  position: absolute; right: -16px; bottom: -56px;
  font-family: var(--font-display); font-weight: 900;
  font-size: 220px; line-height: 0.85;
  color: var(--ink); opacity: 0.04;
  letter-spacing: -0.07em;
  pointer-events: none; user-select: none;
  transition: color 400ms var(--ease-out), opacity 400ms var(--ease-out),
              transform 600ms var(--ease-out);
}
.fourp-card:hover .fourp-watermark {
  color: var(--accent); opacity: 0.10;
  transform: translate(-6px, -10px);
}

/* L-shaped red corner brackets — rotates per card like 8X mark's open corner.
   The "open" corner is the one with no bracket. */
.fourp-corner {
  position: absolute; width: 36px; height: 36px;
  pointer-events: none;
  transition: width 300ms var(--ease-out), height 300ms var(--ease-out);
}
.fourp-corner::before,
.fourp-corner::after { content:""; position: absolute; background: var(--accent); }
.fourp-card:hover .fourp-corner { width: 52px; height: 52px; }

/* Default = top-left bracket (open corner = bottom-right) */
.fourp-corner { top: 16px; left: 16px; }
.fourp-corner::before { top: 0; left: 0; width: 100%; height: 2.5px; }
.fourp-corner::after  { top: 0; left: 0; width: 2.5px; height: 100%; }

/* Variant placements — rotate the open corner around for visual rhythm. */
.fourp-card.tr .fourp-corner { top: 16px; left: auto; right: 16px; }
.fourp-card.tr .fourp-corner::before { left: auto; right: 0; }
.fourp-card.tr .fourp-corner::after  { left: auto; right: 0; }

.fourp-card.bl .fourp-corner { top: auto; bottom: 16px; left: 16px; }
.fourp-card.bl .fourp-corner::before { top: auto; bottom: 0; }
.fourp-card.bl .fourp-corner::after  { top: auto; bottom: 0; }

.fourp-card.br .fourp-corner { top: auto; bottom: 16px; left: auto; right: 16px; }
.fourp-card.br .fourp-corner::before { top: auto; bottom: 0; left: auto; right: 0; }
.fourp-card.br .fourp-corner::after  { top: auto; bottom: 0; left: auto; right: 0; }

/* CJK glyph — quiet accent in the open corner */
.fourp-glyph {
  position: absolute; font-family: var(--font-cjk); font-weight: 600;
  font-size: 32px; color: var(--accent); opacity: 0.85;
  line-height: 1; pointer-events: none;
}
/* Place glyph diagonally opposite to the corner (where the frame is "open") */
.fourp-card     .fourp-glyph { bottom: 56px; right: 24px; }
.fourp-card.tr  .fourp-glyph { bottom: 56px; left: 24px; right: auto; }
.fourp-card.bl  .fourp-glyph { top: 24px; right: 24px; bottom: auto; }
.fourp-card.br  .fourp-glyph { top: 24px; left: 24px; bottom: auto; right: auto; }

.fourp-num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--fg-3); margin: 56px 0 14px;
  text-transform: lowercase; position: relative; z-index: 1;
}
.fourp-card.tr .fourp-num,
.fourp-card.bl .fourp-num,
.fourp-card.br .fourp-num { margin-top: 28px; }

.fourp-card h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 26px; color: var(--ink);
  letter-spacing: -0.02em; margin-bottom: 12px;
  position: relative; z-index: 1;
}
.fourp-card h4 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--accent); font-size: 0.88em; margin-left: 2px;
}
.fourp-card p {
  font-size: 16px; line-height: 1.65; color: var(--fg-2);
  position: relative; z-index: 1; flex: 1;
}

/* Bottom row meta (the 'in practice' line, picks up brand voice) */
.fourp-meta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--fg-3); text-transform: uppercase;
  padding-top: 16px; margin-top: 16px;
  border-top: 1px dashed var(--border);
  position: relative; z-index: 1;
}
.fourp-card:hover .fourp-meta { color: var(--accent); border-top-color: var(--accent-soft); }

/* ============================================================
   CHAPTER 05 — LAUNCH (phone mockup)
   ============================================================ */
.launch-mock {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 20px 0;
}
.phone {
  position: relative; width: 300px; height: 600px;
  background: #1a1d26; border-radius: 38px;
  padding: 10px; box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255,255,255,0.06);
  z-index: 2;
  transform: rotate(-2deg); transition: transform 600ms var(--ease-out);
}
.phone:hover { transform: rotate(0deg) translateY(-6px); }
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: #1a1d26; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, #0e1018 0%, #1a1d26 100%); position: relative;
  display: flex; flex-direction: column;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px 0; color: #fff; font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
}
.phone-listing-img {
  position: relative; height: 260px; margin: 14px 12px 0;
  border-radius: 12px; overflow: hidden;
}
.phone-listing-img img { width:100%; height:100%; object-fit: cover; }
.phone-listing-img::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6) 100%);
}
.phone-badge {
  position:absolute; top: 12px; left: 12px;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  z-index: 2;
}
.phone-photo-count {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  color: #fff; font-family: var(--font-mono); font-size: 10px;
  padding: 5px 10px; border-radius: 4px; display: flex; gap: 5px; align-items: center;
}
.phone-body { padding: 18px 20px; color: #fff; flex: 1; }
.phone-price { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.phone-addr { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.phone-stats { display:flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); }
.phone-stat { display: flex; flex-direction: column; gap: 2px; }
.phone-stat-v { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: #fff; }
.phone-stat-l { font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; }
.phone-actions { display: flex; gap: 8px; margin-top: 16px; }
.phone-btn-primary {
  flex: 1; background: var(--accent); color: #fff;
  padding: 10px; border-radius: 6px; text-align: center;
  font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: lowercase;
}
.phone-btn-ghost {
  width: 36px; background: rgba(255,255,255,0.08); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6);
}

/* Channel ribbons floating around the phone */
.channel-ribbon {
  position: absolute; background: var(--white); border-radius: 8px;
  padding: 14px 18px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600;
  color: var(--ink); z-index: 1;
  animation: floaty 4s ease-in-out infinite;
}
.channel-ribbon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jade-bright); flex-shrink:0;
                      box-shadow: 0 0 0 4px var(--jade-bright-tint); }
.channel-ribbon.r1 { top: 60px; left: -30px; animation-delay: 0s; }
.channel-ribbon.r2 { top: 200px; right: -100px; animation-delay: 0.6s; }
.channel-ribbon.r3 { bottom: 80px; left: -50px; animation-delay: 1.2s; }
.channel-ribbon-meta { font-family: var(--font-mono); font-size: 10px; color: var(--fg-2); letter-spacing: 0.06em; margin-left: 6px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ============================================================
   CHAPTER 06 — PROMOTION TIMELINE (dark)
   ============================================================ */
.campaign-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: 56px 0 24px; position: relative; max-width: 1100px; margin-left: auto; margin-right: auto;
}
.campaign-grid::before {
  content:""; position: absolute; top: 26px; left: 12.5%; right: 12.5%;
  height: 2px; background: linear-gradient(90deg, var(--accent) 0%, rgba(255,255,255,0.1) 100%);
}
.campaign-step {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; padding: 0 16px; position: relative; z-index: 1;
}
.campaign-step .dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 4px solid var(--ink);
  box-shadow: 0 0 0 2px var(--accent);
  margin-top: 16px;
}
.campaign-step:nth-child(n+3) .dot { background: rgba(255,255,255,0.15); box-shadow: 0 0 0 2px rgba(255,255,255,0.15); }
.campaign-week {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-top: 12px;
}
.campaign-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: #fff; }
.campaign-desc { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.70); max-width: 220px; }

.channel-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  margin-top: 64px; max-width: 1100px; margin-left: auto; margin-right: auto;
}
.channel-chip {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 18px 14px; text-align: center;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.7); letter-spacing: 0.02em;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
}
.channel-chip:hover { background: rgba(190,30,45,0.18); color: #fff; }

/* ============================================================
   CHAPTER 07 — NEGOTIATION FLOW
   ============================================================ */
.flow {
  display: flex; align-items: stretch; justify-content: center; gap: 0; flex-wrap: wrap;
  margin-top: 48px;
}
.flow-step {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 28px 26px; flex: 0 1 220px; text-align: center;
  transition: transform 250ms var(--ease-out), border-color 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
.flow-step:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.flow-step-num {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 10px;
}
.flow-step h4 { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.flow-step p { font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); padding: 0 8px; opacity: 0.6; }

/* ============================================================
   CHAPTER 08 — CLOSING
   ============================================================ */
.closing-list {
  max-width: 600px; margin: 48px auto 0; position: relative; padding-left: 56px;
}
.closing-list::before {
  content:""; position: absolute; left: 19px; top: 18px; bottom: 18px;
  width: 2px; background: var(--border);
}
.closing-item {
  position: relative; padding: 18px 0; display: flex; flex-direction: column; gap: 4px;
}
.closing-check {
  position: absolute; left: -56px; top: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--jade-bright-tint); border: 2px solid var(--jade-bright);
  display: flex; align-items: center; justify-content: center; color: var(--jade-bright);
  z-index: 1;
}
.closing-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); }
.closing-desc { font-size: 15px; color: var(--fg-2); line-height: 1.55; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare { padding: 120px 0; background: var(--white); }
.compare-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.compare-table {
  max-width: 980px; margin: 0 auto;
  border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: #fff; border: 1px solid var(--border);
}
.compare-row {
  display: grid; grid-template-columns: 1.1fr 1.4fr 1.2fr;
  border-bottom: 1px solid var(--border);
  transition: background 200ms var(--ease-out);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row:not(.header):hover { background: var(--paper); }
.compare-cell { padding: 22px 28px; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.compare-cell.label {
  background: var(--cloud); font-family: var(--font-display); font-weight: 600;
  color: var(--ink); font-size: 14px; text-transform: lowercase; letter-spacing: 0.02em;
}
.compare-cell.us { background: #fff; color: var(--ink); font-weight: 500; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.compare-cell.them { background: #fafafa; color: var(--fg-2); }
.compare-row.header .compare-cell {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 22px 28px;
}
.compare-row.header .compare-cell.label { background: var(--ink); color: rgba(255,255,255,0.5); }
.compare-row.header .compare-cell.us { background: var(--accent); color: #fff; }
.compare-row.header .compare-cell.them { background: var(--graphite); color: rgba(255,255,255,0.6); }
.icon-check { color: var(--jade-bright); flex-shrink: 0; }
.icon-x { color: var(--mist); flex-shrink: 0; }

/* ============================================================
   RESULTS BANNER
   ============================================================ */
.results {
  padding: 100px 0; background: var(--accent); position: relative; overflow: hidden;
  color: #fff;
}
.results::before {
  content:""; position:absolute; inset:0; opacity: 0.12;
  background-image: url('/ld/mls/8-pattern-hollow.svg');
  background-size: 200px; background-repeat: repeat;
  filter: brightness(0) invert(1);
}
.results-head { text-align: center; max-width: 720px; margin: 0 auto 56px; position: relative; z-index: 1; }
.results-head h2 { color: #fff; }
.results-head .eyebrow { color: rgba(255,255,255,0.6); }
.results-head .eyebrow::before { background: #fff; opacity: 0.8; }
.results-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  max-width: 980px; margin: 0 auto; position: relative; z-index: 1;
}
.result-item { text-align: center; padding: 0 12px; }
.result-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(48px, 5vw, 64px); line-height: 1; color: #fff;
  letter-spacing: -0.03em;
}
.result-num .tail { opacity: 0.6; font-size: 0.7em; }
.result-label {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.8);
  margin-top: 12px;
}
.results-footnote {
  text-align: center; font-size: 12px; color: rgba(255,255,255,0.65);
  font-family: var(--font-mono); margin-top: 40px; position: relative; z-index: 1;
  letter-spacing: 0.04em;
}

/* ============================================================
   SELLER GUIDEBOOK
   ============================================================ */
.guidebook { padding: 120px 0; background: var(--ivory); position: relative; overflow: hidden; }
.guidebook-mark {
  position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 900; font-size: 800px; line-height: 1;
  color: var(--ink); opacity: 0.025; user-select: none; pointer-events: none;
}
.guidebook-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  position: relative; z-index: 1;
}
.guidebook-features { display: flex; flex-direction: column; gap: 18px; margin: 32px 0; }
.guidebook-feature {
  background: #fff; padding: 22px 24px; display: flex; gap: 16px;
  border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0;
  box-shadow: var(--shadow-sm); transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
.guidebook-feature:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.guidebook-feature-icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.guidebook-feature h4 { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.guidebook-feature p { font-size: 15px; line-height: 1.6; color: var(--fg-2); }

.guidebook-book {
  position: relative; width: 340px; height: 460px; margin: 0 auto;
  background: linear-gradient(160deg, #22242D 0%, #181A22 100%);
  border-radius: 4px 14px 14px 4px;
  box-shadow: var(--shadow-lg), 14px 14px 50px rgba(24,26,34,0.35);
  padding: 40px 36px; color: #fff;
  display: flex; flex-direction: column;
  transition: transform 600ms var(--ease-out);
}
.guidebook-book:hover { transform: rotateY(-6deg) translateY(-6px); }
.guidebook-book::before {
  content:""; position:absolute; left:0; top:0; bottom:0; width: 16px;
  background: linear-gradient(90deg, rgba(0,0,0,0.4), transparent);
  border-radius: 4px 0 0 4px;
}
.guidebook-book::after {
  content:""; position:absolute; right: 24px; bottom: 24px;
  width: 60px; height: 60px;
  background: url('/ld/mls/8-mark.svg') center/contain no-repeat;
  filter: brightness(0) invert(1); opacity: 0.08;
}
.guidebook-book-frame {
  display: inline-block; padding: 4px 8px;
  border: 2px solid var(--accent); border-right: 0; border-bottom: 0; position: relative;
  align-self: flex-start; margin-bottom: 20px;
}
.guidebook-book-frame::after { content:""; position:absolute; right: 0; bottom: 0; width: 60%; height: 2px; background: var(--accent); }
.guidebook-book-frame::before { content:""; position:absolute; right: 0; top: 0; width: 2px; height: 60%; background: var(--accent); }
.guidebook-book-frame span { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: #fff; letter-spacing: -0.04em; }
.guidebook-book-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 60px; }
.guidebook-book-title { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 18px; }
.guidebook-book-edition { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.guidebook-book-year { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.4); margin-top: auto; letter-spacing: 0.06em; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { padding: 120px 0; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.testimonials::before {
  content:"\201C"; position: absolute; top: 30px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-serif); font-size: 280px; color: var(--accent); opacity: 0.1; line-height: 1;
}
.testim-wrap { max-width: 820px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.testim-eyebrow { color: rgba(255,255,255,0.6); margin-bottom: 28px; justify-content: center; display: inline-flex; }
.testim-eyebrow::before { background: var(--accent); opacity: 1; }
.testim-quote {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.35; color: #fff;
  margin: 0 0 40px; letter-spacing: -0.005em; min-height: 180px;
  transition: opacity 250ms var(--ease-out);
}
.testim-attr { font-size: 15px; color: rgba(255,255,255,0.65); letter-spacing: 0.04em; }
.testim-attr strong { color: #fff; font-weight: 600; }
.testim-avatars {
  display: flex; justify-content: center; gap: 14px; margin-top: 32px;
}
.testim-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: #fff; background: var(--graphite); border: 2px solid transparent;
  cursor: pointer; opacity: 0.5;
  transition: opacity 250ms var(--ease-out), border-color 250ms var(--ease-out), transform 250ms var(--ease-out);
}
.testim-avatar:hover { opacity: 0.9; }
.testim-avatar.active { opacity: 1; border-color: var(--accent); transform: scale(1.08); }
.testim-dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.testim-dot { width: 6px !important; height: 6px !important; min-height: 0 !important; min-width: 0 !important; padding: 0 !important; border-radius: 50% !important; background: rgba(255,255,255,0.2) !important; transition: all 200ms var(--ease-out); cursor:pointer; border: 0 !important; }
.testim-dot.active { background: var(--accent) !important; width: 24px !important; height: 6px !important; border-radius: 4px !important; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta {
  padding: 0; background: var(--ink); color: #fff; position: relative; overflow: hidden;
}
.cta-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 540px;
}
.cta-content {
  padding: 100px 80px; display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.cta-content::before {
  content:""; position:absolute; right: 0; top: 10%; bottom: 10%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1), transparent);
}
.cta-eyebrow { color: var(--accent); margin-bottom: 20px; }
.cta-eyebrow::before { background: var(--accent); opacity: 1; }
.cta-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em;
  color: #fff; margin-bottom: 20px;
}
.cta-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.cta-sub { font-size: 17px; color: rgba(255,255,255,0.65); margin-bottom: 36px; line-height: 1.6; max-width: 440px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.cta-buttons .btn { padding: 16px 26px; font-size: 14px; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); }
.cta-contacts a {
  display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7);
  font-size: 15px; transition: color 200ms var(--ease-out);
}
.cta-contacts a:hover { color: #fff; }
.cta-contacts svg { color: var(--accent); flex-shrink: 0; }

.cta-photo {
  position: relative; background: #000;
  background-image: url('/ld/mls/cta-bg.jpg');
  background-size: cover; background-position: center;
  min-height: 540px;
}
.cta-photo::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(24,26,34,0.4) 0%, rgba(24,26,34,0) 50%);
}
.cta-photo-meta {
  position: absolute; bottom: 32px; right: 32px; z-index: 2;
  text-align: right;
}
.cta-photo-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; letter-spacing: -0.01em; }
.cta-photo-role { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.7); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0E1018; color: rgba(255,255,255,0.5); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 2fr; gap: 64px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo img { height: 40px; }
.footer-tag { font-family: var(--font-serif); font-style: italic; font-size: 17px; color: rgba(255,255,255,0.65); margin-top: 18px; line-height: 1.5; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col-title { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 18px; }
.footer-col a { display:block; padding: 7px 0; font-size: 15px; color: rgba(255,255,255,0.7); transition: color 200ms var(--ease-out); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.45); transition: color 200ms var(--ease-out); }
.footer-legal a:hover { color: #fff; }

  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ============================================================
   V2 REFINEMENT
   Brand-frame moments, CJK ornament, Vancouver Island
   lifestyle, scroll progress bar, refined hero & CTA.
   ============================================================ */

/* Scroll progress bar — fine red thread at top of viewport */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: transparent; z-index: 200; pointer-events: none;
}
.scroll-progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--vermillion));
  transition: width 80ms linear;
  box-shadow: 0 0 8px rgba(190,30,45,0.4);
}

/* Hero — slow Ken Burns on the harbour photo */
.hero-video { transform-origin: center; }
@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { /* reduced motion: video still plays but no extra animation */ }
}

/* Hero side ornament — coordinates + CJK glyph (vertical) */
.hero-side {
  position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  z-index: 2; pointer-events: none;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; color: rgba(255,255,255,0.5);
  text-transform: uppercase; writing-mode: vertical-rl;
}
.hero-side-cjk {
  writing-mode: horizontal-tb;
  font-family: var(--font-cjk); font-size: 22px; font-weight: 600;
  color: var(--accent); opacity: 0.85;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.hero-side-coord { white-space: nowrap; }

/* Hero brand-frame mark — quiet decorative element in upper-right */
.hero-frame-mark {
  position: absolute; top: 120px; right: 88px; z-index: 2;
  width: 110px; height: 110px;
  border: 2.5px solid var(--accent); border-right: 0; border-bottom: 0;
  pointer-events: none;
}
.hero-frame-mark::after  { content:""; position:absolute; right:0; bottom:0; width: 60%; height: 2.5px; background: var(--accent); }
.hero-frame-mark::before { content:""; position:absolute; right:0; top:0;    width: 2.5px; height: 60%; background: var(--accent); }

/* ============================================================
   MEANING OF 8X — editorial interstitial
   ============================================================ */
.meaning {
  background: var(--ivory); padding: 140px 0; position: relative; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.meaning::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image: url('/ld/mls/8-pattern-hollow.svg');
  background-size: 240px; background-repeat: repeat;
  opacity: 0.04;
}
.meaning-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 96px;
  align-items: center; position: relative; z-index: 1;
}
.meaning-glyph {
  font-family: var(--font-cjk); font-weight: 700;
  font-size: clamp(180px, 22vw, 320px); line-height: 1;
  color: var(--accent); text-align: center; letter-spacing: -0.02em;
  position: relative;
}
.meaning-glyph::after {
  content: "X"; position: absolute; right: 18%; bottom: 8%;
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 0.35em; color: var(--ink); letter-spacing: -0.02em;
}
.meaning-glyph-caption {
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-2); margin-top: 28px;
  text-align: center;
}
.meaning-eyebrow { color: var(--accent); margin-bottom: 18px; }
.meaning-eyebrow::before { background: var(--accent); opacity: 1; }
.meaning h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05;
  letter-spacing: -0.03em; color: var(--ink); margin-bottom: 28px;
}
.meaning h2 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--accent);
}
.meaning p { font-size: 17px; line-height: 1.75; color: var(--fg-1); margin-bottom: 18px; max-width: 520px; }
.meaning-values {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--mist);
}
.meaning-value { display: flex; flex-direction: column; gap: 4px; }
.meaning-value-cjk {
  font-family: var(--font-cjk); font-size: 26px; font-weight: 600;
  color: var(--accent);
}
.meaning-value-name {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--ink); letter-spacing: -0.005em;
}
.meaning-value-meta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-3);
}
.meaning-divider {
  width: 1px; height: 36px; background: var(--mist);
}

/* ============================================================
   CHAPTER FRAME — CJK glyph addition
   ============================================================ */
.chapter-frame-cjk {
  font-family: var(--font-cjk); font-weight: 600;
  font-size: 22px; color: var(--accent);
  margin-left: 8px;
  align-self: center;
}
.chapter.dark .chapter-frame-cjk { color: var(--accent); }

/* CJK character — interactive cue */
.chapter-frame-cjk {
  cursor: pointer;
  position: relative;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Popover (appended to body, position: fixed) */
.cjk-popover {
  position: fixed;
  width: 220px;
  background: #111;
  border: 1px solid var(--accent);
  padding: 16px 18px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
  z-index: 10000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.cjk-popover.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Arrow — points down toward the character (popover is above) */
.cjk-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--accent);
}

/* Flip variant — popover appears below the character */
.cjk-popover.flip { transform: translateY(-6px); }
.cjk-popover.flip.open { transform: translateY(0); }
.cjk-popover.flip::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--accent);
}

/* Inner elements */
.cjk-popover-char {
  font-family: var(--font-cjk);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.cjk-popover-pinyin {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}
.cjk-popover-meaning {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
}
.cjk-popover-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}
.cjk-popover-context {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* Centered chapter header (for full-width chapters like Media, Strategy etc) */
.chapter-header-centered {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-bottom: 24px;
}
.chapter-header-centered .chapter-frame { margin-bottom: 0; }

/* ============================================================
   ROOTED IN VICTORIA — Vancouver Island geographic moment
   ============================================================ */
.rooted {
  background: var(--ink); color: rgba(255,255,255,0.7);
  padding: 140px 0; position: relative; overflow: hidden;
}
.rooted-topo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0.5;
}
.rooted::before {
  content:""; position:absolute; inset:0; z-index: 1; pointer-events:none;
  background:
    radial-gradient(ellipse 60% 60% at 18% 45%, rgba(190,30,45,0.10), transparent 60%),
    linear-gradient(180deg, rgba(24,26,34,0.55) 0%, rgba(24,26,34,0) 30%, rgba(24,26,34,0.5) 100%);
}
.rooted-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 96px;
  align-items: center; position: relative; z-index: 1;
}
.rooted-eyebrow { color: var(--accent); margin-bottom: 20px; }
.rooted-eyebrow::before { background: var(--accent); opacity: 1; }
.rooted h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.03em;
  color: #fff; margin-bottom: 24px;
}
.rooted h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); display: block; }
.rooted p { font-size: 17px; line-height: 1.75; color: rgba(255,255,255,0.7); margin-bottom: 18px; max-width: 480px; }
.rooted-coord {
  display: inline-flex; align-items: center; gap: 16px;
  margin-top: 24px; padding-top: 20px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.rooted-coord span:first-child { color: var(--accent); }

.rooted-neighbourhoods {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px;
  max-width: 520px;
}
.neighbourhood-chip {
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.75); letter-spacing: 0.01em;
  padding: 8px 14px; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px; background: rgba(255,255,255,0.03);
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
  cursor: default;
}
.neighbourhood-chip:hover {
  background: rgba(190,30,45,0.15); color: #fff; border-color: var(--accent);
}
.neighbourhood-chip.featured { background: var(--accent); color: #fff; border-color: var(--accent); }

.rooted-map {
  position: relative; aspect-ratio: 5/4; min-height: 480px;
  border-radius: 12px; overflow: hidden;
  background: #0f1218; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
}
.rooted-map-mapbox {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.85;
  animation: mapDrift 30s ease-in-out infinite;
  transform-origin: center;
}
@keyframes mapDrift {
  0%   { transform: translate3d(0, 0, 0)   scale(1.03); }
  50%  { transform: translate3d(-14px, -10px, 0) scale(1.045); }
  100% { transform: translate3d(0, 0, 0)   scale(1.03); }
}
.rooted-map-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 700px at 90% 50%, rgba(24,26,34,0) 0%, rgba(24,26,34,0.45) 50%, rgba(24,26,34,0.85) 100%),
    linear-gradient(180deg, rgba(24,26,34,0.40) 0%, rgba(24,26,34,0.05) 30%, rgba(24,26,34,0.45) 100%);
  z-index: 1; pointer-events: none;
}
/* The breathing 8 motif anchored off the right edge */
.rooted-map-eight {
  position: absolute; right: -32%; top: 50%; transform: translateY(-50%);
  height: 100%; aspect-ratio: 1050 / 600; z-index: 2; pointer-events: none;
}
.rooted-map-eight-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.rooted-map-eight-img.glow { filter: blur(10px) saturate(140%); opacity: 0.55; }
.rooted-map-eight-img.main {
  filter: drop-shadow(0 0 8px rgba(190,30,45,0.4));
  animation: breathe 4.8s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.86; }
  50%      { opacity: 1; }
}
/* Pinging waypoints over Victoria neighbourhoods */
.waypoint {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); z-index: 3;
  box-shadow: 0 0 0 2px rgba(24,26,34,0.45);
}
.waypoint::after {
  content:""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ping 2.8s ease-out infinite;
}
.waypoint.jade { background: var(--jade-bright); }
.waypoint.jade::after { border-color: var(--jade-bright); }
.waypoint.w2::after { animation-delay: 0.9s; }
.waypoint.w3::after { animation-delay: 1.6s; }
.waypoint.w4::after { animation-delay: 2.2s; }
@keyframes ping {
  0%   { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}
/* Slow horizontal scan line */
.rooted-map-scan {
  position: absolute; top: 0; bottom: 0; width: 160px;
  background: linear-gradient(90deg, transparent, rgba(190,30,45,0.10) 50%, transparent);
  animation: scanX 14s linear infinite;
  z-index: 2; pointer-events: none;
}
@keyframes scanX {
  from { transform: translateX(-200px); }
  to   { transform: translateX(120%); }
}
/* Map overlay content — corner mark + coordinates */
.rooted-map-content {
  position: absolute; inset: 0; padding: 22px 24px; z-index: 4;
  display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: none;
}
.rooted-map-corner {
  display: inline-flex; align-items: stretch; height: 28px; border-radius: 4px; overflow: hidden;
  align-self: flex-start;
}
.rooted-map-corner .chip {
  background: var(--accent); color: #fff;
  display: flex; align-items: center; padding: 0 9px;
  font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: -0.02em;
}
.rooted-map-corner .word {
  display: flex; align-items: center; padding: 0 11px;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(24,26,34,0.7); color: #fff;
  backdrop-filter: blur(4px);
}
.rooted-map-readout {
  text-align: right; align-self: flex-end;
}
.rooted-map-readout .label {
  font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.55);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.rooted-map-readout .coord {
  font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em; margin-top: 4px;
}

/* ============================================================
   CTA REFINEMENT — full-bleed editorial composition
   ============================================================ */
.cta-v2 {
  position: relative; min-height: 720px;
  background: var(--ink); color: #fff; overflow: hidden;
  display: block; padding: 0;
}
.cta-v2-photo {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('/ld/mls/cta-bg.jpg');
  background-size: cover; background-position: center 35%;
  transform-origin: center; animation: kenBurns 28s ease-in-out infinite alternate;
}
.cta-v2-photo::after {
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(135deg, rgba(24,26,34,0.85) 0%, rgba(24,26,34,0.5) 45%, rgba(24,26,34,0.15) 100%),
    linear-gradient(180deg, rgba(24,26,34,0.2), rgba(24,26,34,0.7) 100%);
}
#mls-page-root .cta-v2-inner {
  position: relative; z-index: 1; padding: 140px 32px 100px !important;
  max-width: 1240px; margin: 0 auto;
}
.cta-v2-card {
  max-width: 580px; padding: 56px 64px;
  background: rgba(24,26,34,0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
/* Brand-frame motif on the CTA card — top-right corner open */
.cta-v2-card::before {
  content:""; position:absolute; top: -14px; left: -14px;
  width: 60px; height: 60px;
  border-top: 2.5px solid var(--accent);
  border-left: 2.5px solid var(--accent);
}
.cta-v2-card::after {
  content:""; position:absolute; bottom: -14px; right: -14px;
  width: 60px; height: 60px;
  border-bottom: 2.5px solid var(--accent);
  border-right: 2.5px solid var(--accent);
}
.cta-v2-eyebrow { color: var(--accent); margin-bottom: 20px; }
.cta-v2-eyebrow::before { background: var(--accent); opacity: 1; }
.cta-v2 h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.035em;
  color: #fff; margin-bottom: 20px;
}
.cta-v2 h2 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
}
.cta-v2 .equation {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 0.72em; color: var(--accent);
  padding: 2px 14px; border: 2px solid var(--accent);
  position: relative;
}
.cta-v2-sub { font-size: 17px; color: rgba(255,255,255,0.7); margin-bottom: 32px; line-height: 1.6; max-width: 440px; }
.cta-v2-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.cta-v2-contacts { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.cta-v2-contacts a {
  display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7);
  font-size: 14px; transition: color 200ms var(--ease-out);
}
.cta-v2-contacts a:hover { color: #fff; }
.cta-v2-contacts svg { color: var(--accent); flex-shrink: 0; }

.cta-v2-signature {
  position: absolute; right: 56px; bottom: 56px; z-index: 1;
  text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
.cta-v2-sig-name {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: #fff; letter-spacing: -0.015em;
}
.cta-v2-sig-role {
  font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.65);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.cta-v2-sig-cjk {
  font-family: var(--font-cjk); font-weight: 600; font-size: 24px;
  color: var(--accent); margin-top: 6px;
}

/* ============================================================
   SECTION RHYTHM — subtle frame ornaments + brand watermark
   ============================================================ */
.section-divider {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 0; background: inherit;
}
.section-divider-mark {
  width: 28px; height: 28px; position: relative;
  border-top: 2px solid var(--accent); border-left: 2px solid var(--accent);
}
.section-divider-mark::after { content:""; position:absolute; right:0; bottom:0; width: 60%; height: 2px; background: var(--accent); }
.section-divider-mark::before { content:""; position:absolute; right:0; top:0; width: 2px; height: 60%; background: var(--accent); }

/* Stronger reveal — slightly slower, smoother for v2 polish */
.rv, .rv-l, .rv-r, .rv-s { transition-duration: 900ms; transition-timing-function: cubic-bezier(0.22,1,0.36,1); }

/* Hero title — line-by-line reveal */
.hero-title-line { display: block; overflow: hidden; }
.hero-title-line-inner {
  display: block; transform: translateY(110%);
  transition: transform 1000ms cubic-bezier(0.22,1,0.36,1);
  transition-delay: var(--rev-delay, 0ms);
}
.hero-title-line-inner.in { transform: translateY(0); }

/* Refined image hover for media tiles in dark chapter */
.media-tile { transition: transform 450ms cubic-bezier(0.22,1,0.36,1), border-color 250ms var(--ease-out), box-shadow 350ms var(--ease-out); }
.media-tile:hover { box-shadow: 0 18px 40px rgba(0,0,0,0.4); }

/* ============================================================
   RESPONSIVE — V2 additions
   ============================================================ */
@media (max-width: 1100px) {
  .meaning-grid { grid-template-columns: 1fr; gap: 64px; text-align: center; }
  .meaning p { max-width: none; margin-left: auto; margin-right: auto; }
  .meaning-values { justify-content: center; }
  .rooted-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-side { display: none; }
  .hero-frame-mark { top: 100px; right: 32px; width: 80px; height: 80px; }
  .cta-v2-card { padding: 44px 40px; }
  .cta-v2-signature { right: 32px; bottom: 32px; }
}
@media (max-width: 760px) {
  .meaning { padding: 80px 0; }
  .meaning-glyph { font-size: clamp(140px, 40vw, 200px); }
  .meaning-values { gap: 16px; }
  .meaning-divider { display: none; }
  .rooted { padding: 0 0 48px !important; overflow: hidden !important; display: block !important; }
  .rooted-grid { grid-template-columns: 1fr !important; gap: 0 !important; min-width: 0; }
  .rooted-grid > * { min-width: 0; }
  #mls-page-root .rooted .container { max-width: 100% !important; padding: 0 20px !important; box-sizing: border-box !important; }
  .rooted-map { aspect-ratio: unset; min-height: 280px; height: 280px; border-radius: 0; order: -1; border: 0; border-bottom: 1px solid rgba(255,255,255,0.07); margin: 0 -20px; width: calc(100% + 40px); }
  .rooted p { max-width: none !important; }
  .rooted-neighbourhoods { flex-wrap: nowrap !important; overflow-x: auto !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .rooted-neighbourhoods::-webkit-scrollbar { display: none; }
  .neighbourhood-chip { flex-shrink: 0; }
  .hero-frame-mark { display: none; }
  .cta-v2 { min-height: auto; }
  .cta-v2-inner { padding: 80px 0 64px; }
  .cta-v2-card { padding: 36px 28px; margin: 0 20px; max-width: none; }
  .cta-v2-card::before, .cta-v2-card::after { width: 36px; height: 36px; }
  .cta-v2-signature { position: static; padding: 36px 28px 0; align-items: flex-start; text-align: left; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .method-head { grid-template-columns: 1fr; gap: 32px; }
  .timeline-nav { grid-template-columns: repeat(8, 1fr); gap: 4px; }
  .timeline-label { font-size: 11px; }
  .chapter-grid, .chapter-grid.reverse { grid-template-columns: 1fr; gap: 48px; }
  .chapter-grid.reverse .chapter-media { order: 0; }
  .chapter-media { position: static; }
  /* Switch chapter feature images to landscape on tablet */
  .media-frame { max-height: 360px; aspect-ratio: 16/10; }
  .media-frame.tall { max-height: 360px; aspect-ratio: 16/10; }
  #ch-discovery .media-frame img { object-position: center 60%; }
  .media-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px 240px; }
  .media-tile.feature { grid-column: 1 / 3; grid-row: 1; }
  .media-tile.tall-r { grid-column: 2; grid-row: 2; }
  .media-tile.print-tile { grid-column: 2; grid-row: 3; }
  .media-tile.wide-video { grid-column: 1 / 3; grid-row: 4; }
  /* Phone + channel ribbons: tighten positioning */
  .phone { width: 280px; height: 560px; }
  .channel-ribbon.r1 { left: 0; }
  .channel-ribbon.r2 { right: -40px; }
  .channel-ribbon.r3 { left: -10px; }
  /* Negotiation flow: 2x2 grid */
  .flow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .flow-arrow { display: none; }
  .flow-step { flex: unset; }
  .fourps { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .guidebook-grid { grid-template-columns: 1fr; gap: 56px; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-content { padding: 80px 48px; }
  .cta-photo { min-height: 360px; }
  .cta-content::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 48px; }
  /* Rooted: wider text, smaller map */
  .rooted p { max-width: none; }
  .rooted-map { min-height: 380px; aspect-ratio: 16/10; }
}

@media (max-width: 760px) {
  :root { --nav-height: 64px; }
  .container, .container-narrow { padding: 0 20px; }
  .nav-inner { padding: 0 20px; gap: 16px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-spacer { display: none; }

  .hero { padding: calc(var(--nav-height) + 40px) 0 80px; min-height: auto; }
  .hero-title { font-size: clamp(36px, 11vw, 56px); }
  .hero-meta { gap: 20px 28px; margin-top: 40px; padding-top: 22px; }
  .hero-stat-num { font-size: 24px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1; justify-content: center; }

  .method { padding: 80px 0 64px; }
  .method-head { grid-template-columns: 1fr !important; gap: 20px !important; margin-bottom: 40px; }
  .timeline-nav { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .timeline-rail { display: none !important; }
  .timeline-step {
    flex-direction: column !important; align-items: flex-start !important; justify-content: space-between !important;
    gap: 0 !important; padding: 12px 14px !important; min-height: 80px;
    background: #fff; border: 1.5px solid #E5E5E5; border-radius: 10px;
    position: relative !important;
  }
  .timeline-step:hover { transform: none !important; }
  .timeline-step.active {
    background: #181A22 !important; border-color: #181A22 !important;
    border-top: 2.5px solid #BE1E2D; padding: 12px 14px !important;
  }
  .timeline-dot { display: none !important; }
  .timeline-num { order: -1 !important; margin-left: 0; font-size: 11px !important; color: rgba(0,0,0,0.35); letter-spacing: 0.08em; }
  .timeline-step.active .timeline-num { color: rgba(255,255,255,0.4) !important; }
  .timeline-label { font-size: 16px !important; font-weight: 700 !important; text-align: left !important; white-space: nowrap; color: var(--ink) !important; }
  .timeline-step.active .timeline-label { color: #ffffff !important; }
  /* CJK characters via pseudo-element */
  .timeline-step::after {
    position: absolute !important; bottom: 10px; right: 12px;
    font-family: 'Noto Serif SC', serif; font-size: 26px; font-weight: 700;
    color: rgba(190,30,45,0.2); line-height: 1; pointer-events: none;
  }
  .timeline-step.active::after { color: rgba(190,30,45,0.35); }
  .timeline-step[data-target="#ch-discovery"]::after { content: "聽"; }
  .timeline-step[data-target="#ch-preparation"]::after { content: "築"; }
  .timeline-step[data-target="#ch-media"]::after { content: "像"; }
  .timeline-step[data-target="#ch-strategy"]::after { content: "策"; }
  .timeline-step[data-target="#ch-launch"]::after { content: "啟"; }
  .timeline-step[data-target="#ch-promotion"]::after { content: "揚"; }
  .timeline-step[data-target="#ch-negotiation"]::after { content: "議"; }
  .timeline-step[data-target="#ch-closing"]::after { content: "成"; }

  .chapter { padding: 80px 0; }
  .chapter-num-bg { font-size: 140px; top: 30px; }
  .stat-callout { flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 22px; }
  .stat-callout-num { font-size: 26px; }
  .stat-callout.principle .stat-callout-num { font-size: 19px; }
  .cjk-proverb { padding: 22px 22px 18px; }
  .cjk-proverb-chars { font-size: 36px; }

  .media-tile-video > .media-tile-play { display: none; }
  .media-grid { grid-template-columns: 1fr; grid-template-rows: repeat(6, 200px); gap: 12px; }
  .media-tile.feature, .media-tile.tall-r, .media-tile.wide-video, .media-tile.print-tile { grid-column: 1; grid-row: auto; }

  .pull-quote { padding: 22px 24px; }
  .pull-quote p { font-size: 18px; }

  .fourps { grid-template-columns: 1fr; gap: 16px; }
  .fourp-card { padding: 28px 24px; }

  .phone { width: 260px; height: 520px; transform: rotate(0); }
  .channel-ribbon { display: none; }

  .campaign-grid { grid-template-columns: 1fr; gap: 32px; }
  .campaign-grid::before { display: none; }
  .channel-grid { grid-template-columns: repeat(3, 1fr); }

  .flow { display: flex !important; flex-direction: column !important; align-items: stretch !important; grid-template-columns: unset !important; }
  .flow-arrow { display: none !important; }
  .flow-step { flex: unset !important; }

  .closing-list { padding-left: 48px; }
  .closing-check { left: -48px; width: 34px; height: 34px; }
  .closing-list::before { left: 16px; }

  .compare { padding: 80px 0; }
  .compare-table { border-radius: 8px; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-cell { padding: 14px 20px; font-size: 14px; }

  /* Typography — mobile scale-down */
  .lede, .chapter-body p.lede, .chapter-body .margin-aside { font-size: 18px; }
  .flow-step h4, .closing-title, .campaign-title, .guidebook-feature h4 { font-size: 17px; }
  .compare-cell.label { padding: 14px 20px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
  .compare-cell.us { border-left: 3px solid var(--accent); border-right: 0; }
  .compare-cell.them { border-left: 3px solid var(--mist); }
  .compare-row.header { display: none; }
  .compare-cell.us::before { content:"8X · "; font-weight: 700; color: var(--accent); font-size: 11px; letter-spacing: 0.08em; }
  .compare-cell.them::before { content:"Typical · "; font-weight: 600; font-size: 11px; letter-spacing: 0.08em; opacity: 0.8; }

  .results { padding: 72px 0; }
  .results-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .result-num { font-size: 44px; }

  .guidebook { padding: 80px 0; }
  .guidebook-book { width: 100%; max-width: 320px; height: 420px; padding: 32px 28px; }
  .guidebook-book-title { font-size: 28px; }


  .cta-content { padding: 64px 24px; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { justify-content: center; }
  .cta-contacts { flex-direction: column; gap: 12px; }

  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}


/* ============================================================
   CMA INTAKE MODAL — paper-white / serif-accent style
   (mirrors the buyer-agency dm-* discovery modal)
   ============================================================ */
.cma-modal{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.72);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:24px;opacity:0;pointer-events:none;transition:opacity .26s var(--ease-out)}
.cma-modal.open{opacity:1;pointer-events:auto}
body.cma-open{overflow:hidden}
.cma-card{position:relative;background:var(--paper);width:100%;max-width:620px;max-height:calc(100vh - 48px);border-radius:6px;overflow:hidden;display:flex;flex-direction:column;transform:translateY(20px);opacity:0;transition:transform .32s var(--ease-out),opacity .26s var(--ease-out);box-shadow:0 30px 80px rgba(0,0,0,.45)}
.cma-modal.open .cma-card{transform:translateY(0);opacity:1}
.cma-modal-bd{position:absolute;inset:0;cursor:pointer}

.cma-close{position:absolute;top:14px;right:14px;width:36px;height:36px;border:0;background:none;font-size:24px;line-height:1;color:var(--slate);cursor:pointer;border-radius:4px;transition:background .15s,color .15s;z-index:2}
.cma-close:hover{background:rgba(10,10,10,.06);color:var(--ink)}

.cma-head{padding:28px 32px 18px;border-bottom:1px solid var(--fog);display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.cma-chap{display:flex;align-items:flex-end;gap:14px}
.cma-chap-k{font-family:var(--font-cjk);font-size:38px;color:var(--accent);line-height:1;font-weight:600}
.cma-chap-meta{display:flex;flex-direction:column;gap:3px;padding-bottom:4px}
.cma-chap-n{font-family:var(--font-mono);font-size:9px;color:var(--slate-2);letter-spacing:.18em;text-transform:uppercase}
.cma-chap-l{font-family:var(--font-mono);font-size:11px;color:var(--ink);letter-spacing:.1em;text-transform:uppercase;font-weight:600}
.cma-progress{display:flex;gap:6px;padding-bottom:6px}
.cma-dot{width:28px;height:3px;background:rgba(10,10,10,.12);border-radius:2px;transition:background .2s var(--ease-out)}
.cma-dot.on{background:var(--accent)}
.cma-dot.done{background:rgba(10,10,10,.45)}

.cma-body{padding:30px 32px 24px;overflow-y:auto;flex:1;-webkit-overflow-scrolling:touch}
.cma-step{animation:cma-step-in .26s var(--ease-out)}
@keyframes cma-step-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

.cma-h{font-size:24px;font-weight:700;letter-spacing:-.02em;color:var(--ink);margin-bottom:8px;line-height:1.2;font-family:var(--font-display)}
.cma-h em{font-family:var(--font-serif);font-style:italic;font-weight:400;color:var(--accent)}
.cma-p{font-family:var(--font-serif);font-style:italic;font-size:15px;color:var(--slate);line-height:1.5;margin-bottom:22px}

.cma-field{margin-bottom:20px}
.cma-field:last-child{margin-bottom:0}
.cma-label{font-family:var(--font-mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--slate);margin-bottom:10px;display:block;font-weight:600}
.cma-label .opt{color:var(--slate-2);font-weight:500;margin-left:6px;letter-spacing:.04em;text-transform:none}

/* Card-style options (1 per row) */
.cma-options{display:grid;gap:10px}
.cma-opt{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;text-align:left;padding:14px 16px;background:#fff;border:1px solid var(--fog);border-radius:4px;cursor:pointer;font-family:var(--font-sans);transition:all .14s var(--ease-out)}
.cma-opt:hover{border-color:rgba(10,10,10,.35);background:rgba(10,10,10,.02)}
.cma-opt.on{border-color:var(--accent);background:rgba(190,30,45,.04)}
.cma-opt-h{font-size:15px;font-weight:600;color:var(--ink);letter-spacing:-.005em}
.cma-opt-d{font-size:13px;color:var(--slate);line-height:1.45}

/* Compact chip options (multi-row groupings) */
.cma-chips{display:flex;flex-wrap:wrap;gap:8px}
.cma-chip{padding:8px 14px;background:#fff;border:1px solid var(--fog);border-radius:999px;font-size:13px;font-weight:500;color:var(--ink);cursor:pointer;font-family:var(--font-sans);transition:all .14s var(--ease-out)}
.cma-chip:hover{border-color:rgba(10,10,10,.35)}
.cma-chip.on{background:var(--accent);border-color:var(--accent);color:#fff}

/* Text inputs / textareas */
.cma-text,.cma-input{width:100%;padding:12px 14px;background:#fff;border:1px solid var(--fog);border-radius:4px;font-family:var(--font-sans);font-size:14.5px;color:var(--ink);transition:border-color .14s var(--ease-out);box-sizing:border-box}
.cma-text{min-height:84px;line-height:1.5;resize:vertical}
.cma-text:focus,.cma-input:focus{outline:0;border-color:var(--ink)}
.cma-text::placeholder,.cma-input::placeholder{color:var(--slate-2)}

.cma-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cma-hint{font-family:var(--font-serif);font-style:italic;font-size:13px;color:var(--slate-2);margin-top:8px;line-height:1.5}
.cma-hint button{background:none;border:0;color:var(--slate);text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(10,10,10,.2);cursor:pointer;font-family:inherit;font-size:inherit;font-style:inherit;padding:0}
.cma-hint button:hover{color:var(--ink);text-decoration-color:var(--ink)}

/* Address autocomplete */
.cma-addr-wrap{position:relative}
.cma-addr-list{position:fixed;background:#fff;border:1px solid var(--fog);border-radius:4px;max-height:300px;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:10001;box-shadow:0 12px 32px rgba(0,0,0,.18);display:none}
.cma-addr-list.open{display:block}
.cma-addr-item{padding:12px 14px;cursor:pointer;font-size:14px;color:var(--ink);display:flex;justify-content:space-between;gap:10px;align-items:baseline;border-bottom:1px solid var(--fog);transition:background .12s var(--ease-out);font-family:var(--font-sans)}
.cma-addr-item:last-child{border-bottom:0}
.cma-addr-item:hover,.cma-addr-item.hl{background:rgba(190,30,45,.05)}
.cma-addr-item-main{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.cma-addr-item-main strong{font-weight:500;color:var(--ink)}
.cma-addr-item-side{font-family:var(--font-mono);font-size:10.5px;color:var(--slate-2);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap;flex-shrink:0}
.cma-addr-item-pin{flex-shrink:0;color:var(--slate-2);width:14px;height:14px;display:inline-flex;align-items:center}
.cma-addr-item.is-multi .cma-addr-item-pin{color:var(--accent)}
.cma-addr-empty{padding:14px;font-size:13px;color:var(--slate);font-family:var(--font-serif);font-style:italic}
.cma-addr-loading{padding:14px;font-size:12px;color:var(--slate-2);font-family:var(--font-mono);letter-spacing:.08em;text-transform:uppercase}

/* Manual entry */
.cma-manual-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cma-manual-grid > div.full{grid-column:1 / -1}

/* Footer */
.cma-foot{padding:18px 32px;border-top:1px solid var(--fog);display:flex;align-items:center;gap:12px;background:rgba(10,10,10,.015);flex-shrink:0}
.cma-foot-spacer{flex:1}
.cma-btn-back{background:none;border:0;color:var(--slate);font-size:14px;font-weight:500;cursor:pointer;padding:8px 12px;font-family:var(--font-sans);border-radius:4px;transition:color .14s,background .14s}
.cma-btn-back:hover{color:var(--ink);background:rgba(10,10,10,.04)}
.cma-btn-skip{background:none;border:0;color:var(--slate);font-size:13px;cursor:pointer;padding:8px 10px;font-family:var(--font-sans);text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(10,10,10,.2)}
.cma-btn-skip:hover{color:var(--ink)}
.cma-btn-next{background:var(--accent);color:#fff;border:0;padding:12px 24px;border-radius:4px;font-family:var(--font-sans);font-size:14px;font-weight:600;letter-spacing:.02em;cursor:pointer;transition:background .2s var(--ease-out),transform .1s;display:inline-flex;align-items:center;gap:8px}
.cma-btn-next:hover{background:var(--accent-hover)}
.cma-btn-next:active{transform:translateY(1px)}
.cma-btn-next[disabled]{background:rgba(10,10,10,.18);cursor:not-allowed}

/* Done state */
.cma-done{padding:60px 32px;text-align:center}
.cma-done-mark{font-family:var(--font-cjk);font-size:48px;line-height:1;color:var(--accent);font-weight:600;margin-bottom:18px}
.cma-done-h{font-size:28px;font-weight:700;color:var(--ink);letter-spacing:-.02em;margin-bottom:10px;font-family:var(--font-display)}
.cma-done-p{font-family:var(--font-serif);font-style:italic;font-size:16px;color:var(--slate);line-height:1.55;max-width:420px;margin:0 auto}
.cma-done-actions{margin-top:26px;display:flex;justify-content:center}
.cma-done-actions .cma-btn-next{padding:11px 24px}

/* Tablet — 768px and below */
@media (max-width: 768px) {
  .cma-modal{padding:0;align-items:stretch;justify-content:stretch}
  .cma-card{max-width:100%;max-height:100vh;height:100vh;border-radius:0;transform:translateY(40px)}
  .cma-modal.open .cma-card{transform:translateY(0)}
  .cma-head{padding:22px 22px 16px;align-items:flex-start;flex-wrap:wrap;gap:16px}
  .cma-chap-k{font-size:30px}
  .cma-body{padding:24px 22px 22px}
  .cma-foot{padding:14px 22px 16px;gap:8px;padding-bottom:max(16px, env(safe-area-inset-bottom))}
  .cma-h{font-size:21px}
  .cma-p{font-size:14px;margin-bottom:18px}
  .cma-row{grid-template-columns:1fr}
  .cma-manual-grid{grid-template-columns:1fr}
  .cma-progress{padding-bottom:0}
  .cma-dot{width:24px}
  .cma-opt{padding:13px 14px}
  .cma-opt-h{font-size:15px}
  .cma-opt-d{font-size:12.5px}
  .cma-addr-item{padding:14px 14px}
  .cma-btn-next{padding:11px 18px;font-size:13.5px}
  .cma-btn-back{font-size:13px;padding:8px 8px}
  .cma-btn-skip{font-size:12.5px}
}

/* Mobile — 480px and below */
@media (max-width: 480px) {
  .cma-head{padding:20px 18px 14px}
  .cma-body{padding:22px 18px 18px}
  .cma-foot{padding:12px 18px 14px;padding-bottom:max(14px, env(safe-area-inset-bottom))}
  .cma-chap-k{font-size:26px}
  .cma-chap-n{font-size:8.5px}
  .cma-chap-l{font-size:10px}
  .cma-h{font-size:19px;line-height:1.25}
  .cma-progress .cma-dot{width:18px;height:2.5px}
  .cma-progress{gap:4px}
  .cma-addr-item-side{display:none}
  .cma-done{padding:48px 22px}
  .cma-done-h{font-size:22px}
  .cma-done-p{font-size:14.5px}
  .cma-chip{padding:7px 12px;font-size:12.5px}
  /* Use sticky footer at the bottom of the viewport */
  .cma-card{height:100dvh;height:100vh}
}

/* iOS safari: lock body scroll while modal open (handled by JS) */
