/* ========================================================================
   BLENDER CASE — PAGE-SPECIFIC STYLES (refactored)
   - Mobile-first; desktop alignment @ ≥800px
   - Uses a consistent .section-inner so all sections line up perfectly
   - Glassy summary strip + neon-cyan brand accents
   ======================================================================== */

/* === 0) PAGE TOKENS (scoped) ========================================== */
:root {
  --bl-content-max: 1100px; /* unified content width */
  --bl-content-pad: 24px; /* side padding on narrow screens */
  --bl-accent: var(--neon-cyan, #40e6ff);
  --bl-ink: var(--text, #e8e8e8);
  --bl-nav-inset: 80px; /* “tapered” case-nav on wide screens */
}

/* ---------------------------------------------
   “Balance” Background Layer
   - Adds subtle right-side weight + diagonal ribbon
   - Lives between summary and case-nav
   - Fully non-interactive, responsive, and brand-aligned
   --------------------------------------------- */

:root {
  /* Tweak these if you need to nudge the start/end */
  --balance-start-offset: 1.5rem; /* padding below the summary */
  --balance-end-offset: 8rem; /* padding above the case-nav */
}

/* Ensure the Blender case container creates a stacking context */
.cs--blender {
  position: relative;
  z-index: 0;
}

/* The layer itself — absolutely positioned within the page flow */
.cs--blender .cs-balance-bg {
  position: absolute;
  left: 0;
  right: 0;

  /* span from below the summary to above the case-nav */
  /* If your sections have IDs, you can replace these with calc() anchored to those */
  top: calc(var(--summary-band-bottom, 0px) + var(--balance-start-offset));
  bottom: var(--balance-end-offset);

  pointer-events: none;
  z-index: 2; /* ABOVE page background, BELOW content */
}

/* Ensure all content sections render above this layer */
.cs--blender .cs-section,
.cs--blender .persona-grid,
.cs--blender .audit-wrap,
.cs--blender .timeline-wrap {
  position: relative;
  z-index: 3;
}

/* ----- Effect 1: Right-side gradient column (subtle cyan glow) ----- */
.cs--blender .cs-balance-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Paint a radial on the right side only */
  background: radial-gradient(55% 65% at 85% 40%, rgba(64, 230, 255, 0.08) 0%, rgba(64, 230, 255, 0.04) 35%, transparent 70%);
  /* Hide the left half so weight sits to the right */
  -webkit-mask-image: linear-gradient(to left, black 55%, transparent 85%);
  mask-image: linear-gradient(to left, black 55%, transparent 85%);

  filter: blur(16px);
}

/* ----- Effect 2: Soft diagonal ribbon (very low-contrast, “viewport energy”) ----- */
.cs--blender .cs-balance-bg::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10%;
  width: 120%;
  height: 80%;

  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04) 0%, rgba(64, 230, 255, 0.06) 40%, rgba(232, 125, 13, 0.03) 100%);

  transform: translateX(-50%) rotate(2deg);
  filter: blur(60px);
  opacity: 0.75; /* keep this low; reduce if it competes with content */
}

/* Reduce intensity or hide on small screens where space is tighter */
@media (max-width: 900px) {
  .cs--blender .cs-balance-bg::before {
    opacity: 0.7;
  }
  .cs--blender .cs-balance-bg::after {
    opacity: 0.55;
    filter: blur(48px);
  }
}
@media (max-width: 640px) {
  .cs--blender .cs-balance-bg {
    opacity: 0.5;
  }
}

/* === BLENDER WORKSPACE BACKDROP (subtle grid) ========================= */
body.blender-page {
  background-color: #1b1b1b;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px;
  background-position: 0 0, 12px 12px;
  background-attachment: fixed;
}

/* === 1) ARTICLE LAYOUT ================================================= */
.case-article {
  max-width: var(--bl-content-max);
  margin-inline: auto;
  padding: 32px var(--bl-content-pad) 8px;
  position: relative;
  color: var(--bl-ink);
}

.case-article section {
  margin: 44px 0;
}

/* default readable measure for copy */
.case-article p,
.case-article ul,
.case-article ol {
  max-width: 78ch;
}

/* Make sure all “content” sits above the balance layer */
.case-article .cs-section,
.case-article .persona-grid,
.case-article .audit-wrap,
.case-article .timeline-wrap,
.case-article .summary-strip {
  position: relative;
  z-index: 3; /* content > balance-bg */
}

/* Balance layer now targets where it actually lives */
.case-article .cs-balance-bg {
  position: absolute;
  left: 0;
  right: 0;
  /* top/height set by JS for precision; give a safe fallback: */
  top: 400px; /* fallback */
  height: 800px; /* fallback */
  pointer-events: none;
  z-index: 2; /* above page bg, below content */
}

/* Your two effects stay the same, just retargeted */
.case-article .cs-balance-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 65% at 85% 40%, rgba(64, 230, 255, 0.08) 0%, rgba(64, 230, 255, 0.04) 35%, transparent 70%);
  -webkit-mask-image: linear-gradient(to left, black 55%, transparent 85%);
  mask-image: linear-gradient(to left, black 55%, transparent 85%);
  filter: blur(16px);
}

