/* =========================================================
   SKY HIGH FRAMES STUDIO
   OUR WORK
   work.css - v7
   ========================================================= */


:root {
  --portfolio-overlap: 220px;
  --portfolio-row-height: 420px;
}


/* =========================================================
   HERO + PORTFOLIO JOURNEY
   ========================================================= */

.work-journey {
  position: relative;

  width: 100%;
}


/* =========================================================
   CONTINUOUS FILM RIBBON
   Matches HOW, WHO and WHAT.
   ========================================================= */

.film-strip-global {
  position: absolute;

  z-index: 4;

  left: 50%;

  top:
    calc(
      var(--page-hero-height)
      - 420px
    );

  bottom: 0;

  width: 48px;

  transform: translateX(-50%);

  background-color:
    rgba(1, 7, 16, 0.48);

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='70' viewBox='0 0 48 70'%3E%3Crect x='13' y='18' width='22' height='34' rx='5' fill='%23010710' fill-opacity='0.74' stroke='%2349c7ff' stroke-width='1.5'/%3E%3C/svg%3E");

  background-repeat: repeat-y;
  background-position: center top;
  background-size: 48px 70px;

  border-left:
    1px solid
    rgba(73, 199, 255, 0.17);

  border-right:
    1px solid
    rgba(73, 199, 255, 0.17);

  box-shadow:
    0 0 8px rgba(73, 199, 255, 0.06),
    inset 0 0 14px rgba(0, 70, 120, 0.10);

  -webkit-mask-image:
    linear-gradient(
      to bottom,

      transparent 0px,
      transparent 35px,

      rgba(0, 0, 0, 0.12) 80px,
      rgba(0, 0, 0, 0.30) 120px,
      rgba(0, 0, 0, 0.55) 160px,
      rgba(0, 0, 0, 0.80) 205px,

      black 245px,
      black calc(100% - 245px),

      rgba(0, 0, 0, 0.80) calc(100% - 205px),
      rgba(0, 0, 0, 0.55) calc(100% - 160px),
      rgba(0, 0, 0, 0.30) calc(100% - 120px),
      rgba(0, 0, 0, 0.12) calc(100% - 80px),

      transparent calc(100% - 35px),
      transparent 100%
    );

  mask-image:
    linear-gradient(
      to bottom,

      transparent 0px,
      transparent 35px,

      rgba(0, 0, 0, 0.12) 80px,
      rgba(0, 0, 0, 0.30) 120px,
      rgba(0, 0, 0, 0.55) 160px,
      rgba(0, 0, 0, 0.80) 205px,

      black 245px,
      black calc(100% - 245px),

      rgba(0, 0, 0, 0.80) calc(100% - 205px),
      rgba(0, 0, 0, 0.55) calc(100% - 160px),
      rgba(0, 0, 0, 0.30) calc(100% - 120px),
      rgba(0, 0, 0, 0.12) calc(100% - 80px),

      transparent calc(100% - 35px),
      transparent 100%
    );
}


/* =========================================================
   PORTFOLIO LIST
   ========================================================= */

.portfolio-list {
  position: relative;

  z-index: 5;

  width:
    min(
      1450px,
      94%
    );

  margin:
    calc(-1 * var(--portfolio-overlap))
    auto
    0;

  padding:
    0
    0
    90px;
}


.portfolio-entry {
  position: relative;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    90px
    minmax(0, 1fr);

  align-items: center;

  height: var(--portfolio-row-height);
  min-height: var(--portfolio-row-height);

  padding:
    38px
    70px;
}


.portfolio-entry[id] {
  scroll-margin-top: 90px;
}


.portfolio-entry > .project-copy,
.portfolio-entry > .project-preview {
  grid-row: 1;
}


/* =========================================================
   ROW SEPARATORS
   ========================================================= */

