/* ==========================================================================
   Bazalgette — Design B (Evergreen Roofing of Oregon)
   Slot scope: [data-design="b"]
   All selectors under .dq-design[data-design="b"] or [data-design="b"] .class
   ========================================================================== */

/* ─── Design token map ───────────────────────────────────────────────────── */
[data-design="b"] {
  --design-b-primary:    #1d2848;   /* Victorian Prussian indigo */
  --bz-vellum:           #f3ead4;
  --bz-brick:            #c4a062;
  --bz-iron:             #1c2528;
  --bz-indigo:           #1d2848;
  --bz-glaze:            #245c5e;
  --bz-brass:            #8b6a2f;
  --bz-rule:             #c8b88a;
  --bz-muted:            #6b6557;
  --bz-critical:         #a82e1e;
  --bz-success:          #4a6b3a;
  --bz-course:           6px;
  --bz-row:              12px;
  --bz-band:             24px;
  --bz-bay:              48px;
  --bz-vault:            96px;
  --bz-nave:             144px;
  --bz-ease-engine:      cubic-bezier(0.4, 0, 0.2, 1);
  --bz-ease-inscribe:    cubic-bezier(0.65, 0, 0.35, 1);
  --bz-ease-settle:      cubic-bezier(0.16, 1, 0.3, 1);
  --bz-pulse:            4600ms;
  --bz-inscribe:         1400ms;
  --bz-settle:           280ms;
  --bz-fast:             140ms;
  --bz-radius-0:         0px;
  --bz-radius-1:         2px;
  --bz-radius-cartouche: 4px;
}

/* ─── Base reset (scoped) ────────────────────────────────────────────────── */
.dq-design[data-design="b"] {
  font-family: 'Source Serif Pro', 'Charter', Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--bz-iron);
  background: var(--bz-vellum);
  margin: 0;
  padding: 0;
}

.dq-design[data-design="b"] *,
.dq-design[data-design="b"] *::before,
.dq-design[data-design="b"] *::after {
  box-sizing: border-box;
}

.dq-design[data-design="b"] p { margin: 0 0 var(--bz-band); }
.dq-design[data-design="b"] p:last-child { margin-bottom: 0; }

/* ─── ELEMENT 1 — Animated minimalist header ─────────────────────────────── */
[data-design="b"] .bz-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bz-vellum);
  border-bottom: 1px solid var(--bz-rule);
  overflow: hidden;
  isolation: isolate;
}

[data-design="b"] .bz-header__sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in oklab, var(--bz-brass), transparent 88%) 40%,
    color-mix(in oklab, var(--bz-brass), transparent 60%) 50%,
    color-mix(in oklab, var(--bz-brass), transparent 88%) 60%,
    transparent 100%);
  background-size: 220% 100%;
  animation: b-header-sweep 26s linear infinite;
  pointer-events: none;
  z-index: 0;
}

[data-design="b"] .bz-header__crosshatch {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      color-mix(in oklab, var(--bz-rule), transparent 75%) 0 1px,
      transparent 1px 11px),
    repeating-linear-gradient(-45deg,
      color-mix(in oklab, var(--bz-rule), transparent 80%) 0 1px,
      transparent 1px 14px);
  opacity: 0.4;
  animation: b-header-breathe 19s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

[data-design="b"] .bz-header__bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 22px) clamp(16px, 4vw, 40px);
  gap: 16px;
}

[data-design="b"] .bz-logo {
  text-decoration: none;
  color: var(--bz-iron);
}

[data-design="b"] .bz-logo__mark {
  font-family: 'Cormorant SC', 'Trajan Pro', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: clamp(16px, 2.2vw, 24px);
  text-transform: uppercase;
}

[data-design="b"] .bz-hamburger {
  background: transparent;
  border: 1px solid var(--bz-rule);
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border-radius: var(--bz-radius-1);
  transition: border-color var(--bz-fast) var(--bz-ease-settle);
  flex-shrink: 0;
}

[data-design="b"] .bz-hamburger:hover,
[data-design="b"] .bz-hamburger:focus-visible {
  border-color: var(--bz-brass);
  outline: none;
}

[data-design="b"] .bz-hamburger__rule {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--bz-iron);
}

/* Drawer */
[data-design="b"] .bz-drawer[hidden] { display: none; }

[data-design="b"] .bz-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: color-mix(in oklab, var(--bz-iron), transparent 30%);
  display: flex;
  justify-content: flex-end;
}

