@media (max-width: 1120px) {
  :root {
    --gutter: 26px;
  }

  .primary-nav {
    gap: 17px;
  }

  .primary-nav__link {
    font-size: var(--text-caption);
  }

  .site-header__inner {
    gap: 20px;
  }

  .hero__content {
    max-width: 610px;
  }

  .hero__scroll {
    display: none;
  }

  .site-footer__main {
    grid-template-columns: minmax(200px, 1.2fr) repeat(4, minmax(110px, 0.7fr));
    gap: 26px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 76px;
    --gutter: 24px;
    --section-space: 92px;
  }

  .site-header {
    color: var(--color-primary);
    border-bottom-color: rgba(18, 57, 88, 0.1);
    background: rgba(255, 255, 255, 0.96);
  }

  .site-header.is-scrolled,
  .site-header.is-menu-open {
    background: var(--color-white);
  }

  .primary-nav {
    position: fixed;
    z-index: 101;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    height: auto;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 38px;
    color: var(--color-primary);
    background: var(--color-white);
  }

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

  .primary-nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 17px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-lead);
  }

  .primary-nav__link::after {
    display: none;
  }

  .nav-dropdown {
    display: block;
    height: auto;
  }

  .nav-dropdown__trigger {
    min-height: 55px;
  }

  .nav-dropdown__panel {
    position: static;
    display: none;
    min-width: 0;
    padding: 2px 0 11px 14px;
    border: 0;
    background: var(--color-white);
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown.is-open .nav-dropdown__panel {
    display: grid;
  }

  .nav-dropdown__panel a {
    padding: 11px 8px;
    border-left: 1px solid var(--color-border);
    font-size: var(--text-body);
  }

  .primary-nav__mobile-cta {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 0 17px;
    color: var(--color-white);
    background: var(--color-accent);
    font-size: var(--text-body);
    font-weight: 700;
  }

  .primary-nav__mobile-cta span {
    font-size: 18px;
  }

  .site-header__actions .button--header {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .section-heading--split {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
    gap: 6%;
  }

  .why-rayli__layout {
    gap: 42px;
  }

  .why-rayli__visual {
    min-height: 480px;
  }

  .site-footer__main {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 42px;
  }

  .site-footer__brand-block {
    grid-column: span 4;
  }

  .site-footer__description {
    max-width: 460px;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 21px;
    --section-space: 76px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading--split {
    display: block;
  }

  .section-heading h2,
  .why-rayli h2,
  .final-cta h2 {
    font-size: clamp(47px, 12.8vw, 68px);
  }

  .section-heading__aside {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 13px;
    margin-top: 22px;
    padding: 12px 0 0;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .section-heading__aside .section-index {
    margin: 0;
    padding-top: 3px;
  }

  .section-heading__aside p {
    max-width: 500px;
    font-size: var(--text-body);
  }

  .section-heading--on-dark .section-heading__aside {
    border-top-color: rgba(255, 255, 255, 0.24);
  }

  .hero {
    min-height: 770px;
    min-height: max(770px, 100svh);
  }

  .hero__visual {
    inset: 0;
    opacity: 0.84;
  }

  .hero__visual::before {
    background: linear-gradient(90deg, rgba(18, 57, 88, 0.94), rgba(18, 57, 88, 0.55)), linear-gradient(0deg, #123958 1%, rgba(18, 57, 88, 0.2) 55%, rgba(18, 57, 88, 0.1));
  }

  .hero__line-art {
    top: 19%;
    right: -33%;
    width: 128%;
    height: 54%;
    opacity: 0.52;
  }

  .hero__content-wrap {
    padding-top: 164px;
    padding-bottom: 236px;
  }

  .hero__content {
    max-width: 520px;
  }

  .hero__content .eyebrow {
    margin-bottom: 24px;
    font-size: var(--text-caption);
  }

  .hero h1 {
    font-size: clamp(60px, 14.6vw, 84px);
    line-height: 0.88;
  }

  .hero__statement {
    margin-top: 24px;
    font-size: 23px;
  }

  .hero__description {
    max-width: 430px;
    font-size: var(--text-body);
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 350px;
    margin-top: 23px;
  }

  .hero__actions .button {
    min-height: 51px;
    justify-content: space-between;
  }

  .hero__visual-caption {
    right: 21px;
    bottom: 163px;
    left: 21px;
    flex-wrap: wrap;
    gap: 7px;
    font-size: var(--text-caption);
  }

  .hero__visual-caption-note {
    width: 100%;
    margin: 3px 0 0 16px;
    padding: 0;
    border: 0;
  }

  .hero__visual-index {
    display: none;
  }

  .hero__trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 144px;
    padding-block: 12px;
  }

  .trust-stat {
    min-height: 54px;
    padding-left: 14px;
  }

  .trust-stat:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .trust-stat:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .trust-stat strong {
    font-size: 23px;
  }

  .trust-stat > span {
    font-size: var(--text-caption);
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .visual-slot--solution {
    min-height: 225px;
    aspect-ratio: 1.45 / 1;
  }

  .solution-card__body {
    padding: 19px 17px 20px;
  }

  .solution-card__title h3 {
    font-size: 27px;
  }

  .solution-card__body p {
    font-size: var(--text-caption);
  }

  .section-link-row {
    align-items: flex-start;
    margin-top: 28px;
    padding-top: 17px;
  }

  .section-link-row__note {
    gap: 7px;
    font-size: var(--text-caption);
  }

  .section-link-row__note > span {
    max-width: 98px;
    font-size: var(--text-caption);
  }

  .text-link--large {
    font-size: var(--text-caption);
  }

  .process-explorer {
    margin-inline: calc(var(--gutter) * -1);
    border-right: 0;
    border-left: 0;
  }

  .process-tabs {
    overflow-x: auto;
    gap: 24px;
    padding: 0 21px;
    scrollbar-width: thin;
  }

  .process-tab {
    min-height: 57px;
    flex: 0 0 auto;
    gap: 7px;
    margin: 0;
    font-size: 18px;
  }

  .process-tab > span {
    font-size: var(--text-caption);
  }

  .process-panel {
    grid-template-columns: 1fr;
    padding: 15px 21px 22px;
  }

  .process-step,
  .process-step:first-child,
  .process-step:last-child,
  .process-step--flow {
    padding: 17px 0;
  }

  .process-step + .process-step {
    border-top: 1px solid #e1eaf2;
    border-left: 0;
  }

  .process-step__top {
    margin-bottom: 10px;
  }

  .visual-slot--process {
    min-height: 180px;
    aspect-ratio: 1.7 / 1;
  }

  .process-step h3 {
    margin-top: 12px;
    font-size: 21px;
  }

  .process-step--flow h3 {
    font-size: 25px;
  }

  .process-list li {
    min-height: 34px;
    font-size: var(--text-caption);
  }

  .section-link-row--process {
    margin-top: 18px;
  }

  .machines-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .visual-slot--machine {
    min-height: 234px;
  }

  .machine-card__body {
    padding-block: 15px 17px;
  }

  .machine-card h3 {
    min-height: 0;
    font-size: 26px;
  }

  .machine-card p {
    min-height: 0;
    margin-bottom: 9px;
  }

  .why-rayli__layout {
    grid-template-columns: 1fr;
    gap: 31px;
  }

  .why-rayli__visual {
    order: -1;
    min-height: 360px;
    aspect-ratio: 1.08 / 1;
  }

  .why-rayli__content > .section-index,
  .final-cta__content > .section-index {
    top: -2px;
  }

  .why-rayli h2 {
    font-size: clamp(45px, 11.6vw, 62px);
  }

  .proof-stats {
    margin-top: 23px;
  }

  .proof-stat {
    min-height: 93px;
  }

  .proof-stat strong {
    font-size: 34px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card {
    min-height: 420px;
    aspect-ratio: 0.95 / 1;
  }

  .project-card__overlay {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .project-card h3 {
    min-height: 0;
    font-size: 25px;
  }

  .final-cta__layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .final-cta h2 {
    font-size: clamp(47px, 12.4vw, 67px);
  }

  .final-cta__side-note {
    margin-top: 31px;
  }

  .quick-form {
    gap: 16px;
    padding: 23px 18px 20px;
  }

  .site-footer {
    padding-top: 54px;
  }

  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 22px;
    padding-bottom: 42px;
  }

  .site-footer__brand-block {
    grid-column: span 2;
  }

  .site-footer__bottom {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 13px 22px;
  }

  .site-footer__bottom > span {
    width: 100%;
  }

  .site-footer__bottom > div {
    gap: 15px;
  }

  .back-to-top {
    margin-left: auto;
  }
}

@media (max-width: 390px) {
  :root {
    --gutter: 17px;
  }

  .hero h1 {
    font-size: 57px;
  }

  .trust-stat {
    padding-left: 10px;
  }

  .trust-stat strong {
    font-size: 21px;
  }

  .trust-stat > span {
    font-size: var(--text-caption);
    letter-spacing: 0.05em;
  }

  .section-link-row {
    gap: 12px;
  }

  .section-link-row__note > span {
    max-width: 74px;
  }
}
