/* Responsive reading scale and layout. Loaded after the motion and Trinity styles. */
.qd-motion-root.qd-home .qd-hero .qd-heading {
  font-size: clamp(34px, 6.3vw, 90px) !important;
}

.qd-motion-root.qd-home .qd-section-content .qd-motion-button {
  min-height: 48px;
}

.qd-motion-root.qd-home .qd-search-panel input {
  min-width: 0;
  flex: 1 1 0;
}

.qd-motion-root.qd-home .qd-search-panel > svg {
  flex-shrink: 0;
}

/* Eyebrows follow one scale across the editorial and product scenes. */
.qd-motion-root.qd-home .qd-platform-eyebrow > span:first-child,
.qd-motion-root.qd-home .qd-cloud-content > div > div:first-child > span:first-child,
.qd-motion-root.qd-home #impact .qd-qai-eyebrow {
  font-size: 13px !important;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .qd-motion-root.qd-home .qd-hero .qd-heading {
    font-size: clamp(30px, calc(14px + 5vw), 72px) !important;
    line-height: 1.06 !important;
  }

  .qd-motion-root.qd-home .qd-search-panel {
    right: 24px !important;
    width: min(420px, calc(100vw - 48px)) !important;
    max-width: calc(100vw - 48px) !important;
  }
}

/* Keep the opening scene within one full viewport, expanding when its copy needs it. */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .qd-motion-root.qd-home .qd-hero {
    min-height: 100svh !important;
  }

  .qd-motion-root.qd-home .qd-hero-content {
    flex: 1 0 auto !important;
    justify-content: flex-start !important;
    padding-top: calc(108px + 56.25vw + 28px) !important;
    padding-bottom: 32px !important;
  }
}

@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .qd-motion-root.qd-home .qd-question-section {
    min-height: min(820px, 100svh) !important;
  }
}

/* The split product scenes retain a narrow reading column on compact desktops. */
@media (min-width: 901px) and (max-width: 1100px) {
  .qd-motion-root.qd-home #platform .qd-platform-content > div,
  .qd-motion-root.qd-home #impact .qd-qai-copy {
    max-width: 450px !important;
  }

  .qd-motion-root.qd-home #platform .qd-detail-row {
    flex-wrap: wrap;
    gap: 10px 18px !important;
  }

  .qd-motion-root.qd-home #platform .qd-detail-row > div:last-child {
    flex-basis: 100%;
  }

  .qd-motion-root.qd-home #platform .qd-row-label {
    width: auto !important;
  }
}

/* Place each product image above its copy instead of behind a long mobile page. */
@media (max-width: 900px) {
  .qd-motion-root.qd-home #platform.qd-platform-section {
    --qd-platform-art-height: clamp(280px, 46vw, 360px);
    min-height: 0 !important;
    display: block !important;
  }

  .qd-motion-root.qd-home #platform .qd-platform-art {
    --qd-platform-art-half: calc(var(--qd-platform-art-height) / 3);
    inset: 0 0 auto !important;
    width: 100% !important;
    height: var(--qd-platform-art-height) !important;
    opacity: 1 !important;
    background-size: auto 100% !important;
    background-position: center bottom !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32px, #000 calc(100% - 40px), transparent 100%), linear-gradient(to right, transparent calc(50% - var(--qd-platform-art-half)), #000 calc(50% - var(--qd-platform-art-half) + 24px), #000 calc(50% + var(--qd-platform-art-half) - 24px), transparent calc(50% + var(--qd-platform-art-half)));
    mask-image: linear-gradient(to bottom, transparent 0, #000 32px, #000 calc(100% - 40px), transparent 100%), linear-gradient(to right, transparent calc(50% - var(--qd-platform-art-half)), #000 calc(50% - var(--qd-platform-art-half) + 24px), #000 calc(50% + var(--qd-platform-art-half) - 24px), transparent calc(50% + var(--qd-platform-art-half)));
    -webkit-mask-composite: source-in, source-over;
    mask-composite: intersect, add;
  }

  .qd-motion-root.qd-home #platform .qd-platform-art .qd-art-surface {
    background-size: auto 100% !important;
    background-position: center bottom !important;
  }

  .qd-motion-root.qd-home #platform > .qd-image-fade {
    display: none;
  }

  .qd-motion-root.qd-home #platform > .qd-platform-content {
    display: block !important;
    padding: calc(var(--qd-platform-art-height) + 24px) 24px 72px !important;
  }

  .qd-motion-root.qd-home #platform .qd-platform-content > div {
    max-width: 650px !important;
    margin-inline: auto;
  }

  .qd-motion-root.qd-home #impact.qd-qai-section {
    --qd-qai-art-height: clamp(240px, 66.667vw, 400px);
    display: block !important;
    min-height: 0 !important;
  }

  .qd-motion-root.qd-home #impact .qd-qai-art {
    inset: 0 0 auto !important;
    width: 100% !important;
    height: var(--qd-qai-art-height) !important;
    background-size: cover !important;
    background-position: center !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32px, #000 calc(100% - 48px), transparent 100%) !important;
    mask-image: linear-gradient(to bottom, transparent 0, #000 32px, #000 calc(100% - 48px), transparent 100%) !important;
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }

  .qd-motion-root.qd-home #impact .qd-qai-art .qd-art-surface {
    background-size: cover !important;
    background-position: center !important;
  }

  .qd-motion-root.qd-home #impact > .qd-qai-fade {
    display: none;
  }

  .qd-motion-root.qd-home #impact > .qd-qai-content {
    padding: calc(var(--qd-qai-art-height) + 24px) 24px 72px !important;
  }

  .qd-motion-root.qd-home #impact .qd-qai-copy {
    max-width: 650px !important;
    margin-inline: auto;
  }

  .qd-motion-root.qd-home #impact .qd-qai-title {
    font-size: clamp(84px, 14vw, 132px) !important;
  }
}