.case-article .cs-balance-bg::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10%;
  width: 120%;
  height: 80%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04) 0%, rgba(64, 230, 255, 0.06) 40%, rgba(232, 125, 13, 0.03) 100%);
  transform: translateX(-50%) rotate(2deg);
  filter: blur(60px);
  opacity: 0.75;
}

/* Slightly gentler on small screens */
@media (max-width: 900px) {
  .case-article .cs-balance-bg::before {
    opacity: 0.7;
  }
  .case-article .cs-balance-bg::after {
    opacity: 0.55;
    filter: blur(48px);
  }
}
@media (max-width: 640px) {
  .case-article .cs-balance-bg {
    opacity: 0.5;
  }
}

/* === 2) HERO / HEADER ================================================== */
.article-header {
  text-align: center;
  margin: 4rem auto 2.5rem;
  max-width: 900px;
  padding: 0 1rem;
}

.article-header h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.2vw + 0.5rem, 3.4rem);
  line-height: 1.15;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #f28d35 0%, #ffb85e 40%, #40e6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(64, 230, 255, 0.25);
  margin-bottom: 0.6rem;
}

.article-header .subtitle {
  font-size: clamp(1.05rem, 1vw + 0.7rem, 1.4rem);
  color: var(--muted);
  opacity: 0.85;
  letter-spacing: 0.4px;
  margin-bottom: 1rem;
}

/* === 3) TYPOGRAPHY ===================================================== */
.case-article h2 {
  font-size: clamp(1.35rem, 1.05rem + 1.2vw, 1.7rem);
  letter-spacing: 0.6px;
  margin: 0 0 14px 0;
  position: relative;
}
.case-article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--bl-accent), transparent);
  opacity: 0.8;
}

.case-article h3 {
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.25rem);
  margin: 22px 0 8px;
  letter-spacing: 0.3px;
}

.case-article p {
  margin: 10px 0 14px;
  line-height: 1.75;
  color: var(--bl-ink);
}

.case-article ul,
.case-article ol {
  padding-left: 1.2rem;
  margin: 8px 0 16px;
}
.case-article li {
  margin: 6px 0;
}
.case-article li::marker {
  color: var(--bl-accent);
}

/* === 4) OPTIONAL VISUAL PLACEHOLDER =================================== */
.case-article .img-box {
  width: min(100%, 860px);
  aspect-ratio: 16/9;
  margin: 18px 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04)),
    radial-gradient(90rem 90rem at -10% -10%, rgba(255, 255, 255, 0.08), transparent 70%), rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  backdrop-filter: blur(6px) saturate(120%);
  display: grid;
  place-items: center;
  color: #cfcfcf;
  font-size: 0.95rem;
}

/* === 5) CONSISTENT SECTION WIDTH  ========== */
/* Each case section owns a .section-inner that defines the exact
   content measure. This eliminates the “left-shifted paragraphs” look. */
.cs--blender.cs-section {
  position: relative;
  padding: clamp(24px, 3vw, 40px) 0;
}

.cs--blender .section-inner {
  max-width: min(1120px, 92vw);
  margin-inline: auto;
  padding-inline: clamp(16px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cs--blender .section-inner p {
  max-width: 78ch;
}

/* Desktop refinement: activate strict alignment ≥800px */
@media (min-width: 800px) {
  .cs--blender .section-inner {
    max-width: 1120px;
    padding-inline: 24px;
  }
}

/* Section heading underline aligned to the inner measure */
.cs--blender .section-inner h2 {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.cs--blender .section-inner h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #7ce0ff 0%, #3ed3ff 60%, #00c2ff 100%);
  box-shadow: 0 0 8px rgba(0, 194, 255, 0.45);
}

/* ===========================
   Low-Fidelity Prototypes
   =========================== */
.lofi {
  --lofi-card-bg: rgba(28, 28, 28, 0.6);
  --lofi-stroke: rgba(255, 255, 255, 0.08);
  --lofi-glass-top: rgba(255, 255, 255, 0.04);
  --lofi-glow-cyan: #29d3e1; /* neon cyan accent */
  --lofi-glow-orange: #e87d0d; /* sparing warm accent */
}

.lofi-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .lofi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.lofi-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, var(--lofi-glass-top), rgba(0, 0, 0, 0)) var(--lofi-card-bg);
  border: 1px solid var(--lofi-stroke);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* thin accent bar */
.lofi-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  opacity: 0.9;
}
.lofi-card--a::before {
  background: linear-gradient(90deg, var(--lofi-glow-cyan), transparent);
}
.lofi-card--b::before {
  background: linear-gradient(90deg, var(--lofi-glow-orange), transparent);
}

.lofi-head h3 {
  margin: 0;
  font-size: clamp(1.05rem, 0.7rem + 1.2vw, 1.3rem);
  letter-spacing: 0.2px;
}

/* Compact labelled blurbs */
.lofi-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 0.65rem;
  row-gap: 0.35rem;
  margin: 0.1rem 0 0.2rem;
  font-size: 0.96rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}
.lofi-meta dt {
  font-weight: 700;
  color: #cfefff; /* subtle cyan-ish label */
  white-space: nowrap;
}
.lofi-meta dd {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Image frame */
.lofi-img {
  border: 1px solid var(--lofi-stroke);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.lofi-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* keeps things compact, uniform */
  object-fit: cover;
}
.lofi-caption {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.58);
  padding: 0.4rem 0.75rem 0.6rem;
}

