/* ============================================================
   CipherScan — concentrated cryptographic discovery field
   Shared QuantumGenie tokens, deterministic SVG routes, and a
   responsive narrative layout instead of a scaled illustration.
   ============================================================ */

#cipherscan.pe-slide {
  height: 100%;
  min-height: 100%;
  align-items: flex-start;
  overflow: hidden;
  padding: clamp(28px, 3.5vh, 42px) clamp(76px, 6vw, 92px) clamp(24px, 3.5vh, 40px) clamp(24px, 5vw, 72px);
}

#cipherscan::before {
  background:
    radial-gradient(34% 50% at 61% 44%, rgba(34, 211, 238, .105), transparent 72%),
    radial-gradient(24% 44% at 78% 50%, rgba(45, 212, 191, .065), transparent 74%),
    radial-gradient(23% 38% at 41% 47%, rgba(139, 125, 255, .07), transparent 76%);
}

.pe-cs-experience {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1380px;
  height: 100%;
  max-height: 820px;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(270px, .84fr) minmax(0, 2.16fr);
  gap: clamp(18px, 2.2vw, 34px);
  align-items: stretch;
}

/* ---- Editorial copy ---- */
.pe-cs-copy {
  position: relative;
  align-self: stretch;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: clamp(76px, 6vw, 84px);
}

.pe-cs-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: clamp(28px, 4vh, 40px);
}

.pe-cs-identity strong {
  color: var(--pe-text);
  font-size: clamp(31px, 2.7vw, 40px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 650;
}

.pe-cs-identity span {
  margin-top: 9px;
  color: #90b7ff;
  font-size: clamp(10.5px, .78vw, 12px);
  line-height: 1.3;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
}

.pe-cs-copy .pe-value {
  max-width: 10.5ch;
  margin: 0 0 18px;
  font-size: clamp(36px, 3.35vw, 50px);
  line-height: 1.025;
  letter-spacing: -.047em;
  font-weight: 590;
}

.pe-cs-copy .pe-value em {
  display: block;
  color: transparent;
  background: linear-gradient(96deg, #b8b0ff 0%, #7398ff 54%, #58d9e7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: normal;
  filter: drop-shadow(0 0 18px rgba(75, 139, 255, .11));
}

.pe-cs-copy .pe-lede {
  max-width: 33ch;
  margin: 0;
  color: var(--pe-secondary);
  font-size: clamp(13.5px, 1.02vw, 16px);
  line-height: 1.62;
}

.pe-cs-copy-rule {
  width: 36px;
  height: 1px;
  margin: clamp(20px, 2.8vh, 27px) 0 clamp(18px, 2.5vh, 23px);
  background: linear-gradient(90deg, #8b7dff, var(--pe-cipherscan));
  box-shadow: 0 0 10px rgba(34, 211, 238, .35);
}

.pe-cs-status {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.pe-cs-status li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--pe-secondary);
  font-size: clamp(11.5px, .88vw, 13.5px);
  line-height: 1.35;
}

.pe-cs-status li > i {
  position: relative;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #a8c7ff;
}

.pe-cs-status .is-search {
  width: 14px;
  height: 14px;
  margin-right: 3px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.pe-cs-status .is-search::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.pe-cs-status .is-shield {
  border: 1.5px solid currentColor;
  clip-path: polygon(50% 0, 92% 18%, 84% 73%, 50% 100%, 16% 73%, 8% 18%);
}

.pe-cs-status .is-shield::after {
  content: "✓";
  position: absolute;
  inset: 1px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 9px;
}

.pe-cs-coverage {
  width: min(100%, 258px);
  margin-top: clamp(24px, 3.6vh, 34px);
  padding: 13px 15px 12px;
  border: 1px solid rgba(255, 255, 255, .105);
  border-radius: 12px;
  background: linear-gradient(122deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .014));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 18px 46px rgba(0, 0, 0, .2);
}

.pe-cs-coverage > span {
  display: block;
  margin-bottom: 5px;
  color: var(--pe-muted);
  font-size: 11px;
}

.pe-cs-coverage > strong {
  display: block;
  color: var(--pe-secure);
  font-family: var(--pe-mono);
  font-size: clamp(25px, 2vw, 29px);
  line-height: 1;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.pe-cs-coverage > div {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .065);
}

.pe-cs-coverage > div i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #24d994, #78e3ab);
  box-shadow: 0 0 12px rgba(52, 211, 153, .34);
  transform-origin: left;
}

.pe-cs-coverage small {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: var(--pe-muted);
  font-size: 10.5px;
}

.pe-cs-coverage small i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pe-secure);
  box-shadow: 0 0 8px rgba(52, 211, 153, .72);
}