@media (max-width: 760px) {
  .qd-motion-root.qd-home .qd-hero-content > p,
  .qd-motion-root.qd-home .qd-section-content p:not(.qd-qai-tagline) {
    font-size: 17px !important;
    line-height: 1.65 !important;
  }

  .qd-motion-root.qd-home #platform .qd-detail-row > div:last-child,
  .qd-motion-root.qd-home #trinity .qd-trinity-discipline p,
  .qd-motion-root.qd-home #impact .qd-qai-feature-detail {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .qd-motion-root.qd-home .qd-platform-eyebrow > span:first-child,
  .qd-motion-root.qd-home .qd-cloud-content > div > div:first-child > span:first-child,
  .qd-motion-root.qd-home #impact .qd-qai-eyebrow {
    font-size: 12px !important;
    letter-spacing: .12em !important;
  }

  .qd-motion-root.qd-home .qd-nav button[aria-label] {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
  }

  .qd-motion-root.qd-home .qd-nav button:not([aria-label]) {
    min-height: 44px;
  }

  .qd-motion-root.qd-home .qd-search-panel {
    right: 14px !important;
    width: min(420px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
  }

  .qd-motion-root.qd-home .qd-footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .qd-motion-root.qd-home .qd-nav {
    padding: 10px !important;
  }

  .qd-motion-root.qd-home .qd-nav > div {
    gap: 6px !important;
  }

  .qd-motion-root.qd-home .qd-nav img {
    height: 22px !important;
    flex-shrink: 0;
  }

  .qd-motion-root.qd-home .qd-nav button:not([aria-label]) {
    font-size: 12px !important;
    line-height: 1.2;
    padding: 10px !important;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .qd-motion-root.qd-home .qd-section-content div:has(> .qd-motion-button),
  .qd-motion-root.qd-home .qd-demo-section .qd-section-content:has(> .qd-motion-button) {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100%;
  }

  .qd-motion-root.qd-home .qd-section-content .qd-motion-button {
    width: 100%;
    min-height: 48px;
  }

  .qd-motion-root.qd-home #impact .qd-qai-actions button {
    font-size: 15px !important;
  }
}

