@charset "UTF-8";
@layer original-layers, site, overrides;
@layer site {
  :root {
    --moss-motion-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --moss-hero-shift: 0px;
  }

  html.moss-motion-ready {
    scroll-behavior: smooth;
  }

  html.moss-motion-ready body {
    overflow-x: clip;
  }

  .moss-motion-section {
    position: relative;
    isolation: isolate;
  }

  @media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
    .moss-motion-ready main > .moss-hero {
      position: sticky;
      top: 0;
      z-index: 0;
      min-height: 100svh;
    }

    .moss-motion-ready main > .moss-flow-panel {
      position: sticky;
      top: 0;
      z-index: var(--moss-stack-index, 1);
      min-height: 100svh;
      margin-top: 0;
      border-radius: 0;
      background: var(--bg);
      box-shadow: 0 -22px 52px rgba(47, 48, 42, 0.18);
    }
  }

  @media (prefers-reduced-motion: no-preference) {
    .moss-motion-ready .moss-flow-panel {
      opacity: 0.18;
      filter: blur(5px);
      transform: translate3d(0, 72px, 0) scale(0.985);
      transition: opacity 980ms var(--moss-motion-ease),
          filter 1050ms var(--moss-motion-ease),
          transform 1150ms var(--moss-motion-ease);
      will-change: opacity, filter, transform;
    }

    .moss-motion-ready .moss-flow-panel.is-flow-visible {
      opacity: 1;
      filter: blur(0);
      transform: translate3d(0, 0, 0) scale(1);
    }

    .moss-motion-ready main > .subscribe.moss-flow-panel {
      opacity: 1;
      filter: none;
      transition: transform 420ms var(--moss-motion-ease);
    }

    .moss-motion-ready .subscribe__media img:nth-child(2) {
      display: none;
    }
  }

  @media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
    .moss-motion-ready .moss-flow-panel {
      margin-top: 0;
      border-radius: 0;
      background: var(--bg);
      box-shadow: none;
      transform: translate3d(0, 44px, 0) scale(0.99);
    }
  }

  .moss-motion-ready .moss-hero {
    overflow: hidden;
  }

  .moss-motion-ready .moss-hero .hero__image,
  .moss-motion-ready .moss-hero .page-hero__image,
  .moss-motion-ready .moss-hero > picture img,
  .moss-motion-ready .moss-hero > img:first-of-type {
    opacity: 0.48;
    filter: blur(9px) saturate(0.82);
    transform: translate3d(0, var(--moss-hero-shift), 0) scale(1.09);
    transform-origin: center;
    transition: opacity 1.65s var(--moss-motion-ease),
      filter 1.8s var(--moss-motion-ease),
      transform 2.15s var(--moss-motion-ease);
    will-change: opacity, filter, transform;
  }

  .moss-motion-ready .moss-hero.is-moss-loaded .hero__image,
  .moss-motion-ready .moss-hero.is-moss-loaded .page-hero__image,
  .moss-motion-ready .moss-hero.is-moss-loaded > picture img,
  .moss-motion-ready .moss-hero.is-moss-loaded > img:first-of-type {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translate3d(0, var(--moss-hero-shift), 0) scale(1.025);
  }

  .moss-motion-ready .moss-hero .site-header,
  .moss-motion-ready .moss-hero .page-header,
  .moss-motion-ready .moss-hero .hero__copy,
  .moss-motion-ready .moss-hero .page-hero__copy,
  .moss-motion-ready .moss-hero .account-hero__copy,
  .moss-motion-ready .moss-hero > h1 {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translate3d(0, 42px, 0);
    transition: opacity 1.05s var(--moss-motion-ease) 220ms,
      transform 1.25s var(--moss-motion-ease) 220ms,
      clip-path 1.2s var(--moss-motion-ease) 220ms;
  }

  .moss-motion-ready .moss-hero .site-header,
  .moss-motion-ready .moss-hero .page-header {
    clip-path: none;
    transform: translate3d(0, -22px, 0);
    transition-delay: 80ms;
  }

  .moss-motion-ready .moss-hero.is-moss-loaded .site-header,
  .moss-motion-ready .moss-hero.is-moss-loaded .page-header,
  .moss-motion-ready .moss-hero.is-moss-loaded .hero__copy,
  .moss-motion-ready .moss-hero.is-moss-loaded .page-hero__copy,
  .moss-motion-ready .moss-hero.is-moss-loaded .account-hero__copy,
  .moss-motion-ready .moss-hero.is-moss-loaded > h1 {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
  }

  .moss-motion-ready .moss-hero .hero__foot,
  .moss-motion-ready .moss-hero .hero-tags,
  .moss-motion-ready .moss-hero .page-hero__meta {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 1s var(--moss-motion-ease) 520ms,
      transform 1.15s var(--moss-motion-ease) 520ms;
  }

  .moss-motion-ready .moss-hero.is-moss-loaded .hero__foot,
  .moss-motion-ready .moss-hero.is-moss-loaded .hero-tags,
  .moss-motion-ready .moss-hero.is-moss-loaded .page-hero__meta {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .moss-motion-ready .moss-reveal-item {
    opacity: 0;
    filter: blur(6px);
    clip-path: inset(0 0 18% 0);
    transform: translate3d(0, 64px, 0) scale(0.97);
    transition: opacity 900ms var(--moss-motion-ease),
      filter 1100ms var(--moss-motion-ease),
      transform 1250ms var(--moss-motion-ease),
      clip-path 1150ms var(--moss-motion-ease);
    transition-delay: var(--moss-delay, 0ms);
    will-change: opacity, filter, transform, clip-path;
  }

  .moss-motion-ready .moss-motion-section.is-motion-visible .moss-reveal-item {
    opacity: 1;
    filter: blur(0);
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0) scale(1);
  }

  .moss-motion-ready .moss-motion-section .category-card.moss-reveal-item:nth-of-type(odd),
  .moss-motion-ready .moss-motion-section .product-card.moss-reveal-item:nth-of-type(odd),
  .moss-motion-ready .moss-motion-section .news-card.moss-reveal-item:nth-of-type(odd),
  .moss-motion-ready .moss-motion-section .favorite-card.moss-reveal-item:nth-of-type(odd) {
    transform: translate3d(-42px, 48px, 0) scale(0.95);
  }

  .moss-motion-ready .moss-motion-section .category-card.moss-reveal-item:nth-of-type(even),
  .moss-motion-ready .moss-motion-section .product-card.moss-reveal-item:nth-of-type(even),
  .moss-motion-ready .moss-motion-section .news-card.moss-reveal-item:nth-of-type(even),
  .moss-motion-ready .moss-motion-section .favorite-card.moss-reveal-item:nth-of-type(even) {
    transform: translate3d(42px, 48px, 0) scale(0.95);
  }

  .moss-motion-ready .moss-motion-section.is-motion-visible .category-card.moss-reveal-item,
  .moss-motion-ready .moss-motion-section.is-motion-visible .product-card.moss-reveal-item,
  .moss-motion-ready .moss-motion-section.is-motion-visible .news-card.moss-reveal-item,
  .moss-motion-ready .moss-motion-section.is-motion-visible .favorite-card.moss-reveal-item {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .moss-motion-ready .team-card.moss-reveal-item {
    transition: opacity 1.25s var(--moss-motion-ease) var(--moss-delay, 0ms),
      filter 1.1s var(--moss-motion-ease) var(--moss-delay, 0ms),
      transform 1.45s var(--moss-motion-ease) var(--moss-delay, 0ms),
      clip-path 1.35s var(--moss-motion-ease) var(--moss-delay, 0ms),
      width 560ms var(--moss-motion-ease),
      height 560ms var(--moss-motion-ease),
      box-shadow 560ms var(--moss-motion-ease);
  }

  .moss-motion-ready .moss-reveal-media {
    overflow: hidden;
  }

  .moss-motion-ready .moss-reveal-media > img {
    filter: saturate(0.82);
    transform: scale(1.13);
    transform-origin: center;
    transition: filter 1.6s var(--moss-motion-ease),
      transform 2.1s var(--moss-motion-ease);
    will-change: filter, transform;
  }

  .moss-motion-ready .is-motion-visible .moss-reveal-media > img {
    filter: saturate(1);
    transform: scale(1);
  }

  .moss-motion-ready .contacts-card .moss-reveal-item {
    transform: translate3d(0, 26px, 0);
  }

  .moss-motion-ready .contacts-card.is-motion-visible .moss-reveal-item {
    transform: translate3d(0, 0, 0);
  }

  .moss-motion-ready .contacts-card .moss-letter-line {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .moss-motion-ready .contacts-card .moss-letter {
    display: inline-block;
    opacity: 0;
    filter: blur(3px);
    transform: translate3d(0, 14px, 0);
    transition: opacity 0.82s var(--moss-motion-ease),
      filter 0.95s var(--moss-motion-ease),
      transform 1.05s var(--moss-motion-ease);
    transition-delay: var(--moss-letter-delay, 0ms);
    will-change: opacity, filter, transform;
  }

  .moss-motion-ready .contacts-card.is-motion-visible .moss-letter {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }

  .moss-motion-ready .contact-map > img.moss-reveal-item {
    transform: scale(1.065);
    transform-origin: center;
    transition-duration: 1.35s, 2.35s, 1.35s;
  }

  .moss-motion-ready .contact-map.is-motion-visible > img.moss-reveal-item {
    transform: scale(1);
  }

  .moss-motion-ready .contact-map > a.moss-reveal-item {
    transition-delay: 180ms;
  }

  .team-track,
  .team__nav,
  .world-map,
  .partners {
    opacity: 1;
    clip-path: none;
  }

  @media (max-width: 1023px) {
    .moss-motion-ready .moss-reveal-item {
      transform: translate3d(0, 38px, 0) scale(0.98);
    }

    .moss-motion-ready .moss-motion-section.is-motion-visible .moss-reveal-item {
      transform: translate3d(0, 0, 0);
    }

    .moss-motion-ready .moss-hero .hero__image,
      .moss-motion-ready .moss-hero .page-hero__image,
      .moss-motion-ready .moss-hero > picture img,
      .moss-motion-ready .moss-hero > img:first-of-type {
      transform: scale(1.07);
    }

    .moss-motion-ready .moss-hero.is-moss-loaded .hero__image,
      .moss-motion-ready .moss-hero.is-moss-loaded .page-hero__image,
      .moss-motion-ready .moss-hero.is-moss-loaded > picture img,
      .moss-motion-ready .moss-hero.is-moss-loaded > img:first-of-type {
      transform: scale(1.015);
    }
  }

  @media (max-width: 799px) {
    html.moss-motion-ready .moss-flow-panel {
      position: relative;
      top: auto;
      min-height: 0;
      margin-top: 0;
      box-shadow: none;
    }
  }

  @media (prefers-reduced-motion: no-preference) {
    .moss-motion-ready .moss-hero .hero__image,
      .moss-motion-ready .moss-hero .page-hero__image,
      .moss-motion-ready .moss-hero > picture img,
      .moss-motion-ready .moss-hero > img:first-of-type {
      animation: moss-media-fallback 1.65s var(--moss-motion-ease) 120ms both;
    }

    @keyframes moss-media-fallback {
        from {
          opacity: 0.48;
          filter: blur(9px) saturate(0.82);
          transform: translate3d(0, var(--moss-hero-shift), 0) scale(1.09);
        }
        to {
          opacity: 1;
          filter: blur(0) saturate(1);
          transform: translate3d(0, var(--moss-hero-shift), 0) scale(1.025);
        }
      }
  }
}

@layer overrides {
  @media (prefers-reduced-motion: no-preference) {
    .moss-motion-ready .subscribe,
      .moss-motion-ready .sender-subscribe,
      .moss-motion-ready [data-subscribe] {
      opacity: 1;
      filter: none;
      transform: none;
      clip-path: none;
    }
  }

  @media (max-width: 799px) {
    .moss-motion-ready .moss-hero .hero__image,
      .moss-motion-ready .moss-hero .page-hero__image,
      .moss-motion-ready .moss-hero > picture img,
      .moss-motion-ready .moss-hero > img:first-of-type {
      animation: none;
    }
  }

  .moss-motion-ready .subscribe {
    position: relative;
    z-index: 100;
    display: block;
    min-height: 0;
    opacity: 1;
    visibility: visible;
    filter: none;
    transform: none;
  }

  @media (min-width: 1024px) {
    .team-track {
      transform: translateX(-50%);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    .moss-hero *,
      .moss-reveal-item,
      .moss-reveal-media > img {
      opacity: 1;
      filter: none;
      clip-path: none;
      transform: none;
      transition: none;
    }
  }

  @media (max-width: 799px) {
    html.moss-motion-ready .moss-flow-panel,
      html.moss-motion-ready .moss-reveal-item,
      html.moss-motion-ready .moss-hero :is(
        .site-header,
        .page-header,
        .hero__copy,
        .page-hero__copy,
        .account-hero__copy,
        .hero__foot,
        .hero-tags,
        .page-hero__meta
      ),
      html.moss-motion-ready .moss-hero .hero__image,
      html.moss-motion-ready .moss-hero .page-hero__image,
      html.moss-motion-ready .moss-hero > picture img,
      html.moss-motion-ready .moss-hero > img:first-of-type,
      html.moss-motion-ready .moss-reveal-media > img,
      html.moss-motion-ready .contacts-card .moss-letter,
      html.moss-motion-ready .contact-map > img.moss-reveal-item {
      opacity: 1;
      visibility: visible;
      filter: none;
      clip-path: none;
      transform: none;
      animation: none;
      transition: none;
    }
  }

  /* At responsive desktop widths sticky panels cover long sections before
     their cards, map and CTA controls can be read. Keep Moss media motion,
     but let content panels remain in normal document flow. */
  @media (min-width: 800px) and (max-width: 1919px) {
    .moss-motion-ready main > .moss-hero,
      .moss-motion-ready main > .moss-flow-panel {
      position: relative;
      top: auto;
      min-height: 0;
    }

    .moss-motion-ready main > .moss-hero {
      z-index: auto;
    }

    .moss-motion-ready main > .moss-flow-panel {
      z-index: auto;
      margin-top: 0;
      border-radius: 0;
      background: var(--bg);
      box-shadow: none;
      overflow: visible;
      opacity: 1;
      filter: none;
      transform: none;
      transition: none;
    }

    /* A late IntersectionObserver must not hide functional content. */
    .moss-motion-ready .moss-flow-panel .moss-reveal-item,
    .moss-motion-ready .moss-flow-panel :is(h1, h2, h3, p, li, a, button) {
      opacity: 1;
      visibility: visible;
      filter: none;
      clip-path: none;
      transform: none;
      transition: none;
    }
  }

  main > .hero h1 span:nth-child(2),
  main > #home.hero h1 span:nth-child(2) {
    padding-left: clamp(16px, 2.2vw, 42px);
  }

  main > .hero h1 span:nth-child(2),
  main > .hero h1 span:nth-child(3),
  main > #home.hero h1 span:nth-child(2),
  main > #home.hero h1 span:nth-child(3) {
    display: inline-block;
  }

  main > .hero h1 span:nth-child(4),
  main > #home.hero h1 span:nth-child(4) {
    display: block;
    margin-top: 0;
    padding-left: 0;
  }

  .moss-motion-ready .moss-hero :is(
    .site-header,
    .page-header,
    .hero__copy,
    .page-hero__copy,
    .account-hero__copy,
    .hero__foot,
    .hero-tags,
    .page-hero__meta,
    h1,
    h2,
    p,
    a,
    button
  ) {
    opacity: 1;
    visibility: visible;
    filter: none;
    clip-path: none;
    transform: none;
    transition: none;
    animation: none;
  }
}

