/* ============================================================
   O&Y STUDIO — Story (cinematic narrative redesign 2026-05-14)
   Loaded AFTER premium.css. New components only. No overrides.
   ============================================================ */

:root {
  /* Chapter tint base — 5–8% overlay per chapter */
  --tint-about:    rgba(255, 248, 240, 0.04);
  --tint-showroom: rgba(220, 220, 255, 0.04);
  --tint-story-a:  rgba(255, 180, 150, 0.05); /* Spread — pain */
  --tint-story-b:  rgba(220, 215, 170, 0.05); /* Offer — resolution */
  --tint-pricing:  rgba(220, 230, 240, 0.03);
  --tint-warranty: rgba(200, 230, 210, 0.04);
  --tint-tracks:   rgba(240, 220, 200, 0.04);
  --tint-process:  rgba(220, 230, 240, 0.03);
  --tint-contact:  rgba(220, 200, 230, 0.04);
}

/* ============================================================
   Chapter masthead — reusable editorial header for all sections.
   Visual language mirrors .hero-ed-masthead and .about-ed-masthead.
   ============================================================ */

.ed-masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(1100px, 92vw);
  margin: 0 auto 32px;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.ed-masthead.in,
.reveal.in .ed-masthead {
  opacity: 1;
  transform: translateY(0);
}

.ed-masthead-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.28) 30%,
    rgba(255, 255, 255, 0.28) 70%,
    transparent
  );
}

.ed-masthead-text {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ed-masthead-glyph {
  display: inline-block;
  width: 8px;
  height: 8px;
  opacity: 0.65;
}

.ed-masthead-counter {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 720px) {
  .ed-masthead {
    font-size: 10px;
    letter-spacing: 0.15em;
    gap: 10px;
    margin-bottom: 24px;
  }
  .ed-masthead-text {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-masthead {
    transition: none;
  }
}

/* ============================================================
   Section hue tints — subtle background washes per chapter.
   Each chapter section gets a ::before overlay at 3–5% opacity.
   ============================================================ */

#about::before,
#pricing::before,
#process::before,
#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

#about      { position: relative; }
#about::before      { background: var(--tint-about); }

#showroom   { position: relative; }
#showroom::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--tint-showroom);
}

#pricing::before    { background: var(--tint-pricing); }
#process::before    { background: var(--tint-process); }
#contact::before    { background: var(--tint-contact); }

/* Tracks section uses tracks-section class, not id */
.tracks-section {
  position: relative;
}
.tracks-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--tint-tracks);
}

/* Warranty block */
.warranty-block {
  position: relative;
}
.warranty-block::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--tint-warranty);
}

/* Make sure all section children render above the tint overlay */
#about > *,
#showroom > *,
#pricing > *,
#process > *,
#contact > *,
.tracks-section > *,
.warranty-block > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Chapter 04 — Story (pain peak + Demo offer)
   ============================================================ */

.story-chapter {
  position: relative;
  padding: 96px 0 64px;
}

.story-chapter::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    var(--tint-story-a) 0%,
    var(--tint-story-a) 50%,
    var(--tint-story-b) 100%
  );
}

.story-chapter > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   The Spread — pinned editorial story
   ============================================================ */

.spread {
  position: relative;
  height: 220vh; /* 4 frames × ~30vh of scroll — keeps it snappy, no long pin */
}

.spread-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 48px;
  align-items: center;
  padding: 0 8vw;
  box-sizing: border-box;
}

.spread-panel {
  text-align: right;
}

.spread-panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.spread-panel-num {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.85);
}

.spread-panel-sep {
  opacity: 0.5;
}

.spread-panel-caption {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  transition: opacity 400ms ease, transform 400ms ease;
}

.spread-frame {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  height: 60vh;
  display: flex;
  flex-direction: column;
}