/* Shared inner measure (matches other sections) */
#low-fi-prototypes .section-inner,
#prototype-explainer .section-inner {
  max-width: min(1120px, 92vw);
  margin-inline: auto;
  padding-inline: clamp(16px, 2vw, 24px);
}

/* Grid for the two prototype cards */
.lofi-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
  grid-template-columns: 1fr; /* mobile first */
}
@media (min-width: 900px) {
  .lofi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Card base */
.lofi-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: clamp(16px, 2.2vw, 22px);
}

/* Card header */
.lofi-card__head h3 {
  font-size: clamp(1.05rem, 1.1vw + 0.8rem, 1.25rem);
  letter-spacing: 0.2px;
  margin: 0 0 10px;
}

/* Meta grid inside each card */
.lofi-meta {
  display: grid;
  grid-template-columns: 110px 1fr; /* label | value */
  column-gap: 0.8rem;
  row-gap: 0.35rem;
  margin-bottom: 14px;
}
@media (max-width: 520px) {
  .lofi-meta {
    grid-template-columns: 1fr;
  }
}
.lofi-meta__label {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.lofi-meta__value {
  color: rgba(255, 255, 255, 0.88);
}

/* Image block */
.lofi-img {
  margin-top: 8px;
}
.lofi-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.lofi-img figcaption {
  margin-top: 8px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Explainer block following the prototypes */
#low-fi-prototypes + #prototype-explainer {
  margin-top: clamp(12px, 1.5vw, 16px);
}
#prototype-explainer .explain-list {
  margin: 10px 0 16px;
  padding-left: 1.1rem;
}
#prototype-explainer .explain-list li {
  margin: 6px 0;
}
#prototype-explainer .explain-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 16px;
  padding: clamp(14px, 2vw, 18px);
}
#prototype-explainer .explain-box h3 {
  margin: 0 0 8px;
  font-size: clamp(1.02rem, 1.1vw + 0.7rem, 1.2rem);
}
#prototype-explainer .explain-box li {
  margin: 6px 0;
}

/* Gentle hover lift on desktop */
@media (hover: hover) and (pointer: fine) {
  .lofi-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .lofi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--lofi-stroke) inset, 0 0 14px rgba(41, 211, 225, 0.12); /* subtle cyan halo */
  }
}

/* =========================================
   Prototype Explainer (matches Background feel)
   ========================================= */
.proto-explain {
  --px-glass: rgba(28, 28, 28, 0.6);
  --px-stroke: rgba(255, 255, 255, 0.08);
  --px-top: rgba(255, 255, 255, 0.04);
  --px-cyan: #29d3e1;
  --px-text-sub: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, var(--px-top), transparent) var(--px-glass);
  border: 1px solid var(--px-stroke);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}

/* slim cyan underline to mirror section styling */
.proto-explain h2 {
  margin-top: 0;
  position: relative;
}
.proto-explain h2::after {
  content: "";
  display: block;
  width: 68px;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--px-cyan), transparent);
}

/* compact lead */
.proto-lead {
  margin: 0.6rem 0 0.8rem;
  color: var(--px-text-sub);
}

/* three quick bullets */
.proto-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  color: var(--px-text-sub);
}
.proto-list li {
  list-style: disc;
}
.proto-list li::marker {
  color: var(--px-cyan);
}

/* outcome callout */
.proto-outcome {
  margin: 0.2rem 0 0;
  padding: 0.8rem 0.9rem 0.9rem;
  border: 1px solid var(--px-stroke);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.proto-outcome__title {
  margin: 0 0 0.4rem 0;
  font-size: 1rem;
  letter-spacing: 0.2px;
  color: #cfefff;
}
.proto-outcome ul {
  margin: 0 0 0.4rem 1.1rem;
  padding: 0;
  color: var(--px-text-sub);
}
.proto-outcome li {
  list-style: disc;
}
.proto-outcome li::marker {
  color: var(--px-cyan);
}
.proto-outcome__summary {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

/* spacing harmony with neighbors */
#prototype-explainer + #low-fi-prototypes {
  margin-top: 1rem;
}

/* === 6) SUMMARY STRIP (below H1) ====================================== */
.summary-strip {
  margin-top: clamp(12px, 2vw, 24px);
}
.summary-strip .summary-inner {
  max-width: min(1120px, 92vw);
  margin: 0 auto;
  padding: clamp(16px, 2vw, 24px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(16px, 3vw, 40px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(6px);
}
@media (max-width: 900px) {
  .summary-strip .summary-inner {
    grid-template-columns: 1fr;
  }
}

.sum-title {
  font-weight: 800;
  letter-spacing: 0.3px;
  margin: 0 0 8px;
}
.sum-lede {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.92);
}

.sum-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 0;
  list-style: none;
  padding: 0;
}
.sum-pills li {
  font-size: 0.92rem;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

/* Right-side meta rows */
.sum-right {
  display: grid;
  gap: 10px;
  align-content: start;
}
.meta {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.meta-label {
  opacity: 0.75;
  font-weight: 700;
}
.meta-value {
  color: rgba(255, 255, 255, 0.92);
}

/* ===========================================================
   USER TESTING
   =========================================================== */
.usertest .usertest-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 14px;
  margin: 8px 0 22px;
  list-style: none;
  padding: 0;
}
.usertest .usertest-stats li {
  display: grid;
  place-items: center;
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}
.stat-num {
  font: 700 clamp(1rem, 1.2vw + 0.6rem, 1.4rem) "Montserrat", sans-serif;
  color: #eaeaea;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(234, 234, 234, 0.68);
}

.usertest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
}
.usertest-grid .card {
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.06);
  color: #fff; /* Default text color */
}
.usertest-grid .card--accent {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04));
  border-color: rgba(64, 230, 255, 0.25);
}

