html.lenis { scroll-behavior: auto; }
/* Home background (this stylesheet only loads on the home page, ES and EN). */
html:has(body .hero-intro) { --paper: #09090b; background: #09090b; }
body::before, .footer { background: #09090b; }
html.hero-loading body::before { animation: none; opacity: 1; visibility: visible; }
html:not(.hero-loading) body:not(.is-leaving)::before { animation-duration: 1500ms; }
.hero-intro { height: 100svh; position: relative; background: #09090b; }
.hero-stage { position: relative; height: 100%; overflow: hidden; display: grid; place-items: center; }
.hero-gallery { position: absolute; inset: 0; overflow: hidden; }
.hero-tile { position: absolute; overflow: hidden; will-change: transform, opacity; }
.hero-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  .hero-tile { animation: hero-float 6s ease-in-out infinite alternate; }
  .hero-tile:nth-child(3n + 1) { animation-duration: 5s; animation-delay: -1s; }
  .hero-tile:nth-child(3n + 2) { animation-duration: 7s; animation-delay: -3s; animation-direction: alternate-reverse; }
  .hero-tile:nth-child(3n) { animation-duration: 6s; animation-delay: -2s; }
  @keyframes hero-float {
    from { translate: -9px -12px; }
    to { translate: 10px 12px; }
  }
}
.hero-tile--1 { display: none; left: 3%; top: 7%; width: 19%; height: 24%; }
.hero-tile--2 { left: 30%; top: 4%; width: 13%; height: 22%; }
.hero-tile--3 { right: 5%; top: 7%; width: 23%; height: 25%; }
.hero-tile--4 { left: 8%; top: 42%; width: 15%; height: 31%; }
.hero-tile--5 { right: 3%; bottom: 4%; width: 19%; height: 25%; }
.hero-tile--6 { left: 3%; bottom: 3%; width: 12%; height: auto; aspect-ratio: 3 / 4; }
.hero-tile--7 { left: 38%; bottom: 4%; width: 18%; height: 20%; }
.hero-tile--8 { right: 3%; bottom: 4%; width: 22%; height: 23%; }
.hero-tile--9 { right: 28%; top: 3%; width: 12%; height: 19%; }
.hero-tile--10 { left: 6%; top: 36%; width: 20%; height: 27%; }
.hero-tile--11 { right: 5%; top: 39%; width: 21%; height: 27%; }
.hero-tile--12 { right: 16%; top: 15%; width: 19%; height: 27%; }
.hero-tile--beauty { display: none; }
@media (min-width: 701px) {
  .hero-tile--1 { left: 3%; top: 7%; width: 12.5%; height: 17.5%; }
  .hero-tile--2 { left: 7%; top: 7%; width: 12%; height: 22%; }
  .hero-tile--3 { right: 5%; top: 8%; width: 17%; height: 20%; }
  .hero-tile--10 { left: 8%; top: 38%; width: 16%; height: 24%; }
  .hero-tile--11 { right: 5%; top: 39%; width: 17%; height: 25%; }
  .hero-tile--6 { left: 9%; top: 43%; bottom: auto; width: min(13vw, 240px); height: auto; aspect-ratio: 3 / 4; }
  .hero-tile--7 { left: 30%; bottom: 6%; width: 16%; height: 19%; }
  .hero-tile--5 { right: 25%; bottom: 7%; width: 16%; height: 22%; }
  .hero-tile--beauty { display: block; left: 44%; top: 4%; width: min(13vw, 230px); height: auto; aspect-ratio: 3 / 4; }
  .hero-tile--beauty img { object-position: center 36%; }
}
.hero-stage .wordmark { position: absolute; width: min(43vw, 650px); margin: 0; align-self: auto; color: #fff; z-index: 2; transform-origin: center; will-change: transform, opacity; }
@media (prefers-reduced-motion: no-preference) {
  .hero-stage .wordmark { transition: opacity 4s cubic-bezier(.22, 1, .36, 1); }
  html.hero-loading .hero-stage .wordmark { opacity: 0; }
}
.hero-scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; z-index: 2; white-space: nowrap; }
.hero-statement { position: relative; z-index: 2; min-height: 105svh; display: flex; align-items: center; padding: 16svh max(var(--edge), 9vw); pointer-events: none; }
.hero-statement p { max-width: 1400px; font-family: Brenco, serif; font-size: clamp(27px, 4.24vw, 74px); line-height: 1.05; letter-spacing: -.02em; font-weight: 200; }
.hero-statement .reveal-word { opacity: .35; transition: opacity 180ms linear; }
.hero-statement .reveal-word.is-visible { opacity: 1; }
.heading-reveal-word { opacity: .35; transition: opacity 180ms linear; }
.heading-reveal-word.is-visible { opacity: 1; }
body.has-intro .site-header .menu, body.has-intro .site-header .menu-toggle { transition: opacity .3s ease; }
body.has-intro:not(.intro-finished) .site-header .menu, body.has-intro:not(.intro-finished) .site-header .menu-toggle { opacity: 0; pointer-events: none; }
body.has-intro .header-mark--home.is-visible { opacity: 1; visibility: visible; }
body.has-intro .header-mark--home { transition: none; }
body.has-intro .site-header:has(.header-mark--home:not(.is-visible)):not(:has(.menu-toggle[aria-expanded="true"])) { background: transparent; }
@media (max-width: 700px) {
  .hero-intro { height: 100svh; }
  .hero-stage .wordmark { width: 55vw; }
  .hero-tile--1 { width: 27%; height: 12%; left: 5%; top: 8%; }
  /* Mobile composition: three pieces above the logo, three below in a zigzag.
     Sizes follow each image's own proportion (vw + aspect-ratio) so products are not cropped into thin strips. */
  .hero-tile--2 { width: 26vw; height: auto; aspect-ratio: 3 / 4; left: 6%; right: auto; top: 9%; bottom: auto; }
  .hero-tile--3 { width: 28vw; height: auto; aspect-ratio: 4 / 5; left: auto; right: 6%; top: 12%; bottom: auto; }
  .hero-tile--11 { width: 34vw; height: auto; aspect-ratio: 4 / 3; left: 30%; right: auto; top: 31%; bottom: auto; }
  .hero-tile--5 { width: 30vw; height: auto; aspect-ratio: 1; left: auto; right: 9%; top: 57%; bottom: auto; }
  .hero-tile--6 { width: 32vw; height: auto; aspect-ratio: 1; left: 7%; right: auto; top: auto; bottom: 13%; }
  .hero-tile--7 { width: 28vw; height: auto; aspect-ratio: 1; left: auto; right: 6%; top: auto; bottom: 7%; }
  .hero-tile--4 { width: 25%; height: 23%; left: -5%; top: 39%; }
  .hero-tile--8 { width: 30%; height: 19%; right: -4%; bottom: 5%; }
  .hero-tile--9 { width: 22%; height: 17%; right: 3%; top: 2%; }
  .hero-tile--10 { width: 32%; height: 14%; left: 3%; right: auto; top: 27%; }
  .hero-tile--12 { width: 29%; height: 21%; right: 16%; top: 20%; }
  .hero-statement { min-height: 90svh; padding: 16svh var(--edge); }
}
/* Short phones: keep the middle piece clear of the logo. */
@media (max-width: 700px) and (max-height: 720px) {
  .hero-tile--11 { width: 30vw; top: 29%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-intro { height: 100svh; }
  .hero-statement { margin-top: 0; }
  .hero-statement .reveal-word { opacity: 1; }
  .heading-reveal-word { opacity: 1; }
  body.has-intro .site-header .menu, body.has-intro .site-header .menu-toggle { opacity: 1 !important; pointer-events: auto !important; }
}

/* Keep the services headline typography on animated words. */
.about-side .heading-reveal-word { font-family: inherit; font-size: inherit; font-weight: inherit; text-transform: inherit; letter-spacing: inherit; }

/* Keep the mobile navigation available throughout the intro. */
@media (max-width: 700px), (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  body.has-intro:not(.intro-finished) .site-header .menu-toggle { opacity: 1; pointer-events: auto; }
  body.has-intro:not(.intro-finished) .site-header .menu-toggle[aria-expanded="true"] + .menu { opacity: 1; pointer-events: auto; }
}
