/* Responsive */
@media (max-width: 1240px) {
  .sm-v4-hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(450px, .92fr);
    gap: 3.5rem;
  }

  .sm-v4-hero h1 {
    font-size: clamp(4rem, 7vw, 6.4rem);
  }

  .sm-v4-dossier {
    right: 0;
    width: min(390px, 78%);
  }

  .sm-v4-gates__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sm-v4-gate:nth-child(3) {
    border-right: 0;
  }

  .sm-v4-gate:nth-child(n + 4) {
    border-top: 1px solid var(--sm-v4-line);
  }

  .sm-v4-gate:nth-child(4) {
    grid-column: 1 / 2;
  }

  .sm-v4-process__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sm-v4-process__steps li:nth-child(3) {
    border-right: 0;
  }

  .sm-v4-process__steps li:nth-child(n + 4) {
    border-top: 1px solid rgba(255, 255, 255, .13);
  }

  .sm-v4-final__content {
    grid-template-columns: minmax(0, 1fr) minmax(240px, .55fr);
  }

  .sm-v4-final__actions {
    grid-column: 1 / -1;
    grid-template-columns: auto auto;
    align-items: center;
  }
}

@media (max-width: 1020px) {
  .sm-v4-hero {
    padding-top: 4.5rem;
  }

  .sm-v4-hero__layout,
  .sm-v4-manifesto__layout,
  .sm-v4-output__layout,
  .sm-v4-services__layout {
    grid-template-columns: 1fr;
  }

  .sm-v4-hero__layout {
    min-height: 0;
  }

  .sm-v4-hero h1 {
    max-width: 11ch;
    font-size: clamp(4.6rem, 10vw, 7.3rem);
  }

  .sm-v4-hero__stage {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .sm-v4-manifesto__layout,
  .sm-v4-section-heading {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .sm-v4-manifesto__aside,
  .sm-v4-section-heading > p {
    grid-column: 2;
    padding-top: 0;
  }

  .sm-v4-output__intro {
    max-width: 760px;
  }

  .sm-v4-output__stack {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .sm-v4-services__intro {
    position: static;
    max-width: 760px;
  }
}

@media (max-width: 780px) {
  body.home .sm-site-header__inner {
    min-height: 74px;
  }

  .sm-v4-home .sm-container {
    width: min(100% - 1.5rem, 1420px);
  }

  .sm-v4-eyebrow span + span::before {
    width: 22px;
    margin-right: .75rem;
  }

  .sm-v4-hero {
    padding-top: 3rem;
  }

  .sm-v4-hero__layout {
    padding-bottom: 3rem;
  }

  .sm-v4-hero h1 {
    font-size: clamp(3.45rem, 15vw, 5.9rem);
    line-height: .89;
  }

  .sm-v4-hero__lead {
    font-size: 1rem;
  }

  .sm-v4-hero__proof {
    grid-template-columns: 1fr;
  }

  .sm-v4-hero__proof div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--sm-v4-line);
  }

  .sm-v4-hero__proof div:last-child {
    border-bottom: 0;
  }

  .sm-v4-hero__proof dd {
    margin: 0;
  }

  .sm-v4-hero__stage {
    min-height: 570px;
  }

  .sm-v4-route-card {
    inset: 1.5rem .5rem 4.2rem .5rem;
  }

  .sm-v4-route-card__footer {
    grid-template-columns: repeat(5, minmax(75px, 1fr));
    overflow-x: auto;
  }

  .sm-v4-dossier {
    right: .3rem;
    bottom: 1rem;
    width: min(430px, 88%);
  }

  .sm-v4-decision-stamp {
    bottom: 8rem;
    left: .1rem;
    width: 132px;
    min-height: 108px;
  }

  .sm-v4-decision-stamp strong {
    font-size: 1.75rem;
  }

  .sm-v4-hero__rail {
    grid-template-columns: 1fr;
  }

  .sm-v4-hero__rail span {
    justify-content: flex-start;
    min-height: 50px;
    border-right: 0;
    border-bottom: 1px solid var(--sm-v4-line);
  }

  .sm-v4-hero__rail span:last-child {
    border-bottom: 0;
  }

  .sm-v4-manifesto,
  .sm-v4-gates,
  .sm-v4-output,
  .sm-v4-services,
  .sm-v4-process,
  .sm-v4-notes,
  .sm-v4-final {
    padding-block: clamp(4.5rem, 16vw, 7rem);
  }

  .sm-v4-section-heading,
  .sm-v4-manifesto__layout {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .sm-v4-manifesto__aside,
  .sm-v4-section-heading > p {
    grid-column: auto;
  }

  .sm-v4-section-heading h2,
  .sm-v4-manifesto h2,
  .sm-v4-output h2,
  .sm-v4-services h2,
  .sm-v4-notes h2,
  .sm-v4-final h2 {
    font-size: clamp(2.75rem, 12vw, 4.7rem);
  }

  .sm-v4-gates__grid,
  .sm-v4-process__steps,
  .sm-v4-notes__grid {
    grid-template-columns: 1fr;
  }

  .sm-v4-gate,
  .sm-v4-gate:nth-child(3),
  .sm-v4-gate:nth-child(4),
  .sm-v4-process__steps li,
  .sm-v4-process__steps li:nth-child(3),
  .sm-v4-note {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--sm-v4-line);
  }

  .sm-v4-gate,
  .sm-v4-process__steps li,
  .sm-v4-note {
    min-height: 300px;
  }

  .sm-v4-gate:nth-child(n + 4) {
    border-top: 0;
  }

  .sm-v4-output__stack {
    min-height: 600px;
  }

  .sm-v4-output__sheet--front {
    inset: 0 .7rem 2.8rem 0;
  }

  .sm-v4-output__sheet--middle {
    inset: 2rem .2rem 2rem 1rem;
  }

  .sm-v4-output__sheet--back {
    inset: 3.5rem 0 .8rem 2rem;
  }

  .sm-v4-service-row {
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    min-height: 135px;
  }

  .sm-v4-notes__header {
    display: grid;
    align-items: start;
  }

  .sm-v4-final {
    padding-top: 0;
  }

  .sm-v4-final__content {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sm-v4-final__actions {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .sm-v4-hero h1 {
    font-size: clamp(3.15rem, 15vw, 4.6rem);
  }

  .sm-v4-hero__actions,
  .sm-v4-button {
    width: 100%;
  }

  .sm-v4-hero__actions {
    align-items: flex-start;
  }

  .sm-v4-text-link {
    width: auto;
  }

  .sm-v4-hero__stage {
    min-height: 520px;
    margin-top: 1rem;
  }

  .sm-v4-route {
    width: 135%;
    max-width: none;
    margin-left: -18%;
  }

  .sm-v4-route-card__meta span:first-child {
    max-width: 18ch;
  }

  .sm-v4-route-card__footer {
    display: none;
  }

  .sm-v4-dossier {
    width: 94%;
  }

  .sm-v4-dossier__header,
  .sm-v4-dossier__footer {
    align-items: flex-start;
  }

  .sm-v4-dossier__header {
    flex-direction: column;
  }

  .sm-v4-dossier__checks li {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .sm-v4-dossier__checks li > small {
    grid-column: 2;
  }

  .sm-v4-decision-stamp {
    bottom: 7rem;
    width: 112px;
    min-height: 94px;
    padding: .7rem;
  }

  .sm-v4-decision-stamp strong {
    font-size: 1.45rem;
  }

  .sm-v4-output__stack {
    min-height: 630px;
  }

  .sm-v4-output__sheet--front > header,
  .sm-v4-output__sheet--front > footer {
    flex-direction: column;
  }

  .sm-v4-output__sheet--front > footer {
    gap: .25rem;
  }

  .sm-v4-output__list > div {
    grid-template-columns: 28px 20px minmax(0, 1fr);
  }

  .sm-v4-service-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .sm-v4-service-row > .sm-icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-v4-home *,
  .sm-v4-home *::before,
  .sm-v4-home *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }

  .sm-v4-route__line--active {
    stroke-dashoffset: 0;
  }

  .sm-v4-stage__grid,
  .sm-v4-route-card,
  .sm-v4-dossier,
  .sm-v4-decision-stamp {
    transform: none !important;
  }
}

@media print {
  .sm-v4-home {
    color: #000;
    background: #fff;
  }

  .sm-v4-hero,
  .sm-v4-manifesto,
  .sm-v4-gates,
  .sm-v4-output,
  .sm-v4-services,
  .sm-v4-process,
  .sm-v4-notes,
  .sm-v4-final {
    color: #000;
    background: #fff;
    box-shadow: none;
  }

  .sm-v4-hero__stage,
  .sm-v4-button,
  .sm-v4-final,
  .sm-v4-hero__rail {
    display: none !important;
  }
}
