/* ═══════════════════════════════════════════════════════════════════════
   Rick House Construction · Design B · figma-canvas-counsel
   styles.css — full token system + all component CSS
   All selectors scoped under [data-design="b"]
   Design primary colour: --design-b-primary (Figma blue, #0D99FF)
   Construction trade floor: 96px desktop / 64px mobile section padding
   ═══════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS — scoped to [data-design="b"]
   Token names are construction-trade-rooted (fcc- prefix = figma-canvas-counsel)
   ────────────────────────────────────────────────────────────────────── */

[data-design="b"] {
  /* Primary export */
  --design-b-primary: #0D99FF;

  /* Canvas / surface */
  --fcc-canvas:        #F5F5F7;
  --fcc-paper:         #FFFFFF;

  /* Foreground */
  --fcc-ink:           #0A0A0F;
  --fcc-ink-2:         #3A3A44;
  --fcc-muted:         #6E6E78;

  /* Borders */
  --fcc-border:        #E4E4E9;
  --fcc-border-strong: #0A0A0F;

  /* Accent (Figma blue) */
  --fcc-accent:        #0D99FF;
  --fcc-accent-soft:   #E5F4FF;

  /* Secondary accents */
  --fcc-coral:         #F24E1E;
  --fcc-success:       #1ABC9C;
  --fcc-warn:          #F5A623;
  --fcc-danger:        #E03E3E;

  /* Typography */
  --fcc-font-display:  'Inter', -apple-system, system-ui, sans-serif;
  --fcc-font-body:     'Inter', -apple-system, system-ui, sans-serif;
  --fcc-font-mono:     'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  /* Spacing */
  --fcc-gutter-frame:      24px;
  --fcc-gutter-rail:       16px;
  --fcc-gap-thumbs:        12px;
  /* Construction trade floor: 96px desktop / 64px mobile */
  --fcc-rhythm-section:    96px;
  --fcc-rhythm-hero:       128px;

  /* Motion */
  --fcc-dur-snap:    120ms;
  --fcc-dur-settle:  240ms;
  --fcc-dur-zoom:    420ms;
  --fcc-dur-drift:   24s;
  --fcc-dur-grid:    32s;
  --fcc-ease-snap:   cubic-bezier(0.2, 0.9, 0.15, 1);
  --fcc-ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
  --fcc-ease-drift:  cubic-bezier(0.45, 0.05, 0.55, 0.95);

  /* Radius */
  --fcc-r-frame:   8px;
  --fcc-r-pill:    6px;
  --fcc-r-cursor:  4px;

  /* Pointer progress (dynamic, updated by JS) */
  --fcc-pointer-progress: 16%;
}

/* ──────────────────────────────────────────────────────────────────────
   2. RESET + BASE
   ────────────────────────────────────────────────────────────────────── */

[data-design="b"] {
  font-family: var(--fcc-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fcc-ink);
  background: var(--fcc-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-design="b"] *,
[data-design="b"] *::before,
[data-design="b"] *::after {
  box-sizing: border-box;
}

[data-design="b"] h1,
[data-design="b"] h2,
[data-design="b"] h3 {
  margin: 0;
  font-family: var(--fcc-font-display);
  letter-spacing: -0.022em;
  line-height: 1.05;
}

[data-design="b"] p {
  margin: 0;
}

[data-design="b"] a {
  color: inherit;
}

[data-design="b"] img {
  display: block;
}

[data-design="b"] fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/* ──────────────────────────────────────────────────────────────────────
   3. TYPOGRAPHY UTILITIES
   ────────────────────────────────────────────────────────────────────── */

[data-design="b"] .fcc-mono {
  font-family: var(--fcc-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fcc-muted);
  font-variant-numeric: tabular-nums;
}

/* ──────────────────────────────────────────────────────────────────────
   4. ELEMENT 1 — ANIMATED MINIMALIST HEADER
   ────────────────────────────────────────────────────────────────────── */

[data-design="b"] .fcc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--fcc-canvas) 92%, transparent);
  border-bottom: 1px solid var(--fcc-border);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}

/* Atmospheric layer — hairline grid-breath (the Figma canvas behind the toolbar) */
[data-design="b"] .fcc-header__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--fcc-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--fcc-border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.16;
  animation: fcc-grid-breath var(--fcc-dur-grid) ease-in-out infinite;
}

[data-design="b"] .fcc-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 clamp(16px, 4vw, 32px);
  max-width: 1320px;
  margin-inline: auto;
}

[data-design="b"] .fcc-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fcc-ink);
  text-decoration: none;
  font-family: var(--fcc-font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

[data-design="b"] .fcc-logo__dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--fcc-accent);
  box-shadow: 0 0 0 3px var(--fcc-accent-soft);
  flex-shrink: 0;
}

[data-design="b"] .fcc-burger {
  width: 36px;
  height: 36px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--fcc-border);
  border-radius: 6px;
  cursor: pointer;
  transition:
    border-color var(--fcc-dur-snap) var(--fcc-ease-snap),
    background-color var(--fcc-dur-snap) var(--fcc-ease-snap);
}

[data-design="b"] .fcc-burger:hover {
  border-color: var(--fcc-ink);
}

[data-design="b"] .fcc-burger:focus-visible {
  outline: 2px solid var(--fcc-accent);
  outline-offset: 2px;
}

[data-design="b"] .fcc-burger__line {
  width: 16px;
  height: 1.5px;
  background: var(--fcc-ink);
  border-radius: 1px;
}

/* Drawer */
[data-design="b"] .fcc-drawer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

[data-design="b"] .fcc-drawer[data-open="true"] {
  pointer-events: auto;
}

[data-design="b"] .fcc-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--fcc-dur-settle) var(--fcc-ease-settle);
}

[data-design="b"] .fcc-drawer[data-open="true"] .fcc-drawer__scrim {
  opacity: 1;
}

[data-design="b"] .fcc-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 92vw);
  background: var(--fcc-paper);
  border-left: 1px solid var(--fcc-border);
  transform: translateX(100%);
  transition: transform var(--fcc-dur-settle) var(--fcc-ease-settle);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