.portfolio-entry:not(.last-entry)::after {
  content: "";

  position: absolute;

  z-index: 10;

  right: 0;
  bottom: 0;
  left: 0;

  height: 1px;

  background:
    linear-gradient(
      to right,

      transparent 0%,
      rgba(73, 199, 255, 0.10) 8%,
      rgba(73, 199, 255, 0.36) 28%,
      rgba(73, 199, 255, 0.72) 46%,
      rgba(73, 199, 255, 0.72) 48.3%,
      transparent 48.4%,
      transparent 51.6%,
      rgba(73, 199, 255, 0.72) 51.7%,
      rgba(73, 199, 255, 0.72) 54%,
      rgba(73, 199, 255, 0.36) 72%,
      rgba(73, 199, 255, 0.10) 92%,
      transparent 100%
    );
}


/* =========================================================
   PROJECT COPY WINDOW
   ========================================================= */

.project-copy {
  position: relative;

  width:
    min(
      470px,
      92%
    );

  min-height: 230px;

  padding:
    34px
    38px;

  background:
    linear-gradient(
      125deg,
      rgba(7, 34, 55, 0.96),
      rgba(3, 17, 29, 0.94)
    );

  border:
    1px solid
    rgba(73, 199, 255, 0.30);

  border-radius: 17px;

  box-shadow:
    0 0 7px rgba(73, 199, 255, 0.24),
    0 0 24px rgba(0, 75, 130, 0.10);
}


.project-label {
  display: block;

  max-width: 100%;

  margin-bottom: 16px;

  color:
    rgba(192, 204, 213, 0.72);

  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
}


.project-copy h2 {
  position: relative;

  width: fit-content;

  margin-bottom: 20px;
  padding-bottom: 10px;

  color: var(--cyan-bright);

  font-size:
    clamp(
      24px,
      2.35vw,
      34px
    );

  font-weight: 300;
  letter-spacing: 0.045em;

  text-shadow:
    0 0 8px rgba(73, 199, 255, 0.50),
    0 0 18px rgba(73, 199, 255, 0.17);
}


.project-copy h2::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 0;

  width: 54px;
  height: 1px;

  background: var(--cyan);

  box-shadow:
    0 0 7px
    rgba(73, 199, 255, 0.55);
}


.project-copy p {
  max-width: 360px;

  color: #eef3f7;

  font-size: 16px;
  line-height: 1.6;
}


/* =========================================================
   PROJECT PREVIEW WINDOW
   ========================================================= */

.project-preview {
  position: relative;

  width:
    min(
      520px,
      92%
    );

  margin: 0;

  aspect-ratio: 3 / 2;

  overflow: hidden;

  background: #03111d;

  border:
    1px solid
    rgba(73, 199, 255, 0.48);

  border-radius: 17px;

  box-shadow:
    0 0 7px rgba(73, 199, 255, 0.42),
    0 0 22px rgba(73, 199, 255, 0.18),
    0 0 52px rgba(73, 199, 255, 0.07);
}


.carousel-track {
  position: absolute;

  inset: 0;
}


.carousel-slide {
  position: absolute;

  inset: 0;

  visibility: hidden;

  opacity: 0;

  transform: scale(1.018);

  transition:
    opacity 0.45s ease,
    transform 0.6s ease,
    visibility 0.45s ease;
}


.carousel-slide.is-active {
  visibility: visible;

  opacity: 1;

  transform: scale(1);
}


.carousel-slide img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0.82;
}

.portfolio-video {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #010b13;
}


.project-preview::after {
  content: "";

  position: absolute;

  z-index: 1;

  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      to top,
      rgba(1, 10, 18, 0.72),
      transparent 34%
    );
}


