/* Mobile composition. The original 3D scene, wheel and scroll motion stay active. */
@media (max-width: 900px) {
  .section-top { flex-wrap: wrap; gap: 12px 20px; align-items: center; }
  .section-top .eyebrow { margin-bottom: 0; }
  .section-top .text-link, .related-links a, .related-section > .wrap > .text-link,
  .budget-layout .text-link { display: inline-flex; align-items: center; min-height: 44px; }
  .menu-button { min-width: 44px; min-height: 44px; flex-basis: 44px; }
  .header nav { max-height: calc(100dvh - 100px); overflow-y: auto; }
  .header nav a { min-height: 44px; }

  .works-wheel { height: auto; display: flex; flex-direction: column; margin-top: 28px; border-radius: 22px; background: radial-gradient(ellipse at 50% 180px, #20231f, #090b09 370px); }
  .works-stage { position: relative; inset: auto; width: 100%; height: 380px; min-height: 0; flex: none; overflow: hidden; mask-image: linear-gradient(transparent, #000 8%, #000 84%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 84%, transparent); }
  .works-drum { top: 50%; left: 50%; }
  .works-label { top: 190px; left: 50%; width: 72%; font-size: 28px; line-height: 1.08; }
  .works-label span { font-size: 9px; letter-spacing: 1px; margin-top: 12px; }
  .works-face { padding: 16px 18px; border-radius: 16px; }
  .works-card-head { font-size: 8px; letter-spacing: .6px; margin-bottom: 10px; }
  .works-card-name { font-size: 22px; line-height: 1.12; letter-spacing: -.7px; }
  .works-card-caption { font-size: 10px; line-height: 1.4; margin-top: 6px; }
  .works-object { height: 56px; left: 18px; right: 18px; bottom: 14px; gap: 14px; }
  .works-object-icon { width: 48px; height: 48px; border-radius: 13px; }
  .works-object-icon svg { width: 28px; height: 28px; }
  .works-object-panel { height: 60px; padding: 8px 10px; border-radius: 8px; }
  .works-object-panel > span { font-size: 6px; letter-spacing: .5px; }
  .works-object-panel strong { font-size: 10px; margin-top: 4px; }
  .works-flow { margin-top: 6px; }
  .works-flow i { width: 9px; height: 9px; border-radius: 3px; }
  .works-bars { height: 30px; gap: 5px; margin-top: 4px; }
  .works-document { font-size: 7px; padding: 4px 0; }
  .works-document b { font-size: 8px; }
  .works-web-dots { font-size: 5px; }
  .works-object-3 strong { font-size: 11px; margin-top: 3px; }
  .works-web-line { width: 40px; height: 3px; margin-top: 4px; }
  .works-connections { margin: 7px 0 4px; }
  .works-connections i { font-size: 7px; padding: 3px; }
  .works-object-panel small { font-size: 6px; }
  .works-index { position: relative; inset: auto; order: 2; width: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0 18px; padding: 0; background: none; border: 0; border-radius: 0; text-align: left; }
  .works-index li { min-width: 0; }
  .works-index li:last-child { grid-column: 1 / -1; }
  .works-index button { width: 100%; height: 100%; min-height: 52px; padding: 12px; display: flex; align-items: flex-start; gap: 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; line-height: 1.45; letter-spacing: -.2px; text-align: left; }
  .works-index button span { flex: none; margin: 3px 0 0; font-size: 9px; }
  .works-title { display: none; position: relative; inset: auto; transform: none; order: 3; width: auto; max-width: none; min-height: 0; padding: 22px 0 0; margin: 22px 22px 0; border-top: 1px solid var(--line); }
  .works-wheel:has(.works-index button[aria-pressed=true]) .works-title { display: block; }
  .works-number { font-size: 10px; letter-spacing: 1.5px; }
  .works-title h3 { font-size: 27px; line-height: 1.14; letter-spacing: -.8px; margin: 14px 0; max-width: none; }
  .works-title p { font-size: 14px; line-height: 1.75; }
  .works-title a { min-height: 44px; display: inline-flex; align-items: center; margin-top: 8px; }
  .works-footer { position: relative; inset: auto; order: 4; padding: 22px; gap: 16px; background: none; }
  .works-footer > span:first-child { flex: 1 1 160px; max-width: 230px; font-size: 11px; line-height: 1.6; }
  .works-footer > span:last-child { display: none; }
  .works-footer button { min-height: 44px; padding: 11px 17px; font-size: 12px; }

  .system-section { padding-left: 0; padding-right: 0; border: 0; background: none; overflow: visible; }
  .system-section::before { content: none; }
  .workspace { min-width: 0; border-radius: 16px; }
  .ws-sidebar nav { scroll-padding-inline: 4px; }
  .ws-sidebar nav button, .ws-btn, .ws-icon, .ws-filters select,
  .ws-role select, .ws-search, .ws-tasks form button { min-height: 44px; }
  .ws-icon { min-width: 44px; }
  .workspace input, .workspace select, .workspace textarea,
  .ws-dialog input, .ws-dialog select, .ws-dialog textarea { font-size: 16px; }
  .ws-search { width: 100%; }
  .ws-filters { gap: 8px; }
  .ws-filters label { flex: 1; min-width: 0; }
  .ws-filters select { width: 100%; max-width: 100%; padding-left: 8px; padding-right: 8px; }
  .ws-filters select, .ws-role select { font-size: 16px; }
  .ws-table-scroll { position: relative; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .ws-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior-y: contain; }
  .ws-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-form-grid label { min-width: 0; margin: 0; }
  .ws-form-grid input, .ws-form-grid select { min-width: 0; min-height: 48px; width: 100%; }
  .ws-form-grid .ws-error:empty { display: none; }
  .ws-expanded { max-height: calc(100dvh - 16px); }
  .ws-expanded .ws-main { min-height: 0; }
  .beam-explainer { margin: 0 20px; padding: 22px 0 24px; min-height: 190px; }
  .beam-pause { bottom: -16px; }
  .beam-caption { padding-right: 52px; line-height: 1.6; }
  .journey-title { overflow-wrap: break-word; }
  .zf label { margin: 0; font-size: 12px; line-height: 1.5; }
  .zf { gap: 8px; margin: 0; }
  .zf input, .zf textarea { min-height: 48px; margin: 0; padding: 13px 14px; font-size: 16px; line-height: 1.5; }
  .zf textarea { min-height: 130px; resize: vertical; }
  .zrow.two { gap: 20px; }
  .zform > .zf, .zform > .zrow { margin: 0 0 20px; }
  .zform #zf-go { min-height: 48px; width: 100%; }
  .zsmall { font-size: 11px; line-height: 1.7; }
  .foot-in a { display: inline-flex; align-items: center; min-height: 40px; }
}

@media (max-width: 900px) {
  .hero { min-height: 0; padding: 30px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto clamp(280px, 80vw, 360px) auto; gap: 12px; }
  .hero-copy { order: 1; width: 100%; max-width: 540px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .1em; margin: 0; }
  .hero h1 { font-size: clamp(40px, 12vw, 68px); line-height: 1.04; letter-spacing: -.065em; margin: 24px 0; }
  .hero-description { font-size: 15px; line-height: 1.75; color: #c5c8bf; max-width: 43ch; text-shadow: none; }
  .hero-actions { margin-top: 25px; gap: 12px 22px; }
  .hero-demo-link { min-height: 48px; padding: 13px 19px; border: 0; border-radius: 100px; background: var(--mint-bright); color: #0b2117; font-size: 14px; font-weight: 750; }
  .hero-demo-link:hover { background: #67dfb3; color: #0b2117; }
  .hero-secondary { min-height: 48px; display: inline-flex; align-items: center; padding: 12px 0; font-size: 13px; color: #c5c8bf; }
  #hero-character-root { order: 2; position: relative; inset: auto; width: 100%; height: 100%; min-height: 0; }
  #hero-background-root { inset: auto -20px 56px; height: clamp(280px, 80vw, 360px); opacity: .6; mask-image: linear-gradient(transparent, #000 20%, #000 70%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 70%, transparent); }
  .spline-hero::after { background: linear-gradient(0deg, #080908, transparent 25%, transparent 80%, #080908); }
  .spline-hero .character-pause { right: 8px; bottom: 12px; width: 44px; height: 44px; }
  .hero-bottom { order: 3; position: relative; inset: auto; margin: 0; padding: 10px 0 20px; font-size: 10px; line-height: 1.7; gap: 5px 8px; letter-spacing: 0; }
  .hero-bottom a { font-size: inherit; }
  .hero-bottom > span { max-width: none; line-height: inherit; }
  .hero-bottom > span:last-child { flex: 1 1 170px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header { height: 78px; gap: 10px; }
  .wordmark { font-size: 21px; }
  .metallic-host-header .metallic-button { min-width: 0; width: 148px; min-height: 44px; padding-inline: 12px; font-size: 12px; }
  .scope-heading h2 { font-size: clamp(34px, 9.8vw, 46px); }
  .system-heading { gap: 20px; }
  .system-heading h2 { font-size: clamp(40px, 11.8vw, 54px); }
  .system-heading > p, .process-example > p { font-size: 14px; line-height: 1.75; }
  .system-heading > p { max-width: 48ch; }
  .process-example { margin-bottom: 24px; }
  .ws-sidebar { padding: 16px 14px 12px; gap: 14px; }
  .ws-sidebar nav button { padding: 10px 12px; font-size: 12px; }
  .ws-heading-actions { width: 100%; gap: 8px; }
  .ws-heading-actions .ws-btn { flex: 1 1 auto; justify-content: center; }
  .ws-filters { flex-direction: column; }
  .ws-metric { padding: 16px 12px; }
  .ws-metric strong { font-size: clamp(21px, 6vw, 26px); }
  .ws-metric > div > span { font-size: 11px; }
  .glass-service-body { padding: 24px; }
  .glass-service-copy h3, .glass-service-wide h3 { font-size: clamp(25px, 7vw, 29px); }
  .glass-service-icon { right: 24px; }
  .glass-service-features { flex-wrap: wrap; }
  .beam-explainer { margin-inline: 18px; min-height: 230px; }
  .beam-explainer p { font-size: 14px; }
  .journey-track, .journey-reduced .journey-track { padding-top: 24px; padding-bottom: 24px; }
  .journey-intro h2 { font-size: clamp(35px, 10vw, 42px); }
  .journey-title { font-size: 26px; }
  .audience-section h2, .connection-section h2, .budget-layout h2, .related-section h2 { font-size: clamp(32px, 9.2vw, 40px); }
  .cta-h { font-size: clamp(33px, 9.8vw, 44px); }
  .zform { padding: 22px 18px; border-radius: 18px; }
  .zrow.two { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .form-wrap { gap: 28px; }
  .foot-in { font-size: 11px; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .hero h1 { font-size: 40px; }
  .hero-actions { gap: 6px 16px; }
  .hero-demo-link { padding-inline: 16px; font-size: 13px; }
  .hero-secondary { font-size: 12px; }
  .works-stage { height: 340px; }
  .works-label { top: 170px; font-size: 24px; }
  .works-index { margin-inline: 12px; gap: 6px; }
  .works-index button { padding: 10px 8px; font-size: 11px; gap: 6px; }
  .works-title { margin-inline: 18px; }
  .works-title h3 { font-size: 25px; }
  .works-footer { padding: 20px 18px; }
  .works-face { padding: 12px 14px; }
  .works-card-head { font-size: 7px; margin-bottom: 8px; }
  .works-card-name { font-size: 19px; }
  .works-card-caption { font-size: 9px; }
  .works-object { left: 14px; right: 14px; bottom: 10px; height: 46px; gap: 10px; }
  .works-object-icon { width: 40px; height: 40px; }
  .works-object-panel { height: 50px; padding: 6px 8px; }
  .works-object-panel small { display: none; }
  .ws-content { padding: 14px 12px; }
  .ws-topbar { padding: 12px; }
  .ws-metrics { gap: 10px; }
  .ws-metric { padding: 14px 10px; }
  .ws-role { gap: 4px; }
  .ws-role select { max-width: 160px; padding-inline: 6px; }
}

@media (max-width: 600px) {
  .ws-form-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ws-form-grid .ws-wide { grid-column: auto; }
  .ws-dialog-footer { flex-wrap: wrap; gap: 10px; }
  .ws-dialog-footer p { flex-basis: 100%; }
  .ws-dialog-footer button { flex: 1; justify-content: center; }
}
