/* ================================================================
   Uptinergy — style-audit.css  v3
   Benchmark Assessment page.
   Link AFTER style.css in audit.html. Does not override base styles.
   ================================================================ */


/* ---------------------------------------------------------------
   SCROLL REVEAL
   JS adds .rv-hidden to .rv-item on load.
   IntersectionObserver removes .rv-hidden in stagger when
   .rv-section enters viewport. No JS: all elements visible.
   --------------------------------------------------------------- */

.rv-item {
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.rv-item.rv-hidden {
  opacity: 0;
  transform: translateY(20px);
}


/* ---------------------------------------------------------------
   SECTION 1 — FRAMING
   Two-column split: bullets left, cost comparison chart right.
   Large sequential reveals on scroll entry.
   --------------------------------------------------------------- */

.frame-section {
  background: var(--navy);
  color: #fff;
  padding: 96px 0 108px;
}

.frame-section .eyebrow {
  color: var(--amber);
}

/* Two-column grid: content left | photo right */
.frame-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.frame-head {
  margin-bottom: 52px;
}

.frame-head h1,
.frame-head h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin-bottom: 0;
  max-width: 18ch;
}

/* Bullet list — large, sequential */
.fb-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.fb-item:last-of-type {
  border-bottom: none;
}

.fb-arrow {
  font-size: 1.05rem;
  color: var(--amber);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  line-height: 1;
}

.fb-label {
  font-size: clamp(1.3rem, 2.6vw, 1.58rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

/* "Price alone is not enough." — amber statement line, 4th reveal */
.frame-statement {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(244, 163, 0, 0.22);
}

.fs-rule {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--amber);
  flex-shrink: 0;
}

.fs-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.1px;
  margin: 0;
  line-height: 1.3;
}


/* ---------------------------------------------------------------
   SECTION 1 — FRAME PHOTO
   Photo fills the right column of the framing section.
   --------------------------------------------------------------- */

.frame-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.frame-photo-wrap {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.frame-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  opacity: 0.92;
}


/* ---------------------------------------------------------------
   COST COMPARISON WIDGET
   Now lives in the Deliverables section (light bg).
   Dark version kept for reference; --light modifier overrides.
   CSS transition triggers via .bar-active (added by JS observer).
   --------------------------------------------------------------- */

.cost-compare-widget {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 163, 0, 0.14);
  border-radius: 6px;
  padding: 28px 24px 22px;
}

/* Light-background variant (used in Deliverables section) */
.ccw--light {
  background: var(--navy);
  border: 1px solid rgba(244, 163, 0, 0.18);
  border-radius: 10px;
  padding: 36px 32px 28px;
  width: 100%;
}

.ccw-caption {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 26px;
}

.ccw-group {
  margin-bottom: 8px;
}

.ccw-row-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 10px;
}

.ccw-track {
  display: flex;
  align-items: center;
  height: 26px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: visible;
  gap: 12px;
}

.ccw-bar {
  height: 26px;
  border-radius: 4px;
  flex-shrink: 0;
}

.ccw-current {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  background: rgba(108, 122, 137, 0.30);
}

/* Benchmark bar: width animates from 0 to 68% on .bar-active */
.ccw-bench {
  width: 0;
  background: linear-gradient(
    90deg,
    rgba(244, 163, 0, 0.88) 0%,
    rgba(244, 163, 0, 0.54) 100%
  );
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

.ccw-bench.bar-active {
  width: 68%;
}

.ccw-bar-note {
  font-size: 0.80rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  flex-shrink: 0;
}

.ccw-bar-note-amber {
  color: rgba(244, 163, 0, 0.85);
  font-size: 0.84rem;
}

/* Gap indicator row */
.ccw-gap-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
}

.ccw-gap-arrow {
  font-size: 0.88rem;
  color: rgba(244, 163, 0, 0.55);
  flex-shrink: 0;
  line-height: 1;
}

.ccw-gap-text {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: rgba(244, 163, 0, 0.55);
}

.ccw-note {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.22);
  margin-top: 18px;
  line-height: 1.5;
  font-style: italic;
}


