/* Mobile art direction: portrait source images and one uninterrupted banner frame. */
@media (max-width: 600px) {
  body[data-page="home"] .hero.section-shell.container,
  body[data-page="stm"] .page-hero-stm,
  body[data-page="kissel"] .kissel-partner,
  body[data-page="partner"] .partner-hero {
    width: calc(100% - 18px);
    margin-inline: auto;
    border-radius: 30px;
  }

  body[data-page="home"] .hero.section-shell.container {
    position: relative;
    height: max(clamp(600px, calc(100svh - 240px), 650px), 124vw);
    min-height: 0;
    background: #f1e9e4;
    overflow: hidden;
  }
  body[data-page="home"] .hero .hero-visual {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border-radius: 0; -webkit-mask-image: none; mask-image: none;
  }
  body[data-page="home"] .hero .hero-visual picture { position: absolute; inset: 0; }
  body[data-page="home"] .hero .hero-visual img,
  body[data-page="home"] .hero .hero-visual:hover img {
    position: absolute; inset: auto 0 0;
    display: block; width: 100%; height: auto;
    max-width: none; object-fit: contain; object-position: center bottom;
    transform: none; transition: none; animation: none;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%);
    mask-image: linear-gradient(180deg, transparent, #000 25%);
  }
  body[data-page="home"] .hero.section-shell.container::before {
    display: block; z-index: 1; -webkit-mask-image: none; mask-image: none;
    background: linear-gradient(180deg, #f1e9e4 0%, rgba(241,233,228,.94) 25%,
      rgba(241,233,228,.30) 46%, transparent 59%, transparent 75%,
      rgba(241,233,228,.80) 100%);
  }
  body[data-page="home"] .hero .hero-copy {
    position: relative; z-index: 2; width: 100%; height: 100%;
    padding: 12px 23px 22px; background: transparent;
  }
  body[data-page="home"] .hero h1 {
    max-width: 12ch; margin: 0; font-size: clamp(2.35rem, 9.2vw, 2.85rem); line-height: 1.01;
  }
  body[data-page="home"] .hero .hero-lead {
    max-width: 27ch; margin-top: 9px; font-size: clamp(.94rem, 3.8vw, 1.05rem); line-height: 1.35;
  }
  body[data-page="home"] .hero .button-row {
    position: absolute; left: 23px; right: 23px; bottom: 22px;
    z-index: 3; margin: 0; gap: 8px;
  }

  body[data-page="stm"] .page-hero-stm {
    position: relative; display: block;
    height: clamp(600px, calc(100svh - 240px), 650px);
    min-height: 0; overflow: hidden; background: #f5eee8;
  }
  body[data-page="stm"] .page-hero-stm .page-hero-picture {
    position: absolute; inset: 0; z-index: 0; display: block;
    width: 100%; height: 100%;
  }
  body[data-page="stm"] .page-hero-stm .page-hero-image {
    position: absolute; inset: 0; z-index: 0; display: block;
    width: 100%; max-width: none; height: 100%;
    object-fit: cover; object-position: center;
    -webkit-mask-image: none; mask-image: none;
  }
  body[data-page="stm"] .page-hero-stm::before {
    display: block; z-index: 1;
    background: linear-gradient(180deg, rgba(250,246,240,.37) 0%,
      rgba(250,246,240,.16) 27%, transparent 49%,
      transparent 82%, rgba(250,246,240,.27) 100%);
  }
  body[data-page="stm"] .page-hero-stm .page-hero-copy {
    position: relative; z-index: 2; display: flex; flex-direction: column;
    width: 100%; height: 100%; min-height: 0;
    padding: 28px 23px 22px; background: transparent;
  }
  body[data-page="stm"] .page-hero-stm .page-hero-copy h1 {
    max-width: 12ch; margin: 0; font-size: clamp(2.3rem, 9.2vw, 2.8rem); line-height: 1.02;
  }
  body[data-page="stm"] .page-hero-stm .page-hero-copy p {
    max-width: 31ch; margin: 15px 0 0; font-size: clamp(.94rem, 3.8vw, 1.05rem); line-height: 1.38;
  }
  body[data-page="stm"] .page-hero-stm .page-hero-copy > .button {
    margin: auto auto 0 0 !important;
  }

  body[data-page="home"] .home-feature-carousel.kissel-banner.container {
    position: relative; display: block;
    height: clamp(600px, calc(100svh - 240px), 650px);
    min-height: 0; margin-inline: auto;
    background: #f8ecdf; overflow: hidden;
  }
  body[data-page="home"] .home-feature-carousel .home-feature-media {
    position: absolute; inset: 0; display: block;
    width: 100%; height: 100%; border-radius: 0;
    background: none;
    background-color: #f5e9dc;
    -webkit-mask-image: none; mask-image: none;
  }
  body[data-page="home"] .home-feature-carousel .home-feature-media::before,
  body[data-page="home"] .home-feature-carousel .home-feature-media::after {
    content: ""; position: absolute; inset: 0;
    background-repeat: no-repeat;
    pointer-events: none;
  }
  body[data-page="home"] .home-feature-carousel .home-feature-media::before {
    background-position: center; background-size: cover;
    filter: blur(15px) brightness(1.12); transform: scale(1.07); opacity: .64;
  }
  body[data-page="home"] .home-feature-carousel .home-feature-media::after {
    background-position: center bottom; background-size: 100% auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 22%, #000 45%);
    mask-image: linear-gradient(to bottom, transparent 22%, #000 45%);
  }
  body[data-page="home"] .home-feature-carousel .home-feature-media--kissel::before {
    background: linear-gradient(175deg, #fff5e9, #f5e9dc 53%, #ead1b8);
    filter: none;
    transform: none;
    opacity: 1;
  }
  body[data-page="home"] .home-feature-carousel .home-feature-media--kissel::after {
    inset: auto 0 0;
    aspect-ratio: 1122 / 1402;
    max-height: 88%;
    background-image: url('assets/mobile-kissel-feature-v1.jpg');
    background-size: 100% auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 26%);
    mask-image: linear-gradient(to bottom, transparent, #000 26%);
  }
  body[data-page="home"] .home-feature-carousel .home-feature-media--kvass::before,
  body[data-page="home"] .home-feature-carousel .home-feature-media--kvass::after { background-image: url('assets/mobile-kvass-feature-v1.jpg'); }
  body[data-page="home"] .home-feature-carousel .home-feature-copy {
    position: absolute; top: 0; left: 0; right: 0; z-index: 1;
    width: 100%; height: 100%; margin: 0; padding: 29px 23px 0;
    transform: none;
  }
  body[data-page="home"] .home-feature-carousel .home-feature-copy h2 {
    max-width: 100%; margin: 0; font-size: clamp(2rem, 8.1vw, 2.5rem); line-height: 1.04;
    text-shadow: 0 1px 8px rgba(255,253,246,.75);
  }
  body[data-page="home"] .home-feature-carousel #kissel-title {
    font-size: clamp(2.3rem, 10.6vw, 3.15rem);
  }
  body[data-page="home"] .home-feature-carousel .kissel-lead {
    max-width: 27ch; margin: 11px 0 0;
    font-size: clamp(.86rem, 3.5vw, .96rem); line-height: 1.32;
    text-shadow: 0 1px 7px rgba(255,253,246,.88);
  }
  body[data-page="home"] .home-feature-copy--kvass h2 { font-size: clamp(1.9rem, 7.75vw, 2.4rem); }
  body[data-page="home"] .home-feature-carousel .kissel-partner-note {
    display: none;
  }
  body[data-page="home"] .home-feature-carousel .home-feature-copy.is-active > .button {
    position: absolute; left: 23px; bottom: 19px;
    width: auto; min-height: 43px; padding-inline: 14px;
    font-size: .84rem;
  }
  body[data-page="home"] .home-feature-controls {
    position: absolute; right: 16px; bottom: 19px; z-index: 3;
    margin: 0; padding: 0; gap: 2px; background: none;
  }

  body[data-page="partner"] .partner-hero {
    position: relative; display: block;
    height: auto; min-height: 0; overflow: visible;
    background: transparent; box-shadow: none;
  }
  body[data-page="partner"] .partner-hero-media {
    position: absolute; inset: 0 0 auto; z-index: 0;
    width: 100%; height: 650px; margin: 0;
    border-radius: 30px; overflow: hidden;
  }
  body[data-page="partner"] .partner-hero-media picture { position: absolute; inset: 0; display: block; }
  body[data-page="partner"] .partner-hero-media img {
    position: absolute; inset: 0; display: block;
    width: 100%; max-width: none; height: 100%;
    object-fit: cover; object-position: center;
    -webkit-mask-image: none; mask-image: none;
  }
  body[data-page="partner"] .partner-hero::after {
    position: absolute; inset: 0 0 auto; z-index: 1; display: block;
    height: 650px; border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,249,239,.37) 0%,
      rgba(255,249,239,.12) 28%, transparent 50%, transparent 80%,
      rgba(255,249,239,.25) 100%);
    pointer-events: none;
  }
  body[data-page="partner"] .partner-hero-copy {
    position: relative; z-index: 2; display: flex; flex-direction: column;
    width: 100%; height: 650px; min-height: 0;
    padding: 28px 23px 20px; background: transparent;
  }
  body[data-page="partner"] .partner-hero-copy h1 {
    max-width: 13ch; margin: 0; padding: 0;
    font-size: clamp(2.2rem, 8.6vw, 2.75rem); line-height: 1.02;
  }
  body[data-page="partner"] .partner-hero-copy > p {
    max-width: 24ch; margin: 13px 0 0; padding: 0;
    color: var(--teal); font-size: clamp(.9rem, 3.5vw, .98rem); font-weight: 400; line-height: 1.34;
    text-shadow: 0 1px 5px rgba(255,251,245,.95), 0 0 13px rgba(255,251,245,.7);
  }
  body[data-page="partner"] .partner-hero-actions {
    position: static; display: flex; flex-wrap: wrap;
    width: 100%; margin-top: auto; padding: 0; gap: 10px 16px;
  }
  body[data-page="partner"] .partner-hero-actions .partner-text-link {
    color: #fffdf8; border-color: #fffdf8;
    text-shadow: 0 1px 6px rgba(0,35,40,.9);
  }
  body[data-page="partner"] .partner-brief {
    position: relative; inset: auto; z-index: 2;
    width: 100%; max-width: none; margin: 17px 0 0;
    background: #fffaf1;
  }

  body[data-page="kissel"] .kissel-partner {
    position: relative; display: block;
    height: 760px; min-height: 0; padding: 0;
    overflow: hidden; background: #f1eae6;
  }
  body[data-page="kissel"] .kissel-partner::after {
    position: absolute; inset: 0; z-index: 1; display: block;
    background: linear-gradient(180deg, rgba(255,249,239,.34) 0%,
      rgba(255,249,239,.12) 28%, transparent 51%, transparent 80%,
      rgba(255,249,239,.25) 100%);
  }
  body[data-page="kissel"] .kissel-partner-visual {
    position: absolute; inset: 0; z-index: 0; display: block;
    width: 100%; height: 100%; margin: 0;
    -webkit-mask-image: none; mask-image: none;
  }
  body[data-page="kissel"] .kissel-partner-visual picture { position: absolute; inset: 0; display: block; }
  body[data-page="kissel"] .kissel-partner-visual img {
    position: absolute; inset: 0; display: block;
    width: 100%; max-width: none; height: 100%;
    object-fit: cover; object-position: center;
    -webkit-mask-image: none; mask-image: none;
  }
  body[data-page="kissel"] .kissel-partner-copy {
    position: relative; z-index: 2; display: flex; flex-direction: column;
    width: 100%; height: 100%; min-height: 0;
    padding: 25px 23px 21px; background: transparent;
  }
  body[data-page="kissel"] .kissel-partner h1 {
    max-width: 100%; margin: 0; font-size: clamp(1.82rem, 7.2vw, 2.25rem); line-height: 1.04;
    text-shadow: 0 1px 8px rgba(255,253,246,.9);
  }
  body[data-page="kissel"] .kissel-partner-copy > p:not(.eyebrow) {
    max-width: 29ch; margin: 11px 0 0;
    font-size: clamp(.82rem, 3.35vw, .94rem); line-height: 1.33; font-weight: 400;
    text-shadow: 0 1px 6px rgba(255,253,246,.92);
  }
  body[data-page="kissel"] .kissel-partner-actions {
    position: static; width: auto; margin-top: auto;
  }
  body[data-page="kissel"] .kissel-partner-actions .button { min-height: 43px; }
}

