/* ==========================================================================
   design-b — "Wet-Edge" (painting reskin of Exposure v0.6.1)
   Slot-scoped [data-design="b"] throughout. Palette distinct from Site A.
   ========================================================================== */

[data-design="b"] {
  --design-b-primary: #2F6B63;
  --b-bone: #F2EFE6;
  --b-paper: #E7E1D2;
  --b-ink: #22261F;
  --b-muted: #7C7A6C;
  --b-wet: #2F6B63;
  --b-wet-deep: #1F4A45;
  --b-flash: #C4622E;
  --b-felt: #232821;
  --b-critical: #A33224;
  --b-success: #4E7A54;
}

/* ===================== 1. Header — the coverage line ===================== */
[data-design="b"] .xp-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--b-bone);
}
[data-design="b"] .xp-header__bar {
  max-width: 1320px; margin-inline: auto;
  padding: 16px clamp(20px, 5vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
}
[data-design="b"] .xp-logo { text-decoration: none; }
[data-design="b"] .xp-logo__mark {
  font-family: "Fraunces", "Iowan Old Style", Georgia, serif;
  font-weight: 640; font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  line-height: 1.15; color: var(--b-ink); letter-spacing: 0.01em;
}
[data-design="b"] .xp-burger {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; border-radius: 2px;
}
[data-design="b"] .xp-burger__lap {
  display: block; width: 22px; height: 2px; background: var(--b-ink);
  transition: transform 240ms var(--xp-settle, cubic-bezier(0.2,0.7,0.2,1)), opacity 240ms var(--xp-settle, cubic-bezier(0.2,0.7,0.2,1));
}
[data-design="b"] .xp-burger[aria-expanded="true"] .xp-burger__lap:nth-child(1) { transform: translateY(7px) rotate(45deg); }
[data-design="b"] .xp-burger[aria-expanded="true"] .xp-burger__lap:nth-child(2) { opacity: 0; }
[data-design="b"] .xp-burger[aria-expanded="true"] .xp-burger__lap:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
[data-design="b"] .xp-burger:focus-visible { outline: 2px solid var(--b-flash); outline-offset: 2px; }
[data-design="b"] .xp-header__eave {
  position: relative; height: 1px; background: var(--b-muted);
  overflow: hidden;
}
[data-design="b"] .xp-header__eave-light {
  position: absolute; inset: 0 auto 0 0; width: 34%;
  background: linear-gradient(90deg, transparent, var(--b-wet), transparent);
  animation: b-eave-drift 26s linear infinite;
}
@keyframes b-eave-drift {
  from { transform: translateX(-110%); }
  to   { transform: translateX(320%); }
}
[data-design="b"] .xp-drawer {
  position: fixed; inset: 0; z-index: 55; background: var(--b-felt);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(-3%);
  transition: opacity 260ms cubic-bezier(0.2,0.7,0.2,1), transform 260ms cubic-bezier(0.2,0.7,0.2,1);
}
[data-design="b"] .xp-drawer[hidden] { display: none; }
[data-design="b"] .xp-drawer.is-open { opacity: 1; transform: translateY(0); }
[data-design="b"] .xp-drawer__inner { display: grid; gap: 8px; padding: 24px; width: min(92vw, 420px); }
[data-design="b"] .xp-drawer__link {
  position: relative; color: var(--b-bone); text-decoration: none;
  font-family: "Fraunces", Georgia, serif; font-size: 1.75rem; font-weight: 560;
  padding: 10px 0; min-height: 44px; display: flex; align-items: center;
}
[data-design="b"] .xp-drawer__link::after {
  content: ""; position: absolute; left: 0; bottom: 6px; height: 2px; width: 48px;
  background: var(--b-wet); transform: scaleX(0); transform-origin: left;
  transition: transform 240ms cubic-bezier(0.2,0.7,0.2,1);
}
@media (hover: hover) and (pointer: fine) {
  [data-design="b"] .xp-drawer__link:hover::after { transform: scaleX(1); }
}
[data-design="b"] .xp-drawer__link:focus-visible::after { transform: scaleX(1); }
[data-design="b"] .xp-drawer__link:focus-visible { outline: 2px solid var(--b-flash); outline-offset: 4px; }
[data-design="b"] .xp-drawer__actions {
  margin-top: 24px; padding-top: 24px; display: grid; gap: 12px;
  border-top: 1px solid rgba(242, 239, 230, 0.25);
}
[data-design="b"] .xp-drawer__cta {
  background: var(--b-wet); color: var(--b-bone); text-decoration: none;
  padding: 14px 20px; text-align: center; border-radius: 2px;
  font-weight: 600; box-shadow: 0 3px 0 var(--b-wet-deep);
}
[data-design="b"] .xp-drawer__phone {
  color: var(--b-bone); text-decoration: none; text-align: center;
  font-family: "IBM Plex Mono", monospace; letter-spacing: 0.06em;
  padding: 12px; min-height: 44px;
}
@media (max-width: 560px) {
  [data-design="b"] .xp-header__bar { padding-block: 12px; }
}

/* ===================== 2. CTA — the seated coat ===================== */
[data-design="b"] .xp-cta-group {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
[data-design="b"] .xp-cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 16px 32px; border-radius: 2px;
  background: var(--b-wet); color: var(--b-bone); text-decoration: none;
  font-family: "Public Sans", Arial, sans-serif; font-weight: 600; font-size: 1.0625rem;
  box-shadow: 0 3px 0 var(--b-wet-deep);
  transition: transform 120ms cubic-bezier(0.2,0.7,0.2,1), box-shadow 120ms cubic-bezier(0.2,0.7,0.2,1);
}
[data-design="b"] .xp-cta__drip {
  position: absolute; left: 8%; right: 8%; bottom: -9px; height: 1px;
  background: var(--b-wet);
  animation: b-drip-breath 5s ease-in-out infinite;
}
@keyframes b-drip-breath {
  0%, 100% { opacity: 0.25; transform: scaleX(0.72); }
  50%      { opacity: 0.9;  transform: scaleX(1); }
}
@media (hover: hover) and (pointer: fine) {
  [data-design="b"] .xp-cta:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--b-wet-deep); }
}
[data-design="b"] .xp-cta:focus-visible { outline: 2px solid var(--b-flash); outline-offset: 3px; }
[data-design="b"] .xp-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--b-wet-deep); }
[data-design="b"] .xp-ledger__cta { margin-top: 48px; }
@media (prefers-reduced-motion: reduce) {
  [data-design="b"] .xp-cta__drip { animation: none; opacity: 0.7; transform: scaleX(1); }
  [data-design="b"] .xp-cta { transition: none; }
}

