@media (max-width: 1120px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-feature {
    width: min(620px, 72vw);
  }
}

@media (max-height: 720px) and (min-width: 861px) {
  h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  }

  h2 {
    font-size: clamp(1.9rem, 3.6vw, 3.25rem);
  }

  .hero-lead,
  .section-heading p:not(.eyebrow),
  .about-section p,
  .contact-copy p {
    font-size: 0.96rem;
  }

  .service-card,
  .process-step,
  .testimonial-card {
    min-height: auto;
  }

  .project-feature p {
    display: none;
  }

  .carousel-stage {
    min-height: min(38vh, 320px);
    grid-template-columns: minmax(280px, 0.95fr) minmax(240px, 0.75fr);
    gap: 22px;
  }

  .project-feature {
    width: 100%;
    max-width: 420px;
  }

  .project-feature img {
    height: clamp(170px, 24vh, 220px);
  }
}

@media (max-width: 860px) {
  :root {
    --shell: min(100% - 28px, 1180px);
    --header: 70px;
  }

  .background-system {
    background:
      radial-gradient(circle at 50% 42%, rgba(112, 255, 116, 0.1), transparent 40%),
      #020602;
  }

  .background-system::before {
    display: none;
  }

  .bg-layer {
    inset: -18%;
    width: 136%;
    height: 136%;
    object-position: 62% center;
  }

  .bg-particles,
  .bg-combined {
    display: none;
  }

  .background-system::after {
    background:
      radial-gradient(ellipse at 50% 43%, transparent 0 30%, rgba(2, 7, 3, 0.2) 58%, rgba(1, 4, 2, 0.88) 100%),
      linear-gradient(90deg, rgba(1, 4, 2, 0.86), transparent 30%, transparent 70%, rgba(1, 4, 2, 0.86)),
      linear-gradient(180deg, rgba(1, 4, 2, 0.32), transparent 28%, rgba(1, 4, 2, 0.64));
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-panel {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(7, 9, 15, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    display: grid;
    gap: 8px;
  }

  .nav-links a {
    padding: 9px 0;
  }

  .scene {
    padding: calc(var(--header) + 6px) 0 54px;
  }

  .scene > .shell {
    max-height: calc(100svh - var(--header) - 62px);
  }

  .hero-grid,
  .split-layout,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-copy {
    padding: 18px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 9.5vw, 3rem);
  }

  h2 {
    font-size: clamp(1.52rem, 7.2vw, 2.35rem);
  }

  .hero-lead,
  .section-heading p:not(.eyebrow),
  .about-section p,
  .contact-copy p {
    font-size: 0.95rem;
  }

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

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    display: none;
  }

  .interface-stack {
    width: min(72vw, 310px);
    transform: none;
  }

  .signal-list,
  .process-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .signal-list li:nth-child(n + 5),
  .process-step:nth-child(n + 5),
  .testimonial-card.is-prev,
  .testimonial-card.is-next,
  .testimonial-card.is-hidden {
    display: none;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

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

  .service-card,
  .process-step {
    min-height: auto;
    padding: 15px;
  }

  .signal-list li {
    min-height: auto;
    padding: 10px 10px 10px 28px;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .signal-list li::before {
    left: 11px;
    width: 6px;
    height: 6px;
  }

  .process-step {
    min-height: 96px;
    padding: 10px;
  }

  .process-step span {
    margin-bottom: 7px;
    font-size: 0.72rem;
  }

  .process-step strong {
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .process-step p {
    display: none;
  }

  .service-card {
    min-height: 118px;
    padding: 12px;
  }

  .service-card h3 {
    margin-bottom: 6px;
    font-size: 0.88rem;
    line-height: 1.13;
  }

  .service-card p {
    font-size: 0.74rem;
    line-height: 1.28;
  }

  .card-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 9px;
  }

  .carousel-stage {
    grid-template-columns: 1fr;
    min-height: 40vh;
  }

  .project-feature {
    width: 100%;
    max-width: 100%;
  }

  .project-feature img {
    height: clamp(150px, 30vh, 220px);
  }

  .project-feature div {
    padding: 12px;
  }

  .project-feature p {
    display: none;
  }

  .project-orbit {
    display: none;
  }

  .testimonial-slider {
    gap: 12px;
  }

  .testimonial-stage {
    min-height: min(40vh, 300px);
  }

  .testimonial-card {
    width: min(100%, 335px);
    min-height: min(36vh, 270px);
    padding: 18px;
  }

  .testimonial-card.is-active {
    transform: translate(-50%, -50%) translateZ(40px) scale(1);
  }

  .testimonial-avatar {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
  }

  .testimonial-meta {
    margin-bottom: 10px;
  }

  .testimonial-card p {
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .testimonial-controls {
    gap: 12px;
    margin-bottom: 42px;
    transform: translateY(-16px);
  }

  .testimonial-arrow {
    width: 38px;
    height: 38px;
  }

  .carousel-controls {
    gap: 10px;
    margin-bottom: 42px;
    transform: translateY(-16px);
  }

  .carousel-progress {
    min-width: 0;
    flex: 1;
    font-size: 0.9rem;
  }

  .about-section .layer-panel {
    padding: 18px;
  }

  .about-section p {
    margin-bottom: 10px;
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .about-section p[data-copy="about.body2"] {
    display: none;
  }

  .about-profile-card {
    min-height: auto;
    padding: 13px 14px;
    width: 100%;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    border-radius: var(--radius);
  }

  .about-profile-card::before,
  .about-profile-card::after,
  .about-socials,
  .about-tags {
    display: none;
  }

  .about-photo {
    width: 58px;
    height: 58px;
    padding: 3px;
  }

  .about-profile-text {
    margin-top: 0;
    text-align: left;
  }

  .about-profile-text strong {
    font-size: 1rem;
  }

  .about-profile-text span {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .about-orb {
    min-height: 19vh;
  }

  .about-orb span {
    width: min(150px, 48%);
    font-size: 1rem;
  }

  .contact-copy .contact-facts {
    display: none;
  }

  .contact-section .contact-copy p:not(.eyebrow) {
    display: none;
  }

  .contact-section h2 {
    margin-bottom: 0;
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }

  .contact-panel {
    padding: 18px;
  }

  .contact-email {
    margin-bottom: 18px;
    font-size: clamp(1.15rem, 6vw, 1.6rem);
  }

  .contact-actions,
  .contact-actions .btn {
    width: 100%;
  }

  .scene-indicator {
    right: 8px;
    top: 50%;
    z-index: 92;
    display: grid;
    gap: 0;
    padding: 8px 5px;
    border: 1px solid rgba(134, 255, 156, 0.14);
    border-radius: 999px;
    background: rgba(3, 8, 5, 0.32);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
  }

  .scene-counter {
    display: none;
  }

  .scene-dots {
    gap: 7px;
  }

  .scene-dots button {
    width: 7px;
    height: 7px;
    border-color: rgba(134, 255, 156, 0.38);
    background: rgba(245, 251, 255, 0.06);
  }

  .scene-dots button.is-active {
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(170, 255, 130, 0.72);
    transform: scale(1.35);
  }

  .site-footer {
    left: 14px;
    right: 14px;
    bottom: 8px;
    transform: none;
  }

  .site-footer .footer-links {
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 7px 9px;
  }

  .site-footer .footer-links a {
    font-size: 0.66rem;
  }
}

@media (max-width: 860px) and (max-height: 720px) {
  :root {
    --header: 62px;
  }

  .brand-logo {
    height: 38px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .scene {
    padding: calc(var(--header) + 4px) 0 46px;
  }

  .scene > .shell {
    max-height: calc(100svh - var(--header) - 50px);
  }

  .hero-copy {
    padding: 16px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(1.9rem, 8.8vw, 2.55rem);
  }

  h2 {
    margin-bottom: 10px;
    font-size: clamp(1.34rem, 6.4vw, 2rem);
  }

  .eyebrow {
    margin-bottom: 8px;
  }

  .hero-lead,
  .section-heading p:not(.eyebrow),
  .about-section p,
  .contact-copy p {
    margin-bottom: 16px;
    font-size: 0.88rem;
    line-height: 1.38;
  }

  .section-heading p:not(.eyebrow) {
    display: none;
  }

  .btn {
    min-height: 42px;
    padding: 9px 14px;
  }

  .service-grid {
    gap: 8px;
  }

  .service-card {
    min-height: 104px;
    padding: 10px;
  }

  .service-card h3 {
    font-size: 0.82rem;
  }

  .service-card p {
    font-size: 0.69rem;
  }

  .card-icon {
    width: 23px;
    height: 23px;
    margin-bottom: 7px;
  }

  .signal-list,
  .process-track {
    gap: 7px;
  }

  .signal-list li {
    padding: 9px 9px 9px 25px;
    font-size: 0.72rem;
  }

  .process-step {
    min-height: 82px;
    padding: 9px;
  }

  .process-step strong {
    font-size: 0.76rem;
  }

  .about-section .layer-panel {
    padding: 15px;
  }

  .about-section p {
    font-size: 0.8rem;
    line-height: 1.32;
  }

  .about-profile-card {
    padding: 10px 12px;
  }

  .about-photo {
    width: 48px;
    height: 48px;
  }

  .testimonial-stage {
    min-height: min(38vh, 255px);
  }

  .project-feature img {
    height: clamp(130px, 26vh, 180px);
  }

  .testimonial-card {
    min-height: 232px;
    padding: 15px;
  }

  .testimonial-card p {
    font-size: 0.78rem;
    line-height: 1.36;
  }

  .testimonial-avatar {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
  }

  .site-footer .footer-links {
    padding: 6px 8px;
  }

  .site-footer .footer-links a {
    font-size: 0.61rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