/* ---------------------------------------------------------------
   SECTION 2 — PROCESS
   Light soft background. 3-step vertical flow.
   Supply chain diagram below steps.
   --------------------------------------------------------------- */

/* Two-column layout: steps left / mockup card right */
.proc-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 72px;
  align-items: center;
  margin-bottom: 80px;
}

.proc-left {
  /* inherits; no override needed */
}

.proc-right {
  padding-top: 24px;
  padding-left: 32px;
}

/* ---------------------------------------------------------------
   UPTINERGY BENCHMARK TOOL MOCKUP CARD
   Tilted 3-D perspective card representing the tool UI.
   Pure CSS + inline SVG — no external assets.
   --------------------------------------------------------------- */

.proc-mockup {
  position: relative;
}

.pm-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(11, 37, 69, 0.07);
  box-shadow:
    0 2px 4px rgba(11, 37, 69, 0.04),
    0 16px 40px rgba(11, 37, 69, 0.12),
    0 40px 88px rgba(11, 37, 69, 0.09);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
  transform-origin: center center;
  transition: transform 0.4s ease;
}

.pm-card:hover {
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

/* Top branding bar */
.pm-topbar {
  background: #fff;
  border-bottom: 1px solid rgba(11, 37, 69, 0.06);
  padding: 16px 20px;
}

.pm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pm-brand-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 2px;
}

.pm-brand-sub {
  font-size: 0.70rem;
  color: var(--slate-light);
  font-weight: 500;
  letter-spacing: 0.5px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  margin-left: 2px;
}

/* Filter row */
.pm-filters {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid rgba(11, 37, 69, 0.05);
}

.pm-filter {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 14px;
  flex: 1;
}

.pm-filter-label {
  font-size: 0.60rem;
  color: var(--slate-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.pm-filter-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.pm-filter-multi {
  color: var(--slate);
}

/* Body: sidebar + content */
.pm-body {
  display: flex;
}

.pm-sidebar {
  width: 52px;
  background: var(--bg-soft);
  border-right: 1px solid rgba(11, 37, 69, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0;
  gap: 18px;
  flex-shrink: 0;
}

.pm-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--slate-light);
}

.pm-icon-active {
  background: rgba(11, 37, 69, 0.07);
  color: var(--navy);
}

/* Main analysis content */
.pm-content {
  flex: 1;
  padding: 22px 20px;
}

.pm-section-label {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--slate-light);
  margin-bottom: 18px;
}

.pm-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.pm-bar-label {
  font-size: 0.76rem;
  color: var(--slate);
  font-weight: 500;
  width: 82px;
  flex-shrink: 0;
}

.pm-bar-track {
  flex: 1;
  height: 14px;
  background: rgba(11, 37, 69, 0.04);
  border-radius: 4px;
  overflow: hidden;
}

.pm-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.pm-bar-current {
  width: 100%;
  background: rgba(108, 122, 137, 0.20);
}

.pm-bar-bench {
  width: 72%;
  background: linear-gradient(90deg, rgba(244, 163, 0, 0.90), rgba(244, 163, 0, 0.50));
}

.pm-bar-val {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate);
  width: 56px;
  flex-shrink: 0;
  text-align: right;
}

.pm-val-amber {
  color: var(--amber);
  font-size: 0.88rem;
}

.pm-gap-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0 6px 92px;
}

.pm-gap-icon {
  font-size: 0.72rem;
  color: rgba(244, 163, 0, 0.55);
  line-height: 1;
}

.pm-gap-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(244, 163, 0, 0.60);
}

.pm-status-row {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(11, 37, 69, 0.05);
}

.pm-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--slate);
  font-weight: 500;
}

.pm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pm-dot-active {
  background: var(--navy);
  opacity: 0.40;
}

.pm-dot-pending {
  background: var(--amber);
  opacity: 0.60;
}

.process-section {
  background: var(--bg-soft);
  padding: 96px 0 104px;
}

.process-section .eyebrow {
  color: var(--amber);
}

.process-head {
  margin-bottom: 64px;
}

.process-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin-bottom: 6px;
}

.process-sub {
  font-size: 0.88rem;
  color: var(--slate);
  font-weight: 500;
  margin: 0;
}