/* ===================== 3. Hero — the Wet-Edge Plane ===================== */
[data-design="b"] .xp-hero {
  position: relative; min-height: min(88vh, 860px); display: flex; align-items: center;
  overflow: hidden; background: var(--b-bone);
  isolation: isolate;
}
[data-design="b"] .xp-hero__plane {
  position: absolute; inset: 0; display: flex; flex-direction: column; z-index: 0;
}
[data-design="b"] .xp-course {
  flex: 1 1 0;
  background:
    repeating-linear-gradient(90deg,
      transparent 0, transparent calc(148px + (var(--i) * 37px)),
      rgba(34, 38, 31, 0.10) calc(148px + (var(--i) * 37px)),
      rgba(34, 38, 31, 0.10) calc(150px + (var(--i) * 37px))),
    linear-gradient(180deg,
      rgba(47, 107, 99, calc(0.18 + var(--i) * 0.035)),
      rgba(124, 122, 108, calc(0.20 + var(--i) * 0.03)));
  box-shadow: 0 3px 0 rgba(34, 38, 31, 0.30);
  opacity: 0; transform: translateY(-12px);
  animation: b-lay-in 520ms cubic-bezier(0.2,0.7,0.2,1) forwards;
  animation-delay: calc((6 - var(--i)) * 90ms);
}
@keyframes b-lay-in {
  to { opacity: 1; transform: translateY(0); }
}
[data-design="b"] .xp-hero__rake {
  position: absolute; top: -20%; left: -30%; width: 42%; height: 140%;
  background: linear-gradient(105deg, transparent 30%, rgba(242, 239, 230, 0.5) 50%, transparent 70%);
  transform: translateX(-60%) rotate(8deg);
  animation: b-rake 14s linear infinite;
  animation-delay: 1.7s;
}
@keyframes b-rake {
  0%   { transform: translateX(-70%) rotate(8deg); opacity: 0; }
  12%  { opacity: 1; }
  62%  { transform: translateX(320%) rotate(8deg); opacity: 1; }
  70%, 100% { transform: translateX(340%) rotate(8deg); opacity: 0; }
}
[data-design="b"] .xp-hero__breath {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34, 38, 31, 0.10), rgba(34, 38, 31, 0) 55%);
  animation: b-shadow-breath 9s ease-in-out infinite;
}
@keyframes b-shadow-breath {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}
[data-design="b"] .xp-hero__content {
  position: relative; z-index: 2; width: 100%;
  max-width: 1320px; margin-inline: auto;
  padding: 96px clamp(20px, 5vw, 48px);
}
[data-design="b"] .xp-hero__headline {
  font-family: "Fraunces", Georgia, serif; font-weight: 640;
  font-size: clamp(2.25rem, 5.6vw, 4.3rem); line-height: 1.08;
  color: var(--b-ink); max-width: 16ch; margin: 0 0 24px; text-wrap: balance;
  opacity: 1;
}
[data-design="b"] .xp-hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.5;
  color: var(--b-ink); max-width: 46ch; margin: 0 0 16px;
  opacity: 1;
}
[data-design="b"] .xp-hero__proof {
  font-family: "IBM Plex Mono", monospace; font-size: 0.875rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--b-wet-deep); margin: 0 0 40px;
  opacity: 1;
}
@media (max-width: 560px) {
  [data-design="b"] .xp-hero { min-height: 100svh; }
  [data-design="b"] .xp-hero__content { padding-block: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-design="b"] .xp-course { animation: none; opacity: 1; transform: none; }
  [data-design="b"] .xp-hero__rake { animation: none; opacity: 0.5; transform: translateX(120%) rotate(8deg); }
  [data-design="b"] .xp-hero__breath { animation: none; opacity: 0.7; }
}