/* Title in blue accent only */
.usertest-grid .card-title {
  font: 700 1rem "Montserrat", sans-serif;
  margin: 0 0 8px;
  letter-spacing: 0.3px;
  color: var(--neon-cyan);
}

/* Keep list items and body white */
.usertest-grid .card p,
.usertest-grid .card li {
  color: rgba(255, 255, 255, 0.92);
}
.usertest-grid .card strong {
  color: #fff;
}

/* Checklist tick mark still cyan */
.checklist li::before {
  content: "✓";
  position: absolute;
  left: -1.1rem;
  top: 0;
  color: var(--neon-cyan);
  font-weight: 700;
}

.bullets li {
  margin: 0.35rem 0;
  opacity: 0.92;
}
.badges li {
  margin: 0.35rem 0;
  opacity: 0.95;
}

/* ===========================================================
   POV
   =========================================================== */
.pov .pov-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 6px;
}
.pov-card {
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.06);
}
.pov-title {
  font: 700 1rem "Montserrat", sans-serif;
  margin: 0 0 8px;
  color: #eaeaea;
}
.pov-line {
  margin: 0.45rem 0;
  color: rgba(234, 234, 234, 0.92);
}
.pov-join {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(64, 230, 255, 0.25);
  background: linear-gradient(180deg, rgba(64, 230, 255, 0.08), rgba(64, 230, 255, 0.04));
}
.pov-join-title {
  font: 700 0.95rem "Montserrat", sans-serif;
  margin: 0 0 6px;
}

/* -------------------------------------------
   Hi-Fi Prototype — Section
   ------------------------------------------- */
.hi-fi h2 {
  margin: 16px 0 18px;
}