/* Clean responsive Moss controller.  This stays outside legacy layers so it
   wins over their responsive fallbacks without making content invisible. */
@media (prefers-reduced-motion: no-preference) {
  /* Until JS has classified a section it remains ordinary, readable content. */
  html.moss-motion-ready main > .moss-flow-panel:not(.moss-flow-stack) {
    position: relative !important;
    top: auto !important;
    z-index: var(--moss-stack-index, 1) !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    transform: none !important;
    background: var(--bg, #f5f3eb) !important;
  }

  /* Only a scene that fits entirely inside the actual viewport gets the
     original cover/stack effect. Its opaque background prevents previous
     screens from showing through. */
  @media (min-width: 861px) {
    html.moss-motion-ready main > .moss-flow-panel.moss-flow-stack {
      position: sticky !important;
      top: 0 !important;
      z-index: var(--moss-stack-index, 1) !important;
      min-height: 100svh !important;
      margin-top: 0 !important;
      overflow: visible !important;
      opacity: 1 !important;
      visibility: visible !important;
      filter: none !important;
      transform: none !important;
      background: var(--bg, #f5f3eb) !important;
      box-shadow: 0 -22px 52px rgba(47, 48, 42, .18) !important;
    }
  }

  /* Observer starts a subtle movement only. It never controls visibility. */
  html.moss-motion-ready .moss-motion-section .moss-reveal-item {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    clip-path: none !important;
    transform: none !important;
  }

  html.moss-motion-ready .moss-motion-section.moss-motion-observed .moss-reveal-item {
    transform: translate3d(0, 22px, 0) !important;
    transition: transform 650ms var(--moss-motion-ease) var(--moss-delay, 0ms) !important;
  }

  html.moss-motion-ready .moss-motion-section.moss-motion-observed.is-motion-visible .moss-reveal-item {
    transform: translate3d(0, 0, 0) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.moss-motion-ready .moss-flow-panel,
  html.moss-motion-ready .moss-reveal-item {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    clip-path: none !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Short desktop/laptop viewport: keep "About" in the cover stack. The
   generic controller used to reject its fixed 900px canvas whenever the
   browser content area was shorter than 700px, so the section suddenly
   reverted to normal flow while its neighbours still used Moss motion. */
@media (min-width: 1001px) and (min-height: 560px) and (max-height: 899px) and (prefers-reduced-motion: no-preference) {
  html.moss-motion-ready main > :is(#about, .about).moss-flow-panel.moss-flow-stack {
    position: sticky !important;
    top: 0 !important;
    z-index: var(--moss-stack-index, 5) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100svh !important;
    min-height: 100svh !important;
    max-height: 100svh !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
    background: var(--bg, #f5f3eb) !important;
    isolation: isolate !important;
  }

  html.moss-motion-ready main > :is(#about, .about).moss-flow-stack .about__banner {
    height: clamp(220px, 40svh, 320px) !important;
  }

  html.moss-motion-ready main > :is(#about, .about).moss-flow-stack .about__copy {
    top: clamp(280px, 48svh, 390px) !important;
    right: auto !important;
    bottom: auto !important;
    left: clamp(32px, 3.43vw, 48px) !important;
    width: min(32vw, 360px) !important;
    max-height: calc(52svh - 20px) !important;
  }

  html.moss-motion-ready main > :is(#about, .about).moss-flow-stack .about__gallery {
    top: clamp(185px, 32svh, 288px) !important;
    right: clamp(32px, 3.43vw, 48px) !important;
    bottom: clamp(18px, 3svh, 28px) !important;
    left: clamp(390px, 38vw, 530px) !important;
    width: auto !important;
    height: auto !important;
    grid-auto-columns: calc((100% - 24px) / 3) !important;
    gap: 12px !important;
  }

  html.moss-motion-ready main > :is(#about, .about).moss-flow-stack .about__gallery img {
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* Wide desktop: scale the 1440px composition instead of leaving a fixed
   desktop canvas floating at the left of an ultrawide viewport. */
@media (min-width: 1920px) {
  :root {
    --moss-wide-gutter: clamp(48px, 3.333vw, 112px);
    --moss-wide-card-gap: clamp(12px, .85vw, 28px);
  }

  #catalog,
  #shop,
  #delivery,
  #about,
  #team {
    width: 100% !important;
    max-width: none !important;
  }

  #catalog .categories__inner,
  #shop .shop__inner {
    width: auto !important;
    max-width: none !important;
    margin-right: var(--moss-wide-gutter) !important;
    margin-left: var(--moss-wide-gutter) !important;
  }

  #catalog .category-track,
  #shop .product-track {
    width: 100% !important;
    max-width: none !important;
    grid-auto-columns: calc((100% - (4 * var(--moss-wide-card-gap))) / 5) !important;
  }

  #catalog .category-track {
    gap: var(--moss-wide-card-gap) !important;
  }

  #catalog .category-card {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 280 / 385;
  }

  #shop .product-track {
    gap: var(--moss-wide-card-gap) !important;
  }

  #shop .product-card {
    width: 100% !important;
    min-width: 0 !important;
  }

  #delivery .world-map {
    left: 14.0625vw !important;
    width: 71.875vw !important;
    height: auto !important;
  }

  #delivery .delivery__button {
    right: var(--moss-wide-gutter) !important;
    left: auto !important;
    width: clamp(280px, 21.875vw, 620px) !important;
  }

  #delivery .delivery__info--where {
    left: 14.0625vw !important;
  }

  #delivery .delivery__info--order {
    left: 38.9vw !important;
  }
}

