/* ============================================================
   Signal Atlas — Problem/Solution sections (3 options)
   Reuses the hero system: Schibsted Grotesk / Hanken Grotesk / IBM Plex Mono,
   warm light page, single cyan signal accent.
   ============================================================ */
.ps {
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-text: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --bg: #FBFBF9;
  --surface: #FFFFFF;
  --fg: #16181C;
  --fg-dim: #4C5159;
  --fg-faint: #7A7F87;
  --bd: #E7E6E0;
  --bd-soft: #EEEDE7;
  --accent: oklch(0.55 0.15 252);
  --accent-ink: oklch(0.47 0.16 254);
  --accent-soft: oklch(0.55 0.15 252 / 0.09);
  --accent-line: oklch(0.55 0.15 252 / 0.22);
  --muted: #9A9EA6;
  --muted-bg: #F2F1EC;
  position: relative;
  width: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  box-sizing: border-box;
}
.ps *, .ps *::before, .ps *::after { box-sizing: border-box; }

.ps-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink);
}
.ps-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.ps-h2 {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.06;
  color: var(--fg); margin: 0; text-wrap: balance;
}
.ps-lead { font-size: 17px; line-height: 1.6; color: var(--fg-dim); margin: 0; text-wrap: pretty; }

/* generic icon chip */
.ps-ic {
  width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent-ink);
}
.ps-ic svg { width: 19px; height: 19px; }

/* document chip token reused across visuals */
.ps-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: -0.01em;
  color: var(--fg-dim);
  background: var(--surface); border: 1px solid var(--bd);
  border-radius: 8px; padding: 5px 9px;
  box-shadow: 0 2px 8px -5px rgba(20,30,55,.22);
  white-space: nowrap;
}
.ps-chip .g { width: 12px; height: 12px; color: var(--accent); display: grid; place-items: center; }
.ps-chip .g svg { width: 12px; height: 12px; }

/* ============================================================
   OPTION 1 — single frame: thesis + 3 stacked cards
   ============================================================ */
.ps-opt1 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(56px, 6vw, 76px);
  align-items: start;
  padding: var(--sa-section-y) var(--sa-content-pad);
}
.ps-opt1 .col-l { max-width: 540px; }
.ps-opt1 .ps-h2 { font-size: clamp(38px, 3.1vw, 44px); margin: 20px 0 0; }
.ps-opt1 .ps-lead { margin-top: 20px; max-width: 510px; font-size: 16.5px; }

/* evidence cluster — public-sector fragments */
.ps-opt1 .ps-evidence { margin-top: 26px; position: relative; }
.ps-opt1 .ps-evidence-label {
  display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-faint); margin-bottom: 11px;
}
.ps-opt1 .ps-srcrow {
  display: flex; flex-wrap: nowrap; gap: 7px; width: 100%;
  justify-content: space-between;
}
.ps-opt1 .ps-srcrow .ps-chip {
  flex: 0 1 auto; min-width: 0; justify-content: center;
  font-size: 10.5px; padding: 6px 10px; border-radius: 8px;
}
.ps-opt1 .ps-srcrow .ps-chip .ctext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
  .ps-opt1 .ps-srcrow { flex-wrap: wrap; justify-content: flex-start; }
}

/* problem section — responsive: stack thesis over cards */
@media (max-width: 980px) {
  .ps-opt1 { grid-template-columns: 1fr; gap: 44px; padding: clamp(70px, 8vw, 84px) var(--sa-content-pad); }
  .ps-opt1 .col-l { max-width: 660px; }
  .ps-opt1 .ps-h2 { font-size: 36px; }
  .ps-opt1 .cards { max-width: 560px; }
}
@media (max-width: 560px) {
  .ps-opt1 { padding: 60px var(--sa-content-pad); gap: 36px; }
  .ps-opt1 .ps-h2 { font-size: 30px; }
  .ps-opt1 .ps-lead { font-size: 16px; }
}
/* transformation bridge: a quiet spine that funnels the chips down into the callout's accent edge */
.ps-opt1 .ps-bridge { position: relative; height: 24px; margin: 7px 0 0 1px; }
.ps-opt1 .ps-bridge .ln { position: absolute; left: 0; top: 2px; bottom: 5px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--accent-line) 30%, var(--accent)); }
.ps-opt1 .ps-bridge .tip { position: absolute; left: -1px; bottom: 0; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px 1px oklch(0.55 0.15 252 / .5); }

/* the "aha" callout */
.ps-opt1 .closer {
  margin-top: 6px; position: relative; display: block;
  padding: 22px 24px 22px 26px; border-radius: var(--sa-card-radius);
  background: linear-gradient(180deg, var(--surface), var(--accent-soft));
  border: 1px solid var(--accent-line);
  box-shadow: 0 14px 36px -30px oklch(0.55 0.15 252 / .5);
  max-width: 500px; overflow: hidden;
}
/* premium accent: a subtle blue vertical line + soft left-edge glow */
.ps-opt1 .closer::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent);
  box-shadow: 0 0 16px 1px oklch(0.55 0.15 252 / .45);
}
.ps-opt1 .closer .closer-body { font-family: var(--font-text); font-size: 16px; color: var(--fg); line-height: 1.5; }
.ps-opt1 .closer .closer-tag {
  display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 7px;
}
.ps-opt1 .closer b { font-weight: 600; color: var(--accent-ink); }

