.what-we-sew {
  position: relative;
  z-index: 2;
  margin-top: -150px;
  padding: clamp(96px, 8vw, 132px) var(--gutter)
    clamp(10px, calc(9vw - 100px), 60px);
  background: var(--paper);
  color: var(--ink);
}

.what-we-sew__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.what-we-sew__header {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr);
  gap: clamp(70px, 10vw, 220px);
  align-items: start;
}

.what-we-sew__title,
.what-we-sew__intro {
  margin: 0;
  font-family: "Inter", sans-serif;
}

.what-we-sew__title {
  width: 100%;
  max-width: 720px;
  font-size: clamp(42px, 4.167vw, 65px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: normal;
  white-space: normal;
}

.what-we-sew__title strong {
  display: inline;
  font-weight: 700;
}

.what-we-sew__title .reveal-char {
  color: rgba(33, 37, 41, .24);
}

.what-we-sew__intro {
  justify-self: end;
  width: min(100%, 389px);
  max-width: 500px;
  padding-top: 8px;
  font-size: clamp(16px, 1.389vw, 20px);
  line-height: 1.45;
}

.what-we-sew__intro span {
  display: block;
  margin-top: 1.45em;
}

.factory-video-button {
  --video-button-text-radius: 47px;
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 66%;
  width: 114px;
  height: 114px;
  overflow: hidden;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .34);
  color: #202529;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease-out);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  isolation: isolate;
}

.factory-video-button:hover,
.factory-video-button:focus-visible {
  transform: translate(-50%, -50%) scale(1.07);
}

.factory-video-button__ring,
.factory-video-button__text,
.factory-video-button__play {
  position: absolute;
  z-index: 1;
}

.factory-video-button__ring {
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.factory-video-button__text {
  z-index: 2;
  inset: 0;
  animation: circular-text-spin 11s linear infinite;
}

.factory-video-button__text span {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1;
  transform:
    translate(-50%, -50%)
    rotate(var(--rotation))
    translateY(calc(-1 * var(--video-button-text-radius)));
  transform-origin: center;
}

.factory-video-button__play {
  z-index: 3;
  top: 50%;
  left: 50%;
  display: block;
  width: 30px;
  height: 27px;
  transform: translate(-50%, -50%) rotate(90deg);
}

@keyframes circular-text-spin {
  to {
    transform: rotate(360deg);
  }
}

.sewn-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 90px;
}

.sewn-product {
  display: grid;
  min-width: 0;
  height: 331px;
  grid-template-columns: minmax(190px, 1fr) minmax(0, 1.2fr);
  overflow: hidden;
  border-radius: 20px;
  background: #f3f3f2;
}

.sewn-product--wide {
  grid-column: span 2;
  grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
}

.sewn-product--short {
  height: 191px;
  grid-template-columns: 1fr;
}

.sewn-product__copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
}

.sewn-product__copy p,
.sewn-product__copy h3 {
  margin: 0;
  font-family: "Inter", sans-serif;
}

.sewn-product__number {
  font-size: 16px;
}

.sewn-product__copy h3 {
  font-size: clamp(27px, 2.43vw, 37px);
  font-weight: 400;
  line-height: 1.1;
}

.sewn-product__copy div > p {
  max-width: 350px;
  margin-top: 15px;
  color: #76777a;
  font-size: clamp(14px, 1.111vw, 17px);
  line-height: 1.3;
}

.sewn-product__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(33, 37, 41, .25);
  transition: border-color .25s var(--ease-out);
}

.sewn-product__link:hover,
.sewn-product__link:focus-visible {
  border-color: var(--ink);
}

.sewn-product__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.sewn-product__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

.sewn-product__media--hoodie img {
  inset: -24% auto auto 12%;
  width: 103.5%;
  height: 148%;
  max-width: none;
  object-fit: contain;
  object-position: right center;
  transform: scaleX(-1) rotate(12deg);
  transform-origin: center;
}