[data-design="b"] .bz-drawer__plate {
  background: var(--bz-vellum);
  width: min(420px, 88vw);
  height: 100%;
  padding: 48px 32px;
  border-left: 1px solid var(--bz-rule);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  animation: b-drawer-tip-in 320ms var(--bz-ease-settle) forwards;
}

[data-design="b"] .bz-drawer__eyebrow {
  font-family: 'Cormorant SC', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--bz-muted);
}

[data-design="b"] .bz-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

[data-design="b"] .bz-drawer__link {
  font-family: 'Cormorant SC', Georgia, serif;
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bz-iron);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bz-rule);
}

[data-design="b"] .bz-drawer__link:hover { color: var(--bz-indigo); border-bottom-color: var(--bz-brass); }

[data-design="b"] .bz-drawer__num {
  font-family: ui-monospace, monospace;
  font-size: 14px;
  color: var(--bz-brass);
  min-width: 28px;
}

[data-design="b"] .bz-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-design="b"] .bz-drawer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 48px;
}

[data-design="b"] .bz-drawer__phone {
  font-family: ui-monospace, monospace;
  font-size: 16px;
  color: var(--bz-iron);
  text-decoration: none;
  padding: 10px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

[data-design="b"] .bz-drawer__phone--toll {
  font-size: 14px;
  color: var(--bz-muted);
}

[data-design="b"] .bz-drawer__phone:hover { color: var(--bz-indigo); }

[data-design="b"] .bz-drawer__close {
  margin-top: auto;
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--bz-rule);
  padding: 10px 18px;
  cursor: pointer;
  font-family: 'Cormorant SC', Georgia, serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--bz-iron);
  min-height: 44px;
}

[data-design="b"] .bz-drawer__close:hover { border-color: var(--bz-brass); }

/* ─── HERO SECTION — E3 backdrop + E2 dual CTA ───────────────────────────── */
[data-design="b"] .bz-hero {
  position: relative;
  min-height: clamp(400px, 70vh, 700px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--bz-vellum);
}

/* Backdrop — z-index 0, pointer-events none, below text */
[data-design="b"] .bz-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

[data-design="b"] .bz-hero__svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  color: var(--bz-iron);
}

/* Ambient colour-wash — visible field sustaining motion at rest */
[data-design="b"] .bz-hero__wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 35%,
    color-mix(in oklab, var(--bz-indigo), transparent 82%) 0%,
    color-mix(in oklab, var(--bz-glaze), transparent 91%) 45%,
    transparent 100%
  );
  animation: b-hero-wash 7s var(--bz-ease-engine) infinite;
  opacity: 0.55;
}

/* Hero course-band arrivals */
[data-design="b"] .bz-course-band {
  animation: b-course-fade 0.9s var(--bz-ease-settle) forwards;
  animation-play-state: paused;
}

[data-design="b"] .bz-hero.is-loaded .bz-course-band { animation-play-state: running; }

[data-design="b"] .bz-courses-left .bz-course-band:nth-child(1) { animation-delay: 0.1s; }
[data-design="b"] .bz-courses-left .bz-course-band:nth-child(2) { animation-delay: 0.25s; }
[data-design="b"] .bz-courses-left .bz-course-band:nth-child(3) { animation-delay: 0.4s; }
[data-design="b"] .bz-courses-left .bz-course-band:nth-child(4) { animation-delay: 0.55s; }
[data-design="b"] .bz-courses-left .bz-course-band:nth-child(5) { animation-delay: 0.7s; }
[data-design="b"] .bz-courses-left .bz-course-band:nth-child(6) { animation-delay: 0.85s; }
[data-design="b"] .bz-courses-left .bz-course-band:nth-child(7) { animation-delay: 1.0s; }
[data-design="b"] .bz-courses-left .bz-course-band:nth-child(8) { animation-delay: 1.15s; }

[data-design="b"] .bz-courses-right .bz-course-band:nth-child(1) { animation-delay: 0.15s; }
[data-design="b"] .bz-courses-right .bz-course-band:nth-child(2) { animation-delay: 0.3s; }
[data-design="b"] .bz-courses-right .bz-course-band:nth-child(3) { animation-delay: 0.45s; }
[data-design="b"] .bz-courses-right .bz-course-band:nth-child(4) { animation-delay: 0.6s; }
[data-design="b"] .bz-courses-right .bz-course-band:nth-child(5) { animation-delay: 0.75s; }
[data-design="b"] .bz-courses-right .bz-course-band:nth-child(6) { animation-delay: 0.9s; }
[data-design="b"] .bz-courses-right .bz-course-band:nth-child(7) { animation-delay: 1.05s; }
[data-design="b"] .bz-courses-right .bz-course-band:nth-child(8) { animation-delay: 1.2s; }