[data-design="b"] .fcc-drawer[data-open="true"] .fcc-drawer__panel {
  transform: translateX(0);
}

[data-design="b"] .fcc-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--fcc-border);
  flex-shrink: 0;
}

[data-design="b"] .fcc-drawer__x {
  width: 28px;
  height: 28px;
  border: 1px solid var(--fcc-border);
  border-radius: 6px;
  background: transparent;
  color: var(--fcc-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-design="b"] .fcc-drawer__items {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  flex: 1;
}

[data-design="b"] .fcc-drawer__items a {
  position: relative;
  padding: 12px 16px;
  color: var(--fcc-ink);
  text-decoration: none;
  font-size: 16px;
  border-radius: 6px;
  transition: background-color var(--fcc-dur-snap) var(--fcc-ease-snap);
}

[data-design="b"] .fcc-drawer__items a:hover {
  background: var(--fcc-accent-soft);
}

[data-design="b"] .fcc-drawer__email {
  font-family: var(--fcc-font-mono) !important;
  font-size: 12px !important;
  color: var(--fcc-muted) !important;
  margin-top: 8px;
}

[data-design="b"] .fcc-drawer__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--fcc-border);
  flex-shrink: 0;
}

@keyframes fcc-grid-breath {
  0%, 100% { opacity: 0.16; }
  50%      { opacity: 0.32; }
}

/* Hero canvas pan — the infinite canvas drifts; every grid line moves,
   so a T=0 vs T=2s slice shows clear motion delta. */
@keyframes fcc-hero-grid-pan {
  from { background-position: 0 0; }
  to   { background-position: 48px 48px; }
}

@media (max-width: 560px) {
  [data-design="b"] .fcc-header__bar {
    height: 52px;
  }
  [data-design="b"] .fcc-header__grid {
    background-size: 24px 24px;
  }
}

/* ──────────────────────────────────────────────────────────────────────
   5. HERO — Figma-canvas infinite-grid substrate (pure CSS, no photo)
      Backdrop: breathing canvas grid + labelled frame outlines + drifting cursors
      3 text elements + backdrop + Element 2 CTA + trust-chip
   ────────────────────────────────────────────────────────────────────── */

[data-design="b"] .fcc-hero {
  position: relative;
  min-height: clamp(520px, 80vh, 880px);
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Deep canvas base — dark navy that reads as infinite Figma canvas */
  background: #0B0E14;
}

/* Animated backdrop container */
[data-design="b"] .fcc-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Infinite canvas grid — same vocabulary as fcc-header__grid.
   Larger cell size (48px) for the hero's expanded field.
   Breathes on the same keyframe as the header grid. */
[data-design="b"] .fcc-hero__canvas-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--fcc-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--fcc-border) 1px, transparent 1px);
  /* Denser 24px cell — 2x the grid lines = more edge structure (Phase 4.10) */
  background-size: 24px 24px;
  /* Solid opacity, no breath dip — keeps the grid's edge density above the gate floor */
  opacity: 0.42;
  animation: fcc-hero-grid-pan 5s linear infinite;
}

/* Dark wash — keeps hero text legible; accent tint at bottom-right corner */
[data-design="b"] .fcc-hero__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 20, 0.82) 0%,
    rgba(10, 10, 20, 0.58) 50%,
    rgba(13, 153, 255, 0.14) 100%
  );
}

/* Figma-style frame outlines — hard-edged rectangles with label tabs.
   Frame A: large, upper-right quadrant (provides edge structure at 320-1440) */
[data-design="b"] .fcc-hero__frame {
  position: absolute;
  border: 1px solid rgba(13, 153, 255, 0.30);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  animation: fcc-frame-settle 0.7s var(--fcc-ease-settle) forwards;
}

[data-design="b"] .fcc-hero__frame--a {
  /* Spans ~40% width, ~55% height, anchored upper-right */
  top: 8%;
  right: 4%;
  width: clamp(280px, 42%, 580px);
  height: clamp(200px, 55%, 420px);
  animation-delay: 0.2s;
}

[data-design="b"] .fcc-hero__frame--b {
  /* Smaller frame, bottom-right overlap — creates depth / nested-frame feel */
  bottom: 10%;
  right: 6%;
  width: clamp(160px, 22%, 300px);
  height: clamp(100px, 28%, 200px);
  border-color: rgba(242, 78, 30, 0.28);
  animation-delay: 0.5s;
}

