:root {
  --page-width: 1905px;
  --content-offset: max(0px, calc((100vw - var(--page-width)) / 2));
  --gallery-loop-width: 1880px;
  --bg: #f0ecec;
  --text: #282826;
  --muted: #232322;
  --cta-bg: #b3b3b3;
  --cta-button: #847c91;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "GFS Didot", Georgia, serif;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid rgba(40, 40, 38, 0.84);
  outline-offset: 4px;
}

.site-shell {
  width: 100%;
  margin: 0;
  background: var(--bg);
  overflow: hidden;
}

.hero {
  position: relative;
  height: 906px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0 0 auto;
  height: 903px;
  overflow: hidden;
  background: url("../media/hero-desktop-first.png") center center / cover no-repeat;
}

.hero-frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-frame--mobile,
.hero-video--mobile {
  display: none;
}

.hero-frame--end {
  z-index: 1;
  opacity: 0;
  transition: none;
}

.hero-video {
  z-index: 2;
  opacity: 0;
  transition: opacity 220ms ease;
  will-change: opacity;
}

.hero-video.is-ready {
  opacity: 1;
}

.hero-media.is-ended .hero-frame--end {
  opacity: 0;
}

.hero-media.is-ended .hero-video.is-ready {
  opacity: 1;
}

.site-header {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
}

.brand {
  position: absolute;
  top: -1px;
  left: calc(var(--content-offset) + 30px);
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-mark {
  width: 61px;
  height: 61px;
  object-fit: contain;
}

.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 27px;
  white-space: nowrap;
}

.nav-links {
  position: absolute;
  top: 37px;
  left: calc(var(--content-offset) + 1634px);
  right: auto;
  display: flex;
  align-items: flex-start;
  gap: 49px;
  font-family: "GFS Didot", Georgia, serif;
  font-size: 22px;
  line-height: 13px;
}

