/* =========================================================
   GLOBAL RESPONSIVE BASE
   ========================================================= */

@media (max-width: 1180px) {
  .ct-container {
    width: min(var(--ct-container), calc(100% - 44px));
  }

  .ct-header__inner {
    grid-template-columns: auto 1fr;
    gap: 28px;
  }

  .ct-header__nav {
    grid-column: 2;
    justify-content: flex-end;
    min-width: 0;
  }

  .ct-header__menu {
    gap: 18px;
    justify-content: flex-end;
    min-width: 0;
  }

  .ct-header__menu a {
    padding: 32px 0;
    font-size: 10px;
  }

  .ct-hero__container {
    grid-template-columns: 1fr;
    gap: 56px;
    min-height: auto;
    padding-top: 150px;
  }

  .ct-hero__visual {
    max-width: 760px;
  }

  .ct-hero__image-frame {
    min-height: 560px;
  }

  .ct-systems__container {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .ct-systems__diagram {
    min-height: 500px;
  }

  .ct-service-card--large,
  .ct-service-card--small {
    grid-column: span 6;
  }
}

@media (max-width: 900px) {
  .ct-header {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
  }

  .ct-header.is-scrolled,
  .ct-header.is-menu-open {
    background: rgba(7, 10, 15, 0.74);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
  }

  .ct-header__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: auto;
    padding: 18px 0;
  }

  .ct-header__logo {
    height: 38px;
  }

  .ct-header__toggle {
    width: 44px;
    height: 44px;

    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.14);

    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;

    cursor: pointer;
  }

  .ct-header__toggle span {
    width: 18px;
    height: 2px;

    display: block;

    background: currentColor;

    transform-origin: center;

    transition:
      opacity 180ms ease,
      transform 220ms ease;
  }

  .ct-header__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .ct-header__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .ct-header__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .ct-header__nav {
    grid-column: 1 / -1;

    width: 100%;
    max-height: 0;

    justify-content: stretch;

    overflow: hidden;

    opacity: 0;

    transition:
      max-height 260ms ease,
      opacity 180ms ease;
  }

  .ct-header__nav.is-open {
    max-height: 420px;
    opacity: 1;
  }

  .ct-header__menu {
    width: 100%;

    flex-direction: column;
    align-items: stretch;

    gap: 0;
    padding: 12px 0 4px;
  }

  .ct-header__menu a {
    padding: 15px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    font-size: 11px;
    white-space: nowrap;
  }

  .ct-hero {
    min-height: auto;
  }

  .ct-hero__container {
    padding-top: 72px;
    padding-bottom: 84px;
  }

  .ct-hero__title,
  .ct-systems__title,
  .ct-services__title,
  .ct-process__title,
  .ct-partners__title,
  .ct-closing-cta__title {
    font-size: 56px;
    line-height: 0.96;
    letter-spacing: 0;
  }

  .ct-hero__lead,
  .ct-systems__lead,
  .ct-services__lead,
  .ct-process__lead,
  .ct-partners__lead,
  .ct-closing-cta__lead {
    font-size: 16px;
    line-height: 1.65;
  }

  .ct-hero__systems {
    margin-top: 44px;
  }

  .ct-hero__visual-label {
    left: 24px;
    bottom: 24px;
  }

  .ct-systems,
  .ct-services,
  .ct-process,
  .ct-partners {
    padding: 96px 0;
  }

  .ct-systems__diagram {
    min-height: 430px;
  }

  .ct-systems__shape {
    width: 280px;
    height: 280px;
  }

  .ct-system-line {
    opacity: 0.5;
  }

  .ct-services__head {
    margin-bottom: 48px;
  }

  .ct-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ct-service-card--large,
  .ct-service-card--small,
  .ct-service-card--wide {
    grid-column: span 1;
    min-height: 390px;
  }

  .ct-service-card h3 {
    font-size: 38px;
    letter-spacing: 0;
  }
}

