/* Mobile refinements for the four core product demos. */
@media (max-width: 600px) {
  .scroll-demo .hero {
    gap: 22px;
    padding-bottom: 42px;
  }

  .scroll-demo .hero h1 {
    font-size: clamp(38px, 11vw, 44px);
    line-height: .98;
    letter-spacing: -.06em;
  }

  .scroll-demo .world-exhibit-montage {
    height: 210px;
    min-height: 0;
    overflow: hidden;
    grid-template-columns: 1.1fr .9fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .scroll-demo .world-exhibit-montage img,
  .scroll-demo .world-exhibit-montage img:first-child {
    min-height: 0;
    height: 100%;
  }

  .scroll-demo .case-brief {
    padding: 26px 0 42px;
    scroll-margin-top: 142px;
  }

  .scroll-demo .case-brief-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 18px;
  }

  .scroll-demo .case-brief-head h2 {
    max-width: 16ch;
    font-size: clamp(27px, 8vw, 31px);
    line-height: 1.02;
  }

  .scroll-demo .synthetic-stamp {
    font-size: 9px;
  }

  .scroll-demo .case-brief-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .scroll-demo .channel-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 11px 0;
    font-size: 12px;
    line-height: 1.45;
  }

  .scroll-demo .channel-head {
    font-size: 9px;
  }

  .scroll-demo .channel-head > span:last-child {
    display: none;
  }

  .scroll-demo .channel-row small {
    grid-column: 1 / -1;
    text-align: left;
    font-size: 11px;
  }

  .scroll-demo .case-brief-copy {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
  }

  .scroll-demo .mess-ops {
    width: calc(100% - 32px);
    margin: 30px auto 48px;
  }

  .scroll-demo .mess-ops-head h2 {
    font-size: clamp(30px, 8.4vw, 34px);
    line-height: 1.02;
  }

  .scroll-demo .mess-ops-head p {
    font-size: 13px;
    line-height: 1.58;
  }

  .scroll-demo .mess-tabs [role="tab"] {
    scroll-snap-align: start;
  }

  .atlas-demo .intro {
    gap: 8px;
    padding-top: 26px;
  }

  .atlas-demo .intro h1 {
    font-size: clamp(42px, 11vw, 46px);
    line-height: .98;
    letter-spacing: -.065em;
  }

  .atlas-demo .atlas-console-head h2 {
    font-size: clamp(29px, 8vw, 34px);
    line-height: 1.03;
  }

  .atlas-demo .atlas-kpi strong {
    font-size: 24px;
  }

  .atlas-demo .atlas-module-head h3 {
    font-size: 16px;
    line-height: 1.2;
  }

  .atlas-demo .table-scroll {
    max-width: 100%;
    overscroll-behavior-x: contain;
  }

  .agent-hub-page .hub-shell {
    width: calc(100% - 30px);
  }

  .agent-hub-page .hub-hero {
    gap: 18px;
    padding-top: 30px;
    padding-bottom: 24px;
    margin-bottom: 22px;
  }

  .agent-hub-page .hero-copy h1 {
    font-size: clamp(34px, 9vw, 38px);
    line-height: .99;
    letter-spacing: -.065em;
  }

  .agent-hub-page .work-title h2 {
    font-size: clamp(23px, 7vw, 28px);
    line-height: 1.05;
  }

  .agent-hub-page .workspace-content {
    padding: 12px;
  }

  .agent-hub-page .metric-grid {
    gap: 8px;
  }

  .agent-hub-page .metric {
    min-width: 0;
    padding: 11px 9px 24px;
  }

  .agent-hub-page .metric > span {
    font-size: 8px;
    line-height: 1.35;
  }

  .agent-hub-page .metric > b {
    font-size: clamp(22px, 6.2vw, 27px);
    letter-spacing: -.075em;
    overflow-wrap: anywhere;
  }

  .agent-hub-page .metric > b small {
    font-size: 11px;
  }

  .agent-hub-page .scenario-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .agent-hub-page .scenario-buttons button {
    min-width: 0;
    min-height: 42px;
    padding: 8px;
    font-size: 9px;
    line-height: 1.35;
  }

  .agent-hub-page .intel-heading h3 {
    font-size: 25px;
    line-height: 1.05;
  }

  .agent-hub-page .intel-module h4 {
    font-size: 15px;
    line-height: 1.2;
  }

  .workbench-demo .hero {
    gap: 22px;
    padding-top: 26px;
    padding-bottom: 30px;
  }

  .workbench-demo .hero h1 {
    font-size: clamp(40px, 11vw, 44px);
    line-height: .98;
    letter-spacing: -.06em;
  }

  .workbench-demo .hero > div > p {
    font-size: 14px;
    line-height: 1.58;
  }

  .workbench-demo .fi-heading h2 {
    font-size: clamp(30px, 8vw, 36px);
    line-height: 1.02;
  }

  .workbench-demo .fi-heading p {
    font-size: 12px;
    line-height: 1.55;
  }

  .workbench-demo .fi-kpi-value {
    font-size: 22px;
  }

  .workbench-demo .fi-kpi-head span,
  .workbench-demo .fi-panel-head > div > span {
    font-size: 9px;
  }

  .workbench-demo .fi-kpi-foot {
    font-size: 9px;
  }

  .workbench-demo .fi-panel-head > small {
    font-size: 8px;
  }

  .workbench-demo .fi-source-row {
    font-size: 11px;
  }

  .workbench-demo .fi-pareto-row output,
  .workbench-demo .fi-scenario small,
  .workbench-demo .fi-scenario em {
    font-size: 9px;
  }

  .workbench-demo .fi-heatmap > button,
  .workbench-demo .fi-heatmap > span {
    font-size: 9px;
  }

  .workbench-demo .output-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .workbench-demo .output-tab {
    flex: 0 0 auto;
    font-size: 11px;
    padding-inline: 3px;
    scroll-snap-align: start;
  }

  .world-destination .public-pet #petToggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .world-destination .public-pet #petToggle img {
    width: 31px !important;
    height: 31px !important;
  }
}
