/* ================================================================
   Bedford HVAC — Design B (plumb-and-square × HVAC airflow slot)
   Slot: b · Design: plumb-and-square
   All selectors scoped to [data-design="b"].dq-design
   Keyframes prefixed: ps-b-
================================================================ */

/* ── Google Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;800;900&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── Token system (scoped to [data-design="b"]) ──────────────── */
[data-design="b"] {
  /* Plumb & Square color tokens */
  --ps-concrete-50:  #eeede8;
  --ps-concrete-100: #dedcd4;
  --ps-concrete-200: #c8c5b9;
  --ps-rebar-900:    #171614;
  --ps-rebar-700:    #2d2b27;
  --ps-rebar-500:    #5b574e;
  --ps-hivis-500:    #f56600;
  --ps-hivis-700:    #c44e00;
  --ps-caution-500:  #f4c200;
  --ps-plumb-700:    #1d3b6e;
  --ps-stop-700:     #a8211a;
  --ps-ok-700:       #2d6840;

  /* Typography */
  --ps-font-display: "Big Shoulders Display", "Anton", "Oswald", "Arial Narrow", sans-serif;
  --ps-font-body:    "Manrope", "Public Sans", system-ui, -apple-system, sans-serif;
  --ps-font-mono:    "JetBrains Mono", "DM Mono", ui-monospace, monospace;

  /* Font sizes */
  --ps-fs-detail:    13px;
  --ps-fs-caption:   15px;
  --ps-fs-body:      18px;
  --ps-fs-body-lg:   22px;
  --ps-fs-headline:  38px;
  --ps-fs-display-1: 110px;
  --ps-fs-display-2: 72px;
  --ps-fs-numeric:   156px;

  /* Spacing (jobsite primitives) */
  --ps-tick:    4px;
  --ps-stud:    8px;
  --ps-plate:  12px;
  --ps-course: 24px;
  --ps-bay:    40px;
  --ps-pour:   64px;
  --ps-deck:   96px;
  --ps-storey: 128px;
  --ps-grade:  192px;

  /* Easing */
  --ps-ease-lock:  cubic-bezier(0.5, 0, 0, 1);
  --ps-ease-set:   cubic-bezier(0.65, 0, 0.35, 1);
  --ps-ease-pour:  cubic-bezier(0.4, 0, 0.2, 1);
  --ps-ease-stamp: cubic-bezier(0.15, 1.5, 0.3, 1);
  --ps-ease-cure:  cubic-bezier(0.45, 0, 0.55, 1);

  /* Durations */
  --ps-dur-fb:        120ms;
  --ps-dur-lock:      240ms;
  --ps-dur-press:     420ms;
  --ps-dur-pour:      900ms;
  --ps-dur-tick:     1800ms;
  --ps-dur-breath-fast: 4s;
  --ps-dur-breath-mid: 12s;
  --ps-dur-stripe:    22s;

  /* Radius */
  --ps-radius-0:    0;
  --ps-radius-1:    2px;
  --ps-radius-pill: 999px;

  /* Shadows */
  --ps-shadow-form-inset: inset 0 -3px 0 0 var(--ps-rebar-900);
  --ps-shadow-press:      inset 0 3px 0 0 var(--ps-hivis-700);
  --ps-shadow-pour-card:  0 0 0 2px var(--ps-rebar-900);

  /* HVAC Thermal tokens — scroll-driven, cool → warm */
  --thermal-temp: 0;
  --b-cool:       #1d3b6e;
  --b-warm:       #c44e00;
  --b-thermal-bg: color-mix(in srgb, var(--b-cool) calc((1 - var(--thermal-temp)) * 100%), var(--b-warm) calc(var(--thermal-temp) * 100%));
  --b-airstream-tint: color-mix(in srgb, #4a90d9 calc((1 - var(--thermal-temp)) * 100%), #e8710a calc(var(--thermal-temp) * 100%));
  --b-design-primary: var(--ps-hivis-500);
  --design-b-primary: var(--ps-hivis-500);

  /* Reset */
  box-sizing: border-box;
  font-family: var(--ps-font-body);
  color: var(--ps-rebar-900);
  background: var(--ps-concrete-50);
}

[data-design="b"].dq-design,
[data-design="b"] .dq-design {
  max-width: 100%;
  overflow-x: clip;
}
[data-design="b"].dq-design * {
  min-width: 0;
  box-sizing: border-box;
}
[data-design="b"].dq-design img,
[data-design="b"].dq-design svg:not([data-keep-size]) {
  max-width: 100%;
  height: auto;
}

/* ── HEADER ───────────────────────────────────────────────────── */
[data-design="b"] .ps-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ps-concrete-50);
  border-bottom: 3px solid var(--ps-rebar-900);
}
[data-design="b"] .ps-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ps-plate) clamp(var(--ps-course), 4vw, var(--ps-bay));
  min-height: 72px;
}
[data-design="b"] .ps-logo {
  font-family: var(--ps-font-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ps-rebar-900);
  text-decoration: none;
  line-height: 0.92;
}
[data-design="b"] .ps-hamburger {
  width: 56px;
  height: 44px;
  background: var(--ps-rebar-900);
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
[data-design="b"] .ps-hamburger__rule {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ps-hivis-500);
}
@media (hover: hover) and (pointer: fine) {
  [data-design="b"] .ps-hamburger:hover {
    background: var(--ps-hivis-500);
  }
  [data-design="b"] .ps-hamburger:hover .ps-hamburger__rule {
    background: var(--ps-rebar-900);
  }
}