.hi-fi__lede p {
  max-width: 70ch;
  color: var(--text-2, #cfd8df);
}

.hi-fi__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 900px) {
  .hi-fi__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.hi-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hi-card h3 {
  font-size: 1.05rem;
  color: var(--c-cyan, #44e0ff);
  margin: 0 0 10px;
}

.hi-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-1, #e8eef2);
}

.hi-card li + li {
  margin-top: 6px;
}

/* -------------------------------------------
   Hi-Fi Gallery
   ------------------------------------------- */
.hi-fi-gallery .hi-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

@media (min-width: 740px) {
  .hi-fi-gallery .hi-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hi-shot {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hi-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
  cursor: zoom-in;
}

.hi-shot:hover img {
  transform: scale(1.02);
  filter: saturate(1.05);
}

.hi-shot figcaption {
  padding: 10px 12px 12px;
  font-size: 0.925rem;
  color: var(--text-2, #cfd8df);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* -------------------------------------------
   Lightbox (optional)
   ------------------------------------------- */
.hi-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.hi-lightbox {
  border: 0;
  padding: 0;
  background: rgba(18, 18, 18, 0.92);
  border-radius: 18px;
  width: min(96vw, 1080px);
  max-width: 96vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.hi-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hi-lightbox__cap {
  margin: 8px 14px 14px;
  color: var(--text-2, #cfd8df);
}

.hi-lightbox__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  line-height: 1;
  cursor: pointer;
}

.hi-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* accessibility helper (already in your system but provided here) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================
   Figma Prototype Embed
   =========================== */
.figma-prototype {
  text-align: center;
}

.figma-prototype h2 {
  margin-bottom: 12px;
  color: var(--neon-cyan, #44e0ff);
}

.figma-description {
  max-width: 70ch;
  margin: 0 auto 18px;
  color: rgba(255, 255, 255, 0.85);
}

.figma-embed-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

/* Maintain aspect ratio for Figma frame */
.figma-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
}

@media (max-width: 768px) {
  .figma-embed {
    aspect-ratio: 4 / 3;
    min-height: 360px;
  }
}

/* ===========================================================
   NEXT STEPS (Roadmap)
   =========================================================== */
.roadmap .roadmap-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
}
.rm-col {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.06);
  color: #fff; /* White base text */
}

/* Card title in orange accent */
.rm-title {
  font: 700 1rem "Montserrat", sans-serif;
  margin: 0 0 8px;
  color: var(--neon-orange);
}

/* Checklist text white, checkmark orange */
.rm-col .checklist li {
  color: rgba(255, 255, 255, 0.92);
}
.rm-col .checklist li::before {
  color: var(--neon-orange);
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  .usertest .usertest-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .usertest-grid {
    grid-template-columns: 1fr;
  }
  .pov .pov-grid {
    grid-template-columns: 1fr;
  }
  .roadmap .roadmap-cols {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Design Methodology – styling
   =========================== */
.method-summary {
  position: relative;
  counter-reset: ms-step;
}

#why-wont-you-indent-design-summary-title {
  margin-left: 14px;
}

/* Cyan “spine” on the left that fades down */
.method-summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--neon-cyan), transparent 70%);
  opacity: 0.85;
  border-radius: 3px;
}

/* Responsive, compact glass cards */
.method-summary .ms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.method-summary .ms-item {
  position: relative;
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

/* Numbered pill (1,2,3…) */
.method-summary .ms-item::after {
  counter-increment: ms-step;
  content: counter(ms-step);
  position: absolute;
  top: 10px;
  right: 12px;
  font: 700 0.8rem "Montserrat", sans-serif;
  color: #0b1416;
  background: var(--neon-cyan);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 255, 255, 0.25);
}

/* Title in cyan; body remains white */
.method-summary .ms-kicker {
  margin: 0 0 6px;
  font: 700 1rem "Montserrat", sans-serif;
  letter-spacing: 0.3px;
  color: var(--neon-cyan);
}
.method-summary .ms-item p {
  margin: 0;
}

.method-summary .ms-footnote {
  margin-top: 12px;
  opacity: 0.7;
}

/* === 7) CASE-NAV (Prev / Home / Next) ================================= */
.case-nav {
  max-width: calc(var(--bl-content-max) - var(--bl-nav-inset));
  margin: 48px auto 24px;
  padding: 0 var(--bl-content-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.case-nav .case-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 240px;
  padding: 12px 24px;
  line-height: 1;
  text-align: center;
  font-weight: 600;
}
.case-nav .case-nav-btn svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .case-nav {
    max-width: 100%;
    padding-inline: var(--bl-content-pad);
    flex-direction: column;
    justify-content: center;
  }
  .case-nav .case-nav-btn {
    width: 100%;
  }
}

/* === 8) SCROLL PROGRESS BAR (optional) ================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), transparent);
  box-shadow: 0 0 10px var(--neon-cyan-soft);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* === 9) SAFETY NETS ==================================================== */
/* Prevent layout breaks from long strings */
.case-article,
.case-article * {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ========================================================================
   BLENDER — Gentle section accents (orange/blue/white)
   ===================================================================== */
:root {
  --bl-orange: #e87d0d;
  --bl-blue: #265787;
  --bl-white: #ffffff;
}

/* ---- A. Section shells ------------------------------------------------ */
.bl-slab {
  position: relative;
  margin: 48px 0;
}

/* Left accent rail: faint 2px rail + soft glow */
.bl-slab--leftbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.35;
  box-shadow: 0 0 16px currentColor;
}
.bl-slab--orange {
  color: var(--bl-orange);
}
.bl-slab--blue {
  color: var(--bl-blue);
}

/* Corner tab: a tiny triangular tag, top-left */
.bl-slab--tab::after {
  content: "";
  position: absolute;
  top: -8px;
  left: -6px;
  width: 10px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: 0.55;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* ---- B. Heading treatments ------------------------------------------- */
.hd {
  position: relative;
  margin-bottom: 18px;
}
.hd::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 3px;
  width: 72px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.hd--orange::after {
  background: linear-gradient(90deg, var(--bl-orange), transparent);
}
.hd--blue::after {
  background: linear-gradient(90deg, var(--bl-blue), transparent);
}
.hd--white::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
}

/* Optional faint headline glow */
.hd--glow {
  text-shadow: 0 0 14px rgba(64, 230, 255, 0.12);
}

/* ---- C. Callouts (quotes / highlights) -------------------------------- */
.callout {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) inset;
}
.callout--orange {
  border-top: 3px solid var(--bl-orange);
}
.callout--blue {
  border-top: 3px solid var(--bl-blue);
}
.callout--white {
  border-top: 3px solid rgba(255, 255, 255, 0.65);
}
.callout p {
  margin: 0;
}

/* ---- D. Step badges (nice for Methods / Process) --------------------- */
.steps {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}
.step .badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #111;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25) inset;
}
.step--orange .badge {
  box-shadow: 0 0 0 2px var(--bl-orange) inset;
}
.step--blue .badge {
  box-shadow: 0 0 0 2px var(--bl-blue) inset;
}

/* ---- E. Lists with icon bullets ------------------------------------- */
.list {
  margin: 10px 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}
.list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
}
.list--orange li::before {
  background: var(--bl-orange);
  opacity: 0.85;
}
.list--blue li::before {
  background: var(--bl-blue);
  opacity: 0.85;
}
.list--white li::before {
  background: rgba(255, 255, 255, 0.75);
}

/* ---- F. Soft dotted divider ----------------------------------------- */
.bl-dot {
  border: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  margin: 18px 0 12px;
}

/* ---- G. Subtle band (for alternating sections if desired) ------------ */
.bl-band {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px 18px;
}

/* ================================================================
   PERSONAS — 2-column layout with “Needs / Pain Points” decoration
   ================================================================ */
.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2vw, 28px);
}
@media (max-width: 900px) {
  .persona-grid {
    grid-template-columns: 1fr;
  }
}

