/* Mobile composition: readable content in normal flow, with native touch scrolling. */
@media (max-width: 760px) {
  :root { --page-gutter: 18px; }
  html { scroll-padding-top: 82px; }
  .header, .case-shell .header { padding-inline: 18px; }
  .header > .button { min-height: 40px; }
  .nav-notch, .nav-notch.is-scrolled { width: calc(100% - 36px); max-width: 390px; }
  .nav-notch.is-scrolled { top: max(10px, env(safe-area-inset-top)); }
  .top-nav a { min-height: 38px; display: grid; place-items: center; }
  .hero { gap: 24px; padding-top: 20px; }
  .hero-copy h1 { font-size: clamp(30px, 8.2vw, 52px); letter-spacing: -.04em; }
  .hero-copy p { font-size: 15px; }
  .crm, .hero-bottom { width: calc(100% - 36px); }
  .hero-invite.glass, .hero-business.glass { padding: 22px; }
  .hero-business div span { font-size: 14px; }
  .crm-tabs button { min-height: 36px; }
  .crm-row { height: auto; min-height: 42px; }
  .crm-row b { font-size: 10px; }
  .crm-search { display: none; }
  .crm-bottom { flex-wrap: wrap; row-gap: 6px; }
  .section-heading h2, .works .section-heading h2 { font-size: clamp(29px, 7.7vw, 40px); }
  .section-heading > p { font-size: 13px; line-height: 1.6; }
  .service-grid { gap: 28px 16px; }
  .service-art { max-width: 175px; margin-inline: auto; }
  .service h3 { font-size: 18px; line-height: 1.25; }
  .service p { font-size: 14px; line-height: 1.55; }
  .service > .round-arrow { width: 38px; height: 38px; }

  .custom { display: flex; flex-direction: column; align-items: stretch; height: auto; gap: 20px; padding: 26px 18px; }
  .custom-copy { width: 100%; grid-template-columns: 48px minmax(0, 1fr); gap: 18px 12px; }
  .custom-icon { width: 48px; height: 48px; border-radius: 15px; }
  .custom-icon svg { width: 30px; height: 30px; }
  .custom-copy h3 { font-size: 24px; line-height: 1.15; }
  .custom-copy p { font-size: 14px; line-height: 1.55; }
  .custom-copy > .button { position: static; min-height: 44px; font-size: 12px; }
  .custom-steps.glass { position: relative; inset: auto; width: 100%; min-width: 0; padding: 14px 18px; font-size: 13px; gap: 3px; }
  .custom-steps li { padding-block: 9px; }
  .code-sculpture { display: none; }

  .workflow { padding: 32px 18px; }
  .workflow-content { gap: 26px; }
  .system-stack { width: 100%; }
  .stack-layer { height: auto; min-height: 52px; font-size: 14px; }
  .flow-card { height: auto; min-height: 190px; padding: 18px; }
  .flow-card h3 { font-size: 14px; line-height: 1.45; gap: 10px; margin-bottom: 14px; }
  .flow-card h3 i { width: 25px; height: 25px; }
  .mini-form, .mini-list { padding: 12px; }
  .mini-form strong { font-size: 13px; }
  .mini-form > span, .mini-list > span { font-size: 12px; }
  .mini-form button { min-height: 44px; font-size: 13px; }
  .mini-list svg { width: 16px; height: 16px; }
  .telegram-alert { display: flex; padding: 12px; gap: 12px; }
  .telegram-alert b { font-size: 13px; }
  .telegram-alert p { font-size: 12px; line-height: 1.5; }
  .flow-caption { position: static; margin-top: 20px; text-align: center; font-size: 11px; line-height: 1.5; }

  .project-grid { gap: 24px; }
  .project-card { padding: 12px; }
  .project-editorial-head { padding: 6px 4px 0; }
  .project-editorial-head h3 { font-size: 24px; line-height: 1.2; }
  .project-editorial-foot { flex-wrap: wrap; align-items: center; padding: 12px 4px 0; gap: 6px 12px; }
  .project-editorial-foot > span { max-width: none; font-size: 11px; }
  .project-editorial-foot > a { min-height: 44px; font-size: 12px; }
  .project-card .product-demo, .product-demo[data-compact=true], .product-demo[data-compact=true] > div { min-height: 0; height: auto; }

  .approach { height: auto; padding: 32px 18px; background-image: linear-gradient(transparent 330px, #dceefa 540px), url('/assets/art/team-orbit.webp'); background-size: 100% 100%, auto 540px; background-position: center top; background-repeat: no-repeat; background-color: #dceefa; }
  .team-grid { position: relative; inset: auto; margin-top: 230px; grid-template-columns: 1fr; grid-template-rows: none; gap: 12px; }
  .team-grid .team-card { grid-column: auto; grid-row: auto; display: flex; align-items: flex-start; padding: 18px; gap: 14px; }
  .team-card .glass-icon { flex-shrink: 0; width: 40px; height: 40px; }
  .team-grid .team-card h3 { margin: 0 0 7px; font-size: 17px; }
  .team-grid .team-card p { font-size: 14px; line-height: 1.55; }
  .progress-pill { position: relative; inset: auto; transform: none; margin: 20px 0 0; max-width: none; width: 100%; font-size: 11px; line-height: 1.6; flex-wrap: wrap; }

  .case-hero, .theme-loyalty .case-hero, .theme-tailcare .case-hero { padding: 22px 12px 28px; gap: 24px; }
  .case-intro { padding-inline: 8px; }
  .case-intro h1, .theme-gift .case-intro h1 { font-size: clamp(35px, 10vw, 52px); }
  .case-intro h2, .theme-loyalty .case-intro h2, .theme-tailcare .case-intro h2 { max-width: none; font-size: 23px; line-height: 1.25; }
  .case-intro > p, .theme-tailcare .case-intro > p { max-width: none; font-size: 15px; line-height: 1.6; }
  .case-intro .tags { max-width: none; gap: 6px; }
  .case-intro .tags > span { padding: 8px 10px; font-size: 11px; }
  .interactive-stage { padding: 6px; border-radius: 24px; scroll-margin-top: 82px; }
  .stage-invitation { padding: 12px 10px 18px; }
  .stage-invitation p { font-size: 13px; line-height: 1.5; }
  .interactive-stage > .product-demo { min-height: 0; }
  .case-hero-bottom { flex-direction: column; align-items: stretch; gap: 10px; }
  .case-note, .case-scroll { min-height: 44px; justify-content: center; text-align: center; font-size: 12px!important; margin: 0; }
  .case-function-grid { grid-template-columns: 1fr; gap: 0; }
  .case-function { padding: 24px 4px; }
  .case-function > header { margin-bottom: 14px; }
  .case-function h3 { font-size: 24px; margin-bottom: 12px; }
  .case-function p { font-size: 15px; line-height: 1.6; }
  .case-gallery-grid { padding: 14px; gap: 20px 12px; }
  .case-gallery-grid img { height: auto; max-height: 280px; }
  .case-gallery-grid figcaption { font-size: 12px; }
  .case-ecosystem { height: auto; padding: 32px 18px; background-size: auto 520px; background-position: center top; }
  .case-ecosystem:before { background: linear-gradient(transparent 300px, #e1edf1 500px); }
  .case-eco-heading h2 { font-size: 30px; }
  .feature-orbit { position: relative; inset: auto; grid-template-columns: 1fr; grid-template-rows: none; gap: 12px; margin-top: 240px; }
  .orbit-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; }
  .orbit-card .glass-icon { flex-shrink: 0; float: none; width: 36px; height: 36px; margin: 0; }
  .orbit-card h3 { display: block; min-height: 0; font-size: 17px; margin-bottom: 7px; }
  .orbit-card p { font-size: 14px; line-height: 1.55; }
  .details summary { font-size: 16px; }
  .details-list details p { font-size: 14px; }
  .tech-flow { gap: 10px; }
  .tech-item { min-width: 0; padding: 16px 10px; gap: 8px; }
  .tech-item h3 { font-size: 13px; overflow-wrap: anywhere; }
  .tech-item p { font-size: 11px; line-height: 1.45; }
  .tech-logo { flex-shrink: 0; font-size: 24px; }
  .contact { height: auto; min-height: 340px; padding: 32px 18px; }
  .contact-copy { width: 100%; }
  .contact h2 { font-size: 32px; max-width: 340px; }
  .contact p { font-size: 15px; line-height: 1.6; }
  .contact p br { display: none; }
  .contact .button { min-height: 44px; }
  .contact-words { display: none; }
  .footer { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .footer nav a, .footer > a { min-height: 44px; display: inline-flex; align-items: center; }

  /* Keep controls legible even inside the narrower homepage exhibits. */
  .product-demo .gift-demo, .product-demo .maverick-demo, .product-demo .loyalty-demo, .product-demo .tailcare-demo { padding: 22px 14px; min-height: 0; height: auto; }
  .product-demo .demo-topbar { gap: 10px; flex-wrap: wrap; }
  .product-demo .demo-topbar small { font-size: 9px; }
  .product-demo .demo-tabs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
  .product-demo .demo-tabs button { min-height: 44px; padding: 8px; font-size: 12px; }
  .product-demo .loyalty-demo .demo-tabs button:last-child { grid-column: 1 / -1; }
  .product-demo .demo-action, .product-demo[data-compact=true] .demo-action { min-height: 44px; font-size: 13px; padding: 12px; }
  .product-demo .demo-status, .product-demo[data-compact=true] .demo-status { font-size: 12px; line-height: 1.6; }
  .product-demo .demo-note { font-size: 11px; line-height: 1.6; }
  .product-demo .member-profile { padding: 14px 0; }
  .product-demo .member-achievements { width: 100%; display: grid; grid-template-columns: 1fr; gap: 8px; }
  .product-demo .member-achievements span { flex-direction: row; font-size: 12px; padding: 12px; }
  .product-demo .roulette-heading { margin-bottom: 40px; }
  .product-demo .roulette-heading h3 { font-size: 22px; line-height: 1.2; }
  .product-demo .compact .roulette-heading h3 { font-size: 19px; }
  .product-demo .mine-options button { min-height: 36px; min-width: 36px; }
  .product-demo .compact .game-field { max-width: 250px; }
  .product-demo .upgrade-picks { padding: 22px 0; gap: 6px; grid-template-columns: minmax(0,1fr) minmax(130px,1.5fr) minmax(0,1fr); }
  .product-demo .upgrade-picks span { font-size: 10px; overflow-wrap: anywhere; text-align: center; }
  .product-demo .target-picker button { min-height: 44px; }
  .product-demo .game-container { height: 240px; }
  .product-demo .case-heading { padding: 15px 0 24px; }
  .product-demo .case-heading h3 { font-size: 22px; }
  .product-demo .pet-search input { font-size: 16px; }
  .product-demo .pet-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .product-demo .pet-filters button { min-height: 40px; padding: 7px; font-size: 12px; }
  .product-demo .pet-grid { gap: 10px; }
  .product-demo .pet-detail-content, .product-demo .compact .pet-detail-content { grid-template-columns: 1fr; gap: 16px; }
  .product-demo .pet-detail-content > img, .product-demo .compact .pet-detail-content > img { height: auto; aspect-ratio: 1.3; }
  .product-demo .pet-detail-content p, .product-demo .compact .pet-detail-content p { font-size: 14px; }
  .product-demo .pet-back { min-height: 44px; font-size: 13px; }
  .product-demo .pet-grid .dog-card__body { padding: 10px; }
  .product-demo .pet-grid .dog-card__topline { flex-direction: column; align-items: flex-start; gap: 7px; }
  .product-demo .pet-grid .dog-card__status { font-size: 10px; }
  .product-demo .pet-grid h3 { font-size: 17px; }
  .product-demo .pet-grid .dog-card__meta { font-size: 11px; }
  .product-demo .tailcare-demo.compact .pet-filters button { min-height: 40px; font-size: 12px; }
  .product-demo .tailcare-demo.compact .pet-grid .dog-card__status { font-size: 10px; padding: 4px 6px; }
  .product-demo .tailcare-demo.compact .pet-grid h3 { font-size: 17px; }
  .product-demo .daily-demo { padding: 14px 10px; gap: 8px; }
  .product-demo .daily-demo > span { min-width: 0; gap: 8px; }
  .product-demo .daily-demo b { font-size: 13px; }
  .product-demo .daily-demo small { font-size: 11px; line-height: 1.5; }
  .product-demo .flip-invitation { font-size: 11px; line-height: 1.5; }
  .product-demo .stack-box { height: min(360px, 55svh); min-height: 280px; }
}
@media (max-width: 560px) {
  .flow-grid { grid-template-columns: 1fr; }
  .flow-card { min-height: 0; }
}
@media (max-width: 370px) {
  :root { --page-gutter: 14px; }
  .header, .case-shell .header { padding-inline: 14px; }
  .header > .button { gap: 8px; }
  .service-grid { gap: 24px 12px; }
  .service h3 { font-size: 16px; }
  .service p { font-size: 13px; }
  .project-card { padding: 9px; }
  .project-editorial-head h3 { font-size: 22px; }
  .product-demo .tailcare-demo .pet-grid, .product-demo .tailcare-demo.compact .pet-grid { grid-template-columns: 1fr; }
  .product-demo .pet-grid .dog-card__image { aspect-ratio: 1.5; }
  .product-demo .demo-wordmark { font-size: 21px; }
  .product-demo .member-balance { padding: 6px 8px; }
}
@media (hover: none) {
  .project-card:hover, .team-card:hover, .orbit-card:hover { translate: none; transform: none; }
}