.pe-cs-scan-cta {
  width: min(100%, 258px);
  min-height: 40px;
  margin-top: 7px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--pe-secondary);
  text-decoration: none;
  font-size: 10.5px;
}

.pe-cs-scan-cta b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7edcff;
  font-family: var(--pe-mono);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s ease;
}

.pe-cs-scan-cta b i {
  font-style: normal;
  transition: transform .2s ease;
}

.pe-cs-scan-cta:hover b { color: var(--pe-secure); }
.pe-cs-scan-cta:hover b i { transform: translateX(3px); }
.pe-cs-scan-cta:focus-visible { outline: 2px solid var(--pe-cipherscan); outline-offset: 3px; border-radius: 6px; }

/* ---- Live discovery stage ---- */
.pe-cs-model {
  --pe-cs-source-width: 150px;
  --pe-cs-core-width: 270px;
  --pe-cs-results-width: 230px;
  position: relative;
  min-width: 0;
  width: min(100%, 880px);
  height: 100%;
  display: grid;
  grid-template-columns:
    var(--pe-cs-source-width)
    minmax(20px, 1fr)
    var(--pe-cs-core-width)
    minmax(20px, 1fr)
    var(--pe-cs-results-width);
  align-items: center;
  justify-self: start;
  overflow: visible;
  isolation: isolate;
}

.pe-cs-model::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 13%;
  width: 62%;
  height: 72%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(29, 154, 188, .09), rgba(39, 92, 175, .035) 44%, transparent 73%);
  filter: blur(18px);
  transform: translateX(-50%);
}