[data-design="b"] .bz-ridge {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: b-ridge-draw 1.8s var(--bz-ease-inscribe) 0.2s forwards;
}

/* Hero body — position:relative + z-index above backdrop */
[data-design="b"] .bz-hero__body {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(64px, 10vh, 120px) clamp(20px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: var(--bz-band);
  width: 100%;
  text-align: left;
}

[data-design="b"] .bz-hero__eyebrow {
  font-family: 'Cormorant SC', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--bz-brass);
  /* opacity:1 at first paint — NEVER opacity:0 */
  opacity: 1;
}

[data-design="b"] .bz-hero__headline {
  font-family: 'Cormorant SC', 'Trajan Pro', Georgia, serif;
  font-size: clamp(32px, 5.5vw, 72px);
  line-height: 1.08;
  letter-spacing: 0.03em;
  color: var(--bz-iron);
  margin: 0;
  /* opacity:1 at first paint */
  opacity: 1;
}

[data-design="b"] .bz-hero__subtitle {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: var(--bz-iron);
  margin: 0;
  max-width: 60ch;
  opacity: 1;
}

[data-design="b"] .bz-hero__proof {
  font-family: ui-monospace, monospace;
  font-size: clamp(12px, 1.2vw, 14px);
  color: var(--bz-muted);
  letter-spacing: 0.04em;
  margin: 0;
  opacity: 1;
}

[data-design="b"] .bz-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bz-row);
  align-items: center;
  opacity: 1;
}

/* ─── ELEMENT 2 — Animated CTA (brass cartouche) ─────────────────────────── */
[data-design="b"] .bz-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-radius: var(--bz-radius-cartouche);
  background: var(--bz-indigo);
  color: var(--bz-vellum);
  font-family: 'Cormorant SC', 'Trajan Pro', Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 220ms var(--bz-ease-settle),
    background 200ms ease;
  will-change: transform;
  min-height: 52px;
  border: none;
}

[data-design="b"] .bz-cta--secondary {
  background: var(--bz-vellum);
  color: var(--bz-iron);
  border: 1px solid var(--bz-rule);
  font-size: 15px;
}

[data-design="b"] .bz-cta--secondary:hover {
  border-color: var(--bz-brass);
}

[data-design="b"] .bz-cta--sm {
  font-size: 13px;
  padding: 12px 20px;
  min-height: 44px;
}

[data-design="b"] .bz-cta__inset {
  position: absolute;
  inset: 4px;
  pointer-events: none;
  border: 1px solid var(--bz-brass);
  border-radius: 2px;
  animation: b-cta-pulse var(--bz-pulse) var(--bz-ease-engine) infinite;
}

[data-design="b"] .bz-cta--secondary .bz-cta__inset { display: none; }

[data-design="b"] .bz-cta__arrow {
  display: inline-flex;
  transition: transform 220ms var(--bz-ease-settle);
  flex-shrink: 0;
}

[data-design="b"] .bz-cta:hover .bz-cta__arrow,
[data-design="b"] .bz-cta:focus-visible .bz-cta__arrow { transform: translateX(4px); }

[data-design="b"] .bz-cta:hover .bz-cta__inset,
[data-design="b"] .bz-cta:focus-visible .bz-cta__inset {
  border-color: color-mix(in oklab, var(--bz-brass), white 25%);
  animation-duration: 2400ms;
}

[data-design="b"] .bz-cta:focus-visible {
  outline: 2px solid var(--bz-brass);
  outline-offset: 4px;
}

[data-design="b"] .bz-cta:active { transform: translateY(2px) scale(0.99); }

[data-design="b"] .bz-cta__ink {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--ink-x, 50%) var(--ink-y, 50%),
    color-mix(in oklab, var(--bz-vellum), transparent 70%) 0%, transparent 60%);
  opacity: 0;
}

[data-design="b"] .bz-cta.bz-stamping .bz-cta__ink {
  animation: b-cta-ink 480ms var(--bz-ease-settle) 1;
}

