/* Phone comfort layer. Desktop composition and service behavior are unchanged. */
@media (max-width: 760px) {
  body:is(.landing-modern, .page-examples, .page-works) {
    min-width: 0;
    -webkit-text-size-adjust: 100%;
  }

  :is(.landing-modern, .page-examples, .page-works) :is(button, a, summary, select) {
    touch-action: manipulation;
  }

  :is(.landing-modern, .page-examples, .page-works) :is(input, select, textarea) {
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  :is(.landing-modern, .page-examples, .page-works) .mobile-contact {
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 52px;
    padding: 13px 20px;
    justify-content: center;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
  }

  :is(.landing-modern, .page-examples, .page-works) .to-top {
    right: 14px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }

  :is(.landing-modern, .page-examples, .page-works) .site-footer {
    padding-bottom: calc(98px + env(safe-area-inset-bottom));
  }

  :is(.landing-modern, .page-examples, .page-works) .footer-links a {
    min-height: 44px;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .landing-modern .mobile-menu > a {
    min-height: 52px;
    font-size: 17px;
    line-height: 1.4;
  }

  /* The contact button yields to consent, focused fields and the brief builder. */
  :is(.landing-modern, .page-works):has(.nf-consent) .mobile-contact,
  .landing-modern:has(:is(input, select, textarea):focus) .mobile-contact {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  :is(.landing-modern, .page-examples, .page-works) .nf-consent {
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 16px;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    border-radius: 20px;
  }

  :is(.landing-modern, .page-examples, .page-works) .nf-cookie-art {
    width: 40px;
    height: 40px;
  }

  :is(.landing-modern, .page-examples, .page-works) .nf-consent p {
    font-size: 14px;
    line-height: 1.5;
  }

  :is(.landing-modern, .page-examples, .page-works) .nf-consent-actions {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  :is(.landing-modern, .page-examples, .page-works) .nf-consent :is(a, button) {
    min-height: 44px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  /* Stable gutters, shorter introductions and comfortable reading sizes. */
  .page-home.landing-modern .section-pad,
  .page-home.landing-modern .home-client-case,
  .landing-modern.lm-service .ai-pad,
  .page-shop.landing-modern .shop-pad {
    padding: 48px 18px;
  }

  .page-home.landing-modern .hero,
  .landing-modern.lm-service .premium-hero,
  .page-shop.landing-modern .premium-hero {
    padding: 30px 18px 28px;
    gap: 24px;
    min-height: 0;
  }

  .page-home.landing-modern .hero .eyebrow,
  .landing-modern.lm-service .eyeline,
  .page-shop.landing-modern .eyeline {
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: .06em;
    margin-bottom: 16px;
  }

  .page-home.landing-modern .hero h1 {
    font-size: clamp(37px, 10.6vw, 54px);
    margin-bottom: 18px;
  }

  .landing-modern.lm-service .premium-hero h1,
  .landing-modern.lm-service.page-ai .premium-hero h1 {
    font-size: clamp(32px, 9.2vw, 48px);
    margin: 18px 0;
    line-height: 1.12;
  }

  .page-shop.landing-modern .premium-hero h1 {
    font-size: clamp(36px, 10vw, 52px);
    margin: 18px 0;
  }

  .page-home.landing-modern .hero-lead,
  .landing-modern.lm-service .hero-description,
  .page-shop.landing-modern .hero-description {
    font-size: 16px;
    line-height: 1.65;
  }

  .page-home.landing-modern .hero-actions,
  .landing-modern.lm-service .premium-hero .ai-actions,
  .page-shop.landing-modern .premium-hero .shop-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 22px;
  }

  .page-home.landing-modern .hero-actions .button,
  .page-home.landing-modern .offer-card .button,
  .page-home.landing-modern .service-three .button.button-accent,
  .page-home.landing-modern .enquiry-actions .button,
  .landing-modern.lm-service .ai-btn,
  .page-shop.landing-modern .shop-btn {
    width: 100%;
    min-height: 50px;
    padding: 13px 16px;
    justify-content: center;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
  }

  .page-home.landing-modern .hero .landing-scope,
  .page-home.landing-modern .hero-price span,
  .landing-modern.lm-service .hero-caption,
  .page-shop.landing-modern .hero-caption,
  .page-shop.landing-modern .shop-hero-offer span {
    max-width: none;
    font-size: 13px;
    line-height: 1.65;
  }

  .page-home.landing-modern .future-showcase {
    max-width: 460px;
    padding: 12px 0 0;
  }

  .page-home.landing-modern .future-caption {
    width: 100%;
    font-size: 12px;
    line-height: 1.6;
  }

  .page-home.landing-modern .future-caption a {
    min-height: 44px;
  }

  .page-home.landing-modern .future-phone {
    bottom: 105px;
  }

  .page-home.landing-modern .home-page-index,
  .landing-modern.lm-service .service-waypoints,
  .page-shop.landing-modern .service-waypoints {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 18px;
    gap: 0;
  }

  .page-home.landing-modern .home-page-index a,
  .landing-modern.lm-service .service-waypoints a,
  .page-shop.landing-modern .service-waypoints a {
    min-height: 48px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #e2e4ed;
    font-size: 14px;
    line-height: 1.5;
    gap: 12px;
  }

  .page-home.landing-modern .home-page-index a:last-child,
  .landing-modern.lm-service .service-waypoints a:last-child,
  .page-shop.landing-modern .service-waypoints a:last-child { border-bottom: 0; }

  .page-home.landing-modern .home-page-index a > span,
  .landing-modern.lm-service .service-waypoints span { font-size: 11px; }

  .page-home.landing-modern .home-client-case-heading > p,
  .page-home.landing-modern .home-client-case dd,
  .page-home.landing-modern .home-section-heading :is(.offers-lead, .landing-section-lead),
  .page-home.landing-modern .offer-card > p:not(.offer-price),
  .page-home.landing-modern .offer-card li,
  .page-home.landing-modern .offer-legal p,
  .page-home.landing-modern .offers-terms,
  .page-home.landing-modern .landing-extra-grid p,
  .page-home.landing-modern .service-three-copy > p:not(.section-kicker),
  .page-home.landing-modern .process-list p,
  .page-home.landing-modern .faq-list p {
    font-size: 15px;
    line-height: 1.7;
  }

  /* An older package rule pins this one note with !important. */
  .page-home.landing-modern .offer-card .offer-note {
    font-size: 13px !important;
    line-height: 1.65;
  }

  .page-home.landing-modern .offer-card,
  .page-home.landing-modern .offer-card:nth-child(2),
  .page-home.landing-modern .landing-extra-grid article,
  .page-home.landing-modern .service-three {
    padding: 24px 20px;
  }

  .page-home.landing-modern .offer-legal summary,
  .page-home.landing-modern .faq-list summary {
    min-height: 48px;
    font-size: 16px;
    line-height: 1.5;
  }

  .page-home.landing-modern .offer-legal summary { display: flex; align-items: center; }

  .page-home.landing-modern :is(.home-client-case-primary, .home-client-case-secondary, .landing-help, .landing-direct),
  .page-home.landing-modern .landing-extra-grid a,
  .page-home.landing-modern .landing-extra-grid a.service-more {
    min-height: 44px;
    font-size: 14px;
    line-height: 1.6;
  }

  .page-home.landing-modern .landing-inclusions { padding: 20px 18px; }
  .page-home.landing-modern .landing-inclusions p { font-size: 14px; }
  .page-home.landing-modern .landing-inclusions > span { font-size: 12px; }

  .page-home.landing-modern .process-list li {
    padding: 22px 18px;
    gap: 0 12px;
  }

  .page-home.landing-modern .landing-enquiry { padding: 22px 16px; }
  .page-home.landing-modern .landing-enquiry label { font-size: 14px; }
  .page-home.landing-modern .landing-enquiry label span { font-size: 12px; }
  .page-home.landing-modern .landing-enquiry :is(select, textarea) { font-size: 16px; min-height: 50px; }
  .page-home.landing-modern .landing-enquiry textarea { min-height: 120px; }

  .page-home.landing-modern :is(.enquiry-hint, .landing-message, .landing-copy-status) {
    font-size: 13px;
    line-height: 1.7;
  }

  .page-home.landing-modern :is(.enquiry-mail, .enquiry-preview summary),
  .page-home.landing-modern .enquiry-mail-options :is(a, button) {
    min-height: 44px;
    font-size: 14px;
  }

  /* AI and bot illustrations remain useful without another full screen of height. */
  .landing-modern.lm-service .intelligence-scene {
    height: 330px;
    border-radius: 24px;
  }
  .landing-modern.lm-service .lm-scene-label {
    top: 16px;
    left: 16px;
    right: 16px;
    font-size: 10px;
    letter-spacing: .04em;
  }
  .landing-modern.lm-service .lm-scene-label b { display: none; }
  .landing-modern.lm-service .intelligence-core { top: 40%; left: 71%; }
  .landing-modern.lm-service .intelligence-core img { width: 160px; height: 160px; }
  .landing-modern.lm-service .incoming {
    top: 48px;
    left: 16px;
    width: 164px;
    padding: 15px;
    transform: rotate(-2deg);
  }
  .landing-modern.lm-service .outgoing {
    bottom: 45px;
    right: 16px;
    width: min(225px, calc(100% - 32px));
    padding: 15px;
    transform: rotate(2deg);
  }
  .landing-modern.lm-service .float-card .micro,
  .landing-modern.lm-service .float-card small { font-size: 11px; }
  .landing-modern.lm-service .scene-caption { font-size: 11px; bottom: 15px; }
  .landing-modern.lm-service .lm-benefits { font-size: 13px; gap: 6px 14px; }

  .landing-modern.lm-service .ai-head p,
  .landing-modern.lm-service .growth-card :is(p, li),
  .landing-modern.lm-service .lm-delivery .process-cards p,
  .landing-modern.lm-service .lm-delivery .growth-steps > li,
  .landing-modern.lm-service :is(.growth-note, .growth-acceptance, .limit-card p, .service-faq p, .ai-price-card p) {
    font-size: 15px;
    line-height: 1.7;
  }
  .landing-modern.lm-service .growth-card,
  .landing-modern.lm-service .lm-delivery .process-cards article,
  .landing-modern.lm-service .lm-delivery .growth-steps > li,
  .landing-modern.lm-service .task-box { padding: 24px 20px; }
  .landing-modern.lm-service .growth-tag { font-size: 12px; letter-spacing: .03em; }
  .landing-modern.lm-service .task-tab { min-height: 48px; font-size: 14px; padding: 10px; }
  .landing-modern.lm-service .task-in { font-size: 15px; line-height: 1.7; }
  .landing-modern.lm-service .out-row { font-size: 14px; overflow-wrap: anywhere; }
  .landing-modern.lm-service .run-btn { min-height: 48px; width: 100%; font-size: 14px; }
  .landing-modern.lm-service .service-faq summary { min-height: 64px; font-size: 16px; line-height: 1.5; }
  .landing-modern.lm-service :is(.run-status, .growth-demo-status, .growth-brief-help, .growth-brief-status, .growth-field small) { font-size: 13px; line-height: 1.7; }
  .landing-modern.lm-service .growth-field { font-size: 14px; }
  .landing-modern.lm-service .growth-field :is(select, textarea),
  .landing-modern.lm-service .growth-brief-result textarea { font-size: 16px; }
  .landing-modern.lm-service .growth-brief-result { padding: 20px 16px; }
  .landing-modern.lm-service .growth-brief-result label { font-size: 12px; letter-spacing: .03em; }
  .landing-modern.lm-service .growth-brief-actions { display: grid; grid-template-columns: 1fr; }
  .landing-modern.lm-service .growth-copy,
  .landing-modern.lm-service .growth-brief-actions .ai-btn { min-height: 48px; font-size: 14px; }
  .landing-modern.lm-service .ai-cta > p { font-size: 15px; line-height: 1.7; }
  .landing-modern.lm-service .ai-cta .ai-note { font-size: 13px; }

  .page-automation.lm-service .bot-scenarios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }
  .page-automation.lm-service .bot-scenarios button {
    flex: 1 1 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px;
    border: 1px solid #d7deea;
    border-radius: 12px;
    text-align: center;
  }
  .page-automation.lm-service .bot-scenarios button span { font-size: 14px; }
  .page-automation.lm-service .bot-scenarios button :is(b, small) { display: none; }
  .page-automation.lm-service .bot-phone {
    width: calc(100% - 24px);
    min-height: 400px;
    max-height: 540px;
    grid-template-rows: 48px minmax(180px, 1fr) auto;
    margin: 18px 12px;
    border-radius: 20px;
  }
  .page-automation.lm-service .phone-chat { padding: 14px; }
  .page-automation.lm-service .chat-message { max-width: 94%; font-size: 15px; line-height: 1.55; }
  .page-automation.lm-service .phone-actions { padding: 10px; gap: 8px; }
  .page-automation.lm-service .phone-actions button { min-height: 48px; padding: 12px; font-size: 14px; line-height: 1.45; }
  .page-automation.lm-service .bot-state { padding: 20px; }
  .page-automation.lm-service .bot-state dd { font-size: 15px; line-height: 1.6; }
  .page-automation.lm-service .bot-state dt { font-size: 12px; }
  .page-automation.lm-service .bot-state p { font-size: 14px; line-height: 1.7; }

  /* Shop controls get thumb-sized targets; narrow catalogues use one legible column. */
  .page-shop.landing-modern .commerce-still { height: 300px; }
  .page-shop.landing-modern .art-demo-link { bottom: 54px; padding: 12px; }
  .page-shop.landing-modern .art-demo-link b { font-size: 14px; }
  .page-shop.landing-modern .art-demo-link small { font-size: 12px; }
  .page-shop.landing-modern .shop-head p,
  .page-shop.landing-modern :is(.inside-card p, .flow-step p, .case-list li, .need-col li, .shop-package-scope li, .price-card p, .faq-shop-list p) {
    font-size: 15px;
    line-height: 1.7;
  }
  .page-shop.landing-modern .builder-controls { padding: 20px 16px; gap: 18px; }
  .page-shop.landing-modern .builder-controls legend { font-size: 13px; letter-spacing: .03em; }
  .page-shop.landing-modern .chip { min-height: 48px; padding: 11px 12px; font-size: 14px; }
  .page-shop.landing-modern .chip-row { flex-wrap: wrap; gap: 8px; }
  .page-shop.landing-modern .builder-hint { font-size: 13px; line-height: 1.65; }
  .page-shop.landing-modern .preview-top :is([data-preview-meta], .preview-cart) { font-size: 13px; }
  .page-shop.landing-modern .pv-card b { font-size: 14px; line-height: 1.5; }
  .page-shop.landing-modern .pv-card small { font-size: 12px; letter-spacing: 0; }
  .page-shop.landing-modern .pv-foot strong { font-size: 16px; }
  .page-shop.landing-modern .pv-foot del { font-size: 12px; }
  .page-shop.landing-modern .pv-buy { min-height: 48px; font-size: 14px; }
  .page-shop.landing-modern .pv-buy.icon { width: 48px; height: 48px; flex-basis: 48px; }
  .page-shop.landing-modern .preview-clear { font-size: 14px; min-height: 44px; }
  .page-shop.landing-modern .faq-shop summary { font-size: 16px; line-height: 1.5; }
  .page-shop.landing-modern :is(.shop-demo-note, .need-note, .shop-note, .shop-contact-note) { font-size: 13px; line-height: 1.65; }
  .page-shop.landing-modern .shop-contact-actions { padding: 22px 18px; }
  .page-shop.landing-modern .shop-price-shell { padding: 24px 20px; }
  .page-shop.landing-modern .price-intro a { justify-content: center; font-size: 14px; }

  /* The 3D collection stays touchable while leaving room to read its controls. */
  .page-three.landing-modern main { padding-inline: 18px; }
  .page-three.landing-modern .three-header { padding: 12px 18px; }
  .page-three.landing-modern .three-header-cta { font-size: 12px; min-height: 44px; padding-inline: 12px; }
  .page-three.landing-modern .three-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .page-three.landing-modern .three-nav a { font-size: 13px; padding: 10px 6px; justify-content: center; }
  .page-three.landing-modern .three-hero { padding-top: 30px; }
  .page-three.landing-modern .three-hero-copy > p { font-size: 16px; line-height: 1.65; }
  .page-three.landing-modern .three-hero-copy > .three-hero-note { font-size: 13px; max-width: none; }
  .page-three.landing-modern .three-actions a,
  .page-three.landing-modern .button,
  .page-three.landing-modern .three-contact .button { justify-content: center; min-height: 50px; font-size: 14px; }
  .page-three.landing-modern .three-feature-strip { font-size: 14px; margin-bottom: 38px; }
  .page-three.landing-modern .three-section-heading > p,
  .page-three.landing-modern .description p,
  .page-three.landing-modern .three-use-grid p,
  .page-three.landing-modern .details p,
  .page-three.landing-modern .three-steps p,
  .page-three.landing-modern .three-contact p { font-size: 15px; line-height: 1.7; }
  .page-three.landing-modern canvas,
  .page-three.landing-modern .product-showcase canvas { height: 280px; min-height: 0; }
  .page-three.landing-modern .scene-label { font-size: 10px; padding: 18px 16px 0; }
  .page-three.landing-modern .hint { font-size: 12px; line-height: 1.6; }
  .page-three.landing-modern .controls { gap: 8px; padding-inline: 12px; flex-wrap: wrap; }
  .page-three.landing-modern .controls button { min-width: 48px; min-height: 48px; font-size: 13px; padding: 10px 14px; }
  .page-three.landing-modern aside { padding: 20px 16px; }
  .page-three.landing-modern .models button { min-height: 48px; padding: 12px 9px; font-size: 13px; }
  .page-three.landing-modern .models button span { font-size: 11px; }
  .page-three.landing-modern :is(.finishes, .colors) { gap: 8px; }
  .page-three.landing-modern :is(.finishes, .colors) button { min-height: 48px; font-size: 13px; }
  .page-three.landing-modern :is(.finishes, .colors) legend { font-size: 12px; letter-spacing: .03em; }
  .page-three.landing-modern .three-use-grid a,
  .page-three.landing-modern .product-enquire,
  .page-three.landing-modern .demo-clear { font-size: 14px; min-height: 44px; }
  .page-three.landing-modern .demo-cart { font-size: 13px; line-height: 1.7; }
  .page-three.landing-modern .three-contact { padding: 26px 20px; }
  .page-three.landing-modern .three-contact-email { font-size: 13px; }
  .page-three.landing-modern .three-footer { font-size: 12px; padding: 20px 18px; }

  /* Supporting portfolio pages: readable captions and easy-to-hit project links. */
  .page-examples .examples-hero { padding: 36px 18px; }
  .page-examples .examples-hero h1 { font-size: clamp(36px, 10vw, 50px); }
  .page-examples .examples-hero > p:not(.section-kicker) { font-size: 16px; line-height: 1.65; }
  /* The old gallery disclaimer explicitly fixes its size. */
  .page-examples .examples-hero .examples-disclaimer { font-size: 13px !important; }
  .page-examples :is(.examples-collection, .examples-next) { padding: 36px 18px; }
  .page-examples .example-copy,
  .page-examples .example-card:last-child .example-copy { padding: 24px 20px; }
  .page-examples .example-copy > p { font-size: 15px; line-height: 1.7; }
  .page-examples .example-tags { gap: 8px; }
  .page-examples .example-tags li { font-size: 12px; }
  .page-examples .example-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .page-examples .example-actions .button,
  .page-examples .example-discuss,
  .page-examples .examples-next-actions a { font-size: 14px; min-height: 48px; justify-content: center; text-align: center; }
  .page-examples .example-discuss { display: flex; align-items: center; }
  .page-works .case-copy { padding: 30px 20px; }
  .page-works .case-copy :is(.case-lead, dd) { font-size: 15px; line-height: 1.7; }
  .page-works .case-copy :is(dt, .case-status) { font-size: 12px; line-height: 1.6; }
  .page-works .case-tags span { font-size: 12px; }
  .page-works .case-copy .button,
  .page-works .flower-case .visual-links .button,
  .page-works .flower-discuss { font-size: 14px; min-height: 48px; }
}

@media (max-width: 420px) {
  .page-shop.landing-modern .preview-grid,
  .page-shop.landing-modern .preview-grid[data-cols] { grid-template-columns: minmax(0, 1fr); }
  .page-shop.landing-modern .pv-card { padding: 16px; }
  .page-shop.landing-modern .pv-thumb { height: 146px; }
  .page-shop.landing-modern .pv-card.compact { min-height: 0; }
  .page-shop.landing-modern .pv-card.compact .pv-foot { flex-direction: row; align-items: center; justify-content: space-between; }
}
