:root {
  --color--bg: #F9E8DD;
  --color-text: #333;
  --color-mill-bg: #e7d5c9;
  /* --color--bg: #19191a;
  --color-text: #eee;
  --color-mill-bg: #333336; */
  --footer-bg: white;
  --font-size-lg: 28px;
  --font-size-md: 18px;
  --font-size-sm: 14px;
}

.collection {
  --color-accent: #33373d;
}

/*[data-scroll] {
  will-change: transform;
}
[data-scroll-content] {
  will-change: transform;
}*/

body {
  background: var(--color--bg, #E8E3D9);
}

.is-ready .hero__img {
  opacity: 1;
  overflow: hidden;
}

.hero {
  padding: 24px;
  display: grid;
}
/* .hero__text, .hero__img {
  grid-column: 1 / 1;
  grid-row: 1 / 1;
} */

.hero__text {
  padding: 0;
  margin-left: 0;
  margin-bottom: 24px;
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.hero__text h1 {
  font-size: var(--font-size-lg);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.1;  
  max-width: 16ch;
  margin-top: 12px;
  margin-bottom: 0;
}
.hero__text span {
  border: 1px solid white;
  display: inline-block;
  border-radius: 10em;
  padding: 4px 12px;
}
.hero__text p {
  margin: 0;
  text-align: right;
}

.intro {
  display: flex;
  flex-direction: column;
  padding: 64px 24px;
}
:is(.intro, .design) p {
  /* max-width: 560px; */
  display: block;
  font-size: var(--font-size-lg);
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 0;
}
:is(.intro, .design) p span {
  letter-spacing: -3px;
  display: inline-block;
  position: relative;
  top: -2px;
}
.intro p + p {
  margin-top: 24px;
}
.intro ul, .design ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0 0;
}
.intro li, .design li {
  font-size: var(--font-size-sm);
  color: var(--color-text);
}
.design li:first-child {
  opacity: 0.5;
}
.intro p span {
  display: inline-block;
  margin-right: 0.5rem;
}

.video {
  padding: 96px 24px;
  text-align: center;
  margin-bottom: 270px;
  background: #313131;
}

.mill {
  padding: 64px 24px;
  margin-bottom: 135px;
  background: var(--color-mill-bg);

}
/* .mill > div::-webkit-scrollbar {
  -webkit-appearance: none;
  height: 0;
}
.mill > div::-webkit-scrollbar-thumb {
  border-radius: 0;
  height: 0;
  background-color: rgba(0,0,0,.01);
  -webkit-box-shadow: 0 0 1px rgba(255,255,255,.01);
} */
.mill > div {
  /* display: flex;
  overflow: hidden;
  overflow-x: scroll;
  align-items: center; */
}
.mill__text {
  margin-left: 0;
  margin-bottom: 68px;
}
.mill__text p {
  margin: 0;
  font-size: var(--font-size-lg);
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--color-text);
}
.mill__text p span:first-child {
  font-size: var(--font-size-sm);
  letter-spacing: -0.1px;
  margin-right: 8px;
}
.mill__imgs > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  row-gap: 24px;
  will-change: transform;
}
.mill__img {
  /*padding: 0 24px 0;*/
  /* padding: 24px; */
  /* background: var(--color--bg); */
  /* margin-right: 24px; */
  /*border-right: 1px solid #000;*/
}
.mill__img figure {
  display: grid;
}
.mill__img img {
  width: 100%;
  /* min-width: 520px; */
  height: auto;
  mix-blend-mode: multiply;
  grid-column: 1;
  grid-row: 1;
  transition: .3s ease;
}
.mill__img img:first-child {
  opacity: 0.5;
}
.mill__img img:last-child {
  mix-blend-mode: plus-lighter;
  opacity: 0;
  /* filter: blur(32px); */
  /* transform: translateY(-4px); */
  /* transform: translateY(-3px); */
}
.mill__img:hover img:first-child {
  opacity: 0.9;
}
.mill__img:hover img:last-child {
  opacity: 0;
  /* transform: translateY(-3px); */
  /* transform: translateY(-12px); */
}
.mill__img p {
  font-size: var(--font-size-sm);
  line-height: 1.4;
  letter-spacing: -0.05px;
  color: var(--color-text);
  /* text-align: justify; */
  margin-top: 16px;
  margin-bottom: 0;
  padding-right: 8px;
  transition: .3s ease;
  opacity: 0.8;
  /* max-width: 85%; */
}
.mill__img:hover p {
  opacity: 1;
}

.featured-products {
  background: none;
  min-height: 400px;
  padding: 24px;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 270px;
}

