/* ---------------------------------------------------------------
   Light frames — Cresyn, Omningage, Pillars (+ nested details),
   RFP, Proof, Flexibility, Why It Works, CTA
--------------------------------------------------------------- */

.frame[data-theme="light"] { background: var(--bg); }
.frame[data-theme="light"]::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(500px 340px at 88% 0%, hsla(var(--hue-blue), 70%, 60%, 0.08), transparent 70%),
    radial-gradient(420px 300px at 8% 100%, hsla(var(--hue-amber), 70%, 60%, 0.06), transparent 70%);
}

.stat-row { display: flex; gap: var(--space-xl); margin-top: var(--space-lg); }

/* ============ ACT IV — CRESYN / GROWTH NETWORK ============
   A converging → diverging network: three nodes representing global
   tech innovation flow into the Cresyn hub, which fans back out to
   three nodes representing the US channel partner network — a more
   literal read of "bridging" than a single static arc, with a small
   pulse continuously traveling each connection to suggest ongoing,
   not one-time, flow. */
.frame--cresyn .frame__stage { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-xl); align-items: center; }
.growthnet { position: relative; width: 600px; height: 520px; margin: 0 auto; }
.growthnet__caption {
  position: absolute; top: 16px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint); white-space: nowrap;
}
.growthnet__caption--left { left: 85px; transform: translateX(-50%); }
.growthnet__caption--right { left: 515px; transform: translateX(-50%); }
.growthnet__lines, .growthnet__pulses { position: absolute; inset: 0; width: 100%; height: 100%; }
.growthnet__lines path { fill: none; stroke: var(--border-strong); stroke-width: 1.5; }
.growthnet__pulses circle { fill: var(--blue); opacity: 0; filter: drop-shadow(0 0 4px hsla(var(--hue-blue), 80%, 55%, 0.7)); }
.growthnet__node {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--bg-1); border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  opacity: 0;
}
.growthnet__node::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); opacity: 0.55;
}
.growthnet__hub {
  position: absolute; left: 300px; top: 260px;
  transform: translate(-50%, -50%) scale(0.6);
  width: 132px; height: 132px; border-radius: 50%;
  background: hsl(var(--hue-blue) 70% 16%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  box-shadow: var(--glow-blue);
  opacity: 0;
}
.growthnet__hub-logo { width: 62%; }

/* ============ ACT V — OMNINGAGE / VENN ============ */
.frame--omningage .frame__header { max-width: 900px; }
.venn { position: relative; height: 560px; margin: 0 auto; max-width: 660px; }
.venn__circle {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: 14px; font-weight: 700;
  padding: var(--space-md);
  mix-blend-mode: multiply;
}
/* Labels are nudged outward from the circle's own center (via the span's
   transform) so they sit near each circle's outer edge — clear of the
   center logo and of the other two circles' overlap zone. */
.venn__circle span { max-width: 8.5em; }
.venn__circle--a { background: hsla(var(--hue-blue), 80%, 60%, 0.16); border: 1.5px solid hsla(var(--hue-blue), 80%, 50%, 0.4); top: 0; left: 6%; color: hsl(var(--hue-blue) 70% 32%); }
.venn__circle--a span { transform: translate(-40px, -46px); }
.venn__circle--b { background: hsla(var(--hue-amber), 80%, 60%, 0.16); border: 1.5px solid hsla(var(--hue-amber), 80%, 50%, 0.4); top: 0; right: 6%; color: hsl(var(--hue-amber) 70% 32%); }
.venn__circle--b span { transform: translate(40px, -46px); }
.venn__circle--c { background: hsla(140, 50%, 55%, 0.14); border: 1.5px solid hsla(140, 50%, 45%, 0.4); bottom: -4%; left: 50%; transform: translateX(-50%); color: hsl(140 40% 28%); }
.venn__circle--c span { transform: translate(0, 68px); }
.venn__center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.6);
  width: 116px; height: 116px;
  background: var(--bg-1);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
  opacity: 0;
}
.venn__logo { width: 100%; }
.omningage__aws { position: absolute; bottom: 96px; right: 96px; max-width: 190px; }