/* connected-system cards: timing → coverage → workflow */
.ps-opt1 .cards { display: flex; flex-direction: column; gap: 14px; position: relative; }
.ps-opt1 .cards::before {
  content: ""; position: absolute; left: 46px; top: 38px; bottom: 38px; width: 1px;
  background: linear-gradient(180deg, var(--accent-line), var(--accent-line) 50%, transparent);
  z-index: 0;
}
.ps-card {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--bd); border-radius: var(--sa-card-radius);
  padding: 22px 24px; display: flex; gap: 18px; align-items: flex-start;
  box-shadow: var(--sa-shadow-soft);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .24s ease, border-color .2s ease;
}
.ps-card:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -30px rgba(20,30,55,.45); border-color: var(--accent-line); }
.ps-card .ps-ic { transition: transform .2s ease, background .2s ease; }
/* visible blue icon chips so the cards carry real brand color */
.ps-card .ps-ic {
  background: linear-gradient(180deg, var(--accent), oklch(0.5 0.16 252));
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px -9px oklch(0.55 0.15 252 / .7);
}
.ps-card:hover .ps-ic { transform: scale(1.06); }
.ps-card .body { min-width: 0; }
.ps-card .body .stage {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-faint);
}
.ps-card .body .stage b { color: var(--accent-ink); font-weight: 600; }
.ps-card .body h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.015em; margin: 0 0 7px; color: var(--fg); }
.ps-card .body p { font-size: 14.5px; line-height: 1.55; color: var(--fg-dim); margin: 0; }
.ps-card .body .proof {
  display: flex; align-items: center; gap: 8px; margin-top: 15px; padding-top: 13px;
  border-top: 1px solid var(--bd);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.01em; font-weight: 500;
  color: var(--fg-dim);
}