.spread-frame-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spread-frame-chrome .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.spread-frame-url {
  margin-inline-start: 16px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.spread-frame-body {
  flex: 1;
  padding: 24px;
  overflow: hidden;
  transition: opacity 400ms ease;
}

/* Mobile carousel fallback */
.spread-mobile {
  display: none;
}

@media (max-width: 900px) {
  .spread {
    height: auto;
  }
  .spread-stage {
    display: none;
  }
  .spread-mobile {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 5vw;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .spread-mobile-card {
    flex: 0 0 85vw;
    scroll-snap-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
  }
  .spread-frame-mini {
    height: 240px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spread {
    height: auto;
  }
  .spread-stage {
    display: none;
  }
  .spread-mobile {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 5vw;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
}

/* ============================================================
   Spread frame content — SERP mocks + site mocks
   ============================================================ */

.serp-mock {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.serp-query {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.serp-empty {
  font-family: var(--font-sans);
  font-size: 15px;
  color: rgba(255, 200, 200, 0.7);
  font-style: italic;
  padding: 32px 0;
  text-align: center;
}

.serp-result {
  padding: 12px 0;
}

.serp-result-host {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: rgba(150, 200, 150, 0.7);
  margin-bottom: 4px;
}

.serp-result-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 17px;
  color: rgba(160, 180, 255, 0.95);
  margin-bottom: 4px;
  text-decoration: underline;
  text-decoration-color: rgba(160, 180, 255, 0.4);
}

.serp-result-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.site-mock-hero {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 240, 200, 0.04), transparent);
}

.site-mock-mast {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255, 220, 160, 0.7);
}

.site-mock-h1 {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

.site-mock-h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #f5d97b, #c9a85a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-mock-deck {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.site-mock-cta {
  display: inline-block;
  margin: 0 auto;
  padding: 8px 20px;
  border: 1px solid rgba(255, 220, 160, 0.5);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 220, 160, 0.95);
}

.turnaround-pointer {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200, 220, 180, 0.6);
  padding-top: 12px;
  border-top: 1px solid rgba(200, 220, 180, 0.2);
  margin-top: 12px;
}

/* ============================================================
   The Offer — Demo Builder + intro copy
   ============================================================ */

.offer {
  width: min(900px, 92vw);
  margin: 96px auto 0;
  padding: 0 0 64px;
}

.offer-intro {
  text-align: center;
  margin-bottom: 64px;
}

.offer-quote {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(28px, 4vw, 44px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.95);
}

.offer-glyph-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 32px;
  width: min(320px, 60vw);
  color: rgba(255, 255, 255, 0.5);
}

.offer-glyph-row .hr {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, currentColor, transparent);
}

.offer-lede {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
  max-width: 62ch;
  margin: 0 auto 24px;
  text-align: right;
}

.offer-lede .lede-open::first-letter {
  font-size: 1.6em;
  font-weight: 500;
  line-height: 1;
  float: right;
  margin-inline-start: 6px;
  margin-block-start: 4px;
  color: rgba(255, 255, 255, 0.95);
}

.offer-pullout {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
}

.offer-pullout em {
  font-style: italic;
  background: linear-gradient(135deg, #f5d97b, #c9a85a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Demo Builder */
.demo-builder {
  position: relative;
  padding: 48px 0;
}

.demo-step {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 250ms ease, transform 250ms ease;
  pointer-events: none;
  display: none;
  margin-bottom: 48px;
}

.demo-step.demo-step-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  display: block;
}

.demo-step-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.demo-step-tag {
  white-space: nowrap;
}

.demo-step-q {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 400;
  text-align: center;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.95);
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.demo-chip {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 22px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.demo-chip:hover,
.demo-chip:focus-visible {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  border-color: rgba(255, 255, 255, 0.95);
}

.demo-chip[aria-pressed="true"] {
  background: rgba(255, 220, 160, 0.95);
  color: #111;
  border-color: rgba(255, 220, 160, 0.95);
}

/* ============================================================
   Demo Builder — Step 02 style cards
   ============================================================ */

.demo-style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.demo-style-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  text-align: right;
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.85);
  transition: border-color 200ms ease, background 200ms ease;
}

.demo-style-card:hover,
.demo-style-card:focus-visible {
  border-color: rgba(255, 220, 160, 0.6);
  background: rgba(255, 255, 255, 0.02);
}

.demo-style-card[aria-pressed="true"] {
  border-color: rgba(255, 220, 160, 0.95);
}

.demo-style-swatch {
  height: 88px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  padding: 14px;
}

