.csp-story-modal[hidden] {
  display: none;
}

body.csp-story-modal-open {
  overflow: hidden;
}

.csp-story-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 0.5rem;
}

.csp-story-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.csp-story-modal__dialog {
  position: relative;
  display: flex;
  width: min(1520px, 100%);
  height: calc(100dvh - 1rem);
  max-height: 960px;
  flex-direction: column;
  overflow: hidden;
  color: #f7f7f8;
  background: #09090b;
  border: 1px solid rgba(255, 210, 4, 0.72);
  border-radius: 22px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.72);
}

.csp-story-modal__header {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.7rem 1rem;
  background:
    radial-gradient(circle at 82% 0, rgba(255, 210, 4, 0.1), transparent 35%),
    #0e0e11;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.csp-story-modal__header .eyebrow {
  margin: 0 0 0.15rem;
  color: #ffd204;
  font-size: 0.7rem;
}

.csp-story-modal__header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.08;
}

.csp-story-modal__header p:last-child {
  margin: 0.2rem 0 0;
  color: #b8b8c0;
  font-size: 0.82rem;
}

.csp-story-modal__close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: #fff;
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.csp-story-modal__close:hover,
.csp-story-modal__close:focus-visible {
  color: #ffd204;
  border-color: #ffd204;
  transform: translateY(-1px);
}

.csp-story-modal__close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.csp-story-modal__body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
}

.csp-story-modal .csp-journey {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.csp-story-modal .csp-journey-toolbar {
  gap: 1rem;
  padding: 0.55rem 1rem;
}

.csp-story-modal .csp-journey-toolbar h3 {
  max-width: 900px;
  margin-top: 0.15rem;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
}

.csp-story-modal .csp-journey-kicker {
  font-size: 0.64rem;
}

.csp-story-modal .csp-control-button {
  min-width: 36px;
  min-height: 36px;
  padding: 0.45rem;
  border-radius: 9px;
}

.csp-story-modal .csp-control-button-primary {
  min-width: 132px;
  padding-inline: 0.75rem;
  font-size: 0.82rem;
}

.csp-story-modal .csp-control-button svg {
  width: 17px;
  height: 17px;
}

.csp-story-modal .csp-phase-tabs button {
  min-height: 42px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

.csp-story-modal .csp-phase-tabs button span {
  width: 22px;
  height: 22px;
  font-size: 0.62rem;
}

.csp-story-modal .csp-journey-stage {
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1.55fr) minmax(285px, 0.65fr);
  overflow: hidden;
}

.csp-story-modal .csp-journey-visual {
  min-height: 0;
  padding: 0.65rem;
}

.csp-story-modal .csp-story-image-frame,
.csp-story-modal .csp-story-image-frame img {
  min-height: 0;
  border-radius: 13px;
}

.csp-story-modal .csp-story-image-caption {
  right: 0.85rem;
  bottom: 0.75rem;
  left: 0.85rem;
  gap: 0.15rem;
}

.csp-story-modal .csp-story-image-caption strong {
  font-size: 0.9rem;
}

.csp-story-modal .csp-story-image-caption p {
  font-size: 0.76rem;
  line-height: 1.3;
}

.csp-story-modal .csp-step-detail {
  padding: 0.8rem 1rem;
}

.csp-story-modal .csp-step-detail__logo {
  width: 122px;
  margin-bottom: 0.42rem;
}

.csp-story-modal .csp-step-heading {
  font-size: 0.65rem;
}

.csp-story-modal .csp-step-heading [data-csp-phase-label] {
  padding: 0.25rem 0.45rem;
}

.csp-story-modal .csp-step-detail h3 {
  margin: 0.45rem 0 0.35rem;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
}

.csp-story-modal .csp-step-detail > p {
  font-size: 0.82rem;
  line-height: 1.4;
}

.csp-story-modal .csp-step-detail dl {
  margin-top: 0.65rem;
}

.csp-story-modal .csp-step-detail dl div {
  grid-template-columns: 92px 1fr;
  gap: 0.65rem;
  padding: 0.42rem 0;
}

.csp-story-modal .csp-step-detail dt {
  font-size: 0.65rem;
}

.csp-story-modal .csp-step-detail dd {
  font-size: 0.78rem;
  line-height: 1.25;
}

.csp-story-modal .csp-safeguard {
  gap: 0.45rem;
  margin-top: 0.55rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.75rem;
}

.csp-story-modal .csp-safeguard svg {
  width: 16px;
  height: 16px;
}

.csp-story-modal .csp-step-buttons button {
  min-height: 46px;
  padding: 0.35rem 0.2rem;
}

.csp-story-modal .csp-step-buttons button span {
  margin-bottom: 0.1rem;
  font-size: 0.58rem;
}

.csp-story-modal .csp-step-buttons button strong {
  font-size: 0.62rem;
}

.csp-story-modal .csp-process-principle {
  padding: 0.45rem 1rem 0.55rem;
  font-size: 0.74rem;
  line-height: 1.25;
}

.hero-actions button.button {
  font: inherit;
  cursor: pointer;
}

.csp-why-modal[hidden] {
  display: none;
}

body.csp-why-modal-open {
  overflow: hidden;
}

.csp-why-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.csp-why-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.csp-why-modal__dialog {
  position: relative;
  display: flex;
  width: min(1180px, 100%);
  max-height: calc(100dvh - 2rem);
  flex-direction: column;
  overflow: hidden;
  color: #f7f7f8;
  background:
    radial-gradient(circle at 84% 0, rgba(255, 210, 4, 0.12), transparent 30%),
    #0b0b0d;
  border: 1px solid rgba(255, 210, 4, 0.72);
  border-radius: 22px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.75);
}