.carousel-control {
  position: absolute;

  z-index: 3;

  top: 50%;

  width: 40px;
  height: 40px;

  padding: 0;

  transform: translateY(-50%);

  color: #f7fbff;

  font: inherit;
  font-size: 28px;
  font-weight: 300;
  line-height: 34px;

  cursor: pointer;

  background:
    rgba(3, 17, 29, 0.76);

  border:
    1px solid
    rgba(73, 199, 255, 0.44);

  border-radius: 50%;

  box-shadow:
    0 0 10px rgba(73, 199, 255, 0.22);

  opacity: 0.82;

  transition:
    opacity 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.carousel-control[hidden],
.carousel-dots[hidden] {
  display: none;
}


.carousel-control:hover,
.carousel-control:focus-visible {
  color: var(--cyan-bright);

  border-color:
    rgba(73, 199, 255, 0.82);

  box-shadow:
    0 0 7px rgba(73, 199, 255, 0.48),
    0 0 18px rgba(73, 199, 255, 0.22);

  opacity: 1;
}


.carousel-control:focus-visible,
.carousel-dot:focus-visible {
  outline:
    2px solid
    var(--cyan-bright);

  outline-offset: 3px;
}


.carousel-prev {
  left: 14px;
}


.carousel-next {
  right: 14px;
}


.carousel-dots {
  position: absolute;

  z-index: 3;

  right: 20px;
  bottom: 46px;
  left: 20px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 7px;
}


.carousel-dot {
  width: 7px;
  height: 7px;

  padding: 0;

  cursor: pointer;

  background:
    rgba(238, 243, 247, 0.36);

  border: 0;
  border-radius: 999px;

  box-shadow: none;

  transition:
    width 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}


.carousel-dot.is-active {
  width: 22px;

  background: var(--cyan-bright);

  box-shadow:
    0 0 7px
    rgba(73, 199, 255, 0.62);
}


.project-preview figcaption {
  position: absolute;

  z-index: 2;

  right: 22px;
  bottom: 18px;
  left: 22px;

  color:
    rgba(238, 243, 247, 0.74);

  font-size: 11px;
  letter-spacing: 0.18em;
  text-align: center;
}


/* =========================================================
   SPORT VIDEO PREVIEWS
   ========================================================= */

.video-preview-button {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  padding: 0;

  overflow: hidden;

  color: #f7fbff;
  font: inherit;
  text-align: left;

  cursor: pointer;

  background: #03111d;

  border: 0;
}


.video-preview-button::after {
  content: "";

  position: absolute;

  z-index: 1;

  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      to top,
      rgba(1, 10, 18, 0.80),
      rgba(1, 10, 18, 0.08) 55%,
      rgba(1, 10, 18, 0.22)
    );
}


.video-preview-button img {
  transition:
    transform 0.55s ease,
    filter 0.3s ease;
}


.video-preview-button:hover img,
.video-preview-button:focus-visible img {
  transform: scale(1.035);

  filter: brightness(1.10);
}


.video-preview-button:focus-visible {
  outline:
    2px solid
    var(--cyan-bright);

  outline-offset: -4px;
}


.video-play-icon {
  position: absolute;

  z-index: 2;

  top: 50%;
  left: 50%;

  width: 68px;
  height: 68px;

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

  background:
    rgba(3, 17, 29, 0.76);

  border:
    1px solid
    rgba(73, 199, 255, 0.78);

  border-radius: 50%;

  box-shadow:
    0 0 10px rgba(73, 199, 255, 0.54),
    0 0 28px rgba(73, 199, 255, 0.22);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}


.video-play-icon::before {
  content: "";

  position: absolute;

  top: 50%;
  left: 52%;

  width: 0;
  height: 0;

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

  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--cyan-bright);

  filter:
    drop-shadow(
      0 0 5px
      rgba(73, 199, 255, 0.72)
    );
}


.video-preview-button:hover .video-play-icon,
.video-preview-button:focus-visible .video-play-icon {
  transform:
    translate(-50%, -58%)
    scale(1.08);

  background:
    rgba(3, 24, 40, 0.92);

  box-shadow:
    0 0 12px rgba(73, 199, 255, 0.78),
    0 0 36px rgba(73, 199, 255, 0.32);
}


.video-slide-title {
  position: absolute;

  z-index: 2;

  right: 24px;
  bottom: 78px;
  left: 24px;

  color: #f7fbff;

  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-align: center;

  text-shadow:
    0 2px 8px
    rgba(0, 0, 0, 0.72);
}


/* =========================================================
   ALTERNATING LAYOUT
   ========================================================= */

.entry-copy-left .project-copy {
  grid-column: 1;

  justify-self: end;
}


.entry-copy-left .project-preview {
  grid-column: 3;

  justify-self: start;
}


.entry-preview-left .project-preview {
  grid-column: 1;

  justify-self: end;
}


.entry-preview-left .project-copy {
  grid-column: 3;

  justify-self: start;
}


