/* Mobile fit pass: preserve the desktop composition and its components. */
@media (max-width: 640px) {
  html, body.index-page { max-width: 100%; overflow-x: clip; }
  body.index-page .home-main { width: 100%; overflow-x: clip !important; }
  body.index-page .home-main :is(section, article, header, figure, div) { min-width: 0; }


  /* Keep the release cards and images; only remove rigid text heights. */
  body.index-page .home-editorial-news {
    width: calc(100% - 32px) !important;
    padding: 70px 0 76px !important;
  }
  body.index-page .home-editorial-article,
  body.index-page .home-editorial-article-secondary {
    min-height: 0 !important;
    gap: 22px !important;
    padding: 28px 0 !important;
  }
  body.index-page .home-editorial-copy {
    min-height: 0 !important;
    gap: 24px !important;
    padding: 0 !important;
  }
  body.index-page .home-editorial-copy h1,
  body.index-page .home-editorial-copy h2,
  body.index-page .home-editorial-article-secondary .home-editorial-copy h2 {
    max-width: 15ch !important;
    font-size: var(--cnw-display-size) !important;
    line-height: var(--cnw-display-leading) !important;
    overflow-wrap: normal !important;
  }
  body.index-page .home-editorial-media {
    width: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 12px;
  }
  body.index-page .home-editorial-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 14px !important;
  }
  body.index-page .home-editorial-article::after { display: none !important; }

  /* Original orbit: same animation/path, all cards visible, safe inner frame. */
  body.index-page .home-orbit-center {
    top: 40% !important;
    width: calc(100% - 44px) !important;
  }
  body.index-page .home-orbit-stage { z-index: auto !important; }
  body.index-page .home-orbit-title {
    font-size: clamp(25px, 7.3vw, 30px) !important;
    line-height: 1.04 !important;
  }
  body.index-page .home-orbit-title > span { white-space: normal !important; }
  body.index-page .home-orbit-card,
  body.index-page .home-orbit-card:nth-child(even) { display: block !important; }
  body.index-page .home-orbit-button { min-height: 42px; margin-top: 24px !important; }
  body.index-page .home-orbit-hint { bottom: max(14px, env(safe-area-inset-bottom)); white-space: nowrap; }

  /* Preserve the 3D publication carousel while keeping controls on-screen. */
  body.index-page .experts-carousel {
    --card-width: min(66vw, 280px) !important;
    min-height: 550px !important;
    padding-top: 126px !important;
    padding-bottom: 54px !important;
  }
  body.index-page .experts-carousel__heading {
    width: calc(100% - 36px) !important;
    font-size: var(--cnw-display-size) !important;
  }
  body.index-page .experts-carousel__nav { width: 42px; height: 42px; }
  body.index-page .experts-carousel__nav--prev { left: 8px !important; }
  body.index-page .experts-carousel__nav--next { right: 8px !important; }

  body.index-page .home-latest-research,
  body.index-page .home-terminal-cta { padding-left: 16px !important; padding-right: 16px !important; }
  body.index-page .home-terminal-cta {
    --terminal-progress: 0;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    background: #fff !important;
  }
  body.index-page .home-terminal-cta > div {
    position: relative !important;
    width: var(--terminal-panel-width, 100vw) !important;
    max-width: none !important;
    overflow: hidden !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: var(--terminal-panel-radius, 16px) !important;
    clip-path: inset(0 var(--terminal-clip, clamp(28px, 9vw, 44px)) round var(--terminal-panel-radius, 16px)) !important;
    box-shadow: none !important;
    will-change: clip-path !important;
  }
  body.index-page .home-latest-research-head,
  body.index-page .home-research-split { width: 100% !important; }
  body.index-page .home-research-mosaic,
  body.index-page .home-research-mosaic-stage { overflow: hidden !important; }
  body.index-page .home-research-side-item h3 { overflow-wrap: normal !important; }

  body.index-page .home-news-collage {
    width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  body.index-page .home-news-grid { gap: 12px !important; }
  body.index-page .home-news-tile { max-width: 100%; }
  body.index-page .home-terminal-cta.is-terminal-expanded > div {
    border-radius: 0 !important;
  }
}

/* Desktop closing CTA: the artwork sits at viewport width and the scroll
   animation reveals it from the normal content frame to both screen edges. */
@media (min-width: 641px) {
  body.index-page .home-main > .home-terminal-cta > div {
    width: var(--terminal-panel-width, min(calc(100% - 64px), 1560px)) !important;
    max-width: none !important;
  }
}

@media (max-width: 360px) {
  body.index-page .home-orbit-title { font-size: 29px !important; }
  body.index-page .home-orbit-hint { font-size: 9px; }
}

/* Phone layout keeps the desktop stack choreography. The white product scene
   stays pinned for one viewport and the black research scene then travels over
   it. Product cards become a horizontal rail so the pinned panel never needs a
   nested vertical scrollbar. */
