/* Phone layout: preserve the factory artwork and let content breathe. */
@media (max-width: 760px) {
  html, body { height: auto; min-height: 100%; overflow-x: clip; overflow-y: auto; }
  body { min-width: 0; }
  .site-shell { height: auto; min-height: 100svh; max-height: none; padding: 0 max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-bottom)); }
  .site-header { height: 68px; gap: 12px; }
  .brand { font-size: 25px; }
  .brand-mark { width: 29px; height: 29px; }
  .desktop-nav { display: none; }
  .header-cta { min-height: 44px; padding: 0 13px; font-size: 12px; gap: 10px; }
  .main-content { display: block; }
  .hero { display: block; padding: 30px 0 20px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1.9px; line-height: 1.5; margin-bottom: 12px; }
  .hero h1 { font-size: clamp(37px, 9.5vw, 59px); line-height: 1.04; letter-spacing: -.055em; }
  .hero-description { font-size: 14px; line-height: 1.6; max-width: 34ch; margin-top: 14px; color: #b9beb4; }
  .hero-action { position: static; padding: 0; margin-top: 22px; }
  .watch-button { min-height: 48px; display: inline-flex; gap: 10px; font-size: 14px; white-space: normal; }
  .play-ring { width: 42px; height: 42px; flex-shrink: 0; border-color: #c49c61; background: #d8a65810; }
  .watch-button .duration { display: inline; font-size: 11px; margin-left: 4px; color: #9ba293; }
  .demo-indicator, .watch-hint { display: none; }
  .factory-stage { height: clamp(270px, 41svh, 390px); min-height: 270px; margin: 0 -20px 18px; border-top: 1px solid #ffffff0c; border-bottom: 1px solid #ffffff0c; background: radial-gradient(ellipse at center, #2d3027a0, #171918 75%); }
  .stage-topline { top: 16px; left: 20px; right: 20px; }
  .stage-caption { font-size: 8px; letter-spacing: 1.5px; color: #a3ac9a; }
  .scene-hint { display: none; }
  .artwork-mode { left: 20px; bottom: 12px; font-size: 8px; letter-spacing: .8px; color: #9da692; }
  .station-label { font-size: 11px; padding: 6px 9px; }
  .workflow-console { padding: 0; background: transparent; }
  .console-caption { position: relative; display: block; padding: 0 0 18px; }
  .stage-kicker { font-size: 10px; letter-spacing: 1.2px; min-height: 18px; margin-bottom: 8px; gap: 7px; }
  .stage-kicker .kicker-divider, #status-note { display: none; }
  .stage-copy h2 { max-width: none; padding-right: 0; font-size: 22px; line-height: 1.25; letter-spacing: -.65px; margin: 0 0 10px; }
  #stage-description, .stage-copy #stage-description { max-width: none; min-height: 0; font-size: 14px; line-height: 1.6; color: #aeb8a3; }
  .overview-button { width: auto; height: 44px; min-height: 44px; padding: 0 12px; margin-top: 14px; font-size: 12px; gap: 8px; border-color: #ffffff26; }
  .overview-button svg { width: 16px; height: 16px; }
  .playback-row { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding-top: 18px; }
  .steps-track { order: 0; border: 0; border-radius: 0; overflow: visible; background: none; }
  .step-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; gap: 8px; padding: 0 0 12px; }
  .step-button { min-height: 48px; padding: 8px 5px; border: 1px solid #ffffff1f; border-radius: 9px; font-size: 12px; gap: 6px; color: #b9c2af; background: #ffffff03; }
  .step-number { font-size: 9px; }
  .timeline-rail { left: 0; right: 0; bottom: 0; height: 2px; background: #ffffff15; opacity: 1; z-index: 0; }
  .transport-controls { order: 1; display: flex; gap: 10px; justify-content: center; padding: 0; }
  .playback-button, .replay-button { width: 48px; height: 48px; min-width: 48px; min-height: 48px; }
  .playback-button { font-size: 19px; }
  .replay-button { border: 1px solid #ffffff20; border-radius: 50%; }
  .replay-button svg { width: 19px; height: 19px; }
  .mobile-step-nav { height: 48px; min-width: 48px; flex: 1; max-width: 120px; background: transparent; border: 1px solid #ffffff20; border-radius: 9px; padding: 0 8px; font-size: 12px; color: #d3dbc9; }
  .mobile-step-nav:disabled { opacity: .35; }
  .console-bottom { margin-top: 20px; padding: 15px 0 0; border-top: 1px solid #ffffff12; }
  .console-bottom p { font-size: 11px; line-height: 1.6; }
  .mobile-about { display: block; min-height: 44px; padding: 0 8px; background: none; color: #bac5ad; font-size: 12px; }
  .context-panel.mobile-context { display: block; position: static; width: auto; opacity: 1; margin: 22px 0 0; padding: 16px; pointer-events: auto; border-radius: 12px; background: #22251f; }
  .context-heading { font-size: 13px; gap: 8px; margin-bottom: 14px; }
  .context-heading svg { width: 17px; height: 17px; }
  .example-label { font-size: 8px; }
  .context-message { gap: 12px; margin-top: 10px; align-items: start; }
  .message-role { font-size: 8px; width: 58px; line-height: 1.7; }
  .context-message p { font-size: 12px; line-height: 1.6; }
  .preview-link { min-height: 44px; font-size: 13px; align-items: center; padding: 4px 0; }
  .info-dialog { width: calc(100vw - 24px); padding: 34px 22px 24px; max-height: calc(100svh - 24px); }
  .dialog-close { width: 44px; height: 44px; top: 8px; right: 8px; }
  .info-dialog h2 { font-size: 28px; padding-right: 12px; }
  .info-dialog > p:not(.eyebrow), .about-features p { font-size: 14px; }
  .about-features h3 { font-size: 16px; }
  .app-content { min-width: 0; padding: 20px 12px; }
  .app-sidebar { width: 66px; padding: 15px 8px; }
  .example-field { overflow-wrap: anywhere; }
  .browser-bar span { font-size: 8px; margin-left: 7px; }
}
@media (min-width: 761px) { .mobile-step-nav, .mobile-about { display: none; } }
@media (max-width: 360px) { .site-shell { padding-left: 16px; padding-right: 16px; } .factory-stage { margin-left: -16px; margin-right: -16px; } .brand { font-size: 23px; } .header-cta { font-size: 11px; gap: 6px; } .hero h1 { font-size: 34px; } .step-button { font-size: 11px; } }
@media (max-height: 500px) and (max-width: 760px) and (orientation: landscape) { .hero { padding-top: 24px; } .factory-stage { height: 310px; } .context-panel.mobile-context { display: block; } }