/* ============ ACT VI — FOUR PILLARS HUB ============ */
.frame--pillars .frame__stage { text-align: center; }
.pillarstage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: var(--space-md);
  height: 560px;
}
.pillarhub-wrap {
  flex: 0 0 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.pillarhub { position: relative; width: 560px; height: 500px; transform-origin: center; }
.pillarhub__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hub-line { stroke: var(--border-strong); stroke-width: 0.3; }
.pillarhub__center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 140px; height: 140px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), hsl(var(--hue-amber) 70% 50%));
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: var(--glow-blue);
  z-index: 2;
}
.pillarhub__node {
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  font-weight: 700; font-size: 18px;
  color: var(--text);
  cursor: pointer;
  z-index: 1;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.pillarhub__num { font-size: 12px; color: var(--blue); font-weight: 800; letter-spacing: 0.05em; }
.pillarhub__node:hover { transform: scale(1.06); border-color: var(--blue); }
.pillarhub__node.is-active { border-color: var(--blue); box-shadow: var(--glow-blue); }
.pillarhub__node[data-pillar="people"]   { top: 0; left: 50%; transform: translateX(-50%); }
.pillarhub__node[data-pillar="product"]  { top: 50%; right: 0; transform: translateY(-50%); }
.pillarhub__node[data-pillar="process"]  { bottom: 0; left: 50%; transform: translateX(-50%); }
.pillarhub__node[data-pillar="profits"]  { top: 50%; left: 0; transform: translateY(-50%); }
.pillarhub__node[data-pillar="people"]:hover, .pillarhub__node[data-pillar="people"].is-active   { transform: translateX(-50%) scale(1.08); }
.pillarhub__node[data-pillar="process"]:hover, .pillarhub__node[data-pillar="process"].is-active { transform: translateX(-50%) scale(1.08); }
.pillarhub__node[data-pillar="product"]:hover, .pillarhub__node[data-pillar="product"].is-active { transform: translateY(-50%) scale(1.08); }
.pillarhub__node[data-pillar="profits"]:hover, .pillarhub__node[data-pillar="profits"].is-active { transform: translateY(-50%) scale(1.08); }
.pillarhub__hint { margin-top: var(--space-md); font-size: 15px; color: var(--text-faint); transition: opacity var(--dur-fast); }

/* Detail panel: shares the pillarstage row with the hub. Starts at
   zero width (hidden); js/interactions.js animates flex-basis + opacity
   together with the hub's shrink, so the pair grows outward from the
   stage's centered layout rather than jumping to a different frame. */
.pillardetail-wrap {
  flex: 0 0 0px;
  overflow: hidden;
  opacity: 0;
  height: 100%;
  display: flex;
  align-items: center;
}
.pillardetail { position: relative; width: 640px; text-align: left; }
.pillardetail__panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.pillardetail__panel.is-active { opacity: 1; visibility: visible; position: relative; }
.pillardetail__panel h3 { font-size: 44px; margin: 6px 0 var(--space-sm); }
.pillardetail__intro { font-size: var(--fs-lead); color: var(--text-dim); margin-bottom: var(--space-md); }
.pillardetail__panel ul { display: flex; flex-direction: column; gap: 14px; }
.pillardetail__panel li { position: relative; padding-left: 24px; font-size: 19px; color: var(--text); }
.pillardetail__panel li::before { content: ''; position: absolute; left: 0; top: 10px; width: 14px; height: 2px; background: var(--blue); }

/* ============ ACT VII — RFP WALKTHROUGH ============ */
.rfpwalk { display: flex; gap: var(--space-xl); align-items: flex-start; margin-top: var(--space-lg); }
.rfpwalk__main { flex: 1; min-width: 0; }
.rfpwalk__steps { position: relative; display: flex; justify-content: space-between; margin-bottom: var(--space-lg); }
.rfpwalk__steps::before {
  content: ''; position: absolute; top: 28px; left: 28px; right: 28px; height: 2px;
  background: var(--border-strong); z-index: 0;
}
.rfpwalk__step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  flex: 1;
}
.rfpwalk__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-1); border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint);
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.rfpwalk__icon svg { width: 24px; height: 24px; }
.rfpwalk__label { font-size: 13px; font-weight: 600; color: var(--text-faint); transition: color var(--dur-fast); text-align: center; }
.rfpwalk__step.is-done .rfpwalk__icon { border-color: var(--blue); color: var(--blue); background: hsla(var(--hue-blue), 70%, 55%, 0.08); }
.rfpwalk__step.is-done .rfpwalk__label { color: var(--text-dim); }
.rfpwalk__step.is-active .rfpwalk__icon { border-color: var(--blue); background: var(--blue); color: #fff; transform: scale(1.1); box-shadow: var(--glow-blue); }
.rfpwalk__step.is-active .rfpwalk__label { color: var(--text); font-weight: 700; }
.rfpwalk__desc { position: relative; min-height: 90px; }
.rfpwalk__desc p {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  font-family: var(--font-display); font-size: 30px; font-weight: 500; line-height: 1.3; max-width: 900px;
}
.rfpwalk__desc p.is-active { opacity: 1; visibility: visible; position: relative; }
.rfpwalk__side { flex: 0 0 360px; }
.rfpwalk__side h4 { font-size: 17px; margin-bottom: var(--space-md); }

/* ============ ACT VIII — CASE STUDIES ============ */
.casegallery { display: flex; gap: var(--space-md); margin-top: var(--space-lg); }
.casecard {
  flex: 1;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
  transition: border-color var(--dur-fast), background var(--dur-fast);
  display: flex; flex-direction: column; gap: 4px;
}
.casecard__name { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.casecard__tag { font-size: 13px; color: var(--text-faint); }
.casecard.is-active { border-color: var(--blue); background: var(--bg-1); box-shadow: var(--shadow-card); }

.casedetail { position: relative; margin-top: var(--space-lg); min-height: 220px; }
.casedetail__panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.casedetail__panel.is-active { opacity: 1; visibility: visible; position: relative; }
.casedetail__logo { height: 20px; width: auto; margin-bottom: var(--space-sm); }
.casedetail__meta { color: var(--text-dim); font-size: 16px; margin-bottom: var(--space-md); }
.casedetail__stats { display: flex; gap: var(--space-xl); }
.casedetail__quote { max-width: 700px; margin-top: var(--space-md); font-size: 16px; font-style: italic; color: var(--text-dim); }
.casedetail__quote footer { margin-top: 6px; font-size: 13px; font-style: normal; color: var(--text-faint); }

/* ============ ACT IX — FLEXIBILITY DIAL ============ */
.dial { margin-top: var(--space-xl); }
.dial__track { position: relative; height: 4px; background: var(--border-strong); border-radius: 4px; margin: 0 70px; }
.dial__fill { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: linear-gradient(90deg, var(--blue), var(--amber)); border-radius: 4px; transition: width var(--dur-med) var(--ease-out); }
.dial__stop {
  position: absolute; top: 50%; left: calc(var(--pos) * 33.333%); transform: translate(-50%, -50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--bg-1); border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--text-faint);
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.dial__stop.is-active { border-color: var(--blue); background: var(--blue); color: #fff; transform: translate(-50%, -50%) scale(1.12); }
/* dial__stop circles (50px) extend ~23px past the track's own 4px-tall
   box on either side, so the labels below need enough top margin to
   clear them rather than the old var(--space-sm) — which overlapped. */
.dial__labels { display: flex; justify-content: space-between; margin: 42px 70px 0; font-size: 13px; color: var(--text-faint); }
.dial__panels { position: relative; min-height: 130px; margin-top: var(--space-xl); text-align: center; }
.dial__panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.dial__panel.is-active { opacity: 1; visibility: visible; position: relative; }
.dial__panel h4 { font-size: var(--fs-h3); margin-bottom: 8px; }
.dial__panel p { color: var(--text-dim); font-size: var(--fs-lead); max-width: 640px; margin: 0 auto; }

/* ============ ACT X — WHY IT WORKS ============ */
.frame--why .frame__stage { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-xl); align-items: center; }
.whylist { display: flex; flex-direction: column; gap: var(--space-md); margin-top: var(--space-md); }
.whyitem { display: flex; gap: var(--space-md); align-items: baseline; }
.whyitem__num { font-family: var(--font-display); font-size: 24px; color: var(--blue); font-weight: 600; flex-shrink: 0; width: 2.2ch; }
.whyitem h4 { font-size: 22px; }
.early-card h4 { font-size: 18px; margin-bottom: var(--space-md); }
.checklist { display: flex; flex-direction: column; gap: 14px; }
.checklist li { position: relative; padding-left: 28px; font-size: 17px; }
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 11px; display: flex; align-items: center; justify-content: center;
}

/* ============ CTA ============ */
.frame--cta { align-items: center; justify-content: center; text-align: center; }
.frame--cta .frame__stage { display: flex; flex-direction: column; align-items: center; }
.cta__actions { display: flex; gap: var(--space-md); margin: var(--space-lg) 0; }
.cta__tagline { font-family: var(--font-display); font-style: italic; color: var(--text-faint); font-size: 19px; }