/* ─── ELEMENT 6 — Pointer (MUST be last thing before #funnel) ────────────── */
[data-design="b"] .bz-pointer {
  display: flex;
  justify-content: center;
  padding: clamp(40px, 8vw, 80px) 16px clamp(56px, 10vw, 96px);
  /* Pointer is visible — opacity:1, bbox height > 8px enforced by padding+content */
}

[data-design="b"] .bz-pointer__hit {
  position: relative;
  display: inline-block;
  width: 2px;
  height: 96px;
  text-decoration: none;
  /* Pointer is NOT a button — wayfinding visual only */
}

[data-design="b"] .bz-pointer__pipe {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    color-mix(in oklab, var(--bz-brass), transparent 60%) 0%,
    var(--bz-brass) 100%);
  transform-origin: top center;
  animation: b-pointer-fill 5s ease-in-out infinite;
  opacity: 0.75;
}

[data-design="b"] .bz-pointer__drop {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: var(--bz-brass);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: translateY(-72px) scale(0.4);
  opacity: 0;
  animation: b-pointer-drip 5s ease-in infinite;
}

/* ─── ELEMENT 5 — Funnel (Job Ticket — 5-step) ───────────────────────────── */
[data-design="b"] .bz-ticket {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 96px) clamp(16px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

[data-design="b"] .bz-ticket__head { display: flex; flex-direction: column; gap: 10px; }

[data-design="b"] .bz-ticket__eyebrow,
[data-design="b"] .bz-section__eyebrow,
[data-design="b"] .bz-section-eyebrow,
[data-design="b"] .bz-engine__eyebrow {
  font-family: 'Cormorant SC', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--bz-brass);
}

[data-design="b"] .bz-ticket__title,
[data-design="b"] .bz-section__title,
[data-design="b"] .bz-section-title,
[data-design="b"] .bz-engine__title {
  font-family: 'Cormorant SC', 'Trajan Pro', Georgia, serif;
  font-size: clamp(28px, 3.8vw, 44px);
  letter-spacing: 0.04em;
  line-height: 1.08;
  color: var(--bz-iron);
  margin: 0;
}

[data-design="b"] .bz-ticket__lede,
[data-design="b"] .bz-section__lede,
[data-design="b"] .bz-section-lede {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--bz-iron);
  margin: 0;
  max-width: 66ch;
}

/* Progress pips */
[data-design="b"] .bz-ticket__progress {
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 0 0 14px;
  margin: 0;
  border-bottom: 1px solid var(--bz-rule);
}

[data-design="b"] .bz-ticket__pip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--bz-rule);
  border-radius: 2px;
  color: var(--bz-muted);
  background: var(--bz-vellum);
  transition: border-color 200ms, color 200ms, background 200ms;
}

[data-design="b"] .bz-ticket__pip.is-active {
  border-color: var(--bz-brass);
  color: var(--bz-iron);
}

[data-design="b"] .bz-ticket__pip.is-done {
  background: var(--bz-indigo);
  color: var(--bz-vellum);
  border-color: var(--bz-indigo);
}

/* Form + folios */
[data-design="b"] .bz-ticket__form {
  border: 1px solid var(--bz-rule);
  padding: clamp(20px, 3vw, 36px);
  background: var(--bz-vellum);
}

[data-design="b"] .bz-folio { border: 0; padding: 0; margin: 0; }
[data-design="b"] .bz-folio[hidden] { display: none; }

[data-design="b"] .bz-folio.is-active {
  animation: b-folio-in 320ms var(--bz-ease-settle) forwards;
}

[data-design="b"] .bz-folio__legend {
  font-family: 'Cormorant SC', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 18px;
  color: var(--bz-iron);
  margin-bottom: 18px;
  padding: 0;
  display: block;
  width: 100%;
}

[data-design="b"] .bz-folio__choices {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

[data-design="b"] .bz-folio__note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--bz-muted);
  border-left: 2px solid var(--bz-brass);
  padding-left: 12px;
}

[data-design="b"] .bz-folio__note[hidden] { display: none; }

[data-design="b"] .bz-link {
  color: var(--bz-indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
}

[data-design="b"] .bz-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--bz-rule);
  padding: 14px 16px;
  cursor: pointer;
  background: var(--bz-vellum);
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 16px;
  color: var(--bz-iron);
  transition: border-color 80ms ease, background 80ms ease;
  min-height: 52px;
}

[data-design="b"] .bz-choice input { accent-color: var(--bz-indigo); }
[data-design="b"] .bz-choice:hover { border-color: var(--bz-brass); }