.demo-style-swatch-minimal {
  background: linear-gradient(135deg, #fafafa, #ececec);
}
.demo-style-swatch-premium {
  background: linear-gradient(135deg, #1a1a1a, #2a2620);
  border: 1px solid rgba(245, 217, 123, 0.25);
}
.demo-style-swatch-vibrant {
  background: linear-gradient(135deg, #f59a6e, #d36a4f 60%, #6e5fc4);
}

.swatch-line {
  height: 2px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.demo-style-swatch-minimal .swatch-line { background: rgba(20, 20, 20, 0.4); }
.demo-style-swatch-premium .swatch-line { background: rgba(245, 217, 123, 0.7); }
.demo-style-swatch-vibrant .swatch-line { background: rgba(255, 255, 255, 0.85); }

.swatch-line-1 { width: 60%; }
.swatch-line-2 { width: 40%; }

.swatch-block {
  margin-top: 14px;
  height: 18px;
  width: 50%;
  border-radius: 100px;
}
.demo-style-swatch-minimal .swatch-block { background: rgba(20, 20, 20, 0.85); }
.demo-style-swatch-premium .swatch-block {
  background: linear-gradient(90deg, #f5d97b, #c9a85a);
}
.demo-style-swatch-vibrant .swatch-block { background: rgba(255, 255, 255, 0.95); }

.demo-style-name {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.95);
}

.demo-style-tag {
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 640px) {
  .demo-style-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Demo Builder — Step 03 preview frame + CTA
   ============================================================ */

.demo-preview-intro {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 16px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  margin: 0 0 32px;
}

.demo-preview-frame {
  width: min(800px, 90vw);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.demo-preview-body {
  min-height: 360px;
  display: block;       /* not flex — let the mock fill width naturally */
  padding: 0;           /* removed — frame already has its own chrome */
}

/* ============================================================
   Demo mockups — base layout rules (apply on every viewport).
   Every fetched mockup wraps in `.mock`. Without these, grid/flex
   children shrink to intrinsic content width (Hebrew = ~one word),
   producing the tall-narrow card the user reported on desktop and
   the empty preview on mobile.
   ============================================================ */
.demo-preview-body .mock {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: grid;            /* fall-back if a mockup forgot to declare */
}

/* Mobile (≤640px) — collapse every mockup to a single-column,
   auto-height, text-first layout that always renders something
   legible regardless of how the mockup was originally built. */
@media (max-width: 640px) {
  .demo-preview-body {
    min-height: 320px;
  }
  .demo-preview-body .mock {
    height: auto !important;
    min-height: 280px !important;
    padding: 28px 22px !important;
    grid-template-columns: 1fr !important;
    display: block !important;  /* simplest layout that always works */
    gap: 16px !important;
  }
  .demo-preview-body .mock > * {
    margin-bottom: 14px;
  }
  .demo-preview-body .mock > *:last-child {
    margin-bottom: 0;
  }
  /* Headlines */
  .demo-preview-body .mock h2 {
    font-size: clamp(22px, 7vw, 28px) !important;
    line-height: 1.15 !important;
    margin: 0 0 12px !important;
  }
  /* Body / deck */
  .demo-preview-body .mock .deck {
    font-size: 13px !important;
    line-height: 1.55 !important;
    max-width: none !important;
    margin: 0 0 16px !important;
  }
  /* Secondary art / decorative panels — hide on phones */
  .demo-preview-body .mock .art,
  .demo-preview-body .mock .badge,
  .demo-preview-body .mock .quote-block {
    display: none !important;
  }
  /* Eyebrow / kicker / masthead labels */
  .demo-preview-body .mock .mast,
  .demo-preview-body .mock .mast-row,
  .demo-preview-body .mock .top-row,
  .demo-preview-body .mock .num,
  .demo-preview-body .mock .kicker {
    font-size: 9px !important;
    letter-spacing: 0.2em !important;
    margin-bottom: 12px !important;
  }
  /* CTAs */
  .demo-preview-body .mock .cta,
  .demo-preview-body .mock .cta-secondary {
    font-size: 11px !important;
    padding: 10px 18px !important;
    display: inline-block;
  }
  .demo-preview-body .mock .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
}

.mockup-stub {
  text-align: center;
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.4);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
}

.mockup-stub-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 220, 160, 0.6);
  margin-bottom: 12px;
}

.mockup-stub-pending {
  font-size: 13px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.35);
}

.demo-cta-row {
  margin-top: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.demo-cta {
  font-size: 14px;
  padding: 14px 28px;
}

.demo-restart {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 180ms ease;
}
.demo-restart:hover,
.demo-restart:focus-visible {
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}

/* ============================================================
   Margin Note — floating WhatsApp FAB, bottom-RIGHT
   Mirrors the a11y trigger on bottom-LEFT (same 52px dark-glass language,
   different accent: green hint border, WhatsApp glyph).
   Default: 52px circle. Hover/focus-within: expands to pill with label.
   ============================================================ */

.margin-note {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  height: 52px;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(28, 24, 48, 0.92), rgba(18, 16, 32, 0.96));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(72, 187, 120, 0.38);
  border-radius: 28px;
  box-shadow: 0 14px 36px -10px rgba(120, 80, 200, 0.45), 0 2px 6px rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--font-sans);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 220ms ease,
              box-shadow 220ms ease;
}

.margin-note:hover,
.margin-note:focus-within {
  transform: translateY(-2px);
  border-color: rgba(72, 187, 120, 0.7);
  box-shadow: 0 18px 44px -10px rgba(72, 187, 120, 0.42), 0 3px 8px rgba(0, 0, 0, 0.45);
}

.margin-note-link {
  display: inline-flex;
  align-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  gap: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  white-space: nowrap;
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1),
              gap 320ms ease,
              padding-left 320ms ease;
  border-radius: 28px;
}

