/* Final responsive pass loaded after every page bundle. */
html { overflow-x: clip; }
body { min-width: 0; overflow-x: clip; }
img, video, iframe, svg { max-width: 100%; }
:where(.wrap, .hero-content, .project-card, .project-info, .footer-col, .contact-card) { min-width: 0; }

@media (max-width: 1024px) {
  .wrap { width: 100%; padding-inline: clamp(18px, 3vw, 30px); }
  .nav-bar { width: 100%; }
  .footer-grid { gap: 36px; }
}

@media (max-width: 768px) {
  .wrap { padding-inline: 18px; }
  section { padding-block: 64px; }
  .nav-bar {
    min-height: 64px;
    padding: 9px 12px 9px 16px;
    border-radius: 18px;
  }
  [dir="rtl"] .nav-bar { padding: 9px 16px 9px 12px; }
  .brand-img { max-width: 148px; max-height: 44px; }
  .mobile-menu { padding-inline: 22px; }
  .mobile-menu .korshom-menu a { font-size: clamp(1.55rem, 8vw, 2.35rem); }
  .page-hero {
    min-height: 0;
    padding: 142px 0 72px;
  }
  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 12vw, 3.35rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }
  .page-hero p { max-width: 36rem; font-size: .98rem; }
  .hero--studio { min-height: auto; padding-top: 124px; padding-bottom: 64px; }
  .hero--studio .hero-title {
    max-width: 100%;
    font-size: clamp(2.35rem, 11.4vw, 3.5rem);
    line-height: 1.05;
  }
  .hero--studio .hero-desc { font-size: .98rem; line-height: 1.75; }
  .hero-actions, .cta-actions { gap: 10px; }
  .portfolio-section { padding-top: 66px !important; }
  .portfolio-showcase-head { gap: 22px; margin-bottom: 30px; padding-bottom: 26px; }
  .portfolio-showcase-head h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .portfolio-project-count { width: 92px; }
  .portfolio-filters { margin-bottom: 30px; padding: 6px; }
  .portfolio-grid { gap: 18px; margin-top: 30px; }
  .project-card,
  body:not(.home) .project-card:nth-child(n) { border-radius: 24px; }
  .project-thumb,
  body:not(.home) .project-card:nth-child(n) .project-thumb,
  .home .project-card:nth-child(n) .project-thumb {
    min-height: 0;
    margin: 7px 7px 0;
    border-radius: 19px;
    aspect-ratio: 16 / 12;
  }
  .project-laptop { width: 96%; }
  .project-info,
  .home .project-card:nth-child(3) .project-info { padding: 23px 20px 26px; }
  .project-summary { line-height: 1.7; }
  .project-stack { overflow-wrap: anywhere; }
  .footer-grid { gap: 30px; }
  .footer-bottom { align-items: flex-start; text-align: start; }
  .cta-section { padding-block: 62px; }
}

