/* =========================================================
   GLOBAL
   ========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: #090909;
  color: #f6f5f1;

  font-family:
    "Source Sans Pro",
    Arial,
    sans-serif;
}


/* =========================================================
   PAGE
   ========================================================= */

.work-page {
  min-height: 100vh;

  padding:
    64px
    6vw
    110px;

  background:
    linear-gradient(
      rgba(8, 8, 8, 0.12),
      rgba(8, 8, 8, 0.18)
    ),
    url("../assets/images/background-texture-09.webp");

  background-size:
    auto,
    cover;

  background-position:
    center,
    top center;

  background-repeat:
    no-repeat,
    repeat-y;
}


/* =========================================================
   HERO
   ========================================================= */

.work-hero {
  margin-bottom: 85px;
  text-align: center;
}

.work-hero h1 {
  margin: 0;

  color: #f6f5f1;

  font-size:
    clamp(2rem, 3.3vw, 3.4rem);

  font-weight: 400;
  line-height: 1;
}

.work-hero h1 span {
  color: #3269ff;
}


/* =========================================================
   POSTER SECTION
   ========================================================= */

.work-posters {
  margin-bottom: 150px;
}


/* =========================================================
   POSTER GRID
   ========================================================= */

.posters-grid {
  width: 100%;
  max-width: 1120px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap:
    90px
    48px;
}


/* =========================================================
   POSTER CARD
   ========================================================= */

.poster-card {
  position: relative;

  width: 100%;

  padding-top: 38px;

  display: flex;
  justify-content: center;

  isolation: isolate;
}

.poster-card::before {
  content: "";

  position: absolute;

  top: 27px;
  left: 11%;
  right: 11%;

  height: 42%;

  z-index: 1;

  pointer-events: none;

  background:
    radial-gradient(
      ellipse at top center,
      rgba(255, 245, 219, 0.20) 0%,
      rgba(255, 245, 219, 0.10) 30%,
      rgba(255, 245, 219, 0.025) 57%,
      transparent 76%
    );

  filter: blur(11px);
}

.poster-card::after {
  content: "";

  position: absolute;

  left: 8%;
  right: 8%;

  top: 50px;
  bottom: -16px;

  z-index: -1;

  background:
    rgba(0, 0, 0, 0.42);

  filter:
    blur(22px);
}


/* =========================================================
   POSTER LIGHT
   ========================================================= */

.poster-light {
  position: absolute;

  top: 0;
  left: 50%;

  width: 42%;
  height: 12px;

  transform:
    translateX(-50%);

  z-index: 5;

  border-radius:
    7px
    7px
    4px
    4px;

  background:
    linear-gradient(
      to bottom,
      #373737 0%,
      #202020 35%,
      #111111 100%
    );

  box-shadow:
    0 3px 5px rgba(0, 0, 0, 0.70),
    0 7px 12px rgba(0, 0, 0, 0.35);
}

.poster-light::before {
  content: "";

  position: absolute;

  width: 76%;
  height: 10px;

  left: 12%;
  top: -8px;

  border-left:
    3px solid #242424;

  border-right:
    3px solid #242424;
}

.poster-light::after {
  content: "";

  position: absolute;

  left: 8%;
  right: 8%;

  bottom: -3px;

  height: 4px;

  border-radius:
    999px;

  background:
    #fff1cd;

  box-shadow:
    0 0 6px rgba(255, 240, 202, 0.95),
    0 0 15px rgba(255, 232, 181, 0.55),
    0 7px 25px rgba(255, 222, 153, 0.22);
}


/* =========================================================
   POSTER FRAME
   ========================================================= */

.poster-frame {
  position: relative;

  width: 100%;

  padding: 8px;

  z-index: 2;

  background:
    linear-gradient(
      145deg,
      #303030,
      #111111 38%,
      #262626 65%,
      #090909
    );

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

  box-shadow:
    0 15px 28px rgba(0, 0, 0, 0.50),
    0 5px 9px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.poster-frame::before {
  content: "";

  position: absolute;

  inset: 5px;

  z-index: 3;

  pointer-events: none;

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

  box-shadow:
    inset
    0 0 10px
    rgba(0, 0, 0, 0.60);
}

.poster-frame::after {
  content: "";

  position: absolute;

  inset: 8px;

  z-index: 4;

  pointer-events: none;

  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.07) 0%,
      rgba(255, 255, 255, 0.025) 19%,
      transparent 38%,
      transparent 100%
    );
}

.poster-frame img {
  position: relative;

  display: block;

  width: 100%;
  height: auto;

  z-index: 1;
}

.poster-card:hover .poster-frame {
  transform:
    translateY(-3px)
    scale(1.008);

  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.52),
    0 6px 12px rgba(0, 0, 0, 0.40);
}


/* =========================================================
   SHARED SECTION HEADINGS
   ========================================================= */

.work-logos,
.work-records,
.work-cta {
  text-align: center;
}

.work-logos h2,
.work-records h2,
.work-cta h2 {
  margin:
    0
    0
    40px;

  color:
    #f6f5f1;

  font-size:
    clamp(1.4rem, 2.1vw, 2.2rem);

  font-weight:
    400;

  line-height:
    1.15;
}

.work-logos h2 span,
.work-records h2 span {
  color:
    #3269ff;
}


/* =========================================================
   LOGOS
   ========================================================= */

.work-logos {
  margin-bottom:
    145px;
}

.logo-strip {
  width:
    calc(100% + 12vw);

  margin-left:
    -6vw;

  padding:
    40px 0;

  background:
    #ffffff;

  overflow:
    hidden;
}

