/* DeCYFIR hero options V5–V7 (no JS; motion respects prefers-reduced-motion) */
.phero__visual.h5, .phero__visual.h6, .phero__visual.h7 { padding: 24px 0 40px; }

/* ---------- V5: three lanes converge into one priority ---------- */
.h5 { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 260px); align-items: center; min-height: 440px; }
.h5__lanes { display: grid; gap: 22px; min-width: 0; }
.ln__h { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); }
.ln--1 .ln__h { color: var(--red); } .ln--2 .ln__h { color: var(--violet); }
.ln__track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 100%); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 100%); }
.ln__track ul { display: flex; gap: 8px; width: max-content; margin: 0; padding: 0; list-style: none; }
.ln__track li { flex: none; padding: 9px 13px; border-radius: 11px; background: #fff; border: 1px solid rgba(16,24,40,.1); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; box-shadow: 0 10px 20px -16px rgba(16,24,40,.4); }
.ln--0 li { border-style: dashed; border-color: rgba(16,24,40,.25); }
.ln--1 li { border-color: rgba(206,32,44,.35); color: #A51C26; }
.ln--2 li { border-color: rgba(112,52,196,.35); color: var(--violet); }
.h5__join { width: 100%; height: 300px; overflow: visible; }
.h5__join path { fill: none; stroke: rgba(112,52,196,.45); stroke-width: 2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.h5__out { position: relative; display: grid; min-height: 380px; padding: 20px; border-radius: 22px; background: var(--ink); color: #fff; box-shadow: 0 0 0 8px rgba(112,52,196,.08), 0 30px 60px -28px rgba(16,24,40,.7); }
.h5__logo { width: 84px; height: auto; margin-bottom: 14px; }
.h5__card { grid-area: 2 / 1; display: grid; align-content: start; gap: 10px; }
.h5__card--1, .h5__card--2 { visibility: hidden; opacity: 0; }
.h5__k { display: flex; justify-content: space-between; align-items: center; margin: 0; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.14); }
.h5__k span { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #FF8A91; }
.h5__k b { font-size: 26px; font-weight: 600; } .h5__k small { font-size: 12px; color: rgba(255,255,255,.55); }
.h5__t { font-size: 19px; font-weight: 500; line-height: 1.25; }
.h5__card ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.h5__card li { position: relative; padding-left: 14px; font-size: 13px; color: rgba(255,255,255,.78); }
.h5__card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #CDB8F2; }
.h5__act { margin: 6px 0 0; padding: 9px 11px; border-radius: 10px; background: var(--red); font-size: 13px; font-weight: 700; }
.h5__dots { position: absolute; left: 20px; bottom: 16px; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.h5__dots li { width: 18px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.25); } .h5__dots li:first-child { background: #FF6B74; }
.h5__note { position: absolute; right: 0; bottom: 6px; margin: 0; font-size: 11px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .ln__track ul { animation: lnmove 26s linear infinite; } .ln--1 ul { animation-duration: 21s; } .ln--2 ul { animation-duration: 31s; }
  @keyframes lnmove { from { translate: -50% 0; } to { translate: 0 0; } }
  .h5__join path { animation: h5flow 1.2s linear infinite; } @keyframes h5flow { to { stroke-dashoffset: -22; } }
  .h5__card { visibility: hidden; opacity: 0; animation: h5show 15s infinite; } .h5__card--1 { animation-delay: 5s; } .h5__card--2 { animation-delay: 10s; }
  @keyframes h5show { 0% { opacity: 0; visibility: visible; translate: 0 8px; } 4%, 30% { opacity: 1; translate: 0 0; } 33.3% { opacity: 0; visibility: visible; } 34%, 100% { opacity: 0; visibility: hidden; } }
  .h5__dots li { animation: h5dot 15s infinite; } .h5__dots li:nth-child(2) { animation-delay: 5s; } .h5__dots li:nth-child(3) { animation-delay: 10s; }
  .h5__dots li:first-child { background: rgba(255,255,255,.25); }
  @keyframes h5dot { 0%, 32% { background: #FF6B74; } 33.3%, 100% { background: rgba(255,255,255,.25); } }
}

/* ---------- V6: real executive view with live callouts ---------- */
.h6 { position: relative; }
.h6__frame { margin: 0; border-radius: 18px; overflow: visible; background: var(--ink); padding: 0 0 10px; box-shadow: 0 40px 80px -40px rgba(16,24,40,.6); }
.h6__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; } .h6__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.22); }
.h6__bar span { margin-left: 8px; font-size: 12px; color: rgba(255,255,255,.6); }
.h6__shot { position: relative; margin: 0 10px; }
.h6__shot img { width: 100%; height: auto; border-radius: 10px; }
.h6__hs { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hs { position: absolute; width: 0; height: 0; }
.hs i { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px #fff; }
.hs span { position: absolute; left: 18px; top: -20px; display: grid; padding: 8px 12px; border-radius: 12px; background: #fff; white-space: nowrap; box-shadow: 0 14px 28px -16px rgba(16,24,40,.6); }
.hs--2 span { left: auto; right: 18px; }
.hs b { font-size: 13px; color: var(--ink); } .hs small { font-size: 11.5px; color: var(--muted); }
.h6 .pstat--a { left: -32px; top: -8px; } .h6 .pstat--c { left: auto; right: -24px; bottom: -6px; }
@media (prefers-reduced-motion: no-preference) {
  .hs i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red); animation: hsping 2.4s ease-out infinite; }
  .hs--1 i::after { animation-delay: .8s; } .hs--2 i::after { animation-delay: 1.6s; }
  @keyframes hsping { from { transform: scale(1); opacity: .8; } to { transform: scale(2.8); opacity: 0; } }
  .hs span { animation: hsin 9s ease-in-out infinite; } .hs--1 span { animation-delay: 3s; } .hs--2 span { animation-delay: 6s; }
  @keyframes hsin { 0%, 3% { opacity: .55; scale: .96; } 8%, 30% { opacity: 1; scale: 1; box-shadow: 0 0 0 3px rgba(206,32,44,.25), 0 14px 28px -16px rgba(16,24,40,.6); } 36%, 100% { opacity: .55; scale: .96; } }
}

/* ---------- V7: DeCYFIR arcs, nine pillars, one decision ---------- */
.h7 { display: grid; place-items: center; }
.h7__dial { position: relative; width: min(100%, 470px); aspect-ratio: 1; margin: 30px 60px; }
.h7__arc { position: absolute; border-radius: 50%; border-style: solid; }
.h7__arc--1 { inset: 4%; border-width: 3px; border-color: rgba(16,24,40,.12);
  -webkit-mask: conic-gradient(#000 0 21%, transparent 21% 25%, #000 25% 46%, transparent 46% 50%, #000 50% 71%, transparent 71% 75%, #000 75% 96%, transparent 96%); mask: conic-gradient(#000 0 21%, transparent 21% 25%, #000 25% 46%, transparent 46% 50%, #000 50% 71%, transparent 71% 75%, #000 75% 96%, transparent 96%); }
.h7__arc--2 { inset: 16%; border-width: 10px; border-color: rgba(112,52,196,.28);
  -webkit-mask: conic-gradient(#000 0 30%, transparent 30% 38%, #000 38% 72%, transparent 72% 80%, #000 80%); mask: conic-gradient(#000 0 30%, transparent 30% 38%, #000 38% 72%, transparent 72% 80%, #000 80%); }
.h7__arc--3 { inset: 26%; border-width: 10px; border-color: rgba(112,52,196,.5);
  -webkit-mask: conic-gradient(#000 0 40%, transparent 40% 50%, #000 50% 85%, transparent 85%); mask: conic-gradient(#000 0 40%, transparent 40% 50%, #000 50% 85%, transparent 85%); }
.h7__arc--4 { inset: 26%; border-width: 10px; border-color: var(--red);
  -webkit-mask: conic-gradient(transparent 0 86%, #000 86% 98%, transparent 98%); mask: conic-gradient(transparent 0 86%, #000 86% 98%, transparent 98%); }
.h7__p { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.h7__p li { position: absolute; translate: -50% -50%; }
.h7__p span { display: block; white-space: nowrap; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid rgba(16,24,40,.1); font-size: 12.5px; font-weight: 600; color: var(--ink); box-shadow: 0 10px 20px -14px rgba(16,24,40,.45); }
.h7__core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 38%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 12px;
  background: var(--ink); box-shadow: 0 0 0 10px rgba(112,52,196,.08), 0 30px 60px -24px rgba(16,24,40,.6); }
.h7__core img { width: 64%; height: auto; }
.h7__w { position: relative; display: grid; height: 20px; width: 120px; }
.h7__w em { grid-area: 1 / 1; text-align: center; font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #FF8A91; }
.h7__w em:not(:first-child) { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .h7__arc--1 { animation: h7spin 60s linear infinite; } .h7__arc--2 { animation: h7spin 40s linear infinite reverse; }
  .h7__arc--3, .h7__arc--4 { animation: h7spin 24s linear infinite; }
  @keyframes h7spin { to { rotate: 360deg; } }
  .h7__p span { animation: h7lit 13.5s ease-in-out infinite; animation-delay: calc(var(--i) * 1.5s); }
  @keyframes h7lit { 0%, 1% { border-color: rgba(16,24,40,.1); color: var(--ink); background: #fff; } 3%, 10% { border-color: var(--violet); color: #fff; background: var(--violet); } 13%, 100% { border-color: rgba(16,24,40,.1); color: var(--ink); background: #fff; } }
  .h7__w em { visibility: hidden; opacity: 0; animation: h7word 10s infinite; }
  .h7__w em:nth-child(2) { animation-delay: 2s; } .h7__w em:nth-child(3) { animation-delay: 4s; } .h7__w em:nth-child(4) { animation-delay: 6s; } .h7__w em:nth-child(5) { animation-delay: 8s; }
  @keyframes h7word { 0% { opacity: 0; visibility: visible; } 3%, 18% { opacity: 1; } 20%, 100% { opacity: 0; visibility: hidden; } }
}
@media (max-width: 960px) {
  .h5 { grid-template-columns: minmax(0, 1fr); gap: 20px; } .h5__join { display: none; } .h5__out { min-height: 340px; }
  .h7__dial { margin: 30px 70px; } .h7__p span { font-size: 11px; padding: 5px 9px; }
  .hs span { display: none; }
}
@media (max-width: 600px) { .h7__p { display: none; } .h7__dial { margin: 0; } }

/* fixes: lanes must clip inside their column; callouts compact and mostly outside the screenshot */
.ln { min-width: 0; } .ln__track { width: 100%; }
.h5 { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 250px); }
.hs small { display: none; }
.hs span { padding: 6px 10px; top: -15px; }
.hs--0 span { left: auto; right: 16px; }
.hs--1 span { left: 16px; }
.hs--2 span { right: auto; left: 16px; }
@media (prefers-reduced-motion: no-preference) { @keyframes hsin { 0%, 3% { scale: 1; } 8%, 30% { scale: 1.06; box-shadow: 0 0 0 3px rgba(206,32,44,.3), 0 14px 28px -16px rgba(16,24,40,.6); } 36%, 100% { scale: 1; } } }

/* ---------- V5 revised: one lit signal per lane feeds the card ---------- */
.h5b { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 270px); }
.h5b .h5__lanes { gap: 26px; }
.ln5 ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.c5 { padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid rgba(16,24,40,.1); font-size: 12.5px; font-weight: 600; color: #98A2B3; white-space: nowrap;
  transition: none; }
.ln5--0 .c5--0 { color: var(--ink); border-color: var(--ink); } .ln5--1 .c5--0 { color: #fff; background: var(--red); border-color: var(--red); } .ln5--2 .c5--0 { color: #fff; background: var(--violet); border-color: var(--violet); }
.h5b .h5__join .hot { stroke: var(--red); stroke-dasharray: none; stroke-width: 2.5; opacity: 0; }
.h5__meter { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; margin-top: -2px; }
.h5__meter i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #FF8A91, #CE202C); }
.h5__why { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.6); }
.h5b .h5__out { min-height: 330px; align-content: start; }
.h5b .h5__t { font-size: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .ln5 .c5, .ln5 .c5--0 { color: #98A2B3; background: #fff; border-color: rgba(16,24,40,.1); animation: c5lit 15s infinite; }
  .ln5 .c5--1 { animation-delay: 5s; } .ln5 .c5--2 { animation-delay: 10s; }
  .ln5--1 .c5 { animation-name: c5litr; } .ln5--2 .c5 { animation-name: c5litv; }
  @keyframes c5lit  { 0%, 1% { color: #98A2B3; background: #fff; border-color: rgba(16,24,40,.1); scale: 1; } 3%, 30% { color: var(--ink); background: #fff; border-color: var(--ink); scale: 1.04; box-shadow: 0 10px 22px -14px rgba(16,24,40,.6); } 33%, 100% { color: #98A2B3; background: #fff; border-color: rgba(16,24,40,.1); scale: 1; } }
  @keyframes c5litr { 0%, 1% { color: #98A2B3; background: #fff; border-color: rgba(16,24,40,.1); scale: 1; } 3%, 30% { color: #fff; background: var(--red); border-color: var(--red); scale: 1.04; box-shadow: 0 10px 22px -14px rgba(206,32,44,.7); } 33%, 100% { color: #98A2B3; background: #fff; border-color: rgba(16,24,40,.1); scale: 1; } }
  @keyframes c5litv { 0%, 1% { color: #98A2B3; background: #fff; border-color: rgba(16,24,40,.1); scale: 1; } 3%, 30% { color: #fff; background: var(--violet); border-color: var(--violet); scale: 1.04; box-shadow: 0 10px 22px -14px rgba(112,52,196,.7); } 33%, 100% { color: #98A2B3; background: #fff; border-color: rgba(16,24,40,.1); scale: 1; } }
  .h5b .h5__join .hot { stroke-dasharray: 160; stroke-dashoffset: 160; animation: h5hot 5s ease-out infinite; }
  @keyframes h5hot { 0%, 4% { stroke-dashoffset: 160; opacity: 1; } 22%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
  .h5__meter i { animation: h5meter 5s ease-out infinite; transform-origin: left; }
  @keyframes h5meter { 0%, 18% { transform: scaleX(0); } 34%, 100% { transform: scaleX(1); } }
}
.h5b { align-items: stretch; } .h5b .h5__join { height: auto; align-self: stretch; } .h5b .h5__lanes, .h5b .h5__out { align-self: center; } .h5b .h5__lanes { display: grid; grid-template-rows: repeat(3, 1fr); }
.ln5 ul { flex-direction: column; align-items: flex-start; gap: 6px; } .c5 { padding: 6px 11px; font-size: 12px; }

/* ===== Dark mode (html[data-theme="dark"]) ===== */
/* intentional dark panels (background: var(--ink) + literal white/light text) — pin so the
   shared --ink flip doesn't lighten them */
html[data-theme="dark"] .h5__out,
html[data-theme="dark"] .h6__frame,
html[data-theme="dark"] .h7__core { background: #101828; }

/* light pill/card/tooltip surfaces (literal #fff) used on the dark page background */
html[data-theme="dark"] .ln__track li,
html[data-theme="dark"] .hs span,
html[data-theme="dark"] .h7__p span,
html[data-theme="dark"] .c5 { background: #1D2939; border-color: rgba(255,255,255,.1); }

/* borders/dashes drawn with literal rgba(16,24,40,...) need lightening for visibility */
html[data-theme="dark"] .ln--0 li { border-color: rgba(255,255,255,.2); }
html[data-theme="dark"] .h7__arc--1 { border-color: rgba(255,255,255,.14); }

/* brand-dark text color (#A51C26) is low-contrast on the dark card surface above */
html[data-theme="dark"] .ln--1 li { color: #FF8A91; }

/* looping animations that pulse to a literal light surface (#fff) — give them dark-mode
   keyframes and swap animation-name, rather than editing the light-mode keyframes */
@keyframes h7lit-dark { 0%, 1% { border-color: rgba(255,255,255,.14); color: var(--ink); background: #1D2939; } 3%, 10% { border-color: var(--violet); color: #fff; background: var(--violet); } 13%, 100% { border-color: rgba(255,255,255,.14); color: var(--ink); background: #1D2939; } }
html[data-theme="dark"] .h7__p span { animation-name: h7lit-dark; }

@keyframes c5lit-dark  { 0%, 1% { color: #98A2B3; background: #1D2939; border-color: rgba(255,255,255,.1); scale: 1; } 3%, 30% { color: var(--ink); background: #1D2939; border-color: var(--ink); scale: 1.04; box-shadow: 0 10px 22px -14px rgba(0,0,0,.6); } 33%, 100% { color: #98A2B3; background: #1D2939; border-color: rgba(255,255,255,.1); scale: 1; } }
@keyframes c5litr-dark { 0%, 1% { color: #98A2B3; background: #1D2939; border-color: rgba(255,255,255,.1); scale: 1; } 3%, 30% { color: #fff; background: var(--red); border-color: var(--red); scale: 1.04; box-shadow: 0 10px 22px -14px rgba(206,32,44,.7); } 33%, 100% { color: #98A2B3; background: #1D2939; border-color: rgba(255,255,255,.1); scale: 1; } }
@keyframes c5litv-dark { 0%, 1% { color: #98A2B3; background: #1D2939; border-color: rgba(255,255,255,.1); scale: 1; } 3%, 30% { color: #fff; background: var(--violet); border-color: var(--violet); scale: 1.04; box-shadow: 0 10px 22px -14px rgba(112,52,196,.7); } 33%, 100% { color: #98A2B3; background: #1D2939; border-color: rgba(255,255,255,.1); scale: 1; } }
html[data-theme="dark"] .ln5 .c5, html[data-theme="dark"] .ln5 .c5--0 { animation-name: c5lit-dark; }
html[data-theme="dark"] .ln5--1 .c5 { animation-name: c5litr-dark; }
html[data-theme="dark"] .ln5--2 .c5 { animation-name: c5litv-dark; }
