/* iPhone-first spacing and readability. Public pages only; desktop remains unchanged. */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .content-wrap { width: calc(100% - 44px); }
  .site-header { height: 68px; padding-inline: 20px; gap: 10px; }
  .header-controls { gap: 6px; }
  .header-controls select { max-width: 112px; min-height: 44px; font-size: 16px; padding: 6px 10px; }
  .menu-toggle {
    width: 44px; height: 44px; min-width: 44px; padding: 10px;
    border: 1px solid #ffffff70; border-radius: 10px;
  }
  .mobile-nav {
    top: 68px;
    grid-template-columns: 1fr;
    gap: 0;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    padding: 8px 22px 20px;
  }
  .mobile-nav a { min-height: 48px; display: flex; align-items: center; padding: 10px 4px; }
  .mobile-language-picker {
    padding: 12px 4px 18px;
    margin-bottom: 4px;
    border-bottom: 1px solid #ffffff35;
  }
  .mobile-language-picker span {
    display: block; margin-bottom: 8px; color: #d9b98f;
    font-size: 12px; font-weight: 700; letter-spacing: .08em;
  }
  .mobile-language-picker select {
    width: 100%; min-height: 48px; padding: 8px 12px;
    border: 1px solid #ffffff70; border-radius: 8px;
    background: #332a22; color: #fff; font-size: 16px;
  }
  .mobile-nav.open .ai-reception-nav-trigger {
    min-height: 48px;
    width: 100%;
    padding: 10px 4px;
    font-size: 16px;
  }
  .home-hero { height: min(620px, 76svh); min-height: 520px; }
  .slide-copy { top: 52%; left: 24px; right: 24px; padding-right: 0; transform: translateY(-35%); }
  .slide-copy :is(h1,h2) { font-size: clamp(32px, 9vw, 38px); line-height: 1.15; margin-bottom: 16px; }
  .slide-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.6; }
  .page-hero { height: min(470px, 65svh); min-height: 400px; }
  .page-hero-inner { top: 54%; left: 24px; right: 24px; }
  .page-hero h1 { font-size: clamp(30px, 8.5vw, 38px); line-height: 1.18; }
  .section-title { margin-bottom: 28px; }
  .section-title h2 { font-size: clamp(28px, 7.5vw, 34px); }
  .eyebrow { margin-bottom: 12px; letter-spacing: .12em; }
  .route-grid, .catalog-grid, .factory-grid, .factory-process-grid, .scope-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .route-card {
    display: grid;
    grid-template-columns: minmax(112px, 38%) minmax(0, 1fr);
    min-height: 166px;
    border-radius: 12px;
  }
  .route-card-image { grid-column: 1; grid-row: 1; height: 100%; min-height: 166px; }
  .route-number { top: 10px; left: 10px; padding: 5px 8px; border-radius: 4px; }
  .route-card-body {
    grid-column: 2; grid-row: 1; display: flex; flex-direction: column;
    min-width: 0; padding: 17px 18px;
  }
  .route-card-body h3 { font-size: 20px; margin-bottom: 7px; }
  .route-card-body p { min-height: 0; margin-bottom: 8px; font-size: 13px; line-height: 1.5; }
  .route-card-body > span { margin-top: auto; padding-top: 9px; font-size: 12px; }
  .catalog-grid { gap: 12px; }
  .catalog-card {
    display: grid; grid-template-columns: 36% minmax(0, 1fr);
    min-height: 136px; overflow: hidden; border-radius: 12px;
  }
  .catalog-card-image { width: 100%; height: 100%; min-height: 136px; aspect-ratio: auto; }
  .catalog-card-copy { min-width: 0; min-height: 0; padding: 15px 16px; justify-content: center; }
  .catalog-card-type { margin-bottom: 6px; }
  .catalog-card-copy strong { font-size: 16px; line-height: 1.4; }
  .catalog-card-view { margin-top: 0; padding-top: 8px; font-size: 12px; }
  .factory-photo { aspect-ratio: 16 / 10; }
  .factory-photo span { font-size: 14px; }
  .process-card, .scope-card { min-height: 0; padding: 22px; }
  .process-card h3, .scope-card h3 { margin: 16px 0 8px; font-size: 20px; }
  .process-card p, .scope-card p { font-size: 14px; line-height: 1.65; }
  .contact-card { padding: 24px; }
  .faq-item summary { min-height: 52px; padding-block: 18px; }
  .faq-item p { padding-right: 0; }
  .brief-form { padding: 20px; }
  input, textarea, select { font-size: 16px; }
  .ai-reception-dialog[open] {
    height: min(680px, 88dvh);
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .ai-reception-dialog .ai-reception-head { padding: 18px 20px; }
  .ai-reception-dialog .ai-reception-form textarea { font-size: 16px; }
  .ai-reception-dialog .ai-reception-links {
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 18px 12px;
    font-size: 13px;
  }
  .ai-reception-dialog .ai-reception-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 375px) {
  .brand { gap: 8px; }
  .brand-text b { font-size: 14px; }
  .header-controls select { max-width: 100px; }
  .site-header { padding-inline: 16px; }
  .route-card { grid-template-columns: minmax(102px, 35%) minmax(0, 1fr); }
  .route-card-body { padding: 14px; }
  .route-card-body h3 { font-size: 18px; }
  .catalog-card { grid-template-columns: 34% minmax(0, 1fr); }
  .catalog-card-copy { padding: 12px; }
}