/* ===================== 4. Mid-page — the Before/After Ledger ===================== */
[data-design="b"] .xp-ledger {
  position: relative; background: var(--b-paper);
  padding: 96px 0;
}
[data-design="b"] .xp-ledger__rule {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--b-muted); overflow: hidden;
}
[data-design="b"] .xp-ledger__glint {
  position: absolute; inset: 0 auto 0 0; width: 22%;
  background: linear-gradient(90deg, transparent, var(--b-flash), transparent);
  animation: b-ledger-glint 20s linear infinite;
}
@keyframes b-ledger-glint {
  from { transform: translateX(-120%); }
  to   { transform: translateX(560%); }
}
[data-design="b"] .xp-ledger__inner {
  max-width: 1320px; margin-inline: auto; position: relative;
  padding-inline: clamp(20px, 5vw, 48px);
}
[data-design="b"] .xp-ledger__title {
  font-family: "Fraunces", Georgia, serif; font-weight: 560;
  font-size: clamp(1.75rem, 3.4vw, 2.2rem); line-height: 1.25;
  color: var(--b-ink); margin: 0 0 40px; max-width: 24ch;
}
[data-design="b"] .xp-ledger__rows { display: grid; gap: 40px; }
[data-design="b"] .xp-ledger__row {
  position: relative; display: grid; gap: 24px; padding-top: 24px;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start;
}
[data-design="b"] .xp-ledger__row::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--b-wet);
  transform: scaleX(0); transform-origin: left;
  transition: transform 640ms cubic-bezier(0.2,0.7,0.2,1);
}
[data-design="b"] .xp-ledger__row.is-inview::before { transform: scaleX(1); }
[data-design="b"] .xp-ledger__row::after {
  content: ""; position: absolute; top: -3px; left: 38%; width: 2px; height: 7px;
  background: var(--b-wet-deep); opacity: 0;
  transition: opacity 300ms cubic-bezier(0.2,0.7,0.2,1) 480ms;
}
[data-design="b"] .xp-ledger__row.is-inview::after { opacity: 1; }
[data-design="b"] .xp-ledger__row:nth-child(even)::after { left: 62%; }
[data-design="b"] .xp-ledger__frame {
  margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 2px;
  box-shadow: 0 2px 0 rgba(34, 38, 31, 0.28);
}
[data-design="b"] .xp-ledger__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
[data-design="b"] .xp-ledger__field {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, rgba(47, 107, 99, 0.28), rgba(124, 122, 108, 0.34));
}
[data-design="b"] .xp-ledger__meta h3 {
  font-family: "Fraunces", Georgia, serif; font-weight: 560; font-size: 1.375rem;
  line-height: 1.35; color: var(--b-ink); margin: 0 0 8px;
}
[data-design="b"] .xp-ledger__meta p { font-size: 1.0625rem; line-height: 1.65; color: var(--b-ink); margin: 0 0 8px; max-width: 58ch; }
[data-design="b"] .xp-ledger__spec {
  font-family: "IBM Plex Mono", monospace; font-size: 0.8125rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--b-muted);
}
[data-design="b"] .xp-stamp {
  position: absolute; right: clamp(20px, 5vw, 48px); top: -26px;
  width: 52px; height: 52px; background: none; border: 0; cursor: pointer;
  border-radius: 50%;
}
[data-design="b"] .xp-stamp__ring {
  position: absolute; inset: 4px; border: 1.5px solid var(--b-flash); border-radius: 50%;
  display: block; transition: transform 120ms cubic-bezier(0.2,0.7,0.2,1);
}
[data-design="b"] .xp-stamp__ring::after {
  content: "№1"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: var(--b-flash);
}
[data-design="b"] .xp-stamp__ghost {
  position: absolute; inset: 4px; border: 1.5px solid var(--b-flash); border-radius: 50%;
  opacity: 0; transform: translate(0, 0) scale(1); pointer-events: none;
}
[data-design="b"] .xp-stamp.is-pressed .xp-stamp__ring { transform: scale(0.9); }
[data-design="b"] .xp-stamp.is-pressed .xp-stamp__ghost { animation: b-stamp-ghost 700ms cubic-bezier(0.2,0.7,0.2,1); }
@keyframes b-stamp-ghost {
  0%   { opacity: 0.7; transform: translate(0, 0) scale(1); }
  100% { opacity: 0;   transform: translate(10px, 8px) scale(1.06); }
}
[data-design="b"] .xp-stamp:focus-visible { outline: 2px solid var(--b-flash); outline-offset: 2px; }
@media (max-width: 768px) {
  [data-design="b"] .xp-ledger { padding: 64px 0; }
  [data-design="b"] .xp-ledger__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  [data-design="b"] .xp-ledger__glint { animation: none; transform: translateX(180%); }
  [data-design="b"] .xp-ledger__row::before { transition: none; transform: scaleX(1); }
  [data-design="b"] .xp-ledger__row::after { transition: none; opacity: 1; }
  [data-design="b"] .xp-stamp.is-pressed .xp-stamp__ghost { animation: none; }
}