/* Vertical step flow with amber fading connecting line */
.proc-flow {
  position: relative;
  max-width: 680px;
}

.proc-flow::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 56px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(244, 163, 0, 0.45) 0%,
    rgba(244, 163, 0, 0.05) 100%
  );
}

.pf-step {
  display: flex;
  gap: 44px;
  margin-bottom: 52px;
  position: relative;
}

.pf-step:last-child {
  margin-bottom: 0;
}

.pf-marker {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.pf-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  border: 1.5px solid rgba(244, 163, 0, 0.35);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.pf-body {
  padding-top: 10px;
}

.pf-step-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

.pf-body h3 {
  font-size: 1.22rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

/* Tag chips — step sub-items */
.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.step-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(244, 163, 0, 0.26);
  border-radius: 3px;
  padding: 5px 12px;
  white-space: nowrap;
  background: rgba(244, 163, 0, 0.04);
}

/* Supply chain flow diagram — below the 3-step process */
.supply-flow-wrap {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(244, 163, 0, 0.15);
}

.sf-caption {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--slate-light);
  margin-bottom: 22px;
}

.supply-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.sf-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  text-align: center;
}

.sf-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  background: rgba(11, 37, 69, 0.06);
  border: 1px solid rgba(11, 37, 69, 0.14);
  color: var(--slate);
}

/* Uptinergy node — highlighted in navy/amber */
.sf-badge-up {
  background: var(--navy);
  color: var(--amber);
  border-color: var(--navy);
}

/* Landed cost output node — amber accent */
.sf-badge-cost {
  background: rgba(244, 163, 0, 0.10);
  border-color: rgba(244, 163, 0, 0.32);
  color: var(--amber);
}

.sf-node-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sf-node-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.sf-node-sub {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.3;
}

/* Arrow connector between supply nodes */
.sf-arrow {
  flex-shrink: 0;
  color: rgba(244, 163, 0, 0.38);
  font-size: 0.78rem;
  padding: 0 3px;
  margin-top: 12px; /* align with badge vertical center */
  line-height: 1;
}


/* ---------------------------------------------------------------
   EDITORIAL BREAK
   --------------------------------------------------------------- */

.audit-stmt {
  background: var(--navy);
  border-top: 1px solid rgba(244, 163, 0, 0.18);
  border-bottom: 1px solid rgba(244, 163, 0, 0.18);
  padding: 72px 0;
  text-align: center;
}

.audit-stmt-quote {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 0 auto;
  max-width: 30ch;
}

.audit-stmt-quote em {
  color: var(--amber);
  font-style: normal;
}


/* ---------------------------------------------------------------
   SECTION 3 — DELIVERABLES
   Dark navy. 2-column outer: items left / cost chart right.
   Inner deliv-flow is 2x2 grid.
   --------------------------------------------------------------- */

.deliv-section {
  background: var(--navy);
  color: #fff;
  padding: 96px 0 108px;
}

.deliv-section .eyebrow {
  color: var(--amber);
}

/* Outer 2-column layout */
.deliv-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: center;
}

.deliv-left {
  /* inherits */
}

.deliv-right {
  display: flex;
  align-items: stretch;
  align-self: stretch;
}

.deliv-right .cost-compare-widget {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.deliv-head {
  margin-bottom: 56px;
}

.deliv-head h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.9px;
  margin-bottom: 0;
  max-width: 28ch;
}

.deliv-flow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 40px;
}

.df-item {
  padding-right: 32px;
  padding-top: 4px;
  border-right: 1px solid rgba(244, 163, 0, 0.10);
}

.df-item:last-child {
  padding-right: 0;
  border-right: none;
}

/* Large ordinal — the primary visual in Deliverables */
.df-num {
  font-size: clamp(3.6rem, 5vw, 5rem);
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 6px;
  user-select: none;
}

.df-stage-label {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(244, 163, 0, 0.52);
  margin-bottom: 14px;
}

.df-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.28;
  margin-bottom: 10px;
}

.df-text {
  font-size: 0.86rem;
  color: var(--slate-light);
  line-height: 1.72;
}