/* Portrait scenes are composed for phones, with copy over their quiet lower floors. */
@media (max-width: 900px) {
  .qd-motion-root.qd-home {
    --qd-phone-art-width: min(100vw, 560px);
    --qd-phone-art-height: calc(var(--qd-phone-art-width) * 1.5);
    --qd-phone-copy-top: calc(var(--qd-phone-art-height) * .60);
    --qd-phone-gutter: clamp(20px, 6.15vw, 28px);
  }

  .qd-motion-root.qd-home .qd-art-surface {
    transform: none !important;
    will-change: auto !important;
  }

  /* Switch the first frame too; the motion engine keeps the desktop source separately. */
  .qd-motion-root.qd-home .qd-hero-art { --qd-phone-image: url(assets/mobile/hero-ruin-portrait-v1.webp); }
  .qd-motion-root.qd-home .qd-question-art { --qd-phone-image: url(assets/quantum-mosaic.webp); }
  .qd-motion-root.qd-home #trinity .qd-trinity-art { --qd-phone-image: url(assets/mobile/trinity-portrait-v1.webp); }
  .qd-motion-root.qd-home #platform .qd-platform-art { --qd-phone-image: url(assets/qaip-husky.webp); }
  .qd-motion-root.qd-home #solutions .qd-cloud-art { --qd-phone-image: url(assets/mobile/cloud-portrait-v1.webp); }
  .qd-motion-root.qd-home #impact .qd-qai-art { --qd-phone-image: url(assets/qai-intelligence-mosaic-ruins-v2.webp); }

  .qd-motion-root.qd-home [data-mobile-art]:not(.qd-art-shell) {
    background-image: var(--qd-phone-image) !important;
  }

  /* One bounded portrait plane, with every subject inside the original frame. */
  .qd-motion-root.qd-home > .qd-hero > .qd-hero-art,
  .qd-motion-root.qd-home .qd-question-section > .qd-question-art,
  .qd-motion-root.qd-home #trinity .qd-trinity-art,
  .qd-motion-root.qd-home #platform .qd-platform-art,
  .qd-motion-root.qd-home #solutions > .qd-cloud-art,
  .qd-motion-root.qd-home #impact .qd-qai-art {
    position: absolute !important;
    inset: 0 0 auto !important;
    width: var(--qd-phone-art-width) !important;
    height: var(--qd-phone-art-height) !important;
    max-height: none !important;
    margin-inline: auto;
    aspect-ratio: 2 / 3;
    opacity: 1 !important;
    background-size: contain !important;
    background-position: center top !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 32px, #000 78%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, transparent, #000 32px, #000 78%, transparent 100%) !important;
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }

  .qd-motion-root.qd-home .qd-hero .qd-art-surface,
  .qd-motion-root.qd-home .qd-question-art .qd-art-surface,
  .qd-motion-root.qd-home #trinity .qd-trinity-art .qd-art-surface,
  .qd-motion-root.qd-home #platform .qd-platform-art .qd-art-surface,
  .qd-motion-root.qd-home #solutions .qd-cloud-art .qd-art-surface,
  .qd-motion-root.qd-home #impact .qd-qai-art .qd-art-surface {
    background-size: contain !important;
    background-position: center top !important;
  }

  .qd-motion-root.qd-home .qd-question-overlay,
  .qd-motion-root.qd-home #solutions .qd-cloud-overlay { display: none; }

  .qd-motion-root.qd-home .qd-question-art + .qd-question-overlay,
  .qd-motion-root.qd-home #trinity .qd-trinity-shade,
  .qd-motion-root.qd-home #platform > .qd-image-fade,
  .qd-motion-root.qd-home #solutions .qd-cloud-scrim,
  .qd-motion-root.qd-home #impact > .qd-qai-fade {
    display: block;
    inset: 0 0 auto !important;
    width: 100% !important;
    height: var(--qd-phone-art-height) !important;
    background: linear-gradient(to bottom, rgba(10,10,11,.06), rgba(10,10,11,.06) 56%, rgba(10,10,11,.48) 68%, rgba(10,10,11,.82) 84%, #0a0a0b 100%) !important;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .qd-motion-root.qd-home .qd-question-section,
  .qd-motion-root.qd-home #trinity.qd-trinity-section,
  .qd-motion-root.qd-home #platform.qd-platform-section,
  .qd-motion-root.qd-home #solutions.qd-cloud-section,
  .qd-motion-root.qd-home #impact.qd-qai-section {
    display: block !important;
    min-height: var(--qd-phone-art-height) !important;
    border-top: none !important;
    background: var(--qd-scene-base) !important;
  }

  .qd-motion-root.qd-home .qd-question-section > .qd-question-content,
  .qd-motion-root.qd-home #trinity .qd-trinity-content,
  .qd-motion-root.qd-home #platform > .qd-platform-content,
  .qd-motion-root.qd-home #solutions > .qd-cloud-content,
  .qd-motion-root.qd-home #impact > .qd-qai-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 616px !important;
    min-height: 0;
    margin-inline: auto;
    padding: var(--qd-phone-copy-top) var(--qd-phone-gutter) 56px !important;
    text-align: left !important;
  }

  .qd-motion-root.qd-home .qd-section-content .qd-heading {
    font-size: clamp(32px, 9.2vw, 44px) !important;
    font-weight: 500 !important;
    line-height: 1.08 !important;
    letter-spacing: -.04em !important;
    text-shadow: none !important;
  }

  .qd-motion-root.qd-home .qd-section-content p:not(.qd-qai-tagline),
  .qd-motion-root.qd-home .qd-hero-content > p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #d6d3ce;
    text-shadow: none !important;
  }

  .qd-motion-root.qd-home .qd-section-content .qd-motion-button {
    min-height: 48px;
    padding: 14px 20px !important;
    font-size: 15px !important;
    line-height: 1.25;
  }

  .qd-motion-root.qd-home .qd-question-content .qd-heading { margin-bottom: 22px !important; }
  .qd-motion-root.qd-home .qd-question-content > p { margin: 0 0 28px !important; }
  .qd-motion-root.qd-home .qd-question-copy-lead { display: block; margin-bottom: 14px; color: #f4f2ef; }
  /* Frame the original question and QAI mosaics above the reading column. */
  .qd-motion-root.qd-home .qd-question-section,
  .qd-motion-root.qd-home #impact.qd-qai-section {
    --qd-phone-art-height: calc(var(--qd-phone-art-width) * 2 / 3);
  }
  .qd-motion-root.qd-home .qd-question-section > .qd-question-art,
  .qd-motion-root.qd-home #impact .qd-qai-art {
    aspect-ratio: 3 / 2;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  .qd-motion-root.qd-home .qd-question-art + .qd-question-overlay,
  .qd-motion-root.qd-home #impact > .qd-qai-fade,
  .qd-motion-root.qd-home #impact > .qd-qai-shade { display: none !important; }
  .qd-motion-root.qd-home .qd-question-section > .qd-question-content { padding-top: calc(var(--qd-phone-art-height) + 24px) !important; }

  .qd-motion-root.qd-home #trinity .qd-trinity-content { display: flex; gap: 36px; padding-top: calc(var(--qd-phone-art-height) * .58) !important; }
  .qd-motion-root.qd-home #trinity .qd-trinity-intro { width: 100%; max-width: none; }
  .qd-motion-root.qd-home #trinity .qd-trinity-title { margin-bottom: 20px; }
  .qd-motion-root.qd-home #trinity .qd-trinity-foundations { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .qd-motion-root.qd-home #trinity .qd-trinity-discipline { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 8px 14px; padding: 23px 0; }
  .qd-motion-root.qd-home #trinity .qd-trinity-number { grid-column: 1; grid-row: 1 / 3; margin: 0; padding-top: 7px; }
  .qd-motion-root.qd-home #trinity .qd-trinity-discipline h3 { grid-column: 2; margin: 0; font-size: 24px; line-height: 1.2; }
  .qd-motion-root.qd-home #trinity .qd-trinity-discipline p { grid-column: 2; font-size: 15px !important; line-height: 1.6 !important; }

  /* Keep the approved Fehu dog beside the introduction, with body copy below it. */
  .qd-motion-root.qd-home #platform.qd-platform-section {
    --qd-dog-art-width: clamp(140px,46vw,220px);
    --qd-dog-art-height: calc(var(--qd-dog-art-width) * 1.5);
    min-height: 0 !important;
  }
  .qd-motion-root.qd-home #platform .qd-platform-art {
    inset: 24px var(--qd-phone-gutter) auto auto !important;
    width: var(--qd-dog-art-width) !important;
    height: var(--qd-dog-art-height) !important;
    margin: 0;
    -webkit-mask-image: linear-gradient(to bottom,transparent,#000 18px,#000 78%,transparent),linear-gradient(to right,transparent,#000 12%,#000 88%,transparent) !important;
    mask-image: linear-gradient(to bottom,transparent,#000 18px,#000 78%,transparent),linear-gradient(to right,transparent,#000 12%,#000 88%,transparent) !important;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .qd-motion-root.qd-home #platform :is(.qd-platform-side-shade,.qd-platform-edge-shade,.qd-platform-glow) { display: none !important; }
  .qd-motion-root.qd-home #platform > .qd-platform-content { padding-top: 24px !important; }
  .qd-motion-root.qd-home #platform .qd-platform-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - var(--qd-dog-art-width) - 16px);
    min-height: var(--qd-dog-art-height);
    margin-bottom: 24px;
  }
  .qd-motion-root.qd-home #platform .qd-platform-eyebrow { display: block !important; margin-bottom: 16px !important; }
  .qd-motion-root.qd-home #platform .qd-platform-eyebrow > span:first-child { font-size: 11px !important; letter-spacing: .08em !important; }
  .qd-motion-root.qd-home #platform .qd-platform-eyebrow > span:last-child { display: none; }
  .qd-motion-root.qd-home #platform .qd-platform-title-block { margin: 0 !important; }
  .qd-motion-root.qd-home #platform .qd-platform-title-block .qd-heading { font-size: clamp(28px,8.2vw,36px) !important; max-width: 5ch; margin-bottom: 14px !important; }
  .qd-motion-root.qd-home #platform .qd-platform-subtitle { font-size: 10px !important; line-height: 1.5; letter-spacing: .025em !important; color: #bdb9b3 !important; }
  .qd-motion-root.qd-home #platform .qd-platform-content > div,
  .qd-motion-root.qd-home #solutions .qd-cloud-content > div,
  .qd-motion-root.qd-home #impact .qd-qai-copy { max-width: none !important; }
  .qd-motion-root.qd-home #solutions .qd-cloud-content > div > div:first-child { margin-bottom: 18px !important; }
  .qd-motion-root.qd-home #platform .qd-platform-content > div > p { margin-bottom: 28px !important; }
  .qd-motion-root.qd-home #platform .qd-detail-row { display: grid !important; grid-template-columns: 24px minmax(0,1fr); gap: 6px 14px !important; align-items: start !important; padding: 22px 0 !important; }
  .qd-motion-root.qd-home #platform .qd-detail-row > div:first-child { grid-column: 1; grid-row: 1 / 3; padding-top: 3px; }
  .qd-motion-root.qd-home #platform .qd-row-label { grid-column: 2; width: auto !important; min-width: 0; }
  .qd-motion-root.qd-home #platform .qd-row-label > div:first-child { color: #a9a59e !important; }
  .qd-motion-root.qd-home #platform .qd-row-label > div:last-child { font-size: 17px !important; line-height: 1.4; }
  .qd-motion-root.qd-home #platform .qd-detail-row > div:last-child { grid-column: 2; min-width: 0; font-size: 15px !important; line-height: 1.6 !important; color: #bdb9b3 !important; }

  .qd-motion-root.qd-home #solutions .qd-heading { margin-bottom: 22px !important; }
  .qd-motion-root.qd-home #solutions .qd-cloud-content p { margin-bottom: 28px !important; }

  .qd-motion-root.qd-home #impact > .qd-qai-content { padding-top: calc(var(--qd-phone-art-height) + 24px) !important; }
  .qd-motion-root.qd-home #impact .qd-qai-eyebrow { margin-bottom: 16px; }
  .qd-motion-root.qd-home #impact .qd-qai-title { font-size: 76px !important; line-height: .95 !important; margin-bottom: 18px !important; }
  .qd-motion-root.qd-home #impact .qd-qai-tagline { font-size: 25px !important; line-height: 1.2; margin-bottom: 20px; }
  .qd-motion-root.qd-home #impact .qd-qai-description { margin-bottom: 28px; }
  .qd-motion-root.qd-home #impact .qd-qai-features { max-width: none; margin-top: 32px; }
  .qd-motion-root.qd-home #impact .qd-qai-feature { grid-template-columns: 1fr; gap: 8px !important; padding: 22px 0 !important; }
  .qd-motion-root.qd-home #impact .qd-qai-feature-label { font-size: 17px; line-height: 1.4; }
  .qd-motion-root.qd-home #impact .qd-qai-feature-detail { font-size: 15px !important; line-height: 1.6 !important; }

  .qd-motion-root.qd-home > .qd-hero { min-height: calc(76px + var(--qd-phone-art-height)) !important; padding: 0 !important; }
  .qd-motion-root.qd-home .qd-hero > div:first-child { background: var(--qd-scene-base) !important; }
  .qd-motion-root.qd-home > .qd-hero > .qd-hero-art { top: 76px !important; -webkit-mask-image: linear-gradient(to bottom, #000, #000 82%, transparent) !important; mask-image: linear-gradient(to bottom, #000, #000 82%, transparent) !important; }
  .qd-motion-root.qd-home .qd-hero .qd-hero-reading-shade { background: linear-gradient(to bottom, transparent calc(76px + var(--qd-phone-art-height) * .52), rgba(10,10,11,.48) calc(76px + var(--qd-phone-art-height) * .64), rgba(10,10,11,.85) calc(76px + var(--qd-phone-art-height) * .84), #0a0a0b calc(76px + var(--qd-phone-art-height))) !important; }
  .qd-motion-root.qd-home .qd-hero-content { flex: 0 0 auto !important; justify-content: flex-start !important; align-items: flex-start !important; width: 100%; max-width: 616px !important; margin-inline: auto; padding: calc(76px + var(--qd-phone-art-height) * .56) var(--qd-phone-gutter) 24px !important; text-align: left !important; }
  .qd-motion-root.qd-home .qd-hero .qd-heading { font-size: clamp(28px, 8.3vw, 38px) !important; line-height: 1.12 !important; letter-spacing: -.04em !important; }
  .qd-motion-root.qd-home .qd-hero-content > p { margin-top: 16px !important; max-width: 32ch; }
  .qd-motion-root.qd-home > .qd-hero > .qd-scroll-cue { flex-direction: column !important; align-items: center !important; align-self: center; gap: 10px !important; min-height: 56px; margin-bottom: 20px; padding: 0 !important; }
  .qd-motion-root.qd-home .qd-scroll-cue > span { font-size: 11px !important; letter-spacing: .18em !important; }
  .qd-motion-root.qd-home .qd-scroll-cue > div { height: 24px !important; background: linear-gradient(to bottom, var(--qd-accent), transparent) !important; }

  .qd-motion-root.qd-home .qd-nav { top: 10px !important; left: 12px !important; right: 12px !important; padding: 10px !important; border-radius: 10px !important; border-color: rgba(244,242,239,.16) !important; box-shadow: 0 4px 20px rgba(0,0,0,.24) !important; }
  .qd-motion-root.qd-home .qd-nav > div:first-child { background: none !important; }
  .qd-motion-root.qd-home .qd-nav img { height: 28px !important; }
  .qd-motion-root.qd-home .qd-nav > div { gap: 5px !important; }
  .qd-motion-root.qd-home .qd-nav button:not([aria-label]) { padding: 10px 9px !important; font-size: 12px !important; }
  .qd-motion-root.qd-home .qd-nav button[aria-label] { border-color: rgba(244,242,239,.16) !important; border-radius: 4px; }
  .qd-motion-root.qd-home .qd-menu-panel { top: 84px !important; }

  .qd-motion-root.qd-home .qd-chapter-divider { min-height: 0; height: auto; padding: 30px var(--qd-phone-gutter) 42px; place-items: center start; text-align: left; background: var(--qd-scene-base); }
  .qd-motion-root.qd-home .qd-chapter-divider > p { font-size: 12px; line-height: 1.25; letter-spacing: .16em; color: #bdb9b3; }
  .qd-motion-root.qd-home .qd-chapter-divider .qd-chapter-keyword { margin-top: 8px; font-size: clamp(38px, 11vw, 52px); line-height: 1.05; letter-spacing: -.04em; }
  .qd-motion-root.qd-home .qd-chapter-divider > p::after { left: 0; bottom: -16px; width: 44px; transform: none; }

  .qd-motion-root.qd-home .qd-demo-section > .qd-section-content { padding: 56px var(--qd-phone-gutter) !important; gap: 26px !important; }
  .qd-motion-root.qd-home .qd-demo-section .qd-heading { line-height: 1.08 !important; }
  .qd-motion-root.qd-home footer { padding: 48px var(--qd-phone-gutter) 28px !important; }
  .qd-motion-root.qd-home .qd-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 32px 20px !important; padding-bottom: 36px !important; }
  .qd-motion-root.qd-home .qd-footer-grid p { color: #aaa69f !important; font-size: 15px !important; max-width: 320px !important; }
  .qd-motion-root.qd-home .qd-footer-group > div:first-child { color: #a9a59e !important; font-size: 12px !important; margin-bottom: 16px !important; }
  .qd-motion-root.qd-home .qd-footer-group span { font-size: 15px !important; line-height: 1.5; }
  .qd-motion-root.qd-home .qd-footer-group[data-footer-group="Resources"] { grid-column: 1 / -1; }
  .qd-motion-root.qd-home .qd-footer-group[data-footer-group="Resources"] > div:last-child { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px !important; }
  .qd-motion-root.qd-home footer > div:last-child { color: #aaa69f !important; font-size: 12px !important; line-height: 1.6; }
}

@media (max-width: 360px) {
  .qd-motion-root.qd-home .qd-nav img { height: 24px !important; }
  .qd-motion-root.qd-home .qd-nav button:not([aria-label]) { font-size: 11px !important; }
  .qd-motion-root.qd-home .qd-section-content .qd-heading { font-size: 32px !important; }
  .qd-motion-root.qd-home #impact .qd-qai-title { font-size: 68px !important; }
}

@media (min-width: 600px) and (max-width: 900px) {
  .qd-motion-root.qd-home #platform .qd-platform-title-block .qd-heading { max-width: none; }
  .qd-motion-root.qd-home #platform .qd-platform-subtitle { max-width: 32ch; font-size: 12px !important; }
}

/* A short, wide phone uses two reading planes rather than a tall portrait stack. */
@media (min-width: 600px) and (max-width: 900px) and (max-height: 500px) {
  .qd-motion-root.qd-home {
    --qd-phone-art-width: min(30vw,240px);
    --qd-phone-copy-top: 32px;
  }
  .qd-motion-root.qd-home > .qd-hero > .qd-hero-art,
  .qd-motion-root.qd-home .qd-question-section > .qd-question-art,
  .qd-motion-root.qd-home #trinity .qd-trinity-art,
  .qd-motion-root.qd-home #solutions > .qd-cloud-art,
  .qd-motion-root.qd-home #impact .qd-qai-art {
    inset: 24px var(--qd-phone-gutter) auto auto !important;
    margin: 0;
  }
  .qd-motion-root.qd-home .qd-question-art + .qd-question-overlay,
  .qd-motion-root.qd-home #trinity .qd-trinity-shade,
  .qd-motion-root.qd-home #solutions .qd-cloud-scrim,
  .qd-motion-root.qd-home #impact > .qd-qai-fade { display: none !important; }
  .qd-motion-root.qd-home .qd-question-section > .qd-question-content,
  .qd-motion-root.qd-home #trinity .qd-trinity-content,
  .qd-motion-root.qd-home #solutions > .qd-cloud-content,
  .qd-motion-root.qd-home #impact > .qd-qai-content {
    max-width: none !important;
    padding: 32px calc(var(--qd-phone-art-width) + var(--qd-phone-gutter) * 2) 48px var(--qd-phone-gutter) !important;
  }
  .qd-motion-root.qd-home > .qd-hero { min-height: calc(96px + var(--qd-phone-art-height)) !important; }
  .qd-motion-root.qd-home > .qd-hero > .qd-hero-art { top: 96px !important; }
  .qd-motion-root.qd-home .qd-hero .qd-hero-reading-shade { display: none; }
  .qd-motion-root.qd-home .qd-hero-content {
    max-width: none !important;
    padding: 120px calc(var(--qd-phone-art-width) + var(--qd-phone-gutter) * 2) 24px var(--qd-phone-gutter) !important;
  }
  .qd-motion-root.qd-home .qd-hero-content > p { max-width: 38ch; }
  .qd-motion-root.qd-home .qd-chapter-divider { padding-block: 28px 40px; }
  .qd-motion-root.qd-home #platform .qd-platform-title-block .qd-heading { max-width: none; }
  .qd-motion-root.qd-home #platform .qd-platform-intro { align-items: flex-start; }
  .qd-motion-root.qd-home #platform .qd-platform-subtitle { max-width: 32ch; font-size: 12px !important; }
}
