/* Below 1440 the desktop canvas scales so the original composition stays intact.
   From 768 the desktop layout is used. Below 768 the sections reflow. */

@media (min-width: 768px) {
  html {
    overflow-x: hidden;
  }
}

@media (max-width: 1439px) and (min-width: 768px) {
  main {
    width: 100%;
    overflow: hidden;
    height: calc(12330px * 100vw / 1440px);
  }

  .page {
    transform: scale(calc(100vw / 1440px));
    transform-origin: top left;
  }
}

/* Wider than the 1440 canvas: keep the layout, let each section color run edge to edge. */
@media (min-width: 1440px) {
  .page .hero,
  .page .logo-strip,
  .page .value-gap,
  .page .narrative-band,
  .page .solutions,
  .page .mid-cta,
  .page .process,
  .page .governance,
  .page .compliance,
  .page .faq,
  .page .final-cta,
  .page .site-footer {
    width: 100%;
    left: 0;
    padding-left: calc((100% - 1280px) / 2);
    padding-right: calc((100% - 1280px) / 2);
  }

  .page .site-footer {
    padding-bottom: 7px;
  }

  .page .compliance__backdrop {
    left: 0;
    width: 100%;
    object-fit: cover;
  }

  .page .site-footer__accent {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: 7px;
    margin: 0;
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }

  .page {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .page > .hero,
  .page > .logo-strip,
  .page > .site-header,
  .page > .value-gap,
  .page > .solutions,
  .page > .narrative-band,
  .page > .mid-cta,
  .page > .engage,
  .page > .readiness,
  .page > .process,
  .page > .compliance,
  .page > .governance,
  .page > .faq,
  .page > .final-cta,
  .page > .site-footer,
  .proof-stage > .proof-intro,
  .proof-stage > .case-slider,
  .proof-stage > .case-pager {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    opacity: 1;
  }

  .page > .hero,
  .page > .compliance {
    overflow: hidden;
  }

  .page .compliance {
    height: auto;
    min-height: 0;
    gap: 24px;
    padding-top: 56px;
    padding-bottom: 56px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .page .compliance .stretch-column {
    width: 100%;
    gap: 24px;
  }

  .page .compliance .process__heading,
  .page .compliance__heading-wrap,
  .page .compliance .heading-group {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page .compliance__eyebrow {
    max-width: 100%;
  }

  .page .compliance__eyebrow-text {
    white-space: normal;
    letter-spacing: 1.2px;
    font-size: 12px;
    line-height: 16px;
  }

  .page .compliance__title {
    width: 100%;
    max-width: 100%;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.6px;
  }

  .page .compliance__backdrop {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
  }

  .page .compliance > .stretch-column {
    position: relative;
    z-index: 1;
  }

  .page .compliance-logos {
    width: 100%;
    max-width: 100%;
    gap: 12px;
    overflow: hidden;
  }

  .page .compliance-logos-slider {
    width: 100%;
    overflow: hidden;
  }

  .page .compliance-logos-track,
  .page .compliance-logo-slide,
  .page .compliance-logo-card {
    max-width: none;
  }

  .page .compliance-logo-slide {
    padding: 0 8px;
  }

  .page .compliance-logo-card {
    width: 200px;
    max-width: 200px;
    height: 80px;
    aspect-ratio: auto;
    background-size: 426.67% 220%;
  }

  .page .compliance-logo-card--1 { background-position: 0% 0%; }
  .page .compliance-logo-card--2 { background-position: 33.06% 0%; }
  .page .compliance-logo-card--3 { background-position: 66.12% 0%; }
  .page .compliance-logo-card--4 { background-position: 99.18% 0%; }
  .page .compliance-logo-card--5 { background-position: 0% 100%; }
  .page .compliance-logo-card--6 { background-position: 33.06% 100%; }
  .page .compliance-logo-card--7 { background-position: 66.12% 100%; }
  .page .compliance-logo-card--8 { background-position: 99.18% 100%; }

  .page .compliance-logo-card--ieso,
  .page .compliance-logo-card--isonew {
    background-size: contain;
    background-position: center;
  }

  .page > .site-header { order: 1; }
  .page > .hero { order: 2; }
  .page > .logo-strip { order: 3; }
  .page > .value-gap { order: 4; }
  .page > .narrative-band { order: 5; }
  .page > .solutions { order: 6; }
  .page > .proof-stage { order: 7; }
  .page > .mid-cta { order: 8; }
  .page > .process { order: 9; }
  .page > .engage { order: 10; }
  .page > .readiness { order: 11; }
  .page > .governance { order: 12; }
  .page > .compliance { order: 13; }
  .page > .faq { order: 14; }
  .page > .final-cta { order: 15; }
  .page > .site-footer { order: 16; }

  .page * {
    max-width: 100%;
  }

  .hero-dashboard,
  .hero-dashboard *,
  .case-slider .slick-list,
  .case-slider .slick-track,
  .case-slider .slick-slide,
  .case-slider .slick-slide > div,
  .case-slider .case-slide {
    max-width: none;
  }

  .proof-stage {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 80px 0;
    background: #e7e8ea80;
  }

  .page .proof-intro {
    background: transparent;
    padding: 0 24px;
    margin-bottom: 40px;
  }

  .page .proof-intro__aside:has(.proof-intro__text:empty) {
    display: none;
  }

  .page .case-pager {
    margin-top: 20px;
  }

  .page .case-slider,
  .page .case-pager {
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }

  .proof-stage > * {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    opacity: 1;
  }

  .proof-band,
  .proof-fade {
    display: none;
  }

  .page .case-slider,
  .page .case-pager {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .page .case-slider {
    overflow: hidden;
  }

  .page .case-slider .slick-list {
    overflow: hidden;
  }

  .page .case-slider .case-slide,
  .page .case-slider .slick-center.case-slide,
  .page .case-slider .slick-center + .case-slide,
  .page .case-slider .case-slide:has(+ .slick-center) {
    flex-direction: column;
    height: auto;
    transform: none;
  }

  .page .case-slider .case-card__panel,
  .page .case-slide__media,
  .page .case-slider .case-card__photo {
    flex: none;
    width: 100%;
    height: auto;
  }

  .page .case-slider .case-card__photo {
    height: 240px;
  }

  .page .case-slider .case-card__accent {
    display: none;
  }

  .page .case-pager {
    margin: 8px auto 0;
    width: min(296px, 100%);
    max-width: 100%;
    height: 48px;
  }

  .page .case-slider .case-card__logo {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 56px;
    object-fit: contain;
    object-position: left center;
  }

  .page .proof-stage .eyebrow-mono {
    max-width: 100%;
    height: auto;
  }

  .page .proof-stage .eyebrow-mono__text {
    white-space: normal;
  }

  .page > .site-header {
    background: #e3001d;
    gap: 12px;
    padding: 16px 20px;
    z-index: 30;
  }

  .page .eyebrow,
  .page .eyebrow__text {
    max-width: 100%;
    white-space: normal;
  }

  .page .site-header__bar,
  .page .narrative-card__row,
  .page .site-header__cluster,
  .page .faq-item,
  .page .faq-item-open,
  .page .faq__question {
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
  }

  .site-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 8px;
    border: 1px solid #ffffff;
    border-radius: 999px;
  }

  .site-header__toggle-bars,
  .site-header__toggle-bars::before,
  .site-header__toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #ffffff;
    content: "";
  }

  .site-header__toggle-bars {
    position: relative;
  }

  .site-header__toggle-bars::before,
  .site-header__toggle-bars::after {
    position: absolute;
    left: 0;
  }

  .site-header__toggle-bars::before { top: -6px; }
  .site-header__toggle-bars::after { top: 6px; }

  .page .primary-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 24px;
    right: 24px;
    width: auto;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: #0f172a;
    border-radius: 12px;
    z-index: 40;
  }

  .site-header.is-open .primary-nav {
    display: flex;
  }

  .page .hero,
  .page .logo-strip,
  .page .value-gap,
  .page .solutions,
  .page .narrative-band,
  .page .mid-cta,
  .page .process,
  .page .compliance,
  .page .governance,
  .page .faq,
  .page .final-cta,
  .page .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .page .hero__layout,
  .page .section-layout,
  .page .hero__copy,
  .page .hero__intro,
  .page .hero__summary,
  .page .engage,
  .page .engage__content,
  .page .readiness,
  .page .readiness__copy,
  .page .narrative-card,
  .page .cta-banner,
  .page .cta-banner__copy,
  .page .narrative-card__copy,
  .page .governance__row,
  .page .process__steps,
  .page .column-group,
  .page .product-row {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .page .hero__title,
  .page .hero__summary-text,
  .page .section-title,
  .page .section-lead,
  .page .proof-intro,
  .page .proof-intro__title,
  .page .proof-intro__text,
  .page .block-title,
  .page .process__title,
  .page .compliance__title,
  .page .faq__title,
  .page .faq__lead,
  .page .faq__answer,
  .page .narrative-card__title,
  .page .gap-row,
  .page .engage__visual,
  .page .readiness-score,
  .page .case-card__note,
  .page .case-card__note-light,
  .page .case-card__headline,
  .page .case-card__headline-light {
    width: 100%;
    max-width: 100%;
  }

  .page .engage__visual {
    min-height: 0;
  }

  .page .case-card-pwd,
  .page .case-card-mylifewell,
  .page .case-card-niva,
  .page .proof-intro,
  .page .site-footer .cluster-row {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100%;
  }
  .page .solutions.is-filtered .product-grid .product-card,
  .page .solutions.is-filtered .product-grid .custom-ai-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .page .product-card,
  .page .custom-ai-card,
  .page .governance-card,
  .page .case-card__panel,
  .page .case-card__panel-light {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .page .product-card .stretch-column {
    gap: 24px;
  }

  .page .case-card__photo,
  .page .case-card__photo-light,
  .page .case-card__photo-niva {
    width: 100%;
    height: 240px;
    object-fit: cover;
  }

  .page .case-card__accent,
  .page .governance__visual,
  .page .site-footer__accent,
  .page .process__rail {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
  }

  .page .section-copy,
  .page .site-footer__columns,
  .page .readiness-legend {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .page .readiness-score,
  .page .readiness-score__board,
  .page .readiness-score__result,
  .page .readiness-score__result-inner {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-right: 0;
    overflow: hidden;
  }

  .page .readiness-badge-1,
  .page .readiness-badge-2,
  .page .readiness-badge-3,
  .page .readiness-badge-4 {
    display: none;
  }

  .page .readiness-score__next-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .page .site-footer__brand-art,
  .page .site-footer__social {
    align-items: flex-start;
    width: 100%;
  }
  .page .logo-strip__logos,
  .page .governance__visual,
  .page .site-footer__accent,
  .page .process__rail {
    width: 100%;
    height: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .page .chip-row,
  .page .inline-cluster,
  .page .site-footer__columns,
  .page .site-footer__legal,
  .page .site-footer__meta,
  .page .process-step__chips,
  .page .cta-banner__actions {
    flex-wrap: wrap;
    width: 100%;
    align-items: flex-start;
  }

  .page .faq__question-text,
  .page .faq__question-text-closed,
  .page .primary-nav__label,
  .page .product-tag__label,
  .page .filter-chip__label,
  .page .filter-chip__label-muted,
  .page .process-chip__label,
  .page .button-pill__label,
  .page .site-footer__link,
  .page .site-footer__legal-link,
  .page .product-card__title,
  .page .gap-card__title,
  .page .engage__step-title,
  .page .final-cta__note,
  .page .governance-card__title,
  .page .readiness-score__next-label,
  .page .readiness-legend__label {
    white-space: normal;
  }

  .page .site-header__bar {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .page .site-header__cluster {
    width: auto;
    margin-left: auto;
  }

  .page .ask-ally {
    height: 40px;
    padding: 8px 12px;
    gap: 8px;
  }

  .page .eyebrow__text {
    letter-spacing: 1.1px;
  }

  .page .final-cta__note {
    text-align: left;
  }

  .page .site-footer__accent {
    height: 7px;
    object-fit: cover;
  }

  .page .readiness-score {
    align-items: stretch;
    justify-content: flex-start;
    padding: 20px 16px 24px;
    overflow: visible;
    gap: 16px;
  }

  .page .readiness-score .case-card__details,
  .page .readiness-score__board,
  .page .readiness-score__result,
  .page .readiness-score__result-inner,
  .page .readiness-score__result-row,
  .page .readiness-score__stage,
  .page .readiness-score__opportunity,
  .page .readiness-score__next {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-right: 0;
    overflow: visible;
  }

  .page .readiness-legend {
    align-items: stretch;
  }

  .page .governance__grid {
    width: 100%;
  }

  .page .governance__visual {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
  }

  .page .value-gap .column-group,
  .page .value-gap .gap-column,
  .page .value-gap .gap-row,
  .page .value-gap .gap-visual {
    align-items: stretch;
    width: 100%;
  }

  .page .value-gap .gap-fix,
  .page .value-gap .gap-fix-navy,
  .page .value-gap .gap-fix__content {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }

  .page .value-gap .gap-card__title {
    white-space: normal;
  }

  .page .solutions {
    gap: 20px;
    padding-top: 56px;
    padding-bottom: 56px;
    box-sizing: border-box;
  }

  .page .solutions .section-layout {
    gap: 24px;
    align-items: stretch;
  }

  .page .solutions .section-copy {
    gap: 16px;
  }

  .page .solutions .section-title {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.6px;
  }

  .page .solutions__filters {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .page .solutions__filters-track {
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page .solutions .chip-row {
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }

  .page .solutions .filter-chip,
  .page .solutions .filter-chip-active {
    height: 40px;
    padding: 8px 14px;
  }

  .page .solutions__eyebrow {
    width: auto;
    letter-spacing: 1px;
    white-space: nowrap;
  }

  .page .solutions .product-grid,
  .page .solutions .column-group,
  .page .solutions .product-row {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 100%;
  }

  .page .solutions.is-filtered .product-grid {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .page .solutions .column-group > .product-card,
  .page .solutions .product-row > .product-card,
  .page .solutions .product-row > .custom-ai-card,
  .page .solutions.is-filtered .product-grid .product-card,
  .page .solutions.is-filtered .product-grid .custom-ai-card {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }

  .page .custom-ai-card {
    overflow: hidden;
    justify-content: flex-start;
  }

  .page .custom-ai-card__photo {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .page .custom-ai-card__panel,
  .page .custom-ai-card__title-wrap {
    width: 100%;
    height: auto;
    margin-right: 0;
  }

  .page .custom-ai-card__title {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 767px) and (min-width: 600px) {
  .page .case-slider .case-slide,
  .page .case-slider .slick-center.case-slide,
  .page .case-slider .slick-center + .case-slide,
  .page .case-slider .case-slide:has(+ .slick-center) {
    flex-direction: row;
    align-items: stretch;
  }

  .page .case-slider .slick-slide > .case-card__panel,
  .page .case-slider .slick-slide > .case-slide__media {
    flex: 1 1 50%;
    width: 50%;
    max-width: 50%;
    height: auto;
  }

  .page .case-slide__media {
    position: relative;
    align-self: stretch;
    min-height: 100%;
    overflow: hidden;
  }

  .page .case-slider .case-card__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 700px) {
  .page .hero__visual {
    width: 100%;
    overflow: hidden;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .page .hero,
  .page .logo-strip,
  .page .value-gap,
  .page .solutions,
  .page .narrative-band,
  .page .mid-cta,
  .page .process,
  .page .compliance,
  .page .governance,
  .page .faq,
  .page .final-cta,
  .page .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page .hero__title {
    font-size: clamp(34px, 10vw, 56px);
    line-height: 1.08;
  }

  .page .section-title,
  .page .proof-intro__title,
  .page .block-title,
  .page .process__title,
  .page .compliance__title,
  .page .faq__title,
  .page .narrative-card__title {
    font-size: 30px;
    line-height: 1.15;
  }
}

/* AI Labs — mobile section stack (live responsive pass) */
@media (max-width: 767px) {
  main {
    height: auto !important;
    overflow: visible;
  }

  .page .hero {
    height: auto;
    min-height: 0;
    gap: 20px;
    box-sizing: border-box;
  }

  .page .hero__layout {
    flex-direction: column;
    height: auto;
    gap: 24px;
  }

  .page .hero__copy,
  .page .hero__intro,
  .page .hero__summary {
    width: 100%;
    max-width: 100%;
  }

  .page .logo-strip {
    height: auto;
    gap: 16px;
    padding-top: 32px;
    padding-bottom: 32px;
    box-sizing: border-box;
  }

  .page .logo-strip__slider,
  .page .logo-strip__track {
    width: 100%;
    overflow: hidden;
  }

  .page .value-gap {
    height: auto;
    gap: 20px;
    padding-top: 56px;
    padding-bottom: 56px;
    box-sizing: border-box;
  }

  .page .value-gap .gap-row {
    flex-direction: column;
    height: auto;
  }

  .page .narrative-band {
    height: auto;
    padding-top: 56px;
    padding-bottom: 56px;
    box-sizing: border-box;
  }

  .page .narrative-card {
    flex-direction: column;
    align-items: stretch;
    padding: 32px 24px;
    height: auto;
  }

  .page .mid-cta,
  .page .final-cta {
    height: auto;
    min-height: 0;
    padding-top: 56px;
    padding-bottom: 56px;
    box-sizing: border-box;
  }

  .page .cta-banner {
    width: 100%;
    height: auto;
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    box-sizing: border-box;
  }

  .page .process {
    height: auto;
    gap: 24px;
    padding-top: 56px;
    padding-bottom: 56px;
    box-sizing: border-box;
  }

  .page .process__heading {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .page .process-step,
  .page .process-step-follow {
    min-height: 0;
    width: 100%;
  }

  .page .process__rail {
    width: 100%;
    height: auto;
    overflow-x: auto;
  }

  .page .process__rail svg {
    width: 100%;
    min-width: 280px;
    height: auto;
  }

  .page .readiness {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 56px 24px;
    gap: 32px;
    box-sizing: border-box;
  }

  .page .governance {
    height: auto;
    gap: 24px;
    padding-top: 56px;
    padding-bottom: 56px;
    box-sizing: border-box;
  }

  .page .governance__layout,
  .page .governance__grid {
    width: 100%;
    max-width: 100%;
    align-items: stretch;
  }

  .page .governance__row {
    height: auto;
    min-height: 0;
    flex-direction: column;
  }

  .page .governance-card {
    width: 100%;
  }

  .page .governance-card__title {
    white-space: normal;
    width: 100%;
  }

  .page .faq {
    height: auto;
    gap: 24px;
    padding-top: 56px;
    padding-bottom: 56px;
    box-sizing: border-box;
  }

  .page .faq__layout {
    width: 100%;
    flex-direction: column;
    gap: 24px;
  }

  .page .final-cta__talk {
    text-align: left;
  }

  .page .final-cta__talk a {
    align-items: flex-start;
  }

  .page .button-dark-wide,
  .page .button-pill,
  .page .button-light-wide {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }

  .page .proof-stage {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .page .site-footer {
    height: auto;
    padding-bottom: 24px;
    box-sizing: border-box;
  }
}