.margin-note:hover .margin-note-link,
.margin-note:focus-within .margin-note-link {
  width: auto;
  gap: 10px;
  padding-left: 18px;
}

.margin-note-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4ee37d;
}

.margin-note-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.margin-note-label {
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 320ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 200ms ease 80ms;
}

.margin-note:hover .margin-note-label,
.margin-note:focus-within .margin-note-label {
  max-width: 240px;
  opacity: 1;
}

.margin-note-close {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 22px;
  height: 22px;
  background: rgba(18, 16, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font: 600 13px/1 var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease, border-color 180ms ease;
  z-index: 2;
}

.margin-note:hover .margin-note-close,
.margin-note:focus-within .margin-note-close {
  opacity: 1;
  transform: scale(1);
}

.margin-note-close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.margin-note-close:focus-visible {
  opacity: 1;
  transform: scale(1);
  outline: 2px solid rgba(245, 217, 123, 0.85);
  outline-offset: 2px;
}

/* Mobile: stay as a clean 52px circle, no label expansion, close visible at low opacity */
@media (max-width: 480px) {
  .margin-note {
    bottom: 20px;
    right: 20px;
  }
  .margin-note:hover,
  .margin-note:focus-within {
    transform: none;
  }
  .margin-note:hover .margin-note-link,
  .margin-note:focus-within .margin-note-link {
    width: 52px;
    gap: 0;
    padding-left: 0;
  }
  .margin-note:hover .margin-note-label,
  .margin-note:focus-within .margin-note-label {
    max-width: 0;
    opacity: 0;
  }
  .margin-note-close {
    opacity: 0.6;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .margin-note,
  .margin-note-link,
  .margin-note-label,
  .margin-note-close {
    transition: none;
  }
}

/* ============================================================
   Live Lighthouse grid — embedded in About column 02
   ============================================================ */

.lighthouse-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 18px;
  margin: 12px 0 14px;
}

.lighthouse-cell {
  text-align: left;
}

.lighthouse-num {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(32px, 4vw, 48px);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #f5d97b, #c9a85a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lighthouse-label {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.lighthouse-footnote {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 8px;
  text-align: right;
}

@media (max-width: 720px) {
  .lighthouse-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px 10px;
  }
  .lighthouse-num {
    font-size: 26px;
  }
  .lighthouse-label {
    font-size: 8px;
    letter-spacing: 0.16em;
  }
}

/* ============================================================
   Scroll progress dots — 9 chapter markers along top line
   ============================================================ */

.scroll-chapter-dots {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 50;
  pointer-events: none;
}

.scroll-chapter-dot {
  position: absolute;
  top: 0;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: background 200ms ease;
}

.scroll-chapter-dot.passed {
  background: rgba(245, 217, 123, 0.85);
}

@media (max-width: 480px) {
  .scroll-chapter-dots {
    display: none;
  }
}

/* ============================================================
   Hero — copy headline variant (Hebrew, conversion-led)
   ============================================================ */

.hero-ed-headline-copy {
  font-family: 'Frank Ruhl Libre', 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 900;
  font-style: normal;
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: rgba(255, 255, 255, 0.98);
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 32px rgba(120, 80, 200, 0.18);
}

.hero-ed-headline-copy .line {
  display: block;
}

.hero-ed-headline-copy .line + .line {
  margin-top: 0.06em;
}