.persona-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: clamp(16px, 2vw, 22px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.persona-head {
  margin-bottom: 10px;
}
.persona-name {
  margin: 0 0 6px;
  font-weight: 700;
}
.persona-one {
  margin: 0;
  opacity: 0.85;
}

.persona-body {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.persona-block {
  position: relative;
  padding: 12px 14px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.persona-needs {
  box-shadow: 0 0 0 2px rgba(38, 87, 135, 0.35) inset;
}
.persona-pain {
  box-shadow: 0 0 0 2px rgba(232, 125, 13, 0.35) inset;
}

.block-label {
  position: absolute;
  top: -10px;
  left: 12px;
  padding: 2px 8px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  border-radius: 10px;
  color: #111;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}
/* --- Personas: contrast + non-intrusive labels --- */
.persona-card {
  /* slightly darker panel and stronger edge for WCAG contrast */
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.persona-one {
  /* intro paragraph */
  color: rgba(255, 255, 255, 0.92);
  opacity: 1; /* remove previous softening */
}

.persona-block {
  background: rgba(12, 14, 16, 0.45); /* darker interior */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 14px 16px 14px;
}

/* keep accents, but as a clean border rather than heavy inset glow */
.persona-needs {
  border-color: rgba(38, 87, 135, 0.55);
}
.persona-pain {
  border-color: rgba(232, 125, 13, 0.55);
}

/* badges become inline, quiet, and readable */
.persona-block .block-label {
  position: static; /* no overlap */
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  padding: 3px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid currentColor;
}

/* subtle brand tint per block */
.persona-needs .block-label {
  color: rgba(145, 192, 239, 0.95);
  border-color: rgba(145, 192, 239, 0.6);
}
.persona-pain .block-label {
  color: rgba(255, 182, 109, 0.95);
  border-color: rgba(255, 182, 109, 0.6);
}

/* list text brighter and bullets matched to brand accents */
.persona-block .list li {
  color: rgba(255, 255, 255, 0.92);
}
.persona-block .list--blue li::before {
  background: #265787;
  opacity: 1;
}
.persona-block .list--orange li::before {
  background: #e87d0d;
  opacity: 1;
}

/* ================================================================
   COMPETITIVE AUDIT — Card accordion with single-open behavior
   ================================================================ */
.audit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
@media (max-width: 1000px) {
  .audit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .audit-grid {
    grid-template-columns: 1fr;
  }
}

.audit-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

/* Closed state (button) */
.audit-toggle {
  width: 100%;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 28px 20px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: transform 0.22s ease, background-color 0.22s ease;
}
.audit-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.audit-logo {
  width: 44px;
  height: 44px;
  opacity: 0.95;
}
.audit-name {
  margin-top: 6px;
  font-weight: 600;
  opacity: 0.9;
}

/* Open panel */
.audit-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 16px 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

.audit-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .audit-cols {
    grid-template-columns: 1fr;
  }
}

.audit-sub {
  margin: 0 0 8px;
}

/* Visual hint: emphasize the selected card */
.audit-card[aria-current="true"] {
  box-shadow: 0 12px 30px rgba(232, 125, 13, 0.12), 0 0 0 1px rgba(232, 125, 13, 0.4) inset;
}

/* ================== AUDIT: vertical rail + right-stage layout ================== */
.audit-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
}

/* Left rail (stacked buttons) */
.audit-rail {
  display: grid;
  gap: 10px;
}

.audit-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  transition: background 0.22s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.audit-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}
.audit-card[aria-selected="true"] {
  box-shadow: 0 12px 28px rgba(38, 87, 135, 0.16), 0 0 0 1px rgba(38, 87, 135, 0.45) inset;
  background: linear-gradient(180deg, rgba(38, 87, 135, 0.08), rgba(255, 255, 255, 0.04));
}
.audit-logo {
  width: 44px;
  height: 44px;
  opacity: 0.95;
}
.audit-name {
  font-weight: 600;
  opacity: 0.9;
}

/* Right stage */
.audit-stage {
  min-height: 240px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: radial-gradient(120% 140% at 10% 0%, rgba(38, 87, 135, 0.12) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0.03) 100%),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.audit-stage-inner {
  padding: clamp(16px, 2.4vw, 24px);
}
.audit-placeholder {
  opacity: 0.72;
}

.audit-detail .audit-title {
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.audit-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 18px);
}
@media (max-width: 560px) {
  .audit-cols {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Competitive Audit polish
   =========================== */

/* 1) Uniform left alignment + slightly larger text in the opened card */
#competitive-audit .audit-detail {
  text-align: left;
}
#competitive-audit .audit-detail h3 {
  font-size: clamp(1.15rem, 1.1vw + 1rem, 1.35rem);
  letter-spacing: 0.01em;
}
#competitive-audit .audit-detail .audit-col h4 {
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
#competitive-audit .audit-detail p,
#competitive-audit .audit-detail li {
  font-size: 1rem; /* slightly larger than body */
  line-height: 1.65;
}

/* If your two columns were centered via flex, make sure they align left */
#competitive-audit .audit-detail .audit-col {
  align-items: flex-start;
}

/* 2) List items: neutral white so orange isn’t overused */
#competitive-audit .audit-detail li {
  color: rgba(255, 255, 255, 0.85);
}
/* If you use custom bullets/dots, mute those as well */
#competitive-audit .audit-detail li::marker {
  color: rgba(255, 255, 255, 0.55);
}
/* (Optional) for custom dot elements, uncomment:
#competitive-audit .audit-detail .dot {
  background: rgba(255,255,255,0.65);
}
*/

/* 3) Space between the last audit card and the conclusion line */
#competitive-audit .audit-grid,
#competitive-audit .audit-panel {
  /* keep whichever wrapper you use */
  margin-bottom: clamp(28px, 3vw, 56px);
}

