/*
 * V86 homepage mobile refinement.
 * Additive, homepage-only overrides: the accepted desktop layout is untouched.
 */
@media (max-width: 768px) {
  /* Keep the three audience entrances unmistakably horizontal. */
  .hero-role-dock {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: 72px !important;
    min-height: 72px !important;
    width: calc(100% - 24px) !important;
  }

  .hero-role-dock a {
    min-width: 0;
    padding: 8px 3px;
  }

  .hero-role-dock strong {
    font-size: clamp(14px, 3.9vw, 15px) !important;
  }

  .hero-role-dock small {
    font-size: 8px !important;
    letter-spacing: 0;
  }

  /* Compact the product reveal without changing its information or image. */
  .product-reveal,.js .product-reveal {
    padding: 62px 0 70px !important;
  }

  .product-reveal-inner {
    gap: 23px !important;
  }

  .product-reveal-media img {
    max-height: 342px;
  }

  .product-reveal-eyebrow {
    font-size: clamp(27px, 7.4vw, 31px) !important;
  }

  .product-reveal-title {
    font-size: clamp(20px, 5.7vw, 23px) !important;
    line-height: 1.44 !important;
  }

  .product-reveal-copy .lead {
    margin-top: 14px !important;
    font-size: 13.5px !important;
    line-height: 1.74 !important;
  }

  /* Enterprise solutions: three equal mobile columns, not a long vertical stack. */
  .enterprise-ai-section {
    padding: 64px 0 70px !important;
  }

  .enterprise-ai-shell {
    width: min(calc(100% - 24px), 620px);
  }

  .enterprise-ai-kicker {
    margin-bottom: 11px !important;
    font-size: 9px;
    letter-spacing: .14em;
  }

  .enterprise-ai-shell h2 {
    max-width: 13em !important;
    font-size: clamp(26px, 7.2vw, 29px) !important;
    font-weight: 540 !important;
    line-height: 1.36 !important;
  }

  .enterprise-ai-shell h2 span {
    display: block !important;
  }

  .enterprise-ai-intro {
    max-width: 28em !important;
    margin-top: 13px !important;
    font-size: 13px !important;
    line-height: 1.72 !important;
  }

  .enterprise-solution-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    align-items: stretch;
    margin-top: 36px !important;
  }

  .enterprise-solution-card {
    display: flex !important;
    min-width: 0;
    min-height: 0 !important;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 8px !important;
    border: 0 !important;
    border-left: 1px solid #e3e7eb !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center;
  }

  .enterprise-solution-card:first-child {
    border-left: 0 !important;
  }

  .enterprise-solution-icon {
    width: 32px !important;
    height: 32px !important;
    margin: 0 auto !important;
  }

  .enterprise-solution-icon svg {
    width: 30px !important;
    height: 30px !important;
    stroke-width: 1.7 !important;
  }

  .enterprise-solution-card strong {
    margin-top: 11px !important;
    font-size: clamp(13px, 3.65vw, 15px) !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    white-space: nowrap;
  }

  .enterprise-solution-card p {
    display: -webkit-box;
    max-width: 10em !important;
    margin: 7px auto 0 !important;
    overflow: hidden;
    color: #72777d !important;
    font-size: 10.5px !important;
    line-height: 1.55 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .enterprise-solution-actions {
    margin-top: 31px !important;
  }

  .enterprise-solution-actions .button {
    min-width: 136px !important;
    min-height: 42px;
    padding-inline: 20px;
    font-size: 13px;
  }

  /* LoLR Butterfly remains a banner, with a calmer mobile text hierarchy. */
  .platform-section {
    padding-top: 64px !important;
  }

  .platform-section .platform-copy {
    width: calc(100% - 32px) !important;
    margin-bottom: 30px !important;
  }

  .platform-section .eyebrow {
    margin-bottom: 12px !important;
    font-size: clamp(27px, 7.4vw, 30px) !important;
  }

  .platform-section .eyebrow .en-kicker {
    margin-bottom: 7px !important;
    font-size: 9px !important;
  }

  .platform-copy h2 {
    font-size: clamp(21px, 5.8vw, 24px) !important;
    line-height: 1.45 !important;
  }

  .platform-copy .lead {
    margin-top: 15px !important;
    font-size: 13.5px !important;
    line-height: 1.74 !important;
  }

  .platform-copy .actions {
    margin-top: 21px;
  }

  .platform-section .platform-visual {
    aspect-ratio: 4 / 3 !important;
  }

  /* Professional scenarios: one primary card, side previews and native swipe. */
  .professional-stories-section {
    --v86-story-width: clamp(248px, 72vw, 280px);
    padding: 66px 0 72px !important;
  }

  .stories-heading,.js .stories-heading {
    width: calc(100% - 32px) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .stories-kicker,.js .stories-kicker {
    margin-bottom: 11px !important;
    font-size: 9px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .stories-title,.js .stories-title {
    max-width: 13em !important;
    font-size: clamp(26px, 7.2vw, 29px) !important;
    font-weight: 540 !important;
    line-height: 1.37 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .stories-title span {
    display: block !important;
  }

  .stories-intro,.js .stories-intro {
    margin-top: 13px !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .stories-wide {
    width: 100% !important;
    margin-top: 31px !important;
  }

  .stories-rail,.js .stories-rail {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 12px !important;
    box-sizing: border-box;
    padding: 4px calc((100vw - var(--v86-story-width)) / 2) 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: transparent !important;
    opacity: 1 !important;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: calc((100vw - var(--v86-story-width)) / 2);
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    visibility: visible !important;
    transform: none !important;
    -webkit-overflow-scrolling: touch;
  }

  .stories-rail::-webkit-scrollbar {
    display: none;
  }

  .story-card,.story-card.is-active {
    position: relative !important;
    flex: 0 0 var(--v86-story-width) !important;
    width: var(--v86-story-width) !important;
    height: auto !important;
    min-width: var(--v86-story-width) !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid rgba(17, 25, 34, .14) !important;
    border-radius: 5px !important;
    background: #101317;
    box-shadow: none !important;
    opacity: .46;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transform: scale(.94) !important;
    transition: opacity .25s ease, transform .32s cubic-bezier(.22, 1, .36, 1), border-color .25s ease !important;
  }

  .story-card.is-active,.story-card.is-v86-current {
    z-index: 2;
    border-color: rgba(0, 113, 227, .48) !important;
    opacity: 1;
    transform: scale(1) !important;
  }

  .story-card-media,.story-card.is-active .story-card-media {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .story-card-media::after,.story-card.is-active .story-card-media::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .03) 28%, rgba(0, 0, 0, .18) 52%, rgba(0, 0, 0, .92) 100%) !important;
  }

  .story-card-media img,.story-card:hover .story-card-media img,.story-card:focus-visible .story-card-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 50% 50% !important;
    filter: grayscale(1) saturate(.7) brightness(.73) !important;
    transform: scale(1.025) !important;
  }

  .story-card.is-active .story-card-media img,.story-card.is-v86-current .story-card-media img {
    filter: grayscale(0) saturate(.92) brightness(.92) !important;
    transform: scale(1) !important;
  }

  .story-card-copy,.story-card.is-active .story-card-copy,.story-card:not(.is-active) .story-card-copy {
    position: absolute !important;
    inset: auto 0 0 !important;
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    padding: 68px 17px 17px !important;
    background: linear-gradient(180deg, transparent, rgba(2, 5, 8, .18) 17%, rgba(2, 5, 8, .9) 100%);
    opacity: 1 !important;
    transform: none !important;
  }

  .story-card:not(.is-active) .story-card-copy {
    padding: 46px 13px 13px !important;
  }

  .story-category-row {
    display: none !important;
  }

  .story-category-cn,.story-card:not(.is-active) .story-category-cn {
    display: block !important;
    margin: 0 0 6px !important;
    color: rgba(255, 255, 255, .7) !important;
    font-size: 11px !important;
    font-weight: 540 !important;
    line-height: 1.4 !important;
    letter-spacing: .06em !important;
    writing-mode: horizontal-tb !important;
    white-space: nowrap;
  }

  .story-slogan,.story-card.is-active .story-slogan {
    margin: 0 !important;
    color: #fff;
    font-size: clamp(19px, 5.4vw, 22px) !important;
    font-weight: 540 !important;
    line-height: 1.38 !important;
    white-space: normal !important;
  }

  .story-slogan span {
    display: inline !important;
  }

  .story-slogan span + span::before {
    content: " " !important;
  }

  .story-card:not(.is-active) .story-slogan,.story-card:not(.is-active) .story-memory,.story-card:not(.is-active) .story-solution-link {
    display: none !important;
  }

  .story-card.is-active .story-memory {
    display: block !important;
    margin: 11px 0 0 !important;
  }

  .story-card.is-active .story-memory-label {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, .52) !important;
    font-size: 9px;
    letter-spacing: .08em;
  }

  .story-card.is-active .story-memory-copy {
    display: -webkit-box;
    max-width: none !important;
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .8) !important;
    font-size: 11.5px !important;
    line-height: 1.58 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .story-card.is-active .story-solution-link {
    display: inline-flex !important;
    margin-top: 11px !important;
    color: #fff !important;
    font-size: 11.5px !important;
    line-height: 1.5;
  }

  .v86-stories-controls {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
    width: calc(100% - 32px);
    margin: 14px auto 0;
  }

  .v86-stories-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid #d4d9de;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: #20252a;
    font: inherit;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
  }

  .v86-stories-button:active {
    border-color: #0071e3;
    background: #0071e3;
    color: #fff;
  }

  .v86-stories-status {
    margin: 0;
    color: #747a80;
    font-size: 10.5px;
    letter-spacing: .07em;
    line-height: 1.4;
    text-align: center;
  }

  /* The trust and research areas should support the page, not dominate it. */
  .trust-section {
    min-height: 0 !important;
    padding: 64px 0 70px !important;
  }

  .trust-shell {
    width: min(calc(100% - 32px), 720px) !important;
  }

  .trust-kicker {
    margin-bottom: 11px !important;
    font-size: 9px !important;
  }

  .trust-title {
    max-width: 14em !important;
    font-size: clamp(24px, 6.7vw, 27px) !important;
    font-weight: 530 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .trust-title span,.trust-research-title span {
    display: block;
  }

  .trust-intro {
    max-width: 29em !important;
    margin-top: 14px !important;
    font-size: 13px !important;
    line-height: 1.74 !important;
  }

  .partner-marquee {
    width: 100vw !important;
    margin-top: 30px !important;
  }

  .partner-marquee-group {
    gap: 12px !important;
    padding-right: 12px !important;
  }

  .marquee-logo {
    width: 108px !important;
    height: 54px !important;
    padding: 0 8px !important;
  }

  .marquee-logo img {
    width: min(100%, 94px) !important;
    max-height: 29px !important;
  }

  .marquee-logo[data-logo="huawei"] img,.marquee-logo[data-logo="china-coal"] img {
    max-height: 32px !important;
  }

  .trust-research {
    margin-top: 38px !important;
    padding-top: 34px !important;
  }

  .trust-research-title {
    max-width: 14em !important;
    margin-inline: auto !important;
    font-size: clamp(22px, 6.2vw, 25px) !important;
    font-weight: 530 !important;
    line-height: 1.42 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .trust-research-intro {
    max-width: 27em;
    margin: 13px auto 0 !important;
    font-size: 12.5px !important;
    line-height: 1.7 !important;
  }

  .research-awards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 8px !important;
    margin-top: 25px !important;
  }

  .research-award,.research-award:last-child {
    grid-column: auto;
    min-height: 72px !important;
    gap: 3px !important;
  }

  .research-award:last-child {
    grid-column: 1 / -1;
  }

  .research-award p {
    max-width: 12em !important;
    font-size: 10.5px !important;
    line-height: 1.55 !important;
  }

  .award-laurel {
    width: 22px !important;
    height: 44px !important;
    flex-basis: 22px !important;
  }

  .trust-actions {
    margin-top: 26px !important;
  }

  /* Reduce the remaining reading density while retaining every news item. */
  .news-section {
    padding: 40px 0 52px !important;
  }

  .news-head {
    margin-bottom: 18px !important;
  }

  #news-pages {
    display: block !important;
  }

  .news-page {
    display: none !important;
  }

  .news-page.is-active {
    display: block !important;
  }

  .news-title {
    font-size: 9px !important;
  }

  .news-item {
    grid-template-columns: 28px minmax(0, 1fr) 30px !important;
    gap: 9px !important;
    padding: 20px 0 22px !important;
  }

  .news-index {
    font-size: 8px !important;
  }

  .news-copy h3 {
    font-size: clamp(16px, 4.5vw, 18px) !important;
    font-weight: 560 !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .news-copy p {
    margin-top: 7px !important;
    font-size: 12px !important;
    line-height: 1.68 !important;
  }

  .news-arrow {
    width: 30px !important;
    height: 30px !important;
  }

  .news-bottom {
    margin-top: 24px;
  }

  .contact-section {
    padding: 68px 0 72px !important;
  }

  .contact-layout {
    gap: 38px !important;
  }

  .contact-kicker {
    margin-bottom: 12px !important;
    font-size: 9px !important;
  }

  .contact-title {
    font-size: clamp(27px, 7.5vw, 31px) !important;
    line-height: 1.38 !important;
  }

  .contact-description {
    margin-top: 16px !important;
    font-size: 13.5px !important;
    line-height: 1.76 !important;
  }

  .contact-directions {
    margin-top: 25px !important;
  }

  .contact-directions li {
    min-height: 48px !important;
    font-size: 13px;
  }

  .contact-form-head h3 {
    font-size: clamp(19px, 5.2vw, 21px) !important;
    line-height: 1.46 !important;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  /* Preserve the requested mascot-and-bubble pairing without covering content. */
  .trial-float {
    right: -8px !important;
    width: 64px !important;
    height: 102px !important;
  }

  .dabai {
    top: 34px !important;
    right: -3px !important;
    width: 60px !important;
    height: 71px !important;
  }

  .trial-float-label {
    top: 0 !important;
    left: 0 !important;
    width: 58px !important;
    height: 40px !important;
  }
}

@media (max-width: 359px) {
  .enterprise-solution-card {
    padding-inline: 5px !important;
  }

  .enterprise-solution-icon {
    width: 28px !important;
    height: 28px !important;
  }

  .enterprise-solution-icon svg {
    width: 27px !important;
    height: 27px !important;
  }

  .enterprise-solution-card strong {
    font-size: 13px !important;
  }

  .enterprise-solution-card p {
    font-size: 9.5px !important;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .stories-rail {
    scroll-behavior: auto !important;
  }

  .story-card,.story-card-media img {
    transition: none !important;
  }
}
