/* ================================================================
   RESPONSIVE STYLES
   Breakpoints ordered from large screens to small screens.
   ================================================================ */

@media (max-width: 1199.98px) {
  :root {
    --section-space: 90px;
  }
  .hero h1,
  .hero h2 {
    font-size: 4.375rem;
  }
  .hero-controls {
    bottom: 30px !important;
  }
  .process-grid article {
    padding: 0 12px;
  }
}

@media (max-width: 1199.98px) {
  .catalog-card {
    padding: 32px 28px;
    grid-template-columns: 72px 1fr;
  }
  .catalog-icon {
    width: 66px;
    height: 66px;
  }
  .fit-radar {
    transform: scale(0.9);
  }
}

@media (max-width: 1199.98px) {
  .hero .hero-controls {
    padding-right: 24px;
  }
}

@media (max-width: 1199.98px) {
  .intersection-map {
    grid-template-columns: 1fr 180px 1fr;
  }
  .founder-content {
    padding: 65px 50px;
  }
  .operating-flow {
    grid-template-columns: 1fr 48px 1fr 48px 1fr;
  }
}

@media (max-width: 1199.98px) {
  .conversation-intro {
    padding: 50px 35px;
  }
  .contact-form-shell {
    padding: 45px 38px;
  }
  .location-panel {
    padding: 65px 45px;
  }
}

@media (max-width: 1199.98px) {
  .product-content {
    padding: 42px 36px;
  }
  .product-info-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .why-heading {
    padding: 48px 38px;
  }
}

@media (max-width: 991.98px) {
  .navbar {
    min-height: 76px;
  }
  body.mobile-menu-open {
    overflow: hidden;
    overscroll-behavior: none;
  }
  .mobile-menu-backdrop {
    position: fixed;
    z-index: 1998;
    inset: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    background: rgba(16, 12, 18, 0.68);
    backdrop-filter: blur(2px);
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .mobile-menu-backdrop.is-open {
    visibility: visible;
    opacity: 1;
  }
  .mobile-nav-panel {
    position: fixed;
    z-index: 1999;
    inset: 0 0 0 auto;
    width: min(86vw, 370px);
    height: 100vh;
    height: 100dvh;
    padding: 0 30px 34px;
    display: flex !important;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    visibility: hidden;
    background: var(--white);
    box-shadow: -18px 0 45px rgba(20, 0, 24, 0.18);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.48s;
  }
  .mobile-nav-panel.is-open {
    visibility: visible;
    transform: translate3d(0, 0, 0);
  }
  .mobile-menu-header {
    min-height: 96px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }
  .mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .mobile-menu-brand .brand-mark {
    width: 43px;
    height: 43px;
  }
  .mobile-menu-close {
    width: 42px;
    height: 42px;
    border: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--secondary);
    font-size: 1.25rem;
    transition: var(--transition);
  }
  .mobile-menu-close:hover,
  .mobile-menu-close:focus-visible {
    background: var(--primary);
  }
  .mobile-nav-panel .navbar-nav {
    width: 100%;
    margin: 0 !important;
    align-items: stretch !important;
  }
  .mobile-nav-panel .nav-item {
    border-bottom: 1px solid var(--border);
  }
  .mobile-nav-panel .nav-link {
    padding: 17px 2px !important;
    color: var(--secondary);
    font-size: 0.92rem;
  }
  .nav-link:after {
    display: none;
  }
  .mobile-nav-panel .header-cta {
    width: 100%;
    margin: auto 0 0 !important;
    justify-content: center;
  }
  .navbar-toggler {
    position: relative;
    z-index: 2;
    padding: 8px;
  }
  .hero-slider,
  .hero-slide {
    height: 700px;
  }
  .hero h1,
  .hero h2 {
    font-size: 4rem;
  }
  .value-item {
    padding: 22px 15px;
  }
  .about-visual img {
    height: 500px;
  }
  .services-intro {
    margin-top: 20px;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 45px 0;
  }
  .process-grid:before {
    display: none;
  }
  .insight-panel {
    padding: 45px;
  }
  .insight-panel .btn {
    margin-top: 10px;
  }
  .site-footer {
    padding-top: 160px;
  }
}