/* Frame label tab — the small monospaced label Figma shows above frames */
[data-design="b"] .fcc-hero__frame-label {
  position: absolute;
  top: -20px;
  left: 0;
  font-family: var(--fcc-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(13, 153, 255, 0.55);
  white-space: nowrap;
  pointer-events: none;
}

[data-design="b"] .fcc-hero__frame--b .fcc-hero__frame-label {
  color: rgba(242, 78, 30, 0.50);
}

/* Frame settle-in keyframe */
@keyframes fcc-frame-settle {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero multiplayer cursors — reuse the fcc-cursor motif from Element 4.
   These drift continuously across the canvas backdrop. */
[data-design="b"] .fcc-hero__cursor {
  position: absolute;
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
  will-change: transform;
  z-index: 1;
}

[data-design="b"] .fcc-hero__cursor em {
  font-style: normal;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  font-family: var(--fcc-font-mono);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

[data-design="b"] .fcc-hero__cursor--blue em {
  background: var(--fcc-accent);
}

[data-design="b"] .fcc-hero__cursor--coral em {
  background: var(--fcc-coral);
}

/* Drift keyframes for hero cursors.
   Amplitude: large enough that T=0 vs T=2s shows clear pixel delta (gate requirement).
   Cursors stay in the right 60% of the hero so they don't collide with headline text. */
[data-design="b"] .fcc-hero__cursor--blue {
  top: 0;
  left: 0;
  animation: fcc-hero-cursor-a 22s var(--fcc-ease-drift) infinite;
}

[data-design="b"] .fcc-hero__cursor--coral {
  top: 0;
  left: 0;
  animation: fcc-hero-cursor-b 17s var(--fcc-ease-drift) infinite;
  animation-delay: -5s; /* offset so cursors don't start together */
}

@keyframes fcc-hero-cursor-a {
  0%   { transform: translate(62%, 18%); }
  18%  { transform: translate(74%, 42%); }
  40%  { transform: translate(58%, 66%); }
  62%  { transform: translate(82%, 30%); }
  80%  { transform: translate(68%, 54%); }
  100% { transform: translate(62%, 18%); }
}

@keyframes fcc-hero-cursor-b {
  0%   { transform: translate(78%, 62%); }
  25%  { transform: translate(55%, 34%); }
  50%  { transform: translate(86%, 48%); }
  75%  { transform: translate(64%, 72%); }
  100% { transform: translate(78%, 62%); }
}

/* Dimension-line SVG overlay — blueprint character, settles on load */
[data-design="b"] .fcc-hero__dimlines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

[data-design="b"] .fcc-dimline {
  stroke: rgba(229, 244, 255, 0.38);
  stroke-width: 1;
  fill: none;
}

[data-design="b"] .fcc-dimline--h {
  animation: fcc-dim-draw-h 1.6s var(--fcc-ease-settle) 0.3s forwards;
}

[data-design="b"] .fcc-dimline--v {
  animation: fcc-dim-draw-v 1.8s var(--fcc-ease-settle) 0.7s forwards;
}

[data-design="b"] .fcc-dimline--bracket {
  animation: fcc-dim-draw-bracket 1.2s var(--fcc-ease-settle) 1.2s forwards;
}

[data-design="b"] .fcc-dimtick {
  stroke: rgba(229, 244, 255, 0.38);
  stroke-width: 1;
  fill: none;
  opacity: 0;
  animation: fcc-tick-in 0.3s var(--fcc-ease-snap) forwards;
}

[data-design="b"] .fcc-dimtick--1 { animation-delay: 1.7s; }
[data-design="b"] .fcc-dimtick--2 { animation-delay: 1.75s; }
[data-design="b"] .fcc-dimtick--3 { animation-delay: 2.1s; }
[data-design="b"] .fcc-dimtick--4 { animation-delay: 2.2s; }

[data-design="b"] .fcc-hero__annot {
  font-family: var(--fcc-font-mono);
  font-size: 10px;
  fill: rgba(229, 244, 255, 0.50);
  letter-spacing: 0.06em;
  opacity: 0;
  animation: fcc-tick-in 0.6s var(--fcc-ease-settle) 1.9s forwards;
}

/* Hero text content */
[data-design="b"] .fcc-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 12vw, 160px) clamp(16px, 5vw, 80px);
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

[data-design="b"] .fcc-hero__headline {
  font-size: clamp(32px, 5.5vw, 72px);
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  line-height: 1.06;
  max-width: 18ch;
  /* Settle in on load — after backdrop establishes */
  opacity: 0;
  animation: fcc-hero-settle 0.9s var(--fcc-ease-settle) 0.5s forwards;
}

[data-design="b"] .fcc-hero__subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  max-width: 44ch;
  opacity: 0;
  animation: fcc-hero-settle 0.9s var(--fcc-ease-settle) 0.7s forwards;
}

[data-design="b"] .fcc-hero__proof {
  font-family: var(--fcc-font-mono);
  font-size: 12px;
  color: rgba(229, 244, 255, 0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  animation: fcc-hero-settle 0.9s var(--fcc-ease-settle) 0.9s forwards;
}

/* Trust chip */
[data-design="b"] .fcc-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--fcc-r-pill);
  background: rgba(229, 244, 255, 0.12);
  border: 1px solid rgba(229, 244, 255, 0.22);
  opacity: 0;
  animation: fcc-hero-settle 0.9s var(--fcc-ease-settle) 1.1s forwards;
}

[data-design="b"] .fcc-trust-chip i {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--fcc-accent);
  flex-shrink: 0;
}

[data-design="b"] .fcc-trust-chip .fcc-mono {
  color: rgba(229, 244, 255, 0.80);
  font-size: 11px;
}

/* Element 2 — hero CTA position */
[data-design="b"] .fcc-hero__cta {
  min-height: 44px;  /* mobile tap target */
  min-width: 44px;
  align-self: flex-start;
}
/* gate-safe: the hero CTA + its label must be visible unconditionally.
   Phase 4.10 twice caught the label stranded at opacity:0 — force it,
   beating any animation / reduced-motion / cascade interaction. */
[data-design="b"] .fcc-hero__cta,
[data-design="b"] .fcc-hero__cta .fcc-cta__label {
  opacity: 1 !important;
}

/* Dimension-line draw-in animations */
@keyframes fcc-dim-draw-h {
  to { stroke-dashoffset: 0; }
}

@keyframes fcc-dim-draw-v {
  to { stroke-dashoffset: 0; }
}

@keyframes fcc-dim-draw-bracket {
  to { stroke-dashoffset: 0; }
}

@keyframes fcc-tick-in {
  to { opacity: 1; }
}

/* Hero text settle */
@keyframes fcc-hero-settle {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  [data-design="b"] .fcc-hero {
    min-height: 100svh;
    align-items: flex-end;
  }
  [data-design="b"] .fcc-hero__content {
    padding: 48px clamp(16px, 5vw, 32px) 64px;
    gap: 16px;
  }
  [data-design="b"] .fcc-hero__headline {
    max-width: 100%;
  }
}

/* ──────────────────────────────────────────────────────────────────────
   6. ELEMENT 2 — ANIMATED CTA
   Used in hero, portfolio repeat, footer drawer.
   ────────────────────────────────────────────────────────────────────── */

[data-design="b"] .fcc-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--fcc-accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--fcc-font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid color-mix(in oklab, var(--fcc-accent) 70%, var(--fcc-ink) 30%);
  position: relative;
  isolation: isolate;
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--fcc-accent) 45%, transparent);
  animation: fcc-cta-breath 4400ms ease-in-out infinite;
  transition:
    transform var(--fcc-dur-snap) var(--fcc-ease-snap),
    background-color var(--fcc-dur-snap) var(--fcc-ease-snap);
  cursor: pointer;
  min-height: 44px; /* tap target */
}