[data-design="b"] .bz-choice:has(input:checked) {
  border-color: var(--bz-indigo);
  background: color-mix(in oklab, var(--bz-indigo), var(--bz-vellum) 92%);
}

/* Form fields */
[data-design="b"] .bz-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

[data-design="b"] .bz-field__label {
  font-family: 'Cormorant SC', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--bz-muted);
}

[data-design="b"] .bz-field__req {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

[data-design="b"] .bz-field input,
[data-design="b"] .bz-field textarea {
  border: 0;
  border-bottom: 1px solid var(--bz-rule);
  background: transparent;
  padding: 8px 0;
  font-size: 17px;
  font-family: 'Source Serif Pro', Georgia, serif;
  color: var(--bz-iron);
  outline: none;
  transition: border-color 200ms;
  resize: vertical;
  width: 100%;
}

[data-design="b"] .bz-field input:focus,
[data-design="b"] .bz-field textarea:focus {
  border-bottom: 2px solid var(--bz-glaze);
}

/* Summary */
[data-design="b"] .bz-summary {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 16px;
  border-left: 2px solid var(--bz-brass);
  padding: 8px 16px;
  color: var(--bz-iron);
}

[data-design="b"] .bz-summary dl { margin: 0; display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; }
[data-design="b"] .bz-summary dt {
  font-family: 'Cormorant SC', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--bz-muted);
}
[data-design="b"] .bz-summary dd { margin: 0; }

/* Nav buttons */
[data-design="b"] .bz-ticket__nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

[data-design="b"] .bz-stamp {
  font-family: 'Cormorant SC', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 14px;
  padding: 12px 26px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 160ms ease, transform 80ms ease;
  min-height: 48px;
}

[data-design="b"] .bz-stamp--primary {
  background: var(--bz-indigo);
  color: var(--bz-vellum);
  border: 1px solid var(--bz-indigo);
}

[data-design="b"] .bz-stamp--primary:hover {
  background: color-mix(in oklab, var(--bz-indigo), black 10%);
}

[data-design="b"] .bz-stamp--primary:active { transform: translateY(1px); }

[data-design="b"] .bz-stamp--secondary {
  background: var(--bz-vellum);
  color: var(--bz-iron);
  border: 1px solid var(--bz-rule);
}

[data-design="b"] .bz-stamp--secondary:hover { border-color: var(--bz-brass); }

/* Receipt */
[data-design="b"] .bz-ticket__receipt[hidden] { display: none; }

[data-design="b"] .bz-ticket__receipt {
  border: 1px solid var(--bz-brass);
  padding: clamp(20px, 3vw, 36px);
  background: var(--bz-vellum);
  animation: b-receipt-stamp 460ms var(--bz-ease-settle) forwards;
  text-align: center;
}

[data-design="b"] .bz-cartouche-final {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 32px;
  border: 1.5px solid var(--bz-brass);
  background: color-mix(in oklab, var(--bz-brass), var(--bz-vellum) 88%);
  border-radius: 3px;
}

[data-design="b"] .bz-cartouche-final__eyebrow {
  font-family: 'Cormorant SC', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  color: var(--bz-brass);
}

[data-design="b"] .bz-cartouche-final__no {
  font-family: ui-monospace, monospace;
  font-size: 14px;
  color: var(--bz-iron);
}

[data-design="b"] .bz-ticket__thanks {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 17px;
  color: var(--bz-iron);
  margin-top: 20px;
}

/* Funnel footer */
[data-design="b"] .bz-ticket__footer {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--bz-muted);
  padding-top: 16px;
  border-top: 1px solid var(--bz-rule);
}

/* ─── SERVICES — Roman index ─────────────────────────────────────────────── */
[data-design="b"] .bz-services {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 96px) clamp(16px, 4vw, 40px);
}

[data-design="b"] .bz-section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(32px, 5vw, 56px);
  max-width: 64ch;
}

[data-design="b"] .bz-roman-index {
  list-style: none;
  padding: 0;
  margin: 0;
}

[data-design="b"] .bz-roman-row {
  display: grid;
  grid-template-columns: 48px 1fr 1fr;
  gap: 0 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--bz-rule);
}

[data-design="b"] .bz-roman-row__num {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--bz-brass);
}

[data-design="b"] .bz-roman-row__name {
  font-family: 'Roboto Slab', 'Rockwell', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--bz-iron);
}