@media (max-width: 640px) {
  .ct-container {
    width: min(var(--ct-container), calc(100% - 32px));
  }

  .ct-button {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
  }

  .ct-hero__container {
    display: flex;
    flex-direction: column;
    gap: 42px;
    padding-top: 58px;
    padding-bottom: 72px;
  }

  .ct-hero__content,
  .ct-hero__visual {
    width: 100%;
    max-width: none;
  }

  .ct-hero__eyebrow,
  .ct-systems__eyebrow,
  .ct-services__eyebrow,
  .ct-process__eyebrow,
  .ct-partners__eyebrow,
  .ct-closing-cta__eyebrow {
    margin-bottom: 22px;
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .ct-hero__title,
  .ct-systems__title,
  .ct-services__title,
  .ct-process__title,
  .ct-partners__title,
  .ct-closing-cta__title {
    font-size: 42px;
    line-height: 1;
  }

  .ct-hero__lead,
  .ct-systems__lead,
  .ct-services__lead,
  .ct-process__lead,
  .ct-partners__lead,
  .ct-closing-cta__lead {
    margin-top: 24px;
    font-size: 15px;
  }

  .ct-hero__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 32px;
  }

  .ct-hero__systems {
    gap: 10px 14px;
    margin-top: 36px;
    letter-spacing: 0.12em;
  }

  .ct-hero__systems span:not(:last-child)::after {
    margin-left: 14px;
  }

  .ct-hero__image-frame {
    min-height: 390px;
    clip-path: polygon(10% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 10%);
  }

  .ct-hero__interface {
    inset: 20px;
  }

  .ct-hero__network {
    right: -4%;
    transform: scale(0.82);
    transform-origin: center;
  }

  .ct-hero__visual-label {
    width: 132px;
    padding: 14px;
  }

  .ct-systems,
  .ct-services,
  .ct-process,
  .ct-partners {
    padding: 78px 0;
  }

  .ct-systems__diagram {
    width: min(100%, 340px);
    min-height: 330px;
    margin-inline: auto;
    overflow: visible;
  }

  .ct-systems__shape {
    width: 190px;
    height: 190px;
  }

  .ct-systems__shape::before {
    inset: 26px;
  }

  .ct-system-node {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .ct-system-node--security {
    top: 10%;
  }

  .ct-system-node--network {
    left: 8%;
  }

  .ct-system-node--power {
    right: 8%;
  }

  .ct-system-node--solar {
    left: 18%;
    bottom: 12%;
  }

  .ct-system-node--climate {
    right: 18%;
    bottom: 12%;
  }

  .ct-system-line {
    display: none;
  }

  .ct-systems__meta {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 48px;
  }

  .ct-services__grid {
    grid-template-columns: 1fr;
  }

  .ct-partners__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ct-service-card--large,
  .ct-service-card--small,
  .ct-service-card--wide {
    min-height: 340px;
  }

  .ct-service-card__top {
    top: 22px;
    left: 22px;
    right: 22px;
  }

  .ct-service-card__content {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }

  .ct-service-card__tags {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .ct-service-card h3 {
    font-size: 34px;
  }

  .ct-partners__grid {
    margin-top: 46px;
  }

  .ct-partner__logo-wrap {
    min-height: 96px;
    height: auto;
    padding: 18px 20px;
  }

  .ct-partner__logo {
    max-width: 140px;
    max-height: 54px;
  }

  .ct-closing-cta__inner {
    padding: 42px 24px 46px;
  }
}

@media (max-width: 420px) {
  .ct-header__menu {
    gap: 16px;
  }

  .ct-header__menu a {
    font-size: 9px;
  }

  .ct-hero__title,
  .ct-systems__title,
  .ct-services__title,
  .ct-process__title,
  .ct-partners__title,
  .ct-closing-cta__title {
    font-size: 34px;
  }

  .ct-hero__lead {
    max-width: 100%;
  }

  .ct-hero__actions {
    gap: 10px;
  }

  .ct-hero__image-frame {
    min-height: 300px;
  }

  .ct-systems__diagram {
    width: min(100%, 300px);
    min-height: 300px;
  }

  .ct-systems__shape {
    width: 170px;
    height: 170px;
  }

  .ct-system-node {
    gap: 7px;
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  .ct-system-node__dot {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.03);
  }

  .ct-system-node--building {
    font-size: 9px;
  }

  .ct-system-node--building .ct-system-node__dot {
    width: 11px;
    height: 11px;
  }

  .ct-system-node--security {
    top: 12%;
  }

  .ct-system-node--network {
    left: 8%;
  }

  .ct-system-node--power {
    right: 8%;
  }

  .ct-system-node--solar {
    left: 16%;
    bottom: 14%;
  }

  .ct-system-node--climate {
    right: 14%;
    bottom: 14%;
  }

  .ct-hero__visual-label {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 12px;
  }

  .ct-hero__visual-label > span {
    margin-bottom: 16px;
  }

  .ct-process-step {
    grid-template-columns: 50px 1fr;
    column-gap: 16px;
  }

  .ct-process-step__marker {
    width: 50px;
    height: 50px;
  }

  .ct-closing-cta__button {
    min-width: 0;
    gap: 20px;
  }

  .ct-closing-cta__tech-line,
  .ct-closing-cta__node {
    opacity: 0.28;
  }

  .ct-closing-cta__tech-line {
    width: 52%;
    bottom: 28px;
  }

  .ct-closing-cta__node--01 {
    right: 44%;
    bottom: 25px;
  }

  .ct-closing-cta__node--02 {
    right: 12%;
    bottom: 25px;
  }
}