/* ---------------------------------------------------------------
   GATE TRACK
   4-node sequential visual placed above Control grid.
   Shows the controlled progression at a glance.
   --------------------------------------------------------------- */

.gate-track {
  margin-bottom: 56px;
}

.gate-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px 32px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  position: relative;
}

/* Horizontal connecting line through all node centers */
.gate-inner::before {
  content: '';
  position: absolute;
  top: 54px;           /* 28px padding-top + 26px (half of 52px node) */
  left: 12.5%;         /* center of first column */
  right: 12.5%;        /* center of last column */
  height: 1px;
  background: rgba(11, 37, 69, 0.10);
  z-index: 0;
}

.gi-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.gi-node {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(11, 37, 69, 0.16);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 4px rgba(11, 37, 69, 0.06);
}

.gi-label {
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--slate);
  text-align: center;
}


/* ---------------------------------------------------------------
   SECTION 4 — TRUST / CONTROL
   White. 4-column. Large stage labels. Faded ordinal accent.
   --------------------------------------------------------------- */

.ctrl-section {
  background: var(--bg);
  padding: 96px 0 104px;
  border-top: 1px solid var(--line);
}

.ctrl-section .eyebrow {
  color: var(--amber);
}

.ctrl-head {
  margin-bottom: 48px;
}

.ctrl-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.9px;
  margin-bottom: 6px;
  max-width: 28ch;
}

.ctrl-sub {
  font-size: 0.88rem;
  color: var(--slate);
  font-weight: 500;
  margin: 0;
}

.ctrl-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.ctf-stage {
  padding-right: 32px;
  padding-top: 4px;
  border-right: 1px solid var(--line);
}

.ctf-stage:last-child {
  padding-right: 0;
  border-right: none;
}

.ctf-num {
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  font-weight: 700;
  color: var(--amber);
  opacity: 0.16;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 14px;
  user-select: none;
}

.ctf-stage-label {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}

.ctf-text {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.78;
}


/* ---------------------------------------------------------------
   FINAL CTA
   --------------------------------------------------------------- */

.final-cta {
  background: var(--navy);
  color: #fff;
  padding: 100px 0;
  text-align: center;
  border-top: 3px solid var(--amber);
}

