/* Gentle site-wide motion: no intro screen, no scroll-locking or reveal overlays. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  animation: page-settle .45s ease-out both;
}

@keyframes page-settle {
  from { opacity: .94; }
  to { opacity: 1; }
}

.nav, .section, .hero, .story, .footer, .button, .icon, .links a,
.collection, .collection img, .product, .product-photo img, .quick,
.language, .language button, .view-button, .text-link {
  transition: color .24s ease, background-color .24s ease, border-color .24s ease,
    box-shadow .28s ease, opacity .24s ease,
    transform .28s cubic-bezier(.2,.7,.2,1);
}

.collection:hover img, .product:hover .product-photo img {
  transform: scale(1.025);
}

/* Compact animated PL / EN switch */
.language {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: 88px;
  height: 36px;
  padding: 3px;
  margin-right: 5px;
  overflow: hidden;
  border: 1px solid #e4d9d5;
  border-radius: 999px;
  background: #f5f0ed;
  isolation: isolate;
}

.language::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 3px;
  left: 3px;
  width: 40px;
  height: 28px;
  border-radius: 999px;
  background: #292522;
  box-shadow: 0 2px 7px rgba(36,33,31,.16);
  transform: translateX(0);
  transition: transform .32s cubic-bezier(.2,.8,.2,1), background-color .24s ease;
}

.language.is-en::before { transform: translateX(40px); }

.language button {
  position: relative;
  z-index: 1;
  flex: 1 1 50%;
  width: 40px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #77716e;
  font: 700 10px Karla, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.language button[aria-pressed="true"] {
  background: transparent;
  border-color: transparent;
  color: #fff;
}

.language button:focus-visible {
  outline: 2px solid #bd777e;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* Mobile layout refinements */
@media (max-width: 560px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .shell {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
  }

  .topline {
    min-height: 28px;
    height: auto;
    gap: 8px;
    padding: 6px 3px;
    font-size: 8px;
    line-height: 1.35;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-width: 0;
    padding: 27px 20px 18px;
    border-radius: 16px;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .hero h1 {
    max-width: 100%;
    margin: 12px 0 10px;
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .hero p {
    max-width: 100%;
    margin-bottom: 17px;
    font-size: 12px;
    line-height: 1.65;
  }

  .hero .button {
    min-height: 42px;
    padding: 12px 15px;
    font-size: 10px;
  }

  .hero-image {
    position: relative;
    inset: auto;
    width: min(100%, 300px);
    height: 215px;
    margin: 10px auto 0;
    justify-self: center;
    transform: none;
  }

  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  .hero-note {
    right: 0;
    bottom: 8%;
    padding: 9px 12px;
    font-size: 11px;
  }

  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 7px;
    width: 100%;
    min-width: 0;
    margin: 10px 0 18px;
    padding: 12px 10px 10px;
    border-radius: 13px;
  }

  .nav > .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    overflow: hidden;
  }

  .nav .brand-logo {
    width: clamp(112px, 35vw, 140px);
    max-width: 100%;
    height: auto;
  }

  .nav .tools {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 4px;
    min-width: 0;
  }

  .nav .language {
    flex: 0 0 70px;
    width: 70px;
    height: 30px;
    margin: 0 1px 0 0;
    padding: 2px;
  }

  .nav .language::before {
    top: 2px;
    left: 2px;
    width: 31px;
    height: 24px;
  }

  .nav .language.is-en::before {
    transform: translateX(31px);
  }

  .nav .language button {
    width: 31px;
    height: 24px;
    padding: 0;
    font-size: 9px;
  }

  .nav .tools > .icon {
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    min-width: 27px;
    font-size: 14px;
  }

  .nav .links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: space-between;
    gap: 5px;
    width: 100%;
    min-width: 0;
    margin: 10px 0 0;
    padding: 10px 2px 0;
    border-top: 1px solid var(--line);
    font-size: 10px;
    white-space: nowrap;
  }

  .nav .links a {
    padding: 5px 1px;
  }

  .section {
    min-width: 0;
    padding: 23px 14px;
    margin-bottom: 14px;
    border-radius: 15px;
  }

  .section-head {
    gap: 10px;
    align-items: flex-start;
  }

  .section-head p {
    max-width: 42%;
    font-size: 10px;
  }

  .collections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .collection {
    min-width: 0;
    height: 165px;
  }

  .collection:first-child {
    grid-column: 1 / -1;
    height: 205px;
  }

  .collection > span {
    max-width: calc(100% - 20px);
    font-size: 15px;
  }

  #shop .products,
  .products:not(.view-carousel) {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .product {
    min-width: 0;
  }

  .product-photo {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .product-info {
    min-width: 0;
    padding-top: 10px;
  }

  .product-name {
    font-size: 14px;
  }

  .quick {
    font-size: 10px;
  }

  .story {
    grid-template-columns: minmax(0, 1fr);
  }

  .story img {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
  }

  .page-extra {
    min-height: 0;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .page-extra-copy {
    font-size: 13px;
  }

  .footer {
    gap: 12px;
    padding: 18px 5px 28px;
  }

  .footer .brand-logo {
    width: 145px;
  }

  .product-modal {
    padding: 8px;
  }

  .product-detail {
    width: 100%;
    max-height: 96dvh;
    overflow-y: auto;
  }

  .modal-image {
    height: 32dvh;
    min-height: 175px;
  }

  .modal-copy {
    padding: 18px;
  }

  .modal-copy h2 {
    font-size: 27px;
  }
}

@media (max-width: 360px) {
  .nav .brand-logo { width: 108px; }
  .nav .tools { gap: 3px; }
  .nav .tools > .icon {
    flex-basis: 25px;
    width: 25px;
    min-width: 25px;
    height: 25px;
  }
  .nav .language { flex-basis: 64px; width: 64px; }
  .nav .language.is-en::before { transform: translateX(28px); }
  .nav .language::before { width: 28px; }
  .nav .language button { width: 28px; }
  .nav .links { font-size: 9px; }
}