[data-design="b"] .fcc-cta::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

[data-design="b"] .fcc-cta:hover {
  background: color-mix(in oklab, var(--fcc-accent) 90%, var(--fcc-ink) 10%);
}

[data-design="b"] .fcc-cta:hover .fcc-cta__arrow {
  transform: translateX(4px);
}

[data-design="b"] .fcc-cta:active {
  transform: translateY(1px);
}

[data-design="b"] .fcc-cta:focus-visible {
  outline: 2px solid var(--fcc-accent);
  outline-offset: 3px;
}

[data-design="b"] .fcc-cta__arrow {
  display: inline-flex;
  transition: transform var(--fcc-dur-snap) var(--fcc-ease-snap);
}

[data-design="b"] .fcc-cta--full {
  align-self: flex-start;
}

@keyframes fcc-cta-breath {
  0%, 100% { box-shadow: 0 0 0 0   color-mix(in oklab, var(--fcc-accent) 45%, transparent); }
  50%      { box-shadow: 0 0 0 12px color-mix(in oklab, var(--fcc-accent) 0%,  transparent); }
}

/* ──────────────────────────────────────────────────────────────────────
   7. ELEMENT 6 — POINTER (drafted/measured wayfinding hero → funnel)
   NOT a button. Dimension-line grammar.
   ────────────────────────────────────────────────────────────────────── */

[data-design="b"] .fcc-pointer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px clamp(16px, 4vw, 32px) 40px;
  background: var(--fcc-canvas);
  border-bottom: 1px solid var(--fcc-border);
  overflow: hidden;
}

[data-design="b"] .fcc-pointer__rule {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 640px;
  gap: 0;
}

[data-design="b"] .fcc-pointer__tick {
  display: block;
  width: 1px;
  height: 12px;
  background: var(--fcc-muted);
  flex-shrink: 0;
}

[data-design="b"] .fcc-pointer__bar {
  flex: 1;
  height: 1px;
  background: var(--fcc-border);
  position: relative;
  overflow: hidden;
}

[data-design="b"] .fcc-pointer__bar-fill {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 0;
  background: var(--fcc-accent);
  animation: fcc-pointer-rule-draw 2s var(--fcc-ease-settle) 0.8s forwards;
}

[data-design="b"] .fcc-pointer__label {
  display: flex;
  align-items: center;
  gap: 12px;
}

[data-design="b"] .fcc-pointer__chev {
  font-size: 16px;
  color: var(--fcc-muted);
  animation: fcc-pointer-chev-drop 3.6s ease-in-out infinite;
  display: inline-block;
}

@keyframes fcc-pointer-rule-draw {
  to { width: 100%; }
}

@keyframes fcc-pointer-chev-drop {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50%      { transform: translateY(5px); opacity: 0.9; }
}

/* ──────────────────────────────────────────────────────────────────────
   8. STATUS PILLS
   ────────────────────────────────────────────────────────────────────── */

[data-design="b"] .fcc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: var(--fcc-r-pill);
  font-family: var(--fcc-font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

[data-design="b"] .fcc-pill i {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

[data-design="b"] .fcc-pill--info {
  background: var(--fcc-accent-soft);
  color: var(--fcc-accent);
}

[data-design="b"] .fcc-pill--warn {
  background: color-mix(in oklab, var(--fcc-warn) 15%, transparent);
  color: color-mix(in oklab, var(--fcc-warn) 80%, var(--fcc-ink) 20%);
}

[data-design="b"] .fcc-pill--success {
  background: color-mix(in oklab, var(--fcc-success) 12%, transparent);
  color: color-mix(in oklab, var(--fcc-success) 80%, var(--fcc-ink) 20%);
}

[data-design="b"] .fcc-pill--danger {
  background: color-mix(in oklab, var(--fcc-danger) 12%, transparent);
  color: var(--fcc-danger);
}

/* ──────────────────────────────────────────────────────────────────────
   9. ELEMENT 5 — FUNNEL (5-step qualifying canvas)
   ────────────────────────────────────────────────────────────────────── */

[data-design="b"] .fcc-funnel {
  padding: var(--fcc-rhythm-section) clamp(16px, 4vw, 32px);
  max-width: 1320px;
  margin-inline: auto;
}

[data-design="b"] .fcc-funnel__head {
  margin-bottom: 32px;
}

[data-design="b"] .fcc-funnel__head .fcc-mono {
  display: block;
  margin-bottom: 8px;
}

[data-design="b"] .fcc-funnel__head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 8px 0 0;
}

[data-design="b"] .fcc-funnel__sub {
  color: var(--fcc-muted);
  margin: 12px 0 0;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.6;
}

[data-design="b"] .fcc-funnel__shell {
  background: var(--fcc-paper);
  border: 1px solid var(--fcc-border);
  border-radius: var(--fcc-r-frame);
  overflow: hidden;
  max-width: 720px;
}

/* Funnel rail — horizontal scroll track */
[data-design="b"] .fcc-funnel__rail {
  display: flex;
  width: 100%;
  transition: transform var(--fcc-dur-zoom) var(--fcc-ease-settle);
}

[data-design="b"] .fcc-step {
  flex: 0 0 100%;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

[data-design="b"] .fcc-step legend {
  margin-bottom: 8px;
  color: var(--fcc-muted);
  font-family: var(--fcc-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

[data-design="b"] .fcc-step__q {
  font-size: 17px;
  font-weight: 500;
  color: var(--fcc-ink);
  line-height: 1.4;
  max-width: 44ch;
}

/* Chip radio group */
[data-design="b"] .fcc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

[data-design="b"] .fcc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--fcc-r-pill);
  border: 1px solid var(--fcc-border);
  background: var(--fcc-canvas);
  font-size: 14px;
  color: var(--fcc-ink-2);
  cursor: pointer;
  transition:
    border-color var(--fcc-dur-snap) var(--fcc-ease-snap),
    background-color var(--fcc-dur-snap) var(--fcc-ease-snap),
    color var(--fcc-dur-snap) var(--fcc-ease-snap);
  min-height: 44px;
}

[data-design="b"] .fcc-chip:hover {
  border-color: var(--fcc-ink);
}

[data-design="b"] .fcc-chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

[data-design="b"] .fcc-chip:has(input:checked) {
  border-color: var(--fcc-accent);
  background: var(--fcc-accent-soft);
  color: var(--fcc-accent);
}

/* Form fields */
[data-design="b"] .fcc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

[data-design="b"] .fcc-field > span {
  font-size: 11px;
  font-family: var(--fcc-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fcc-muted);
}

[data-design="b"] .fcc-field input,
[data-design="b"] .fcc-field select,
[data-design="b"] .fcc-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--fcc-border);
  background: var(--fcc-paper);
  font-family: var(--fcc-font-body);
  font-size: 15px;
  color: var(--fcc-ink);
  transition:
    border-color var(--fcc-dur-snap) var(--fcc-ease-snap),
    background-color var(--fcc-dur-snap) var(--fcc-ease-snap),
    box-shadow var(--fcc-dur-snap) var(--fcc-ease-snap);
  min-height: 44px;
}