[data-design="b"] .bz-roman-row__desc {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 16px;
  color: var(--bz-muted);
  line-height: 1.5;
}

/* ─── ELEMENT 4 — Sectional Plate (roof cross-section) ───────────────────── */
[data-design="b"] .bz-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 96px) clamp(16px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

[data-design="b"] .bz-section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 64ch;
}

[data-design="b"] .bz-section__plate {
  border: 1px solid var(--bz-rule);
  background: var(--bz-vellum);
  padding: clamp(16px, 3vw, 28px);
  color: var(--bz-iron);
}

[data-design="b"] .bz-section__svg { width: 100%; height: auto; display: block; }
[data-design="b"] .bz-section__legend {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--bz-muted);
}

/* SVG line-draw animation */
[data-design="b"] .bz-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

[data-design="b"] .bz-callout { opacity: 0; }

[data-design="b"] .bz-section.is-drawn .bz-line {
  animation: b-inscribe var(--bz-inscribe) var(--bz-ease-inscribe) forwards;
}

[data-design="b"] .bz-section.is-drawn .bz-line:nth-of-type(2)  { animation-delay: 200ms; }
[data-design="b"] .bz-section.is-drawn .bz-line:nth-of-type(3)  { animation-delay: 380ms; }
[data-design="b"] .bz-section.is-drawn .bz-line:nth-of-type(4)  { animation-delay: 560ms; }
[data-design="b"] .bz-section.is-drawn .bz-line:nth-of-type(5)  { animation-delay: 740ms; }
[data-design="b"] .bz-section.is-drawn .bz-line:nth-of-type(6)  { animation-delay: 920ms; }
[data-design="b"] .bz-section.is-drawn .bz-line:nth-of-type(7)  { animation-delay: 1100ms; }
[data-design="b"] .bz-section.is-drawn .bz-line:nth-of-type(8)  { animation-delay: 1280ms; }
[data-design="b"] .bz-section.is-drawn .bz-line:nth-of-type(9)  { animation-delay: 1400ms; }
[data-design="b"] .bz-section.is-drawn .bz-line:nth-of-type(10) { animation-delay: 1500ms; }
[data-design="b"] .bz-section.is-drawn .bz-line:nth-of-type(11) { animation-delay: 1600ms; }
[data-design="b"] .bz-section.is-drawn .bz-line:nth-of-type(12) { animation-delay: 1700ms; }
[data-design="b"] .bz-section.is-drawn .bz-line:nth-of-type(13) { animation-delay: 1800ms; }
[data-design="b"] .bz-section.is-drawn .bz-line:nth-of-type(14) { animation-delay: 1900ms; }
[data-design="b"] .bz-section.is-drawn .bz-callout {
  animation: b-callout-pop 380ms var(--bz-ease-settle) forwards;
}
[data-design="b"] .bz-section.is-drawn .bz-callout:nth-of-type(1) { animation-delay: 2100ms; }
[data-design="b"] .bz-section.is-drawn .bz-callout:nth-of-type(2) { animation-delay: 2260ms; }
[data-design="b"] .bz-section.is-drawn .bz-callout:nth-of-type(3) { animation-delay: 2420ms; }

/* Portfolio grid */
[data-design="b"] .bz-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

[data-design="b"] .bz-specimen {
  margin: 0;
  border: 1px solid var(--bz-rule);
  background: var(--bz-vellum);
  overflow: hidden;
}

[data-design="b"] .bz-specimen__img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

[data-design="b"] .bz-specimen__caption {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[data-design="b"] .bz-specimen__label {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--bz-iron);
}

[data-design="b"] .bz-specimen__desc {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 14px;
  color: var(--bz-muted);
  line-height: 1.5;
}

/* Repeat CTA */
[data-design="b"] .bz-repeat-cta {
  display: flex;
  justify-content: flex-start;
  padding-top: 16px;
}

/* ─── ELEMENT 3 (mid-page) — Beam Engine (roof truss) ───────────────────── */
[data-design="b"] .bz-engine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(64px, 8vw, 96px) clamp(16px, 4vw, 40px);
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  background: color-mix(in oklab, var(--bz-indigo), var(--bz-vellum) 96%);
  border-top: 1px solid var(--bz-rule);
  border-bottom: 1px solid var(--bz-rule);
}

[data-design="b"] .bz-engine__copy { display: flex; flex-direction: column; gap: 16px; }