@media (max-width: 480px) {
  .wrap { padding-inline: 15px; }
  section { padding-block: 56px; }
  .brand-img { max-width: 132px; }
  .page-hero { padding-top: 126px; padding-bottom: 58px; }
  .page-hero h1 { font-size: clamp(2.05rem, 12vw, 2.8rem); }
  .hero-actions,
  .cta-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hero-actions .btn,
  .cta-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .hero--studio .hero-status { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero--studio .hero-stat { min-width: 0; }
  .portfolio-showcase-kicker { letter-spacing: .1em; }
  .portfolio-section .filter-btn { min-height: 40px; padding-inline: 14px; }
  .project-thumb,
  body:not(.home) .project-card:nth-child(n) .project-thumb,
  .home .project-card:nth-child(n) .project-thumb { aspect-ratio: 4 / 3.35; }
  .project-index { top: 16px; inset-inline-end: 17px; }
  .project-thumb .tag { top: 14px; inset-inline-start: 14px; padding: 6px 10px; }
  .project-info h3 { font-size: 1.45rem; overflow-wrap: anywhere; }
  .footer-social { flex-wrap: wrap; }
}

/* Mobile layout authority: page bundles define desktop grids after core.css. */
@media (max-width: 768px) {
  body { width: 100%; }
  header.site-header { padding: 10px 0 0; }
  header.site-header .nav-shell { padding-inline: 15px; }
  header.site-header .nav-bar,
  header.site-header.hero-nav:not(.inner-nav) .nav-bar,
  header.site-header.hero-nav.inner-nav .nav-bar {
    min-height: 62px;
    padding: 8px 12px;
    border-radius: 18px;
  }
  .brand-img,
  .brand--has-img .brand-img { height: 42px; max-width: 138px; }
  .burger { width: 42px; height: 42px; padding: 9px; justify-content: center; align-items: flex-end; }
  .burger span { width: 23px; }

  .hero--studio { min-height: auto; padding: 0; }
  .hero--studio .hero-layout { width: 100%; padding-top: 118px; padding-bottom: 54px; }
  .hero--studio .hero-content { width: 100%; }
  .hero--studio .hero-status {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 24px;
    padding: 9px 14px;
    font-size: .76rem;
    line-height: 1.45;
  }
  .hero--studio .hero-title {
    margin-bottom: 19px;
    font-size: clamp(2.15rem, 10.4vw, 2.75rem);
    line-height: 1.03;
    letter-spacing: -.04em;
  }
  .hero--studio .hero-title .line { display: block; width: 100%; }
  .hero--studio .hero-title .line--accent {
    display: flex;
    flex-wrap: nowrap;
    gap: .08em;
    margin-block: 8px;
    font-size: 1.06em;
  }
  .hero--studio .hero-title .line:last-child {
    font-size: clamp(1.55rem, 7.3vw, 2rem);
    line-height: 1.14;
  }
  .hero--studio .hero-desc { margin: 0; font-size: .93rem; line-height: 1.75; }
  .hero--studio .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 25px;
  }
  .hero--studio .hero-actions .btn {
    width: 100%;
    min-height: 54px;
    padding: 12px 20px;
    justify-content: center;
  }
  .hero--studio .hero-stats { margin-top: 26px; }

  .page-hero { min-height: 0; padding: 116px 0 52px; }
  .page-hero .breadcrumb { margin-bottom: 8px; font-size: .76rem; }
  .page-hero h1 { font-size: clamp(2.25rem, 11vw, 3rem); }
  .page-hero p { margin-top: 12px; font-size: .91rem; line-height: 1.65; }

  .portfolio-section { padding: 54px 0 64px !important; }
  .portfolio-showcase-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 25px;
    padding-bottom: 24px;
  }
  .portfolio-showcase-kicker { margin-bottom: 10px; font-size: .68rem; }
  .portfolio-showcase-head h2 {
    max-width: 330px;
    font-size: clamp(2rem, 9.5vw, 2.65rem);
    line-height: 1.08;
  }
  .portfolio-project-count {
    width: fit-content;
    min-width: 0;
    height: auto;
    aspect-ratio: auto;
    flex-direction: row;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 999px;
  }
  .portfolio-project-count strong { font-size: 1.45rem; }
  .portfolio-project-count span { margin: 0; font-size: .68rem; }
  .portfolio-filters {
    margin-bottom: 25px;
    scroll-padding-inline: 8px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .portfolio-grid { gap: 18px; }

  .about-grid,
  .skills-bars-grid,
  .contact-grid,
  .services-showcase,
  .services-grid,
  .pricing-grid,
  .process-grid,
  .extra-services-grid,
  .faq-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .about-grid,
  .contact-grid { gap: 28px; }
  .about-stats,
  .timeline-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .features-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  .pricing-grid { gap: 18px; margin-top: 34px; }
  .pricing-card {
    width: 100%;
    padding: 28px 22px;
    border-radius: 24px;
    text-align: start;
  }
  .pricing-icon { margin-inline: 0; }
  .pricing-price { margin: 14px 0; font-size: 2.35rem; }
  .pricing-list { margin: 18px 0; }
  .pricing-list li { padding: 9px 0; }

  .process-grid,
  .extra-services-grid,
  .faq-grid { gap: 14px; margin-top: 32px; }
  .extra-card,
  .process-step,
  .faq-card { padding: 22px 20px; }

  .contact-section { padding: 52px 0 64px !important; }
  .contact-title { text-align: start; }
  .contact-grid { margin-top: 30px; }
  .contact-info-block,
  .contact-form-wrap {
    width: 100%;
    padding: 24px 20px;
    border-radius: 22px;
  }
  .contact-info-block + .contact-info-block { margin-top: 12px; }
  .contact-form-wrap h3 { margin-bottom: 10px; font-size: 1.5rem; }
  .form-row { grid-template-columns: minmax(0, 1fr) !important; gap: 0; }
  .contact-form-wrap input,
  .contact-form-wrap select,
  .contact-form-wrap textarea { width: 100%; min-width: 0; }

  .section-title { font-size: clamp(1.85rem, 9vw, 2.45rem); line-height: 1.16; }
  .cta-section h2 { font-size: clamp(1.8rem, 9vw, 2.35rem); }
}

@media (max-width: 430px) {
  .hero--studio .hero-layout { padding-top: 108px; }
  .hero--studio .hero-title { font-size: clamp(2rem, 10vw, 2.55rem); }
  .hero--studio .hero-title .line:last-child { font-size: clamp(1.42rem, 7vw, 1.82rem); }
  .hero--studio .hero-bracket { font-size: .48em; }
  .portfolio-showcase-head h2 { max-width: 310px; }
  .project-info h3 { font-size: 1.38rem; }
  .pricing-card { padding: 26px 19px; }
  .contact-info-block,
  .contact-form-wrap { padding: 22px 17px; }
}
/* Mobile finishing details. */
@media (max-width: 768px) {
  .hero-scroll { display: none; }
  .hero--studio .hero-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hero--studio .hero-stat { min-height: 82px; }

  .about-grid > .about-images { order: 2; }
  .about-grid > :not(.about-images) { order: 1; }
  .about-images {
    width: 100%;
    height: 330px !important;
    margin-top: 4px;
  }
  .about-img-main {
    width: 78%;
    height: 82%;
    border-width: 3px;
    border-radius: 24px;
  }
  .about-img-sub {
    width: 54%;
    height: 47%;
    border-width: 3px;
    border-radius: 20px;
  }

  .pricing-list li {
    align-items: flex-start;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
  .pricing-card.featured::before { top: -12px; }

  .whatsapp-float,
  .back-top { width: 48px; height: 48px; }
  .whatsapp-float { bottom: 14px; inset-inline-start: 14px; }
  .back-top { bottom: 14px; inset-inline-end: 14px; }
}