/* Mobile: 320px - 479px */
@media (max-width: 479.98px) {
  html {
    font-size: 14px;
  }

  body {
    min-height: 100vh;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navbar {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .navbar-brand {
    margin-right: 0;
  }

  .navbar-brand .logo {
    height: 46px;
  }

  .navbar-toggler {
    padding: 0.35rem 0.5rem;
  }

  .navbar-collapse {
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1rem;
    padding: 0.5rem 0.75rem;
  }

  .navbar-nav {
    gap: 0.15rem;
  }

  .navbar .nav-link {
    padding: 0.65rem 0.75rem;
    font-size: 0.92rem;
  }

  .hero-section {
    height: clamp(280px, 52svh, 430px);
  }

  .hero-section .carousel-control-prev,
  .hero-section .carousel-control-next {
    width: 38px;
  }

  .hero-section .carousel-control-prev {
    left: 0.5rem;
  }

  .hero-section .carousel-control-next {
    right: 0.5rem;
  }

  .py-lg-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .display-3,
  .display-4,
  .display-5,
  .display-6 {
    font-size: clamp(2rem, 8vw, 3rem) !important;
  }

  .about-image-frame {
    margin-bottom: 1rem;
  }

  .about-content-card .card-body,
  .scale-card .card-body,
  .about-dark-card .card-body,
  .service-card .card-body,
  .final-message {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .about-main-image {
    aspect-ratio: 4 / 3;
  }

  .final-message {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .site-footer {
    width: 100%;
    padding: 1.25rem 1rem !important;
    font-size: 0.875rem;
  }
}

/* Large mobile: 480px - 767px */
@media (min-width: 480px) and (max-width: 767.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
  }

  .navbar-brand .logo {
    height: 52px;
  }

  .hero-section {
    height: clamp(340px, 58svh, 560px);
  }

  .hero-section .carousel-control-prev,
  .hero-section .carousel-control-next {
    width: 42px;
  }

  .py-lg-6 {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .display-3,
  .display-4,
  .display-5,
  .display-6 {
    font-size: clamp(2.2rem, 6vw, 3.2rem) !important;
  }

  .about-content-card .card-body,
  .scale-card .card-body,
  .about-dark-card .card-body,
  .service-card .card-body,
  .final-message {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .site-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Tablet: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .container {
    max-width: 720px;
  }

  .hero-section {
    height: clamp(420px, 60svh, 660px);
  }

  .navbar .nav-link {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    font-size: 0.95rem;
  }

  .display-3 {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
  }

  .display-4,
  .display-5,
  .display-6 {
    font-size: clamp(2.2rem, 4vw, 3rem) !important;
  }

  .about-content-card,
  .scale-card,
  .about-dark-card {
    min-height: 100%;
  }

  .site-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Laptop: 1024px - 1279px */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .container {
    max-width: 980px;
  }

  .hero-section {
    height: clamp(500px, 72svh, 820px);
  }

  .display-3 {
    font-size: clamp(2.8rem, 4vw, 4.2rem) !important;
  }

  .display-4,
  .display-5,
  .display-6 {
    font-size: clamp(2.4rem, 3.4vw, 3.5rem) !important;
  }
}

/* Desktop: 1280px - 1439px */
@media (min-width: 1280px) and (max-width: 1439.98px) {
  .container {
    max-width: 1180px;
  }

  .hero-section {
    height: clamp(560px, 78svh, 900px);
  }
}

/* Large desktop: 1440px and up */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }

  .hero-section {
    height: clamp(620px, 80svh, 980px);
  }

  .display-3 {
    font-size: clamp(4rem, 3vw, 5rem) !important;
  }
}

/* Prevent hero overflow on short landscape screens */
@media (max-width: 991.98px) and (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    height: max(260px, calc(100svh - 70px));
  }
}

/* Keep the imaging/footer layout stable */
.image-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.image-page__main {
  flex: 1 0 auto;
  width: 100%;
}

.image-page .site-footer {
  flex-shrink: 0;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {

    .imaging-hero__carousel {
        height: clamp(240px, 72vw, 420px);
    }

    .imaging-hero__image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .imaging-hero__content {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

}

/* ==============================
   AI Production responsive
============================== */

@media (max-width: 991.98px) {
  .ai-production-page .ai-section {
    padding: 4.5rem 0;
  }

  .ai-production-page .ai-hero {
    display: block;
    min-height: auto;
    background: #11110f;
  }

  .ai-hero__image {
    position: relative;
    z-index: auto;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 2581 / 1536;
    object-fit: contain;
    object-position: center;
  }

  .ai-hero__shade {
    display: none;
  }

  .ai-production-page .ai-hero__content {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .ai-hero__note {
    display: none;
  }

  .ai-section-head {
    display: block;
  }

  .ai-section-head > p {
    margin-top: 1.5rem;
  }

  .ai-product-grid__beauty {
    height: 560px !important;
  }

  .ai-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-production-page .ai-video-card video {
    height: 430px;
  }
}

@media (max-width: 767.98px) {
  .ai-production-page .ai-section {
    padding: 3rem 0;
  }

  .ai-production-page .ai-heading {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .ai-production-page .ai-hero__content {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .ai-production-page .ai-hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.4rem);
  }

  .ai-capabilities {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-capabilities div {
    border-bottom: 1px solid var(--ai-line);
  }

  .ai-capabilities div:nth-child(2) {
    border-right: 0;
  }

  .ai-production-page .ai-capabilities {
    margin-top: 3rem;
  }

  .ai-production-page .ai-section-head {
    margin-bottom: 2.5rem;
  }

  .ai-solution-grid {
    grid-template-columns: 1fr;
  }

  .ai-production-page .ai-solution-grid {
    gap: 2.75rem;
  }

  .ai-production-page .ai-compare figure {
    height: min(62vw, 380px);
  }

  .ai-production-page .ai-compare img {
    object-fit: contain;
    object-position: center;
  }

  .ai-production-page .ai-fashion-grid {
    grid-template-rows: repeat(2, 170px);
    margin-top: 1rem;
  }

  .ai-product-grid {
    grid-template-columns: 1fr;
  }

  .ai-production-page .ai-product-grid figure,
  .ai-production-page .ai-product-grid__beauty {
    height: 400px !important;
    grid-row: auto;
  }

  .ai-creative-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 260px;
  }

  .ai-creative-grid figure:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .ai-creative-grid figure:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .ai-creative-grid figure:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .ai-creative-grid figure:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }

  .ai-creative-grid figure:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
  }

  .ai-production-page .ai-video-card video {
    height: 360px;
  }

  .ai-production-page .ai-cta__inner {
    padding: 4rem 1.5rem;
  }

}

@media (max-width: 575.98px) {
  .ai-button {
    min-height: 50px;
  }

  .ai-production-page .ai-hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.2rem);
  }

  .ai-solution-card__copy {
    grid-template-columns: 28px 1fr;
  }

  .ai-fashion-grid {
    display: block;
  }

  .ai-production-page .ai-fashion-grid figure {
    height: 330px;
    margin-bottom: 0.6rem;
  }

  .ai-creative-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .ai-production-page .ai-creative-grid figure,
  .ai-production-page .ai-creative-grid figure:nth-child(1),
  .ai-production-page .ai-creative-grid figure:nth-child(2),
  .ai-production-page .ai-creative-grid figure:nth-child(3),
  .ai-production-page .ai-creative-grid figure:nth-child(4),
  .ai-production-page .ai-creative-grid figure:nth-child(5) {
    height: 340px;
    grid-column: auto;
    grid-row: auto;
  }

  .ai-production-page .ai-creative-grid figure:nth-child(2) {
    height: 190px;
  }

  .ai-video-grid {
    grid-template-columns: 1fr;
  }

  .ai-production-page .ai-video-card video {
    height: 460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-production-page *,
  .ai-production-page *::before,
  .ai-production-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ==============================
   CGI & 3D Visualization responsive
============================== */

@media (max-width: 991.98px) {
  .cgi-section {
    padding: 4.5rem 0;
  }

  .cgi-hero {
    padding: 4.5rem 0;
  }

  .cgi-hero__visual {
    max-width: 680px;
    margin-inline: auto;
  }

  .cgi-build__grid {
    margin-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  .cgi-section {
    padding: 3rem 0;
  }

  .cgi-heading {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .cgi-hero {
    min-height: auto;
    padding: 3.5rem 0;
  }

  .cgi-hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.4rem);
  }

  .cgi-stat-row {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 3rem;
  }

  .cgi-stat-row > div {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--cgi-line);
  }

  .cgi-stat-row > div:not(:first-child) {
    padding-left: 1rem;
  }

  .cgi-stat-row > div:nth-child(2) {
    border-right: 0;
  }

  .cgi-service-card {
    padding: 1.5rem;
  }

  .cgi-gallery {
    grid-template-columns: 1fr;
  }

  .cgi-gallery figure,
  .cgi-gallery__feature {
    height: 420px !important;
    grid-row: auto;
  }

  .cgi-build__grid figure {
    height: 230px;
  }

  .cgi-build__grid .cgi-build__wide {
    height: 210px;
  }

  .cgi-cta__inner {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .cgi-hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.2rem);
  }

  .cgi-hero__visual {
    border-radius: 1rem;
  }

  .cgi-hero__comparison-label {
    bottom: 0.5rem;
    padding: 0.4rem 0.55rem;
    font-size: 0.58rem;
  }

  .cgi-hero__comparison-label--before { left: 0.5rem; }
  .cgi-hero__comparison-label--after { right: 0.5rem; }

  .cgi-hero__comparison-handle {
    width: 44px;
    height: 44px;
    border-width: 4px;
    font-size: 0.9rem;
  }

  .cgi-service-card ul {
    grid-template-columns: 1fr;
  }

  .cgi-gallery figure,
  .cgi-gallery__feature {
    height: 340px !important;
  }

  .cgi-build__grid {
    grid-template-columns: 1fr;
  }

  .cgi-build__grid figure,
  .cgi-build__grid .cgi-build__wide {
    height: 320px;
    grid-column: auto;
  }

  .cgi-chip-grid {
    gap: 0.5rem;
  }

  .cgi-chip-grid span {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
  }

  .cgi-benefit-list > div {
    grid-template-columns: 30px 1fr auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cgi-page *,
  .cgi-page *::before,
  .cgi-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ==============================
   Packaging Design responsive
============================== */
@media (max-width: 991.98px) {
  .pack-section { padding: 4.5rem 0; }
  .pack-hero { min-height: auto; }
  .pack-hero__visual { max-width: 700px; }
  .pack-capabilities { grid-template-columns: repeat(2, 1fr); }
  .pack-capabilities div { min-height: 120px; border-bottom: 1px solid var(--pack-line); }
  .pack-capabilities div:nth-child(2n) { border-right: 0; }
  .pack-capabilities div:first-child { padding-left: 1.25rem; }
  .pack-capabilities div:last-child { border-bottom: 0; }
  .pack-section-head { align-items: start; flex-direction: column; margin-bottom: 3.5rem; }
  .pack-service-list { gap: 5rem; }
  .pack-service,
  .pack-service--reverse { grid-template-columns: 1fr; gap: 2.5rem; }
  .pack-service--reverse .pack-service__visual,
  .pack-service--reverse .pack-service__copy { order: initial; }
  .pack-cta__inner { align-items: start; flex-direction: column; }
}

@media (max-width: 767.98px) {
  .pack-section { padding: 3rem 0; }
  .pack-heading { font-size: clamp(2rem, 8vw, 3rem); }
  .pack-hero { min-height: auto; padding: 3.5rem 0; }
  .pack-hero h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .pack-capabilities { margin-top: 3rem; }
  .pack-section-head { margin-bottom: 3rem; }
  .pack-service-list { gap: 4.5rem; }
}

@media (max-width: 575.98px) {
  .packaging-page .pack-hero .container,
  .packaging-page .navbar .container { width: calc(100% - 2rem); max-width: none; padding-inline: 0; }
  .pack-hero .row { width: 100%; margin-inline: 0; }
  .pack-hero .row > * { padding-inline: 0; }
  .pack-hero { padding: 3.5rem 0; }
  .pack-hero__copy { min-width: 0; }
  .pack-hero h1 { font-size: clamp(2.5rem, 12vw, 3.2rem); }
  .pack-hero__copy > p:not(.pack-kicker) { max-width: 100%; }
  .pack-hero__copy .d-flex { display: grid !important; grid-template-columns: 1fr; }
  .pack-hero__copy .pack-btn { width: 100%; }
  .pack-hero__visual { padding: .65rem .65rem 3.1rem; }
  .pack-capabilities { grid-template-columns: 1fr; margin-top: 3.5rem; }
  .pack-capabilities div { min-height: 96px; border-right: 0; }
  .pack-capabilities div:last-child { border-bottom: 0; }
  .pack-service-list { gap: 5rem; }
  .pack-service__visual img { aspect-ratio: 1.15 / 1; }
  .pack-product__panel { padding: 2.2rem 1.35rem; }
  .pack-creative { padding-top: 0; }
  .pack-creative-card { min-height: 280px; }
  .pack-cta { padding-bottom: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pack-btn,
  .pack-service__visual img,
  .pack-creative-card { transition: none; }
}

/* ==============================
   Contact responsive
============================== */
@media (max-width: 991.98px) {
  .contact-section { padding: 4.5rem 0; }
  .contact-hero { padding: 5rem 0 4rem; }
  .contact-services { margin-top: 4rem; }
  .contact-sidebar { position: static; }
}

@media (max-width: 767.98px) {
  .contact-section { padding: 3rem 0; }
  .contact-hero { padding: 3.5rem 0 3rem; }
  .contact-hero h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .contact-heading { font-size: clamp(2rem, 8vw, 3rem); }
  .contact-services { grid-template-columns: repeat(2, 1fr); margin-top: 3rem; }
  .contact-services > span:nth-child(3n) { border-right: 1px solid var(--contact-line); }
  .contact-services > span:nth-child(2n) { border-right: 0; }
  .contact-services > span:nth-child(-n+4) { border-bottom: 1px solid var(--contact-line); }
}

@media (max-width: 575.98px) {
  .contact-page .navbar .container { width: calc(100% - 2rem); max-width: none; padding-inline: 0; }
  .contact-hero h1 { font-size: clamp(2.5rem, 12vw, 3.2rem); }
  .contact-services { grid-template-columns: 1fr; }
  .contact-services > span { min-height: 72px; border-right: 0 !important; border-bottom: 1px solid var(--contact-line); }
  .contact-services > span:last-child { border-bottom: 0; }
  .contact-form-card,
  .contact-sidebar { padding: 1.35rem; }
  .contact-submit { width: 100%; }
  .contact-method { grid-template-columns: 42px 1fr auto; gap: 0.8rem; }
  .contact-method__icon { width: 42px; height: 42px; }
  .contact-step { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-submit,
  .contact-method__arrow,
  .contact-step { transition: none; }
}

/* ==============================
   Shared Footer responsive
============================== */
@media (max-width: 991.98px) {
  .site-footer__main { padding: 4rem 0 3rem; }
}

@media (max-width: 575.98px) {
  .site-footer { padding: 0 !important; }
  .site-footer__main { padding: 3.5rem 0 2.5rem; }
  .site-footer__brand { width: 165px; }
  .site-footer__intro { margin: 1.5rem 0; }
  .site-footer__title { margin-bottom: 1.1rem; }
  .site-footer__bottom { padding: 1.2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__button,
  .site-footer__socials a,
  .site-footer__links a { transition: none; }
}

/* ==============================
   Home FAQ responsive
============================== */
@media (max-width: 991.98px) {
  .home-faq { padding: 4.5rem 0; }
  .home-faq__intro { position: static; }
  .home-faq__intro > p:not(.home-faq__eyebrow) { max-width: 560px; }
}

@media (max-width: 767.98px) {
  .home-faq { padding: 3rem 0; }
  .home-faq__intro h2 { font-size: clamp(2.4rem, 10vw, 3.2rem); }
  .home-faq__accordion .accordion-button { grid-template-columns: 34px 1fr 20px; gap: 0.75rem; padding: 1.35rem 0; font-size: 1rem; }
  .home-faq__accordion .accordion-body { padding: 0 1rem 1.5rem 2.95rem; }
}

@media (max-width: 575.98px) {
  .home-faq__accordion .accordion-button { grid-template-columns: 26px 1fr 18px; gap: 0.6rem; }
  .home-faq__accordion .accordion-body { padding-left: 2.25rem; padding-right: 0; }
}