.csp-why-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.csp-why-modal__header .eyebrow {
  margin: 0 0 0.3rem;
  color: #ffd204;
  font-size: 0.72rem;
}

.csp-why-modal__header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.csp-why-modal__header p:last-child {
  max-width: 760px;
  margin: 0.45rem 0 0;
  color: #b9b9c1;
  line-height: 1.5;
}

.csp-why-modal__close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: #fff;
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.csp-why-modal__close:hover,
.csp-why-modal__close:focus-visible {
  color: #ffd204;
  border-color: #ffd204;
  transform: translateY(-1px);
}

.csp-why-modal__close svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.csp-why-modal__body {
  min-height: 0;
  padding: 1.35rem 1.5rem 1.5rem;
  overflow: auto;
}

.csp-why-modal__intro {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.csp-why-modal__intro img {
  width: 145px;
  height: auto;
}

.csp-why-modal__intro strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #fff;
}

.csp-why-modal__intro p {
  margin: 0;
  color: #b9b9c1;
  line-height: 1.45;
}

.csp-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.csp-quote-card {
  position: relative;
  display: flex;
  min-height: 205px;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0;
  padding: 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 210, 4, 0.075), transparent 45%),
    #151519;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
}

.csp-quote-card--featured {
  grid-column: 1 / -1;
}

.csp-quote-mark {
  position: absolute;
  top: -0.7rem;
  right: 1rem;
  color: rgba(255, 210, 4, 0.18);
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: 1;
}

.csp-quote-placeholder {
  position: relative;
  z-index: 1;
  max-width: 88%;
  margin: 0;
  color: #efeff2;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-style: italic;
  line-height: 1.55;
}

.csp-quote-placeholder p {
  margin: 0;
}

.csp-quote-placeholder p + p {
  margin-top: 0.85rem;
}