/* Header stripe — the atmospheric OSHA marquee layer */
[data-design="b"] .ps-header__stripe {
  height: 12px;
  background: repeating-linear-gradient(
    45deg,
    var(--ps-hivis-500) 0 18px,
    var(--ps-rebar-900) 18px 36px
  );
  background-size: 51px 12px;
  animation: ps-b-stripe-march var(--ps-dur-stripe) linear infinite;
}
@keyframes ps-b-stripe-march {
  from { background-position: 0 0; }
  to   { background-position: 510px 0; }
}

/* Drawer */
[data-design="b"] .ps-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(440px, 92vw);
  background: var(--ps-rebar-900);
  color: var(--ps-concrete-50);
  padding: var(--ps-bay);
  transform: translateX(100%);
  transition: transform var(--ps-dur-pour) var(--ps-ease-pour);
  z-index: 100;
  border-left: 6px solid var(--ps-hivis-500);
  display: flex;
  flex-direction: column;
  gap: var(--ps-course);
}
[data-design="b"] .ps-drawer[data-open="true"] {
  transform: translateX(0);
}
[data-design="b"] .ps-drawer__close {
  background: none;
  border: 0;
  color: var(--ps-hivis-500);
  font-size: 24px;
  cursor: pointer;
  align-self: flex-end;
  padding: var(--ps-stud);
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
}
[data-design="b"] .ps-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--ps-plate);
  margin-top: var(--ps-course);
}
[data-design="b"] .ps-drawer__nav a {
  font-family: var(--ps-font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 0.01em;
  color: var(--ps-concrete-50);
  text-decoration: none;
  text-transform: uppercase;
  padding: var(--ps-stud) 0;
  display: block;
  min-height: 44px;
}
[data-design="b"] .ps-drawer__nav a::before {
  content: attr(data-num);
  font-family: var(--ps-font-mono);
  font-size: 13px;
  color: var(--ps-hivis-500);
  padding-right: var(--ps-plate);
}
@media (hover: hover) and (pointer: fine) {
  [data-design="b"] .ps-drawer__nav a:hover {
    background: var(--ps-hivis-500);
    color: var(--ps-rebar-900);
    padding-left: var(--ps-plate);
  }
}
[data-design="b"] .ps-drawer__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--ps-plate);
}
[data-design="b"] .ps-drawer__meta {
  position: absolute;
  bottom: var(--ps-course);
  left: var(--ps-bay);
  font-family: var(--ps-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ps-hivis-500);
}

/* ── HERO ─────────────────────────────────────────────────────── */
[data-design="b"] .ps-hero {
  position: relative;
  padding: var(--ps-grade) clamp(var(--ps-course), 5vw, var(--ps-bay)) var(--ps-storey);
  background: var(--b-thermal-bg);
  overflow: hidden;
  min-height: 80vh;
  isolation: isolate;
}

/* Thermal background layer — E3 — ambient animated substrate */
[data-design="b"] .ps-hero__thermal-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
[data-design="b"] .ps-thermal-svg {
  width: 100%;
  height: 100%;
}
[data-design="b"] .ps-thermal-field {
  animation: ps-b-thermal-breathe var(--ps-dur-breath-mid) var(--ps-ease-cure) infinite;
}
@keyframes ps-b-thermal-breathe {
  0%, 100% { opacity: 0.92; }
  50%       { opacity: 0.80; }
}
[data-design="b"] .ps-isotherms {
  animation: ps-b-isotherms-drift 18s var(--ps-ease-cure) infinite alternate;
}
@keyframes ps-b-isotherms-drift {
  from { transform: translateX(-12px) translateY(0); }
  to   { transform: translateX(12px) translateY(-8px); }
}
[data-design="b"] .ps-shimmer-a {
  animation: ps-b-shimmer-a 9s var(--ps-ease-cure) infinite alternate;
}
[data-design="b"] .ps-shimmer-b {
  animation: ps-b-shimmer-b 13s var(--ps-ease-cure) infinite alternate;
}
@keyframes ps-b-shimmer-a {
  from { transform: scale(1) translateX(0); }
  to   { transform: scale(1.12) translateX(20px); }
}
@keyframes ps-b-shimmer-b {
  from { transform: scale(1) translateX(0); }
  to   { transform: scale(1.08) translateX(-18px); }
}

/* Hero right-edge stripe (design signature) */
[data-design="b"] .ps-hero__stripe {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 28px;
  background: repeating-linear-gradient(
    180deg,
    var(--ps-hivis-500) 0 22px,
    var(--ps-rebar-900) 22px 44px
  );
  animation: ps-b-stripe-fall var(--ps-dur-stripe) linear infinite;
  z-index: 2;
  pointer-events: none;
}
@keyframes ps-b-stripe-fall {
  from { background-position: 0 -880px; }
  to   { background-position: 0 0; }
}