/* Desktop scene order. The hero is the first pinned scene; every later
   section gets a larger z-index from JS. Normal-flow sections keep that index
   too, so they scroll over an earlier sticky panel instead of underneath it. */
@media (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
  html.moss-motion-ready main > .moss-hero {
    position: sticky !important;
    top: 0 !important;
    z-index: 0 !important;
    min-height: 100svh !important;
    margin-top: 0 !important;
  }

  html.moss-motion-ready main > .moss-flow-panel {
    z-index: var(--moss-stack-index, 1) !important;
    background: var(--bg, #f5f3eb) !important;
    isolation: isolate;
  }
}

@layer overrides {
/* Compact desktop composition (roughly 1024–1400 CSS px). The original
   1440/900 geometry is taller than many laptop viewports, so those scenes did
   not qualify for stacking. Normalize the key scenes to the real viewport and
   move their absolute content into a height-aware composition. */
@media (min-width: 1001px) and (max-width: 1400px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  html.moss-motion-ready main > .moss-hero,
  html.moss-motion-ready main > :is(
    #catalog,
    #shop,
    #loyalty,
    #delivery,
    #about,
    #team,
    .categories,
    .shop,
    .thesis,
    .delivery,
    .about,
    .team
  ).moss-flow-panel {
    position: sticky !important;
    top: 0 !important;
    z-index: var(--moss-stack-index, 1) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100svh !important;
    min-height: 100svh !important;
    max-height: 100svh !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  html.moss-motion-ready main > .moss-hero {
    position: sticky !important;
    top: 0 !important;
    z-index: 0 !important;
  }

  /* Category and product sliders: retain the full cards while reducing the
     desktop top gap as the viewport becomes shorter. */
  html.moss-motion-ready main > :is(#catalog, .categories),
  html.moss-motion-ready main > :is(#shop, .shop) {
    padding-top: clamp(88px, 14svh, 140px) !important;
  }

  html.moss-motion-ready main > :is(#catalog, .categories) :is(.categories__inner, .container),
  html.moss-motion-ready main > :is(#shop, .shop) :is(.shop__inner, .container) {
    height: auto !important;
  }

  html.moss-motion-ready main > :is(#catalog, .categories, #shop, .shop) :is(.section-heading, .section-heading--shop) {
    margin-bottom: clamp(22px, 4svh, 42px) !important;
  }

  html.moss-motion-ready main > :is(#shop, .shop) {
    --moss-shop-card-height: clamp(420px, calc(100svh - 210px), 506px);
    --moss-shop-visual-height: clamp(220px, 34svh, 272px);
  }

  html.moss-motion-ready main > :is(#shop, .shop) :is(#productsTrack, .product-track),
  html.moss-motion-ready main > :is(#shop, .shop) .product-card {
    height: var(--moss-shop-card-height) !important;
    min-height: var(--moss-shop-card-height) !important;
  }

  html.moss-motion-ready main > :is(#shop, .shop) .product-card__visual {
    height: var(--moss-shop-visual-height) !important;
    min-height: var(--moss-shop-visual-height) !important;
  }

  html.moss-motion-ready main > :is(#shop, .shop) .product-card__body {
    height: calc(var(--moss-shop-card-height) - var(--moss-shop-visual-height)) !important;
    min-height: 0 !important;
  }

  /* Delivery: fit the complete map, CTA, descriptions and partner row inside
     one scene. All offsets are tied to viewport height, not to the old 1090px
     fixed canvas. */
  html.moss-motion-ready main > :is(#delivery, .delivery) {
    padding: 0 !important;
  }

  html.moss-motion-ready main > :is(#delivery, .delivery) > h2 {
    top: clamp(38px, 7svh, 64px) !important;
    right: auto !important;
    left: clamp(32px, 3.43vw, 48px) !important;
    width: min(52vw, 720px) !important;
    font-size: clamp(52px, 7.3svh, 78px) !important;
    line-height: .94 !important;
    transform: none !important;
  }

  html.moss-motion-ready main > :is(#delivery, .delivery) .world-map {
    top: clamp(138px, 19svh, 172px) !important;
    right: clamp(32px, 3.43vw, 48px) !important;
    left: clamp(180px, 17.15vw, 240px) !important;
    width: auto !important;
    height: clamp(330px, 52svh, 430px) !important;
    transform: none !important;
  }

  html.moss-motion-ready main > :is(#delivery, .delivery) .delivery__button {
    top: clamp(330px, 53svh, 430px) !important;
    right: clamp(24px, 3.43vw, 48px) !important;
    left: auto !important;
    box-sizing: border-box !important;
    width: clamp(220px, 20vw, 280px) !important;
    max-width: calc(100% - 48px) !important;
    transform: none !important;
  }

  html.moss-motion-ready main > :is(#delivery, .delivery) .delivery__info {
    top: clamp(476px, 68svh, 560px) !important;
    bottom: auto !important;
    width: min(28vw, 380px) !important;
    transform: none !important;
  }

  html.moss-motion-ready main > :is(#delivery, .delivery) .delivery__info--where {
    left: clamp(120px, 17.15vw, 240px) !important;
  }

  html.moss-motion-ready main > :is(#delivery, .delivery) .delivery__info--order {
    left: clamp(520px, 48.3vw, 676px) !important;
  }

  html.moss-motion-ready main > :is(#delivery, .delivery) .partners {
    top: auto !important;
    right: clamp(32px, 3.43vw, 48px) !important;
    bottom: clamp(18px, 3svh, 28px) !important;
    left: clamp(32px, 3.43vw, 48px) !important;
    width: auto !important;
    height: clamp(58px, 9svh, 78px) !important;
    transform: none !important;
  }

  /* About: the existing content already fits horizontally. Only its 900px
     vertical canvas needs to become fluid so the next scene can cover it. */
  html.moss-motion-ready main > :is(#about, .about) {
    padding-bottom: 0 !important;
  }

  html.moss-motion-ready main > :is(#about, .about) .about__banner {
    height: clamp(280px, 47svh, 380px) !important;
  }

  html.moss-motion-ready main > :is(#about, .about) .about__copy {
    top: clamp(350px, 57svh, 455px) !important;
    right: auto !important;
    bottom: auto !important;
    left: clamp(32px, 3.43vw, 48px) !important;
    width: min(32vw, 360px) !important;
    max-height: calc(43svh - 30px) !important;
  }

  html.moss-motion-ready main > :is(#about, .about) .about__gallery {
    top: clamp(255px, 38svh, 320px) !important;
    right: clamp(32px, 3.43vw, 48px) !important;
    bottom: clamp(24px, 4svh, 36px) !important;
    left: clamp(390px, 38vw, 530px) !important;
    width: auto !important;
    height: auto !important;
    grid-auto-columns: calc((100% - 24px) / 3) !important;
    gap: 12px !important;
  }

  html.moss-motion-ready main > :is(#about, .about) .about__gallery img {
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Team: place the heading above the cards instead of on the same baseline,
     and keep the navigation inside the scene. */
  html.moss-motion-ready main > :is(#team, .team) > h2 {
    top: clamp(30px, 6svh, 52px) !important;
    right: auto !important;
    left: clamp(32px, 3.43vw, 48px) !important;
    margin: 0 !important;
    transform: none !important;
  }

  html.moss-motion-ready main > :is(#team, .team) :is(#teamTrack, .team-track) {
    top: clamp(96px, 15svh, 132px) !important;
    bottom: auto !important;
    min-height: 462px !important;
  }

  html.moss-motion-ready main > :is(#team, .team) .team__nav {
    top: auto !important;
    bottom: clamp(24px, 4svh, 38px) !important;
  }

  html.moss-motion-ready main > :is(#team, .team) .moss-reveal-item {
    transform: none !important;
  }
}

/* Very short landscape windows cannot hold the 1440px compositions even
   after scaling. Keep those pages readable in normal flow instead of clipping
   them inside sticky scenes. */
@media (min-width: 1001px) and (max-width: 1400px) and (max-height: 699px) {
  html.moss-motion-ready main > .moss-hero,
  html.moss-motion-ready main > .moss-flow-panel:not(:is(#about, .about)),
  html.moss-motion-ready main > .moss-flow-panel.moss-flow-stack:not(:is(#about, .about)) {
    position: relative !important;
    top: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

/* Tablet/mobile safety mode. At 1000 CSS px and below Moss Motion must not
   control layout or visibility: all sections stay in normal document flow
   and every animated element is immediately readable. Kept last and outside
   the legacy layers so cached/older motion rules cannot win the cascade. */
@media (max-width: 1000px) {
  html.moss-motion-ready {
    scroll-behavior: auto !important;
  }

  html.moss-motion-ready main > .moss-hero,
  html.moss-motion-ready main > .moss-flow-panel,
  html.moss-motion-ready main > .moss-flow-panel.moss-flow-stack {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    clip-path: none !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  html.moss-motion-ready .moss-reveal-item,
  html.moss-motion-ready .moss-motion-section .moss-reveal-item,
  html.moss-motion-ready .moss-motion-section.moss-motion-observed .moss-reveal-item,
  html.moss-motion-ready .moss-motion-section.moss-motion-observed.is-motion-visible .moss-reveal-item,
  html.moss-motion-ready .moss-hero :is(
    .site-header,
    .page-header,
    .hero__copy,
    .page-hero__copy,
    .account-hero__copy,
    .hero__foot,
    .hero-tags,
    .page-hero__meta,
    h1,
    h2,
    p,
    a,
    button
  ),
  html.moss-motion-ready .moss-hero .hero__image,
  html.moss-motion-ready .moss-hero .page-hero__image,
  html.moss-motion-ready .moss-hero > picture img,
  html.moss-motion-ready .moss-hero > img:first-of-type,
  html.moss-motion-ready .moss-reveal-media > img,
  html.moss-motion-ready .contacts-card .moss-letter,
  html.moss-motion-ready .contact-map > img.moss-reveal-item {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    clip-path: none !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    transition-delay: 0ms !important;
    will-change: auto !important;
  }
}
}

/* One wheel/trackpad gesture = one home-page scene. JavaScript performs the
   actual step; these rules remove layout noise between scene anchors. */
@media (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
  html.moss-step-scroll {
    overscroll-behavior-y: none;
  }

  html.moss-step-scroll main > br {
    display: none !important;
  }

  html.moss-step-scroll .moss-step-section {
    scroll-margin-top: 0;
  }
}