.csp-quote-card footer {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.csp-quote-card footer strong {
  color: #ffd204;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.csp-quote-card footer span {
  color: #9d9da5;
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .csp-why-modal {
    padding: 0.5rem;
  }

  .csp-why-modal__dialog {
    max-height: calc(100dvh - 1rem);
    border-radius: 16px;
  }

  .csp-why-modal__header,
  .csp-why-modal__body {
    padding-inline: 1rem;
  }

  .csp-why-modal__intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .csp-quote-grid {
    grid-template-columns: 1fr;
  }

  .csp-quote-card--featured {
    grid-column: auto;
  }
}

/* Interactive program-principle cards and compact detail popup. */
.child-safety-page .promise-item {
  position: relative;
  width: 100%;
  min-width: 0;
  appearance: none;
  color: var(--atx-text, #f7f7f8);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--atx-border, #38383d);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 48%),
    var(--atx-surface-2, #171719);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.child-safety-page .promise-item::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--atx-accent, #ffd204);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.child-safety-page .promise-item:hover,
.child-safety-page .promise-item:focus-visible {
  border-color: var(--atx-accent, #ffd204);
  outline: 0;
  background:
    linear-gradient(135deg, rgba(255, 210, 4, 0.11), transparent 54%),
    var(--atx-surface-3, #202023);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 210, 4, 0.28);
  transform: translateY(-4px);
}

.child-safety-page .promise-item:hover::after,
.child-safety-page .promise-item:focus-visible::after {
  transform: scaleX(1);
}

.child-safety-page .promise-item .icon {
  color: var(--atx-on-accent, #070708);
  background: var(--atx-accent, #ffd204);
  box-shadow: 0 0 0 5px rgba(255, 210, 4, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.child-safety-page .promise-item:hover .icon,
.child-safety-page .promise-item:focus-visible .icon {
  box-shadow: 0 0 0 7px rgba(255, 210, 4, 0.16);
  transform: scale(1.04);
}

.promise-item__content {
  display: block;
  min-width: 0;
}

.promise-item__title {
  display: block;
  color: var(--atx-text, #f7f7f8);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.18;
}

.promise-item__summary {
  display: block;
  margin-top: 0.35rem;
  color: var(--atx-text-muted, #c8c8cd);
  line-height: 1.45;
}

.promise-item__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin-top: 0.72rem;
  color: var(--atx-accent, #ffd204);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.promise-item__cta span {
  font-size: 1rem;
  transition: transform 180ms ease;
}

.promise-item:hover .promise-item__cta span,
.promise-item:focus-visible .promise-item__cta span {
  transform: translateX(4px);
}

.child-safety-page .difference-item {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.child-safety-page .difference-item .difference-icon-yellow {
  color: var(--atx-on-accent, #070708);
  background: var(--atx-accent, #ffd204);
  box-shadow: 0 0 0 5px rgba(255, 210, 4, 0.1);
}

.child-safety-page .difference-item::after {
  position: absolute;
  right: 1rem;
  bottom: 0.95rem;
  left: 1rem;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: var(--atx-accent, #ffd204);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.child-safety-page .difference-item:hover,
.child-safety-page .difference-item:focus-visible {
  z-index: 1;
  border-color: rgba(255, 210, 4, 0.78);
  outline: 0;
  box-shadow:
    0 18px 38px rgba(8, 28, 72, 0.14),
    0 0 0 3px rgba(255, 210, 4, 0.12);
  transform: translateY(-6px);
}

.child-safety-page .difference-item:hover::after,
.child-safety-page .difference-item:focus-visible::after {
  transform: scaleX(1);
}

.child-safety-page .difference-item__title {
  display: block;
  color: var(--atx-text, #f5f5f5);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.18;
}

.child-safety-page .difference-item__summary {
  display: block;
  margin-top: 0.5rem;
  color: var(--atx-text-muted, #c8c8cd);
  line-height: 1.55;
}

.child-safety-page .difference-item__cta {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1.3rem;
  color: var(--atx-accent, #ffd204);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.child-safety-page .section {
  padding-block: clamp(3.5rem, 6vw, 4.25rem);
}

.child-safety-page .section-heading {
  margin-bottom: 1.75rem;
}

.child-safety-page .difference-lead {
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}

.child-safety-page .difference-grid {
  gap: 0.85rem;
}

.child-safety-page .difference-item {
  min-height: 250px;
  padding: 1.25rem;
}

.child-safety-page .difference-item .icon {
  margin-bottom: 1rem;
}

.difference-item__cta span {
  transition: transform 180ms ease;
}

.difference-item:hover .difference-item__cta span,
.difference-item:focus-visible .difference-item__cta span {
  transform: translateX(4px);
}

.csp-principle-modal[hidden] {
  display: none;
}

body.csp-principle-modal-open {
  overflow: hidden;
}

.csp-principle-modal {
  position: fixed;
  z-index: 10040;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.csp-principle-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(7px);
}

.csp-principle-modal__dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(92vh, 860px);
  padding: 0;
  overflow: auto;
  color: var(--atx-text, #f7f7f8);
  border: 1px solid rgba(255, 210, 4, 0.76);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 210, 4, 0.12), transparent 34%),
    linear-gradient(145deg, #171719 0%, #080809 100%);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 210, 4, 0.14);
  animation: csp-principle-enter 180ms ease-out both;
}

.csp-principle-modal__visual {
  position: relative;
  aspect-ratio: 16 / 8.6;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 210, 4, 0.4);
  background: #09090a;
}

.csp-principle-modal__visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  content: "";
  background: linear-gradient(to bottom, transparent, rgba(8, 8, 9, 0.58));
}

.csp-principle-modal__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.csp-principle-modal__content {
  padding: clamp(1.25rem, 3vw, 1.8rem);
}

.csp-principle-modal__dialog::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--atx-accent, #ffd204);
}

.csp-principle-modal__close {
  position: absolute;
  z-index: 3;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: var(--atx-text, #f7f7f8);
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  border: 1px solid var(--atx-border, #38383d);
  border-radius: 10px;
  background: rgba(20, 20, 22, 0.94);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.42);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.csp-principle-modal__close:hover,
.csp-principle-modal__close:focus-visible {
  color: var(--atx-on-accent, #070708);
  border-color: var(--atx-accent, #ffd204);
  outline: 0;
  background: var(--atx-accent, #ffd204);
}

.csp-card-modal__next {
  position: absolute;
  z-index: 6;
  top: 50%;
  right: 0.85rem;
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  color: var(--atx-on-accent, #070708);
  font: inherit;
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  border: 1px solid var(--atx-accent, #ffd204);
  border-radius: 50%;
  background: var(--atx-accent, #ffd204);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.55),
    0 0 0 5px rgba(255, 210, 4, 0.12);
  transform: translateY(-50%);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.csp-card-modal__next:hover,
.csp-card-modal__next:focus-visible {
  color: var(--atx-accent, #ffd204);
  outline: 0;
  background: #111114;
  transform: translateY(-50%) translateX(3px);
}

.csp-principle-modal__heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding-right: 2.8rem;
}

.csp-principle-modal__number {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--atx-on-accent, #070708);
  font-size: 1rem;
  font-weight: 950;
  border-radius: 50%;
  background: var(--atx-accent, #ffd204);
  box-shadow: 0 0 0 7px rgba(255, 210, 4, 0.1);
}

.csp-principle-modal__eyebrow {
  margin: 0 0 0.18rem;
  color: var(--atx-accent, #ffd204);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.csp-principle-modal__dialog h2 {
  margin: 0;
  color: var(--atx-text, #f7f7f8);
  font-size: clamp(1.65rem, 5vw, 2.25rem);
  font-weight: 950;
  line-height: 1.08;
}

.csp-principle-modal__summary {
  margin: 0.45rem 0 0;
  color: var(--atx-text-muted, #c8c8cd);
  font-size: 1rem;
  line-height: 1.45;
}

.csp-principle-modal__body {
  margin: 1.35rem 0 0;
  color: var(--atx-text-muted, #c8c8cd);
  line-height: 1.62;
}

.csp-principle-modal__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.3rem 0 0;
}

.csp-principle-modal__facts div {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid var(--atx-border, #38383d);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.csp-principle-modal__facts dt {
  color: var(--atx-accent, #ffd204);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.csp-principle-modal__facts dd {
  margin: 0.3rem 0 0;
  color: var(--atx-text, #f7f7f8);
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.28;
}

@keyframes csp-principle-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .csp-principle-modal {
    padding: 0.65rem;
  }

  .csp-principle-modal__dialog {
    max-height: 94vh;
    padding: 0;
    border-radius: 14px;
  }

  .csp-principle-modal__visual {
    aspect-ratio: 16 / 9.5;
  }

  .csp-principle-modal__content {
    padding: 1rem;
  }

  .csp-principle-modal__heading {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.8rem;
    padding-right: 2.5rem;
  }

  .csp-principle-modal__number {
    width: 46px;
    height: 46px;
  }

  .csp-principle-modal__facts {
    grid-template-columns: 1fr;
  }

  .csp-card-modal__next {
    right: 0.5rem;
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .child-safety-page .promise-item,
  .child-safety-page .promise-item::after,
  .child-safety-page .promise-item .icon,
  .promise-item__cta span,
  .child-safety-page .difference-item,
  .child-safety-page .difference-item::after,
  .difference-item__cta span,
  .csp-principle-modal__dialog {
    transition: none;
    animation: none;
  }
}

.csp-journey {
  --csp-yellow: #ffd204;
  --csp-blue: #2e9cff;
  --csp-green: #34c77b;
  --csp-red: #ef4b4b;
  --csp-surface: #111114;
  --csp-surface-raised: #18181c;
  --csp-border: rgba(255, 255, 255, 0.14);
  margin-top: 3rem;
  overflow: hidden;
  color: #f7f7f8;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 210, 4, 0.09), transparent 32%),
    linear-gradient(145deg, #111114, #080809 72%);
  border: 1px solid rgba(255, 210, 4, 0.45);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.csp-journey button {
  font: inherit;
}

.csp-journey-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2rem 1.65rem;
}

.csp-journey-toolbar h3 {
  max-width: 760px;
  margin: 0.35rem 0 0;
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.csp-journey-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--csp-yellow);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.csp-journey-kicker span {
  width: 30px;
  height: 2px;
  background: currentColor;
}

.csp-journey-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
}

.csp-control-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem;
  color: #fff;
  background: #1d1d21;
  border: 1px solid var(--csp-border);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.csp-control-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(255, 210, 4, 0.65);
}

.csp-control-button:focus-visible,
.csp-phase-tabs button:focus-visible,
.csp-step-buttons button:focus-visible {
  outline: 3px solid rgba(46, 156, 255, 0.95);
  outline-offset: 3px;
}

.csp-control-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.csp-control-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.csp-control-button-primary {
  min-width: 156px;
  padding-inline: 1rem;
  color: #090909;
  font-weight: 800;
  background: var(--csp-yellow);
  border-color: var(--csp-yellow);
}

.csp-control-button-primary:hover:not(:disabled) {
  background: #ffe04c;
  border-color: #ffe04c;
}

.csp-control-button .csp-pause-icon {
  display: none;
}

.csp-control-button[aria-pressed="true"] .csp-play-icon {
  display: none;
}

.csp-control-button[aria-pressed="true"] .csp-pause-icon {
  display: block;
}

.csp-phase-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--csp-border);
  border-bottom: 1px solid var(--csp-border);
}

.csp-phase-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 64px;
  padding: 0.85rem 1rem;
  color: #a9a9b0;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.02);
  border: 0;
  border-right: 1px solid var(--csp-border);
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.csp-phase-tabs button:last-child {
  border-right: 0;
}

.csp-phase-tabs button::after {
  position: absolute;
  right: 18%;
  bottom: -1px;
  left: 18%;
  height: 3px;
  content: "";
  background: transparent;
  border-radius: 99px 99px 0 0;
}

.csp-phase-tabs button span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #6f7077;
  font-size: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.csp-phase-tabs button[aria-selected="true"] {
  color: #fff;
  background: rgba(255, 210, 4, 0.07);
}

.csp-phase-tabs button[aria-selected="true"]::after {
  background: var(--csp-yellow);
}

.csp-phase-tabs button[aria-selected="true"] span {
  color: #080808;
  background: var(--csp-yellow);
  border-color: var(--csp-yellow);
}

.csp-journey-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
  min-height: 490px;
}

.csp-journey-visual {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 47% 46%, rgba(46, 156, 255, 0.11), transparent 42%),
    #0b0c0f;
  border-right: 1px solid var(--csp-border);
}

.csp-journey-visual > svg {
  display: none;
}

.csp-story-image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.csp-story-image-frame::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.86) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 28%);
}

.csp-story-image-frame img {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.csp-story-image-frame .csp-story-image-next {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.csp-story-image-frame.is-crossfading .csp-story-image-next {
  animation: csp-image-layer-fade-in 900ms ease-in-out both;
}

.csp-story-image-caption {
  position: absolute;
  right: 1.4rem;
  bottom: 1.35rem;
  left: 1.4rem;
  z-index: 3;
  display: grid;
  gap: 0.35rem;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.csp-story-image-caption span {
  color: var(--csp-yellow);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.csp-story-image-caption strong {
  max-width: 700px;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  line-height: 1.3;
}

.csp-journey.is-animating .csp-step-detail {
  animation: csp-page-fade-in 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.csp-journey.is-animating .csp-step-detail {
  animation-delay: 70ms;
}

@keyframes csp-page-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes csp-image-layer-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.csp-scene-grid {
  fill: rgba(255, 255, 255, 0.018);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
}

.csp-road {
  fill: url("#csp-road-fill");
}

.csp-lane-line {
  fill: none;
  stroke: rgba(255, 210, 4, 0.55);
  stroke-width: 3;
  stroke-dasharray: 40 28;
}

.csp-stop-arm text {
  fill: #fff;
  font: 800 11px/1 Arial, sans-serif;
  letter-spacing: 0.03em;
}

.csp-camera-dot {
  fill: var(--csp-blue);
  stroke: #fff;
  stroke-width: 3;
}

.csp-scene {
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.csp-journey[data-phase="prepare"] .csp-scene-prepare,
.csp-journey[data-phase="detect"] .csp-scene-detect,
.csp-journey[data-phase="verify"] .csp-scene-verify,
.csp-journey[data-phase="resolve"] .csp-scene-resolve {
  opacity: 1;
}

.csp-blueprint-line {
  fill: none;
  stroke: rgba(46, 156, 255, 0.42);
  stroke-width: 2;
  stroke-dasharray: 7 7;
}

.csp-prepare-node {
  fill: rgba(52, 199, 123, 0.17);
  stroke: var(--csp-green);
  stroke-width: 2;
}

.csp-check-line {
  fill: none;
  stroke: var(--csp-green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.csp-scene-label,
.csp-scene-heading {
  fill: #f5f5f6;
  font: 700 16px/1 Arial, sans-serif;
}

.csp-scene-heading {
  fill: var(--csp-yellow);
  font-size: 18px;
}

.csp-evidence-beam {
  fill: none;
  stroke: var(--csp-blue);
  stroke-width: 4;
  stroke-dasharray: 10 8;
}

.csp-camera-pulse {
  fill: rgba(46, 156, 255, 0.14);
  stroke: var(--csp-blue);
  stroke-width: 2;
}

.csp-evidence-packet rect,
.csp-review-packet rect,
.csp-resolution-card rect {
  fill: #17191e;
  stroke: rgba(255, 210, 4, 0.82);
  stroke-width: 2;
}

.csp-evidence-packet circle {
  fill: rgba(52, 199, 123, 0.15);
  stroke: var(--csp-green);
  stroke-width: 2;
}

.csp-packet-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.43);
  stroke-width: 5;
  stroke-linecap: round;
}

.csp-evidence-packet text {
  fill: var(--csp-yellow);
  font: 800 11px/1 Arial, sans-serif;
  letter-spacing: 0.08em;
}

.csp-review-rail,
.csp-resolution-rail {
  fill: none;
  stroke: rgba(255, 255, 255, 0.17);
  stroke-width: 5;
}

.csp-review-node circle {
  fill: #15171b;
  stroke: var(--csp-blue);
  stroke-width: 3;
}

.csp-review-node path {
  fill: none;
  stroke: var(--csp-green);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.csp-review-node text,
.csp-resolution-card text {
  fill: #f5f5f6;
  font: 700 14px/1 Arial, sans-serif;
}

.csp-resolution-card circle {
  fill: rgba(46, 156, 255, 0.14);
  stroke: var(--csp-blue);
  stroke-width: 2;
}

.csp-portal-mark,
.csp-scale-mark {
  fill: none;
  stroke: var(--csp-blue);
  stroke-width: 5;
  stroke-linecap: round;
}

.csp-scale-mark {
  stroke: var(--csp-green);
}

.csp-step-detail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.csp-step-detail__logo {
  display: block;
  width: 154px;
  max-width: 48%;
  height: auto;
  margin: 0 0 0.7rem;
  object-fit: contain;
  object-position: left center;
}

.csp-step-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #a8a8ae;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.csp-step-heading [data-csp-phase-label] {
  padding: 0.35rem 0.55rem;
  color: #080808;
  background: var(--csp-yellow);
  border-radius: 999px;
}

.csp-step-detail h3 {
  margin: 1rem 0 0.7rem;
  color: #fff;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.csp-step-detail > p {
  margin: 0;
  color: #c3c3c8;
  line-height: 1.65;
}

.csp-step-detail dl {
  display: grid;
  gap: 0;
  margin: 1.4rem 0 0;
}

.csp-step-detail dl div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1rem;
  padding: 0.78rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.csp-step-detail dt {
  color: #8d8e95;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.csp-step-detail dd {
  margin: 0;
  color: #f3f3f4;
  line-height: 1.35;
}

.csp-safeguard {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  color: #dff9ea;
  background: rgba(52, 199, 123, 0.1);
  border-left: 3px solid var(--csp-green);
  border-radius: 0 10px 10px 0;
}

.csp-safeguard svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: var(--csp-green);
}

.csp-safeguard p {
  margin: 0;
  line-height: 1.45;
}

.csp-step-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.csp-step-progress span {
  display: block;
  width: var(--csp-progress, 9.09%);
  height: 100%;
  background: linear-gradient(90deg, var(--csp-yellow), #fff17f);
  transition: width 350ms ease;
}

.csp-step-buttons {
  display: grid;
  grid-template-columns: repeat(12, minmax(62px, 1fr));
  border-bottom: 1px solid var(--csp-border);
}

.csp-step-buttons button {
  min-width: 0;
  min-height: 70px;
  padding: 0.75rem 0.35rem;
  color: #7f8087;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.csp-step-buttons button:last-child {
  border-right: 0;
}

.csp-step-buttons button span,
.csp-step-buttons button strong {
  display: block;
}

.csp-step-buttons button span {
  margin-bottom: 0.25rem;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.csp-step-buttons button strong {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.csp-step-buttons button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.csp-step-buttons button[aria-current="step"] {
  color: #090909;
  background: var(--csp-yellow);
}

.csp-process-principle {
  margin: 0;
  padding: 1rem 2rem 1.15rem;
  color: #d7d7da;
  text-align: center;
}

.csp-process-principle::before {
  color: var(--csp-yellow);
  content: "Transparency principle: ";
  font-weight: 800;
}

.csp-journey.is-animating[data-phase="prepare"] .csp-prepare-node {
  animation: csp-checkpoint 520ms ease both;
}

.csp-journey.is-animating[data-phase="prepare"] .csp-prepare-node:nth-of-type(2) {
  animation-delay: 80ms;
}

.csp-journey.is-animating[data-phase="prepare"] .csp-prepare-node:nth-of-type(3) {
  animation-delay: 160ms;
}

.csp-journey.is-animating[data-phase="prepare"] .csp-prepare-node:nth-of-type(4) {
  animation-delay: 240ms;
}

.csp-journey.is-animating[data-phase="detect"] .csp-passing-car {
  animation: csp-car-pass 720ms cubic-bezier(.22, .8, .25, 1) both;
}

.csp-journey.is-animating[data-phase="detect"] .csp-evidence-packet {
  animation: csp-packet-arrive 620ms 180ms ease both;
}

.csp-journey.is-animating[data-phase="detect"] .csp-camera-pulse {
  animation: csp-pulse 700ms ease-out both;
}

.csp-journey.is-animating[data-phase="verify"] .csp-review-node {
  animation: csp-checkpoint 520ms ease both;
}

.csp-journey.is-animating[data-phase="verify"] .csp-review-node-two {
  animation-delay: 130ms;
}

.csp-journey.is-animating[data-phase="verify"] .csp-review-node-three {
  animation-delay: 260ms;
}

.csp-journey.is-animating[data-phase="resolve"] .csp-resolution-card {
  animation: csp-card-rise 560ms ease both;
}

.csp-journey.is-animating[data-phase="resolve"] .csp-resolution-portal {
  animation-delay: 120ms;
}

.csp-journey.is-animating[data-phase="resolve"] .csp-resolution-support {
  animation-delay: 240ms;
}

@keyframes csp-checkpoint {
  from { opacity: 0.2; transform: scale(0.75); transform-origin: center; }
  to { opacity: 1; transform: scale(1); transform-origin: center; }
}

@keyframes csp-car-pass {
  from { opacity: 0; transform: translateX(-120px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes csp-packet-arrive {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes csp-pulse {
  from { opacity: 0; transform: scale(0.4); transform-origin: 278px 249px; }
  to { opacity: 1; transform: scale(1); transform-origin: 278px 249px; }
}

@keyframes csp-card-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .csp-journey-stage {
    grid-template-columns: 1fr;
  }

  .csp-journey-visual {
    min-height: 380px;
    border-right: 0;
    border-bottom: 1px solid var(--csp-border);
  }

  .csp-story-image-frame,
  .csp-story-image-frame img {
    min-height: 350px;
  }

  .csp-step-buttons {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .csp-step-buttons button:nth-child(6) {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  .csp-story-modal {
    padding: 0;
  }

  .csp-story-modal__dialog {
    width: 100%;
    max-height: 100vh;
    border-width: 0;
    border-radius: 0;
  }

  .csp-story-modal__header {
    gap: 1rem;
    padding: 1rem;
  }

  .csp-story-modal__header p:last-child {
    font-size: 0.9rem;
  }

  .csp-journey {
    margin-top: 2rem;
    border-radius: 18px;
  }

  .csp-journey-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.4rem;
  }

  .csp-journey-controls {
    width: 100%;
  }

  .csp-control-button-primary {
    flex: 1 1 auto;
  }

  .csp-phase-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .csp-phase-tabs button:nth-child(2) {
    border-right: 0;
  }

  .csp-phase-tabs button:nth-child(-n+2) {
    border-bottom: 1px solid var(--csp-border);
  }

  .csp-journey-visual {
    min-height: 300px;
    padding: 0.35rem;
  }

  .csp-story-image-frame,
  .csp-story-image-frame img {
    min-height: 290px;
  }

  .csp-story-image-frame {
    border-radius: 14px;
  }

  .csp-story-image-caption {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }

  .csp-step-detail {
    padding: 1.4rem;
  }

  .csp-step-detail dl div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .csp-step-buttons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .csp-step-buttons button:nth-child(6) {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
  }

  .csp-step-buttons button:nth-child(4n) {
    border-right: 0;
  }

  .csp-process-principle {
    padding-inline: 1.4rem;
    text-align: left;
  }
}

@media (max-width: 440px) {
  .csp-phase-tabs button {
    min-height: 56px;
    padding-inline: 0.5rem;
  }

  .csp-step-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .csp-step-buttons button:nth-child(4n) {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
  }

  .csp-step-buttons button:nth-child(3n) {
    border-right: 0;
  }
}

/*
 * Storyboard modal: tablet and phone layout
 *
 * These selectors intentionally include the modal namespace so they outrank
 * the compact desktop rules near the top of this file. The storyboard becomes
 * one readable column and scrolls inside the dialog instead of compressing the
 * image and copy beside one another.
 */
@media (max-width: 980px) {
  .csp-story-modal__body {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .csp-story-modal .csp-journey {
    height: auto;
    min-height: 100%;
    overflow: visible;
  }

  .csp-story-modal .csp-journey-stage {
    display: grid;
    min-height: 0;
    flex: none;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }

  .csp-story-modal .csp-journey-visual {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--csp-border);
  }

  .csp-story-modal .csp-story-image-frame,
  .csp-story-modal .csp-story-image-frame img {
    min-height: 0;
  }

  .csp-story-modal .csp-story-image-frame {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .csp-story-modal .csp-story-image-frame img {
    height: 100%;
  }
}

@media (max-width: 720px) {
  .csp-story-modal__dialog {
    height: 100dvh;
    max-height: none;
  }

  .csp-story-modal__header {
    gap: 0.75rem;
    padding:
      max(0.75rem, env(safe-area-inset-top))
      max(0.85rem, env(safe-area-inset-right))
      0.75rem
      max(0.85rem, env(safe-area-inset-left));
  }

  .csp-story-modal__header h2 {
    max-width: 19ch;
    font-size: clamp(1.18rem, 5.8vw, 1.55rem);
    line-height: 1.08;
  }

  .csp-story-modal__header p:last-child {
    max-width: 38ch;
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .csp-story-modal__close {
    width: 42px;
    height: 42px;
  }

  .csp-story-modal .csp-journey-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .csp-story-modal .csp-journey-toolbar h3 {
    max-width: 30ch;
    margin-top: 0.25rem;
    font-size: clamp(1.05rem, 5vw, 1.3rem);
    line-height: 1.15;
  }

  .csp-story-modal .csp-journey-controls {
    display: grid;
    width: 100%;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .csp-story-modal .csp-control-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0.45rem;
  }

  .csp-story-modal .csp-control-button-primary {
    width: 100%;
    min-width: 0;
  }

  .csp-story-modal .csp-phase-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .csp-story-modal .csp-phase-tabs button {
    min-height: 54px;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.35rem 0.15rem;
    font-size: clamp(0.63rem, 2.8vw, 0.76rem);
    line-height: 1.05;
    border-right: 1px solid var(--csp-border);
    border-bottom: 0;
  }

  .csp-story-modal .csp-phase-tabs button:last-child {
    border-right: 0;
  }

  .csp-story-modal .csp-phase-tabs button span {
    width: 22px;
    height: 22px;
  }

  .csp-story-modal .csp-journey-visual {
    padding: 0.45rem;
  }

  .csp-story-modal .csp-story-image-frame {
    border-radius: 12px;
  }

  .csp-story-modal .csp-story-image-caption {
    right: 0.75rem;
    bottom: 0.65rem;
    left: 0.75rem;
  }

  .csp-story-modal .csp-story-image-caption span {
    font-size: 0.6rem;
  }

  .csp-story-modal .csp-story-image-caption strong {
    font-size: clamp(0.78rem, 3.5vw, 0.95rem);
    line-height: 1.2;
  }

  .csp-story-modal .csp-story-image-caption p {
    display: none;
  }

  .csp-story-modal .csp-step-detail {
    min-height: 0;
    justify-content: flex-start;
    padding: 1rem 0.9rem 1.1rem;
  }

  .csp-story-modal .csp-step-detail__logo {
    width: 118px;
    max-width: 42%;
    margin-bottom: 0.6rem;
  }

  .csp-story-modal .csp-step-detail h3 {
    margin: 0.55rem 0 0.4rem;
    font-size: clamp(1.2rem, 5.8vw, 1.55rem);
  }

  .csp-story-modal .csp-step-detail > p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .csp-story-modal .csp-step-detail dl {
    margin-top: 0.8rem;
  }

  .csp-story-modal .csp-step-detail dl div {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.5rem 0;
  }

  .csp-story-modal .csp-step-detail dt,
  .csp-story-modal .csp-step-detail dd {
    font-size: 0.72rem;
  }

  .csp-story-modal .csp-step-buttons {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 0.75rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .csp-story-modal .csp-step-buttons button {
    min-width: 92px;
    min-height: 58px;
    flex: 0 0 92px;
    padding: 0.45rem 0.3rem;
    scroll-snap-align: start;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
  }

  .csp-story-modal .csp-step-buttons button strong {
    overflow: visible;
    font-size: 0.66rem;
    text-overflow: clip;
    white-space: normal;
  }

  .csp-story-modal .csp-process-principle {
    padding:
      0.7rem
      max(0.9rem, env(safe-area-inset-right))
      max(0.85rem, env(safe-area-inset-bottom))
      max(0.9rem, env(safe-area-inset-left));
    font-size: 0.74rem;
    line-height: 1.4;
    text-align: left;
  }
}

@media (max-width: 390px) {
  .csp-story-modal__header p:last-child {
    display: none;
  }

  .csp-story-modal .csp-journey-kicker {
    font-size: 0.58rem;
    letter-spacing: 0.09em;
  }

  .csp-story-modal .csp-phase-tabs button {
    font-size: 0.62rem;
  }

  .csp-story-modal .csp-step-detail dl div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .csp-journey *,
  .csp-journey *::before,
  .csp-journey *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
    transition-duration: 1ms !important;
  }

  .csp-journey.is-animating .csp-step-detail {
    animation-duration: 420ms !important;
  }

  .csp-journey.is-animating .csp-step-detail {
    animation-delay: 50ms !important;
  }

  .csp-story-image-frame.is-crossfading .csp-story-image-next {
    animation-duration: 760ms !important;
  }
}

/* Interactive cards for the complete Stop Arm safety framework. */
.child-safety-page .framework-step {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 258px;
  appearance: none;
  color: var(--atx-text, #f7f7f8);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--atx-border, #38383d);
  border-top: 4px solid var(--atx-accent, #ffd204);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 52%),
    var(--atx-surface-2, #171719);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.child-safety-page .framework-step::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--atx-accent, #ffd204);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.child-safety-page .framework-step:hover,
.child-safety-page .framework-step:focus-visible {
  border-color: var(--atx-accent, #ffd204);
  outline: 0;
  background:
    linear-gradient(145deg, rgba(255, 210, 4, 0.13), transparent 58%),
    var(--atx-surface-3, #202023);
  box-shadow:
    0 20px 38px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 210, 4, 0.28);
  transform: translateY(-5px);
}

.child-safety-page .framework-step:hover::after,
.child-safety-page .framework-step:focus-visible::after {
  transform: scaleX(1);
}

.child-safety-page .framework-step .step-number {
  color: rgba(255, 210, 4, 0.3);
  transition: color 180ms ease, transform 180ms ease;
}

.child-safety-page .framework-step:hover .step-number,
.child-safety-page .framework-step:focus-visible .step-number {
  color: var(--atx-accent, #ffd204);
  transform: translateY(-2px);
}

.framework-step__content {
  display: grid;
  gap: 0.55rem;
}

.framework-step__title {
  display: block;
  color: var(--atx-text, #f7f7f8);
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1.18;
}

.framework-step__summary {
  display: block;
  color: var(--atx-text-muted, #c8c8cd);
  line-height: 1.5;
}

.framework-step__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin-top: 0.2rem;
  color: var(--atx-accent, #ffd204);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.framework-step__cta span {
  font-size: 1rem;
  transition: transform 180ms ease;
}

.framework-step:hover .framework-step__cta span,
.framework-step:focus-visible .framework-step__cta span {
  transform: translateX(4px);
}

.csp-framework-modal[hidden] {
  display: none;
}

body.csp-framework-modal-open {
  overflow: hidden;
}

.csp-framework-modal {
  position: fixed;
  z-index: 10045;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.csp-framework-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(7px);
}

.csp-framework-modal__dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  color: var(--atx-text, #f7f7f8);
  border: 1px solid rgba(255, 210, 4, 0.76);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 210, 4, 0.12), transparent 32%),
    linear-gradient(145deg, #171719 0%, #080809 100%);
  box-shadow:
    0 30px 94px rgba(0, 0, 0, 0.74),
    0 0 0 1px rgba(255, 210, 4, 0.14);
  animation: csp-framework-enter 190ms ease-out both;
}

.csp-framework-modal__dialog::after {
  position: sticky;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  height: 4px;
  content: "";
  background: var(--atx-accent, #ffd204);
}

.csp-framework-modal__close {
  position: absolute;
  z-index: 4;
  top: 0.8rem;
  right: 0.8rem;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: var(--atx-text, #f7f7f8);
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(11, 11, 12, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.csp-framework-modal__close:hover,
.csp-framework-modal__close:focus-visible {
  color: var(--atx-on-accent, #070708);
  border-color: var(--atx-accent, #ffd204);
  outline: 0;
  background: var(--atx-accent, #ffd204);
}

.csp-framework-modal__visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0b0b0c;
}

.csp-framework-modal__visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  content: "";
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(8, 8, 9, 0.58));
}

.csp-framework-modal__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.csp-framework-modal__content {
  padding: clamp(1.15rem, 3vw, 1.75rem);
}

.csp-framework-modal__heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding-right: 2.6rem;
}

.csp-framework-modal__number {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--atx-on-accent, #070708);
  font-size: 0.95rem;
  font-weight: 950;
  border-radius: 50%;
  background: var(--atx-accent, #ffd204);
  box-shadow: 0 0 0 7px rgba(255, 210, 4, 0.1);
}

.csp-framework-modal__eyebrow {
  margin: 0 0 0.18rem;
  color: var(--atx-accent, #ffd204);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.csp-framework-modal__dialog h2 {
  margin: 0;
  color: var(--atx-text, #f7f7f8);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 950;
  line-height: 1.08;
}

.csp-framework-modal__summary {
  margin: 0.42rem 0 0;
  color: var(--atx-text-muted, #c8c8cd);
  line-height: 1.45;
}

.csp-framework-modal__body {
  margin: 1.05rem 0 0;
  color: var(--atx-text-muted, #c8c8cd);
  line-height: 1.58;
}

.csp-framework-modal__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.1rem 0 0;
}

.csp-framework-modal__facts div {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--atx-border, #38383d);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.csp-framework-modal__facts dt {
  color: var(--atx-accent, #ffd204);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.csp-framework-modal__facts dd {
  margin: 0.28rem 0 0;
  color: var(--atx-text, #f7f7f8);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.28;
}

@keyframes csp-framework-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 650px) {
  .csp-framework-modal {
    padding: 0.6rem;
  }

  .csp-framework-modal__dialog {
    max-height: 94vh;
    border-radius: 14px;
  }

  .csp-framework-modal__visual {
    aspect-ratio: 16 / 8.5;
  }

  .csp-framework-modal__content {
    padding: 1rem;
  }

  .csp-framework-modal__heading {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.75rem;
    padding-right: 2.4rem;
  }

  .csp-framework-modal__number {
    width: 44px;
    height: 44px;
  }

  .csp-framework-modal__facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .child-safety-page .framework-step,
  .child-safety-page .framework-step::after,
  .child-safety-page .framework-step .step-number,
  .framework-step__cta span,
  .csp-framework-modal__dialog,
  .csp-card-modal__next {
    transition: none;
    animation: none;
  }
}
