/* Functional diagrams. All labels remain real text; lines carry no private data. */
html,
body.cinematic {
  overflow-x: clip;
}
.cinematic .analysis-strip,
.cinematic .principles {
  min-width: 0;
}
.cinematic .diagram-surface {
  position: relative;
  isolation: isolate;
  border: 1px solid #476b91;
  border-radius: 18px;
  padding: 26px;
  background: radial-gradient(ellipse at 50% 0, #174c763d, transparent 70%), #050e19;
  box-shadow:
    inset 0 1px 0 #a4d2ff24,
    0 16px 50px #0005;
}
.cinematic .diagram-surface .detail-label {
  color: #d6e9ff;
  font: 14px/1.8 var(--sans);
  margin-bottom: 20px;
}
.cinematic .diagram-publication {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border: 0;
  background: none;
  border-radius: 0;
  margin: 28px 0;
}
.cinematic .diagram-publication li {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  padding: 18px 8px;
  border: 1px solid #395c7c;
  border-radius: 12px;
  background: linear-gradient(145deg, #10273e, #050d17);
  text-align: center;
}
.cinematic .diagram-publication li:nth-child(2) {
  border-color: #8bc4ff;
  background: linear-gradient(145deg, #1b4165, #0a1b2d);
}
.cinematic .diagram-publication li::before {
  display: none;
}
.cinematic .diagram-publication li:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 1px;
  right: -15px;
  top: 50%;
  background: #82bdf8;
}
.cinematic .diagram-publication small {
  font: 11px/1.5 var(--sans);
  color: #a5c8ef;
  letter-spacing: 0.08em;
  margin: 0;
}
.cinematic .diagram-publication strong {
  font: 19px/1.5 var(--serif);
  color: #f0f6ff;
}
.flow-caption {
  font: 12px/1.6 var(--sans);
  color: #bacde3;
}
.cinematic .semantic-pair {
  gap: 22px;
}
.cinematic .semantic-pair > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 6px;
  border: 1px solid #5480a9;
  background: #102b4380;
  border-radius: 12px;
}
.semantic-pair small {
  font: 11px/1.5 var(--sans);
  letter-spacing: 0.12em;
  color: #93bee9;
}
.cinematic .semantic-pair strong {
  font: 20px/1.5 var(--serif);
  color: #f1f6ff;
}
.node-caption {
  font: 12px/1.6 var(--sans);
  color: #bfd0e4;
}
.converging-lines {
  display: block;
  width: 100%;
  height: 52px;
  overflow: visible;
  fill: none;
  stroke: #74b5f6;
  stroke-width: 1.4;
}
.converging-lines circle {
  fill: #c0e2ff;
  stroke: none;
}
.semantic-core {
  position: relative;
  text-align: center;
  padding: 20px 8px;
  border-block: 1px solid #416487;
  background: radial-gradient(ellipse, #21528270, transparent 70%);
}
.semantic-core > small {
  position: relative;
  font: 11px/1.4 var(--sans);
  letter-spacing: 0.17em;
  color: #93bee9;
}
.cinematic .system-panel .semantic-core .process-result {
  position: relative;
  font-size: 25px;
  line-height: 1.5;
  margin: 8px 0 0;
}
.core-orbit {
  position: absolute;
  width: 78px;
  height: 78px;
  border: 1px solid #83c1ff26;
  border-radius: 50%;
  left: calc(50% - 39px);
  top: calc(50% - 39px);
  box-shadow: 0 0 0 14px #72baff09;
}
.diagram-output {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font: 15px/1.6 var(--sans);
  color: #d7eaff;
}
.output-marker {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a4d5ff;
  box-shadow: 0 0 12px #5baeff;
}
.cinematic .semantic-flow .detail-caption {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 10px;
}
.relation-hub {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 0 0 18px;
}
.relation-hub > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #6599ca;
  border-radius: 50%;
  color: #b3d7ff;
  font: 32px/1 var(--serif);
  background: #143351;
}
.cinematic .system-panel .relation-hub p {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  color: #e1efff;
}
.relation-hub small {
  display: block;
  font: 10px/1.6 var(--sans);
  letter-spacing: 0.13em;
  color: #8dafd2;
}
.cinematic .relation-types {
  counter-reset: relation;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cinematic .relation-types > div {
  position: relative;
  display: block;
  padding: 12px 12px 12px 16px;
  border: 1px solid #304f70;
  border-left: 2px solid #6da8df;
  border-radius: 8px;
  background: #0c2034;
}
.cinematic .relation-types dt {
  font: 16px/1.6 var(--serif);
  color: #e7f2ff;
}
.cinematic .relation-types dd {
  font: 12px/1.75 var(--sans);
  color: #b7cbe2;
  margin: 6px 0 0;
}
.cinematic .score-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cinematic .score-signals li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 2px;
  border: 1px solid #456887;
  border-radius: 10px;
  background: #102b43;
  text-align: center;
}
.cinematic .score-signals li > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #5683b0;
  font: 11px/1 var(--sans);
}
.score-signals strong {
  font: 21px/1.5 var(--serif);
  color: #eef6ff;
}
.score-signals small {
  font: 12px/1.6 var(--sans);
  color: #bbd0e6;
}
.score-result {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 18px 8px;
  border-block: 1px solid #527697;
  background: radial-gradient(ellipse, #20517d66, transparent 75%);
}
.score-symbol {
  font: 66px/1 var(--serif);
  color: #8dc4ff;
}
.score-result small {
  font: 11px/1.6 var(--sans);
  color: #9cbddd;
  letter-spacing: 0.1em;
}
.cinematic .system-panel .score-result .score-definition {
  font-size: 23px;
  line-height: 1.5;
  margin: 4px 0 0;
}
.cinematic .score-explanation .detail-caption {
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
}
@media (min-width: 901px) and (max-height: 740px) {
  .cinematic .diagram-surface {
    padding: 18px;
  }
  .cinematic .diagram-surface .detail-label {
    margin-bottom: 14px;
  }
  .converging-lines {
    height: 32px;
  }
  .semantic-core {
    padding: 12px 6px;
  }
  .cinematic .semantic-pair > span {
    padding: 12px 4px;
  }
  .relation-hub {
    padding-bottom: 12px;
  }
  .cinematic .relation-types > div {
    padding: 9px 10px;
  }
  .cinematic .score-signals li {
    padding: 10px 2px;
  }
  .score-result {
    padding: 12px 6px;
  }
  .cinematic .diagram-publication li {
    padding: 14px 6px;
    gap: 7px;
  }
}
@media (max-width: 768px) {
  .cinematic .diagram-surface {
    padding: 20px 16px;
  }
  .cinematic .diagram-publication {
    gap: 8px;
  }
  .cinematic .diagram-publication li:not(:last-child)::after {
    width: 8px;
    right: -9px;
  }
  .cinematic .diagram-publication strong {
    font-size: 16px;
  }
  .flow-caption {
    font-size: 12px;
  }
  .cinematic .semantic-pair {
    gap: 12px;
  }
  .cinematic .semantic-pair strong {
    font-size: 18px;
  }
  .cinematic .score-signals {
    gap: 8px;
  }
  .score-signals strong {
    font-size: 19px;
  }
  .cinematic .system-panel .score-result .score-definition {
    font-size: 20px;
  }
  .score-result {
    gap: 12px;
  }
  .score-symbol {
    font-size: 54px;
  }
}

.cinematic .relation-types dt {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 420px) {
  .cinematic .relation-types dt {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Generated glass sculptures replace every illustrative line icon. */
.diagram-icon-art,
.relation-icon-art {
  display: block;
  object-fit: contain;
  aspect-ratio: 1;
  mix-blend-mode: screen;
  flex-shrink: 0;
}
.diagram-icon-art {
  width: 104px;
  height: 104px;
  max-width: 100%;
  margin: 0 auto;
}
.cinematic .diagram-publication li {
  gap: 8px;
  padding: 24px 8px;
}
.cinematic .diagram-publication small {
  margin-bottom: 10px;
}
.cinematic .relation-types > div {
  min-height: 106px;
  padding: 14px 12px 14px 84px;
}
.cinematic .relation-types dt {
  display: block;
}
.relation-icon-art {
  position: absolute;
  left: 8px;
  top: 16px;
  width: 68px;
  height: 68px;
}
@media (min-width: 901px) and (max-height: 740px) {
  .diagram-icon-art {
    width: 80px;
    height: 80px;
  }
  .cinematic .relation-types > div {
    min-height: 94px;
    padding: 10px 8px 10px 72px;
  }
  .relation-icon-art {
    width: 58px;
    height: 58px;
    left: 6px;
    top: 12px;
  }
}
@media (max-width: 1100px) and (min-width: 769px) {
  .cinematic .relation-types > div {
    padding-left: 12px;
  }
  .relation-icon-art {
    position: static;
    width: 52px;
    height: 52px;
    margin-bottom: 5px;
  }
}
@media (max-width: 768px) {
  .diagram-icon-art {
    width: 76px;
    height: 76px;
  }
  .cinematic .diagram-publication li {
    padding: 14px 4px;
  }
  .cinematic .relation-types > div {
    min-height: 0;
    padding: 12px;
  }
  .relation-icon-art {
    position: static;
    width: 76px;
    height: 76px;
    margin: 0 0 8px;
  }
}

/* Function names are the primary headings, with the benefit as a quiet subline. */
.cinematic .principles .system-panel h3.system-function-title {
  font-size: clamp(25px, 2.65vw, 38px);
  line-height: 1.55;
  letter-spacing: 0.015em;
}
.system-function-title > span {
  display: block;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.8;
  color: #cedded;
  letter-spacing: 0.025em;
}

/* Quiet depth: restrained surfaces, a single light source, and grouped controls. */
.cinematic .diagram-surface {
  border: 1px solid #7098be26;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% -25%, #27538036, transparent 65%),
    linear-gradient(160deg, #0b1622, #050b13 65%);
  box-shadow: 0 18px 48px #0003;
}
.cinematic .diagram-surface .detail-label {
  color: #aabed3;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.cinematic .semantic-pair > span,
.cinematic .score-signals li {
  border: 1px solid #789ec22b;
  border-radius: 12px;
  background: linear-gradient(155deg, #20384f70, #12233550);
  box-shadow: none;
}
.cinematic .semantic-pair strong {
  color: #edf4fc;
}
.cinematic .semantic-core,
.cinematic .score-result {
  border: 0;
  border-radius: 0;
  background: radial-gradient(ellipse at center, #2353813b, transparent 72%);
  box-shadow: none;
  padding-block: 22px;
}
.cinematic .core-orbit {
  display: none;
}
.cinematic .converging-lines {
  stroke: #7295b6;
  stroke-width: 1;
  opacity: 0.7;
  filter: none;
}
.cinematic .score-signals li > span {
  border: 0;
  border-radius: 0;
  color: #7e9ebf;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.cinematic .score-symbol {
  color: #9dc9f6;
  text-shadow: 0 0 32px #3479c52b;
}
.cinematic .relation-types > div {
  border: 1px solid #7699bb1c;
  border-radius: 12px;
  background: linear-gradient(140deg, #1a304643, #0e1c2926);
  box-shadow: none;
}
.cinematic .relation-hub > span {
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 46px;
}
/* A single segmented control makes the three chapters feel connected. */
.cinematic .principle-nav:not([hidden]) {
  gap: 4px;
  padding: 5px;
  border: 1px solid #88a9cb24;
  border-radius: 14px;
  background: #0a131f;
  box-shadow: 0 8px 24px #0003;
  max-width: calc(100% - 32px);
}
.cinematic .principle-nav button {
  position: relative;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #a6b9cd;
  box-shadow: none;
  transform: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}
.cinematic .principle-nav button[aria-current] {
  background: #203e5d;
  border-color: #83b7e63d;
  color: #f3f8ff;
  box-shadow: none;
  transform: none;
}
@media (hover: hover) {
  .cinematic .principle-nav button:hover {
    background: #172638;
    color: #f3f8ff;
  }
  .cinematic .principle-nav button[aria-current]:hover {
    background: #284b6c;
  }
}
.cinematic .principle-nav button:active {
  background: #102033;
}
.cinematic .principle-nav button:focus-visible {
  outline: 2px solid #a6d0f6;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .cinematic .principle-nav button {
    transition: none;
  }
}
.motion-paused .cinematic .principle-nav button {
  transition: none;
}
@media (min-width: 901px) and (max-height: 740px) {
  .cinematic .semantic-core,
  .cinematic .score-result {
    padding-block: 14px;
  }
}

/* Emphasis follows meaning: quiet inputs, luminous result, clear active chapter. */
.cinematic .diagram-surface {
  background:
    radial-gradient(ellipse at 80% 100%, #124d852b, transparent 65%),
    linear-gradient(145deg, #0d1c2b, #040a12 65%);
  border-color: #6596c345;
}
.cinematic .semantic-core,
.cinematic .score-result {
  position: relative;
  isolation: isolate;
  margin-block: 8px;
  padding: 26px 12px;
  border-radius: 14px;
  border: 1px solid #75baff66;
  background:
    radial-gradient(ellipse at 50% 100%, #3475b86b, transparent 80%),
    linear-gradient(130deg, #102d49, #0a1c30);
  box-shadow: 0 0 32px #2478c51a;
}
.cinematic .semantic-core::before,
.cinematic .score-result::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 15%;
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c3e6ff, transparent);
  box-shadow: 0 0 12px #6bb9ff;
  pointer-events: none;
}
.cinematic .system-panel .semantic-core .process-result {
  color: #f2f8ff;
  font-size: clamp(26px, 2.5vw, 36px);
  text-shadow: 0 0 24px #76baff40;
}
.cinematic .score-symbol {
  font-size: 82px;
  color: #b5deff;
  text-shadow: 0 0 30px #499dff66;
}
.cinematic .system-panel .score-result .score-definition {
  color: #f2f8ff;
  font-size: clamp(22px, 2vw, 28px);
}
.cinematic .diagram-output {
  color: #c6e5ff;
  font-weight: 500;
}
.cinematic .relation-hub {
  justify-content: flex-start;
  border-bottom: 1px solid #5285b540;
  margin-bottom: 16px;
}
.cinematic .relation-hub > span {
  color: #b5deff;
  text-shadow: 0 0 24px #499dff55;
}
.cinematic .relation-types dt {
  color: #f0f7ff;
}
.cinematic .principle-nav button[aria-current] {
  background:
    radial-gradient(ellipse at 50% 0%, #5eafff50, transparent 85%),
    linear-gradient(125deg, #245e9b, #173c68);
  border-color: #8cc9ff99;
  color: #fff;
  box-shadow:
    inset 0 1px 0 #c7e9ff35,
    0 0 20px #308eff28;
}
.cinematic .principle-nav button[aria-current]::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: calc(50% - 12px);
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #a8d9ff;
  box-shadow: 0 0 8px #63b4ff;
}
@media (min-width: 901px) and (max-height: 740px) {
  .cinematic .semantic-core,
  .cinematic .score-result {
    padding: 16px 10px;
  }
  .cinematic .score-symbol {
    font-size: 64px;
  }
}
@media (max-width: 768px) {
  .cinematic .semantic-core,
  .cinematic .score-result {
    padding: 22px 10px;
  }
  .cinematic .score-symbol {
    font-size: 64px;
  }
}

/* Individually generated concepts. Chapter navigation remains unchanged. */
.cinematic .concept-art {
  display: block;
  width: 108px;
  height: 108px;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  margin: 0 auto;
}
.cinematic .semantic-pair > span,
.cinematic .score-signals li,
.cinematic .relation-types > div {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: #6ca9e257;
  background:
    radial-gradient(ellipse at 50% 40%, #12467555, transparent 74%),
    linear-gradient(150deg, #07121f, #02070e);
  box-shadow: inset 0 1px 0 #a7d7ff12;
}
.cinematic .semantic-pair > span,
.cinematic .score-signals li {
  gap: 4px;
  padding: 14px 6px;
}
.cinematic .semantic-pair > span::after,
.cinematic .score-signals li::after,
.cinematic .relation-types > div::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.65;
  background:
    radial-gradient(circle at 12% 28%, #a3d6ff 0 0.7px, transparent 1.7px),
    radial-gradient(circle at 84% 15%, #80bcff 0 0.6px, transparent 1.5px),
    radial-gradient(circle at 72% 56%, #8fcdff 0 0.8px, transparent 1.8px),
    radial-gradient(circle at 21% 76%, #7caee4 0 0.5px, transparent 1.3px);
}
.cinematic .score-signals li > span {
  position: absolute;
  top: 7px;
  left: 8px;
  width: auto;
  height: auto;
  font-size: 10px;
}
.cinematic .score-signals .concept-art {
  width: 92px;
  height: 92px;
}
.cinematic .semantic-pair strong {
  font-size: 21px;
}
.cinematic .score-signals strong {
  font-size: 23px;
}
.cinematic .relation-types > div {
  min-height: 118px;
  padding: 16px 10px 16px 100px;
}
.cinematic .relation-icon-art {
  position: absolute;
  width: 88px;
  height: 88px;
  left: 6px;
  top: calc(50% - 44px);
  margin: 0;
}
.cinematic .relation-types dd {
  color: #bfcede;
}
@media (min-width: 901px) and (max-height: 740px) {
  .cinematic .concept-art {
    width: 76px;
    height: 76px;
  }
  .cinematic .score-signals .concept-art {
    width: 70px;
    height: 70px;
  }
  .cinematic .semantic-pair > span,
  .cinematic .score-signals li {
    padding-block: 10px;
  }
  .cinematic .relation-types > div {
    min-height: 102px;
    padding: 10px 8px 10px 82px;
  }
  .cinematic .relation-icon-art {
    width: 72px;
    height: 72px;
    left: 4px;
    top: calc(50% - 36px);
  }
}
@media (max-width: 1100px) and (min-width: 769px) {
  .cinematic .relation-types > div {
    padding: 10px;
  }
  .cinematic .relation-icon-art {
    position: static;
    width: 68px;
    height: 68px;
    margin: 0 auto 6px;
  }
}
@media (max-width: 768px) {
  .cinematic .concept-art {
    width: 94px;
    height: 94px;
  }
  .cinematic .score-signals .concept-art {
    width: 72px;
    height: 72px;
  }
  .cinematic .semantic-pair strong {
    font-size: 18px;
  }
  .cinematic .score-signals strong {
    font-size: 20px;
  }
  .cinematic .relation-types > div {
    min-height: 0;
    padding: 12px;
  }
  .cinematic .relation-icon-art {
    position: static;
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
  }
}

/* Immersive environments replace the individual pictograms with spatial depth. */
.cinematic #matching .principles > article {
  position: relative;
  isolation: isolate;
  background-size: cover;
  background-position: center;
}
.cinematic #matching .principles > article::before {
  content: none;
  display: none;
}
.cinematic #matching .principles > article:nth-child(1) {
  background-image:
    linear-gradient(90deg, #02060df0 0%, #02060dce 34%, #02060d50 72%, #02060d8c 100%),
    linear-gradient(0deg, #02060d9c, transparent 35%, #02060d33),
    url("../img/cinematic/environments/semantic-connections.webp");
}
.cinematic #matching .principles > article:nth-child(2) {
  background-image:
    linear-gradient(90deg, #02060df2 0%, #02060dcf 35%, #02060d55 74%, #02060d92 100%),
    linear-gradient(0deg, #02060da8, transparent 38%, #02060d42),
    url("../img/cinematic/environments/relationship-paths.webp");
}
.cinematic #matching .principles > article:nth-child(3) {
  background-image:
    linear-gradient(90deg, #02060df0 0%, #02060dce 34%, #02060d50 72%, #02060d8c 100%),
    linear-gradient(0deg, #02060d9c, transparent 35%, #02060d33),
    url("../img/cinematic/environments/scoring-layers.webp");
}
.cinematic .diagram-surface {
  border: 1px solid #a3c9ec30;
  border-radius: 18px;
  background:
    linear-gradient(145deg, #071321c7, #030810c9),
    radial-gradient(ellipse at 75% 0%, #438fd13d, transparent 74%);
  box-shadow:
    inset 0 1px 0 #d6efff12,
    0 18px 55px #0007;
  backdrop-filter: blur(4px);
}
.cinematic .semantic-pair > span,
.cinematic .score-signals li,
.cinematic .relation-types > div {
  border: 1px solid #91bbdf30;
  border-radius: 12px;
  background: linear-gradient(145deg, #183653a8, #081522bd);
  box-shadow:
    inset 0 1px 0 #c4e6ff12,
    0 8px 22px #0003;
}
/* No pictogram marks: only the generated architecture, particle light, and real labels. */
.cinematic .concept-art,
.cinematic .relation-icon-art {
  display: none !important;
}
.cinematic .semantic-pair > span::after,
.cinematic .score-signals li::after,
.cinematic .relation-types > div::after {
  background:
    radial-gradient(circle at 12% 28%, #a3d6ff 0 0.7px, transparent 1.7px),
    radial-gradient(circle at 84% 15%, #80bcff 0 0.6px, transparent 1.5px),
    radial-gradient(circle at 72% 56%, #8fcdff 0 0.8px, transparent 1.8px),
    radial-gradient(circle at 21% 76%, #7caee4 0 0.5px, transparent 1.3px);
}
@media (max-width: 900px), (max-height: 599px) {
  .cinematic #matching .principles > article:nth-child(n) {
    background-position: center;
  }
}

.cinematic .relation-hub strong {
  color: #d9edff;
  font: 400 34px/1.25 var(--serif);
  margin-right: 8px;
}

/* Front-facing glass planes; depth comes from their rims, light, and shadows. */
.cinematic .score-explanation {
  perspective: none;
  transform-style: flat;
  border-color: #86acd03d #49698755 #203950 #6687a34a;
  background:
    radial-gradient(ellipse at 50% 95%, #1965a33b, transparent 48%),
    linear-gradient(155deg, #071321d9, #030810e8);
  box-shadow:
    inset 0 1px 0 #c5e4ff19,
    inset 1px 0 0 #b8ddff0b,
    inset 0 -1px 0 #0006,
    0 1px 0 #172839,
    0 3px 0 #0b1724,
    0 12px 28px #0004;
}
.cinematic .score-explanation .score-signals {
  transform-style: flat;
  perspective: none;
  gap: 16px;
  padding: 4px 2px 14px;
}
.cinematic .score-explanation .score-signals li,
.cinematic .score-explanation .score-signals li:nth-child(2),
.cinematic .score-explanation .score-signals li:nth-child(3) {
  transform: none;
  position: relative;
  border: 1px solid #91b8d655;
  border-bottom-color: #203b55;
  background:
    linear-gradient(130deg, #a9d8ff0e, transparent 48%),
    linear-gradient(160deg, #183650, #0b1a2a);
  box-shadow:
    inset 0 1px 0 #d6efff34,
    inset 1px 0 0 #c5e4ff12,
    inset -1px 0 0 #0004,
    0 2px 0 #101e2b,
    0 4px 0 #263f55,
    0 8px 15px #0008,
    0 18px 28px #0004;
}
.cinematic .score-explanation .score-signals li::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 42%;
  border-radius: 10px 10px 50% 50%;
  background: linear-gradient(180deg, #c6eaff0d, transparent);
  pointer-events: none;
}
.cinematic .score-explanation .score-signals li:nth-child(2) {
  transform: translateY(-5px);
  border-color: #aedbff82;
  background:
    linear-gradient(130deg, #c6e9ff19, transparent 50%),
    linear-gradient(160deg, #214b6b, #0e2236);
  box-shadow:
    inset 0 1px 0 #e4f5ff5c,
    inset 1px 0 0 #d0ebff1b,
    inset -1px 0 0 #0004,
    0 2px 0 #14283a,
    0 5px 0 #365b79,
    0 11px 18px #0009,
    0 24px 34px #0006,
    0 0 28px #2583d224;
}
.cinematic .score-explanation .score-result {
  transform: none;
  position: relative;
  isolation: isolate;
  margin: 10px 4px 18px;
  border: 1px solid #a3d4ff94;
  border-bottom-color: #365c7b;
  background:
    radial-gradient(ellipse at 50% 115%, #3988d775, transparent 72%),
    linear-gradient(120deg, #123758, #0b1b2e 52%, #102c46);
  box-shadow:
    inset 0 1px 0 #e1f4ff68,
    inset 1px 0 0 #c8e8ff27,
    inset -1px 0 0 #0005,
    0 2px 0 #172b3d,
    0 5px 0 #365773,
    0 10px 20px #0009,
    0 24px 42px #0008,
    0 0 36px #3184cd29;
}
.cinematic .score-explanation .score-result::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 46%;
  border-radius: 12px 12px 50% 50%;
  background: linear-gradient(180deg, #c8e9ff16, transparent);
  pointer-events: none;
}
.cinematic .score-explanation .score-result::after {
  inset: 1px;
  border-radius: 13px;
  background: linear-gradient(
    112deg,
    #b9e2ff0d 0%,
    transparent 38%,
    transparent 72%,
    #86c5ff0a
  );
}
.cinematic .score-explanation .score-lines {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 1px 1px #000) drop-shadow(0 0 5px #75beff72);
  opacity: 0.94;
}
@media (prefers-reduced-motion: reduce) {
  .cinematic .score-explanation .score-signals li,
  .cinematic .score-explanation .score-result {
    transition: none;
  }
}

/* Match the subtle raised base across all three system diagrams. */
.cinematic .semantic-flow,
.cinematic .relation-map {
  border-color: #86acd03d #49698755 #203950 #6687a34a;
  box-shadow:
    inset 0 1px 0 #c5e4ff19,
    inset 1px 0 0 #b8ddff0b,
    inset 0 -1px 0 #0006,
    0 1px 0 #172839,
    0 3px 0 #0b1724,
    0 12px 28px #0004;
}

/* Bring the first two diagrams onto the same front-facing glass stage. */
.cinematic .semantic-pair > span,
.cinematic .relation-types > div {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: none;
  border-color: #91b8d655 #6386a94d #253f5b #7096b84a;
  background:
    linear-gradient(130deg, #a9d8ff10, transparent 48%),
    linear-gradient(160deg, #183650, #0b1a2a);
  box-shadow:
    inset 0 1px 0 #d6efff32,
    inset 1px 0 0 #c5e4ff12,
    inset -1px 0 0 #0004,
    0 2px 0 #101e2b,
    0 4px 0 #263f55,
    0 8px 15px #0007,
    0 18px 28px #0004;
}
.cinematic .semantic-pair > span::before,
.cinematic .relation-types > div::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1px 1px auto;
  height: 44%;
  border-radius: 10px 10px 50% 50%;
  background: linear-gradient(180deg, #c6eaff10, transparent);
  pointer-events: none;
}
.cinematic .semantic-pair > span > *,
.cinematic .relation-types dt,
.cinematic .relation-types dd {
  position: relative;
  z-index: 1;
}
.cinematic .semantic-core {
  isolation: isolate;
  border: 1px solid #a3d4ff82;
  border-bottom-color: #365c7b;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 115%, #3988d75c, transparent 72%),
    linear-gradient(120deg, #123758, #0b1b2e 52%, #102c46);
  box-shadow:
    inset 0 1px 0 #e1f4ff58,
    inset 1px 0 0 #c8e8ff20,
    inset -1px 0 0 #0004,
    0 2px 0 #172b3d,
    0 5px 0 #365773,
    0 10px 20px #0008,
    0 20px 34px #0006;
}
.cinematic .semantic-core > small,
.cinematic .semantic-core .process-result {
  position: relative;
  z-index: 1;
}
.cinematic .relation-hub {
  border-bottom-color: #8bb6dc39;
  padding-bottom: 16px;
}
.cinematic .relation-hub strong {
  text-shadow:
    0 1px 0 #d5edff50,
    0 5px 12px #0009;
}
/* Keep the result sheen behind the score label instead of across the text. */
.cinematic .score-explanation .score-result::before {
  inset: 1px;
  width: auto;
  height: auto;
  border-radius: 13px;
  background: linear-gradient(180deg, #c8e9ff12, transparent 52%);
  z-index: 0;
}
.cinematic .score-explanation .score-result > * {
  position: relative;
  z-index: 1;
}
/* Carry the score result's luminous frame into the other two diagrams. */
.cinematic .semantic-core {
  border-color: #a3d4ffb0;
  box-shadow:
    inset 0 1px 0 #e1f4ff68,
    inset 1px 0 0 #c8e8ff27,
    inset -1px 0 0 #0005,
    0 2px 0 #172b3d,
    0 5px 0 #365773,
    0 10px 20px #0009,
    0 24px 42px #0008,
    0 0 34px #3184cd42;
}
.cinematic .relation-types > div {
  border-color: #91caff7a;
  box-shadow:
    inset 0 1px 0 #e1f4ff54,
    inset 1px 0 0 #c8e8ff20,
    inset -1px 0 0 #0005,
    0 2px 0 #172b3d,
    0 4px 0 #2b4b66,
    0 8px 15px #0007,
    0 0 20px #3184cd30;
}
@media (max-width: 768px) {
  .cinematic .semantic-pair > span,
  .cinematic .relation-types > div {
    box-shadow:
      inset 0 1px 0 #d6efff32,
      0 2px 0 #101e2b,
      0 4px 0 #263f55,
      0 8px 14px #0006;
  }
}