.sewn-product__media--kids img {
  inset: -1.8% auto auto -24.3%;
  width: 125%;
  height: 108.5%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.sewn-product__media--shirt img {
  inset: -2.7% auto auto -12.1%;
  width: 161.5%;
  height: 105.7%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.sewn-product--other {
  position: relative;
  grid-template-columns: minmax(170px, .95fr) minmax(0, 1.25fr);
  background: #212529;
  color: #ffffff;
}

.sewn-product--other .sewn-product__copy {
  padding-right: 10px;
}

.sewn-product--other .sewn-product__copy div > p {
  color: #ffffff;
}

.other-card__stream {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 13%,
    #000 87%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 13%,
    #000 87%,
    transparent 100%
  );
}

.other-card__stream span {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  width: min(180px, 88%);
  height: 48px;
  place-items: center;
  border: 1px solid #ffffff;
  border-radius: 10px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  white-space: nowrap;
  will-change: transform;
}

@media (min-width: 1280px) {
  .what-we-sew__header {
      grid-template-columns: minmax(0, 720px) 462px;
      justify-content: space-between;
    }

  .what-we-sew__intro {
      justify-self: start;
      width: 100%;
      max-width: 462px;
    }
}

@media (min-width: 980px) and (max-width: 1099px) {
  .what-we-sew__intro {
      width: clamp(280px, calc(32.5vw - 37px), 389px);
    }
}

@keyframes swipe-invitation {
  0%,
  100% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
}

@media (max-width: 1279px) {
  .what-we-sew__header {
      grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
      gap: clamp(42px, 6vw, 76px);
    }

  .factory-video-button {
      left: 62%;
    }

  .sewn-products {
      gap: 24px;
    }

  .sewn-product {
      height: 300px;
      grid-template-columns: minmax(150px, .9fr) minmax(0, 1.1fr);
    }

  .sewn-product--wide {
      grid-template-columns: minmax(245px, .85fr) minmax(0, 1.15fr);
    }

  .sewn-product--short {
      height: 190px;
      grid-template-columns: 1fr;
    }

  .sewn-product--other {
      grid-template-columns: minmax(150px, .95fr) minmax(0, 1.15fr);
    }
}

@media (max-width: 979px) {
  .what-we-sew {
      padding-top: 86px;
    }

  .what-we-sew__header {
      grid-template-columns: 1fr;
      gap: 34px;
    }

  .what-we-sew__title {
      max-width: 780px;
    }

  .what-we-sew__intro {
      justify-self: start;
      width: 100%;
      max-width: 680px;
      padding-top: 0;
    }

  .factory-video-button {
      --video-button-text-radius: 42px;
      top: 50%;
      left: 66%;
      width: 104px;
      height: 104px;
    }

  .sewn-products {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

  .sewn-product,
    .sewn-product--wide {
      position: relative;
      display: block;
      grid-column: span 1;
      height: 310px;
      overflow: hidden;
    }

  .sewn-product__copy {
      position: absolute;
      z-index: 3;
      inset: 0 auto 0 0;
      width: 58%;
      min-height: 0;
      padding: 22px;
    }

  .sewn-product__media {
      position: absolute;
      z-index: 1;
      inset: 0;
      grid-row: auto;
    }

  .sewn-product:not(.sewn-product--short)::after {
      position: absolute;
      z-index: 2;
      inset: 0;
      background: linear-gradient(
        90deg,
        rgba(243, 243, 242, 1) 0,
        rgba(243, 243, 242, .9) 34%,
        rgba(243, 243, 242, 0) 68%
      );
      content: "";
      pointer-events: none;
    }

  .sewn-product__media img {
      object-position: right center;
    }

  .sewn-product__media--hoodie img {
      inset: -5% -4% -5% 0;
      width: 106%;
      height: 110%;
      max-width: none;
      object-fit: contain;
      object-position: right center;
      transform: rotate(-3deg);
    }

  .sewn-product__media--kids img {
      inset: 0;
      width: 100%;
      height: 100%;
      max-width: 100%;
      object-fit: contain;
      object-position: right center;
    }

  .sewn-product__media--shirt img {
      inset: 0;
      width: 100%;
      height: 100%;
      max-width: 100%;
      object-fit: contain;
      object-position: right center;
    }

  .sewn-product--short {
      height: 220px;
    }

  .sewn-product--short .sewn-product__copy {
      position: relative;
      width: 100%;
    }

  .sewn-product--other {
      display: grid;
      grid-template-columns: minmax(150px, .95fr) minmax(0, 1.05fr);
      grid-template-rows: 1fr;
    }

  .sewn-product--other .sewn-product__copy {
      position: relative;
      inset: auto;
      width: auto;
      grid-row: 1;
    }
}

@media (max-width: 767px) {
  .what-we-sew {
      margin-top: -150px;
      padding-top: 72px;
      padding-bottom: 90px;
    }

  .what-we-sew__title {
      width: auto;
      max-width: none;
      font-size: clamp(30px, 7vw, 44px);
      line-height: 1.2;
      white-space: normal;
    }

  .what-we-sew__intro {
      font-size: 16px;
    }

  .factory-video-button {
      --video-button-text-radius: 40px;
      top: 300px;
      left: 50%;
      width: 100px;
      height: 100px;
    }

  .sewn-products {
      grid-template-columns: 1fr;
      gap: 16px;
      margin-top: 24px;
    }

  .sewn-product,
    .sewn-product--wide {
      height: 350px;
    }

  .sewn-product__copy {
      min-height: 0;
      padding: 22px;
    }

  .sewn-product--kids .sewn-product__copy {
      width: 88%;
    }

  .sewn-product--kids .sewn-product__copy h3 {
      white-space: nowrap;
    }

  .sewn-product__copy h3 {
      font-size: clamp(28px, 8vw, 36px);
    }

  .sewn-product__copy div > p {
      font-size: 15px;
    }

  .sewn-product--short {
      height: 175px;
    }

  .sewn-product--other {
      height: 260px;
      grid-template-columns: minmax(140px, .9fr) minmax(0, 1.1fr);
    }
}

@media (max-width: 479px) {
  .factory-video-button {
      --video-button-text-radius: 37px;
      top: 260px;
      width: 92px;
      height: 92px;
    }

  .sewn-product--other {
      grid-template-columns: minmax(134px, 1fr) minmax(0, 1fr);
    }

  .other-card__stream span {
      width: min(148px, 90%);
      font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
  .factory-video-button__text {
      animation: none;
    }
}
