 
:root {
  --bg: #f3efec;
  --text: #403734;
  --text-soft: #7a706b;
  --line: rgba(118, 102, 93, 0.18);
  --label: #aa9386;
  --shadow: 0 10px 30px rgba(52, 42, 36, 0.05);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", Arial, Helvetica, sans-serif;
  --container: 1320px;
}
 
.factory-quality {
  padding: clamp(30px, 3.125vw, 60px) 0;
  background: var(--bg);
}

.factory-quality__inner {
  
  margin: 0 auto;
}

.factory-quality__header {
  text-align: center;
}

.factory-quality__label {
  margin: 0;
  color: var(--label);
  font-size: clamp(14px, 0.78vw, 15px);
  line-height: 1.2;
  letter-spacing: 0.16em;
  font-weight: 500;
}

.factory-quality__title {
  margin: 18px auto 0;
  padding-top: 24px;
  max-width: 1080px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(24px, 2.81vw, 54px);
  line-height: 1.13;
  letter-spacing: -0.042em;
  font-weight: 500;
}

.factory-quality__subtitle {
  margin: 20px 0 0;
  font-size: clamp(14px, 0.83vw, 16px);
  line-height: 1.6;
  color: var(--text-soft);
}
 
.factory-quality__media {
  margin-top: 40px;
  position: relative;
}
.factory-quality__media .v .videobtn i{
  color: rgba(255, 255, 255, 0.92);
  font-size: 40px;
}
.factory-quality__media .v .videobtn {
    position: absolute;
    display: block;
    justify-content: center;
    width: 140px;
    height: 140px;
    padding: 8px 14px;
    background: rgba(25, 23, 22, 0.46);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1;
    border-radius: 50%;
    z-index: 9;
    left: 0;
    right: 0;
    top: 0;
    margin: auto;
    border: 5px #fff solid;
    align-items: center;
    text-align: center;
    line-height: 140px;
    bottom: 0;
}

.video-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-trigger__poster-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 1.94 / 1;
  background: #d9d0c9;
}

.video-trigger__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-trigger__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.video-trigger__play-ring {
  position: relative;
  width: clamp(110px, 9vw, 168px);
  height: clamp(110px, 9vw, 168px);
  border: 5px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.video-trigger__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-40%, -50%);
  border-top: 26px solid transparent;
  border-bottom: 26px solid transparent;
  border-left: 42px solid rgba(255, 255, 255, 0.92);
}

.video-trigger__duration {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 42px;
  padding: 8px 14px;
  background: rgba(25, 23, 22, 0.46);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1;
  border-radius: 2px;
}

.video-trigger:focus-visible {
  outline: 2px solid rgba(119, 96, 82, 0.45);
  outline-offset: 4px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 20, 18, 0.72);
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
  margin: 5vh auto;
  background: #161413;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.video-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  border-radius: 999px;
  cursor: pointer;
}

.video-modal__player-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal__player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

@media (hover: hover) and (pointer: fine) {
  .video-trigger {
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .video-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(52, 42, 36, 0.08);
  }

  .video-trigger:hover .video-trigger__play-ring {
    background: rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 980px) {
  .factory-quality {
  }

  .factory-quality__media {
    margin-top: 32px;
  }

  .video-trigger__duration {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 640px) {
  .factory-quality {
  }

  .factory-quality__title {
    padding-top: 18px;
  }

  .factory-quality__subtitle {
    margin-top: 14px;
  }

  .factory-quality__media {
    margin-top: 24px;
  }

  .video-trigger__poster-wrap {
    aspect-ratio: 1.58 / 1;
  }

  .video-trigger__play-ring {
    width: 94px;
    height: 94px;
    border-width: 4px;
  }

  .video-trigger__play-icon {
    border-top-width: 18px;
    border-bottom-width: 18px;
    border-left-width: 30px;
  }

  .video-trigger__duration {
    min-width: 58px;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.84rem;
  }

  .video-modal__dialog {
    width: 94vw;
    margin: 9vh auto;
  }

  .video-modal__close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.55rem;
  }


  .factory-quality__media .v .videobtn {
    width: 80px;
    height: 80px;
    line-height: 75px;
    padding: 0;
  }

  .factory-quality__media .v .videobtn i {
    font-size: 20px;
  }
}
