/* dryayoi — mobile nav + single-pane home hero */

body.is-nav-open {
  overflow: hidden;
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  touch-action: none;
  overscroll-behavior: none;
}

@media (max-width: 980px) {
  .kf-nav {
    padding-top: max(0.65rem, env(safe-area-inset-top));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .kf-burger {
    display: flex;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
  }

  .kf-nav__links,
  .kf-nav__cta {
    display: none !important;
  }

  .kf-drawer {
    padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + 0.75rem);
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  .kf-drawer__brand {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s var(--ease), transform 0.5s var(--ease);
  }

  .kf-drawer__kicker {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s var(--ease), transform 0.5s var(--ease);
    transition-delay: 0.06s;
  }

  .kf-drawer__nav a,
  .kf-drawer__phone {
    opacity: 0;
    transform: translateX(22px);
    transition:
      opacity 0.45s var(--ease),
      transform 0.5s var(--ease),
      color 0.2s,
      padding-left 0.2s;
    transition-delay: calc(0.1s + var(--i, 0) * 0.07s);
  }

  .kf-drawer.is-open .kf-drawer__brand,
  .kf-drawer.is-open .kf-drawer__kicker,
  .kf-drawer.is-open .kf-drawer__nav a,
  .kf-drawer.is-open .kf-drawer__phone {
    opacity: 1;
    transform: none;
  }

  .kf-drawer.is-open .kf-drawer__brand { transition-delay: 0.05s; }
  .kf-drawer.is-open .kf-drawer__kicker { transition-delay: 0.1s; }

  /* CRITICAL: one-pane stacked hero (no double-tall empty split) */
  .kf-hero--split,
  .kf-hero--split.kf-hero--editorial {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
    min-height: min(100svh, 680px) !important;
    position: relative;
    overflow: hidden;
  }

  .kf-hero--split .kf-hero__pane--men {
    display: none !important;
  }

  .kf-hero--split .kf-hero__pane--women {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100% !important;
    aspect-ratio: auto !important;
    order: 0 !important;
    flex: none !important;
  }

  .kf-hero--split .kf-hero__media {
    position: absolute;
    inset: 0;
    clip-path: none !important;
    animation: kfKenBurnsSplit 18s ease-in-out infinite alternate !important;
  }

  .kf-hero--split .kf-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .kf-hero--split .kf-hero__center {
    position: relative !important;
    z-index: 3;
    inset: auto !important;
    order: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    min-height: min(100svh, 680px);
    width: 100%;
    padding:
      calc(var(--nav-h) + 2rem)
      max(var(--pad), env(safe-area-inset-right))
      max(2.25rem, env(safe-area-inset-bottom))
      max(var(--pad), env(safe-area-inset-left));
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.15) 35%, rgba(10, 10, 10, 0.78) 100%) !important;
    pointer-events: auto;
  }

  .kf-hero--split .kf-hero__brand {
    font-size: clamp(2.6rem, 14vw, 4.2rem) !important;
    letter-spacing: 0.14em;
    margin: 0 0 0.75rem;
  }

  .kf-hero--split .kf-hero__side {
    display: none;
  }

  .kf-hero--split .kf-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.7rem;
  }

  .kf-hero--split .kf-hero__actions .kf-btn {
    width: 100%;
    min-height: 48px;
  }

  .kf-stats article,
  .kf-intro,
  .kf-spot,
  .kf-style,
  .kf-dual__pane {
    min-height: 0;
  }

  .kf-intro__media,
  .kf-spot__media,
  .kf-style__media {
    aspect-ratio: 4 / 3;
    min-height: 0 !important;
  }

  .kf-cta,
  .kf-store {
    min-height: min(52svh, 440px) !important;
  }
}

@media (max-width: 640px) {
  .kf-hero--split,
  .kf-hero--split.kf-hero--editorial {
    min-height: min(92svh, 620px) !important;
  }

  .kf-hero--split .kf-hero__center {
    min-height: min(92svh, 620px);
    padding-bottom: 2rem;
  }

  .kf-hero--split .kf-hero__brand {
    font-size: clamp(2.4rem, 13vw, 3.6rem) !important;
  }

  .kf-hero--split .kf-hero__center h1 {
    font-size: clamp(1.55rem, 6.5vw, 2.1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kf-hero--split .kf-hero__media,
  .kf-drawer__brand,
  .kf-drawer__kicker,
  .kf-drawer__nav a,
  .kf-drawer__phone {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