[data-design="b"] .bz-engine__body {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--bz-iron);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

[data-design="b"] .bz-engine__plate {
  border: 1px solid var(--bz-rule);
  background: var(--bz-vellum);
  padding: 16px;
  color: var(--bz-iron);
}

[data-design="b"] .bz-engine__svg { width: 100%; height: auto; display: block; }

/* Truss beam animation — rocks slightly on the pulse cycle */
[data-design="b"] .bz-engine__beam {
  transform-origin: 200px 150px;
  animation: b-beam-rock var(--bz-pulse) var(--bz-ease-engine) infinite;
}

/* Ridge marker — slow breathe */
[data-design="b"] .bz-engine__wheel {
  animation: b-ridge-breathe var(--bz-pulse) var(--bz-ease-engine) infinite;
}

/* Water gauge — rises/falls */
[data-design="b"] .bz-engine__water {
  animation: b-beam-water var(--bz-pulse) var(--bz-ease-engine) infinite;
}

[data-design="b"] .bz-engine.is-paused .bz-engine__beam,
[data-design="b"] .bz-engine.is-paused .bz-engine__water,
[data-design="b"] .bz-engine.is-paused .bz-engine__wheel {
  animation-play-state: paused;
}

/* Cartouche badges */
[data-design="b"] .bz-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

[data-design="b"] .bz-cartouche {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--bz-brass);
  background: color-mix(in oklab, var(--bz-brass), var(--bz-vellum) 92%);
  border-radius: 2px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--bz-iron);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
[data-design="b"] .bz-footer {
  background: var(--bz-vellum);
  border-top: 1px solid var(--bz-rule);
}

[data-design="b"] .bz-footer__rule {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--bz-brick) 0px 6px,
    var(--bz-vellum) 6px 12px
  );
  opacity: 0.5;
}

[data-design="b"] .bz-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 32px 48px;
  align-items: start;
}

[data-design="b"] .bz-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

[data-design="b"] .bz-footer__tagline {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 14px;
  color: var(--bz-muted);
  line-height: 1.5;
  max-width: 28ch;
}

[data-design="b"] .bz-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-design="b"] .bz-footer__link {
  font-family: 'Cormorant SC', Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bz-iron);
  text-decoration: none;
}

[data-design="b"] .bz-footer__link:hover { color: var(--bz-indigo); }

[data-design="b"] .bz-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-style: normal;
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 14px;
  color: var(--bz-muted);
}

[data-design="b"] .bz-footer__phone,
[data-design="b"] .bz-footer__email {
  font-family: ui-monospace, monospace;
  font-size: 14px;
  color: var(--bz-iron);
  text-decoration: none;
}

[data-design="b"] .bz-footer__phone:hover,
[data-design="b"] .bz-footer__email:hover { color: var(--bz-indigo); }

[data-design="b"] .bz-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

[data-design="b"] .bz-footer__meta > span {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--bz-muted);
}

[data-design="b"] .bz-footer__copy {
  border-top: 1px solid var(--bz-rule);
  padding: 16px clamp(16px, 4vw, 40px);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--bz-muted);
  text-align: center;
}

/* ─── KEYFRAMES ──────────────────────────────────────────────────────────── */
@keyframes b-header-sweep {
  from { background-position: -110% 0; }
  to   { background-position:  110% 0; }
}

@keyframes b-header-breathe {
  0%, 100% { opacity: 0.28; }
  50%      { opacity: 0.46; }
}

@keyframes b-drawer-tip-in {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* Hero course-band arrive */
@keyframes b-course-fade {
  from { opacity: 0; }
  to   { opacity: 0.07; }
}

/* Ridge draw */
@keyframes b-ridge-draw {
  to { stroke-dashoffset: 0; }
}

/* Hero ambient wash — sustains perceptible motion at rest */
@keyframes b-hero-wash {
  0%, 100% { opacity: 0.38; transform: scale(1); }
  50%      { opacity: 0.62; transform: scale(1.04); }
}

/* CTA pulse */
@keyframes b-cta-pulse {
  0%, 100% { transform: scale(1);     opacity: 0.8; }
  50%      { transform: scale(1.012); opacity: 1;   }
}

@keyframes b-cta-ink {
  0%   { opacity: 0.8; transform: scale(0.4); }
  100% { opacity: 0;   transform: scale(2.2); }
}

/* Pointer */
@keyframes b-pointer-fill {
  0%, 100% { transform: scaleY(0.4); opacity: 0.45; }
  60%      { transform: scaleY(1);   opacity: 0.9;  }
}

@keyframes b-pointer-drip {
  0%, 55%  { transform: translateY(-72px) scale(0.4); opacity: 0; }
  70%      { transform: translateY(-72px) scale(1);   opacity: 1; }
  92%      { transform: translateY(0)     scale(1);   opacity: 1; }
  100%     { transform: translateY(0)     scale(0.2); opacity: 0; }
}

/* Sectional plate inscribe */
@keyframes b-inscribe {
  to { stroke-dashoffset: 0; }
}

@keyframes b-callout-pop {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* Beam Engine (roof truss) */
@keyframes b-beam-rock {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg);  }
}

