/* Compact journey layout. Desktop styling stays in styles.css. */
.office-landing .mobile-room-picker,
.office-landing .mobile-open-dashboard,
.office-landing .journey-skip { display: none; }
@media (max-width: 800px), (max-height: 650px) {
  .office-landing { --mobile-nav-height: calc(52px + env(safe-area-inset-bottom, 0px));
    --mobile-scene-height: clamp(140px, calc(39svh - 42px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)), 380px); }
  .office-landing .journey { height: 560vh; height: 560svh; min-height: 0; background: var(--surface); }
  .office-landing .journey-sticky { position: sticky;
    top: var(--public-header-height);
    height: calc(100svh - var(--public-header-height));
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface); }
  .office-landing .journey[data-travel-mode="direct"] { height: calc(100svh - var(--public-header-height)); min-height: 0; }
  .office-landing .journey[data-travel-mode="direct"] .journey-sticky { position: relative; top: auto; height: 100%; }
  .office-landing .hero-grid { display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--mobile-scene-height) minmax(0, 1fr);
    flex: 1 1 0;
    min-width: 0;
    min-height: 0; }
  .office-landing .scene-column { grid-column: 1;
    grid-row: 1;
    position: relative;
    inset: auto;
    order: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: var(--hero); }
  .office-landing .scene-column::after { content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30px;
    z-index: 5;
    background: linear-gradient(180deg, transparent, var(--surface));
    pointer-events: none; }
  .office-landing .scene-stage,
  .office-landing .office-canvas,
  .office-landing .office-canvas canvas { touch-action: pan-y pinch-zoom; }
  .office-landing .office-fallback { left: 0; top: 18px; width: 100%; height: calc(100% - 28px); object-fit: contain; }
  .office-landing .scene-topline,
  .office-landing .journey-sticky.immersive .scene-topline { top: 2px; left: max(12px, env(safe-area-inset-left, 0px)); right: auto; gap: 0; }
  .office-landing .scene-heading,
  .office-landing .scene-clock small,
  .office-landing .scene-bottomline,
  .office-landing .scene-mode,
  .office-landing .scene-playbar { display: none; }
  .office-landing .scene-clock { gap: 5px; min-height: 40px; padding: 0 9px; border: 1px solid var(--outline); border-radius: 8px; background: var(--office-overlay); }
  .office-landing .scene-clock > span { font-size: 13px; font-variant-numeric: tabular-nums; }
  .office-landing .scene-clock .icon { width: 14px; height: 14px; }
  .office-landing .camera-controls { top: 0; right: max(12px, env(safe-area-inset-right, 0px)); padding: 0; gap: 0; border: 0; border-radius: 9px; }
  .office-landing .camera-controls button { justify-content: center; min-width: 44px; min-height: 44px; width: 44px; padding: 0; border-radius: 7px; }
  .office-landing .camera-controls .icon { width: 17px; height: 17px; }
  .office-landing .camera-controls button:last-child { margin-left: 0; }
  .office-landing .camera-controls button > span,
  .office-landing .hero-actions #play-tour > span { position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap; }
  .office-landing .collector-badge,
  .office-landing .journey-sticky.immersive .collector-badge { left: max(12px, env(safe-area-inset-left, 0px));
    bottom: 2px;
    max-width: calc(100% - 124px);
    min-height: 40px;
    padding: 7px 9px;
    gap: 7px;
    border-radius: 8px; }
  .office-landing .collector-avatar,
  .office-landing .collector-badge div > span { display: none; }
  .office-landing .collector-badge > div { min-width: 0; }
  .office-landing .collector-badge strong { font-size: 10px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .office-landing .collector-badge > span:last-child { flex-shrink: 0; font-size: 16px; line-height: 1.2; margin-left: 0; padding-left: 7px; }
  .office-landing .room-label:not(.active) { display: none; }
  .office-landing .room-label { min-height: 40px; max-width: 142px; padding: 7px 9px; font-size: 10px; line-height: 1.35; }
  .office-landing .mobile-open-dashboard { position: absolute;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: 0;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 11px;
    border: 1px solid var(--outline-strong);
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: 0 3px 12px #00000008; }
  .office-landing .mobile-open-dashboard .icon { width: 16px; height: 16px; }
  .office-landing .mobile-open-dashboard:hover { background: var(--surface-sidebar); }
  .office-landing .narrative { grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-rows: auto auto auto auto 44px;
    align-content: center;
    justify-content: stretch;
    gap: 8px;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 640px;
    margin: 0 auto;
    padding: 10px 20px 12px;
    background: var(--surface); }
  .office-landing .narrative::before,
  .office-landing .narrative > .eyebrow,
  .office-landing .story-card-note,
  .office-landing .demo-caption { display: none; }
  .office-landing .chapter { grid-row: 1; grid-column: 1 / -1; margin: 0; gap: 8px; min-width: 0; font-size: 10px; line-height: 1.4; letter-spacing: .35px; }
  .office-landing #chapter-number { font-size: 10px; }
  .office-landing .chapter-divider { height: 10px; }
  .office-landing .chapter > span:last-child { line-height: 1.4; }
  .office-landing .narrative h1 { grid-row: 2;
    grid-column: 1 / -1;
    min-height: min-content;
    margin: 0;
    font-size: clamp(26px, 7.1vw, 31px);
    line-height: 1.2;
    letter-spacing: -.035em;
    text-wrap: balance; }
  .office-landing .story-description { grid-row: 3; grid-column: 1 / -1; min-height: 0; max-width: 100%; font-size: 13px; line-height: 1.5; }
  .office-landing .story-card { grid-row: 4; grid-column: 1 / -1; min-width: 0; max-width: none; margin: 0; padding: 10px 11px; border-radius: 10px; background: var(--surface-subtle); box-shadow: none; }
  .office-landing .story-card-header { display: none; }
  .office-landing .story-metrics { margin: 0; gap: 6px; }
  .office-landing .story-metrics > div:not(:first-child) { padding-left: 8px; }
  .office-landing .story-metrics strong { font-size: 22px; line-height: 1.2; letter-spacing: -.5px; white-space: nowrap; overflow-wrap: normal; }
  .office-landing .story-metrics span { font-size: 10px; line-height: 1.35; margin-top: 3px; }
  .office-landing .journey-modes { grid-row: 5; grid-column: 1; margin: 0; display: flex; flex-wrap: nowrap; align-items: stretch; gap: 5px; min-width: 0; max-width: none; }
  .office-landing .journey-modes button { min-width: 44px; min-height: 44px; padding: 5px 8px; font-size: 12px; line-height: 1.25; border-radius: 8px; }
  .office-landing .journey-modes button:not(:first-child) { flex: 1 1 auto; }
  .office-landing .journey-modes #journey-reset { margin-left: 0; }
  .office-landing .hero-actions { grid-row: 5; grid-column: 2; margin: 0; gap: 0; width: 44px; min-width: 0; }
  .office-landing .hero-actions #hero-bcc-link { display: none; }
  .office-landing .hero-actions #play-tour { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 8px; }
  .office-landing .hero-actions #play-tour .icon { width: 17px; height: 17px; }
  .office-landing .journey[data-travel-mode="direct"] .journey-modes { grid-column: 1 / -1; }
  .office-landing .journey[data-travel-mode="direct"] .hero-actions { display: none; }
  .office-landing .journey[data-travel-mode="direct"] .mobile-room-picker { display: grid; }
  .office-landing .mobile-room-picker { grid-row: 6; grid-column: 1 / -1; gap: 4px; min-width: 0; }
  .office-landing .mobile-room-picker label { font-size: 11px; line-height: 1.4; color: var(--ink-secondary); }
  .office-landing .mobile-room-picker select { width: 100%; min-width: 0; min-height: 44px; padding: 7px 10px; border: 1px solid var(--outline-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.3; }
  .office-landing .journey-navigation { flex: 0 0 var(--mobile-nav-height);
    height: var(--mobile-nav-height);
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 3px max(12px, env(safe-area-inset-right, 0px)) calc(3px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
  .office-landing .journey-track { height: 2px; }
  .office-landing .journey-steps { min-width: 0; display: flex; gap: 3px; padding: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
  .office-landing .journey-steps::-webkit-scrollbar { display: none; }
  .office-landing .journey-step { display: flex; flex-direction: row; align-items: center; justify-content: center; flex: 0 0 44px; min-width: 44px; min-height: 44px; gap: 5px; padding: 4px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; }
  .office-landing .step-dot { width: 27px; height: 27px; flex-shrink: 0; font-size: 10px; border-radius: 6px; }
  .office-landing .journey-step > span:nth-child(2) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); }
  .office-landing .journey-step small,
  .office-landing .mobile-step-controls { display: none; }
  .office-landing .journey-step.active { flex-basis: auto; padding-inline: 6px 9px; border-color: var(--outline); background: var(--surface-subtle); }
  .office-landing .journey-step.active > span:nth-child(2) { position: static; width: auto; height: auto; max-width: 98px; overflow: hidden; clip: auto; clip-path: none; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; line-height: 1.4; }
  .office-landing .journey-skip { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 6px; border-radius: 7px; font-size: 11px; white-space: nowrap; color: var(--ink-secondary); }
  .office-landing .journey-skip:hover { background: var(--surface-sidebar); }
  .office-landing .journey-skip .icon { width: 13px; height: 13px; }
  .office-landing .journey-sticky.immersive .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .office-landing .journey-sticky.immersive .scene-column { grid-column: 1; grid-row: 1; height: 100%; min-height: 0; }
  .office-landing .journey-sticky.immersive .narrative { display: none; }
  .office-landing .journey-sticky.immersive .scene-playbar { display: flex; flex-direction: row; right: max(12px, env(safe-area-inset-right, 0px)); bottom: 62px; gap: 6px; }
  .office-landing .journey-sticky.immersive .scene-playbar button { width: 44px; height: 44px; }
  .office-landing .page-section { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .office-landing .page-section .button,
  .office-landing .closing-actions .button { min-height: 44px; }
  .office-landing .section-heading > p,
  .office-landing .workspace-copy > p:not(.eyebrow),
  .office-landing .trust-columns p { font-size: 14px; }
  .office-landing .faq-list summary { min-height: 58px; font-size: 14px; }
  .office-landing .faq-list p { font-size: 13px; }
  .office-landing .template-choice { min-height: 66px; }
  .office-landing .screen-dashboard-dialog { width: calc(100vw - 16px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
  .office-landing .screen-dashboard-panel { max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); border-radius: 12px; }
  .office-landing .screen-dashboard-header { padding: 11px 12px; gap: 10px; }
  .office-landing .screen-dashboard-heading h2 { font-size: 17px; line-height: 1.35; }
  .office-landing .screen-dashboard-heading p { margin-top: 3px; font-size: 11px; line-height: 1.45; }
  .office-landing .screen-dashboard-close { width: 44px; height: 44px; flex-basis: 44px; }
  .office-landing .screen-dashboard-body { scrollbar-gutter: auto; }
  .office-landing #screen-dashboard-host > #bcc-demo .bcc-shell { overflow: visible; }
  .office-landing #screen-dashboard-host .bcc-topbar { position: sticky; top: 0; z-index: 6; background: var(--b-bg); box-shadow: 0 3px 10px #00000006; }
  .office-landing #screen-dashboard-host .bcc-dialog-heading { position: sticky; top: 0; z-index: 2; background: var(--b-bg); }
  .office-landing .bcc-demo .bcc-mobile-menu { min-height: 44px; min-width: 44px; margin-left: 0; }
  .office-landing .bcc-demo .bcc-input,
  .office-landing .bcc-demo .bcc-select,
  .office-landing .bcc-demo .bcc-textarea { min-height: 44px; font-size: 16px !important; }
  .office-landing #screen-dashboard-host .bcc-drawer { padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}
/* Small phone screens retain the headline, description, metrics and all actions. */
@media (max-width: 800px) and (max-height: 760px) {
  .office-landing .narrative { gap: 6px; padding: 8px 18px; }
  .office-landing .narrative h1 { font-size: 26px; line-height: 1.18; }
  .office-landing .chapter,
  .office-landing #chapter-number { font-size: 9px; }
  .office-landing .story-description { font-size: 12px; line-height: 1.45; }
  .office-landing .story-card { padding: 8px 10px; }
  .office-landing .story-metrics strong { font-size: 21px; }
  .office-landing .story-metrics span { font-size: 10px; margin-top: 2px; }
  .office-landing .mobile-room-picker label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); }
}
@media (max-width: 800px) and (max-height: 640px) {
  .office-landing { --mobile-scene-height: clamp(136px, calc(37svh - 42px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)), 210px); }
  .office-landing .narrative { gap: 4px; padding: 6px 16px; }
  .office-landing .narrative h1 { font-size: 23px; line-height: 1.17; }
  .office-landing .story-card { padding: 6px 8px; }
  .office-landing .story-metrics strong { font-size: 20px; }
  .office-landing .story-metrics span { font-size: 9px; line-height: 1.3; }
  .office-landing .chapter { line-height: 1.25; }
  .office-landing .journey-modes button { font-size: 11px; padding-inline: 6px; }
}
@media (max-width: 360px) {
  .office-landing .narrative { padding-left: 16px; padding-right: 16px; }
  .office-landing .narrative h1 { font-size: 22px; }
  .office-landing .journey-modes { gap: 4px; }
  .office-landing .journey-modes button { font-size: 11px; padding-inline: 6px; }
  .office-landing .story-metrics strong { font-size: 20px; }
  html[lang="en"] .office-landing .story-metrics strong { font-size: 18px; }
  .office-landing .collector-badge { max-width: calc(100% - 121px); }
  .office-landing .collector-badge strong { font-size: 9px; }
  .office-landing .journey-navigation { gap: 4px; padding-left: 8px; padding-right: 8px; }
  .office-landing .journey-skip { font-size: 10px; padding-inline: 4px; }
  .office-landing .screen-dashboard-heading h2 { font-size: 15px; }
}
@media (min-width: 600px) and (max-width: 800px) and (min-height: 800px) {
  .office-landing { --mobile-scene-height: clamp(300px, 38svh, 390px); }
  .office-landing .narrative { max-width: 640px; padding: 18px 30px; gap: 12px; }
  .office-landing .narrative h1 { font-size: 36px; line-height: 1.2; }
  .office-landing .chapter,
  .office-landing #chapter-number { font-size: 11px; }
  .office-landing .story-description { font-size: 14px; line-height: 1.6; }
  .office-landing .story-card { padding: 14px; }
  .office-landing .story-metrics strong { font-size: 27px; }
  .office-landing .story-metrics span { font-size: 11px; }
  .office-landing .journey-modes button { font-size: 13px; }
  .office-landing .journey-step.active > span:nth-child(2) { max-width: 150px; font-size: 11px; }
  .office-landing .journey-navigation { padding-left: 24px; padding-right: 24px; }
}
/* Landscape phones use the width instead of stacking two cramped panels. */
@media (min-width: 601px) and (max-height: 500px) {
  .office-landing .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-rows: minmax(0, 1fr); }
  .office-landing .scene-column { grid-column: 1; grid-row: 1; }
  .office-landing .scene-column::after { left: auto; top: 0; bottom: 0; width: 24px; height: 100%; background: linear-gradient(90deg, transparent, var(--surface)); }
  .office-landing .narrative { grid-column: 2; grid-row: 1; grid-template-rows: auto auto auto 44px; max-width: none; padding: 7px 16px 7px 10px; gap: 5px; }
  .office-landing .narrative h1 { font-size: 24px; line-height: 1.16; }
  .office-landing .story-description { display: none; }
  .office-landing .story-card { grid-row: 3; padding: 6px 8px; }
  .office-landing .story-metrics strong { font-size: 20px; }
  .office-landing .story-metrics span { font-size: 9px; margin-top: 2px; }
  .office-landing .journey-modes,
  .office-landing .hero-actions { grid-row: 4; }
  .office-landing .journey-modes button { font-size: 11px; padding-inline: 7px; }
  .office-landing .mobile-room-picker { grid-row: 5; }
  .office-landing .mobile-room-picker label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); }
  .office-landing .chapter,
  .office-landing #chapter-number { font-size: 9px; }
  .office-landing .scene-topline,
  .office-landing .journey-sticky.immersive .scene-topline { left: 10px; }
  .office-landing .camera-controls { right: 10px; }
  .office-landing .collector-badge,
  .office-landing .journey-sticky.immersive .collector-badge { left: 10px; max-width: calc(100% - 121px); }
  .office-landing .mobile-open-dashboard { right: 10px; }
  .office-landing .screen-dashboard-header { padding-block: 7px; }
  .office-landing .screen-dashboard-heading p { display: none; }
}