/* 4) Keep only the label in orange; rest stays normal body color */
#competitive-audit p.audit-conclusion strong,
#competitive-audit p > strong:first-child {
  color: var(--bl-orange, #e87d0d);
}
#competitive-audit p.audit-conclusion {
  margin-top: 4px; /* small gap below the label line above if present */
  color: rgba(255, 255, 255, 0.9); /* normal body text */
}

/* ===========================
   Competitive Audit – Card Label Alignment
   =========================== */

#competitive-audit .audit-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem; /* spacing between cards */
}

#competitive-audit .audit-card {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* align contents to the left */
  text-align: left;
  gap: 1rem; /* space between logo and text */
  padding: 0.75rem 1rem;
}

/* logo placeholder keeps its size */
#competitive-audit .audit-card .audit-logo {
  flex: 0 0 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}

/* text aligned flush left */
#competitive-audit .audit-card h4 {
  margin: 0;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* MOBILE: switch to single column — stage hidden, cards act as accordions */
@media (max-width: 900px) {
  .audit-layout {
    grid-template-columns: 1fr;
  }
  .audit-stage {
    display: none;
  }
  .audit-rail {
    gap: 12px;
  }
  .audit-card {
    grid-template-columns: 44px 1fr auto;
  }
  .audit-card::after {
    content: "▸";
    opacity: 0.6;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .audit-card[aria-expanded="true"]::after {
    transform: rotate(90deg);
    opacity: 0.9;
  }

  /* Mobile panel block inserted under its card */
  .audit-mobile-panel {
    margin-top: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
    overflow: hidden;
  }
  .audit-mobile-panel .audit-stage-inner {
    padding: 16px;
  }
}

/* ===========================
   UX FLOWS
   =========================== */
.ux-flows {
  position: relative;
}
.ux-flows .flow-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px 16px 14px;
  margin-block: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.05);
}
.ux-flows .flow-head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ux-flows .flow-head h3 {
  margin: 0;
  font: 700 1.05rem "Montserrat", sans-serif;
  color: var(--neon-cyan);
  letter-spacing: 0.2px;
}
.ux-flows .flow-legend {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ux-flows .badge {
  font: 600 0.72rem/1 "Montserrat", sans-serif;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(2px);
}
.ux-flows .badge-cyan {
  color: #0b1416;
  background: var(--neon-cyan);
  border-color: rgba(255, 255, 255, 0.18);
}

/* step rail */
.ux-flows .flow-rail {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 14px;
  padding: 14px 4px 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.ux-flows .flow-rail::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 36px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.6), rgba(0, 255, 255, 0));
  border-radius: 2px;
  pointer-events: none;
}
.ux-flows .flow-step {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 12px 12px;
  min-height: 78px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}
.ux-flows .flow-step p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}
.ux-flows .step-dot {
  position: absolute;
  left: 12px;
  top: -12px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font: 700 0.8rem "Montserrat", sans-serif;
  color: #0b1416;
  background: var(--neon-cyan);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 255, 255, 0.25);
}

@media (max-width: 700px) {
  .ux-flows .flow-rail {
    grid-auto-columns: minmax(70%, 1fr); /* comfortable swipe on mobile */
  }
}

/* ================================
   Timeline + Findings — Component
   (scoped to blender case study)
   ================================ */
.timeline-section,
.findings-section {
  --c-cyan: #40e6ff;
  --c-orange: #e87d0d;
  --c-text: rgba(255, 255, 255, 0.88);
  --c-muted: rgba(255, 255, 255, 0.72);
  --c-panel: rgba(255, 255, 255, 0.06);
  --c-border: rgba(255, 255, 255, 0.1);
}

/* --- Timeline --- */
.tl {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.25rem;
  position: relative;
  padding: 2rem 0;
  align-items: flex-start;
}

/* baseline line */
.tl::before {
  content: "";
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 3.25rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  pointer-events: none;
}

/* node */
.tl-node {
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  border-radius: 14px;
  padding: 1rem 1rem 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  min-width: clamp(220px, 18vw, 320px);
  text-align: left;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  outline: none;
}

.tl-node::before {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 0;
  bottom: -1.5rem;
  width: 2px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  z-index: 0;
  opacity: 0.6;
}

/* Hide connector on last row items */
.tl-node:nth-last-child(-n + 2)::before {
  display: none;
}

.tl-node:focus-visible {
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(64, 230, 255, 0.18);
}

.tl-node:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

/* dot that sits on the line */
.tl-dot {
  position: absolute;
  left: 1rem;
  top: 2.95rem; /* sits on the baseline */
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2a2a2a;
  border: 2px solid var(--c-cyan);
  box-shadow: 0 0 0 4px rgba(64, 230, 255, 0.08);
}

/* title + body */
.tl-title {
  display: block;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-left: 2.1rem;
  margin-bottom: 0.35rem;
}

.tl-body {
  margin-left: 2.1rem;
  color: var(--c-muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.24s ease, opacity 0.24s ease;
  opacity: 0;
}

/* expanded */
.tl-node[aria-expanded="true"] .tl-body {
  max-height: 260px;
  opacity: 1;
}

/* --- Responsive: vertical timeline --- */
@media (max-width: 900px) {
  .tl {
    flex-direction: column;
  }
  .tl::before {
    left: 1.65rem;
    top: 0;
    bottom: 0;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  }
  .tl-dot {
    left: 0.95rem;
    top: 1.1rem;
  }
  .tl-title,
  .tl-body {
    margin-left: 2.4rem;
  }
}

/* --- Findings split grid --- */
.findings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: min(2.2rem, 3vw);
  margin-top: 1.25rem;
}