.hero-ed-headline-copy .hero-ed-grad {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
  font-synthesis: none;
  background: linear-gradient(135deg, #a78bfa 0%, #c084fc 40%, #e879f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Primary CTA — gradient pill */
.btn-pill.btn-pill-grad {
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 50%, #c084fc 100%);
  color: #1a0d2e;
  font-weight: 600;
  border: none;
  box-shadow: 0 10px 28px -12px rgba(167, 139, 250, 0.55);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.btn-pill.btn-pill-grad:hover,
.btn-pill.btn-pill-grad:focus-visible {
  background: linear-gradient(135deg, #b4a3fb 0%, #9670f0 50%, #b574fa 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -12px rgba(167, 139, 250, 0.7);
}

/* ============================================================
   The System — 4 cinematic beats (chapter 04)
   ============================================================ */
.system-stage {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 8vw 140px;
  text-align: center;
  position: relative;
}

.system-overture {
  margin-bottom: 120px;
  text-align: center;
}

.system-eyebrow {
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.system-title {
  font-family: 'Frank Ruhl Libre', var(--font-serif, Georgia, serif);
  font-size: clamp(64px, 11vw, 140px);
  font-weight: 900;
  line-height: 0.95;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: -0.01em;
}
.system-title em {
  font-style: italic;
  font-weight: 900;
  background: linear-gradient(135deg, #e9d5ff 0%, #c4b5fd 50%, #d8b4fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.system-glyph-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 auto 28px;
  max-width: 320px;
}
.system-glyph-row .hr {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.system-lede {
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 24px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.5;
}

.system-beats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.system-beat {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.system-beat-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 22px;
}
.system-beat-label .ed-masthead-rule {
  display: inline-block;
  width: 44px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.system-beat-head {
  font-family: 'Frank Ruhl Libre', var(--font-serif, Georgia, serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  color: rgba(255, 255, 255, 0.96);
  margin: 0 0 20px;
  letter-spacing: -0.005em;
}

.system-beat-line {
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 21px);
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 560px;
}

.system-coda {
  margin-top: 140px;
  padding-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.system-coda-line {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(22px, 2.4vw, 32px);
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.4;
  max-width: 720px;
  margin-inline: auto;
}
.system-coda-line em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 700px) {
  .system-stage { padding: 60px 6vw 90px; }
  .system-overture { margin-bottom: 80px; }
  .system-beats { gap: 80px; }
  .system-coda { margin-top: 100px; padding-top: 40px; }
}

/* ============================================================
   Margin Pull — inline curiosity teaser + WhatsApp CTA
   Placed mid-flow under interesting paragraphs to keep curiosity alive
   ============================================================ */
.margin-pull {
  max-width: 720px;
  margin: 56px auto 64px;
  padding: 32px 28px 28px;
  text-align: center;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.margin-pull::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 5px;
  height: 5px;
  background: rgba(196, 181, 253, 0.6);
}
.margin-pull::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 5px;
  height: 5px;
  background: rgba(196, 181, 253, 0.35);
}

.margin-pull-teaser {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 auto 22px;
  max-width: 580px;
}
.margin-pull-teaser em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
}

.margin-pull-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(196, 181, 253, 0.06);
  border: 1px solid rgba(196, 181, 253, 0.32);
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease, color 220ms ease;
  cursor: pointer;
}
.margin-pull-cta:hover,
.margin-pull-cta:focus-visible {
  background: rgba(196, 181, 253, 0.14);
  border-color: rgba(196, 181, 253, 0.65);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -10px rgba(167, 139, 250, 0.5);
  outline: none;
}
.margin-pull-wa-icon {
  width: 15px;
  height: 15px;
  color: rgba(167, 243, 208, 0.95);
  flex-shrink: 0;
}
.margin-pull-arrow {
  display: inline-block;
  transition: transform 220ms ease;
  opacity: 0.75;
}
.margin-pull-cta:hover .margin-pull-arrow,
.margin-pull-cta:focus-visible .margin-pull-arrow {
  transform: translateX(-4px);
  opacity: 1;
}

@media (max-width: 600px) {
  .margin-pull {
    padding: 28px 18px 24px;
    margin: 40px auto 48px;
  }
  .margin-pull-cta {
    padding: 11px 20px;
    font-size: 13px;
  }
}

/* ============================================================
   SYSTEM ESSAY — flowing editorial long-read replacing the 4 beats
   ============================================================ */

.system-essay {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 6vw 100px;
  position: relative;
}

.system-essay-head {
  text-align: center;
  margin-bottom: 56px;
}

.system-essay-eyebrow {
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 24px);
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

.system-essay-title {
  font-family: 'Frank Ruhl Libre', var(--font-serif, Georgia, serif);
  font-size: clamp(60px, 10vw, 128px);
  font-weight: 900;
  font-style: normal;
  font-synthesis: none;
  line-height: 1.25;
  margin: 0 0 24px;
  padding-bottom: 0.12em;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: -0.01em;
  overflow: visible;
}
.system-essay-title em {
  font-style: normal;
  font-weight: 900;
  font-synthesis: none;
  display: inline-block;
  padding-bottom: 0.08em;
  background: linear-gradient(135deg, #e9d5ff 0%, #c4b5fd 50%, #d8b4fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.system-essay-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 auto;
  max-width: 280px;
}
.system-essay-glyph .hr {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.system-essay-prose {
  font-family: 'Frank Ruhl Libre', var(--font-serif, Georgia, serif);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  text-align: right;
}

.system-essay-prose p {
  margin: 0 0 26px;
}

.system-essay-prose p:last-of-type {
  margin-bottom: 0;
}

.system-essay-prose strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
  background: linear-gradient(135deg, #e9d5ff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.essay-lede-open {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
  letter-spacing: -0.005em;
}

.system-essay-coda {
  margin-top: 40px !important;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: clamp(19px, 1.8vw, 24px);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}
.system-essay-coda em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-top: 6px;
}

.system-essay-cta-wrap {
  text-align: center;
  margin-top: 56px;
}

.system-essay-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  color: #1a0d2e;
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 50%, #c084fc 100%);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 36px -14px rgba(167, 139, 250, 0.6);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.system-essay-cta:hover,
.system-essay-cta:focus-visible {
  background: linear-gradient(135deg, #b4a3fb 0%, #9670f0 50%, #b574fa 100%);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -14px rgba(167, 139, 250, 0.78);
  outline: none;
}
.system-essay-cta-icon {
  width: 20px;
  height: 20px;
  color: #1a0d2e;
  flex-shrink: 0;
}
.system-essay-cta-arrow {
  font-size: 18px;
  transition: transform 220ms ease;
  display: inline-block;
}
.system-essay-cta:hover .system-essay-cta-arrow {
  transform: translateX(-4px);
}
.system-essay-cta-sub {
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin: 18px 0 0;
}

@media (max-width: 700px) {
  .system-essay { padding: 50px 6vw 80px; }
  .system-essay-head { margin-bottom: 40px; }
  .system-essay-prose { font-size: 17px; line-height: 1.72; }
  .system-essay-prose p { margin-bottom: 22px; }
  .system-essay-cta { padding: 16px 28px; font-size: 16px; }
}

/* ============================================================
   ANATOMY — 4-layer X-ray of an O&Y site (replaces old SERP story)
   ============================================================ */

.spread-panel-deck {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  margin: 18px 0 0;
  max-width: 380px;
  transition: opacity 400ms ease, transform 400ms ease;
}

.anatomy-layer {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.92);
}

/* ===== Layer 01 — DESIGN ===== */
.anatomy-design {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 24px;
  align-items: stretch;
}
.anatomy-mock-site {
  position: relative;
  background: linear-gradient(160deg, rgba(15, 12, 25, 0.65), rgba(28, 24, 45, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 28px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.anatomy-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 181, 253, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 181, 253, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}
.anatomy-mock-site > *:not(.anatomy-grid-overlay) {
  position: relative;
  z-index: 2;
}
.anatomy-mock-mast {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(196, 181, 253, 0.85);
  text-transform: uppercase;
}
.anatomy-mock-h1 {
  font-family: 'Frank Ruhl Libre', Georgia, serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  line-height: 1;
  margin: 0;
  color: #fff;
}
.anatomy-mock-h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #e9d5ff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.anatomy-mock-deck {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.5;
}
.anatomy-mock-btn {
  align-self: flex-start;
  padding: 9px 18px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: #1a0d2e;
  background: linear-gradient(135deg, #c4b5fd, #a78bfa);
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.anatomy-annot {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 18px;
}
.anatomy-annot li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.annot-key {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.annot-val {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

/* ===== Layer 02 — PERFORMANCE ===== */
.anatomy-perf {
  align-items: center;
  justify-content: center;
}
.anatomy-gauges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}
.anatomy-gauge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(167, 243, 208, 0.04), transparent 70%),
    rgba(255, 255, 255, 0.02);
  border: 2px solid rgba(167, 243, 208, 0.5);
  box-shadow: 0 0 0 1px rgba(167, 243, 208, 0.1), inset 0 0 24px rgba(167, 243, 208, 0.05);
}
.gauge-num {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  color: #a7f3d0;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.gauge-label {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}

/* ===== Layer 03 — SEO ===== */
.anatomy-seo { gap: 14px; }
.anatomy-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-sans);
  font-size: 13px;
}
.anatomy-serp {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.serp-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}
.serp-row-yours {
  background: linear-gradient(90deg, rgba(167, 243, 208, 0.06), rgba(196, 181, 253, 0.06));
  border-color: rgba(167, 243, 208, 0.45);
  box-shadow: 0 0 0 1px rgba(167, 243, 208, 0.12);
}
.serp-pos {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
}
.serp-row-yours .serp-pos { color: #a7f3d0; }
.serp-host {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}
.serp-title {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}
.serp-row-yours .serp-title { color: #d8b4fe; }
.serp-desc {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  line-height: 1.5;
}
.serp-badge {
  align-self: center;
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #1a0d2e;
  background: #a7f3d0;
  border-radius: 4px;
}

/* ===== Layer 04 — CONVERSION ===== */
.anatomy-conv {
  align-items: center;
  justify-content: center;
}
.anatomy-journey {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr;
  align-items: center;
  gap: 0;
  width: 100%;
}
.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.journey-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(196, 181, 253, 0.35);
  border: 2px solid rgba(196, 181, 253, 0.85);
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.1);
}
.journey-dot-win {
  background: #a7f3d0;
  border-color: #a7f3d0;
  animation: journeyWinPulse 1.8s ease-in-out infinite;
}
@keyframes journeyWinPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(167, 243, 208, 0.18), 0 0 18px rgba(167, 243, 208, 0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(167, 243, 208, 0.28), 0 0 24px rgba(167, 243, 208, 0.7); }
}
.journey-label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}
.journey-step-win .journey-label { color: #a7f3d0; }
.journey-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.journey-arrow {
  height: 1px;
  background: rgba(196, 181, 253, 0.4);
  position: relative;
}
.journey-arrow::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -3px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid rgba(196, 181, 253, 0.55);
}

/* ===== Shared bottom stat row ===== */
.anatomy-stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}
.anatomy-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.stat-big {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-unit {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-right: 2px;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-inline-start: 6px;
}
.anatomy-stat-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
}
.anatomy-stat-source {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.anatomy-stat-pill {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}
.anatomy-stat-pill-win {
  border-color: rgba(167, 243, 208, 0.5);
  color: #a7f3d0;
}

@media (max-width: 900px) {
  .anatomy-design { grid-template-columns: 1fr; }
  .anatomy-annot {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 0;
    padding-top: 14px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px 24px;
  }
  .anatomy-gauges { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .anatomy-journey { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 8px; }
  .journey-arrow { transform: rotate(90deg); width: 20px; justify-self: center; }
}


/* ============================================================
   SHOWROOM — kill the visible "panel" behind the work cards.
   Two layers were stacking on top of the global page background:
   (1) #showroom::before — a 4% bluish tint covering the section
   (2) .page::before / .page::after — the violet/blue corner orbs +
       top bloom that the .page wrapper applies to every chapter
   Both made the showroom look like a darker rounded container
   sitting on top of the natural site background. Removed here.
   ============================================================ */

#showroom::before {
  background: transparent !important;
  display: none !important;
}

.page:has(#showroom)::before,
.page:has(#showroom)::after {
  display: none !important;
}


/* ============================================================
   WARRANTY page wrapper — uniform background (no vertical seam).
   The .page wrapper that holds the warranty section was emitting
   the same decorative ::before bloom + ::after corner orbs as
   every other chapter, but combined with the warranty card's own
   ambient halo, the asymmetric placement (orb top-right + orb
   bottom-left) produced a visible vertical seam down the middle
   of the viewport. Kill the wrapper orbs for this page only.
   ============================================================ */

.page:has(.warranty-block)::before,
.page:has(.warranty-block)::after {
  display: none !important;
}


/* ============================================================
   CHAPTER ATMOSPHERE UPGRADE (2026-05-17)
   --------------------------------------------------------------
   Goal: keep the cinematic dark-cosmos base, but make every
   chapter feel like its own mood. The page no longer reads as
   one uniform slab — each section has a distinct hue rotating
   through the scroll, with soft gradient bridges between them
   so colors flow into one another instead of cutting.
   ============================================================ */

:root {
  /* Per-chapter signature hues (HSL hue, 0-360). */
  --hue-system:    260;  /* cool indigo violet — intellectual depth     */
  --hue-about:      30;  /* warm amber — human warmth, team intro       */
  --hue-story:     12;   /* dramatic red-orange — the pain peak         */
  --hue-pricing:   200;  /* clean sky blue — decisive, rational         */
  --hue-warranty:  165;  /* mint teal — promise, trust, calm            */
  --hue-tracks:    20;   /* soft coral — welcoming options              */
  --hue-process:   215;  /* slate blue — methodical, precise            */
  --hue-contact:   300;  /* magenta — action, energy                    */
}

/* Stronger per-chapter atmospheric tint */
#system::before,
#about::before,
#story::before,
#pricing::before,
.tracks-section::before,
#process::before,
#contact::before {
  background: transparent !important;
}

#system::before    { background: radial-gradient(ellipse 70% 80% at 50% 25%, hsla(var(--hue-system),   55%, 50%, 0.10), transparent 65%) !important; }
#about::before     { background: radial-gradient(ellipse 70% 80% at 50% 25%, hsla(var(--hue-about),    60%, 55%, 0.07), transparent 65%) !important; }
#story::before     { background: radial-gradient(ellipse 80% 80% at 50% 30%, hsla(var(--hue-story),    65%, 50%, 0.09), transparent 65%) !important; }
#pricing::before   { background: radial-gradient(ellipse 70% 80% at 50% 25%, hsla(var(--hue-pricing),  65%, 55%, 0.08), transparent 65%) !important; }
.tracks-section::before { background: radial-gradient(ellipse 70% 80% at 50% 25%, hsla(var(--hue-tracks), 70%, 60%, 0.07), transparent 65%) !important; }
#process::before   { background: radial-gradient(ellipse 70% 80% at 50% 25%, hsla(var(--hue-process),  55%, 50%, 0.06), transparent 65%) !important; }
#contact::before   { background: radial-gradient(ellipse 70% 80% at 50% 25%, hsla(var(--hue-contact),  55%, 55%, 0.08), transparent 65%) !important; }

/* Inter-chapter color bridges */
#system, #about, #story, #pricing, .tracks-section, #process, #contact {
  position: relative;
}

#system::after,
#about::after,
#story::after,
#pricing::after,
.tracks-section::after,
#process::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 240px;
  pointer-events: none;
  z-index: 0;
}

#system::after        { background: linear-gradient(180deg, transparent, hsla(220, 60%, 40%, 0.05)); }
#about::after         { background: linear-gradient(180deg, transparent, hsla(var(--hue-story),   60%, 35%, 0.07)); }
#story::after         { background: linear-gradient(180deg, transparent, hsla(var(--hue-pricing), 60%, 40%, 0.06)); }
#pricing::after       { background: linear-gradient(180deg, transparent, hsla(var(--hue-warranty),50%, 35%, 0.06)); }
.tracks-section::after{ background: linear-gradient(180deg, transparent, hsla(var(--hue-process), 55%, 40%, 0.05)); }
#process::after       { background: linear-gradient(180deg, transparent, hsla(var(--hue-contact), 55%, 45%, 0.06)); }

#system > *, #about > *, #story > *, #pricing > *,
.tracks-section > *, #process > *, #contact > * {
  position: relative;
  z-index: 1;
}

/* № X/10 counter — picks up chapter accent */
#system   .ed-masthead-counter { color: hsl(var(--hue-system),   70%, 78%); text-shadow: 0 0 14px hsla(var(--hue-system),   70%, 55%, 0.45); }
#story    .ed-masthead-counter { color: hsl(var(--hue-story),    80%, 72%); text-shadow: 0 0 14px hsla(var(--hue-story),    75%, 55%, 0.45); }
#pricing  .ed-masthead-counter { color: hsl(var(--hue-pricing),  78%, 78%); text-shadow: 0 0 14px hsla(var(--hue-pricing),  70%, 55%, 0.45); }
.tracks-section .ed-masthead-counter { color: hsl(var(--hue-tracks), 78%, 75%); text-shadow: 0 0 14px hsla(var(--hue-tracks), 70%, 55%, 0.45); }
#process  .ed-masthead-counter { color: hsl(var(--hue-process),  70%, 78%); text-shadow: 0 0 14px hsla(var(--hue-process),  60%, 55%, 0.4);  }
#contact  .ed-masthead-counter { color: hsl(var(--hue-contact),  65%, 78%); text-shadow: 0 0 14px hsla(var(--hue-contact),  60%, 55%, 0.4);  }

/* Per-chapter `em` accent gradient inside titles */
#system h2 em,
#system .system-essay-title em {
  background: linear-gradient(135deg, hsl(var(--hue-system), 75%, 80%), hsl(var(--hue-system), 65%, 60%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#story h2 em,
#story .story-title em {
  background: linear-gradient(135deg, hsl(var(--hue-story), 80%, 72%), hsl(var(--hue-story), 70%, 50%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#pricing h2 em {
  background: linear-gradient(135deg, hsl(var(--hue-pricing), 80%, 80%), hsl(var(--hue-pricing), 70%, 60%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tracks-section h2 em {
  background: linear-gradient(135deg, hsl(var(--hue-tracks), 85%, 78%), hsl(var(--hue-tracks), 75%, 58%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#process h2 em {
  background: linear-gradient(135deg, hsl(var(--hue-process), 75%, 78%), hsl(var(--hue-process), 65%, 55%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Vary the .page corner orbs per chapter */
#story.page::before  { background: radial-gradient(circle, hsla(var(--hue-story),   70%, 50%, 0.45), transparent 70%) !important; }
#story.page::after   { background: radial-gradient(circle, hsla(var(--hue-story),   60%, 45%, 0.35), transparent 70%) !important; }
#pricing.page::before { background: radial-gradient(circle, hsla(var(--hue-pricing), 70%, 55%, 0.45), transparent 70%) !important; }
#pricing.page::after  { background: radial-gradient(circle, hsla(var(--hue-pricing), 65%, 50%, 0.35), transparent 70%) !important; }
#process.page::before { background: radial-gradient(circle, hsla(var(--hue-process), 60%, 50%, 0.4), transparent 70%) !important; }
#process.page::after  { background: radial-gradient(circle, hsla(var(--hue-process), 55%, 45%, 0.3), transparent 70%) !important; }

/* Subtle global film grain — SVG fractal noise overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
}