@media (max-width: 680px) {
  body.index-page .home-ruty-announcement {
    padding: 12px 12px 54px !important;
  }

  body.index-page .home-ruty-panel,
  body.index-page .home-ruty-announcement.is-ruty-expanded .home-ruty-panel {
    width: 100% !important;
    height: 540px !important;
    min-height: 520px !important;
    max-height: none !important;
    overflow: hidden !important;
    border-radius: 16px !important;
  }

  body.index-page .home-main > .home-model-stack {
    height: auto !important;
    margin-top: 0 !important;
  }

  body.index-page .home-model-stack-scene--cards {
    position: relative !important;
    z-index: var(--scene-z, 10) !important;
    height: 200svh !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    pointer-events: none !important;
  }

  body.index-page .home-model-stack-scene--cards .home-model-stack-panel {
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    height: 100svh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    clip-path: none !important;
    transform: none !important;
    border-radius: 0 !important;
    pointer-events: auto !important;
  }

  body.index-page .home-benchmark-inner {
    width: calc(100% - 28px) !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 72px 0 28px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.index-page .home-benchmark-inner > h2 {
    max-width: 20.5ch !important;
    font-size: var(--cnw-display-size) !important;
    line-height: var(--cnw-display-leading) !important;
  }

  body.index-page .home-benchmark-tabs {
    width: 100% !important;
    height: clamp(390px, 52svh, 420px) !important;
    flex: 0 0 clamp(390px, 52svh, 420px) !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: min(86vw, 326px) !important;
    gap: 10px !important;
    margin-top: 28px !important;
    padding: 0 1px 2px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: 1px !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }

  body.index-page .home-benchmark-tabs::-webkit-scrollbar { display: none; }

  body.index-page .home-benchmark-tab {
    height: 100% !important;
    min-height: 0 !important;
    padding: 22px !important;
    border-radius: 15px !important;
    scroll-snap-align: start;
  }

  body.index-page .home-benchmark-tab-icon {
    width: 52px !important;
    height: 52px !important;
  }

  body.index-page .home-benchmark-tab-icon svg {
    width: 25px !important;
    height: 25px !important;
  }

  body.index-page .home-benchmark-tab h3 {
    margin-top: 38px !important;
    font-size: var(--cnw-heading-size) !important;
    line-height: 1 !important;
  }

  body.index-page .home-benchmark-tab p {
    margin-top: 20px !important;
    padding-top: 0 !important;
    font-size: var(--cnw-body-size) !important;
    line-height: var(--cnw-body-leading) !important;
  }

  body.index-page .home-benchmark-tab b {
    margin-top: 24px !important;
  }

  body.index-page .home-model-stack-scene--orbit {
    height: 140svh !important;
    min-height: 0 !important;
    margin-top: -100svh !important;
  }
}

/* Ruty remains in normal flow. Its canvas already has the final viewport
   width; the animated clip opens from the standard 12px inset to full bleed. */
@media (max-width: 640px) {
  body.index-page .home-ruty-announcement {
    position: relative !important;
    z-index: auto !important;
    min-height: 0 !important;
    padding: 12px 12px 54px !important;
    overflow: hidden !important;
  }

  body.index-page .home-ruty-panel,
  body.index-page .home-ruty-announcement.is-ruty-expanded .home-ruty-panel {
    position: relative !important;
    top: auto !important;
    left: calc(50% + 12px) !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
    height: var(--ruty-panel-height, min(540px, calc(100svh - 88px))) !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    overflow: hidden !important;
    border-radius: var(--ruty-panel-radius, 16px) !important;
    clip-path: inset(0 var(--ruty-clip-x, 12px) 0 var(--ruty-clip-x, 12px) round var(--ruty-panel-radius, 16px)) !important;
    box-shadow: 0 18px 44px rgba(31, 55, 77, .13) !important;
    contain: paint !important;
  }

  body.index-page .home-ruty-panel-art,
  body.index-page .home-ruty-panel-art iframe {
    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
  }

  body.index-page .home-ruty-panel-art iframe {
    left: 0 !important;
    transform: none !important;
  }

  body.index-page .home-main > .home-model-stack {
    position: relative !important;
    z-index: auto !important;
    height: auto !important;
    margin-top: 0 !important;
  }

  body.index-page .home-model-stack-scene--orbit {
    position: relative !important;
    z-index: var(--scene-z, 220) !important;
    height: 140svh !important;
    min-height: 0 !important;
    margin-top: -100svh !important;
    pointer-events: none !important;
  }

  body.index-page .home-model-stack-scene--orbit .home-model-stack-panel {
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    height: 100svh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border-radius: var(--panel-radius-live, 20px) !important;
    clip-path: inset(0 calc(var(--panel-inset, 32px) / 2) round var(--panel-radius-live, 20px)) !important;
    transform: none !important;
    transform-origin: center bottom !important;
    pointer-events: auto !important;
  }
}
html.index-root{scrollbar-width:none}
html.index-root::-webkit-scrollbar{width:0;height:0;display:none}