@media (min-width: 500px) and (max-width: 600px) {
  body[data-page="home"] .hero h1 { font-size: 2.45rem; }
  body[data-page="home"] .hero .hero-lead {
    max-width: 22ch;
    margin-top: 10px;
    font-size: .98rem;
    line-height: 1.28;
  }
}

@media (max-width: 360px) {
  body[data-page="home"] .home-feature-carousel .home-feature-copy.is-active > .button {
    left: 16px; padding-inline: 10px; font-size: .76rem;
  }
  body[data-page="home"] .home-feature-controls { right: 10px; }
  body[data-page="home"] .home-feature-arrow { width: 31px; }
  body[data-page="kissel"] .kissel-partner h1 { font-size: 2rem; }
}

@media (min-width: 601px) and (max-width: 700px) {
  body[data-page="kissel"] .kissel-partner {
    position: relative; display: block; width: calc(100% - 18px);
    height: 760px; min-height: 0; aspect-ratio: auto;
    margin-inline: auto; padding: 0; overflow: hidden; border-radius: 36px;
    background: #f7eee4;
  }
  body[data-page="kissel"] .kissel-partner::after {
    position: absolute; inset: 0; z-index: 1; display: block;
    background: linear-gradient(180deg,rgba(255,249,239,.9),rgba(255,249,239,.64) 26%,rgba(255,249,239,.08) 48%,transparent 75%,rgba(255,249,239,.24));
  }
  body[data-page="kissel"] .kissel-partner-visual,
  body[data-page="kissel"] .kissel-partner-visual picture {
    position: absolute; inset: 0; z-index: 0; display: block;
    width: 100%; height: 100%; min-height: 0; margin: 0; aspect-ratio: auto;
  }
  body[data-page="kissel"] .kissel-partner-visual img {
    position: absolute; inset: 0; display: block; width: 100%; max-width: none; height: 100%;
    object-fit: cover; object-position: center;
  }
  body[data-page="kissel"] .kissel-partner-copy {
    position: relative; z-index: 2; display: flex; flex-direction: column;
    align-items: flex-start; width: 100%; height: 100%; min-height: 0;
    padding: 30px 31px 25px; background: transparent;
  }
  body[data-page="kissel"] .kissel-partner h1 {
    max-width: 100%; margin: 0; font-size: clamp(2.1rem,5.3vw,2.5rem); line-height: 1.04;
  }
  body[data-page="kissel"] .kissel-partner-copy > p:not(.eyebrow) {
    max-width: 34ch; margin: 12px 0 0;
    font-size: 1rem; line-height: 1.36;
  }
  body[data-page="kissel"] .kissel-partner-actions {
    position: static; width: auto; margin-top: auto;
  }
}