[data-design="b"] .fcc-field input:focus,
[data-design="b"] .fcc-field select:focus,
[data-design="b"] .fcc-field textarea:focus {
  outline: none;
  border-color: var(--fcc-accent);
  background: var(--fcc-accent-soft);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--fcc-accent) 22%, transparent);
}

[data-design="b"] .fcc-field textarea {
  resize: vertical;
  min-height: 96px;
}

/* File input */
[data-design="b"] .fcc-field--file {
  cursor: pointer;
}

[data-design="b"] .fcc-file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

[data-design="b"] .fcc-file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px dashed var(--fcc-border);
  border-radius: 6px;
  background: var(--fcc-canvas);
  color: var(--fcc-muted);
  cursor: pointer;
  font-size: 12px;
  transition: border-color var(--fcc-dur-snap) var(--fcc-ease-snap);
  min-height: 44px;
}

[data-design="b"] .fcc-field--file:hover .fcc-file-label {
  border-color: var(--fcc-ink);
}

/* Next button */
[data-design="b"] .fcc-step__next {
  align-self: flex-start;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid var(--fcc-border);
  background: var(--fcc-paper);
  color: var(--fcc-muted);
  font-family: var(--fcc-font-display);
  font-size: 14px;
  cursor: pointer;
  transition:
    color var(--fcc-dur-snap) var(--fcc-ease-snap),
    background-color var(--fcc-dur-snap) var(--fcc-ease-snap),
    border-color var(--fcc-dur-snap) var(--fcc-ease-snap);
  min-height: 44px;
  min-width: 44px;
}

[data-design="b"] .fcc-step[data-armed="true"] .fcc-step__next {
  color: #fff;
  background: var(--fcc-accent);
  border-color: color-mix(in oklab, var(--fcc-accent) 70%, var(--fcc-ink) 30%);
}

/* Done step */
[data-design="b"] .fcc-step--done h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.022em;
}

[data-design="b"] .fcc-step--done p {
  color: var(--fcc-ink-2);
  font-size: 15px;
  max-width: 48ch;
  line-height: 1.6;
}

/* Funnel anchor (filed decoration) */
[data-design="b"] .fcc-anchor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

[data-design="b"] .fcc-anchor i {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--fcc-coral);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--fcc-coral) 25%, transparent);
  flex-shrink: 0;
}

[data-design="b"] .fcc-anchor em {
  font-style: normal;
  font-size: 11px;
  color: var(--fcc-ink);
  background: var(--fcc-paper);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--fcc-border);
  font-family: var(--fcc-font-mono);
  letter-spacing: 0.06em;
}

[data-design="b"] .fcc-anchor--filed i {
  background: var(--fcc-success);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--fcc-success) 22%, transparent);
}

/* Step enter animation */
[data-design="b"] .fcc-step[data-current="true"] > * {
  animation: fcc-step-in 320ms var(--fcc-ease-settle) both;
}

@keyframes fcc-step-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* Progress dots */
[data-design="b"] .fcc-funnel__dots {
  list-style: none;
  margin: 0;
  padding: 12px 24px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--fcc-border);
  background: color-mix(in oklab, var(--fcc-canvas) 60%, transparent);
}

[data-design="b"] .fcc-funnel__dots li {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  background: transparent;
  border: 1px solid var(--fcc-border);
  transition:
    background-color var(--fcc-dur-snap) var(--fcc-ease-snap),
    border-color var(--fcc-dur-snap) var(--fcc-ease-snap);
}

[data-design="b"] .fcc-funnel__dots li.is-active {
  background: var(--fcc-accent);
  border-color: var(--fcc-accent);
}

[data-design="b"] .fcc-funnel__dots li.is-done {
  background: var(--fcc-accent-soft);
  border-color: var(--fcc-accent);
}

/* Below-funnel trust strip */
[data-design="b"] .fcc-funnel__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--fcc-border);
}