.finding-card {
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: 18px;
  overflow: hidden;
}

/* headers with subtle accent line */
.finding-header {
  padding: 1.1rem 1.25rem 0.9rem;
  border-bottom: 1px solid var(--c-border);
  position: relative;
}
.finding-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}
.finding-header--cyan h3 {
  color: var(--c-cyan);
}
.finding-header--orange h3 {
  color: var(--c-orange);
}

.finding-header .subhead {
  color: var(--c-muted);
  margin-top: 0.25rem;
}

.finding-body {
  padding: 1rem 1.25rem 1.25rem;
}
.finding-block + .finding-block {
  margin-top: 0.85rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin: 0.35rem 0 0;
}
.pill-list li {
  list-style: none;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  color: var(--c-muted);
  background: rgba(255, 255, 255, 0.03);
}

/* shared overlap */
.shared-insights {
  margin-top: min(2.5rem, 4vw);
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: 16px;
}
.shared-insights h3 {
  color: var(--c-orange);
  margin-bottom: 0.6rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin-bottom: 0.6rem;
}
.chip {
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.03);
}
.tl-dr {
  color: var(--c-muted);
  margin: 0;
}

/* responsive stack */
@media (max-width: 980px) {
  .findings-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Global page overflow hygiene for Blender case --- */
html,
body.blender-page {
  /* Stop any accidental horizontal scroll bars from wide effects */
  overflow-x: clip; /* modern; use hidden if needed */
}

/* The article is the visual ‘stage’; do not create nested scrollers */
.case-article {
  overflow: visible; /* ensure it doesn't become a scroll container */
  position: relative; /* we already rely on this for the balance layer */
}

/* Footer: remove phantom space after copyright */
.site-footer {
  margin-bottom: 0 !important; /* hard stop */
  padding-bottom: 0 !important;
}

/* If any divider under the footer had extra space, zero it out */
.footer-divider {
  margin-bottom: 0 !important;
}

/* --- Balance background containment --- */
.case-article .cs-balance-bg {
  /* Prevent its blurred pseudo-elements from increasing page size */
  overflow: hidden; /* clips ::before/::after expansion */
  isolation: isolate; /* keeps filters from leaking compositing */
  z-index: 2;
}

/* Keep the wide sheen from creating horizontal overflow */
.case-article .cs-balance-bg::after {
  left: 50%;
  width: 100%; /* was 120% — that created a horizontal scroll source */
  transform: translateX(-50%) rotate(2deg);
}

/* Defensive: any section strips that might have overflow:auto */
.timeline-wrap,
.audit-wrap,
.persona-grid,
.summary-strip,
.cs-section {
  overflow: visible; /* avoid vertical nested scrollbars */
}

/* The horizontal timeline should only ever scroll horizontally if needed */
.timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Mobile polish: hide OS-provided scrollbars on the horizontal strip */
.timeline-scroll {
  scrollbar-width: thin;
}
.timeline-scroll::-webkit-scrollbar {
  height: 6px;
}

/* --- Blender page overflow + layer clamps -------------------------------- */

/* Never let decorative layers create scrollable overflow */
.blender-page,
.blender-page .case,
.blender-page .case-article {
  position: relative;
  overflow-x: clip; /* kill the phantom right scrollbar */
}

/* Any of our background helpers should not extend page height */
.cs-balance-bg,
.cs-abstract-noise,
.cs-diagonal-sheen,
.cs-abstract-noise::before,
.cs-diagonal-sheen::before {
  position: absolute;
  inset: 0; /* keep them inside their section/article */
  pointer-events: none;
  contain: paint; /* shadows/filters do not affect layout */
  overflow: clip; /* clamp painting to their box */
}

/* If you used a “tall” balance band, keep it inside the article */
.cs-balance-bg {
  top: clamp(220px, 18vh, 360px); /* where it begins below the summary */
  bottom: clamp(40px, 10vh, 160px);
}

/* Footer spacing: keep it tight, no margin collapse below */
.site-footer {
  margin-bottom: 0 !important;
}

/* -----------------------------------------------------------------------
   Clamp the long "balance" background so it can't extend the page height
   ----------------------------------------------------------------------- */
.blender-page .case-article {
  position: relative;
} /* establish containing block */
.blender-page .cs--blender.cs-section {
  position: relative;
  z-index: 1;
}

/* The decorative strip itself */
.blender-page .cs-balance-bg {
  position: absolute;
  left: max(0px, env(safe-area-inset-left));
  right: max(0px, env(safe-area-inset-right));

  /* Keep it *inside* the article; override any inline styles */
  top: clamp(200px, 16vh, 360px) !important;
  bottom: clamp(80px, 18vh, 220px) !important;

  height: auto !important; /* neutralize inline 'height: 10147.8px' */
  max-height: 100% !important; /* belt + suspenders */
  overflow: clip; /* don't paint outside its box */
  pointer-events: none;
  z-index: 0; /* behind content, above page bg */
}

/* If any inline style slips through on resize, kill it again */
.blender-page .cs-balance-bg[style] {
  height: auto !important;
  max-height: 100% !important;
}
