/* Device-aware layouts extend the shared desktop art direction. */
main, section, .hero-content, .hero-visual, .split > div, .solution-card,
.service-card, .knowledge-files, .knowledge-chat, .contact-section > div,
.contact-section form, .form-grid > label { min-width: 0; }
.hero h1, h2, h3, .file, .contact-phone { overflow-wrap: break-word; }
.hero h1 > span:not(.hero-highlight) { white-space: normal; }
input, select, textarea { max-width: 100%; }
html { scroll-padding-bottom: 100px; }
.motion-toggle { bottom: max(20px, env(safe-area-inset-bottom)); }
.whatsapp { bottom: max(20px, env(safe-area-inset-bottom)); }

@media (max-width: 1100px) and (min-width: 769px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .hero h1 { font-size: clamp(40px, 4.7vw, 52px); letter-spacing: -2.4px; }
  .page-hero h1 { font-size: clamp(38px, 4.5vw, 50px); }
  .hero-content { padding-right: 0; }
  .hero-visual { margin-left: 0; height: 440px; }
  .solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solution-card:last-child { grid-column: 1 / -1; }
  .solution-card:last-child p { max-width: 620px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card:last-child { grid-column: 1 / -1; }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .split h2 { font-size: clamp(32px, 3.7vw, 42px); }
  .knowledge-demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .knowledge-core { display: none; }
  .voice-demo { padding: 22px; }
  .transcript p { font-size: 16px; }
}
@media (max-width: 960px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: auto; padding-top: 42px; padding-bottom: 30px; gap: 10px; }
  .hero-content { padding-right: 0; }
  .hero h1 { font-size: clamp(36px, 7.3vw, 64px); line-height: 1.12; letter-spacing: -.055em; }
  .page-hero h1 { font-size: clamp(34px, 6.4vw, 58px); }
  .hero p { max-width: 620px; }
  .hero .actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
  .hero-visual { width: 100%; max-width: 580px; height: clamp(330px, 56vw, 470px); margin: 8px auto 0; align-self: center; }
  .page-hero .hero-visual { height: clamp(320px, 52vw, 430px); }
  .hero-note { margin-top: 28px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split > div > p { max-width: 640px; }
  .voice-demo { width: 100%; max-width: 640px; margin-inline: auto; }
  .ecosystem { max-width: 580px; margin-inline: auto; }
  .section-heading { display: block; }
  .section-heading > p { max-width: 620px; margin-top: 20px; }
  .contact-section { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .contact-section form { width: 100%; max-width: 720px; }
}
@media (max-width: 768px) {
  .solution-grid, .why-grid, .usecase-grid { grid-template-columns: minmax(0, 1fr); }
  .solution-card:last-child, .service-card:last-child { grid-column: auto; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card:last-child { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  input, select, textarea { font-size: 16px; min-height: 48px; }
  label { font-size: 14px; }
  .button, .menu-toggle, .industry-tabs button, .question-options button,
  .system, .text-button, .motion-toggle, .text-link { min-height: 44px; }
  .motion-toggle { font-size: 11px; padding: 10px 13px; }
  .question-options button { font-size: 12px; padding: 10px 12px; }
  .industry-tabs button { font-size: 13px; }
  .system { font-size: 10px; padding: 10px; }
  .scene-label span { font-size: 9px; letter-spacing: .7px; }
  .visual-label { font-size: 9px; }
  .visual-label small { font-size: 8px; letter-spacing: .7px; }
  .scene-bottom { font-size: 8px; letter-spacing: .4px; }
  .scene-hud { font-size: 8px; letter-spacing: .8px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .8px; max-width: 100%; }
  .hero-note { font-size: 9px; letter-spacing: .7px; }
  .fine { font-size: 13px !important; }
  .flow-caption { font-size: 11px; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .footer-links a { font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
  .footer-bottom { padding-bottom: calc(95px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 36px); }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); letter-spacing: -.055em; }
  .hero h1 > span:not(.hero-highlight) { font-size: .59em; line-height: 1.3; }
  .page-hero h1 { font-size: clamp(32px, 9.7vw, 43px); }
  h2 { font-size: clamp(28px, 8.3vw, 36px); }
  .hero .actions { gap: 12px 18px; }
  .button { font-size: 13px; gap: 20px; padding: 14px 17px; }
  .text-link { font-size: 13px; display: inline-flex; align-items: center; }
  .hero-visual { height: clamp(310px, 95vw, 390px); }
  .page-hero .hero-visual { height: clamp(310px, 93vw, 370px); }
  .visual-label { left: 0; right: auto; top: 2px; padding: 8px 10px; font-size: 8px; letter-spacing: .6px; }
  .visual-label small { font-size: 7px; }
  .scene-label { padding: 10px; font-size: 18px; }
  .scene-label span { font-size: 8px; letter-spacing: .3px; }
  .label-voice { right: 0; }
  .label-brain { right: 0; bottom: 24%; }
  .label-api { left: 0; bottom: 24%; }
  .scene-hud { bottom: 39px; max-width: 100%; white-space: nowrap; gap: 8px; font-size: 7px; padding: 8px 12px; }
  .scene-hud b { font-size: 10px; }
  .scene-bottom { font-size: 7px; letter-spacing: 0; }
  .scene-bottom b { padding-inline: 3px; }
  .service-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card:last-child { grid-column: auto; }
  .story-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; padding: 20px 16px; }
  .story-strip > div { font-size: 11px; }
  .story-strip small { font-size: 10px; }
  .knowledge-files .file { width: 100%; font-size: 13px; }
  .knowledge-files .file b { display: block; }
  .knowledge-chat { padding: 20px; }
  .voice-demo { padding: 20px; }
  .demo-bar { font-size: 9px; letter-spacing: .3px; flex-wrap: wrap; }
  .demo-label { font-size: 8px; }
  .question { font-size: 15px; }
  .answer p, .transcript p { font-size: 15px; }
  .answer small { display: inline-block; max-width: 100%; font-size: 11px; overflow-wrap: anywhere; }
  .industry-result { padding: 24px; }
  .system { font-size: 9px; padding: 8px; }
  .workflow-footer { flex-wrap: wrap; }
  .workflow-footer .fine { font-size: 11px !important; }
  .final-cta h2 { font-size: clamp(30px, 8.6vw, 39px); }
  .final-cta p br { display: none; }
  .final-cta .actions { flex-wrap: wrap; }
}
@media (pointer: coarse) {
  .question-options button, .system, .text-button, .motion-toggle, .menu-toggle { min-height: 44px; }
  .tilt-card { --rx: 0deg !important; --ry: 0deg !important; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .header { height: 64px; }
  .header nav { top: 64px; max-height: calc(100dvh - 64px); }
  .hero { padding-top: 24px; }
}
@media(max-width:600px){.story-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 12px}.story-strip>div{font-size:11px}.story-strip small{font-size:10px}}.usecase-grid h3{gap:14px}.usecase-grid h3 span{flex-shrink:0}
