/* Touch layouts keep the desktop motion language with touch-friendly paging. */
@media (max-width: 760px) {
  html { scroll-padding-top: 56px; scrollbar-width: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
  html:has(.intro-page), html:has(.profile-page) { scroll-snap-type: y mandatory; }
  html:has(.project-list-page) { scroll-snap-type: y proximity; }
  body { padding-bottom: calc(90px + env(safe-area-inset-bottom)); overflow-x: clip; }
  .site-header, .snap-page .site-header, .project-list-page .site-header {
    position: sticky; top: 0; height: 56px; padding: 0 20px;
    transform: none; opacity: 1; z-index: 90; background: #000;
    backdrop-filter: none;
  }
  .site-header.is-hidden { transform: none; opacity: 1; pointer-events: auto; }
  .how-logo { position: static; font-size: 18px; margin-right: auto; }
  .site-nav {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    height: calc(66px + env(safe-area-inset-bottom)); gap: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    border: 0; border-top: 1px solid #252525; border-radius: 0;
    background: #0b0b0b; transform: none; backdrop-filter: none;
  }
  .site-nav a { display: grid; place-items: center; min-height: 44px; font-size: 14px; padding: 0; border-radius: 6px; }
  .site-nav a::after { display: none; }
  .site-nav a.is-active { background: #232323; color: #fff; }
  .snap-section { height: auto; scroll-margin-top: 56px; }
  .snap-page main > section {
    min-height: calc(100svh - 122px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .intro-page main > section {
    min-height: calc(100svh - 122px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .snap-section > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 460ms ease, transform 560ms cubic-bezier(.22, 1, .36, 1);
  }
  .snap-section.is-active > * { opacity: 1; transform: none; }
  .intro-hero.star-hero {
    min-height: calc(100svh - 122px); height: auto;
    display: flex; flex-direction: column; justify-content: center;
    padding: 44px 22px 60px;
  }
  .intro-hero.star-hero h1 { font-size: 42px; line-height: 1.12; width: 100%; }
  .intro-hero .cn-slogan { font-size: 23px; margin-top: 24px; }
  .slogan-breakdown { grid-template-columns: 1fr; padding: 22px; gap: 14px; align-content: center; }
  .slogan-breakdown article { padding-top: 14px; }
  .slogan-breakdown .eyebrow { margin-bottom: 7px; }
  .slogan-breakdown h2 { margin-bottom: 8px; font-size: 22px; }
  .slogan-breakdown p:not(.eyebrow) { font-size: 14px; line-height: 1.6; }
  .team-section { min-height: calc(100svh - 122px); padding: 38px 20px; }
  .team-grid { position: static; transform: none; width: 100%; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .team-card { width: 100%; min-width: 0; }
  .team-add-symbol { opacity: 1; transform: scale(0.82); }
  .team-add-label { opacity: 1; }
  .team-section .section-title h2, .project-catalog-page .section-title h2 { font-size: 34px; }
  .project-review-page .review-strip { min-height: 0; padding: 32px 20px 0; }
  .project-review-page .review-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    margin-bottom: 71px;
  }
  .project-review-page .review-heading span {
    position: static;
    order: 2;
    margin: 0;
    font-size: 9px;
    line-height: 1;
  }
  .project-review-page .review-heading h3 {
    order: 1;
    width: auto;
    margin: 0 0 0 22px;
    font-size: 21px;
    line-height: 1;
  }
  .project-review-page .review-heading h3::before {
    left: -22px;
    width: 8px;
    height: 13px;
  }
  .project-review-page .review-scroll {
    padding-bottom: 0;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  .project-review-page .review-track { grid-auto-columns: calc((100vw - 64px) / 2); gap: 16px; padding-bottom: 0; }
  .project-review-page .review-track::before { top: 82px; height: 2px; }
  .project-review-page .review-track::after { top: 76px; border-top-width: 7px; border-bottom-width: 7px; border-left-width: 11px; }
  .project-review-page .review-item { min-height: 0; scroll-snap-align: center; scroll-snap-stop: always; }
  .project-review-page .review-item::before { top: 77px; width: 9px; height: 9px; }
  .project-review-page .review-item::after { top: 82px; height: 25px; }
  .project-review-page .review-logo { min-height: 60px; margin-bottom: 46px; }
  .project-review-page .review-logo img { max-width: 118px; max-height: 32px; }
  .project-review-page .review-logo-tall img { max-height: 58px; }
  .project-review-page .review-item span { margin-bottom: 12px; font-size: 15px; }
  .project-review-page .review-item p { font-size: 9px; line-height: 1.5; white-space: normal; }
  .project-review-page .page-down-link { display: grid; bottom: 18px; }
  .project-catalog-page { padding: 0 20px 32px; }
  .brand-project-group { display: block; padding-top: 0; border-top: 0; }
  .brand-side { display: none; }
  .brand-axis { display: none; }
  .brand-projects { grid-template-columns: minmax(0, 1fr); }
  .project-card div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 8px; }
  .project-card span { flex: 0 0 auto; order: 2; margin: 0; font-size: 10px; text-align: right; }
  .project-card h3 { min-width: 0; order: 1; margin: 0; font-size: 13px; line-height: 1.35; text-align: left; }
  .profile-page .profile-hero { display: flex; flex-direction: column; padding: 30px 22px 44px; gap: 24px; }
  .profile-photo { width: 100%; }
  .profile-photo img { width: 100%; max-height: 360px; object-fit: cover; object-position: center 25%; }
  .member-photo-editor { min-height: min(112vw, 480px); }
  .member-field-title input { min-height: 56px; font-size: 32px; }
  .member-resume-editor { grid-template-columns: 1fr; gap: 34px; }
  .member-interest-editor { overflow: visible; }
  .member-save-row { align-items: stretch; flex-direction: column; }
  .member-action-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .member-save-button, .member-clear-button { width: 100%; min-width: 0; }
  .resume-panel, .interest-works-section { min-height: 0; padding: 36px 22px; }
  .hobby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .interest-works-section .hobby-grid img { height: auto; max-height: none; aspect-ratio: 16 / 9; }
  .interest-works-section .photo-track img { flex-shrink: 0; width: 280px; height: 210px; }
  .photo-track { animation-duration: 30s; }
  .project-detail-page { padding-top: 24px; }
  .project-intro h1, .profile-copy h1 { font-size: 32px; overflow-wrap: anywhere; }
  .section-dots { display: grid; left: 5px; gap: 8px; }
  .section-dots .dot-link { width: 24px; height: 24px; }
  .section-dots .dot-link span { width: 7px; height: 7px; }
  .section-dots .dot-link.is-active span { width: 13px; height: 13px; }
  .section-dots .dot-link::after { display: none; }
  .image-lightbox { z-index: 150; padding: 12px; }
  .image-lightbox img { max-width: 100%; max-height: 80svh; }
  .lightbox-close { top: max(16px, env(safe-area-inset-top)); width: 48px; height: 48px; }
  .top-link { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .contact-page { min-height: calc(100svh - 122px); padding: 36px 22px; overflow-wrap: anywhere; }
}
@media (max-width: 380px) {
  .intro-hero.star-hero h1 { font-size: 36px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .project-review-page .review-track::before {
    animation: review-line-scan 34s linear infinite;
  }
  .photo-track { animation: photo-scroll 30s linear infinite; }
}
