/* Homepage tablet layout. Kept separate from the widget defaults. */
@media (min-width: 768px) and (max-width: 1024px) {
  body.home .kkcn-header.site-header,
  body.home .kkcn-header.site-header.is-overlay,
  body.home .kkcn-header.site-header:is(.is-scrolled,.scrolled) {
    padding-inline: 24px;
  }
  body.home .kkcn-header .desktop-nav {
    max-height: calc(100svh - 78px);
    overscroll-behavior: contain;
  }

  body.home .kkcn-capabilities { padding: 60px 24px; }
  body.home .kkcn-capabilities .stats { gap: 16px; margin-top: 36px; }
  body.home .kkcn-capabilities .stat-card { min-height: 320px; }
  body.home .kkcn-capabilities .capabilities-heading { font-size: clamp(36px, 4.4vw, 46px); }

  body.home .kkcn-collections { padding: 60px 24px; }
  body.home .kkcn-collections .collection-grid { gap: 16px; }
  body.home .kkcn-collections .collection-card { height: 360px; }
  body.home .kkcn-collections .card-title { font-size: clamp(23px, 2.8vw, 28px); }

  body.home .kkcn-products { padding: 60px 24px; }
  body.home .kkcn-products .product-grid { gap: 18px; }
  body.home .kkcn-products .product-media { height: 320px; }
  body.home .kkcn-products .product-hover { opacity: 1; transform: none; }

  body.home .kkcn-custom { padding: 60px 24px; }
  body.home .kkcn-custom .custom-head { margin-bottom: 32px; }
  body.home .kkcn-custom .custom-head.description-right { display: block; }
  body.home .kkcn-custom .custom-head.description-right .custom-intro {
    justify-self: auto;
    max-width: 650px;
    margin: 18px 0 0;
  }
  body.home .kkcn-custom .custom-heading { font-size: clamp(36px, 4.4vw, 46px); }
  body.home .kkcn-custom.has-accordion .custom-gallery,
  body.home .kkcn-custom .custom-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  body.home .kkcn-custom.has-accordion .custom-card,
  body.home .kkcn-custom .custom-card { min-height: 360px; }
  body.home .kkcn-custom.has-accordion .custom-card:not(.is-active) .custom-details {
    grid-template-rows: 1fr;
    visibility: visible;
  }
  body.home .kkcn-custom .custom-card-toggle:not([hidden]) { display: none; }
  body.home .kkcn-custom .custom-card-copy { padding: 22px; }
  body.home .kkcn-custom .custom-title { font-size: 21px; }

  body.home .kkcn-craft .craft-image { min-height: 430px; }
  body.home .kkcn-craft .craft-panel { padding: 58px 24px; }
  body.home .kkcn-craft .craft-panel .craft-heading { font-size: clamp(36px, 4.4vw, 46px); }

  body.home .kkcn-process { padding: 60px 24px; }
  body.home .kkcn-process .process-head { margin-bottom: 28px; }
  body.home .kkcn-process .process-heading { font-size: clamp(36px, 4.4vw, 46px); }
  body.home .kkcn-process .process-scroll { overflow: visible; scroll-snap-type: none; }
  body.home .kkcn-process .process-list {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }
  body.home .kkcn-process .process-list::before,
  body.home .kkcn-process .process-direction,
  body.home .kkcn-process .process-complete { display: none; }
  body.home .kkcn-process .process-row {
    min-height: 220px;
    padding: 18px 12px 26px;
    border-right: 0;
    border-bottom: 1px solid #1d211d29;
    scroll-snap-align: none;
  }
  body.home .kkcn-process .process-marker {
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    box-shadow: none;
  }
  body.home .kkcn-process .process-description { max-width: 34ch; }

  body.home .kkcn-quality { padding: 60px 24px; }
  body.home .kkcn-quality .quality-heading { font-size: clamp(36px, 4.4vw, 46px); }
  body.home .kkcn-quality .quality-visual { min-height: 390px; }
  body.home .kkcn-quality { --quality-item-height: 96px; }

  body.home .kkcn-film { padding: 60px 24px; }
  body.home .kkcn-film .film-heading { font-size: clamp(36px, 4.4vw, 46px); }
  body.home .kkcn-film .film-card { height: 285px; }
  body.home .kkcn-film .film-title { font-size: clamp(20px, 2.7vw, 25px); }

  body.home .kkcn-history { --image-width: 48%; --step-distance: 32vh; }
  body.home .kkcn-history .kh-stage { min-height: 600px; }
  body.home .kkcn-history .kh-copy { padding: 64px 32px 30px; }
  body.home .kkcn-history .kh-heading { font-size: clamp(34px, 4vw, 43px); }
  body.home .kkcn-history .kh-year { font-size: 20px; margin-bottom: 18px; }
  body.home .kkcn-history .kh-eyebrow { margin-bottom: 22px; }
  body.home .kkcn-history .kh-description { font-size: 14px; }

  body.home .kkcn-insights { padding: 60px 24px; --image-height: 360px; --side-height: 235px; }
  body.home .kkcn-insights .ki-heading { font-size: clamp(36px, 4.4vw, 46px); }
  body.home .kkcn-insights .ki-grid { gap: 20px; }
  body.home .kkcn-insights .ki-title { font-size: clamp(19px, 2.4vw, 23px); }

  body.home .kkcn-faq { padding: 60px 24px; }
  body.home .kkcn-faq .kf-layout { gap: 32px; }
  body.home .kkcn-faq .kf-heading { font-size: clamp(36px, 4.4vw, 46px); }
  body.home .kkcn-faq .kf-question { padding: 19px 0; }
  body.home .kkcn-faq .kf-question-text { font-size: 21px; }

  body.home .elementor-element-0540ffb,
  body.home .elementor-element-09046e8,
  body.home .elementor-element-49ac461,
  body.home .elementor-element-d8f1152 { max-width: 100%; }
  body.home .kkcn-inquiry-button .inquiry-button { min-height: 52px; }

  body.home .kkcn-site-footer.site-footer { padding-inline: 24px; }
  body.home .kkcn-site-footer .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }
  body.home .kkcn-site-footer .footer-brand-block { grid-column: 1 / -1; }
}

/* Elementor sets the banner to 90vh on wider tablets and 60vh below 1025px.
   Override that page-specific rule so tall tablets do not get a full-screen banner. */
@media (min-width: 768px) and (max-width: 1280px) {
  body.home .elementor-41 .elementor-element.elementor-element-cbf32fb .kkcn-hero {
    min-height: clamp(520px, 58svh, 640px);
  }
  body.home .elementor-41 .elementor-element.elementor-element-cbf32fb .kkcn-hero .hero-slide {
    padding: 84px 32px 82px;
  }
  body.home .elementor-41 .elementor-element.elementor-element-cbf32fb .kkcn-hero .hero-heading,
  body.home .elementor-41 .elementor-element.elementor-element-cbf32fb .kkcn-hero .hero-heading em {
    font-size: clamp(40px, 4.6vw, 54px);
  }
  body.home .elementor-41 .elementor-element.elementor-element-cbf32fb .kkcn-hero .hero-copy {
    max-width: 560px;
  }
  body.home .elementor-41 .elementor-element.elementor-element-cbf32fb .kkcn-hero .hero-image {
    object-position: 58% center;
  }
}