/* =========================================================
   END MESSAGE
   ========================================================= */

.portfolio-ending {
  width: 100%;

  padding:
    28px
    20px
    60px;

  text-align: center;
}


.portfolio-ending p {
  color:
    rgba(
      255,
      255,
      255,
      0.55
    );

  font-size: 12px;
  letter-spacing: 0.45em;
}


.portfolio-ending span {
  color: #d0a75c;
}


.portfolio-ending span:first-child {
  color:
    rgba(
      255,
      255,
      255,
      0.55
    );
}


/* =========================================================
   CINEMATIC VIDEO MODAL
   ========================================================= */

body.video-modal-open {
  overflow: hidden;
}


.video-modal {
  position: fixed;

  inset: 0;

  width:
    min(
      1120px,
      calc(100% - 48px)
    );

  max-width: none;
  max-height:
    calc(100dvh - 48px);

  padding: 0;

  margin: auto;

  overflow: visible;

  color: #f7fbff;

  background: transparent;

  border: 0;
}


.video-modal::backdrop {
  background:
    rgba(0, 7, 14, 0.84);

  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}


.video-modal[open] {
  animation:
    video-modal-in 0.28s ease-out;
}


.video-modal[open]::backdrop {
  animation:
    video-backdrop-in 0.25s ease-out;
}


.video-modal-panel {
  position: relative;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      rgba(7, 34, 55, 0.99),
      rgba(2, 13, 24, 0.99)
    );

  border:
    1px solid
    rgba(73, 199, 255, 0.58);

  border-radius: 19px;

  box-shadow:
    0 0 10px rgba(73, 199, 255, 0.48),
    0 0 38px rgba(73, 199, 255, 0.18),
    0 28px 90px rgba(0, 0, 0, 0.52);
}


.video-modal-close {
  position: absolute;

  z-index: 2;

  top: 14px;
  right: 14px;

  width: 42px;
  height: 42px;

  padding: 0;

  color: #f7fbff;

  font: inherit;
  font-size: 29px;
  font-weight: 200;
  line-height: 38px;

  cursor: pointer;

  background:
    rgba(1, 10, 18, 0.82);

  border:
    1px solid
    rgba(73, 199, 255, 0.62);

  border-radius: 50%;

  box-shadow:
    0 0 12px rgba(73, 199, 255, 0.26);
}


.video-modal-close:hover,
.video-modal-close:focus-visible {
  color: var(--cyan-bright);

  border-color: var(--cyan-bright);

  outline: 0;

  box-shadow:
    0 0 10px rgba(73, 199, 255, 0.64),
    0 0 22px rgba(73, 199, 255, 0.24);
}


.video-modal-player {
  width: 100%;

  aspect-ratio: 16 / 9;

  background: #000;
}


.video-modal-player iframe {
  display: block;

  width: 100%;
  height: 100%;

  border: 0;
}


.video-modal-meta {
  display: grid;

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

  align-items: center;

  gap: 18px;

  padding:
    22px
    28px;
}


.video-modal-kicker {
  color:
    rgba(192, 204, 213, 0.70);

  font-size: 11px;
  letter-spacing: 0.20em;
}


.video-modal-meta h2 {
  color: var(--cyan-bright);

  font-size:
    clamp(
      18px,
      2vw,
      26px
    );

  font-weight: 300;
  letter-spacing: 0.06em;
}


.video-modal-meta a {
  color: #f7fbff;

  font-size: 11px;
  letter-spacing: 0.15em;
  text-decoration: none;
}


.video-modal-meta a:hover,
.video-modal-meta a:focus-visible {
  color: var(--cyan-bright);

  outline: 0;

  text-shadow:
    0 0 8px
    rgba(73, 199, 255, 0.62);
}