.pe-cs-network {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.pe-cs-field-wash { fill: url(#cs-field-wash); }

.pe-cs-route-base,
.pe-cs-route-flow {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

.pe-cs-route-base {
  stroke-width: .85;
  opacity: .28;
  transition: opacity .25s ease, stroke-width .25s ease;
}

.pe-cs-experience.is-motion-ready:not(.is-entered) .pe-cs-route-base {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}

.pe-cs-experience.is-entered .pe-cs-route-base {
  stroke-dasharray: 1;
  animation: pe-cs-route-draw .68s cubic-bezier(.22, 1, .36, 1) 360ms both;
}

.pe-cs-route-base.is-ingest { stroke: url(#cs-ingest-gradient); }
.pe-cs-route-base.is-output { stroke: url(#cs-output-gradient); }

.pe-cs-route-flow {
  stroke-width: 1.55;
  stroke-dasharray: .018 .13;
  stroke-dashoffset: .148;
  opacity: 0;
  filter: url(#cs-route-glow);
  transition: opacity .24s ease, stroke-width .24s ease;
}

.pe-cs-route-flow.is-ingest { stroke: #82a5ff; }
.pe-cs-route-flow.is-output { stroke: #4de0b5; }

.pe-cs-route-flow.is-active,
.pe-cs-route-flow.is-highlighted {
  opacity: .78;
  animation: pe-cs-route-travel 1.28s linear infinite;
}

.pe-cs-route-flow.is-highlighted { stroke-width: 2.2; opacity: 1; }
.pe-cs-route-base.is-highlighted { stroke-width: 1.45; opacity: .85; }
.pe-cs-experience.has-route-focus .pe-cs-route-base:not(.is-highlighted) { opacity: .1; }
.pe-cs-experience.has-route-focus .pe-cs-route-flow:not(.is-highlighted) { opacity: .16; }
.pe-cs-experience.has-route-focus .pe-cs-route-node:not(.is-highlighted) { opacity: .22; }

.pe-cs-route-node {
  vector-effect: non-scaling-stroke;
  stroke: rgba(221, 250, 255, .9);
  stroke-width: .6;
  opacity: .72;
  transition: opacity .22s ease, r .22s ease;
}

.pe-cs-route-node.is-ingest { fill: #638eff; filter: drop-shadow(0 0 5px #638eff); }
.pe-cs-route-node.is-output { fill: #34d399; filter: drop-shadow(0 0 5px #34d399); }
.pe-cs-route-node.is-highlighted { opacity: 1; }
.pe-cs-route-node.is-core-port,
.pe-cs-route-node.is-core-port.is-highlighted { opacity: 0; }

.pe-cs-sources,
.pe-cs-core,
.pe-cs-results,
.pe-cs-benefits {
  z-index: 2;
}

.pe-cs-benefits { position: absolute; }

/* ---- Source column ---- */
.pe-cs-sources {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  width: var(--pe-cs-source-width);
}

.pe-cs-sources > p {
  min-height: 25px;
  margin: 0 2px 7px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  color: #768298;
  font-family: var(--pe-mono);
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pe-cs-sources > p span {
  max-width: 70px;
  color: var(--pe-secure);
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: .03em;
  text-align: right;
}

.pe-cs-source-list { display: grid; gap: 6px; }

.pe-cs-source {
  position: relative;
  width: 100%;
  min-height: 46px;
  padding: 5px 8px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 6px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .105);
  border-radius: 10px;
  background: linear-gradient(102deg, rgba(255, 255, 255, .044), rgba(255, 255, 255, .018));
  color: var(--pe-text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 8px 22px rgba(0, 0, 0, .15);
  transition: border-color .2s ease, background .2s ease, transform .2s ease, opacity .2s ease;
}

.pe-cs-source::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, rgba(76, 119, 255, .13), transparent 72%);
  transition: opacity .2s ease;
}

.pe-cs-source:hover,
.pe-cs-source.is-focused {
  transform: translateX(2px);
  border-color: rgba(89, 151, 255, .48);
  background: linear-gradient(102deg, rgba(47, 91, 164, .13), rgba(255, 255, 255, .018));
}

.pe-cs-source:hover::before,
.pe-cs-source.is-focused::before { opacity: 1; }
.pe-cs-source:focus-visible { outline: 2px solid var(--pe-cipherscan); outline-offset: 2px; }

.pe-cs-source > i {
  position: relative;
  z-index: 1;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 8px;
  background: rgba(2, 8, 13, .56);
  font-style: normal;
}

.pe-cs-source > i img,
.pe-cs-source > i svg {
  width: 19px;
  height: 19px;
  display: block;
  object-fit: contain;
}

.pe-cs-source > i svg {
  fill: none;
  stroke: #43d6c4;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pe-cs-source > i img.is-aws {
  width: 23px;
  filter: brightness(0) invert(1);
  opacity: .9;
}

.pe-cs-source > span {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.pe-cs-source strong,
.pe-cs-source small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pe-cs-source strong {
  font-size: clamp(11.5px, .83vw, 13px);
  line-height: 1.1;
  font-weight: 500;
}

.pe-cs-source small {
  position: relative;
  margin-top: 4px;
  padding-left: 11px;
  color: #70bdf2;
  font-size: clamp(10.5px, .72vw, 11.5px);
  line-height: 1;
}

.pe-cs-source small::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: translateY(-50%);
}

.pe-cs-source[data-state="scanning"] small::before {
  border-right-color: transparent;
  animation: pe-cs-state-spin 1.1s linear infinite;
}

.pe-cs-source[data-state="connected"] small,
.pe-cs-source[data-state="discovered"] small { color: var(--pe-secure); }
.pe-cs-source[data-state="connected"] small::before { content: "✓"; width: auto; height: auto; border: 0; font-size: 8px; }
.pe-cs-source[data-state="discovered"] small::before { border-radius: 1px; background: currentColor; transform: translateY(-50%) rotate(45deg); }
.pe-cs-source[data-state="available"] small { color: #9aa7b8; }

.pe-cs-source > b {
  position: relative;
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pe-cipherscan);
  box-shadow: 0 0 9px rgba(34, 211, 238, .8);
}

/* ---- Central engine ---- */
.pe-cs-core {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  width: var(--pe-cs-core-width);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
}

.pe-cs-core::before {
  content: "";
  position: absolute;
  inset: 21%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(23, 152, 210, .16);
  filter: blur(26px);
  box-shadow: 0 0 58px rgba(38, 113, 255, .17), 0 0 92px rgba(45, 212, 191, .08);
}

.pe-cs-core-visual { width: 100%; height: 100%; overflow: visible; }
.pe-cs-core-atmosphere { fill: rgba(11, 73, 105, .075); stroke: rgba(78, 162, 255, .14); stroke-width: 1; }
.pe-cs-core-orbit,
.pe-cs-core-boundary,
.pe-cs-core-data-ring,
.pe-cs-core-energy-ring,
.pe-cs-core-scanner,
.pe-cs-core-wave { fill: none; transform-box: view-box; transform-origin: center; }

.pe-cs-core-orbit { stroke: rgba(77, 126, 255, .34); stroke-width: .8; }
.pe-cs-core-orbit.is-a { transform: rotate(22deg); }
.pe-cs-core-orbit.is-b { stroke: rgba(45, 212, 191, .25); transform: rotate(-28deg); }
.pe-cs-core-boundary { stroke: rgba(86, 166, 255, .34); stroke-width: .85; stroke-dasharray: 2 7; }
.pe-cs-core-data-ring { stroke: rgba(35, 184, 231, .4); stroke-width: 1; stroke-dasharray: 1 5; }
.pe-cs-core-scanner {
  stroke: url(#cs-core-scan);
  stroke-width: 3;
  stroke-dasharray: 64 540;
  stroke-linecap: round;
  opacity: 0;
  filter: url(#cs-core-glow);
}
.pe-cs-core-energy-ring { stroke: url(#cs-core-ring); filter: url(#cs-core-glow); }
.pe-cs-core-energy-ring.is-primary { stroke-width: 2.5; stroke-dasharray: 29 10 8 13; }
.pe-cs-core-energy-ring.is-secondary { stroke-width: 1; stroke-dasharray: 3 13 9 8; opacity: .72; }
.pe-cs-core-wave { stroke: rgba(68, 218, 230, .5); stroke-width: 1.2; opacity: 0; }
.pe-cs-core-chamber { fill: url(#cs-core-fill); stroke: rgba(126, 199, 238, .38); stroke-width: 1; filter: drop-shadow(0 0 14px rgba(0, 194, 255, .18)); }

.pe-cs-core-port {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: center;
}

.pe-cs-core-port.is-base {
  stroke-width: 1;
  opacity: .42;
}

.pe-cs-core-port.is-signal {
  stroke-width: 2.1;
  stroke-dasharray: 13 8;
  opacity: .78;
  filter: url(#cs-core-glow);
}

.pe-cs-core-port.is-ingest { stroke: #6f95ff; }
.pe-cs-core-port.is-output { stroke: #43d9ad; }

.pe-cs-core-particles { transform-box: view-box; transform-origin: center; }
.pe-cs-core-particles circle {
  fill: #5fa2ff;
  filter: drop-shadow(0 0 4px #3f91ff);
  opacity: .48;
}

.pe-cs-core-particles circle:nth-child(3n) { fill: #8b7dff; }
.pe-cs-core-particles circle:nth-child(4n) { fill: #2dd4bf; }

.pe-cs-core-copy {
  position: absolute;
  z-index: 3;
  width: 46%;
  height: 46%;
  padding: clamp(7px, .72vw, 11px) 4px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pe-cs-core-copy span,
.pe-cs-core-copy b {
  color: var(--pe-secondary);
  font-size: clamp(9px, .64vw, 10.5px);
  line-height: 1;
  letter-spacing: .085em;
  text-transform: uppercase;
  font-weight: 500;
}

.pe-cs-core-copy strong {
  width: 100%;
  margin: 7px 0 6px;
  color: var(--pe-secure);
  font-family: var(--pe-mono);
  font-size: clamp(23px, 2.25vw, 33px);
  line-height: .95;
  letter-spacing: -.045em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(52, 211, 153, .32);
  white-space: nowrap;
}

/* ---- Inventory ---- */
.pe-cs-results {
  position: relative;
  grid-column: 5;
  grid-row: 1;
  width: var(--pe-cs-results-width);
}

.pe-cs-results header {
  min-height: 27px;
  padding: 0 3px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pe-cs-results h3 {
  margin: 0;
  color: var(--pe-secondary);
  font-size: 13.5px;
  line-height: 1.2;
  font-weight: 500;
}

.pe-cs-results header span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--pe-secure);
  font-size: 10.5px;
  white-space: nowrap;
}

.pe-cs-results header span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pe-secure);
  box-shadow: 0 0 9px rgba(52, 211, 153, .7);
}

.pe-cs-result-list { display: grid; gap: 6px; }

.pe-cs-result {
  position: relative;
  min-height: 55px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  border: 1px solid rgba(48, 205, 175, .16);
  border-radius: 10px;
  background: linear-gradient(102deg, rgba(18, 42, 46, .52), rgba(10, 16, 21, .68));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018), 0 9px 25px rgba(0, 0, 0, .16);
  transition: border-color .22s ease, transform .22s ease, opacity .22s ease;
}

.pe-cs-result::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background: linear-gradient(90deg, rgba(38, 217, 169, .09), transparent 68%);
}

.pe-cs-result::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pe-secure);
  box-shadow: 0 0 9px rgba(52, 211, 153, .85);
  transform: translateY(-50%);
}

.pe-cs-result.is-focused {
  transform: translateX(-2px);
  border-color: rgba(52, 211, 153, .48);
}

.pe-cs-result > i {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(45, 212, 191, .1);
  border-radius: 9px;
  background: rgba(5, 24, 30, .7);
  color: #35dcb3;
  font-style: normal;
}

.pe-cs-result > i svg,
.pe-cs-benefits svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pe-cs-result > i.is-cert { color: #ed72d8; border-color: rgba(237, 114, 216, .12); }
.pe-cs-result > i.is-key { color: #eebc3e; border-color: rgba(238, 188, 62, .12); }

.pe-cs-result > span:not(.pe-cs-result-meta) {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.pe-cs-result > span > small:first-child {
  display: block;
  overflow: hidden;
  color: #9ba7b5;
  font-size: clamp(11px, .76vw, 12.5px);
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pe-cs-result strong {
  display: block;
  margin-top: 5px;
  color: var(--pe-secure);
  font-family: var(--pe-mono);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: .95;
  letter-spacing: -.02em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.pe-cs-result-meta {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: end;
  gap: 5px;
  white-space: nowrap;
}

.pe-cs-result-meta b {
  color: #55dca3;
  font-size: clamp(10.5px, .68vw, 11px);
  font-weight: 500;
}

.pe-cs-result-meta small {
  color: #84909e;
  font-size: 10.5px;
}

.pe-cs-result.is-risk {
  border-color: rgba(239, 68, 68, .3);
  background: linear-gradient(102deg, rgba(42, 20, 25, .66), rgba(15, 15, 20, .7));
}

.pe-cs-result.is-risk::before { background: linear-gradient(90deg, rgba(239, 68, 68, .08), transparent 68%); }
.pe-cs-result.is-risk::after { background: #ff6c60; box-shadow: 0 0 8px rgba(239, 68, 68, .75); }
.pe-cs-result.is-risk > i { color: #ff6c60; border-color: rgba(239, 68, 68, .2); background: rgba(64, 20, 25, .34); }
.pe-cs-result.is-risk strong,
.pe-cs-result.is-risk .pe-cs-result-meta b { color: #ff7065; }

/* ---- Quiet supporting baseline ---- */
.pe-cs-benefits {
  left: 18%;
  right: 25%;
  bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 2vw, 27px);
}

.pe-cs-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pe-muted);
  font-size: clamp(11px, .74vw, 12px);
  line-height: 1.2;
  white-space: nowrap;
}

.pe-cs-benefits span i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #9fb7cb;
}

.pe-cs-benefits svg { width: 16px; height: 16px; stroke-width: 1.5; }

/* ---- Coordinated lifecycle ---- */
.pe-cs-experience.is-motion-ready:not(.is-entered) .pe-cs-copy > *,
.pe-cs-experience.is-motion-ready:not(.is-entered) .pe-cs-source,
.pe-cs-experience.is-motion-ready:not(.is-entered) .pe-cs-result,
.pe-cs-experience.is-motion-ready:not(.is-entered) .pe-cs-benefits { opacity: 0; }

.pe-cs-experience.is-motion-ready:not(.is-entered) .pe-cs-copy > * { transform: translateY(9px); }
.pe-cs-experience.is-motion-ready:not(.is-entered) .pe-cs-core { opacity: 0; scale: .94; }

.pe-cs-experience.is-entered .pe-cs-copy > * { animation: pe-cs-copy-in var(--pe-motion-enter) var(--pe-ease-standard) both; }
.pe-cs-experience.is-entered .pe-cs-copy > *:nth-child(2) { animation-delay: 60ms; }
.pe-cs-experience.is-entered .pe-cs-copy > *:nth-child(3) { animation-delay: 100ms; }
.pe-cs-experience.is-entered .pe-cs-copy > *:nth-child(4) { animation-delay: 135ms; }
.pe-cs-experience.is-entered .pe-cs-copy > *:nth-child(n+5) { animation-delay: 170ms; }

.pe-cs-experience.is-entered .pe-cs-core { animation: pe-cs-core-in var(--pe-motion-resolve) var(--pe-ease-enter) 100ms both; }
.pe-cs-experience.is-entered .pe-cs-source { animation: pe-cs-card-in var(--pe-motion-enter) var(--pe-ease-standard) calc(280ms + var(--i) * 52ms) both; }
.pe-cs-experience.is-entered .pe-cs-result { animation: pe-cs-result-in var(--pe-motion-enter) var(--pe-ease-standard) calc(980ms + var(--i) * 58ms) both; }
.pe-cs-experience.is-entered .pe-cs-benefits { animation: pe-cs-copy-in .4s ease 1740ms both; }
.pe-cs-experience.is-entered .pe-cs-coverage > div i { animation: pe-cs-coverage-in .85s cubic-bezier(.2,.8,.2,1) 950ms both; }

.pe-cs-experience.is-settled .pe-cs-core-orbit.is-a { animation: pe-cs-orbit-a 22s linear infinite; }
.pe-cs-experience.is-settled .pe-cs-core-orbit.is-b { animation: pe-cs-orbit-b 29s linear infinite reverse; }
.pe-cs-experience.is-settled .pe-cs-core-boundary { animation: pe-cs-ring-drift 14s linear infinite; }
.pe-cs-experience.is-settled .pe-cs-core-data-ring { animation: pe-cs-ring-drift 9s linear infinite reverse; }
.pe-cs-experience.is-settled .pe-cs-core-energy-ring.is-primary { animation: pe-cs-rotor-primary 10s linear infinite; }
.pe-cs-experience.is-settled .pe-cs-core-energy-ring.is-secondary { animation: pe-cs-rotor-secondary 14s linear infinite; }
.pe-cs-experience.is-settled .pe-cs-core-port.is-signal { animation: pe-cs-port-travel 3.8s linear infinite; }
.pe-cs-experience.is-settled .pe-cs-core-particles.is-outer { animation: pe-cs-particle-orbit 24s linear infinite; }
.pe-cs-experience.is-settled .pe-cs-core-particles.is-inner { animation: pe-cs-particle-orbit 17s linear infinite reverse; }
.pe-cs-experience.is-settled .pe-cs-core-particles circle { animation: pe-cs-particle-breathe 4.6s ease-in-out infinite alternate; }
.pe-cs-experience.is-settled .pe-cs-core-particles circle:nth-child(2n) { animation-delay: -1.6s; }
.pe-cs-experience.is-settled .pe-cs-core-particles circle:nth-child(3n) { animation-delay: -3.1s; }
.pe-cs-experience.is-scan-wave .pe-cs-core-scanner { animation: pe-cs-scanner-sweep var(--pe-motion-scan) var(--pe-ease-signal) both; }
.pe-cs-experience.is-scan-wave .pe-cs-core-wave { animation: pe-cs-scan-wave var(--pe-motion-scan) var(--pe-ease-signal) both; }
.pe-cs-experience.is-scan-wave .pe-cs-core-chamber { animation: pe-cs-chamber-resolve var(--pe-motion-scan) var(--pe-ease-signal) both; }
.pe-cs-experience.is-scan-wave .pe-cs-core-port.is-signal { animation: pe-cs-port-resolve var(--pe-motion-scan) var(--pe-ease-signal) both; }

.pe-cs-experience.is-paused *,
.pe-cs-experience.is-paused *::before,
.pe-cs-experience.is-paused *::after { animation-play-state: paused !important; }

@keyframes pe-cs-copy-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pe-cs-card-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pe-cs-result-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pe-cs-core-in { from { opacity: 0; scale: .94; filter: brightness(.65); } to { opacity: 1; scale: 1; filter: brightness(1); } }
@keyframes pe-cs-coverage-in { from { transform: scaleX(.08); } to { transform: scaleX(1); } }
@keyframes pe-cs-route-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pe-cs-route-travel { to { stroke-dashoffset: 0; } }
@keyframes pe-cs-state-spin { to { transform: translateY(-50%) rotate(360deg); } }
@keyframes pe-cs-orbit-a { from { transform: rotate(22deg); } to { transform: rotate(382deg); } }
@keyframes pe-cs-orbit-b { from { transform: rotate(-28deg); } to { transform: rotate(332deg); } }
@keyframes pe-cs-ring-drift { to { stroke-dashoffset: -74; } }
@keyframes pe-cs-rotor-primary { to { transform: rotate(360deg); stroke-dashoffset: -54; } }
@keyframes pe-cs-rotor-secondary { to { transform: rotate(-360deg); stroke-dashoffset: 46; } }
@keyframes pe-cs-port-travel { to { stroke-dashoffset: -42; } }
@keyframes pe-cs-particle-orbit { to { transform: rotate(360deg); } }
@keyframes pe-cs-particle-breathe { 50% { opacity: .95; } }
@keyframes pe-cs-scanner-sweep {
  0% { opacity: 0; transform: rotate(-112deg); stroke-dashoffset: 32; }
  14% { opacity: .95; }
  72% { opacity: .88; }
  100% { opacity: 0; transform: rotate(248deg); stroke-dashoffset: -42; }
}
@keyframes pe-cs-scan-wave { 0% { opacity: 0; transform: scale(.82); } 22% { opacity: .72; } 100% { opacity: 0; transform: scale(1.34); } }
@keyframes pe-cs-chamber-resolve { 0%, 100% { filter: drop-shadow(0 0 14px rgba(0, 194, 255, .18)); } 38% { filter: drop-shadow(0 0 25px rgba(34, 211, 238, .42)); } }
@keyframes pe-cs-port-resolve { 0%, 100% { opacity: .78; stroke-width: 2.1; } 28%, 54% { opacity: 1; stroke-width: 3; } }

/* ---- Compact laptop ---- */
@media (max-width: 1180px) {
  #cipherscan.pe-slide { padding-inline: 26px 90px; }
  .pe-cs-experience { grid-template-columns: minmax(250px, .8fr) minmax(0, 1.98fr); gap: 18px; }
  .pe-cs-model {
    --pe-cs-source-width: 136px;
    --pe-cs-core-width: 220px;
    --pe-cs-results-width: 202px;
    width: 100%;
  }
  .pe-cs-benefits { left: 18%; right: 29%; gap: 13px; }
  .pe-cs-benefits span { font-size: 11px; gap: 4px; }
}

@media (min-width: 901px) and (max-height: 820px) {
  #cipherscan.pe-slide { padding-top: 20px; padding-bottom: 18px; }
  .pe-cs-identity { margin-bottom: 19px; }
  .pe-cs-identity strong { font-size: 30px; }
  .pe-cs-identity span { margin-top: 6px; font-size: 10.5px; }
  .pe-cs-copy .pe-value { margin-bottom: 12px; font-size: clamp(34px, 3.4vw, 40px); }
  .pe-cs-copy .pe-lede { font-size: 13px; line-height: 1.48; }
  .pe-cs-copy-rule { margin: 15px 0 14px; }
  .pe-cs-status { gap: 7px; }
  .pe-cs-status li { font-size: 11.5px; }
  .pe-cs-coverage { margin-top: 16px; padding: 10px 13px 9px; }
  .pe-cs-coverage > strong { font-size: 24px; }
  .pe-cs-coverage small { margin-top: 7px; font-size: 10px; }
  .pe-cs-scan-cta { min-height: 34px; margin-top: 2px; }
  .pe-cs-sources > p { min-height: 21px; margin-bottom: 4px; font-size: 10.5px; }
  .pe-cs-source-list { gap: 4px; }
  .pe-cs-source { min-height: 36px; grid-template-columns: 25px minmax(0,1fr) 5px; gap: 6px; padding: 3px 6px; border-radius: 8px; }
  .pe-cs-source > i { width: 25px; height: 25px; border-radius: 6px; }
  .pe-cs-source > i img, .pe-cs-source > i svg { width: 16px; height: 16px; }
  .pe-cs-source strong { font-size: 11.5px; }
  .pe-cs-source small { margin-top: 3px; font-size: 10.5px; }
  .pe-cs-results header { min-height: 23px; padding-bottom: 4px; }
  .pe-cs-results h3 { font-size: 12.5px; }
  .pe-cs-result-list { gap: 4px; }
  .pe-cs-result { min-height: 45px; grid-template-columns: 29px minmax(0,1fr) auto; gap: 6px; padding: 5px 7px; border-radius: 8px; }
  .pe-cs-result > i { width: 29px; height: 29px; border-radius: 7px; }
  .pe-cs-result > i svg { width: 16px; height: 16px; }
  .pe-cs-result > span > small:first-child { font-size: 10.5px; }
  .pe-cs-result strong { margin-top: 3px; font-size: 16px; }
  .pe-cs-result-meta b, .pe-cs-result-meta small { font-size: 10px; }
  .pe-cs-benefits { bottom: 0; }
}

/* ---- Tablet: editorial intro, then a complete visual field ---- */
@media (max-width: 900px) {
  #cipherscan.pe-slide {
    height: auto;
    min-height: 100%;
    padding: 34px 64px 76px 24px;
  }

  .pe-cs-experience {
    height: auto;
    max-height: none;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pe-cs-copy { max-width: 590px; padding-top: 0; }
  .pe-cs-identity { margin-bottom: 28px; }
  .pe-cs-copy .pe-value { max-width: 11ch; font-size: clamp(38px, 6.2vw, 48px); }
  .pe-cs-copy .pe-lede { max-width: 48ch; }
  .pe-cs-coverage { margin-top: 24px; }
  .pe-cs-model {
    --pe-cs-source-width: 145px;
    --pe-cs-core-width: 230px;
    --pe-cs-results-width: 205px;
    min-height: 680px;
  }
}

/* ---- Portrait/mobile narrative ---- */
@media (max-width: 820px) {
  #cipherscan.pe-slide { padding: 30px 18px 82px; }
  .pe-cs-experience { gap: 34px; }
  .pe-cs-identity { margin-bottom: 24px; }
  .pe-cs-identity strong { font-size: 31px; }
  .pe-cs-identity span { font-size: 10.5px; }
  .pe-cs-copy .pe-value { max-width: 10ch; font-size: clamp(36px, 10.4vw, 44px); }
  .pe-cs-copy .pe-lede { max-width: 37ch; font-size: 14px; }
  .pe-cs-status li { font-size: 12px; }
  .pe-cs-coverage, .pe-cs-scan-cta { width: min(100%, 340px); }

  .pe-cs-model {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "core" "sources" "results" "benefits";
    gap: 30px;
  }

  .pe-cs-model::before {
    left: 50%;
    top: 0;
    width: 110%;
    height: 390px;
    transform: translateX(-50%);
  }

  .pe-cs-network { display: none; }
  .pe-cs-core-ports { display: none; }
  .pe-cs-sources, .pe-cs-core, .pe-cs-results, .pe-cs-benefits { position: relative; inset: auto; transform: none; }

  .pe-cs-core {
    grid-area: core;
    width: min(290px, 78vw);
    margin: 0 auto;
  }

  .pe-cs-sources { grid-area: sources; width: 100%; }
  .pe-cs-sources > p { min-height: 0; margin-bottom: 10px; }
  .pe-cs-sources > p span { max-width: none; }
  .pe-cs-source-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .pe-cs-source { min-height: 48px; }

  .pe-cs-results { grid-area: results; width: 100%; }
  .pe-cs-results header { padding-inline: 2px; }
  .pe-cs-result-list { grid-template-columns: 1fr; gap: 7px; }
  .pe-cs-result { min-height: 58px; }

  .pe-cs-benefits {
    grid-area: benefits;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: start;
    gap: 16px 12px;
    padding-top: 4px;
  }

  .pe-cs-benefits span { font-size: 11px; white-space: normal; }
}

@media (max-width: 430px) {
  .pe-cs-source { grid-template-columns: 29px minmax(0,1fr) 5px; gap: 6px; padding-inline: 6px; }
  .pe-cs-source > i { width: 29px; height: 29px; }
  .pe-cs-source strong { font-size: 11.5px; }
  .pe-cs-source small { font-size: 10px; }
  .pe-cs-result { grid-template-columns: 34px minmax(0,1fr) auto; gap: 8px; }
  .pe-cs-result > span > small:first-child { font-size: 10.5px; }
  .pe-cs-result-meta b { font-size: 10.5px; }
}

/* ---- Complete static state for reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .pe-cs-experience *,
  .pe-cs-experience *::before,
  .pe-cs-experience *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: .01ms !important;
  }

  .pe-cs-experience.is-motion-ready:not(.is-entered) .pe-cs-copy > *,
  .pe-cs-experience.is-motion-ready:not(.is-entered) .pe-cs-source,
  .pe-cs-experience.is-motion-ready:not(.is-entered) .pe-cs-result,
  .pe-cs-experience.is-motion-ready:not(.is-entered) .pe-cs-benefits,
  .pe-cs-experience.is-motion-ready:not(.is-entered) .pe-cs-core {
    opacity: 1;
    transform: none;
    scale: 1;
  }

  .pe-cs-route-flow { display: none; }
  .pe-cs-core-wave { display: none; }
  .pe-cs-coverage > div i { transform: none; }
}
