/* Homepage (Figma 10053:20334). Built from blocks.css + the PLP cards (styles.css);
   this file only adds the homepage-specific pieces. */

/* Large statement (Initiale Display in Figma; DaVinci here) */
.statement {
  padding: 100px 10px;
  text-align: center;
  text-wrap: balance;
}
.statement p {
  max-width: var(--st-max, 1154px); /* panel: Statements max width */
  margin: 0 auto;

  font-family: var(--font-davinci);
  font-weight: var(--dv-weight, 500);
  font-size: var(--dv-statement);
  line-height: var(--dv-st-leading, 0.95);
  letter-spacing: var(--dv-st-tracking, -0.02em);
}

.behind__sub {
  text-align: center;
}

/* Collection intro + rows of PLP cards */
.home-products__intro {
  max-width: min(var(--p-max), 480px);
}
.home-products .home-row {
  margin-top: 0px;
}
/* PLP grid sets 16px side padding; the scrolling row keeps it as scroll padding */
.home-row--scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 16px) / 4);
  gap: 16px;
  padding: 0 16px 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
}
.home-row--scroll::-webkit-scrollbar {
  display: none;
}
.home-row--scroll .card {
  scroll-snap-align: start;
}
/* the page can be tinted here: give the cards the page color so white-background
   shots (multiplied) blend in instead of showing a white box */
.home-row .card__media {
  background-color: var(--page-bg, #fff);
}

/* Designers strip: grayscale portraits; a frosted panel slides in on hover */
.designers {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  height: 162px;
  margin-top: 0;
}
.designer {
  position: relative;
  overflow: hidden;
}
.designer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 400ms ease;
}
.designer:hover img {
  filter: grayscale(0);
}
.designer__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px;
  color: var(--white);
  background: rgb(118 118 118 / 0.68);
  -webkit-backdrop-filter: blur(17px);
  backdrop-filter: blur(17px);
  translate: -100% 0;
  opacity: 0;
  transition:
    translate 450ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 300ms ease;
}
.designer:hover .designer__panel,
.designer:focus-visible .designer__panel {
  translate: 0 0;
  opacity: 1;
}
.designer__panel .cta {
  border-color: var(--white);
}

/* Footer */
.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 405px;
  margin-top: var(--block-gap);
  padding: 16px 0;
  background: rgb(181 162 142 / 0.2);
  color: rgb(0 0 0 / 0.7);
}
.footer__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(728px, 100%);
  padding: 0 16px;
}
.footer__logo {
  width: 342px;
  max-width: 100%;
  height: auto;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.footer__cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px;
}
.footer__lang {
  display: flex;
  gap: 16px;
  color: var(--black);
}
.footer__lang [aria-current] {
  text-decoration: underline;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0.5;
}
.footer__image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 360px;
  height: 405px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .designers {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    height: auto;
  }
  .designer {
    aspect-ratio: 3 / 4;
  }
  .home-row--scroll {
    grid-auto-columns: 70%;
  }
  .footer__image {
    position: relative;
    width: 100%;
    height: 300px;
  }
  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Designers row (Figma 10942:3714): 4:5 portraits, 221px at 1440, scrolling sideways.
   On hover the portrait blurs under a dark veil and the name shows (the stacks' hover
   timing: --hover-duration / --hover-ease from the PLP settings) */
.dportraits {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100vw - 2 * var(--gutter)) * 221 / 1408);
  gap: var(--gutter);
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.dportraits::-webkit-scrollbar {
  display: none;
}
.dportrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
  scroll-snap-align: start;
}
.dportrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--hover-duration, 600ms) var(--hover-ease, ease);
}
.dportrait__veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background: rgb(0 0 0 / 0.2);
  -webkit-backdrop-filter: blur(25.5px);
  backdrop-filter: blur(25.5px);
  color: var(--white);
  opacity: 0;
  transition: opacity var(--hover-duration, 600ms) var(--hover-ease, ease);
}
.dportrait:hover .dportrait__veil,
.dportrait:focus-visible .dportrait__veil {
  opacity: 1;
}
@media (max-width: 800px) {
  .dportraits {
    grid-auto-columns: 45vw;
  }
}