@keyframes b-ridge-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1);    }
  50%      { opacity: 1;   transform: scale(1.2);  }
}

@keyframes b-beam-water {
  0%, 100% { height: 78px; y: 160; }
  50%      { height: 118px; y: 120; }
}

/* Funnel */
@keyframes b-folio-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

@keyframes b-receipt-stamp {
  0%   { opacity: 0; transform: scale(0.96); }
  60%  { opacity: 1; transform: scale(1.01); }
  100% { opacity: 1; transform: scale(1);    }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  [data-design="b"] .bz-portfolio-grid { grid-template-columns: 1fr; }
  [data-design="b"] .bz-footer__inner  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  [data-design="b"] .bz-engine  { grid-template-columns: 1fr; }
  [data-design="b"] .bz-roman-row { grid-template-columns: 40px 1fr; }
  [data-design="b"] .bz-roman-row__desc { grid-column: 2; }
}

@media (max-width: 560px) {
  [data-design="b"] .bz-folio__choices { grid-template-columns: 1fr; }
  [data-design="b"] .bz-summary dl     { grid-template-columns: 1fr; }
  [data-design="b"] .bz-footer__inner  { grid-template-columns: 1fr; }
  [data-design="b"] .bz-drawer__link   { font-size: 22px; }
  [data-design="b"] .bz-logo__mark     { font-size: 16px; letter-spacing: 0.12em; }
  [data-design="b"] .bz-hero__ctas     { flex-direction: column; align-items: flex-start; }
}

/* ─── PREFERS-REDUCED-MOTION ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-design="b"] .bz-header__sweep,
  [data-design="b"] .bz-header__crosshatch    { animation: none; opacity: 0.34; }
  [data-design="b"] .bz-drawer__plate         { animation: none; transform: none; }
  [data-design="b"] .bz-hero__wash            { animation: none; opacity: 0.45; }
  [data-design="b"] .bz-course-band           { animation: none !important; opacity: 0.06; }
  [data-design="b"] .bz-ridge                 { animation: none; stroke-dashoffset: 0; }
  [data-design="b"] .bz-cta__inset            { animation: none; }
  [data-design="b"] .bz-cta__arrow            { transition: none; }
  [data-design="b"] .bz-cta.bz-stamping .bz-cta__ink { animation: none; opacity: 0; }
  [data-design="b"] .bz-pointer__pipe,
  [data-design="b"] .bz-pointer__drop         { animation: none; opacity: 0.5; }
  [data-design="b"] .bz-line                  { stroke-dashoffset: 0; animation: none !important; }
  [data-design="b"] .bz-callout               { opacity: 1; animation: none !important; }
  [data-design="b"] .bz-engine__beam,
  [data-design="b"] .bz-engine__water,
  [data-design="b"] .bz-engine__wheel         { animation-play-state: paused; }
  [data-design="b"] .bz-folio.is-active       { animation: none; }
  [data-design="b"] .bz-ticket__receipt       { animation: none; }
}

/* ─── CHROME ISOLATION — mobile no h-scroll ─────────────────────────────── */
[data-design="b"].dq-design,
[data-design="b"] .dq-design { max-width: 100%; overflow-x: clip; }
[data-design="b"].dq-design * { min-width: 0; }
[data-design="b"].dq-design img,
[data-design="b"].dq-design svg:not([data-keep-size]) { max-width: 100%; height: auto; }

/* Phase-3.4 hero visibility floor (forge_assemble) */
[data-design="b"] [data-mf-role="hero"] :is(h1,h2,p,.headline,.subtitle,.proof,[class*="headline"],[class*="subtitle"],[class*="proof"]),
[data-design="b"] [data-mf-role="cta"] { opacity: 1 !important; }