/* About page: keep the full text, but give each idea and photo room on iPhone. */
@media (max-width: 600px) {
  body[data-page="about"] .about-story {
    padding-top: 52px;
    padding-bottom: 30px;
    gap: 26px;
  }
  body[data-page="about"] .story-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }
  body[data-page="about"] .story-heading h2 { display: none; }
  body[data-page="about"] .story-heading span { font-size: 13px; }
  body[data-page="about"] .about-logo {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    margin: 0;
  }
  body[data-page="about"] .story-body p {
    padding: 0 0 20px;
    margin: 0 0 20px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    line-height: 1.75;
  }
  body[data-page="about"] .story-body p:last-child { margin-bottom: 0; }
  body[data-page="about"] .paragraph-no {
    position: static;
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
  }
  body[data-page="about"] .pillar-grid { gap: 12px; padding-bottom: 78px; }
  body[data-page="about"] .pillar-card {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 14px;
    min-height: 0;
    padding: 20px;
    border-radius: 12px;
  }
  body[data-page="about"] .pillar-card > span { grid-row: 1 / 3; font-size: 13px; }
  body[data-page="about"] .pillar-card h3 {
    grid-column: 2;
    margin: 0 0 6px;
    font-size: 20px;
  }
  body[data-page="about"] .pillar-card p {
    grid-column: 2;
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
  }
  body[data-page="about"] .about-photo-section,
  body[data-page="about"] .about-video { padding-bottom: 78px; }
  body[data-page="about"] .about-photo-grid { grid-template-columns: 1fr; gap: 14px; }
  body[data-page="about"] .photo-tile {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
  }
  body[data-page="about"] .photo-tile span { font-size: 15px; }
  body[data-page="about"] .video-feature { overflow: hidden; border-radius: 12px; }
  body[data-page="about"] .video-feature > div { padding: 22px; }
}

/* Keep long translated filter labels usable without stacking rows of pills. */
@media (max-width: 600px) {
  body[data-page="products"] .catalog-filters,
  body[data-page="factory"] .factory-filters,
  body[data-page="services"] .service-option-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  body[data-page="products"] .catalog-filters button,
  body[data-page="factory"] .factory-filters button,
  body[data-page="services"] .service-option-tabs button {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
  }
  body[data-page="services"] .mode-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="services"] .mode-tabs button { min-height: 48px; padding: 10px 12px; }
  body[data-page="services"] .mode-panel { padding: 24px; }
  body[data-page="services"] .mode-panel h2 { font-size: 30px; line-height: 1.2; }
  body[data-page="services"] .mode-panel p { font-size: 16px; line-height: 1.65; }
  body[data-page="contact"] .brief-form input,
  body[data-page="contact"] .brief-form select { min-height: 48px; font-size: 16px; }
  body[data-page="contact"] .brief-form button { min-height: 48px; }
}