/* Hero text bay — must be ABOVE all backdrop layers */
[data-design="b"] .ps-hero__bay {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding-right: 48px; /* clear the right stripe */
}
[data-design="b"] .ps-hero__kicker {
  font-family: var(--ps-font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(238, 237, 232, 0.82);
  margin: 0 0 var(--ps-course);
  padding-bottom: var(--ps-stud);
  border-bottom: 2px solid rgba(245, 102, 0, 0.6);
  display: inline-block;
}
[data-design="b"] .ps-hero__title {
  font-family: var(--ps-font-display);
  font-weight: 900;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ps-concrete-50);
  margin: 0 0 var(--ps-course);
  max-width: 24ch;
  /* HARD: opacity:1 at first paint — NEVER reveal-gate with opacity */
  opacity: 1;
}
[data-design="b"] .ps-hero__sub {
  font-family: var(--ps-font-body);
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.5;
  color: rgba(238, 237, 232, 0.88);
  margin: 0 0 var(--ps-course);
  max-width: 52ch;
  opacity: 1;
}
[data-design="b"] .ps-trust-chip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ps-plate);
  margin-bottom: var(--ps-bay);
}
[data-design="b"] .ps-trust-chip__badge {
  font-family: var(--ps-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(23, 22, 20, 0.72);
  color: var(--ps-hivis-500);
  border: 1px solid var(--ps-hivis-500);
  padding: 4px 10px;
  border-radius: var(--ps-radius-pill);
  line-height: 1.4;
  opacity: 1;
}
[data-design="b"] .ps-trust-chip__badge--vet {
  background: rgba(29, 59, 110, 0.7);
  border-color: var(--ps-caution-500);
  color: var(--ps-caution-500);
}
[data-design="b"] .ps-hero__cta-row {
  display: flex;
  gap: var(--ps-course);
  flex-wrap: wrap;
}

/* ── E5 AIRFLOW SIGNATURE (Site B) ───────────────────────────── */
/* Sits in hero backdrop — z-index between thermal-bg (0) and text (10) */
[data-design="b"] .ps-airflow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
[data-design="b"] .ps-airflow__ducts {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Air streams — particles flowing through ducts, color tinted by thermal-temp */
[data-design="b"] .ps-air-streams {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
[data-design="b"] .ps-air-stream {
  position: absolute;
  display: block;
  height: 3px;
  background: var(--b-airstream-tint);
  border-radius: 2px;
  opacity: 0.55;
  top: 78px; /* aligned to horizontal duct at y=80 */
  transform: translateX(-100%);
}
[data-design="b"] .ps-air-stream--a {
  width: 120px;
  animation: ps-b-airflow 5.5s var(--ps-ease-pour) 0.0s infinite;
}
[data-design="b"] .ps-air-stream--b {
  width: 80px;
  animation: ps-b-airflow 6.8s var(--ps-ease-pour) 1.2s infinite;
  opacity: 0.40;
}
[data-design="b"] .ps-air-stream--c {
  width: 160px;
  animation: ps-b-airflow 4.9s var(--ps-ease-pour) 2.4s infinite;
  opacity: 0.50;
}
[data-design="b"] .ps-air-stream--d {
  width: 100px;
  animation: ps-b-airflow 7.2s var(--ps-ease-pour) 0.8s infinite;
  opacity: 0.35;
}
[data-design="b"] .ps-air-stream--e {
  width: 140px;
  animation: ps-b-airflow 5.1s var(--ps-ease-pour) 3.0s infinite;
  opacity: 0.45;
}
@keyframes ps-b-airflow {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(calc(100vw + 200px)); }
}

/* Mid-section airflow (services section) */
[data-design="b"] .ps-airflow--mid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
[data-design="b"] .ps-air-streams--mid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}
[data-design="b"] .ps-air-stream--mid-a {
  position: absolute;
  display: block;
  height: 2px;
  width: 90px;
  background: var(--b-airstream-tint);
  opacity: 0.25;
  top: 40%;
  transform: translateX(-100%);
  animation: ps-b-airflow 8s var(--ps-ease-pour) 0.5s infinite;
}
[data-design="b"] .ps-air-stream--mid-b {
  position: absolute;
  display: block;
  height: 2px;
  width: 60px;
  background: var(--b-airstream-tint);
  opacity: 0.20;
  top: 60%;
  transform: translateX(-100%);
  animation: ps-b-airflow 10s var(--ps-ease-pour) 2.5s infinite;
}
[data-design="b"] .ps-air-stream--mid-c {
  position: absolute;
  display: block;
  height: 2px;
  width: 110px;
  background: var(--b-airstream-tint);
  opacity: 0.22;
  top: 20%;
  transform: translateX(-100%);
  animation: ps-b-airflow 7s var(--ps-ease-pour) 4.0s infinite;
}

/* About section airflow */
[data-design="b"] .ps-airflow--about {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
[data-design="b"] .ps-air-streams--about {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
[data-design="b"] .ps-air-stream--about-a {
  position: absolute;
  display: block;
  height: 2px;
  width: 80px;
  background: var(--b-airstream-tint);
  opacity: 0.18;
  top: 50%;
  transform: translateX(-100%);
  animation: ps-b-airflow 11s var(--ps-ease-pour) 1.0s infinite;
}
[data-design="b"] .ps-air-stream--about-b {
  position: absolute;
  display: block;
  height: 2px;
  width: 55px;
  background: var(--b-airstream-tint);
  opacity: 0.15;
  top: 30%;
  transform: translateX(-100%);
  animation: ps-b-airflow 9s var(--ps-ease-pour) 3.5s infinite;
}

/* ── E2 POUR CTA ──────────────────────────────────────────────── */
[data-design="b"] .ps-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--ps-plate);
  padding: 18px 28px;
  min-height: 60px;
  min-width: 44px;
  background: var(--ps-hivis-500);
  color: var(--ps-rebar-900);
  font-family: var(--ps-font-display);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 0;
  border-radius: 0 0 var(--ps-radius-1) var(--ps-radius-1);
  box-shadow: var(--ps-shadow-form-inset);
  transition:
    transform var(--ps-dur-lock) var(--ps-ease-lock),
    box-shadow var(--ps-dur-lock) var(--ps-ease-lock),
    background var(--ps-dur-lock) var(--ps-ease-lock);
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  /* opacity: 1 always — gate requirement */
  opacity: 1;
}
[data-design="b"] .ps-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255,255,255,0.18) 35%,
    rgba(255,255,255,0.18) 50%,
    transparent 65%
  );
  background-size: 240% 100%;
  animation: ps-b-cta-cure var(--ps-dur-breath-fast) var(--ps-ease-cure) infinite;
  pointer-events: none;
}
[data-design="b"] .ps-cta__arrow {
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
  opacity: 1;
}
[data-design="b"] .ps-cta__num {
  position: absolute;
  right: 8px;
  bottom: 4px;
  font-family: var(--ps-font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  opacity: 0.65;
  font-weight: 400;
}
@media (hover: hover) and (pointer: fine) {
  [data-design="b"] .ps-cta:hover {
    box-shadow: inset 0 -5px 0 0 var(--ps-rebar-900);
    transform: translateY(-1px);
    background: var(--ps-hivis-500);
  }
}
[data-design="b"] .ps-cta:active {
  transform: translateY(3px);
  box-shadow: inset 0 3px 0 0 var(--ps-hivis-700);
  background: var(--ps-hivis-700);
}
[data-design="b"] .ps-cta:focus-visible {
  outline: 3px solid var(--ps-caution-500);
  outline-offset: 4px;
}
@keyframes ps-b-cta-cure {
  0%   { background-position: 240% 0; }
  100% { background-position: -40% 0; }
}
[data-design="b"] .ps-cta--secondary {
  background: var(--ps-concrete-50);
  color: var(--ps-rebar-900);
  border: 2px solid var(--ps-rebar-900);
  box-shadow: none;
}
[data-design="b"] .ps-cta--secondary::before {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  [data-design="b"] .ps-cta--secondary:hover {
    background: var(--ps-rebar-900);
    color: var(--ps-concrete-50);
    border-color: var(--ps-rebar-900);
    transform: translateY(-1px);
    box-shadow: none;
  }
}
[data-design="b"] .ps-cta--call {
  font-size: 26px;
  padding: 22px 36px;
  min-height: 72px;
  width: 100%;
  justify-content: center;
}
[data-design="b"] .ps-cta--drawer {
  font-size: 16px;
  padding: 14px 20px;
  min-height: 52px;
}

/* ── E6 POINTER ───────────────────────────────────────────────── */
/* Sits IMMEDIATELY before #funnel — pointer_funnel_adjacent */
[data-design="b"] .ps-pointer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ps-stud);
  width: 88px;
  margin: calc(var(--ps-storey) * -0.3) auto var(--ps-course);
  cursor: pointer;
  padding: var(--ps-plate) 0;
  background: transparent;
  border: 0;
  z-index: 5;
  /* HARD: must be visibly rendered — opacity:1 and height > 8px */
  opacity: 1;
  min-height: 80px;
}
[data-design="b"] .ps-pointer__block {
  display: block;
  width: 72px;
  height: 14px;
  background: var(--ps-rebar-900);
  border-left: 4px solid var(--ps-hivis-500);
  /* HARD: opacity must be 1 at rest — entrance uses transform only */
  opacity: 0;
  animation: ps-b-block-drop var(--ps-dur-press) var(--ps-ease-stamp) forwards;
}
[data-design="b"] .ps-pointer__block[data-i="1"] { animation-delay: 0.0s; }
[data-design="b"] .ps-pointer__block[data-i="2"] { animation-delay: 0.35s; width: 58px; }
[data-design="b"] .ps-pointer__block[data-i="3"] {
  animation-delay: 0.70s;
  width: 44px;
  animation-name: ps-b-block-drop-cure;
  animation-duration: 5s;
  animation-timing-function: var(--ps-ease-cure);
  animation-iteration-count: infinite;
}
@keyframes ps-b-block-drop {
  0%   { transform: translateY(-24px); opacity: 0; }
  60%  { transform: translateY(2px);   opacity: 1; }
  100% { transform: translateY(0);     opacity: 1; }
}
@keyframes ps-b-block-drop-cure {
  0%   { transform: translateY(-24px); opacity: 0; border-left-color: var(--ps-hivis-500); }
  20%  { transform: translateY(0);     opacity: 1; border-left-color: var(--ps-hivis-500); }
  60%  { transform: translateY(0);     opacity: 1; border-left-color: var(--ps-hivis-700); }
  100% { transform: translateY(0);     opacity: 1; border-left-color: var(--ps-hivis-500); }
}
[data-design="b"] .ps-pointer__chev {
  color: var(--ps-hivis-500);
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  animation: ps-b-pointer-chev 0.4s var(--ps-ease-set) 1.05s forwards;
}
@keyframes ps-b-pointer-chev {
  to { opacity: 1; }
}
[data-design="b"] .ps-pointer__label {
  font-family: var(--ps-font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ps-rebar-700);
  margin-top: var(--ps-stud);
  white-space: nowrap;
  opacity: 0;
  animation: ps-b-pointer-chev 0.4s var(--ps-ease-set) 1.4s forwards;
}