.featured-products > div:first-child {
  /* grid-column: span 2; */
  text-align: left;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.featured-products > div:first-child p {
  text-align: left;
  font-size: var(--font-size-lg);
  letter-spacing: -0.5px;
  line-height: 1.1;  
  max-width: 9ch;
}
.featured-products > div:first-child a {
  color: var(--color-text);
  display: block;
  text-decoration: underline;
  margin-bottom: 32px;
}

.featured-products > .prod > a {
  display: grid
} 

.featured-products img {
  max-width: 100%;
  height: auto;
  grid-column: 1;
  grid-row: 1;
}
.featured-products img+img {
  opacity: 0;
}
.featured-products .prod:hover img+img {
  opacity: 1;
}


.footer {
  margin-top: 0!important;
}

.look {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 135px;
  color: var(--color-text);
}
.look img, .hero img, .hero video {
  display: block;
  border: none;
  width: 100%;
  height: auto;
}
.look__imgs, .hero__img {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero__img {
  flex-direction: row;
}



/* :is([data-theme="space-l"], [data-theme="space-r"]) .look__imgs {
  justify-content: space-between;
}
[data-theme="space-l"] figure:first-child, [data-theme="space-r"] figure:last-child {
  max-width: calc(33% - 4px);
}
[data-theme="space-l"] figure:last-child, [data-theme="space-r"] figure:first-child {
  max-width: calc(50% - 4px);
} */


.look__txt {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.look__txt a {
  color: var(--color-text);
}
.look__txt__name {
  font-size: var(--font-size-lg);
  letter-spacing: -1.1px;
  line-height: 1.1;
  max-width: 15ch;
}
.look__txt__look {
  text-decoration: underline;
}

.flipbook .look__imgs {
  display: grid;
  grid-template-columns: 1fr;
}
.flipbook .look__imgs figure {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}
.flipbook .look__imgs figure:not(:first-child) {
  opacity: 0;
  transition: 0;
}
.flipbook .look__imgs figure.visible {
  opacity: 1;
}

/* .look figure {
  grid-column: span 12;
} */

@media(max-width: 850px) {
  .design {
    margin-bottom: 67px
  }
  .design p {
    padding-right: 2rem;
  }
  .look__txt__look {
    text-align: right;
  }
  .look__txt__look span {
    display: none;
  }
}

@media(min-width: 850px) {

  .hero {
    padding: 48px;
    display: grid;
  }
  .hero__text {
    margin-top: 50%;
    margin-left: 50%;
    padding: 0 16px;
    height: 33%;
  }
  .hero__text, .hero__img {
    grid-column: 1 / 1;
    grid-row: 1 / 1;
  }
  .hero__text {
    width: auto;
    flex-direction: column;
    align-items: start;
  }
  .hero__text p {
    text-align: left;
  }

  .intro {
    padding: 135px 48px 185px;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: end;
  }
  .intro > div {
    width: calc(50% - 4px);
  }
  .intro p {
    max-width: 500px;
    /* margin-bottom: 0; */
  }
  .intro p span {
    display: inline-block;
    font-size: 18px;
    margin-right: 0.5rem;
  }
  .intro ul, .design ul {
    margin: 0;
  }


  .look {
    /* display: flex;
    flex-direction: column;
    gap: 16px; */
    padding: 0 48px;
    /* margin-bottom: 270px; */
    margin-bottom: 200px;
  }
  .look__imgs, .hero__img {
    display: flex;
    flex-direction: row;
    align-items: end;
    gap: 8px;
  }
  .hero__img {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hero__img picture:first-child {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
  }
  /* .hero__img picture:last-child {
    grid-column: 2 / -1;
    grid-row: 1 / -1;
  } */

  :is([data-theme="space-l"], [data-theme="space-r"]) .look__imgs {
    justify-content: space-between;
  }
  [data-theme="space-l"] figure:first-child, [data-theme="space-r"] figure:last-child {
    max-width: calc(33% - 4px);
  }
  [data-theme="space-l"] figure:last-child, [data-theme="space-r"] figure:first-child {
    max-width: calc(50% - 4px);
  }
  
  /* .look[data-theme="single"] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  } */
  .look.flipbook[data-theme="single"] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .look.flipbook[data-theme="single"] .design {
    grid-column: 1;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .look.flipbook[data-theme="single"] .design p {
    justify-self: center;
    margin: auto 0;
    max-width: 21ch;
  }
  .look.flipbook[data-theme="single"] .look__txt {
    grid-column: 2;
    grid-row: 2 / 2;
  }
  
  .filmstrip figure {
    opacity: 0;
    transition: 0;
  }
  .filmstrip figure.visible {
    opacity: 1;
  }

  .mill {
    padding: 135px 48px 96px;
    margin-top: -135px;
    margin-bottom: 135px;
  }
  .mill__text {
    margin-left: calc(50% + 4px);
    margin-bottom: 68px;
  }
  .mill__imgs > div {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 8px;
  }
  .mill__text {
  }
  .mill__imgs {
    
  }
  .mill__img p {
    margin-top: 24px;
    padding-right: 16px;
  }
  .mill__img {
  }
  .mill__img:last-child {
    border-right: none;
  }
  .mill__imgs img {
    width: 100%;
    height: auto;
  }

  .featured-products {
    padding: 48px;
    grid-template-columns: repeat(6, 1fr);
  }
  .featured-products > div:first-child {
    grid-column: span 2;
  }

}