/* Rhazes platform and mechanism sections
   Section-specific classes use p-/m- prefixes so this file can sit beside the
   main landing page styles without changing its existing visual language. */

.p-section,
.m-theatre {
  position: relative;
  overflow: clip;
}

.p-section {
  background: var(--section, #F6F0E9);
  border-top: 1px solid var(--line, rgb(8 51 51 / 14%));
  color: var(--ink, #083333);
}

.p-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .62fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
}

.p-intro-copy {
  max-width: 38rem;
}

.p-section .eyebrow,
.m-theatre .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: rgb(8 51 51 / 74%);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.p-section .section-heading,
.m-theatre .section-heading {
  margin-top: 22px;
  max-width: 16ch;
  color: var(--ink, #083333);
  font-size: clamp(2.35rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.04;
  text-wrap: balance;
}

.p-section .lead,
.m-theatre .lead {
  max-width: 42ch;
  color: rgb(8 51 51 / 74%);
  font-size: 1.125rem;
  line-height: 1.55;
}

.p-grid {
  display: grid;
  grid-template-areas:
    "scribe scribe scribe support support support"
    "coding coding ehr ehr spaces spaces"
    "audits audits audits custom custom custom";
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(3.25rem, 6vw, 4.75rem);
}

.p-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line, rgb(8 51 51 / 14%));
  border-radius: 24px;
  background: var(--surface, #FAF6F2);
  padding: clamp(1.45rem, 2.6vw, 2.15rem);
  color: var(--ink, #083333);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s cubic-bezier(.22, 1, .36, 1);
}

.p-card:hover,
.p-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgb(8 51 51 / 32%);
}

.p-lead {
  min-height: 30rem;
}

.p-scribe-card {
  grid-area: scribe;
}

.p-support-card {
  grid-area: support;
}

.p-coding-card {
  grid-area: coding;
}

.p-ehr-card {
  grid-area: ehr;
}

.p-spaces-card {
  grid-area: spaces;
}

.p-audits-card {
  grid-area: audits;
}

.p-custom-card {
  grid-area: custom;
}

.p-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.p-card-icon,
.m-card-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--control, #EFE7DD);
  color: var(--ink, #083333);
}

.p-card-icon svg,
.m-card-icon svg {
  width: 20px;
  height: 20px;
}

.p-card.is-selected .p-card-icon {
  background: rgb(246 240 233 / 10%);
  color: var(--cream, #F6F0E9);
}

.p-card h3 {
  margin-top: 1.55rem;
  color: var(--ink, #083333);
  font-size: clamp(1.32rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -.018em;
  line-height: 1.14;
}

.p-card p {
  margin-top: .65rem;
  color: rgb(8 51 51 / 74%);
  font-size: .98rem;
  line-height: 1.55;
}

.p-card.is-selected h3,
.p-card.is-selected p {
  color: var(--cream, #F6F0E9);
}

.p-card.is-selected p {
  color: rgb(246 240 233 / 72%);
}

.p-card .p-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 1.25rem;
  color: rgb(8 51 51 / 74%);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.p-card.is-selected .p-card-tag {
  color: rgb(246 240 233 / 72%);
}

.p-scribe-demo {
  display: flex;
  min-height: 14.25rem;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(8 51 51 / 3%);
  padding: 1rem 1.15rem;
}

.p-scribe-topline,
.p-scribe-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.p-scribe-status {
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  padding-top: .75rem;
}

.p-scribe-status .p-live-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--sand, #DAB697);
  box-shadow: 0 0 0 0 rgb(218 182 151 / 50%);
}

.p-waveform {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 3px;
  margin: .85rem 0 .8rem;
}

.p-wave-bar {
  display: block;
  width: 3px;
  min-height: 5px;
  transform: scaleY(.8);
  transform-origin: center;
  border-radius: 99px;
  background: var(--sand, #DAB697);
  opacity: .78;
}

.p-scribe-lines {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.p-scribe-line {
  display: flex;
  min-width: 0;
  min-height: 2.8em;
  gap: .7rem;
  color: var(--ink);
  font-size: .82rem;
  line-height: 1.4;
}

.p-scribe-line .p-role {
  width: 2.2rem;
  flex: none;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .09em;
  padding-top: .11rem;
  text-transform: uppercase;
}

.p-scribe-line .p-copy {
  min-width: 0;
}

.p-evidence-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  margin-top: 1.5rem;
}

.p-evidence-row,
.p-code-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  border: 1px solid var(--line, rgb(8 51 51 / 14%));
  border-radius: 12px;
  background: var(--surface, #FAF6F2);
  padding: .76rem .9rem;
  color: rgb(8 51 51 / 74%);
  font-size: .82rem;
  line-height: 1.35;
}

.p-evidence-row strong {
  color: var(--ink, #083333);
  font-weight: 500;
}

.p-evidence-source {
  flex: none;
  margin-left: auto;
  border: 1px solid var(--line, rgb(8 51 51 / 14%));
  border-radius: 99px;
  padding: 4px 8px;
  color: rgb(8 51 51 / 74%);
  font-size: .65rem;
  letter-spacing: .04em;
  white-space: nowrap;
}

.p-mini-label {
  display: block;
  color: rgb(8 51 51 / 74%);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.p-code-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  margin-top: 1.35rem;
}

.p-code-row {
  border: 0;
  border-bottom: 1px solid var(--line, rgb(8 51 51 / 14%));
  border-radius: 0;
  background: transparent;
  padding: .85rem 0;
}

.p-code-row:last-child {
  border-bottom: 0;
}

.p-code-system {
  width: 4.7rem;
  flex: none;
  color: var(--ink, #083333);
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.p-code-copy {
  min-width: 0;
  color: rgb(8 51 51 / 74%);
}

.p-code-state {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 1px solid rgb(8 51 51 / 18%);
  border-radius: 50%;
  color: rgb(8 51 51 / 74%);
  font-size: .7rem;
}

.p-ehr-card {
  background: var(--card, #F7F2EA);
}

.p-ehr-chips {
  position: relative;
  display: flex;
  min-height: 11rem;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: .65rem;
  margin-top: 1.4rem;
  padding-left: 1.4rem;
}

.p-ehr-chips::before {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: .35rem;
  width: 1px;
  transform-origin: top;
  background: var(--sand, #DAB697);
  opacity: .78;
}

.p-ehr-chip {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .6rem;
  border: 1px solid var(--line, rgb(8 51 51 / 14%));
  border-radius: 99px;
  background: var(--surface, #FAF6F2);
  padding: .55rem .8rem;
  color: var(--ink, #083333);
  font-size: .78rem;
  font-weight: 500;
}

.p-ehr-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand, #DAB697);
}

.p-ehr-chip small {
  color: rgb(8 51 51 / 74%);
  font-size: .7rem;
  font-weight: 400;
}

.p-tool-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: 1.25rem;
}

.p-tool-list span {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgb(8 51 51 / 74%);
  font-size: .84rem;
}

.p-tool-list span::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border: 1px solid var(--sand, #DAB697);
  border-radius: 2px;
}

/* Consultation theatre */
.m-theatre {
  background: linear-gradient(180deg, var(--ink, #083333) 0%, #052B2B 100%);
  color: var(--cream, #F6F0E9);
  isolation: isolate;
}

.m-theatre::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: radial-gradient(ellipse 75% 45% at 80% 0%, rgb(218 182 151 / 10%), transparent 64%);
  pointer-events: none;
}

.m-theatre .eyebrow {
  color: rgb(246 240 233 / 74%);
}

.m-theatre .section-heading {
  color: var(--cream, #F6F0E9);
}

.m-theatre .lead {
  color: rgb(246 240 233 / 74%);
}

.m-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .85fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
  margin-bottom: clamp(2.6rem, 5vw, 4.5rem);
}

.m-head .section-heading {
  max-width: 17ch;
}

.m-head .lead {
  max-width: 42ch;
}

.m-controls {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.6rem;
}

.m-controls .button,
.m-controls .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  cursor: pointer;
  font: inherit;
  font-size: .85rem;
  font-weight: 500;
  line-height: 1;
  min-height: 44px;
  padding: .75rem 1.1rem;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), background-color .25s ease, border-color .25s ease, color .25s ease;
}

.m-controls .button {
  border: 1px solid var(--cream, #F6F0E9);
  background: var(--cream, #F6F0E9);
  color: var(--ink, #083333);
}

.m-controls .button-secondary {
  border: 1px solid rgb(246 240 233 / 36%);
  background: transparent;
  color: var(--cream, #F6F0E9);
}

.m-controls .button:hover,
.m-controls .button-secondary:hover,
.m-controls .button:focus-visible,
.m-controls .button-secondary:focus-visible {
  transform: translateY(-2px);
}

.m-controls .button-secondary:hover,
.m-controls .button-secondary:focus-visible {
  border-color: rgb(246 240 233 / 72%);
  background: rgb(246 240 233 / 10%);
}

.m-controls .button:focus-visible,
.m-controls .button-secondary:focus-visible {
  outline: 2px solid var(--sand, #DAB697);
  outline-offset: 3px;
}

.m-control-status {
  margin-left: auto;
  color: rgb(246 240 233 / 74%);
  font-size: .78rem;
  letter-spacing: .06em;
  text-align: right;
  text-transform: uppercase;
}

.m-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 3vw, 2.4rem);
}

.m-panel {
  min-height: 25rem;
  border: 1px solid rgb(246 240 233 / 14%);
  border-radius: 24px;
  background: rgb(252 246 239 / 6%);
  padding: clamp(1.2rem, 2.5vw, 1.9rem);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.m-panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  border-bottom: 1px solid rgb(246 240 233 / 11%);
  padding-bottom: 1rem;
  color: rgb(246 240 233 / 74%);
  font-size: .72rem;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.m-language-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: .8rem;
  border-bottom: 1px solid rgb(246 240 233 / 11%);
  padding-bottom: .8rem;
}

html.js .m-language-controls {
  display: flex;
}

.m-language-label {
  color: rgb(246 240 233 / 64%);
  font-size: .68rem;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.m-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgb(246 240 233 / 22%);
  border-radius: 99px;
  background: rgb(246 240 233 / 5%);
  padding: 2px;
}

.m-language-switch button {
  min-height: 44px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  padding: .55rem .78rem;
  color: rgb(246 240 233 / 72%);
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  line-height: 1;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.m-language-switch button:hover {
  color: var(--cream, #F6F0E9);
  transform: translateY(-1px);
}

.m-language-switch button[aria-pressed="true"] {
  background: var(--cream, #F6F0E9);
  color: var(--ink, #083333);
}

.m-language-switch button:focus-visible {
  outline: 2px solid var(--sand, #DAB697);
  outline-offset: 2px;
}

.m-language-note {
  margin: .65rem 0 0;
  color: rgb(246 240 233 / 64%);
  font-size: .72rem;
  line-height: 1.5;
}

.m-panel-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sand, #DAB697);
  white-space: nowrap;
}

.m-panel-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand, #DAB697);
}

.m-lines {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.35rem;
}

.m-line {
  display: flex;
  gap: .8rem;
  color: rgb(246 240 233 / 92%);
  font-size: .92rem;
  line-height: 1.52;
}

.m-line > p {
  min-width: 0;
  margin: 0;
}

.m-copy-option {
  unicode-bidi: isolate;
}

.m-copy-option[data-copy-language="mixed"] {
  line-height: 1.72;
}

.m-copy-option bdi[lang="ar"] {
  font-family: "Geeza Pro", "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", sans-serif;
  font-size: 1.08em;
  line-height: 1.9;
  margin-inline: .12em;
}

.m-line .m-who {
  width: 2.15rem;
  flex: none;
  color: rgb(246 240 233 / 74%);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .08em;
  padding-top: .18rem;
  text-transform: uppercase;
}

.m-line mark {
  border-radius: 4px;
  background: rgb(218 182 151 / 22%);
  color: var(--cream, #F6F0E9);
  padding: 0 3px;
}

.m-note-block {
  margin-top: 1.35rem;
}

.m-note-block h3 {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--sand, #DAB697);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.m-note-block h3::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgb(246 240 233 / 11%);
}

.m-note-block p {
  margin: .7rem 0 0;
  color: rgb(246 240 233 / 90%);
  font-size: .9rem;
  line-height: 1.55;
}

.m-note-block .m-note-cite {
  margin-top: .4rem;
}

.m-note-cite {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: .4rem;
  border: 1px solid rgb(218 182 151 / 30%);
  border-radius: 10px;
  background: rgb(218 182 151 / 12%);
  padding: .55rem .8rem;
  color: var(--cream, #F6F0E9);
  font-size: .76rem;
  line-height: 1.35;
}

.m-note-cite svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--sand, #DAB697);
}

.m-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.8rem, 4vw, 3rem);
  border-top: 1px solid rgb(246 240 233 / 11%);
  padding-top: 1.4rem;
}

.m-rail-step {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: rgb(246 240 233 / 74%);
  font-size: .83rem;
  line-height: 1.4;
  transition: color .25s ease;
}

.m-rail-step .m-number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(246 240 233 / 22%);
  border-radius: 50%;
  color: rgb(246 240 233 / 74%);
  font-size: .7rem;
  font-weight: 500;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.m-rail-step.is-active {
  color: var(--cream, #F6F0E9);
}

.m-rail-step.is-active .m-number {
  border-color: var(--sand, #DAB697);
  background: var(--sand, #DAB697);
  color: var(--ink, #083333);
}

.m-disclaimer {
  margin-top: 1.25rem;
  color: rgb(246 240 233 / 74%);
  font-size: .75rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .p-grid {
    grid-template-areas:
      "scribe scribe"
      "support support"
      "coding ehr"
      "spaces spaces"
      "audits custom";
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-lead {
    min-height: 26rem;
  }
}

@media (max-width: 760px) {
  .p-intro,
  .m-head {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .p-intro .lead,
  .m-head .lead {
    max-width: 52ch;
  }

  .m-stage {
    grid-template-columns: 1fr;
  }

  .m-panel {
    min-height: auto;
  }

  .m-rail {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
}

@media (min-width: 1024px) and (max-height: 900px) {
  .m-theatre.section-pad {
    padding-block: 48px;
  }

  .m-head {
    margin-bottom: 32px;
  }

  .m-theatre .section-heading {
    max-width: 22ch;
    font-size: clamp(2rem, 3.2vw, 2.75rem);
  }

  .m-panel {
    min-height: 320px;
    padding: clamp(1rem, 2vw, 1.45rem);
  }

  .m-lines {
    gap: .7rem;
    padding-top: 1rem;
  }

  .m-note-block {
    margin-top: .95rem;
  }

  .m-rail {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }
}

@media (max-width: 620px) {
  .p-scribe-line { min-height: 4.2em; }
  .p-grid {
    grid-template-areas:
      "scribe"
      "support"
      "coding"
      "ehr"
      "spaces"
      "audits"
      "custom";
    grid-template-columns: 1fr;
  }

  .p-lead {
    min-height: 0;
  }

  .m-controls {
    flex-wrap: wrap;
  }

  .m-language-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .m-control-status {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-card,
  .m-rail-step,
  .m-rail-step .m-number {
    transition-duration: .001s !important;
  }
}

/* Colour marks a visitor's choice, rather than a permanently featured card. */
.feature-select{font:inherit;letter-spacing:inherit;line-height:inherit;text-align:left;color:inherit;padding:0;min-height:44px}
.feature-select::after{content:"";position:absolute;inset:0;border-radius:24px;cursor:pointer}
.p-card:has(.feature-select:focus-visible){outline:2px solid var(--ink);outline-offset:4px}
.feature-select:focus-visible{outline:none}
@media(hover:hover){.p-card:not(.is-selected):hover{background:#e6eee4}}
.p-card:not(.is-selected):focus-within{background:#e6eee4}
.p-card.is-selected{--line:rgb(246 240 233 / 18%);--muted:rgb(246 240 233 / 80%);background:#083333;border-color:#083333;color:#f6f0e9}
.p-card.is-selected .p-mini-label,.p-card.is-selected .p-code-copy,.p-card.is-selected .p-code-row,.p-card.is-selected .p-code-state,.p-card.is-selected .p-tool-list span{color:rgb(246 240 233 / 80%)}
.p-card.is-selected .p-code-system{color:#f6f0e9}
.p-card.is-selected .p-code-state{border-color:var(--line)}
.p-card.is-selected .p-scribe-demo{background:rgb(252 246 239 / 7%)}
.p-card.is-selected .p-scribe-line{color:rgb(246 240 233 / 92%)}
.p-card.is-selected .p-evidence-row,.p-card.is-selected .p-ehr-chip{--line:rgb(8 51 51 / 14%)}

/* Code ladder: record evidence connects to an illustrative ranked shortlist. */
.code-ladder{background:var(--canvas);border-top:1px solid var(--line)}
.cl-stage{padding-top:40px;background:var(--canvas)}
.cl-container{width:min(1248px,calc(100% - 112px));margin-inline:auto}
.cl-stage .eyebrow{margin-bottom:24px}
.cl-intro{display:grid;grid-template-columns:56% 44%;align-items:center;padding-bottom:44px;border-bottom:1px solid var(--line)}
.cl-intro h2{font-weight:300;font-size:clamp(36px,3.2vw,52px);line-height:1.05;letter-spacing:-.04em}
.cl-intro>p{font-size:16px;line-height:1.6;color:var(--muted);max-width:43ch}
.cl-workspace{position:relative;display:grid;grid-template-columns:38% 18% 44%;grid-template-rows:auto auto auto;row-gap:24px;margin-top:44px;padding-bottom:44px}
.cl-record{grid-column:1;grid-row:1;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface);z-index:2}
.cl-record-heading{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;border-bottom:1px solid var(--line)}
.cl-record-heading h3{font-size:14px;font-weight:500}
.cl-record-heading>span{font-size:10px;letter-spacing:.1em;text-transform:uppercase;padding:2px 9px;border-radius:4px;background:var(--control);color:var(--muted)}
.cl-record-row{display:flex;align-items:center;gap:14px;padding:0 18px;min-height:56px;border-bottom:1px solid rgb(8 51 51 / 7%);background:rgb(218 182 151 / 26%)}
.cl-record-row:last-child{border-bottom:0}
.cl-record-row dt{width:86px;flex-shrink:0;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.cl-record-row dd{flex:1;font-size:14px;font-weight:500;line-height:1.35;padding-bottom:3px;box-shadow:inset 0 -1px rgb(8 51 51 / 45%)}
.cl-codes{grid-column:3;grid-row:1;position:relative;list-style:none;padding:0;perspective:1300px;perspective-origin:20% 50%;min-height:330px;z-index:2}
.cl-code{position:absolute;left:0;top:calc(var(--cl-order,0)*64px);width:100%;padding:10px 16px 12px;border:1px solid rgb(8 51 51 / 12%);border-radius:10px;background:var(--canvas);transform:rotateY(-7deg)}
.cl-code:nth-child(2){--cl-order:1}.cl-code:nth-child(3){--cl-order:2}.cl-code:nth-child(4){--cl-order:3}.cl-code:nth-child(5){--cl-order:4}
.cl-code.is-leading{background:var(--section);border-color:rgb(8 51 51 / 22%);box-shadow:0 16px 40px rgb(8 51 51 / 12%)}
.cl-code-line{display:flex;align-items:center;gap:14px;font-size:13.5px;line-height:1.3}
.cl-rank{width:26px;flex-shrink:0;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.code-ladder code{font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace;font-size:13px;letter-spacing:.04em;padding:4px 9px;border-radius:5px;background:rgb(8 51 51 / 7%);white-space:nowrap;font-weight:400}
.cl-code.is-leading code,.cl-pick code{background:var(--ink);color:var(--cream)}
.cl-score{margin:9px 0 0 40px;height:3px;border-radius:2px;background:rgb(8 51 51 / 9%);overflow:hidden}
.cl-score>span{display:block;height:100%;width:100%;transform-origin:left;transform:scaleX(.5);background:var(--ink)}
.cl-wires{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;overflow:visible}
.cl-gauge{grid-column:1;grid-row:2;align-self:start}
.cl-gauge>p{font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);margin-bottom:22px}
.cl-gauge-track{position:relative;height:2px;background:var(--line)}
.cl-gauge-track>span{display:block;height:2px;width:100%;transform:scaleX(var(--cl-gauge,.567));transform-origin:left;background:var(--ink)}
.cl-gauge-track>i{position:absolute;top:-6px;left:calc(var(--cl-gauge,.567)*100% - 7px);width:14px;height:14px;border-radius:50%;background:var(--ink);box-shadow:0 0 0 5px rgb(8 51 51 / 10%)}
.cl-gauge-labels{display:flex;justify-content:space-between;margin-top:10px;font-size:11.5px;color:var(--muted)}
.cl-gauge-labels strong{font-weight:500;color:var(--ink)}
.cl-pick{grid-column:3;grid-row:2;border:1px solid rgb(8 51 51 / 18%);border-radius:12px;background:var(--section);padding:16px 18px;font-size:14px}
.cl-pick>div{display:flex;align-items:center;gap:12px;line-height:1.4;margin-bottom:10px}
.cl-pick p{font-size:13px;line-height:1.5;color:var(--muted)}
.cl-pick p span{color:#98501a}

.cl-footer{grid-column:3;grid-row:3;display:flex;align-items:center;justify-content:flex-end;gap:12px;font-size:13px;color:var(--muted);align-self:start}
.cl-footer a{border-left:1px solid var(--line);padding-left:12px;text-decoration:underline;text-underline-offset:3px;color:var(--ink);font-weight:500;min-height:44px;display:flex;align-items:center}

@media(min-width:1100px) and (min-height:760px){.cl-stage.is-pinned{min-height:calc(100svh - 85px);display:flex;flex-direction:column;justify-content:space-between}.cl-stage.is-pinned>.cl-container{flex:1}}
@media(min-width:1100px) and (max-height:950px){.cl-stage{padding-top:24px}.cl-stage .eyebrow{margin-bottom:14px}.cl-intro{padding-bottom:24px}.cl-intro h2{font-size:40px}.cl-workspace{margin-top:28px;row-gap:18px;padding-bottom:24px}.cl-record-row{min-height:50px}.cl-codes{min-height:300px}.cl-code{top:calc(var(--cl-order,0)*59px);padding-top:8px;padding-bottom:10px}.cl-pick{padding:12px 16px}}
@media(max-width:1099px){.cl-container{width:calc(100% - 64px)}.cl-intro{grid-template-columns:1fr 1fr;gap:32px}.cl-intro h2{font-size:36px}.cl-workspace{grid-template-columns:44% 8% 48%}.cl-code-line{gap:8px;font-size:12px}.cl-rank{width:14px}.cl-code{transform:none;padding-inline:10px}.cl-score{margin-left:22px}.cl-record-row{padding-inline:12px;gap:10px}.cl-record-row dt{width:72px;font-size:9px}.cl-record-row dd{font-size:13px}.cl-footer{flex-wrap:wrap;gap:0 12px}.cl-footer a{border-left:0;padding-left:0}}
@media(max-width:700px){.cl-stage{padding-top:48px}.cl-container{width:calc(100% - 40px)}.cl-intro{grid-template-columns:1fr;gap:24px;padding-bottom:28px}.cl-intro h2{font-size:clamp(29px,7.6vw,40px)}.cl-intro>p{font-size:16px}.cl-workspace{display:flex;flex-direction:column;gap:24px;margin-top:28px;padding-bottom:32px}.cl-record{order:0}.cl-record-row{min-height:60px;padding-inline:16px;gap:12px}.cl-record-row dt{width:82px;font-size:9px}.cl-record-row dd{font-size:14px}.cl-gauge{order:1;width:100%;margin-block:4px 12px}.cl-codes{order:2;min-height:0;display:flex;flex-direction:column;gap:8px;perspective:none}.cl-code{position:relative;top:auto!important;transform:none!important;padding:13px 12px}.cl-code-line{font-size:13px;gap:10px}.cl-code-line code{font-size:12px}.cl-code-line>span:last-child{flex:1}.cl-code.is-leading{box-shadow:0 8px 24px rgb(8 51 51 / 8%)}.cl-pick{order:3}.cl-footer{order:5;justify-content:flex-start;font-size:13px}.cl-wires{display:none}}

@media(min-width:1100px) and (max-height:950px){.cl-intro{padding-bottom:16px}.cl-workspace{margin-top:20px;row-gap:14px;padding-bottom:16px}}

/* ===== Clinical decision support: one answer, assembled on scroll =====
   Without JavaScript, with reduced motion, or below the desktop size, the finished
   answer shows. .is-live (added by motion.js) hides each part until its step. */
.ev-section{background:var(--canvas);border-top:1px solid var(--line)}
.ev-stage{padding-block:clamp(72px,8vw,112px);background:var(--canvas)}
.ev-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:40px}
.ev-copy{display:flex;flex-direction:column}
.ev-copy .section-heading{font-size:clamp(2.1rem,1.3rem + 2.2vw,2.9rem)}
.ev-copy .lead{margin-top:18px;max-width:36ch}
.ev-chapters{list-style:none;margin:36px 0 0;padding:0;display:grid;gap:20px}
.ev-chapter{display:grid;grid-template-columns:2px minmax(0,1fr);gap:20px}
.ev-track{position:relative;display:block;width:2px;border-radius:2px;background:rgb(8 51 51 / 12%);overflow:hidden}
.ev-track>span{position:absolute;inset:0;background:var(--ink);transform-origin:top;transform:scaleY(var(--ev-fill,1))}
.ev-chapter h3{display:flex;align-items:baseline;gap:12px;font-size:1.1875rem;font-weight:500;letter-spacing:-.01em;line-height:1.3}
.ev-chapter-button{display:flex;align-items:baseline;gap:12px;width:100%;min-height:44px;padding:8px 0;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:left;appearance:none;-webkit-appearance:none;opacity:1}
.ev-chapter-button:disabled{cursor:default;opacity:1}
.ev-chapter-button:focus-visible{outline-color:var(--ink)}
.ev-num,.ev-mono,.ev-domain,.ev-time,.ev-cite,.ev-card-num,.ev-count,.ev-fav{font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace}
.ev-num{font-size:.6875rem;font-weight:400;color:var(--muted)}
.ev-chapter-body{margin-top:8px}
.ev-sub{font-size:.9375rem;font-weight:500}
.ev-chapter-body p+p{margin-top:6px;font-size:.875rem;line-height:1.55;color:var(--muted)}
.ev-hint{display:none}
.ev-field{position:relative;border-radius:24px;overflow:hidden;background:var(--control);padding:72px 16px 64px}
.ev-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.85;pointer-events:none}
.ev-views{position:absolute;top:14px;right:16px;z-index:2;background:rgb(250 246 242 / 90%)}
.ev-window{position:relative;z-index:1;border-radius:14px;background:var(--surface);box-shadow:0 40px 80px -36px rgb(8 51 51 / 45%),0 0 0 1px rgb(8 51 51 / 8%)}
.ev-bar{height:44px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 16px;border-bottom:1px solid #e6ded2;font-size:.75rem;color:rgb(8 51 51 / 72%)}
.ev-bar .brand-logo{width:78px}
.ev-bar-label{position:relative;display:block;width:170px;height:16px;text-align:center}
.ev-lab{position:absolute;inset:0;white-space:nowrap;transition:opacity .4s}
.ev-lab1,.ev-section.ch1 .ev-lab0{opacity:0}
.ev-section.ch1 .ev-lab1{opacity:1}
.ev-body{position:relative}
.ev-thread{padding:16px 18px}
.ev-toolbar{display:none}
.ev-full .ev-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:10px;height:32px;margin-bottom:12px}
.ev-link-patient{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:8px;border:1px solid #e0d9cc;background:var(--surface);font-size:.75rem;font-weight:500;box-shadow:0 1px 2px rgb(8 51 51 / 6%)}
.ev-link-patient .icon{width:14px;height:14px}
.ev-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--control);font-size:.6875rem;font-weight:500}
.ev-question{display:flex;flex-direction:column;margin-left:auto;max-width:min(380px,88%);padding:10px 14px;border-radius:14px;background:#e9e1d6;font-size:.84375rem;line-height:1.45}
.ev-time{align-self:flex-end;margin-top:2px;font-size:.625rem;color:rgb(8 51 51 / 55%)}
.ev-sources{margin-top:14px}
.ev-pill{height:40px;display:flex;align-items:center;gap:10px;padding:0 14px;border:1px solid #d9d2c6;border-radius:12px;background:var(--surface);font-size:.8125rem}
.ev-spin{width:24px;height:21px;flex:none;color:var(--ink)}
.ev-pill-a{display:none}
.ev-pill-end{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:.75rem;color:rgb(8 51 51 / 55%)}
.ev-pill-end .icon{width:14px;height:14px}
.ev-srclist{list-style:none;margin:0;padding:0;max-height:0;opacity:0;overflow:hidden;border:1px solid #e0d9cc;border-radius:10px;background:var(--surface)}
.ev-srow{display:flex;align-items:center;gap:10px;height:30px;padding:0 12px;border-bottom:1px solid #ede6db;font-size:.78125rem}
.ev-srow:last-child{border-bottom:0}
.ev-srow-title{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev-domain,.ev-mono{font-size:.6875rem}
.ev-fav{flex:none;display:grid;place-items:center;width:15px;height:15px;border-radius:3px;font-size:6.5px;line-height:1;color:#fff}
.ev-fav-mdpi{width:21px;background:#2f2f2f}
.ev-fav-fr{background:linear-gradient(135deg,#e7792b 0 50%,#3a9e5c 50%)}
.ev-fav-pm{border-radius:50%;background:#4a5560}
.ev-fav-sn{background:#10466b}
.ev-skel{display:none}
.ev-answer{margin-top:12px;border:1px solid #e0d9cc;border-radius:14px;background:var(--surface)}
.ev-answer-head{height:42px;display:flex;align-items:center;gap:10px;padding:0 16px;border-bottom:1px solid #e6ded2;font-size:.875rem;font-weight:500}
.ev-answer-head .icon{width:17px;height:17px}
.ev-copybtn{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:.75rem;font-weight:400;color:rgb(8 51 51 / 62%)}
.ev-copybtn .icon{width:14px;height:14px}
.ev-table{padding:0 16px}
.ev-tr{display:grid;grid-template-columns:minmax(0,1fr) 84px 78px 28px;align-items:center;gap:8px;min-height:34px;padding:5px 0;border-bottom:1px solid #ede6db;font-size:.8125rem;line-height:1.3}
.ev-th{min-height:28px;font-size:.71875rem;color:rgb(8 51 51 / 62%);border-bottom-color:#e6ded2}
.ev-tr:last-child{border-bottom:0}
.ev-dx,.ev-urgent{font-weight:500}
.ev-dr.r1,.ev-dr.r2{margin-inline:-16px;padding-inline:16px;background-color:rgb(218 182 151 / 28%)}
.ev-cite-cell{position:relative;justify-self:end;display:flex}
.ev-cite{display:grid;place-items:center;width:24px;height:20px;border-radius:6px;background:var(--ink);color:var(--cream);font-size:.65625rem}
.ev-card{display:none}
.ev-refs{margin:0 12px 12px;border:1px solid #e0d9cc;border-radius:10px}
.ev-refs-head{display:flex;align-items:center;justify-content:space-between;height:38px;padding:0 14px;font-size:.8125rem}
.ev-refs-head>span+span{display:flex;align-items:center;gap:6px;font-size:.75rem;color:rgb(8 51 51 / 72%)}
.ev-chev{width:14px;height:14px;transform:rotate(180deg);transition:transform .5s}
.ev-refs-list{list-style:none;margin:0;padding:0 14px 8px;counter-reset:ev-ref}
.ev-refs-list li{counter-increment:ev-ref;display:grid;grid-template-columns:18px minmax(0,1fr);padding:4px 0;font-size:.75rem;line-height:1.35}
.ev-refs-list li::before{content:counter(ev-ref) ".";font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace;color:rgb(8 51 51 / 55%)}
.ev-ref-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev-ref-meta{grid-column:2;display:flex;align-items:center;gap:6px;margin-top:2px;font-size:.65625rem;color:rgb(8 51 51 / 64%)}
.ev-tag{padding:0 5px;border-radius:4px;background:var(--control)}
.ev-composer{display:none}
.ev-full .ev-composer{display:block;padding:0 14px 12px}
.ev-compose-box{height:70px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;padding:10px 12px;border:1px solid #e0d9cc;border-radius:14px;background:var(--surface);box-shadow:0 8px 20px -14px rgb(8 51 51 / 35%);font-size:.8125rem;color:rgb(8 51 51 / 55%)}
.ev-compose-row{display:flex;align-items:center;gap:8px;color:var(--ink)}
.ev-sq{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:var(--control)}
.ev-sq .icon,.ev-transcribe .icon{width:14px;height:14px}
.ev-mic{margin-left:auto}
.ev-transcribe{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:999px;background:#e6ded2;font-size:.75rem}
.ev-transcribe .icon{color:#3d7a55}
.ev-compose-foot{display:flex;align-items:center;gap:12px;margin-top:6px;padding:0 8px;font-size:.71875rem;color:rgb(8 51 51 / 72%)}
.ev-compose-foot span:first-child{display:flex;align-items:center;gap:5px}
.ev-compose-foot .icon{width:13px;height:13px}
.ev-ai-note{margin-left:auto;color:rgb(8 51 51 / 62%)}
.ev-caption{position:absolute;left:14px;bottom:14px;z-index:1;display:flex;align-items:center;gap:8px;max-width:calc(100% - 28px);padding:5px 12px;border-radius:999px;background:rgb(250 246 242 / 88%);font-size:.71875rem;color:rgb(8 51 51 / 82%)}
.ev-caption .icon{width:14px;height:14px;flex:none}
@media(max-width:640px){.ev-field{padding:68px 10px 64px;border-radius:18px}.ev-thread{padding:14px 12px}.ev-tr{grid-template-columns:minmax(0,1fr) 68px 62px 26px;gap:6px;font-size:.75rem}.ev-th{font-size:.6875rem}.ev-bar-label{width:auto;min-width:0}.ev-lab{position:static}.ev-lab1{display:none}.ev-section.ch1 .ev-lab0{display:none}.ev-section.ch1 .ev-lab1{display:inline}.ev-ai-note{display:none}.ev-caption{font-size:.6875rem}}
@media(max-width:480px){
  .ev-th{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .ev-tr{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;padding:7px 0}
  .ev-tr>[role=cell]:first-child{flex:1 1 calc(100% - 40px)}
  .ev-tr>[role=cell]:last-child{order:1}
  .ev-tr>[role=cell]:nth-child(2),.ev-tr>[role=cell]:nth-child(3){order:2;font-size:.6875rem;color:var(--muted)}
  .ev-tr>[role=cell]:nth-child(2)::before{content:"Likelihood: "}
  .ev-tr>[role=cell]:nth-child(3)::before{content:"Urgency: ";font-weight:400}
  .ev-pill-end,.ev-copybtn{font-size:0;gap:0}
  .ev-refs-head>span+span{font-size:.6875rem;white-space:nowrap}
}
@media(min-width:1100px){
  .ev-grid{grid-template-columns:minmax(0,330px) minmax(0,1fr);gap:48px;align-items:stretch}
  .ev-field{height:720px;padding:0}
  .ev-window{position:absolute;left:24px;right:24px;top:64px;bottom:56px;display:flex;flex-direction:column}
  .ev-body{flex:1;min-height:0;clip-path:inset(0 -320px 0 0)}
  .ev-thread{position:absolute;left:0;right:0;top:0;transition:transform .6s var(--easing)}
  .ev-full .ev-composer{position:absolute;left:0;right:0;bottom:0;padding-top:16px;border-radius:0 0 14px 14px;background:linear-gradient(to top,var(--surface) 78%,rgb(250 246 242 / 0%))}
  .ev-caption{left:24px;bottom:16px}
}
@media(min-width:1280px){
  .ev-grid{grid-template-columns:minmax(0,350px) minmax(0,1fr);gap:56px}
  .ev-window{right:272px}
  .ev-card{position:absolute;left:calc(100% + 59px);top:-46px;z-index:2;display:flex;flex-direction:column;justify-content:space-between;width:220px;height:112px;box-sizing:border-box;padding:12px 14px;border-radius:14px;background:var(--surface);box-shadow:0 24px 48px -28px rgb(8 51 51 / 50%),0 0 0 1px rgb(8 51 51 / 10%);text-align:left;font-weight:400}
  .ev-card.card2{top:49px}
  .ev-conn{position:absolute;left:-59px;top:0;width:59px;height:110px;overflow:visible}
  .card2 .ev-conn{top:-45px}
  .ev-conn path{fill:none;stroke:var(--ink);stroke-width:1.4;stroke-dasharray:130;stroke-dashoffset:0;transition:stroke-dashoffset .9s .15s var(--easing)}
  .ev-card-meta{display:flex;align-items:center;gap:6px;font-size:.6875rem;color:rgb(8 51 51 / 66%)}
  .ev-card-num{display:grid;place-items:center;width:20px;height:18px;border-radius:5px;background:var(--ink);color:var(--cream);font-size:.625rem}
  .ev-card-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:.78125rem;line-height:1.35;font-weight:500;color:var(--ink)}
  .ev-card-foot{font-size:.6875rem;color:rgb(8 51 51 / 66%)}
}
.ev-section.is-live .ev-stage{height:calc(100svh - var(--ev-hdr,85px));box-sizing:border-box;padding-block:24px}
.ev-section.is-live .ev-grid{height:100%}
.ev-section.is-live .ev-field{height:100%}
.ev-section.is-live .ev-copy .section-heading{font-size:clamp(2rem,1rem + 2vw,2.75rem)}
.ev-section.is-live .ev-chapter{cursor:pointer}
.ev-section.is-live .ev-chapter[data-ev-chapter="0"]{--ev-fill:var(--ev-c0,0)}
.ev-section.is-live .ev-chapter[data-ev-chapter="1"]{--ev-fill:var(--ev-c1,0)}
.ev-section.is-live .ev-chapter-button{cursor:pointer}
.ev-section.is-live .ev-chapter h3{color:var(--muted);transition:color .4s}
.ev-section.is-live .ev-chapter:hover h3,.ev-section.is-live.ch0 [data-ev-chapter="0"] h3,.ev-section.is-live.ch1 [data-ev-chapter="1"] h3{color:var(--ink)}
.ev-section.is-live .ev-chapter-body{max-height:0;opacity:0;overflow:hidden;transition:max-height .6s var(--easing),opacity .5s}
.ev-section.is-live.ch0 [data-ev-chapter="0"] .ev-chapter-body,.ev-section.is-live.ch1 [data-ev-chapter="1"] .ev-chapter-body{max-height:160px;opacity:1}
.ev-section.is-live .ev-hint{display:flex;align-items:center;gap:12px;margin-top:auto;padding-top:24px;font-size:.8125rem;color:var(--muted)}
.ev-section.is-live .ev-hint .icon{width:16px;height:16px;animation:ev-nudge 1.8s ease-in-out infinite}
.ev-count{margin-left:auto;font-size:.75rem;color:var(--ink)}
.ev-section.is-live .ev-skel{display:flex;flex-direction:column;gap:12px;margin-top:18px}
.ev-section.is-live .ev-skel span{display:block;height:10px;border-radius:6px;background:linear-gradient(90deg,#ede5da 0%,#f6f0e9 40%,#ede5da 80%);background-size:300% 100%;animation:ev-shimmer 1.8s linear infinite}
.ev-section.is-live .ev-skel span:nth-child(1){width:72%}
.ev-section.is-live .ev-skel span:nth-child(2){width:88%}
.ev-section.is-live .ev-skel span:nth-child(3){width:54%}
.ev-section.is-live.s1 .ev-skel{display:none}
.ev-section.is-live .ev-sources{opacity:0;transform:translateY(8px);transition:opacity .5s,transform .5s var(--easing)}
.ev-section.is-live.s1 .ev-sources{opacity:1;transform:none}
.ev-section.is-live .ev-pill-a{display:inline}
.ev-section.is-live .ev-pill-b,.ev-section.is-live.s2 .ev-pill-a{display:none}
.ev-section.is-live.s2 .ev-pill-b{display:inline}
/* Match the product loader's three-second outline path and 1.1-second pulse. */
.ev-section.is-live:not(.s2) .ev-loading-outline{animation:ev-loading-outline 3s cubic-bezier(.42,0,.58,1) infinite}
.ev-section.is-live:not(.s2) .ev-loading-fill{animation:ev-loading-pulse 1.1s ease infinite}
.ev-section.is-live .ev-srclist{transition:max-height .7s var(--easing),opacity .5s,margin .5s}
.ev-section.is-live.s1 .ev-srclist{max-height:200px;opacity:1;margin-top:6px}
.ev-section.is-live.s2 .ev-srclist{max-height:0;opacity:0;margin-top:0}
.ev-section.is-live .ev-srow{opacity:0;transform:translateY(6px);transition:opacity .45s,transform .45s;transition-delay:calc(var(--i) * 110ms)}
.ev-section.is-live.s1 .ev-srow{opacity:1;transform:none}
.ev-section.is-live .ev-answer{opacity:0;transform:translateY(16px);transition:opacity .6s var(--easing),transform .6s var(--easing)}
.ev-section.is-live:not(.s2) .ev-answer{position:absolute;left:18px;right:18px;visibility:hidden}
.ev-section.is-live.s2 .ev-answer{opacity:1;transform:none}
.ev-section.is-live .ev-dr{opacity:0;transform:translateX(-8px);transition:opacity .5s,transform .5s,background-color .5s;transition-delay:calc(var(--i) * 150ms)}
.ev-section.is-live .ev-dr.r1,.ev-section.is-live .ev-dr.r2{background-color:rgb(218 182 151 / 0%)}
.ev-section.is-live.s2 .ev-dr.a,.ev-section.is-live.s3 .ev-dr.b{opacity:1;transform:none}
.ev-section.is-live.s4 .ev-dr.r1,.ev-section.is-live.s5 .ev-dr.r2{background-color:rgb(218 182 151 / 30%);transition-delay:0ms}
.ev-section.is-live .ev-cite{opacity:0;transform:scale(.4);transition:opacity .4s .2s,transform .5s .2s cubic-bezier(.34,1.56,.64,1)}
.ev-section.is-live.s4 .c1,.ev-section.is-live.s5 .c2{opacity:1;transform:none}
.ev-section.is-live .ev-card{opacity:0;transform:translateX(-12px);transition:opacity .6s .25s var(--easing),transform .6s .25s var(--easing)}
.ev-section.is-live.s4 .card1,.ev-section.is-live.s5 .card2{opacity:1;transform:none}
.ev-section.is-live .ev-conn path{stroke-dashoffset:130}
.ev-section.is-live.s4 .card1 .ev-conn path,.ev-section.is-live.s5 .card2 .ev-conn path{stroke-dashoffset:0}
.ev-section.is-live .ev-refs-list{max-height:0;opacity:0;overflow:hidden;padding-bottom:0;transition:max-height .7s var(--easing),opacity .5s,padding .5s}
.ev-section.is-live.s5 .ev-refs-list{max-height:120px;opacity:1;padding-bottom:8px}
.ev-section.is-live .ev-chev{transform:none}
.ev-section.is-live.s5 .ev-chev{transform:rotate(180deg)}
@keyframes ev-loading-outline{0%,100%{transform:translate(0,0)}33.333333%{transform:translate(-12px,15px)}66.666667%{transform:translate(0,15px)}}
@keyframes ev-loading-pulse{0%,100%{opacity:.9}50%{opacity:1}}
@keyframes ev-shimmer{from{background-position:100% 0}to{background-position:-200% 0}}
@keyframes ev-nudge{0%,100%{transform:translateY(0)}50%{transform:translateY(4px)}}

/* ===== Less repetitive work: three short demos =====
   The finished state is the default. .is-looping plays the steps while the section is on screen. */
.ld-section{background:var(--canvas)}
.ld-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px 40px;flex-wrap:wrap}
.ld-tools{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.ld-legend{display:flex;gap:18px;font-size:.875rem;color:var(--muted)}
.ld-legend span{display:flex;align-items:center;gap:8px}
.ld-mark{width:16px;height:16px;color:var(--ink)}
.ld-arrow{width:16px;height:16px}
.ld-arrow path,.ld-cursor path{fill:var(--sand);stroke:var(--ink);stroke-width:1.4;stroke-linejoin:round}
.ld-pause{display:none;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid rgb(8 51 51 / 22%);font-size:.8125rem;font-weight:500;transition:background .2s}
.ld-pause:hover{background:var(--control)}
.ld-section.is-looping .ld-pause{display:inline-flex}
.ld-pause .icon{width:14px;height:14px}
.ld-i-play,.ld-section.is-paused .ld-i-pause{display:none}
.ld-section.is-paused .ld-i-play{display:block}
.ld-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:48px}
.ld-card{display:flex;flex-direction:column;border-radius:20px;background:var(--card);border:1px solid rgb(8 51 51 / 10%);overflow:hidden;transition:transform .5s var(--easing),box-shadow .5s}
.ld-card:hover{transform:translateY(-4px);box-shadow:0 34px 60px -40px rgb(8 51 51 / 50%)}
.ld-demo{position:relative;height:420px;margin:12px;border-radius:14px;background:var(--control);overflow:hidden;padding:18px;font-size:.78125rem;line-height:1.42}
.ld-text{display:flex;flex-direction:column;gap:10px;padding:12px 28px 28px}
.ld-num,.ld-who,.ld-chip,.ld-fav{font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace}
.ld-num{font-size:.71875rem;color:var(--muted)}
.ld-text h3{font-size:1.375rem;line-height:1.2;font-weight:500;letter-spacing:-.015em}
.ld-text p{font-size:.9375rem;line-height:1.55;color:var(--muted)}
.ld-footnote{margin-top:20px;font-size:.8125rem;color:var(--muted)}
.ld-chat,.ld-d2{display:flex;flex-direction:column;gap:8px}
.ld-chat{opacity:.5}
.ld-section.is-looping .ld-chat{opacity:1}
.ld-d2{gap:10px}
.ld-bubble{align-self:flex-start;max-width:80%;padding:8px 12px;border-radius:12px 12px 12px 4px;background:var(--surface)}
.ld-them{align-self:flex-end;max-width:84%;border-radius:12px 12px 4px 12px;background:#e3dacd}
.ld-who{display:block;margin-bottom:2px;font-size:.59375rem;letter-spacing:.08em;text-transform:uppercase;color:rgb(8 51 51 / 62%)}
.ld-note{position:absolute;left:12px;right:12px;bottom:12px;height:236px;display:flex;flex-direction:column;border-radius:12px;background:var(--surface);border:1px solid #e0d9cc;box-shadow:0 -18px 40px -24px rgb(8 51 51 / 45%)}
.ld-note-head{height:36px;flex:none;display:flex;align-items:center;gap:8px;padding:0 12px;border-bottom:1px solid #e6ded2;font-size:.8125rem;font-weight:500}
.ld-note-head .icon{width:14px;height:14px}
.ld-note-head span{margin-left:auto;font-size:.6875rem;font-weight:400;color:rgb(8 51 51 / 62%)}
.ld-banner{height:28px;flex:none;display:flex;align-items:center;gap:6px;padding:0 12px;background:#fdf5d8;border-bottom:1px solid #f1e3b0;font-size:.71875rem;color:#7a4f10}
.ld-banner .icon{width:12px;height:12px}
.ld-note-body{display:flex;flex-direction:column;gap:6px;padding:10px 12px;font-size:.75rem;line-height:1.4}
.ld-label{color:rgb(8 51 51 / 64%)}
.ld-li{position:relative;padding-left:12px}
.ld-li::before{content:"•";position:absolute;left:0}
.ld-chips{display:flex;flex-wrap:wrap;gap:6px;padding-left:12px}
.ld-field{position:relative;display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:5px;border:1px dashed #e0a63a;background:#fdf7e6;color:#8a5a12;font-size:.6875rem}
.ld-field-edit{border-style:solid;border-color:var(--ink);background:#e3ece8;color:var(--ink);transition:background-color .4s,border-color .4s,color .4s}
.ld-caret{display:inline-block;width:1px;height:12px;margin-left:1px;background:var(--ink);vertical-align:-1px;animation:ld-blink 1s steps(1) infinite}
.ld-swap-a{display:none}
.ld-swap-b{display:inline-flex;align-items:center;gap:5px}
.ld-pill{height:34px;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #d9d2c6;border-radius:10px;background:var(--surface)}
.ld-spin{width:15px;height:15px;color:var(--ink)}
.ld-spin-a{display:none}
.ld-pill-end{margin-left:auto;font-size:.6875rem;color:rgb(8 51 51 / 55%)}
.ld-answer{display:flex;flex-direction:column;gap:8px;padding:4px 2px 0}
.ld-answer strong{font-weight:500}
.ld-source{position:relative;display:flex;align-items:center;gap:6px;margin-top:6px;padding:4px 8px;border-radius:7px;background:#e6ded2;border:1px solid #d5ccbe;font-size:.65625rem;line-height:1.3}
.ld-fav{flex:none;display:grid;place-items:center;width:14px;height:14px;border-radius:3px;background:#2b5a9b;color:#fff;font-size:6.5px}
.ld-source-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ld-pop{position:absolute;left:0;bottom:calc(100% + 8px);z-index:4;display:flex;flex-direction:column;gap:6px;width:250px;max-width:calc(100vw - 96px);box-sizing:border-box;padding:12px 14px;border-radius:12px;background:var(--surface);border:1px solid #e0d9cc;box-shadow:0 20px 40px -20px rgb(8 51 51 / 50%);font-size:.71875rem;line-height:1.4;transform-origin:20% 100%}
.ld-pop-meta{display:flex;align-items:center;gap:6px;font-size:.65625rem;color:rgb(8 51 51 / 64%)}
.ld-tag{padding:0 5px;border-radius:4px;background:var(--control)}
.ld-pop-title{font-size:.75rem;font-weight:500}
.ld-pop-open{display:flex;align-items:center;gap:4px;font-weight:500}
.ld-pop-open .icon{width:12px;height:12px}
.ld-codes{height:100%;box-sizing:border-box;display:flex;flex-direction:column;border-radius:12px;background:var(--surface);border:1px solid #e0d9cc}
.ld-codes-head{height:40px;flex:none;display:flex;align-items:center;gap:8px;padding:0 12px;border-bottom:1px solid #e6ded2;font-size:.8125rem;font-weight:500}
.ld-codes-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;background:var(--control)}
.ld-codes-icon .icon{width:13px;height:13px}
.ld-search{display:flex;align-items:center;gap:8px;height:30px;margin:10px 12px 0;padding:0 10px;border-radius:7px;border:1px solid #e0d9cc;font-size:.71875rem;color:rgb(8 51 51 / 55%)}
.ld-search .icon{width:12px;height:12px}
.ld-code{display:flex;flex-direction:column;gap:8px;margin:10px 12px 0;padding:10px 12px;border-radius:9px;border:1px solid #e0d9cc;font-size:.75rem;line-height:1.45}
.ld-code-top{display:flex;align-items:center;gap:8px}
.ld-code-top strong{font-weight:500;font-size:.78125rem}
.ld-chip{padding:2px 7px;border-radius:5px;background:var(--ink);color:var(--cream);font-size:.6875rem;transition:background-color .4s,color .4s}
.ld-system{margin-left:auto;font-size:.65625rem;color:rgb(8 51 51 / 62%)}
.ld-quote{color:rgb(8 51 51 / 82%)}
.ld-hl{background-image:linear-gradient(rgb(218 182 151 / 60%),rgb(218 182 151 / 60%));background-size:100% 100%;background-repeat:no-repeat;transition:background-size 1s cubic-bezier(.65,0,.35,1)}
.ld-uncertain{font-size:.6875rem;color:rgb(8 51 51 / 66%)}
.ld-actions{display:flex;gap:8px;margin-top:2px}
.ld-ok,.ld-change{position:relative;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border-radius:7px;font-size:.71875rem;font-weight:500}
.ld-ok{border:1px solid var(--ink);background:var(--ink);color:var(--cream);transition:background-color .4s,color .4s}
.ld-ok .icon{width:12px;height:12px}
.ld-change{border:1px solid #e0d9cc;color:rgb(8 51 51 / 72%)}
.ld-warn{margin:auto 12px 12px;padding:8px 10px;border-radius:8px;background:#fdf5d8;border:1px solid #f1e3b0;font-size:.65625rem;line-height:1.4;color:#7a4f10}
.ld-cursor{position:absolute;left:58%;top:52%;z-index:5;pointer-events:none;transition:opacity .4s,transform .9s cubic-bezier(.65,0,.35,1)}
.ld-cursor svg{display:block;width:20px;height:20px}
.ld-you{position:absolute;left:18px;top:18px;padding:2px 7px;border-radius:999px;background:var(--ink);color:var(--cream);font-size:.625rem;white-space:nowrap}
.ld-ring{position:absolute;left:-10px;top:-10px;width:20px;height:20px;border-radius:50%;border:2px solid #c49a74;opacity:0}
.ld-section.is-looping .ld-el{opacity:0;transform:translateY(8px);transition:opacity .55s var(--easing),transform .55s var(--easing)}
.ld-section.is-looping .ld-card.k1 .ld-a1,.ld-section.is-looping .ld-card.k2 .ld-a2,.ld-section.is-looping .ld-card.k3 .ld-a3,.ld-section.is-looping .ld-card.k4 .ld-a4,.ld-section.is-looping .ld-card.k5 .ld-a5,.ld-section.is-looping .ld-card.k6 .ld-a6,.ld-section.is-looping .ld-card.k7 .ld-a7{opacity:1;transform:none}
.ld-section.is-looping .ld-note{transform:translateY(112%);transition:transform .8s var(--easing)}
.ld-section.is-looping .ld-card.k4 .ld-note{transform:none}
.ld-section.is-looping .ld-chat{transition:opacity .6s}
.ld-section.is-looping .ld-card.k4 .ld-chat{opacity:.5}
.ld-section.is-looping .ld-swap-a{display:inline}
.ld-section.is-looping .ld-swap-b,.ld-section.is-looping .ld-card.k9 .ld-swap-a{display:none}
.ld-section.is-looping .ld-card.k9 .ld-swap-b{display:inline-flex}
.ld-section.is-looping .ld-field-edit{border-style:dashed;border-color:#e0a63a;background:#fdf7e6;color:#8a5a12}
.ld-section.is-looping .ld-card.k9 .ld-field-edit{border-style:solid;border-color:var(--ink);background:#e3ece8;color:var(--ink)}
.ld-section.is-looping .ld-spin-a{display:inline}
.ld-section.is-looping .ld-spin-b,.ld-section.is-looping .ld-card.k3 .ld-spin-a{display:none}
.ld-section.is-looping .ld-card.k3 .ld-spin-b{display:inline}
.ld-section.is-looping .ld-spin{animation:ld-spin 1.3s linear infinite}
.ld-section.is-looping .ld-card.k3 .ld-spin{animation:none}
.ld-section.is-looping .ld-pop{opacity:0;transform:translateY(6px) scale(.96);transition:opacity .4s,transform .45s cubic-bezier(.34,1.56,.64,1)}
.ld-section.is-looping .ld-card.k9 .ld-pop{opacity:1;transform:none}
.ld-section.is-looping .ld-hl{background-size:0% 100%}
.ld-section.is-looping .ld-card.k4 .ld-hl1,.ld-section.is-looping .ld-card.k6 .ld-hl2{background-size:100% 100%}
.ld-section.is-looping .ld-ok{background:var(--surface);color:var(--ink)}
.ld-section.is-looping .ld-card.k9 .ld-ok{background:var(--ink);color:var(--cream)}
.ld-section.is-looping .ld-chip{background:#d9e2df;color:var(--ink)}
.ld-section.is-looping .ld-card.k9 .ld-chip{background:var(--ink);color:var(--cream)}
.ld-section.is-looping .ld-cursor{opacity:0;transform:translate(80px,90px)}
.ld-section.is-looping .ld-card.k7 .ld-cursor{opacity:1}
.ld-section.is-looping .ld-card.k8 .ld-cursor{transform:none}
.ld-section.is-looping .ld-card.k12 .ld-cursor{opacity:0}
.ld-section.is-looping .ld-card.k9 .ld-ring{animation:ld-ring .7s ease-out}
@keyframes ld-spin{to{transform:rotate(360deg)}}
@keyframes ld-ring{0%{opacity:1;transform:scale(.4)}100%{opacity:0;transform:scale(2)}}
@keyframes ld-blink{50%{opacity:0}}
@media(max-width:1099px){.ld-grid{grid-template-columns:minmax(0,1fr)}}
@media(min-width:760px) and (max-width:1099px){.ld-card{flex-direction:row;align-items:stretch}.ld-demo{flex:0 0 58%;box-sizing:border-box}.ld-text{justify-content:center;padding:28px 32px}}
@media(max-width:640px){.ld-tools{gap:14px}.ld-legend{gap:14px;font-size:.8125rem}.ld-demo{margin:10px;padding:14px}.ld-text{padding:10px 20px 24px}}

/* ===== Check the sources: layers of control =====
   Rings are drawn and tags move only while the pinned section scrolls. Otherwise every layer shows. */
.hx-section{background:var(--canvas)}
.hx-stage{padding-block:clamp(80px,8vw,128px);background:var(--canvas)}
.hx-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:48px;align-items:center}
.hx-copy{display:flex;flex-direction:column}
.hx-copy .section-heading{font-size:clamp(2rem,1rem + 2.7vw,3.1rem)}
.hx-copy .lead{margin-top:20px;max-width:36ch}
.hx-points{list-style:none;margin:36px 0 0;padding:0;display:grid;gap:22px}
.hx-point{display:grid;grid-template-columns:34px minmax(0,1fr);gap:4px}
.hx-num{padding-top:5px;font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace;font-size:.6875rem}
.hx-point h3{font-size:1.1875rem;font-weight:500;letter-spacing:-.01em;line-height:1.3}
.hx-point p{margin-top:6px;font-size:.9375rem;line-height:1.55;color:var(--muted)}
.hx-point .text-link{margin-top:2px}
.hx-hint{display:none}
.hx-visual{position:relative;width:100%;max-width:640px;aspect-ratio:1;margin-inline:auto}
.hx-board{position:absolute;left:0;top:0;width:640px;height:640px;transform-origin:0 0;transform:scale(var(--hx-s,1))}
.hx-svg{position:absolute;inset:0;overflow:visible}
.hx-fill1{fill:#ebe0d1;opacity:calc(var(--hx-d1,1) * .9)}
.hx-fill2{fill:#f1e8dc;opacity:calc(var(--hx-d2,1) * .9)}
.hx-fill3{fill:#f6eee4;opacity:calc(var(--hx-d3,1) * .9)}
.hx-ghost{fill:none;stroke:rgb(8 51 51 / 22%);stroke-width:1px;stroke-dasharray:2px 7px}
.hx-ring{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1000px}
.hx-ring1{stroke:var(--ink);stroke-width:2.2px;stroke-dashoffset:calc(1000px - var(--hx-d1,1) * 1000px)}
.hx-ring2{stroke:var(--ink);stroke-width:1.6px;stroke-dashoffset:calc(1000px - var(--hx-d2,1) * 1000px)}
.hx-ring3{stroke:#c49a74;stroke-width:1.6px;stroke-dashoffset:calc(1000px - var(--hx-d3,1) * 1000px)}
.hx-label{position:absolute;top:312px;font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace;font-size:11px}
.hx-l1{left:146px;opacity:calc(.3 + var(--hx-d1,1) * .7)}
.hx-l2{left:70px;opacity:calc(.3 + var(--hx-d2,1) * .7)}
.hx-l3{left:-6px;color:#8a5f38;opacity:calc(.3 + var(--hx-d3,1) * .7)}
.hx-chip{position:absolute;left:0;top:0;offset-anchor:50% 50%;offset-rotate:0deg;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:5px 11px;border-radius:999px;background:var(--surface);border:1px solid rgb(8 51 51 / 16%);box-shadow:0 10px 20px -14px rgb(8 51 51 / 50%);font-size:12px;line-height:1.3;color:var(--ink)}
.hx-chip i{display:block;width:6px;height:6px;border-radius:50%;background:var(--ink)}
.hx-chip i.hx-sand{background:var(--sand)}
.hx-chip .icon{width:12px;height:12px}
.hx-o1{offset-path:path('M 320.0 190.1 L 374.0 190.1 Q 395.0 190.1 405.5 208.3 L 459.5 301.8 Q 470.0 320.0 459.5 338.2 L 405.5 431.7 Q 395.0 449.9 374.0 449.9 L 266.0 449.9 Q 245.0 449.9 234.5 431.7 L 180.5 338.2 Q 170.0 320.0 180.5 301.8 L 234.5 208.3 Q 245.0 190.1 266.0 190.1 Z');offset-distance:calc(var(--start) + var(--hx-o,0) * 18%);opacity:clamp(0,calc(var(--hx-d1,1) * 5 - 4),1)}
.hx-o2{offset-path:path('M 320.0 125.1 L 401.0 125.1 Q 432.5 125.1 448.2 152.4 L 529.2 292.7 Q 545.0 320.0 529.2 347.3 L 448.2 487.6 Q 432.5 514.9 401.0 514.9 L 239.0 514.9 Q 207.5 514.9 191.8 487.6 L 110.8 347.3 Q 95.0 320.0 110.7 292.7 L 191.7 152.4 Q 207.5 125.1 239.0 125.1 Z');offset-distance:calc(var(--start) + 30% - var(--hx-o,0) * 30%);opacity:clamp(0,calc(var(--hx-d2,1) * 5 - 4),1)}
.hx-o3{offset-path:path('M 320.0 60.2 L 428.0 60.2 Q 470.0 60.2 491.0 96.6 L 599.0 283.6 Q 620.0 320.0 599.0 356.4 L 491.0 543.4 Q 470.0 579.8 428.0 579.8 L 212.0 579.8 Q 170.0 579.8 149.0 543.4 L 41.0 356.4 Q 20.0 320.0 41.0 283.6 L 149.0 96.6 Q 170.0 60.2 212.0 60.2 Z');offset-distance:calc(var(--start) + var(--hx-o,0) * 15%);opacity:clamp(0,calc(var(--hx-d3,1) * 5 - 4),1)}
.hx-core{position:absolute;left:218px;top:262px;width:204px;height:116px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:16px 18px;border-radius:18px;background:var(--surface);border:1px solid rgb(8 51 51 / 14%);box-shadow:0 0 0 8px rgb(218 182 151 / 30%),0 30px 60px -30px rgb(8 51 51 / 50%);transition:box-shadow .8s,transform .8s var(--easing)}
.hx-core-kicker{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.hx-core-kicker .icon{width:14px;height:14px;color:var(--ink)}
.hx-core-text{font-size:17px;line-height:1.3;font-weight:500;letter-spacing:-.01em}
@media(min-width:1100px){.hx-grid{grid-template-columns:minmax(0,440px) minmax(0,1fr);gap:64px}}
@media(max-width:700px){.hx-chip{display:none}.hx-label{top:306px;font-size:20px}.hx-l1{left:128px}.hx-l2{left:52px}.hx-l3{left:-22px}.hx-core{left:185px;top:240px;width:270px;height:160px;padding:22px 24px;gap:12px;border-radius:26px}.hx-core-kicker{font-size:18px}.hx-core-kicker .icon{width:22px;height:22px}.hx-core-text{font-size:30px}}
.hx-section.is-live .hx-stage{height:calc(100svh - var(--hx-hdr,85px));box-sizing:border-box;padding-block:24px;display:flex;align-items:center}
.hx-section.is-live .hx-copy .section-heading{font-size:clamp(2rem,1rem + 2vw,2.75rem)}
.hx-section.is-live .hx-visual{max-width:min(640px,calc(100svh - var(--hx-hdr,85px) - 64px))}
.hx-section.is-live .hx-point{opacity:.4;transition:opacity .5s}
.hx-section.is-live.r1 .hx-p1,.hx-section.is-live.r2 .hx-p2,.hx-section.is-live.r3 .hx-p3{opacity:1}
.hx-section.is-live .hx-hint{display:flex;align-items:center;gap:12px;margin-top:28px;font-size:.8125rem;color:var(--muted);opacity:clamp(0,calc(1 - var(--hx-p,0) * 6),1)}
.hx-section.is-live .hx-hint .icon{width:16px;height:16px}
.hx-section.is-live:not(.r3) .hx-core{box-shadow:0 30px 60px -34px rgb(8 51 51 / 50%)}
.hx-section.is-live.r3 .hx-core{transform:scale(1.04)}
/* Fit the static graphic before, or without, the motion script's measurement. */
.hx-section:not([style*="--hx-s"]) .hx-board{width:100%;height:100%;transform:none}
.hx-section:not([style*="--hx-s"]) .hx-svg{width:100%;height:100%}
.hx-section:not([style*="--hx-s"]) .hx-chip{display:none}
.hx-section:not([style*="--hx-s"]) .hx-label{top:48%;font-size:11px}
.hx-section:not([style*="--hx-s"]) .hx-l1{left:22%}
.hx-section:not([style*="--hx-s"]) .hx-l2{left:10%}
.hx-section:not([style*="--hx-s"]) .hx-l3{left:0}
.hx-section:not([style*="--hx-s"]) .hx-core{left:50%;top:50%;width:44%;height:auto;padding:12px;gap:8px;border-radius:14px;transform:translate(-50%,-50%)}
.hx-section:not([style*="--hx-s"]) .hx-core-kicker{font-size:10px;letter-spacing:.06em}
.hx-section:not([style*="--hx-s"]) .hx-core-kicker .icon{width:12px;height:12px}
.hx-section:not([style*="--hx-s"]) .hx-core-text{font-size:clamp(14px,3.8vw,17px)}
@media(prefers-reduced-motion:reduce){.ev-section *,.ld-section *,.hx-section *{animation:none!important;transition:none!important}}

/* The tilted code cards poke about 1px past the right edge at some widths, which lets the page scroll sideways. */
.code-ladder{overflow-x:clip}
/* Keep the English phrase in the mixed Arabic transcript on one line so it reads in order. */
.m-copy-option[data-copy-language="mixed"] bdi[lang="en"]{display:inline-block}