@keyframes ps-glow { 0%,100% { box-shadow: 0 18px 40px -28px oklch(0.55 0.15 252 / .55), inset 0 1px 0 #fff; } 50% { box-shadow: 0 20px 46px -26px oklch(0.55 0.15 252 / .8), inset 0 1px 0 #fff; } }
@media (prefers-reduced-motion: no-preference) {
  .ps-opt1 .closer { animation: ps-glow 4.6s ease-in-out 1.4s infinite; }
}

/* ============================================================
   OPTION 2 — sticky pain→solution deck (left thesis + 4 cards)
   ============================================================ */
.ps-opt2 { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(56px, 6vw, 80px); padding: var(--sa-section-y) var(--sa-content-pad); align-items: start; }
.ps-opt2 .col-l { position: sticky; top: 96px; align-self: start; max-width: 460px; }
.ps-opt2 .ps-h2 { font-size: 38px; margin: 18px 0 0; }
.ps-opt2 .ps-lead { margin-top: 20px; font-size: 16px; }
.ps-opt2 .support {
  margin-top: 24px; padding: 16px 18px; border-radius: 13px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  font-size: 14.5px; line-height: 1.5; color: var(--accent-ink); font-weight: 500;
}
.ps-opt2 .deck { display: flex; flex-direction: column; gap: 20px; }
.ps-slide {
  background: var(--surface); border: 1px solid var(--bd); border-radius: var(--sa-card-radius);
  padding: 26px 28px 24px; box-shadow: var(--sa-shadow-soft);
}
.ps-slide .s-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.ps-slide .s-idx {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 7px; padding: 4px 9px;
}
.ps-slide h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin: 0; color: var(--fg); }
.ps-slide p { font-size: 15px; line-height: 1.58; color: var(--fg-dim); margin: 0 0 20px; max-width: 92%; }
/* mini-visual frame */
.ps-viz {
  position: relative; height: 150px; border-radius: 13px; overflow: hidden;
  background:
    linear-gradient(0deg, var(--bd-soft) 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(90deg, var(--bd-soft) 1px, transparent 1px) 0 0 / 26px 100%,
    #FCFCFA;
  border: 1px solid var(--bd-soft);
}
.ps-viz .scatter { position: absolute; inset: 0; }
.ps-viz .ps-chip { position: absolute; transform: translate(-50%, -50%); }
/* converge (slide 2) */
.ps-viz svg.flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.ps-viz .src-dot { fill: var(--accent); }
.ps-viz .src-dot.dim { fill: var(--muted); }
.ps-viz .flowline { stroke: var(--accent-line); stroke-width: 1; fill: none; }
.ps-viz .bottleneck {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-dim);
  background: var(--muted-bg); border: 1px dashed var(--muted); border-radius: 8px; padding: 7px 10px; text-align: center; line-height: 1.3;
}
/* timeline (slide 3) */
.ps-tl { position: absolute; left: 22px; right: 22px; top: 50%; transform: translateY(-50%); }
.ps-tl .axis { height: 2px; background: linear-gradient(90deg, var(--accent), #E2A33A); border-radius: 2px; position: relative; }
.ps-tl .pt { position: absolute; top: 50%; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 0; }
.ps-tl .pt .d { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ps-tl .pt.late .d { background: #D98A2B; box-shadow: 0 0 0 4px rgba(217,138,43,.16); }
.ps-tl .pt .lab { position: absolute; top: 16px; font-family: var(--font-mono); font-size: 10px; color: var(--fg-dim); white-space: nowrap; }
.ps-tl .pt .lab.early { left: 0; }
.ps-tl .pt .lab.rfp { right: 0; color: #B5701B; }
.ps-tl .crowd { position: absolute; top: -16px; right: -4px; display: flex; }
.ps-tl .crowd i { width: 7px; height: 7px; border-radius: 50%; background: #D98A2B; opacity: .5; margin-left: -3px; border: 1px solid #FCFCFA; }
/* transform (slide 4) */
.ps-tr { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.ps-tr .frag { display: flex; flex-direction: column; gap: 6px; }
.ps-tr .frag .ps-chip { position: static; transform: none; }
.ps-tr .eng {
  width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto;
  background: oklch(0.17 0.02 258); display: grid; place-items: center;
  box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 20px -8px oklch(0.55 0.15 252 / .5);
}
.ps-tr .eng svg { width: 22px; height: 22px; color: oklch(0.78 0.13 230); }
.ps-tr .arrow { flex: 1 1 auto; height: 1.5px; background: var(--accent-line); position: relative; margin: 0 10px; }
.ps-tr .arrow::after { content: ""; position: absolute; right: -1px; top: 50%; width: 5px; height: 5px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); transform: translateY(-50%) rotate(45deg); }
.ps-tr .out {
  background: var(--surface); border: 1px solid var(--accent-line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 10px 12px; box-shadow: 0 8px 20px -12px rgba(20,30,55,.5); width: 150px;
}
.ps-tr .out .t { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.ps-tr .out .n { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--fg); margin-top: 4px; line-height: 1.25; }
.ps-tr .out .m { font-family: var(--font-mono); font-size: 9px; color: var(--fg-faint); margin-top: 5px; }

/* ============================================================
   OPTION 3 — Before vs After, two lanes
   ============================================================ */
.ps-opt3 { padding: var(--sa-section-y) var(--sa-content-pad); }
.ps-opt3 .head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.ps-opt3 .head .ps-h2 { font-size: 40px; margin: 16px 0 0; }
.ps-opt3 .head .ps-lead { margin: 18px auto 0; max-width: 680px; }
.ps-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; position: relative; }
.ps-lane { border-radius: 20px; padding: 30px 30px 14px; }
.ps-lane.old { background: var(--muted-bg); border: 1px solid var(--bd); }
.ps-lane.new { background: var(--surface); border: 1px solid var(--accent-line); box-shadow: 0 30px 60px -40px rgba(40,70,140,.35); }
.ps-lane .lane-head { margin-bottom: 22px; }
.ps-lane .lane-tag {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.ps-lane.old .lane-tag { color: var(--muted); }
.ps-lane.new .lane-tag { color: var(--accent-ink); }
.ps-lane .lane-title { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; margin: 8px 0 4px; }
.ps-lane.old .lane-title { color: #4F535A; }
.ps-lane .lane-sub { font-size: 14px; color: var(--fg-faint); margin: 0; }
.ps-lane .items { display: flex; flex-direction: column; }
.ps-item { display: flex; gap: 15px; padding: 18px 0; border-top: 1px solid var(--bd-soft); }
.ps-lane.old .ps-item:first-child, .ps-lane.new .ps-item:first-child { border-top: 1px solid var(--bd); }
.ps-item .it-ic {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; display: grid; place-items: center;
}
.ps-lane.old .it-ic { background: #E8E7E1; color: var(--muted); }
.ps-lane.new .it-ic { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); }
.ps-item .it-ic svg { width: 17px; height: 17px; }
.ps-item h4 { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; margin: 2px 0 4px; }
.ps-lane.old .ps-item h4 { color: #54585F; }
.ps-lane.new .ps-item h4 { color: var(--fg); }
.ps-item p { font-size: 13.5px; line-height: 1.5; color: var(--fg-faint); margin: 0; }
.ps-lane.new .ps-item p { color: var(--fg-dim); }
/* center divider arrow */
.ps-vs {
  position: absolute; left: 50%; top: 64px; transform: translateX(-50%);
  z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--bd); display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--fg-faint);
  box-shadow: 0 6px 16px -8px rgba(20,30,55,.3);
}
