/* A layout composed for the phone, with room for both content and touch. */
@media (max-width:760px) {
  html { scroll-padding-top: 88px; }
  .shell { width: calc(100% - 44px); }
  .site-header { background: #fbfcf8f7; box-shadow: 0 1px 0 #233c2910; }
  .nav { height: 68px; gap: 10px; }
  .brand { font-size: 19px; font-weight: 650; letter-spacing: -.045em; gap: 7px; }
  .brand img { width: 27px; height: 27px; }
  .language-picker summary { gap: 6px; padding-inline: 6px; }
  .menu-toggle { width: 44px; height: 44px; border-radius: 13px; border-color: #d8ded4; background: #fff9; }
  .menu-toggle span { width: 18px; margin-inline: auto; }
  .mobile-menu { padding: 12px 14px 20px; border-radius: 0 0 22px 22px; }
  .mobile-menu a { min-height: 48px; padding: 13px 16px; }
  .mobile-menu a.mobile-menu-booking { font-size: 16px; }

  .home-compact .hero { background: #14261f; }
  .home-compact .hero::before { background: linear-gradient(165deg,#0d211af2,#11271fed 52%,#14261f 90%); }
  .home-compact .hero-inner { padding-block: 38px 30px; gap: 24px; }
  .home-compact .hero-copy { align-self: start; }
  .home-compact .hero h1 { font-size: clamp(34px,9.5vw,48px); font-weight: 550; line-height: 1.08; letter-spacing: -.045em; }
  .home-compact .hero-description { font-size: 16px; line-height: 1.65; color: #e1e9e2; margin: 22px 0 0; max-width: 35ch; }
  .home-compact .hero-actions { gap: 8px; }
  .home-compact .hero-actions > .button[href^="mailto:booking@"] { min-height: 58px; font-size: 17px; padding: 13px 17px 13px 23px; }
  .home-compact .hero-actions .hero-film-link { min-height: 46px; padding-block: 10px; border-color: transparent; border-radius: 12px; background: transparent; font-size: 14px; font-weight: 500; letter-spacing: -.01em; }
  .hero-action-hint { color: #b9cbbd; font-size: 11px; margin: 0; }
  .home-compact .hero-devices { aspect-ratio: 1.08; margin-top: 6px; border: 1px solid #b1c4b52b; border-radius: 24px; background: radial-gradient(ellipse at 75% 20%,#3e5a492b,transparent 65%),#0e1e18cc; }
  .home-compact .hero-laptop { top: 35%; left: 4%; width: 84%; }
  .home-compact .hero-phone { top: 4%; right: 5%; width: 36%; }
  .hero-laptop > .device-label { margin-bottom: 10px; font-size: 10px; }
  .home-compact .hero-phone > .device-label { font-size: 9px; line-height: 1.4; margin-top: 7px; padding: 3px 7px; background: #203b30; border-color: #a3b4a54a; box-shadow: none; }
  .device-orbit { right: -4%; top: 0; width: 94%; opacity: .5; }
  .hero-film-control { left: 12px; bottom: 12px; }
  .hero-film-toggle { min-height: 44px; font-size: 10px; background: #203b30f5; box-shadow: 0 4px 12px #10201620; }
  .home-compact .proof-strip { background: #14261f; border-top: 1px solid #b1c4b51c; padding-block: 26px 32px; }
  .home-compact .proof-value { font-size: 23px; font-weight: 500; letter-spacing: -.035em; }
  .home-compact .proof-label { font-size: 13px; }
  .home-compact .proof-stat + .proof-stat { margin-top: 17px; padding-top: 17px; }

  .home-compact .section { padding-block: 62px; }
  h2, .home-compact .employee-copy h2, .home-compact .agent-compact-copy h2, .contact-inner h2 { font-size: clamp(30px,8.5vw,38px); line-height: 1.12; letter-spacing: -.04em; }
  .section-heading { margin-bottom: 30px; }
  .eyebrow { font-size: 10px; letter-spacing: .12em; margin-bottom: 18px; }
  .intro { font-size: 16px; line-height: 1.7; }
  .split-heading { gap: 20px; }
  .decision-flow { grid-template-columns: 1fr; gap: 24px; }
  .decision-step { display: grid; grid-template-columns: 38px minmax(0,1fr); column-gap: 16px; row-gap: 7px; padding: 0 0 24px; border-radius: 0; border-bottom: 1px solid #d6dfd0; }
  .decision-step:last-child { border-bottom: 0; padding-bottom: 0; }
  .decision-node { grid-column: 1; grid-row: 1/4; width: 38px; height: 38px; justify-content: center; padding: 0; margin: 0; border: 1px solid #d3decd; border-radius: 12px; background: #eef2e8; color: #5a725e; font-size: 11px; }
  .decision-node svg, .decision-node::after { display: none; }
  .decision-number { flex-basis: auto; font-size: 12px; }
  .decision-step small, .decision-step h3, .decision-step p { grid-column: 2; }
  .decision-step small { font-size: 10px; letter-spacing: .08em; }
  .decision-step h3 { margin: 0; font-size: 24px; }
  .decision-step p { margin: 3px 0 0; font-size: 15px; line-height: 1.65; }
  .decision-foundation { margin-top: 30px; border-radius: 20px; }
  .decision-foundation > a { padding: 23px 20px; gap: 13px; grid-template-columns: 30px minmax(0,1fr) 16px; }
  .foundation-symbol svg { width: 28px; height: 28px; }
  .decision-foundation strong { font-size: 17px; }
  .decision-foundation span span { font-size: 14px; }

  .planning-gallery .gallery-categories { padding: 5px; gap: 5px; background: #e9eee3; border: 1px solid #d8e0d0; border-radius: 18px; margin-bottom: 12px; }
  .planning-gallery .gallery-categories button { border: 1px solid transparent; border-radius: 12px; background: transparent; padding: 11px 9px; gap: 9px; font-size: 14px; line-height: 1.35; font-weight: 550; }
  .planning-gallery .gallery-categories button[aria-pressed="true"] { background: #29493d; color: #fff; border-color: #29493d; box-shadow: 0 3px 10px #21392c1a; }
  .planning-gallery .exploration-trail { margin-top: 0; }
  .gallery-perspective { padding-top: 15px; }
  .gallery-perspective p { font-size: 15px; }
  .home-compact .planning-gallery .gallery-thumbs { gap: 9px; }
  .planning-gallery .gallery-thumb { width: 175px; border-radius: 13px; min-height: 62px; }
  .planning-gallery .gallery-thumb > span:last-child { font-size: 13px; font-weight: 550; }
  .planning-gallery .gallery-toolbar { border-radius: 16px 16px 0 0; padding: 12px; min-height: 60px; }
  .planning-gallery .gallery-toolbar > span { font-size: 9px; max-width: 40%; line-height: 1.5; }
  .planning-gallery .gallery-expand { font-size: 12px; }
  .planning-gallery .gallery-main:not(.is-portrait) { aspect-ratio: 16/10; border-radius: 0 0 16px 16px; padding: 5px; }
  .planning-gallery .gallery-description { gap: 18px; padding-top: 24px; }
  .planning-gallery .gallery-description h3 { font-size: 23px; line-height: 1.2; }
  .planning-gallery .gallery-description p { font-size: 15px; line-height: 1.7; }
  .gallery-controls { align-self: flex-end; }
  .gallery-invitation { border-radius: 20px; padding: 26px 22px; margin-top: 24px; }
  .gallery-invitation .button { font-size: 16px; }
  .image-note, .employee-caption { font-size: 11px; line-height: 1.65; }

  .home-compact .employee-device-stage { padding: 25px 18px 32px; border-radius: 24px; }
  .home-compact .employee-phone { width: min(100%,310px); }
  .employee-device-tag { margin-bottom: 0; }
  .employee-phone-nav button { min-height: 56px; }
  .home-compact .employee-choice { border-radius: 13px; font-size: 14px; }
  .home-compact .employee-current-description { font-size: 15px; line-height: 1.7; min-height: 0; margin-block: 8px 20px; }
  .agent-composer { border-radius: 20px; box-shadow: 0 16px 36px #0b211726; }
  .agent-suggestions button { border-radius: 12px; min-height: 50px; }
  .home-next-card { padding: 28px 23px; border-radius: 22px; }
  .home-next-card h2 { font-size: 31px; line-height: 1.15; }
  .home-next-card .button { min-height: 56px; font-size: 15px; }
  .contact-inner .button[href^="mailto:booking@"] { width: 100%; min-height: 58px; font-size: 17px; }
  .business-hero, .support-hero, .api-hero { padding-block: 44px 50px; }
  .business-hero h1, .about-hero h1, .support-hero h1, .api-hero h1 { font-size: clamp(33px,9vw,44px); line-height: 1.1; }
  .business-hero .intro, .about-hero .intro, .support-hero .intro, .api-hero .intro { font-size: 16px; line-height: 1.7; }
  .business-hero .button-row, .api-hero .button-row { gap: 12px; }
  .site-footer nav > a, .footer-languages a { display: flex; min-height: 44px; align-items: center; }

  .mobile-booking { left: 14px; right: 14px; bottom: max(12px,env(safe-area-inset-bottom,0px)); padding: 8px; gap: 12px; border-radius: 20px; background: #fcfcf7f7; border-color: #dce3d5; box-shadow: 0 10px 32px #112b2424; }
  .mobile-booking > span { font-size: 12px; font-weight: 500; padding-left: 8px; }
  .mobile-booking .button { font-size: 15px; border-radius: 13px; min-height: 50px; padding-inline: 17px 12px; box-shadow: none; }
  body:has(input:focus,textarea:focus,select:focus) .mobile-booking { visibility: hidden; }
}

/* An inset, scrollable sheet keeps the booking form comfortable on iPhone. */
@media (max-width:560px) {
  .contact-dialog { width: calc(100% - 16px); max-width: 520px; height: auto; max-height: calc(100dvh - 24px - env(safe-area-inset-bottom,0px)); margin: auto auto max(8px,env(safe-area-inset-bottom,0px)); border: 1px solid #e4e8de; border-radius: 24px; background: #fafbf6; }
  .contact-body { padding: 29px 22px 24px; }
  .contact-dialog h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.035em; font-weight: 550; }
  .contact-close { position: sticky; float: right; z-index: 2; top: 12px; right: 12px; margin: 12px 12px -56px 0; border-radius: 50%; background: #eaf0e4; }
  .contact-intro { font-size: 15px; line-height: 1.6; margin: 13px 0 24px; }
  .contact-form { gap: 17px; }
  .contact-field input, .contact-field textarea { font-size: 16px; border-radius: 12px; border-color: #d2dcc9; }
  .contact-field label { font-size: 13px; font-weight: 550; }
  .contact-actions .button { border-radius: 13px; font-size: 16px; font-weight: 600; }
  .contact-privacy { font-size: 12px; line-height: 1.6; }
}
@media (max-width:380px) {
  .shell { width: calc(100% - 36px); }
  .nav { gap: 8px; }
  .brand { font-size: 18px; }
  .brand img { width: 24px; height: 24px; }
  .language-picker summary svg { display: none; }
  .home-compact .hero h1 { font-size: 33px; }
  .home-compact .hero-description { font-size: 15px; }
  .planning-gallery .gallery-categories button { font-size: 13px; gap: 7px; }
}
@media (max-width:560px) and (max-height:540px) {
  .contact-dialog { width: 100%; max-width: 100%; max-height: 100dvh; margin: 0; border-radius: 0; }
}