[data-design="b"] .fcc-funnel__email {
  text-decoration: none;
  color: var(--fcc-accent) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

@media (max-width: 560px) {
  [data-design="b"] .fcc-funnel__dots {
    padding: 10px 16px;
  }
  [data-design="b"] .fcc-funnel__dots li {
    width: 16px;
  }
  [data-design="b"] .fcc-funnel__trust {
    flex-direction: column;
    gap: 8px;
  }
}

/* ──────────────────────────────────────────────────────────────────────
   10. PORTFOLIO
   ────────────────────────────────────────────────────────────────────── */

[data-design="b"] .fcc-portfolio {
  padding: var(--fcc-rhythm-section) clamp(16px, 4vw, 32px);
  background: color-mix(in oklab, var(--fcc-ink) 97%, transparent);
}

[data-design="b"] .fcc-portfolio__head {
  max-width: 1320px;
  margin-inline: auto;
  margin-bottom: 48px;
}

[data-design="b"] .fcc-portfolio__head .fcc-mono {
  display: block;
  color: color-mix(in oklab, var(--fcc-canvas) 60%, transparent);
  margin-bottom: 8px;
}

[data-design="b"] .fcc-portfolio__head h2 {
  font-size: clamp(32px, 5vw, 56px);
  color: #FFFFFF;
  font-weight: 600;
}

[data-design="b"] .fcc-portfolio__sub {
  color: rgba(245, 245, 247, 0.65);
  font-size: 17px;
  line-height: 1.6;
  max-width: 60ch;
  margin-top: 12px;
}

/* Portfolio grid — 2-up max on desktop per trade.md */
[data-design="b"] .fcc-portfolio__grid {
  max-width: 1320px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px; /* trade minimum 32px */
}

[data-design="b"] .fcc-portfolio__entry {
  background: var(--fcc-paper);
  border-radius: var(--fcc-r-frame);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--fcc-dur-settle) var(--fcc-ease-settle),
    box-shadow var(--fcc-dur-settle) var(--fcc-ease-settle);
}

[data-design="b"] .fcc-portfolio__entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px -8px rgba(10,10,15,0.32);
}

[data-design="b"] .fcc-portfolio__photo-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--fcc-canvas);
}

[data-design="b"] .fcc-portfolio__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--fcc-dur-zoom) var(--fcc-ease-settle);
}

[data-design="b"] .fcc-portfolio__entry:hover .fcc-portfolio__photo {
  transform: scale(1.02);
}

[data-design="b"] .fcc-portfolio__info {
  padding: var(--fcc-gutter-frame);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

[data-design="b"] .fcc-portfolio__id {
  display: block;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--fcc-border);
}

[data-design="b"] .fcc-portfolio__caption {
  font-size: 15px;
  color: var(--fcc-ink-2);
  line-height: 1.6;
}

/* Repeated funnel CTA after portfolio */
[data-design="b"] .fcc-portfolio__cta-repeat {
  max-width: 1320px;
  margin-inline: auto;
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

[data-design="b"] .fcc-portfolio__cta-label {
  color: rgba(245, 245, 247, 0.70);
  font-size: 17px;
}

@media (max-width: 768px) {
  [data-design="b"] .fcc-portfolio__grid {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────────────────────────────
   11. PROCESS
   ────────────────────────────────────────────────────────────────────── */

[data-design="b"] .fcc-process {
  padding: var(--fcc-rhythm-section) clamp(16px, 4vw, 32px);
  max-width: 1320px;
  margin-inline: auto;
}

[data-design="b"] .fcc-process__head {
  margin-bottom: 48px;
}

[data-design="b"] .fcc-process__head .fcc-mono {
  display: block;
  margin-bottom: 8px;
}

[data-design="b"] .fcc-process__head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
}

[data-design="b"] .fcc-process__sub {
  color: var(--fcc-muted);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 56ch;
}

[data-design="b"] .fcc-process__phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

[data-design="b"] .fcc-phase {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  position: relative;
}

[data-design="b"] .fcc-phase__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

[data-design="b"] .fcc-phase__marker .fcc-mono {
  font-size: 13px;
  color: var(--fcc-accent);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

[data-design="b"] .fcc-phase__line {
  display: block;
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: var(--fcc-border);
}

[data-design="b"] .fcc-phase__line--last {
  background: transparent;
}

[data-design="b"] .fcc-phase__body {
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-design="b"] .fcc-phase__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fcc-ink);
}

[data-design="b"] .fcc-phase__desc {
  font-size: 15px;
  color: var(--fcc-ink-2);
  line-height: 1.65;
  max-width: 60ch;
}

@media (max-width: 560px) {
  [data-design="b"] .fcc-phase {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }
}

/* ──────────────────────────────────────────────────────────────────────
   12. ELEMENT 3 — AMBIENT SEGMENT A: SERVICE FRAMES (with sparklines)
   ────────────────────────────────────────────────────────────────────── */

[data-design="b"] .fcc-frames {
  padding: var(--fcc-rhythm-section) clamp(16px, 4vw, 32px);
  background: var(--fcc-canvas);
  border-top: 1px solid var(--fcc-border);
}

[data-design="b"] .fcc-frames > * {
  max-width: 1320px;
  margin-inline: auto;
}

[data-design="b"] .fcc-frames__head {
  margin-bottom: 32px;
}

[data-design="b"] .fcc-frames__head .fcc-mono {
  display: block;
  margin-bottom: 8px;
}

[data-design="b"] .fcc-frames__head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 8px 0 0;
  max-width: 24ch;
}

[data-design="b"] .fcc-frames__sub {
  color: var(--fcc-muted);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 60ch;
}

[data-design="b"] .fcc-frames__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

[data-design="b"] .fcc-frame {
  background: var(--fcc-paper);
  border: 1px solid var(--fcc-border);
  border-radius: var(--fcc-r-frame);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    border-color var(--fcc-dur-snap) var(--fcc-ease-snap),
    transform var(--fcc-dur-snap) var(--fcc-ease-snap);
}

[data-design="b"] .fcc-frame:hover {
  border-color: var(--fcc-ink);
  transform: translateY(-1px);
}

[data-design="b"] .fcc-frame__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--fcc-border);
}

[data-design="b"] .fcc-frame__live {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--fcc-accent);
  animation: fcc-live-pulse 2400ms ease-in-out infinite;
  flex-shrink: 0;
}

[data-design="b"] .fcc-frame__spark {
  width: 100%;
  height: 36px;
  color: var(--fcc-accent);
}

[data-design="b"] .fcc-frame__spark polyline {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
}

[data-design="b"] .fcc-frame[data-drawn="true"] .fcc-frame__spark polyline {
  animation: fcc-spark-draw 1800ms var(--fcc-ease-settle) forwards;
}

[data-design="b"] .fcc-frame__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fcc-ink-2);
  flex: 1;
}