@media (max-width: 991.98px) {
  .service-orbit {
    margin: 25px auto 0;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .approach-path {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 20px;
  }
  .approach-path::before {
    display: none;
  }
  .fit-radar {
    max-width: 650px;
    margin: 25px auto 0;
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .inner-hero {
    padding: 85px 0 70px;
  }
  .about-collage-main {
    height: 500px;
  }
  .intersection-map {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "core core" "business finance" "tech tech";
  }
  .intersection-map::before,
  .intersection-map::after {
    display: none;
  }
  .node-tech {
    width: calc(50% - 16px);
    justify-self: center;
  }
  .founder-photo {
    min-height: 620px;
  }
  .founder-content {
    padding: 60px 45px;
  }
  .operating-flow {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .flow-stage-vyan {
    transform: none;
  }
  .about-vision-panel {
    grid-template-columns: 110px 1fr;
    padding: 45px;
  }
}

@media (max-width: 991.98px) {
  .channel-grid {
    grid-template-columns: 1fr;
  }
  .channel-card {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .channel-card:last-child {
    border-bottom: 0;
  }
  .location-layout {
    grid-template-columns: 1fr;
  }
  .map-wrap,
  .map-wrap iframe {
    min-height: 430px;
  }
}

@media (max-width: 991.98px) {
  .product-launchboard {
    max-width: 650px;
    margin: 20px auto 0;
  }
  .product-story {
    grid-template-columns: 1fr;
  }
  .product-story-reverse .product-visual,
  .product-story-reverse .product-content {
    order: initial;
  }
  .product-visual {
    min-height: 520px;
  }
  .product-info-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
  .why-panel {
    grid-template-columns: 1fr;
  }
  .demo-shell {
    grid-template-columns: 90px 1fr;
  }
  .demo-shell .btn {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-space: 72px;
  }
  .brand-mark {
    width: 42px;
    height: 42px;
  }
  .brand-copy strong {
    font-size: 1.3rem;
  }
  .hero-slider,
  .hero-slide {
    height: 650px;
    min-height: 650px;
  }
  .hero-content {
    padding-bottom: 40px;
  }
  .hero h1,
  .hero h2 {
    font-size: clamp(2.75rem, 12vw, 4rem);
  }
  .hero-lead {
    font-size: 1rem;
  }
  .hero-controls {
    justify-content: flex-start;
    bottom: 18px !important;
  }
  .value-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 20px 25px;
    min-height: 100px;
  }
  .about-visual {
    padding: 0 25px 38px 0;
  }
  .about-visual img {
    height: 420px;
  }
  .about-badge {
    min-width: 235px;
    padding: 22px;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .process-grid article {
    max-width: 340px;
    margin: auto;
  }
  .insight-section {
    margin-bottom: -70px;
  }
  .insight-panel {
    padding: 38px 28px;
  }
  .site-footer {
    padding-top: 135px;
  }
  .footer-bottom p {
    margin-bottom: 8px;
  }
  .footer-bottom a {
    margin: 0 20px 0 0;
  }
}

@media (max-width: 767.98px) {
  .legal-document {
    padding: 38px 24px;
  }
  .legal-document section {
    padding-bottom: 22px;
    margin-bottom: 26px;
  }
  .legal-page .site-footer {
    padding-top: 70px;
  }
}

@media (max-width: 767.98px) {
  .service-orbit {
    aspect-ratio: auto;
    min-height: 535px;
  }
  .service-orbit::before {
    inset: 10% 9%;
  }
  .service-orbit::after {
    inset: 24% 26%;
  }
  .orbit-node {
    width: 94px;
    height: 76px;
  }
  .orbit-1 {
    left: 0;
    top: 6%;
  }
  .orbit-2 {
    left: 38%;
  }
  .orbit-3 {
    right: 0;
    top: 12%;
  }
  .orbit-4 {
    right: 0;
    bottom: 9%;
  }
  .orbit-5 {
    left: 38%;
  }
  .orbit-6 {
    left: 0;
    bottom: 12%;
  }
  .catalog-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .approach-path {
    grid-template-columns: 1fr;
  }
  .approach-step {
    max-width: 350px;
    margin: auto;
  }
  .approach-step p {
    min-height: 0;
  }
  .fit-radar {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .fit-radar::before {
    display: none;
  }
  .fit-center,
  .fit-item {
    position: relative;
    inset: auto !important;
    width: 100%;
    transform: none;
  }
  .fit-center {
    height: 125px;
    border-radius: 0;
  }
  .fit-item {
    min-height: 92px;
  }
  .client-fit {
    padding-bottom: 150px;
  }
}

@media (max-width: 767.98px) {
  .hero .hero-controls {
    bottom: 22px !important;
    justify-content: flex-end;
    gap: 9px;
    padding: 0 18px;
  }
  .hero .swiper-pagination {
    min-width: 42px;
  }
  .hero .swiper-button-prev,
  .hero .swiper-button-next {
    flex-basis: 46px;
    width: 46px !important;
    height: 46px !important;
  }
}

@media (max-width: 767.98px) {
  .inner-hero {
    padding: 70px 0 60px;
  }
  .about-collage {
    padding: 0 24px 42px 0;
  }
  .about-collage-main {
    height: 410px;
  }
  .about-collage-card {
    min-width: 250px;
    padding: 22px;
  }
  .intersection-map {
    grid-template-columns: 1fr;
    grid-template-areas: "core" "business" "finance" "tech";
  }
  .node-tech {
    width: 100%;
  }
  .principle-grid {
    grid-template-columns: 1fr;
  }
  .founder-photo {
    min-height: 480px;
  }
  .founder-content {
    padding: 50px 28px;
  }
  .about-vision {
    padding-bottom: 145px;
  }
  .about-vision-panel {
    grid-template-columns: 1fr;
    padding: 38px 28px;
  }
  .vision-icon {
    width: 75px;
    height: 75px;
    margin-bottom: 22px;
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .reveal-item.reveal-left:not(.is-visible),
  .reveal-item.reveal-right:not(.is-visible) {
    transform: translate3d(0, 26px, 0);
  }
  .contact-channels {
    margin-top: 0;
  }
  .channel-card {
    min-height: 145px;
    padding: 27px 22px;
  }
  .conversation-intro,
  .contact-form-shell {
    padding: 40px 25px;
  }
  .location-panel {
    padding: 50px 25px;
  }
  .map-wrap,
  .map-wrap iframe {
    min-height: 360px;
  }
  .contact-page .site-footer {
    padding-top: 70px;
  }
}

@media (max-width: 767.98px) {
  .launchboard-topbar {
    padding: 0 16px;
  }
  .launch-status {
    font-size: 0.55rem;
  }
  .launchboard-body {
    padding: 20px 16px;
  }
  .product-module-grid {
    grid-template-columns: 1fr;
  }
  .product-module-grid article {
    min-height: 78px;
  }
  .launch-pipeline {
    padding-inline: 5px;
  }
  .launch-pipeline li {
    font-size: 0.52rem;
  }
  .product-visual {
    min-height: 360px;
  }
  .product-content {
    padding: 34px 24px;
  }
  .product-info-grid {
    grid-template-columns: 1fr;
  }
  .product-info-grid ul {
    grid-template-columns: 1fr;
  }
  .benefit-strip {
    align-items: flex-start;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-heading {
    padding: 42px 27px;
  }
  .demo-shell {
    grid-template-columns: 1fr;
    padding: 35px 25px;
  }
  .demo-shell .btn {
    grid-column: 1;
  }
  .demo-icon {
    width: 75px;
    height: 75px;
    font-size: 2rem;
  }
  .products-page .site-footer {
    padding-top: 70px;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .brand-copy small {
    font-size: 0.48rem;
  }
  .hero h1,
  .hero h2 {
    font-size: 2.85rem;
  }
  .hero-slide {
    background-position: 62% center;
  }
  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(30, 0, 36, 0.96),
      rgba(53, 1, 63, 0.72)
    );
  }
  .hero .btn-lg {
    padding: 13px 18px;
    font-size: 0.82rem;
  }
  .section-title {
    font-size: 2.35rem;
  }
  .about-visual img {
    height: 355px;
  }
  .service-card {
    min-height: 310px;
  }
  .scroll-top {
    right: 15px;
    bottom: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
