.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 36px;
  padding: 0 4px;
  gap: 8px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(240, 244, 255, 0.82);
  text-decoration: none;
  box-sizing: border-box;
  transition: color 0.2s ease, background 0.2s ease;
}

.language-switch:hover,
.language-switch:focus-visible {
  color: #8edcff;
  background: rgba(95, 201, 240, 0.08);
  outline: none;
}

.language-switch img {
  display: block;
  width: 32px;
  height: 22px;
  object-fit: cover;
  border: 0;
  box-shadow: none;
}

.language-switch-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.mobile-quick-nav {
  display: none;
}

@media (max-width: 900px) {
  nav,
  #main-header {
    height: 56px !important;
    padding-left: max(12px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
    box-sizing: border-box;
  }

  nav .nav-logo,
  #main-header .nav-logo {
    flex: 0 1 150px !important;
    max-width: 150px;
    min-width: 0;
  }

  nav .nav-logo img,
  #main-header .nav-logo img {
    max-width: 100%;
    height: auto !important;
  }

  .language-switch {
    display: inline-flex !important;
    width: auto;
    height: 36px;
    padding: 0 2px;
    gap: 6px;
    flex: 0 0 auto;
  }

  .language-switch img {
    width: 30px;
    height: 20px;
  }

  .language-switch-label {
    font-size: 11px;
  }

  .nav-right {
    margin-left: 10px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    gap: 8px !important;
  }

  .nav-right .language-switch {
    order: 1;
  }

  .nav-right .hamburger {
    order: 999;
    margin-left: auto !important;
  }

  nav > .hamburger {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    margin-left: 8px;
  }

  .mobile-quick-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 98;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    height: 38px;
    padding: 0 96px 0 4%;
    background: rgba(10, 17, 31, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(168, 200, 240, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-sizing: border-box;
  }

  .mobile-quick-nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 0;
    padding: 0 11px;
    color: rgba(240, 244, 255, 0.76);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-quick-nav a + a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    bottom: 11px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-quick-nav a[aria-current="page"] {
    color: #8edcff;
  }

  .mobile-quick-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 28%;
    right: 28%;
    bottom: 0;
    height: 2px;
    background: #5fc9f0;
  }

  .mobile-menu {
    top: 94px !important;
    left: 12px !important;
    right: auto !important;
    width: min(336px, calc(100vw - 24px));
    max-height: none;
    padding: 8px !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px !important;
    overflow: hidden;
    border: 1px solid rgba(168, 200, 240, 0.16);
    border-radius: 4px;
    background: rgba(10, 17, 31, 0.98) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
    transform: translateY(-6px);
  }

  .mobile-menu.open {
    display: grid !important;
    transform: translateY(0);
  }

  .mobile-menu > .mobile-menu-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 44px;
    grid-column: span 2;
    min-width: 0;
    margin: 0 !important;
    padding: 0 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(240, 244, 255, 0.82);
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .mobile-menu > .mobile-menu-link:nth-of-type(4) {
    grid-column: 2 / span 2;
  }

  .mobile-menu > .mobile-menu-link:nth-of-type(5) {
    grid-column: 4 / span 2;
  }

  .mobile-menu a:hover,
  .mobile-menu a:focus-visible {
    color: #8edcff;
    background: rgba(95, 201, 240, 0.08);
  }

  .mobile-channel-links {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(168, 200, 240, 0.14);
  }

  .mobile-channel-links .mobile-channel-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 4px !important;
    border: 0 !important;
    color: #8edcff;
    background: rgba(95, 201, 240, 0.055);
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
  }

  /* Mobile readability: enlarge only small explanatory copy without adding excess spacing. */
  .hero-subhead,
  .section-desc,
  .propose-intro p,
  .service-card p,
  .about-text p,
  .timeline-content p,
  .spec-info-card p,
  .partner-list li,
  .partner-benefit p,
  .faq-answer,
  .faq-intro,
  .press-intro {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  .portfolio-body h4,
  .process-content h4,
  .partner-benefit strong {
    font-size: 14px !important;
  }

  .portfolio-body p,
  .process-content p,
  .hero-stat span,
  .stat-label,
  .stat-sub {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
  }

  .press-table th,
  .press-table td {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  /* Mobile contrast: improve Korean text clarity without changing layout. */
  .hero-subhead,
  .section-desc,
  .propose-intro p,
  .service-card p,
  .service-desc,
  .about-text p,
  .about-feature-text p,
  .timeline-content p,
  .spec-info-card p,
  .partner-list li,
  .partner-benefit p,
  .process-content p,
  .process-step-desc,
  .cta-desc,
  .faq-answer,
  .faq-answer p,
  .faq-intro,
  .press-intro,
  .press-table td,
  .portfolio-body p,
  .hero-stat span,
  .stat-label,
  .stat-sub {
    color: rgba(224, 233, 246, 0.88) !important;
    font-weight: 400 !important;
    opacity: 1 !important;
  }

  .section-label,
  .service-tag,
  .portfolio-proof,
  .about-badge-label,
  .process-step-timing,
  .press-table th {
    color: rgba(190, 207, 230, 0.86) !important;
    font-weight: 500 !important;
    opacity: 1 !important;
  }
}