.nav-links a {
  position: relative;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.nav-links .is-active::after {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 38px;
  height: 1px;
  background: rgba(198, 193, 186, 0.8);
  content: "";
  transform: translateX(-50%);
}

.social-links {
  position: absolute;
  top: 624px;
  left: calc(var(--content-offset) + 375px);
  right: auto;
  display: flex;
  align-items: center;
  gap: 19px;
}

.header-phone-link {
  position: absolute;
  top: 625px;
  left: calc(var(--content-offset) + 513px);
  right: auto;
  display: block;
  width: 50px;
  height: 48px;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.header-phone-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-link {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.social-link img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.hero-copy {
  position: absolute;
  z-index: 3;
  top: 413px;
  left: calc(var(--content-offset) + 162px);
  width: 434px;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Montserrat Alternates", Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 44px;
  text-shadow: 0 2px 16px #f5f3ef;
}

.hero-copy p {
  width: 372px;
  margin: 15px 0 24px 8px;
  color: #fff;
  font-size: 21px;
  line-height: 22px;
  text-shadow: 0 4px 10px #000;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-style: solid;
  font-family: "Montserrat Alternates", Arial, sans-serif;
  font-weight: 700;
  white-space: nowrap;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.button--light {
  width: 176px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  color: #232322;
  font-size: 16px;
  line-height: 19px;
  text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.25);
}

@media (hover: hover) {
  .nav-links a:hover {
    opacity: 0.72;
  }

  .social-link:hover,
  .header-phone-link:hover {
    opacity: 0.78;
    transform: translateY(-1px);
  }

  .button:hover {
    border-color: rgba(0, 0, 0, 0.48);
    box-shadow: 0 6px 9px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
  }

  .button--claim:hover {
    box-shadow: 3px 9px 10px rgba(0, 0, 0, 0.22);
  }
}

.button:active,
.social-link:active,
.header-phone-link:active {
  transform: translateY(0);
}

.seo-strip {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 52px;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(242, 238, 235, 0.08), rgba(242, 238, 235, 0.54)),
    rgba(242, 238, 235, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 -24px 42px rgba(242, 238, 235, 0.2);
  color: rgba(35, 35, 33, 0.86);
  font-family: "Montserrat Alternates", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.seo-strip::before,
.seo-strip::after {
  position: absolute;
  z-index: 2;
  top: 0;
  width: 108px;
  height: 100%;
  pointer-events: none;
  content: "";
}

.seo-strip::before {
  left: 0;
  background: linear-gradient(90deg, rgba(242, 238, 235, 0.78), rgba(242, 238, 235, 0));
}

.seo-strip::after {
  right: 0;
  background: linear-gradient(270deg, rgba(242, 238, 235, 0.78), rgba(242, 238, 235, 0));
}

.seo-marquee {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  animation: seo-marquee 44s linear infinite;
}

.seo-marquee__group {
  display: flex;
  align-items: center;
  gap: 72px;
  padding: 0 36px;
}

.seo-marquee__group span {
  flex: 0 0 auto;
}

.quality {
  position: relative;
  height: 517px;
  isolation: isolate;
}

.products {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.product {
  position: absolute;
  filter: drop-shadow(6px 6px 5px rgba(0, 0, 0, 0.48));
}

.product--collagen {
  top: 197px;
  left: calc(var(--content-offset) + 64.5px);
  width: 190px;
  transform: rotate(13.79deg);
}

.product--red {
  top: 113px;
  left: calc(var(--content-offset) + 1173px);
  width: 196px;
  transform: rotate(12.97deg);
}

.product--group {
  top: 77.5px;
  left: calc(var(--content-offset) + 1436.5px);
  width: 343px;
  transform: rotate(13.51deg);
}

.product--yellow {
  top: 57px;
  left: calc(var(--content-offset) + 194px);
  width: 285px;
  transform: rotate(-6.51deg);
}

.quality-copy {
  position: absolute;
  z-index: 3;
  top: 137px;
  left: calc(var(--content-offset) + 502px);
  width: 578px;
}

.quality-copy h2 {
  margin: 0 0 19px;
  font-family: "Montserrat Alternates", Arial, sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 31px;
}

.quality-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
}

.section-line {
  position: absolute;
  z-index: 1;
  left: calc(var(--content-offset) - 4px);
  width: calc(var(--page-width) + 7px);
  height: 1px;
  background: #282826;
}

.section-line--top {
  top: 77px;
}

.section-line--bottom {
  top: 403px;
}

.gallery-section {
  position: relative;
  height: 322px;
  overflow: hidden;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.25));
}

.gallery-track {
  display: flex;
  gap: 1px;
  width: 1879px;
  width: max-content;
  height: 322px;
  margin-left: calc(var(--content-offset) + 51px);
  animation: gallery-marquee-reverse 42s linear infinite;
  will-change: transform;
}

.gallery-track img {
  position: relative;
  top: 0;
  left: auto;
  flex: 0 0 187px;
  width: 187px;
  height: 322px;
  border: 5px solid #fff;
  object-fit: cover;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.gallery-track img[data-marquee-clone] {
  display: block;
}

.gallery-track img:nth-child(n) {
  left: auto;
}

.result-claim {
  height: 223px;
  padding-top: 47px;
  text-align: center;
}

.claim-kicker,
.claim-title {
  margin: 0;
  color: var(--text);
  font-family: "Playfair Display", "GFS Didot", Georgia, serif;
  font-weight: 400;
  letter-spacing: 2px;
  text-shadow: -2px 1px 5px rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
  white-space: nowrap;
}

.claim-kicker {
  font-size: 24px;
  line-height: 14px;
}

.claim-title {
  margin-top: 25px;
  font-size: 24px;
  line-height: 22px;
}

.button--claim {
  width: 176px;
  height: 44px;
  margin-top: 29px;
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  color: #232322;
  font-family: "Montserrat Alternates", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 19px;
  text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.25);
}

.cta {
  position: relative;
  height: 220px;
  padding: 0;
  background: var(--cta-bg);
}

.cta-copy {
  position: absolute;
  top: 59px;
  left: calc(var(--content-offset) + 50px);
  width: 414px;
}

.cta h2 {
  margin: 0;
  color: var(--text);
  font-family: "Playfair Display", "GFS Didot", Georgia, serif;
  font-size: 39px;
  font-weight: 600;
  line-height: 37px;
  letter-spacing: 0;
}

.cta-center {
  position: absolute;
  top: 40px;
  left: calc(var(--content-offset) + 582px);
  width: 670px;
}

.cta-location,
.cta-message,
.cta-address p {
  margin: 0;
  color: #000;
  font-family: "Playfair Display", "GFS Didot", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 37px;
  letter-spacing: 0;
}

.cta-message {
  margin-top: 0;
}

.cta-address {
  position: absolute;
  top: 22px;
  left: calc(var(--content-offset) + 1355px);
  width: 509px;
}

.cta-address p {
  font-weight: 500;
}

.cta-divider {
  position: absolute;
  top: 46px;
  width: 1px;
  height: 127px;
  background: rgba(40, 40, 38, 0.65);
}

.cta-divider--left {
  left: calc(var(--content-offset) + 523px);
}

.cta-divider--right {
  left: calc(var(--content-offset) + 1297px);
}

@media (max-width: 1600px) {
  .nav-links {
    left: auto;
    right: calc(var(--content-offset) + 70px);
  }
}

@media (min-width: 901px) and (max-width: 1600px) {
  .quality {
    overflow: hidden;
  }

  .product--collagen {
    left: clamp(42px, 4vw, 72px);
  }

  .product--yellow {
    left: clamp(150px, 14vw, 205px);
  }

  .product--red {
    left: auto;
    right: clamp(190px, 16vw, 250px);
    width: 164px;
  }

  .product--group {
    left: auto;
    right: 22px;
    width: clamp(260px, 22vw, 320px);
  }

  .quality-copy {
    left: clamp(430px, 31vw, 502px);
    width: clamp(500px, 40vw, 578px);
  }

  .section-line {
    left: 0;
    width: 100%;
  }

  .cta {
    display: grid;
    height: auto;
    min-height: 220px;
    grid-template-columns: minmax(250px, 0.72fr) minmax(350px, 1.12fr) minmax(300px, 0.88fr);
    column-gap: clamp(24px, 3vw, 54px);
    align-items: start;
    padding: 28px clamp(32px, 5vw, 78px);
  }

  .cta-copy,
  .cta-center,
  .cta-address {
    position: static;
    width: auto;
  }

  .cta-divider {
    display: none;
  }

  .cta h2 {
    width: auto;
    max-width: 100%;
    font-size: clamp(32px, 2.6vw, 39px);
    line-height: 1.02;
  }

  .cta-location,
  .cta-message,
  .cta-address p {
    width: auto;
    max-width: 100%;
    font-size: clamp(22px, 1.8vw, 28px);
    line-height: 1.32;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .cta {
    grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.05fr);
    row-gap: 22px;
  }

  .cta-address {
    grid-column: 2;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .quality {
    height: 620px;
  }

  .product--collagen {
    top: 105px;
    left: 56px;
    width: 150px;
  }

  .product--yellow {
    top: 62px;
    left: 214px;
    width: 210px;
  }

  .product--red {
    top: 70px;
    right: 245px;
    width: 150px;
  }

  .product--group {
    top: 72px;
    right: 42px;
    width: 220px;
  }

  .quality-copy {
    top: 342px;
    left: 50%;
    width: min(620px, calc(100vw - 96px));
    transform: translateX(-50%);
  }

  .section-line {
    left: 0;
    width: 100%;
    transform: none;
  }

  .section-line--top {
    top: 300px;
  }

  .section-line--bottom {
    top: 562px;
  }
}

@media (max-width: 900px) {
  .site-shell {
    width: 100%;
  }

  .hero {
    height: max(760px, 100svh);
  }

  .hero-media {
    height: 100%;
    background-image: url("../media/hero-mobile-first.png");
    background-position: 55% top;
  }

  .hero-frame {
    top: 0;
    width: 100%;
    height: 100%;
    object-position: 55% top;
  }

  .hero-frame--desktop,
  .hero-video--desktop {
    display: none;
  }

  .hero-frame--mobile,
  .hero-video--mobile {
    display: block;
  }

  .site-header {
    height: 72px;
  }

  .brand {
    top: 2px;
    left: 8px;
    gap: 2px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 14px;
    line-height: 14px;
  }

  .nav-links {
    top: 16px;
    left: auto;
    right: 102px;
    gap: 16px;
    font-size: 13px;
    line-height: 13px;
  }

  .nav-links .is-active {
    display: none;
  }

  .nav-links a:first-child::after {
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 28px;
    height: 1px;
    background: rgba(198, 193, 186, 0.8);
    content: "";
    transform: translateX(-50%);
  }

  .social-links {
    top: 9px;
    left: auto;
    right: 17px;
    display: flex;
    gap: 8px;
  }

  .header-phone-link {
    display: none;
  }

  .social-link,
  .social-link img {
    width: 28px;
    height: 28px;
  }

  .hero-copy {
    top: 487px;
    left: 18px;
    width: min(315px, calc(100% - 36px));
  }

  .hero-copy h1 {
    color: #f0ecec;
    font-size: 28px;
    line-height: 31px;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.81);
  }

  .hero-copy p {
    width: 260px;
    margin: 12px 0 18px;
    font-family: "Playfair Display", "GFS Didot", Georgia, serif;
    font-size: 16px;
    line-height: 18px;
  }

  .button--light {
    width: 132px;
    height: 40px;
    border-radius: 10px;
    font-size: 12px;
  }

  .seo-strip {
    height: 42px;
    font-size: 11px;
    line-height: 13px;
  }

  .seo-marquee {
    animation-duration: 34s;
  }

  .seo-marquee__group {
    gap: 44px;
    padding: 0 22px;
  }

  .quality {
    min-height: 0;
    height: 588px;
    padding-bottom: 0;
  }

  .products {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 380px;
  }

  .product--collagen {
    top: 46px;
    left: -31px;
    width: 122px;
  }

  .product--red {
    top: 18px;
    left: 89px;
    width: 128px;
  }

  .product--group {
    top: 40px;
    left: auto;
    right: -30px;
    width: 160px;
  }

  .product--yellow {
    top: 158px;
    left: 170px;
    width: 178px;
  }

  .quality-copy {
    position: absolute;
    top: 308px;
    left: 0;
    width: auto;
    padding: 0 28px;
  }

  .quality-copy h2 {
    font-size: 26px;
    line-height: 25px;
  }

  .quality-copy p {
    font-family: "Playfair Display", "GFS Didot", Georgia, serif;
    font-size: 14px;
    line-height: 20px;
  }

  .section-line {
    position: absolute;
    left: 28px;
    width: calc(100% - 56px);
    margin: 0;
  }

  .section-line--top {
    display: none;
  }

  .section-line--bottom {
    top: 542px;
  }

  .gallery-section {
    height: 322px;
    overflow-x: hidden;
    overflow-y: hidden;
  }

  .gallery-track {
    width: max-content;
    animation: gallery-marquee 28s linear infinite;
    margin-left: -293px;
  }

  .gallery-track img,
  .gallery-track img:nth-child(n) {
    flex: 0 0 187px;
  }

  .result-claim {
    position: relative;
    height: 195px;
    margin-top: 31px;
    padding: 34px 18px 0;
  }

  .result-claim::before {
    position: absolute;
    top: 7px;
    left: 50%;
    width: calc(100% - 56px);
    height: 1px;
    background: #282826;
    content: "";
    transform: translateX(-50%);
  }

  .claim-kicker,
  .claim-title {
    color: #000;
    font-family: "Montserrat Alternates", Arial, sans-serif;
    letter-spacing: 0;
    text-shadow: none;
    text-transform: none;
    white-space: normal;
  }

  .claim-kicker {
    font-size: clamp(12px, 3.25vw, 14px);
    font-weight: 400;
    line-height: 17px;
    white-space: nowrap;
  }

  .claim-title {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 500;
    line-height: 23px;
  }

  .button--claim {
    width: 132px;
    height: 40px;
    margin-top: 11px;
    border-radius: 10px;
    font-family: "Montserrat Alternates", Arial, sans-serif;
    font-size: 12px;
    line-height: 19px;
  }

  .cta {
    min-height: 0;
    height: auto;
    min-height: 419px;
    padding: 24px 24px 28px;
  }

  .cta-copy,
  .cta-center,
  .cta-address {
    position: static;
    width: auto;
  }

  .cta-divider {
    display: none;
  }

  .cta h2 {
    width: min(320px, 100%);
    max-width: 100%;
    font-size: 30px;
    line-height: 31px;
  }

  .cta-center {
    margin-top: 20px;
  }

  .cta-location,
  .cta-message,
  .cta-address p {
    width: auto;
    max-width: 100%;
    color: var(--text);
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0;
  }

  .cta-message {
    margin-top: 7px;
  }

  .cta-address {
    margin-top: 24px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .brand {
    left: 24px;
  }

  .nav-links {
    right: 128px;
  }

  .social-links {
    right: 24px;
  }

  .hero-copy {
    top: 430px;
    left: 72px;
    width: 420px;
  }

  .hero-copy h1 {
    font-size: 36px;
    line-height: 39px;
  }

  .hero-copy p {
    width: 340px;
    font-size: 19px;
    line-height: 21px;
  }

  .button--light {
    width: 164px;
    height: 44px;
    font-size: 15px;
  }

  .gallery-track {
    margin-left: -160px;
  }

  .quality {
    height: 640px;
  }

  .product--collagen {
    top: 56px;
    left: -10px;
    width: 122px;
  }

  .product--red {
    top: 34px;
    left: 105px;
    width: 128px;
  }

  .product--group {
    top: 44px;
    right: -18px;
    width: 168px;
  }

  .product--yellow {
    top: 145px;
    left: 300px;
    width: 168px;
  }

  .quality-copy {
    top: 360px;
    padding: 0 56px;
  }

  .section-line {
    left: 56px;
    width: calc(100% - 112px);
  }

  .section-line--bottom {
    top: 592px;
  }

  .cta {
    height: 380px;
  }
}

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

  .hero-frame--end,
  .hero-video {
    transition: none;
  }

  .seo-marquee,
  .gallery-track {
    animation: none;
  }
}

@keyframes seo-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes gallery-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--gallery-loop-width)));
  }
}

@keyframes gallery-marquee-reverse {
  from {
    transform: translateX(calc(-1 * var(--gallery-loop-width)));
  }

  to {
    transform: translateX(0);
  }
}