/* ── E5 / FUNNEL ──────────────────────────────────────────────── */
[data-design="b"] .ps-funnel {
  padding: var(--ps-storey) clamp(var(--ps-course), 5vw, var(--ps-bay));
  background: var(--ps-concrete-50);
}
[data-design="b"] .ps-funnel__head {
  margin-bottom: var(--ps-bay);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
[data-design="b"] .ps-funnel__kicker {
  font-family: var(--ps-font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ps-rebar-500);
  margin: 0 0 var(--ps-stud);
  padding-bottom: var(--ps-stud);
  border-bottom: 2px solid var(--ps-rebar-900);
  display: inline-block;
}
[data-design="b"] .ps-funnel__title {
  font-family: var(--ps-font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
  max-width: 22ch;
  color: var(--ps-rebar-900);
  opacity: 1;
}
[data-design="b"] .ps-funnel__ledger {
  background: var(--ps-rebar-900);
  color: var(--ps-concrete-50);
  padding: var(--ps-course) var(--ps-bay);
  margin-bottom: var(--ps-course);
  position: relative;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
[data-design="b"] .ps-funnel__ledger-id {
  font-family: var(--ps-font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ps-hivis-500);
  text-transform: uppercase;
}
[data-design="b"] .ps-funnel__ledger-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--ps-stud) var(--ps-course);
  margin: var(--ps-plate) 0 0;
  min-height: 24px;
  font-family: var(--ps-font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}
[data-design="b"] .ps-funnel__ledger-list:empty::before {
  content: "(awaiting first selection)";
  color: var(--ps-rebar-500);
  font-family: var(--ps-font-body);
  font-style: italic;
}
[data-design="b"] .ps-funnel__ledger-list dt {
  text-transform: uppercase;
  color: var(--ps-hivis-500);
  margin: 0;
}
[data-design="b"] .ps-funnel__ledger-list dd {
  margin: 0;
  color: var(--ps-concrete-50);
  font-weight: 600;
  /* entrance uses transform+opacity, resting is opacity:1 */
  opacity: 1;
}
[data-design="b"] .ps-funnel__ledger-list dd[data-fresh="true"] {
  animation: ps-b-ledger-set var(--ps-dur-press) var(--ps-ease-stamp);
}
@keyframes ps-b-ledger-set {
  0%   { transform: translateY(-8px); opacity: 0; color: var(--ps-hivis-500); }
  60%  { transform: translateY(2px);  opacity: 1; color: var(--ps-hivis-500); }
  100% { transform: translateY(0);    opacity: 1; color: var(--ps-concrete-50); }
}

[data-design="b"] .ps-funnel__forms {
  background: var(--ps-concrete-50);
  border: 3px solid var(--ps-rebar-900);
  padding: var(--ps-bay);
  min-height: 320px;
  position: relative;
  overflow: hidden;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
[data-design="b"] .ps-funnel__step {
  border: 0;
  padding: 0;
  margin: 0;
  display: none;
}
[data-design="b"] .ps-funnel__step[data-active="true"] {
  display: block;
  animation: ps-b-step-pour var(--ps-dur-pour) var(--ps-ease-pour) forwards;
}
@keyframes ps-b-step-pour {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-design="b"] .ps-funnel__step-id {
  font-family: var(--ps-font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--ps-rebar-500);
  text-transform: uppercase;
  margin-bottom: var(--ps-course);
  padding: 0;
  display: block;
  opacity: 1;
}
[data-design="b"] .ps-funnel__choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--ps-plate);
}
[data-design="b"] .ps-funnel__choice {
  font-family: var(--ps-font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: var(--ps-concrete-50);
  color: var(--ps-rebar-900);
  border: 3px solid var(--ps-rebar-900);
  padding: 20px 22px;
  text-align: left;
  cursor: pointer;
  min-height: 72px;
  min-width: 44px;
  transition:
    background var(--ps-dur-fb) var(--ps-ease-lock),
    color var(--ps-dur-fb) var(--ps-ease-lock);
  /* opacity:1 always — no reveal-gate */
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  [data-design="b"] .ps-funnel__choice:hover {
    background: var(--ps-hivis-500);
    color: var(--ps-rebar-900);
    transform: translateY(-1px);
  }
}
[data-design="b"] .ps-funnel__choice:active {
  transform: translateY(2px);
  background: var(--ps-hivis-700);
  color: var(--ps-concrete-50);
}
[data-design="b"] .ps-funnel__choice:focus-visible {
  outline: 3px solid var(--ps-caution-500);
  outline-offset: 3px;
}

/* Contact action area */
[data-design="b"] .ps-funnel__contact-action {
  animation: ps-b-step-pour var(--ps-dur-pour) var(--ps-ease-pour) forwards;
}
[data-design="b"] .ps-funnel__contact-action[hidden] {
  display: none;
}
[data-design="b"] .ps-funnel__call-now[hidden] {
  display: none;
}
[data-design="b"] .ps-funnel__callback[hidden] {
  display: none;
}
[data-design="b"] .ps-funnel__call-label {
  font-family: var(--ps-font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--ps-rebar-700);
  margin: 0 0 var(--ps-course);
  opacity: 1;
}
[data-design="b"] .ps-field {
  display: flex;
  flex-direction: column;
  gap: var(--ps-stud);
  margin-bottom: var(--ps-course);
}
[data-design="b"] .ps-field span {
  font-family: var(--ps-font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ps-rebar-500);
  text-transform: uppercase;
  opacity: 1;
}
[data-design="b"] .ps-field__input {
  font-family: var(--ps-font-body);
  font-weight: 500;
  font-size: 18px;
  padding: 12px 8px;
  border: 0;
  border-left: 3px solid var(--ps-rebar-900);
  border-bottom: 3px solid var(--ps-rebar-900);
  background: var(--ps-concrete-50);
  color: var(--ps-rebar-900);
  transition: border-color var(--ps-dur-lock) var(--ps-ease-lock);
  width: 100%;
  max-width: 400px;
}
[data-design="b"] .ps-field__input:focus {
  outline: none;
  border-left-color: var(--ps-hivis-500);
  border-bottom-color: var(--ps-hivis-500);
}
[data-design="b"] .ps-funnel__submit {
  border: 0;
  font-size: 18px;
}

/* Approved state */
[data-design="b"] .ps-funnel__approved {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--ps-course);
}
[data-design="b"] .ps-funnel__approved[hidden] {
  display: none;
}
[data-design="b"] .ps-funnel__stamp {
  color: var(--ps-hivis-500);
  width: 280px;
  margin-bottom: var(--ps-course);
  animation: ps-b-stamp-press var(--ps-dur-press) var(--ps-ease-stamp) both;
  opacity: 1;
}
[data-design="b"] .ps-funnel__stamp svg {
  width: 100%;
  height: auto;
}
@keyframes ps-b-stamp-press {
  0%   { transform: scale(1.5) rotate(-5deg); opacity: 0; }
  55%  { transform: scale(0.95) rotate(-2deg); opacity: 1; }
  100% { transform: scale(1) rotate(-3deg);   opacity: 1; }
}
[data-design="b"] .ps-funnel__approved-title {
  font-family: var(--ps-font-display);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 var(--ps-plate);
  opacity: 1;
}
[data-design="b"] .ps-funnel__approved-body {
  font-family: var(--ps-font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ps-rebar-700);
  margin: 0;
  max-width: 44ch;
  opacity: 1;
}

/* Funnel nav */
[data-design="b"] .ps-funnel__nav {
  display: flex;
  align-items: center;
  gap: var(--ps-course);
  margin-top: var(--ps-course);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
[data-design="b"] .ps-funnel__back {
  background: var(--ps-concrete-50);
  border: 2px solid var(--ps-rebar-900);
  padding: 10px 18px;
  font-family: var(--ps-font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  min-height: 44px;
  color: var(--ps-rebar-900);
  opacity: 1;
}
[data-design="b"] .ps-funnel__back[hidden] {
  display: none;
}
[data-design="b"] .ps-funnel__progress {
  flex: 1;
  height: 4px;
  background: var(--ps-concrete-200);
  position: relative;
}
[data-design="b"] .ps-funnel__progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  transform: scaleX(0.333);
  transform-origin: left;
  background: var(--ps-hivis-500);
  transition: transform var(--ps-dur-pour) var(--ps-ease-pour);
}
[data-design="b"] .ps-funnel__counter {
  font-family: var(--ps-font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--ps-rebar-500);
  opacity: 1;
  white-space: nowrap;
}

/* ── SERVICES (E4) ────────────────────────────────────────────── */
[data-design="b"] .ps-services {
  position: relative;
  padding: var(--ps-storey) clamp(var(--ps-course), 5vw, var(--ps-bay));
  background: var(--ps-concrete-100);
  overflow: hidden;
}
[data-design="b"] .ps-services__columns {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 78px,
    rgba(46, 45, 40, 0.06) 78px 82px
  );
  background-size: 320px 100%;
  animation: ps-b-col-drift 22s linear infinite;
  pointer-events: none;
}
@keyframes ps-b-col-drift {
  from { background-position: 0 0; }
  to   { background-position: 320px 0; }
}
[data-design="b"] .ps-services__head {
  position: relative;
  z-index: 1;
  margin-bottom: var(--ps-bay);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
[data-design="b"] .ps-services__kicker {
  font-family: var(--ps-font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ps-rebar-500);
  margin: 0 0 var(--ps-stud);
  padding-bottom: var(--ps-stud);
  border-bottom: 2px solid var(--ps-rebar-900);
  display: inline-block;
}
[data-design="b"] .ps-services__title {
  font-family: var(--ps-font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
  max-width: 18ch;
  opacity: 1;
}
[data-design="b"] .ps-services__list {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1280px;
}
[data-design="b"] .ps-service-row {
  display: grid;
  grid-template-columns: minmax(80px, 140px) 1fr auto;
  gap: var(--ps-bay);
  padding: var(--ps-course) var(--ps-stud);
  border-top: 3px solid var(--ps-rebar-900);
  background: var(--ps-concrete-50);
  align-items: flex-start;
}
[data-design="b"] .ps-service-row:last-child {
  border-bottom: 3px solid var(--ps-rebar-900);
}
[data-design="b"] .ps-service-row__num {
  font-family: var(--ps-font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  /* thermal accent on service nums */
  color: var(--b-airstream-tint);
  transition: color 0.25s ease;
  opacity: 1;
}
[data-design="b"] .ps-service-row__body h3 {
  font-family: var(--ps-font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0 0 var(--ps-plate);
  opacity: 1;
}
[data-design="b"] .ps-service-row__body p {
  font-family: var(--ps-font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ps-rebar-700);
  margin: 0;
  max-width: 56ch;
  opacity: 1;
}
[data-design="b"] .ps-service-row__metric {
  align-self: flex-start;
  font-family: var(--ps-font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ps-rebar-500);
  text-transform: uppercase;
  padding-top: var(--ps-stud);
  white-space: nowrap;
  opacity: 1;
}

/* ── ABOUT ────────────────────────────────────────────────────── */
[data-design="b"] .ps-about {
  position: relative;
  padding: var(--ps-storey) clamp(var(--ps-course), 5vw, var(--ps-bay));
  background: var(--ps-rebar-900);
  color: var(--ps-concrete-50);
  overflow: hidden;
}
[data-design="b"] .ps-about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ps-pour);
  align-items: flex-start;
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}
[data-design="b"] .ps-about__kicker {
  font-family: var(--ps-font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ps-hivis-500);
  margin: 0 0 var(--ps-stud);
  padding-bottom: var(--ps-stud);
  border-bottom: 2px solid var(--ps-hivis-500);
  display: inline-block;
  opacity: 1;
}
[data-design="b"] .ps-about__title {
  font-family: var(--ps-font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--ps-concrete-50);
  margin: 0 0 var(--ps-bay);
  opacity: 1;
}
[data-design="b"] .ps-about__body {
  font-family: var(--ps-font-body);
  font-size: 17px;
  line-height: 1.6;
  color: rgba(238, 237, 232, 0.82);
  margin: 0 0 var(--ps-course);
  max-width: 60ch;
  opacity: 1;
}
[data-design="b"] .ps-stats-sheet {
  display: flex;
  flex-direction: column;
  gap: 0;
}
[data-design="b"] .ps-stats-sheet__row {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--ps-course);
  padding: var(--ps-plate) 0;
  border-bottom: 1px solid rgba(238, 237, 232, 0.15);
  font-family: var(--ps-font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}
[data-design="b"] .ps-stats-sheet__row dt {
  text-transform: uppercase;
  color: var(--ps-hivis-500);
  white-space: nowrap;
  opacity: 1;
}
[data-design="b"] .ps-stats-sheet__row dd {
  color: var(--ps-concrete-50);
  margin: 0;
  font-weight: 600;
  opacity: 1;
}

/* ── FOOTER ───────────────────────────────────────────────────── */
[data-design="b"] .ps-footer {
  background: var(--ps-rebar-900);
  color: var(--ps-concrete-50);
  border-top: 3px solid var(--ps-hivis-500);
}
[data-design="b"] .ps-footer__stripe {
  height: 24px;
  background: repeating-linear-gradient(
    90deg,
    var(--ps-hivis-500) 0 20px,
    var(--ps-rebar-900) 20px 40px
  );
  opacity: 0.7;
}
[data-design="b"] .ps-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ps-bay);
  padding: var(--ps-pour) clamp(var(--ps-course), 5vw, var(--ps-bay)) var(--ps-deck);
  max-width: 1280px;
  margin: 0 auto;
}
[data-design="b"] .ps-footer__col-head {
  font-family: var(--ps-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ps-hivis-500);
  margin: 0 0 var(--ps-plate);
  opacity: 1;
}
[data-design="b"] .ps-footer__brand {
  font-family: var(--ps-font-display);
  font-weight: 900;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ps-concrete-50);
  margin: 0 0 var(--ps-stud);
  opacity: 1;
}
[data-design="b"] .ps-footer__tagline {
  font-family: var(--ps-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ps-rebar-500);
  margin: 0 0 var(--ps-tick);
  opacity: 1;
}
[data-design="b"] .ps-footer__phone {
  display: block;
  font-family: var(--ps-font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ps-hivis-500);
  text-decoration: none;
  margin-bottom: var(--ps-plate);
  opacity: 1;
}
[data-design="b"] .ps-footer__cta {
  font-family: var(--ps-font-mono);
  font-size: 13px;
  color: var(--ps-concrete-50);
  text-decoration: none;
  letter-spacing: 0.08em;
  opacity: 1;
}
[data-design="b"] .ps-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ps-plate);
}
[data-design="b"] .ps-footer__list li {
  font-family: var(--ps-font-body);
  font-size: 15px;
  color: rgba(238, 237, 232, 0.7);
  opacity: 1;
}
[data-design="b"] .ps-footer__area {
  font-family: var(--ps-font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--ps-concrete-50);
  margin: 0 0 var(--ps-plate);
  opacity: 1;
}
[data-design="b"] .ps-footer__credential,
[data-design="b"] .ps-footer__financing {
  font-family: var(--ps-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ps-rebar-500);
  margin: 0 0 var(--ps-stud);
  opacity: 1;
}
[data-design="b"] .ps-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--ps-course) clamp(var(--ps-course), 5vw, var(--ps-bay));
  border-top: 1px solid rgba(238, 237, 232, 0.12);
  max-width: 1280px;
  margin: 0 auto;
}
[data-design="b"] .ps-footer__copy {
  font-family: var(--ps-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ps-rebar-500);
  opacity: 1;
}
[data-design="b"] .ps-footer__build {
  font-family: var(--ps-font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(91, 87, 78, 0.5);
  opacity: 1;
}

/* ================================================================
   SCROLL-LINKED THERMAL WARMING
   Driven by JS; --thermal-temp 0→1 as visitor scrolls to #funnel
   The gradient uses the token so the airflow streams + backdrop warm
================================================================ */
[data-design="b"] .ps-hero {
  /* background already uses --b-thermal-bg which reads --thermal-temp */
  transition: background 0.3s ease;
}

/* ================================================================
   MOBILE / RESPONSIVE
   SCOPE EVERY rule to .dq-design to avoid leaking onto chrome-kit
================================================================ */
@media (max-width: 1024px) {
  [data-design="b"].dq-design .ps-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--ps-course);
  }
  [data-design="b"].dq-design .ps-about__content {
    grid-template-columns: 1fr;
    gap: var(--ps-bay);
  }
}
@media (max-width: 720px) {
  [data-design="b"].dq-design .ps-service-row {
    grid-template-columns: auto 1fr;
    gap: var(--ps-course);
  }
  [data-design="b"].dq-design .ps-service-row__metric {
    grid-column: 1 / -1;
  }
  [data-design="b"].dq-design .ps-funnel__choices {
    grid-template-columns: 1fr;
  }
  [data-design="b"].dq-design .ps-footer__grid {
    grid-template-columns: 1fr;
  }
  [data-design="b"].dq-design .ps-hero__bay {
    padding-right: var(--ps-course);
  }
}
@media (max-width: 560px) {
  [data-design="b"].dq-design .ps-logo {
    font-size: 20px;
  }
  [data-design="b"].dq-design .ps-hero__cta-row {
    flex-direction: column;
  }
  [data-design="b"].dq-design .ps-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ================================================================
   REDUCED MOTION
================================================================ */
@media (prefers-reduced-motion: reduce) {
  [data-design="b"] .ps-header__stripe,
  [data-design="b"] .ps-hero__stripe {
    animation: none;
  }
  [data-design="b"] .ps-thermal-field {
    animation: none;
  }
  [data-design="b"] .ps-isotherms {
    animation: none;
  }
  [data-design="b"] .ps-shimmer-a,
  [data-design="b"] .ps-shimmer-b {
    animation: none;
  }
  /* Airflow stills to a valid static thermal frame (not blank) */
  [data-design="b"] .ps-air-stream,
  [data-design="b"] .ps-air-stream--mid-a,
  [data-design="b"] .ps-air-stream--mid-b,
  [data-design="b"] .ps-air-stream--mid-c,
  [data-design="b"] .ps-air-stream--about-a,
  [data-design="b"] .ps-air-stream--about-b {
    animation: none;
    transform: translateX(30%);
    opacity: 0.3;
  }
  [data-design="b"] .ps-services__columns {
    animation: none;
  }
  /* Pointer blocks snap to final position */
  [data-design="b"] .ps-pointer__block,
  [data-design="b"] .ps-pointer__chev,
  [data-design="b"] .ps-pointer__label {
    animation: none;
    opacity: 1;
    transform: none;
  }
  [data-design="b"] .ps-cta::before {
    animation: none;
  }
  [data-design="b"] .ps-funnel__step[data-active="true"] {
    animation: none;
    opacity: 1;
    transform: none;
  }
  [data-design="b"] .ps-funnel__ledger-list dd[data-fresh="true"] {
    animation: none;
    opacity: 1;
    transform: none;
  }
  [data-design="b"] .ps-funnel__stamp {
    animation: none;
    opacity: 1;
    transform: none;
  }
  [data-design="b"] .ps-drawer {
    transition: none;
  }
}

/* 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; }