.final-cta .eyebrow {
  color: rgba(244, 163, 0, 0.60);
  margin-bottom: 20px;
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.9px;
  margin-bottom: 18px;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-support {
  font-size: 0.88rem;
  color: var(--slate-light);
  max-width: 40ch;
  margin: 0 auto 48px;
  line-height: 1.65;
  letter-spacing: 0.3px;
}

@keyframes premiumPulse {
  0%,  100% { box-shadow: 0 4px 20px rgba(244, 163, 0, 0.18); }
  50%        { box-shadow: 0 6px 38px rgba(244, 163, 0, 0.52); }
}

.btn-pulse {
  animation: premiumPulse 3.2s ease-in-out infinite;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.btn-pulse:hover {
  animation: none;
  box-shadow: 0 8px 44px rgba(244, 163, 0, 0.64);
  transform: translateY(-1px);
  background: #d99200;
}


/* ---------------------------------------------------------------
   MOBILE — 860px
   --------------------------------------------------------------- */

@media (max-width: 860px) {

  .proc-layout {
    grid-template-columns: 1fr;
    margin-bottom: 48px;
  }

  .proc-right {
    display: none; /* hide decorative mockup on mobile */
  }

  .deliv-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .deliv-right {
    align-self: auto;
  }

  .frame-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .frame-visual {
    padding-top: 40px;
    margin-top: 4px;
  }

  .frame-head h1,
.frame-head h2 { max-width: none; }

  .fb-label { font-size: 1.22rem; }

  .pf-step { gap: 28px; }

  .pf-num {
    width: 44px;
    height: 44px;
    font-size: 0.70rem;
  }

  .proc-flow::before { left: 21px; }

  .supply-flow { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .sf-node { min-width: 76px; max-width: 88px; }
  .sf-arrow { margin-top: 8px; }

  .deliv-flow {
    grid-template-columns: 1fr 1fr;
    gap: 40px 28px;
  }

  .df-item {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(244, 163, 0, 0.08);
    padding-bottom: 16px;
  }

  .df-item:nth-child(3),
  .df-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .gate-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 24px 20px;
  }

  .gate-inner::before { display: none; }

  .ctrl-flow {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }

  .ctf-stage {
    padding-right: 0;
    border-right: none;
  }

}

@media (max-width: 560px) {

  .supply-flow { gap: 0; }
  .sf-arrow { display: none; }

  .deliv-flow,
  .ctrl-flow {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .df-item {
    border-bottom: 1px solid rgba(244, 163, 0, 0.08);
    padding-bottom: 24px;
  }

  .df-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .gate-inner { grid-template-columns: 1fr 1fr; }

}


/* Mobile fix: keep index labels inside the card */
@media (max-width: 480px) {
  .ccw-bench.bar-active { width: 54%; }
  .ccw-bar-note { font-size: 0.72rem; }
  .ccw-bar-note-amber { font-size: 0.76rem; }
}


/* ---------------------------------------------------------------
   Mobile refinements (overrides earlier media rules — keep last)
   --------------------------------------------------------------- */
@media (max-width: 560px) {

  /* Cost index widget: more air between bar and label */
  .ccw-track { gap: 18px; }

  /* Supply intelligence pathway: vertical timeline instead of
     four cramped columns. Badge left, text right, arrow between. */
  .supply-flow { flex-direction: column; align-items: stretch; gap: 0; }
  .sf-node {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 16px;
    min-width: 0;
    max-width: none;
    padding: 4px 0;
  }
  .sf-node-text { align-items: flex-start; }
  .sf-node-title { font-size: 0.98rem; }
  .sf-node-title br { display: none; }
  .sf-arrow {
    display: block;
    width: 40px;            /* aligns under the badge column */
    text-align: center;
    transform: rotate(90deg);
    margin: 2px 0;
    padding: 0;
    font-size: 0.85rem;
  }
}


/* ---------------------------------------------------------------
   Audience line under hero headline
   --------------------------------------------------------------- */
.frame-aud {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.62);
  margin: 14px 0 0;
  max-width: 52ch;
}

/* ---------------------------------------------------------------
   Trust section: founder + business model
   --------------------------------------------------------------- */
.audit-trust { padding: 84px 0; background: var(--bg-soft); }
.at-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.at-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 32px 34px;
}
.at-card-model {
  background: linear-gradient(135deg, #FFF9EE 0%, #FFF3DC 100%);
  border: 1px solid rgba(244, 163, 0, 0.35);
  border-left: 4px solid var(--amber);
}
.at-eyebrow {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--amber); margin: 0 0 16px;
}
.at-founder { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.at-photo {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--amber);
}
.at-name { font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.at-title { color: var(--amber); font-weight: 600; font-size: 0.78rem; letter-spacing: 1.8px; text-transform: uppercase; margin-top: 2px; }
.at-h3 { color: var(--navy); font-size: 1.2rem; margin: 0 0 10px; }
.at-text { margin: 0; color: var(--slate); font-size: 0.97rem; line-height: 1.65; }
.at-text a { font-weight: 600; color: var(--navy); }
.at-text a:hover { color: var(--amber); }
.at-card-model .at-text { color: #6b5a33; }

/* ---------------------------------------------------------------
   On-page assessment form (final CTA)
   --------------------------------------------------------------- */
.audit-form-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 30px;
  max-width: 520px;
  margin: 8px auto 0;
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.55);
  text-align: left;
}
.audit-form { display: grid; gap: 12px; }
.audit-form input,
.audit-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 6px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  box-sizing: border-box;
}
.audit-form input:focus,
.audit-form textarea:focus { outline: 2px solid var(--amber); border-color: var(--amber); }
.audit-form .btn { width: 100%; }
.af-note { margin: 2px 0 0; font-size: 0.85rem; color: var(--slate); text-align: center; }
.af-note a { color: var(--navy); font-weight: 600; }

@media (max-width: 860px) {
  .at-grid { grid-template-columns: 1fr; }
  .audit-trust { padding: 60px 0; }
}