@keyframes video-modal-in {
  from {
    opacity: 0;

    transform:
      translateY(12px)
      scale(0.985);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}


@keyframes video-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


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

@media (max-width: 1000px) {

  :root {
    --portfolio-overlap: 190px;
    --portfolio-row-height: 390px;
  }


  .portfolio-entry {
    grid-template-columns:
      minmax(0, 1fr)
      76px
      minmax(0, 1fr);

    padding:
      32px
      24px;
  }


  .project-copy {
    min-height: 240px;

    padding:
      30px
      28px;
  }


  .project-copy h2 {
    font-size: 25px;
  }


  .project-preview {
    width: 94%;
  }
}


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

@media (max-width: 760px) {

  :root {
    --portfolio-overlap: 110px;
  }


  .film-strip-global {
    left: 28px;

    top: 250px;

    width: 42px;

    transform: none;

    background-size: 42px 70px;

    -webkit-mask-image:
      linear-gradient(
        to bottom,

        transparent 0px,
        transparent 35px,

        rgba(0, 0, 0, 0.25) 80px,
        rgba(0, 0, 0, 0.60) 130px,

        black 180px,
        black calc(100% - 180px),

        rgba(0, 0, 0, 0.60) calc(100% - 130px),
        rgba(0, 0, 0, 0.25) calc(100% - 80px),

        transparent calc(100% - 35px),
        transparent 100%
      );

    mask-image:
      linear-gradient(
        to bottom,

        transparent 0px,
        transparent 35px,

        rgba(0, 0, 0, 0.25) 80px,
        rgba(0, 0, 0, 0.60) 130px,

        black 180px,
        black calc(100% - 180px),

        rgba(0, 0, 0, 0.60) calc(100% - 130px),
        rgba(0, 0, 0, 0.25) calc(100% - 80px),

        transparent calc(100% - 35px),
        transparent 100%
      );
  }


  .portfolio-list {
    width: 100%;

    padding:
      20px
      16px
      70px
      78px;
  }


  .portfolio-entry {
    height: auto;
    min-height: 0;

    padding:
      38px
      8px
      52px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }


  .portfolio-entry:not(.last-entry)::after {
    left: 8px;

    background:
      linear-gradient(
        to right,
        rgba(73, 199, 255, 0.42),
        transparent 100%
      );
  }


  .project-copy,
  .project-preview {
    width: 100%;
  }


  .project-copy {
    min-height: 0;

    padding:
      28px
      25px;
  }


  .project-copy h2 {
    font-size: 26px;
  }


  .project-copy p {
    font-size: 15px;
  }


  .project-preview figcaption {
    font-size: 9px;
    letter-spacing: 0.12em;
  }


  .carousel-control {
    width: 36px;
    height: 36px;

    font-size: 25px;
    line-height: 31px;
  }


  .carousel-prev {
    left: 10px;
  }


  .carousel-next {
    right: 10px;
  }


  .carousel-dots {
    bottom: 42px;
  }


  .video-play-icon {
    width: 56px;
    height: 56px;
  }


  .video-slide-title {
    right: 18px;
    bottom: 72px;
    left: 18px;

    font-size: 11px;
  }


  .video-modal {
    width:
      calc(100% - 24px);

    max-height:
      calc(100dvh - 24px);
  }


  .video-modal-panel {
    border-radius: 14px;
  }


  .video-modal-close {
    top: 9px;
    right: 9px;

    width: 38px;
    height: 38px;

    font-size: 25px;
    line-height: 34px;
  }


  .video-modal-meta {
    grid-template-columns: 1fr auto;

    gap: 7px 14px;

    padding:
      18px
      20px;
  }


  .video-modal-kicker {
    grid-column: 1 / -1;
  }


  .video-modal-meta a {
    font-size: 9px;
  }


  .portfolio-ending p {
    font-size: 9px;
    letter-spacing: 0.25em;
  }
}


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

@media (max-width: 480px) {

  .portfolio-list {
    padding-left: 72px;
  }


  .portfolio-entry {
    padding-right: 4px;
    padding-left: 4px;
  }


  .project-copy {
    padding:
      26px
      21px;
  }


  .project-label {
    font-size: 11px;
  }


  .project-copy h2 {
    font-size: 23px;
  }
}


@media (prefers-reduced-motion: reduce) {

  .carousel-slide,
  .carousel-control,
  .carousel-dot,
  .video-preview-button img,
  .video-play-icon {
    transition: none;
  }


  .video-modal[open],
  .video-modal[open]::backdrop {
    animation: none;
  }
}