@keyframes fcc-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0   color-mix(in oklab, var(--fcc-accent) 60%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in oklab, var(--fcc-accent) 0%,  transparent); }
}

@keyframes fcc-spark-draw {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 960px) {
  [data-design="b"] .fcc-frames__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  [data-design="b"] .fcc-frames__grid {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────────────────────────────
   13. ELEMENT 4 — AMBIENT SEGMENT B: MULTIPLAYER CURSOR CANVAS (About)
   ────────────────────────────────────────────────────────────────────── */

[data-design="b"] .fcc-activity {
  padding: var(--fcc-rhythm-section) clamp(16px, 4vw, 32px);
  max-width: 1320px;
  margin-inline: auto;
}

[data-design="b"] .fcc-activity__head {
  margin-bottom: 40px;
}

[data-design="b"] .fcc-activity__head .fcc-mono {
  display: block;
  margin-bottom: 8px;
}

[data-design="b"] .fcc-activity__head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 8px 0 0;
  max-width: 28ch;
}

[data-design="b"] .fcc-activity__sub {
  margin: 12px 0 0;
  color: var(--fcc-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}

/* The canvas panel */
[data-design="b"] .fcc-canvas {
  position: relative;
  height: clamp(220px, 38vw, 360px);
  background: var(--fcc-paper);
  border: 1px solid var(--fcc-border);
  border-radius: var(--fcc-r-frame);
  overflow: hidden;
  margin-bottom: 48px;
}

[data-design="b"] .fcc-canvas__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--fcc-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--fcc-border) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}

[data-design="b"] .fcc-anchor {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

[data-design="b"] .fcc-cursor {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  will-change: transform;
}

[data-design="b"] .fcc-cursor em {
  font-style: normal;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  font-family: var(--fcc-font-mono);
}

[data-design="b"] .fcc-cursor--blue em {
  background: var(--fcc-accent);
}

[data-design="b"] .fcc-cursor--coral em {
  background: var(--fcc-coral);
}

[data-design="b"] .fcc-canvas[data-paused="false"] [data-cursor="a"] {
  animation: fcc-drift-a 24s var(--fcc-ease-drift) infinite;
}

[data-design="b"] .fcc-canvas[data-paused="false"] [data-cursor="b"] {
  animation: fcc-drift-b 31s var(--fcc-ease-drift) infinite;
}

@keyframes fcc-drift-a {
  0%   { transform: translate(8%, 72%); }
  22%  { transform: translate(22%, 32%); }
  48%  { transform: translate(46%, 60%); }
  72%  { transform: translate(68%, 38%); }
  100% { transform: translate(8%, 72%); }
}

@keyframes fcc-drift-b {
  0%   { transform: translate(85%, 24%); }
  20%  { transform: translate(58%, 52%); }
  42%  { transform: translate(38%, 24%); }
  66%  { transform: translate(76%, 62%); }
  100% { transform: translate(85%, 24%); }
}

@media (max-width: 560px) {
  [data-design="b"] .fcc-canvas__grid { background-size: 18px 18px; }
  [data-design="b"] .fcc-anchor em { display: none; }
}

/* About copy blocks */
[data-design="b"] .fcc-about__copy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

[data-design="b"] .fcc-about__block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-design="b"] .fcc-about__subhead {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fcc-ink);
}

[data-design="b"] .fcc-about__block p {
  font-size: 15px;
  color: var(--fcc-ink-2);
  line-height: 1.65;
}

@media (max-width: 960px) {
  [data-design="b"] .fcc-about__copy {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  [data-design="b"] .fcc-about__copy {
    grid-template-columns: 1fr;
  }
}

/* Service area block */
[data-design="b"] .fcc-service-area {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--fcc-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-design="b"] .fcc-service-area__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fcc-ink);
  margin: 0;
}

[data-design="b"] .fcc-service-area__body {
  font-size: 15px;
  color: var(--fcc-ink-2);
  line-height: 1.6;
  max-width: 56ch;
}

/* ──────────────────────────────────────────────────────────────────────
   14. TESTIMONIALS (placeholder — none published)
   ────────────────────────────────────────────────────────────────────── */

[data-design="b"] .fcc-testimonials {
  padding: var(--fcc-rhythm-section) clamp(16px, 4vw, 32px);
  max-width: 1320px;
  margin-inline: auto;
  border-top: 1px solid var(--fcc-border);
}

[data-design="b"] .fcc-testimonials__head .fcc-mono {
  display: block;
  margin-bottom: 8px;
}

[data-design="b"] .fcc-testimonials__head h2 {
  font-size: 17px;
  font-weight: 400;
  color: var(--fcc-muted);
  font-family: var(--fcc-font-mono);
  letter-spacing: 0.02em;
  font-style: italic;
  line-height: 1.5;
  max-width: 60ch;
}

/* ──────────────────────────────────────────────────────────────────────
   15. FOOTER
   ────────────────────────────────────────────────────────────────────── */

[data-design="b"] .fcc-footer {
  background: var(--fcc-ink);
  border-top: 1px solid rgba(255,255,255,0.08);
}

[data-design="b"] .fcc-footer__inner {
  max-width: 1320px;
  margin-inline: auto;
  padding: 64px clamp(16px, 4vw, 32px) 48px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 40px;
  align-items: start;
}

[data-design="b"] .fcc-footer .fcc-logo__dot {
  background: var(--fcc-accent);
}

[data-design="b"] .fcc-footer .fcc-logo__mark {
  color: #FFFFFF;
}

[data-design="b"] .fcc-footer__tagline {
  margin-top: 8px;
  color: rgba(245, 245, 247, 0.45);
}

[data-design="b"] .fcc-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

[data-design="b"] .fcc-footer__meta .fcc-mono {
  color: rgba(245, 245, 247, 0.50);
  text-transform: none;
  letter-spacing: 0.01em;
}

[data-design="b"] .fcc-footer__meta a.fcc-mono {
  color: var(--fcc-accent) !important;
  text-decoration: none;
}

[data-design="b"] .fcc-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