/* ===================== 5. Funnel — answered in Shingle Tabs ===================== */
[data-design="b"] .xp-funnel { background: var(--b-bone); padding: 96px 0; }
[data-design="b"] .xp-funnel__inner {
  max-width: 880px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px);
}
[data-design="b"] .xp-funnel__heading {
  font-family: "Fraunces", Georgia, serif; font-weight: 640;
  font-size: clamp(1.75rem, 3.6vw, 2.4rem); line-height: 1.2; color: var(--b-ink);
  margin: 0 0 8px;
}
[data-design="b"] .xp-funnel__sub { color: var(--b-muted); font-size: 1.0625rem; line-height: 1.6; margin: 0 0 32px; max-width: 58ch; }
[data-design="b"] .xp-funnel__courses { display: flex; gap: 4px; margin: 0 0 40px; }
[data-design="b"] .xp-funnel__course-seg {
  flex: 1; height: 6px; background: var(--b-paper); border-radius: 0;
  box-shadow: 0 1px 0 rgba(34, 38, 31, 0.22); overflow: hidden; position: relative;
}
[data-design="b"] .xp-funnel__course-seg::after {
  content: ""; position: absolute; inset: 0; background: var(--b-wet);
  transform: scaleX(0); transform-origin: left;
  transition: transform 420ms cubic-bezier(0.2,0.7,0.2,1);
}
[data-design="b"] .xp-funnel__course-seg.is-laid::after { transform: scaleX(1); }
[data-design="b"] .xp-step { border: 0; padding: 0; margin: 0; }
[data-design="b"] .xp-step.is-current { animation: b-step-lay 240ms cubic-bezier(0.2,0.7,0.2,1); }
@keyframes b-step-lay {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-design="b"] .xp-step__title {
  font-family: "Fraunces", Georgia, serif; font-weight: 560; font-size: 1.375rem;
  line-height: 1.35; color: var(--b-ink); margin: 0 0 24px; padding: 0;
}
[data-design="b"] .xp-step__tabs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
[data-design="b"] .xp-tab {
  position: relative; display: block; cursor: pointer; border-radius: 2px;
  perspective: 620px;
}
[data-design="b"] .xp-tab input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
[data-design="b"] .xp-tab__underlay {
  position: absolute; inset: 0; border-radius: 2px; background: var(--b-felt);
}
[data-design="b"] .xp-tab__face {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 18px; text-align: center;
  background: var(--b-bone); color: var(--b-ink); border-radius: 2px;
  border-top: 1px solid var(--b-muted);
  box-shadow: 0 2px 0 rgba(34, 38, 31, 0.28);
  font-weight: 600; font-size: 1rem; line-height: 1.3;
  transform-origin: top center;
  transition: transform 100ms cubic-bezier(0.32,1.2,0.38,1), background-color 100ms linear, color 100ms linear, box-shadow 100ms cubic-bezier(0.32,1.2,0.38,1);
}
@media (hover: hover) and (pointer: fine) {
  [data-design="b"] .xp-tab:hover .xp-tab__face {
    transform: rotateX(6deg);
    box-shadow: 0 10px 24px -12px rgba(34, 38, 31, 0.35);
  }
}
[data-design="b"] .xp-tab input:focus-visible ~ .xp-tab__face {
  outline: 2px solid var(--b-flash); outline-offset: 2px;
  transform: rotateX(6deg); box-shadow: 0 10px 24px -12px rgba(34, 38, 31, 0.35);
}
[data-design="b"] .xp-tab:active .xp-tab__face { transform: rotateX(0deg) translateY(1px); }
[data-design="b"] .xp-tab__nail {
  position: absolute; top: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--b-wet-deep);
  opacity: 0; transform: scale(0.4);
  transition: opacity 100ms cubic-bezier(0.2,0.7,0.2,1), transform 100ms cubic-bezier(0.32,1.2,0.38,1);
}
[data-design="b"] .xp-tab input:checked ~ .xp-tab__face {
  background: var(--b-wet); color: var(--b-bone);
  transform: rotateX(0deg) translateY(1px); box-shadow: 0 1px 0 var(--b-wet-deep);
}
[data-design="b"] .xp-tab input:checked ~ .xp-tab__face .xp-tab__nail {
  opacity: 1; transform: scale(1); background: var(--b-bone);
}
[data-design="b"] .xp-step__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
[data-design="b"] .xp-field--wide { grid-column: 1 / -1; }
[data-design="b"] .xp-field { display: grid; gap: 6px; }
[data-design="b"] .xp-field__label {
  font-family: "IBM Plex Mono", monospace; font-size: 0.8125rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--b-muted);
}
[data-design="b"] .xp-field__input {
  border: 0; border-bottom: 1px solid var(--b-muted); background: transparent;
  padding: 10px 2px; font: inherit; color: var(--b-ink); border-radius: 0;
  transition: border-color 160ms linear;
}
[data-design="b"] .xp-field__input:focus { outline: none; border-bottom: 2px solid var(--b-wet); margin-bottom: -1px; }
[data-design="b"] .xp-funnel__error { color: var(--b-critical); font-size: 0.9375rem; margin: 16px 0 0; }
[data-design="b"] .xp-funnel__submit { margin-top: 32px; }
[data-design="b"] .xp-funnel__back {
  margin-top: 24px; background: none; border: 0; cursor: pointer; min-height: 44px;
  color: var(--b-muted); font: inherit; padding: 8px 4px;
}
[data-design="b"] .xp-funnel__back:focus-visible { outline: 2px solid var(--b-flash); outline-offset: 2px; }
[data-design="b"] .xp-funnel__done { text-align: left; padding: 24px 0; position: relative; }
[data-design="b"] .xp-funnel__done-stamp {
  display: inline-block; width: 56px; height: 56px; border: 2px solid var(--b-success);
  border-radius: 50%; position: relative; margin-bottom: 16px;
  animation: b-done-stamp 360ms cubic-bezier(0.32,1.2,0.38,1);
}
[data-design="b"] .xp-funnel__done-stamp::after {
  content: ""; position: absolute; left: 18px; top: 26px; width: 16px; height: 9px;
  border-left: 2.5px solid var(--b-success); border-bottom: 2.5px solid var(--b-success);
  transform: rotate(-45deg);
}
@keyframes b-done-stamp {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
[data-design="b"] .xp-funnel__done-title { font-family: "Fraunces", Georgia, serif; font-size: 1.75rem; margin: 0 0 8px; color: var(--b-ink); }
[data-design="b"] .xp-funnel__done-body { color: var(--b-ink); line-height: 1.65; max-width: 52ch; }
@media (max-width: 560px) {
  [data-design="b"] .xp-funnel { padding: 64px 0; }
  [data-design="b"] .xp-step__tabs { grid-template-columns: 1fr 1fr; }
  [data-design="b"] .xp-step__fields { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  [data-design="b"] .xp-step__tabs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  [data-design="b"] .xp-step.is-current { animation: none; }
  [data-design="b"] .xp-tab__face { transition: background-color 100ms linear, color 100ms linear; }
  [data-design="b"] .xp-tab:hover .xp-tab__face,
  [data-design="b"] .xp-tab input:focus-visible ~ .xp-tab__face { transform: none; }
  [data-design="b"] .xp-funnel__course-seg::after { transition: none; }
  [data-design="b"] .xp-funnel__done-stamp { animation: none; }
}

/* ===================== 6. Pointer — wet-edge wayfinding ===================== */
[data-design="b"] .xp-pointer {
  display: grid; justify-items: center; gap: 8px;
  padding: 40px 20px 24px;
  opacity: 1;
}
[data-design="b"] .xp-pointer__course {
  display: block; height: 3px; border-radius: 0;
  width: calc(72px - var(--p) * 20px);
  background: var(--b-wet);
  box-shadow: 0 1px 0 rgba(34, 38, 31, 0.25);
  transform: scaleX(0); transform-origin: center;
  animation: b-pointer-lay 5.5s cubic-bezier(0.2,0.7,0.2,1) infinite;
  animation-delay: calc(var(--p) * 340ms);
}
@keyframes b-pointer-lay {
  0%        { transform: scaleX(0); opacity: 0; }
  10%, 72%  { transform: scaleX(1); opacity: 1; }
  88%, 100% { transform: scaleX(1); opacity: 0; }
}
[data-design="b"] .xp-pointer__label {
  margin-top: 8px;
  font-family: "IBM Plex Mono", monospace; font-size: 0.8125rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--b-muted);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  [data-design="b"] .xp-pointer__course { animation: none; transform: scaleX(1); opacity: 1; }
}

/* ===================== 7. Scroll choreography — the coverage handoff ===================== */
[data-design="b"] .xp-shed {
  position: relative; background: var(--b-bone); padding: 96px 0 64px;
}
[data-design="b"] .xp-shed__drip {
  position: absolute; top: 0; left: clamp(20px, 5vw, 48px); right: clamp(20px, 5vw, 48px);
  height: 2px; background: var(--b-wet);
  transform-origin: left; transform: scaleX(1);
}
[data-design="b"] .xp-shed__inner {
  max-width: 1320px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px);
}
[data-design="b"] .xp-shed__title {
  font-family: "Fraunces", Georgia, serif; font-weight: 560;
  font-size: clamp(1.75rem, 3.4vw, 2.2rem); line-height: 1.25; color: var(--b-ink);
  margin: 0 0 16px; max-width: 26ch;
}
[data-design="b"] .xp-shed__body { max-width: 66ch; font-size: 1.0625rem; line-height: 1.65; color: var(--b-ink); }
@supports (animation-timeline: view()) {
  [data-design="b"] .xp-hero .xp-course {
    animation-name: b-lay-in, b-shed-up;
    animation-duration: 520ms, auto;
    animation-timing-function: cubic-bezier(0.2,0.7,0.2,1), linear;
    animation-delay: calc((6 - var(--i)) * 90ms), 0s;
    animation-fill-mode: forwards, none;
    animation-timeline: auto, view();
    animation-range: normal, exit 0% exit 100%;
  }
  @keyframes b-shed-up {
    to { transform: translateY(calc(-14px - (6 - var(--i)) * 10px)); }
  }
  [data-design="b"] .xp-shed__drip {
    transform: scaleX(0);
    animation: b-drip-draw linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  @keyframes b-drip-draw {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-design="b"] .xp-hero .xp-course { animation: none !important; transform: none; opacity: 1; }
  [data-design="b"] .xp-shed__drip { animation: none !important; transform: scaleX(1); }
}

/* ===================== Services / Area / About (shared course-card pattern) ===================== */
[data-design="b"] .xp-services { background: var(--b-bone); padding: 96px 0; }
[data-design="b"] .xp-services__inner {
  max-width: 1320px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px);
}
[data-design="b"] .xp-services__title {
  font-family: "Fraunces", Georgia, serif; font-weight: 560;
  font-size: clamp(1.75rem, 3.4vw, 2.2rem); line-height: 1.25; color: var(--b-ink);
  margin: 0 0 40px; max-width: 24ch;
}
[data-design="b"] .xp-services__list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px;
}
[data-design="b"] .xp-service {
  background: var(--b-paper); border-radius: 4px; padding: 32px;
  border-top: 1px solid var(--b-muted); box-shadow: 0 2px 0 rgba(34,38,31,0.18);
}
[data-design="b"] .xp-service h3 {
  font-family: "Fraunces", Georgia, serif; font-weight: 560; font-size: 1.25rem;
  color: var(--b-ink); margin: 0 0 8px;
}
[data-design="b"] .xp-service p { font-size: 1rem; line-height: 1.6; color: var(--b-ink); margin: 0; max-width: 58ch; }
@media (max-width: 768px) {
  [data-design="b"] .xp-services { padding: 64px 0; }
  [data-design="b"] .xp-services__list { grid-template-columns: 1fr; }
}