.logo-marquee {
  width:
    100%;

  overflow:
    hidden;

  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      black 4%,
      black 96%,
      transparent 100%
    );

  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      black 4%,
      black 96%,
      transparent 100%
    );
}

.logo-track {
  display:
    flex;

  align-items:
    center;

  width:
    max-content;

  animation:
    logo-scroll
    100s
    linear
    infinite;

  will-change:
    transform;
}

.logo-set {
  display:
    flex;

  align-items:
    center;

  flex-shrink:
    0;

  gap:
    88px;

  padding-right:
    88px;
}

.logo-set img {
  display:
    block;

  flex:
    0 0 auto;

  width:
    auto;

  height:
    88px;

  max-width:
    240px;

  object-fit:
    contain;

  filter:
    none;
}

@keyframes logo-scroll {

  from {
    transform:
      translateX(0);
  }

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

}

.logo-marquee:hover .logo-track {
  animation-play-state:
    paused;
}


/* =========================================================
   RECORDS
   ========================================================= */

.work-records {
  margin-bottom:
    150px;
}

.records-grid {
  width:
    100%;

  max-width:
    1180px;

  margin:
    0 auto;

  display:
    grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  column-gap:
    110px;

  row-gap:
    70px;
}


/* =========================================================
   RECORD ITEM
   ========================================================= */

.record-item {
  position:
    relative;

  width:
    100%;

  aspect-ratio:
    1 / 1;

  isolation:
    isolate;

  overflow:
    visible;
}


/* =========================================================
   RECORD COVER
   ========================================================= */

.record-cover {
  position:
    relative;

  display:
    block;

  width:
    100%;

  height:
    100%;

  object-fit:
    cover;

  z-index:
    3;

  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.25);

  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}


/* =========================================================
   VINYL
   ========================================================= */

.vinyl-link {
  position:
    absolute;

  top:
    5%;

  right:
    2%;

  width:
    90%;

  height:
    90%;

  z-index:
    2;

  border-radius:
    50%;

  text-decoration:
    none;

  transform:
    translateX(0)
    rotate(0deg);

  transition:
    transform
    0.55s
    cubic-bezier(0.22, 1, 0.36, 1);

  cursor:
    pointer;
}

.vinyl {
  position:
    relative;

  width:
    100%;

  height:
    100%;

  border-radius:
    50%;

  background:
    repeating-radial-gradient(
      circle at center,
      #111111 0px,
      #111111 2px,
      #191919 3px,
      #111111 4px
    );

  box-shadow:
    0 10px 24px
    rgba(0, 0, 0, 0.45);
}

.vinyl::before {
  content:
    "";

  position:
    absolute;

  inset:
    8%;

  border-radius:
    50%;

  background:
    repeating-radial-gradient(
      circle at center,
      transparent 0px,
      transparent 3px,
      rgba(255, 255, 255, 0.035) 4px,
      transparent 5px
    );
}

.vinyl-label {
  position:
    absolute;

  top:
    50%;

  left:
    50%;

  width:
    28%;

  height:
    28%;

  transform:
    translate(-50%, -50%);

  border-radius:
    50%;

  background:
    #3269ff;
}

.vinyl-label::after {
  content:
    "";

  position:
    absolute;

  top:
    50%;

  left:
    50%;

  width:
    10%;

  height:
    10%;

  transform:
    translate(-50%, -50%);

  border-radius:
    50%;

  background:
    #111111;
}


/* =========================================================
   RECORD HOVER
   ========================================================= */

.record-item:hover .vinyl-link {
  transform:
    translateX(38%)
    rotate(18deg);
}

.record-item:hover .record-cover {
  transform:
    translateX(-5px)
    translateY(-3px)
    scale(1.012);

  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.42),
    0 6px 12px rgba(0, 0, 0, 0.28);
}


/* =========================================================
   CTA
   ========================================================= */

.work-cta {
  padding-top:
    40px;
}

.work-cta h2 {
  margin-bottom:
    52px;
}

.cta-button {
  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    12px
    24px;

  background:
    #3269ff;

  border:
    none;

  border-radius:
    999px;

  color:
    #f6f5f1;

  font-size:
    15px;

  line-height:
    1.5;

  text-decoration:
    none;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.cta-button:hover {
  transform:
    scale(1.04);

  opacity:
    0.9;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

  .work-page {
    padding:
      55px
      5vw
      90px;
  }

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

    gap:
      80px
      34px;
  }

  .logo-strip {
    width:
      calc(100% + 10vw);

    margin-left:
      -5vw;
  }

  .records-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    column-gap:
      90px;

    row-gap:
      60px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .work-page {
    padding:
      44px
      22px
      70px;
  }

  .work-hero {
    margin-bottom:
      65px;
  }

  .work-posters {
    margin-bottom:
      110px;
  }

  .posters-grid {
    max-width:
      390px;

    grid-template-columns:
      1fr;

    gap:
      78px;
  }

  .poster-card {
    padding-top:
      34px;
  }

  .poster-light {
    width:
      39%;
  }

  .work-logos,
  .work-records {
    margin-bottom:
      105px;
  }

  .logo-strip {
    width:
      calc(100% + 44px);

    margin-left:
      -22px;

    padding:
      30px 0;
  }

  .logo-set {
    gap:
      62px;

    padding-right:
      62px;
  }

  .logo-set img {
    height:
      62px;

    max-width:
      175px;
  }

  .logo-track {
    animation-duration:
      80s;
  }

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

    column-gap:
      52px;

    row-gap:
      44px;
  }

  .record-item:hover .vinyl-link {
    transform:
      translateX(30%)
      rotate(14deg);
  }

  .work-cta {
    padding-top:
      20px;
  }

  .work-cta h2 {
    margin-bottom:
      42px;
  }

}