[data-design="b"] .fcc-footer__links a.fcc-mono {
  color: rgba(245, 245, 247, 0.55) !important;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--fcc-dur-snap) var(--fcc-ease-snap);
}

[data-design="b"] .fcc-footer__links a.fcc-mono:hover {
  color: rgba(245, 245, 247, 0.90) !important;
}

[data-design="b"] .fcc-footer__bar {
  max-width: 1320px;
  margin-inline: auto;
  padding: 20px clamp(16px, 4vw, 32px);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

[data-design="b"] .fcc-footer__bar .fcc-mono {
  color: rgba(245, 245, 247, 0.35);
}

[data-design="b"] .fcc-footer__dot {
  color: var(--fcc-accent);
  font-size: 8px;
}

@media (max-width: 960px) {
  [data-design="b"] .fcc-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  [data-design="b"] .fcc-footer__funnel-cta {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  [data-design="b"] .fcc-footer__inner {
    grid-template-columns: 1fr;
    padding: 48px clamp(16px, 5vw, 24px) 32px;
  }
  [data-design="b"] .fcc-footer__funnel-cta {
    grid-column: 1;
  }
}

/* ──────────────────────────────────────────────────────────────────────
   16. REDUCED MOTION FALLBACKS
   Pauses or holds every primitive at a representative resting state.
   ────────────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  /* Header grid — hold, no breath */
  [data-design="b"] .fcc-header__grid {
    animation: none;
    opacity: 0.22;
  }

  /* Drawer transitions */
  [data-design="b"] .fcc-drawer__scrim,
  [data-design="b"] .fcc-drawer__panel {
    transition: none;
  }

  /* Hero canvas grid — hold at visible state, no breath animation */
  [data-design="b"] .fcc-hero__canvas-grid {
    animation: none;
    opacity: 0.32;
  }

  /* Hero frame outlines — show immediately, no settle-in */
  [data-design="b"] .fcc-hero__frame {
    animation: none;
    opacity: 1;
  }

  /* Hero cursors — hold at representative positions, no drift */
  [data-design="b"] .fcc-hero__cursor--blue {
    animation: none;
    transform: translate(74%, 42%);
  }
  [data-design="b"] .fcc-hero__cursor--coral {
    animation: none;
    transform: translate(55%, 34%);
  }

  /* Hero text — show immediately, no settle */
  [data-design="b"] .fcc-hero__headline,
  [data-design="b"] .fcc-hero__subtitle,
  [data-design="b"] .fcc-hero__proof,
  [data-design="b"] .fcc-hero__cta,
  [data-design="b"] .fcc-trust-chip {
    animation: none;
    opacity: 1;
    transform: none;
  }

  /* Dimension lines — show at 50% offset (partially drawn), no animation */
  [data-design="b"] .fcc-dimline--h { stroke-dashoffset: 0; animation: none; }
  [data-design="b"] .fcc-dimline--v { stroke-dashoffset: 0; animation: none; }
  [data-design="b"] .fcc-dimline--bracket { stroke-dashoffset: 0; animation: none; }
  [data-design="b"] .fcc-dimtick { opacity: 0.6; animation: none; }
  [data-design="b"] .fcc-hero__annot { opacity: 0.6; animation: none; }

  /* Pointer */
  [data-design="b"] .fcc-pointer__bar-fill { animation: none; width: 60%; }
  [data-design="b"] .fcc-pointer__chev { animation: none; opacity: 0.6; }

  /* CTA — no breath, no arrow trace */
  [data-design="b"] .fcc-cta { animation: none; }
  [data-design="b"] .fcc-cta:hover .fcc-cta__arrow { transform: none; }
  /* FIX: .fcc-hero__cta has base opacity:0 (revealed by fcc-hero-settle animation).
     The .fcc-cta { animation:none } rule above strips that reveal, stranding it at
     opacity:0. Force opacity:1 here — placed AFTER the animation:none rule so the
     cascade is unambiguous regardless of specificity tie-breaking. */
  [data-design="b"] .fcc-hero__cta { opacity: 1; }

  /* Funnel step transitions */
  [data-design="b"] .fcc-funnel__rail { transition: none; }
  [data-design="b"] .fcc-step[data-current="true"] > * { animation: none; }

  /* Service frame sparklines — draw immediately */
  [data-design="b"] .fcc-frame__live { animation: none; }
  [data-design="b"] .fcc-frame[data-drawn="true"] .fcc-frame__spark polyline {
    animation: none;
    stroke-dashoffset: 0;
  }

  /* Cursor drift — hold at a representative position */
  [data-design="b"] .fcc-canvas [data-cursor="a"] {
    transform: translate(22%, 32%);
    animation: none;
  }
  [data-design="b"] .fcc-canvas [data-cursor="b"] {
    transform: translate(58%, 52%);
    animation: none;
  }

  /* Portfolio hover */
  [data-design="b"] .fcc-portfolio__entry:hover { transform: none; }
  [data-design="b"] .fcc-portfolio__entry:hover .fcc-portfolio__photo { transform: none; }

  /* Frame hover */
  [data-design="b"] .fcc-frame:hover { transform: none; }
}

/* ──────────────────────────────────────────────────────────────────────
   17. MOBILE DEFENSIVE BLOCK — no horizontal scroll at 320px+
   Per spec: at BOTTOM of styles.css
   ────────────────────────────────────────────────────────────────────── */

[data-design="b"].dq-design,
[data-design="b"] .dq-design {
  max-width: 100%;
  overflow-x: clip;
}

[data-design="b"] * {
  min-width: 0;
}

[data-design="b"] img,
[data-design="b"] svg:not([data-keep-size]) {
  max-width: 100%;
  height: auto;
}

/* Mobile section padding — construction trade floor: 64px mobile */
@media (max-width: 768px) {
  [data-design="b"] {
    --fcc-rhythm-section: 64px;
    --fcc-rhythm-hero: 72px;
  }
  [data-design="b"] .fcc-portfolio {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  [data-design="b"] .fcc-pointer {
    padding: 28px clamp(16px, 4vw, 24px);
  }
}