[data-design="b"] .xp-area { background: var(--b-paper); padding: 96px 0; }
[data-design="b"] .xp-area__inner {
  max-width: 1320px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px);
}
[data-design="b"] .xp-area__title {
  font-family: "Fraunces", Georgia, serif; font-weight: 560;
  font-size: clamp(1.75rem, 3.4vw, 2.2rem); line-height: 1.25; color: var(--b-ink);
  margin: 0 0 16px;
}
[data-design="b"] .xp-area__body { font-size: 1.0625rem; line-height: 1.65; color: var(--b-ink); max-width: 66ch; }
@media (max-width: 768px) {
  [data-design="b"] .xp-area { padding: 64px 0; }
}

/* ===================== Footer ===================== */
[data-design="b"] .xp-footer { background: var(--b-felt); padding: 64px 0; position: relative; }
[data-design="b"] .xp-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--b-wet);
}
[data-design="b"] .xp-footer__inner {
  max-width: 1320px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px);
  color: var(--b-bone);
}
[data-design="b"] .xp-footer__firm {
  font-family: "Fraunces", Georgia, serif; font-size: 1.375rem; font-weight: 560;
  margin: 0 0 16px; color: var(--b-bone);
}
[data-design="b"] .xp-footer__line { font-size: 0.9375rem; line-height: 1.7; margin: 0 0 6px; color: var(--b-bone); }
[data-design="b"] .xp-footer__line a { color: var(--b-bone); }
[data-design="b"] .xp-footer__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
[data-design="b"] .xp-footer__copy { font-size: 0.8125rem; color: var(--b-muted); margin-top: 24px; }
@media (max-width: 768px) {
  [data-design="b"] .xp-footer { padding: 48px 0; }
}

/* ==========================================================================
   MOBILE SAFETY — appended at bottom, scoped to .dq-design only
   ========================================================================== */
[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; }
