/* ========================================================================== 
   ADTRAK PUBLIC WEBSITE - OUR WORKS
   ========================================================================== */

:root {
  --works-black: #000000;
  --works-blue: #1865ba;
  --works-link-blue: #0265de;
  --works-card: #e8f1fa;
  --works-purple: #675990;
  --works-muted: #071324;
  --works-shadow: 0 20px 42px rgba(7, 19, 36, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #ffffff;
}

body.works-page {
  min-height: 100vh;
  margin: 0;
  background: #ffffff;
  color: var(--works-black);
  font-family: "Montserrat", Arial, sans-serif;
}

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

.works-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 100;
  width: min(100%, 1920px);
  min-height: clamp(56px, 4.1vw, 74px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(28px, 4vw, 74px);
  padding: clamp(13px, 0.95vw, 18px) clamp(20px, 5vw, 90px) clamp(9px, 0.75vw, 14px);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.works-topbar__logo {
  position: relative;
  left: auto;
  top: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  width: clamp(44px, 3.15vw, 60px);
  transform: translateY(2px);
}

.works-topbar__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.works-topbar__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2vw, 34px);
  margin-left: auto;
}

.works-topbar > .works-topbar__links {
  margin-left: auto;
  justify-content: flex-end;
}

.works-topbar__links a {
  color: var(--works-link-blue);
  font-size: clamp(14px, 0.82vw, 16px);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, transform 180ms ease;
}

.works-topbar__links a:hover,
.works-topbar__links a:focus-visible {
  color: var(--works-black);
  transform: scale(1.05);
  outline: none;
}

.works-topbar__links a[aria-current="page"] {
  color: var(--works-link-blue);
  font-weight: 500;
}

.works-shell {
  width: min(100%, 1920px);
  margin: 0 auto;
  padding: clamp(74px, 5.7vw, 110px) clamp(20px, 6.8vw, 130px) clamp(58px, 6vw, 116px);
}

.works-hero {
  text-align: center;
}

@media (min-width: 981px) {
  .works-hero {
    position: sticky;
    top: clamp(56px, 4.1vw, 74px);
    z-index: 90;
    margin-left: calc(clamp(20px, 6.8vw, 130px) * -1);
    margin-right: calc(clamp(20px, 6.8vw, 130px) * -1);
    padding: clamp(5px, 0.42vw, 9px) clamp(20px, 6.8vw, 130px) clamp(6px, 0.5vw, 10px);
    background: #ffffff;
  }

  .works-list {
    position: relative;
    z-index: 1;
  }
}

.works-hero h1 {
  margin: 0;
  color: var(--works-black);
  font-size: clamp(28px, 2.85vw, 42px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.075em;
}

.works-hero__subtext {
  max-width: 780px;
  margin: clamp(5px, 0.42vw, 8px) auto 0;
  color: #202020;
  font-size: clamp(12px, 0.76vw, 14px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0.005em;
}

.works-filters {
  width: 100%;
  max-width: 1420px;
  margin: clamp(8px, 0.75vw, 14px) auto clamp(8px, 0.7vw, 13px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.18vw, 24px);
  flex-wrap: wrap;
}

.works-filter {
  min-width: clamp(126px, 10.2vw, 176px);
  height: clamp(28px, 2.05vw, 36px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(14px, 1.25vw, 24px);
  border: 1px solid rgba(0, 0, 0, 0.76);
  border-radius: 999px;
  background: #ffffff;
  color: #414141;
  font-family: inherit;
  font-size: clamp(12px, 0.78vw, 15px);
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.works-filter:hover,
.works-filter:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.works-filter.is-active {
  border-color: #454545;
  background: #454545;
  color: #ffffff;
}

.works-list {
  width: 100%;
  max-width: 1690px;
  margin: 0 auto;
  display: grid;
  gap: clamp(12px, 1.15vw, 22px);
}

.works-card {
  width: 100%;
  min-height: clamp(220px, 17.2vw, 330px);
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4.2vw, 78px);
  padding: clamp(10px, 1.25vw, 24px) clamp(28px, 4.8vw, 88px);
  border-radius: clamp(30px, 3vw, 58px);
  background: var(--works-card);
  overflow: hidden;
}

.works-card.is-hidden {
  display: none;
}

.works-card__media {
  position: relative;
  min-width: 0;
  perspective: 1200px;
  isolation: isolate;
}

.works-card__media::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 7%;
  bottom: 1%;
  height: 13%;
  border-radius: 50%;
  background: rgba(7, 19, 36, 0.18);
  filter: blur(18px);
  transform: rotate(-3deg);
  z-index: 0;
}

.works-card__composition {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1.48 / 1;
}

.works-card__sheet {
  position: absolute;
  display: block;
  overflow: hidden;
  border-radius: 5px;
  background: #e8f1fa;
  box-shadow: 0 16px 30px rgba(7, 19, 36, 0.18);
  transform-origin: center center;
}

.works-card__sheet img,
.works-card__sheet video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #e8f1fa;
}

.works-card__sheet video {
  background: #000000;
}

.works-card__sheet--back {
  z-index: 1;
  width: 86%;
  height: 74%;
  top: 13.5%;
  left: 3.5%;
  transform: rotate(-2.8deg);
}

.works-card__sheet--front {
  z-index: 2;
  width: 86%;
  height: 74%;
  top: 7%;
  left: 8.75%;
  transform: rotate(-2.1deg);
}

.works-card__paperclip {
  position: absolute;
  z-index: 4;
  width: 11.25%;
  min-width: 38px;
  max-width: 68px;
  height: auto;
  top: 5.5%;
  left: 12%;
  pointer-events: none;
  filter: drop-shadow(0 5px 5px rgba(7, 19, 36, 0.25));
  transform: rotate(-6deg);
}

.works-card__content {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: start;
}

.works-card__tags {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.1vw, 28px);
  margin-bottom: clamp(14px, 1.55vw, 28px);
}

.works-card__tags span,
.works-detail__tags span {
  min-width: clamp(128px, 10vw, 178px);
  height: clamp(30px, 2.25vw, 42px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(14px, 1.3vw, 24px);
  border: 1px solid var(--works-purple);
  border-radius: 999px;
  color: var(--works-purple);
  background: transparent;
  font-size: clamp(13px, 0.85vw, 16px);
  font-weight: 400;
  line-height: 1;
}

.works-card h2 {
  margin: 0 0 clamp(8px, 0.85vw, 16px);
  color: var(--works-black);
  font-size: clamp(24px, 2vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.works-card p {
  max-width: 62ch;
  margin: 0 0 clamp(12px, 1.25vw, 22px);
  color: var(--works-black);
  font-size: clamp(15px, 1.05vw, 20px);
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: -0.025em;
}

.works-card__button {
  justify-self: end;
  min-width: clamp(146px, 10vw, 210px);
  height: clamp(40px, 3vw, 54px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #006eea;
  font-family: inherit;
  font-size: clamp(13px, 0.9vw, 17px);
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(7, 19, 36, 0.16);
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.works-card__button:hover,
.works-card__button:focus-visible {
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(7, 19, 36, 0.2);
  outline: none;
}


.works-contact-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: clamp(22px, 2.6vw, 48px) 0 0;
}

.works-contact-cta__button {
  min-width: clamp(190px, 15vw, 280px);
  min-height: clamp(42px, 3.1vw, 58px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(24px, 2.2vw, 42px);
  border: 1px solid var(--works-link-blue);
  border-radius: 999px;
  background: #ffffff;
  color: var(--works-link-blue);
  font-size: clamp(12px, 0.85vw, 16px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.works-contact-cta__button:hover,
.works-contact-cta__button:focus-visible {
  background: var(--works-link-blue);
  color: #ffffff;
  transform: translateY(-2px);
  outline: none;
}

.works-project-json {
  display: none;
}

.works-detail[hidden] {
  display: none !important;
}

.works-detail {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 48px);
}

.works-detail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.works-detail__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1380px);
  max-height: min(90vh, 900px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 3vw, 54px);
  overflow: auto;
  padding: clamp(28px, 3.6vw, 62px);
  border-radius: clamp(24px, 2.4vw, 44px);
  background: #ffffff;
  color: #000000;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

.works-detail__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.works-detail__copy {
  align-self: center;
  min-width: 0;
}

.works-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.works-detail h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 3vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

.works-detail p {
  margin: 0;
  font-size: clamp(15px, 1.05vw, 19px);
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.works-detail__gallery {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.works-detail__gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  background: #e8f1fa;
  box-shadow: 0 14px 34px rgba(7, 19, 36, 0.14);
}

@media (max-width: 980px) {
  .works-shell {
    padding-top: 92px;
  }

  .works-card {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .works-card__tags {
    margin-bottom: 18px;
  }

  .works-card__button {
    justify-self: start;
  }

  .works-detail__panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .works-topbar {
    gap: 22px;
    padding: 18px 18px;
  }

  .works-topbar__logo {
    width: 54px;
  }

  .works-topbar__links {
    gap: 16px;
  }

  .works-topbar__links a {
    font-size: 14px;
  }

  .works-shell {
    padding: 82px 16px 52px;
  }

  .works-hero h1 {
    font-size: clamp(28px, 8.2vw, 40px);
    letter-spacing: 0.055em;
  }

  .works-hero__subtext {
    max-width: 34ch;
    font-size: 12px;
    line-height: 1.38;
  }

  .works-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 20px;
    padding: 0 0 8px;
    scrollbar-width: none;
  }

  .works-filters::-webkit-scrollbar {
    display: none;
  }

  .works-filter {
    flex: 0 0 auto;
  }

  .works-card {
    padding: 18px 16px 18px;
    border-radius: 28px;
  }

  .works-card__composition {
    aspect-ratio: 1.36 / 1;
  }

  .works-card__sheet--back {
    width: 87%;
    height: 72%;
    top: 13.5%;
    left: 3%;
    transform: rotate(-2.4deg);
  }

  .works-card__sheet--front {
    width: 87%;
    height: 72%;
    top: 7%;
    left: 8%;
    transform: rotate(-1.8deg);
  }

  .works-card__paperclip {
    width: 11.5%;
    min-width: 32px;
    max-width: 54px;
    top: 4%;
    left: 4.6%;
    transform: rotate(-5deg);
  }

  .works-card__tags {
    gap: 10px;
  }

  .works-card__tags span,
  .works-detail__tags span {
    min-width: 0;
    height: 30px;
    padding: 0 16px;
    font-size: 13px;
  }

  .works-card h2 {
    font-size: 25px;
    letter-spacing: -0.04em;
  }

  .works-card p {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -0.015em;
  }

  .works-card__button {
    width: 100%;
  }

  .works-detail {
    padding: 12px;
  }

  .works-detail__panel {
    max-height: 92vh;
    padding: 54px 18px 22px;
    border-radius: 24px;
  }
}

/* ========================================================================== 
   ADTRAK PUBLIC WEBSITE - SINGLE PROJECT PAGE
   ========================================================================== */

body.works-project-page {
  overflow-x: hidden;
}

.works-topbar--project {
  background: rgba(255, 255, 255, 0.88);
}

.works-project-shell {
  width: min(100%, 1920px);
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: start;
  background: #ffffff;
}

.works-project-gallery {
  min-width: 0;
  padding: clamp(76px, 6.2vw, 118px) clamp(10px, 1.6vw, 30px) clamp(32px, 4vw, 76px) clamp(14px, 2.8vw, 54px);
  display: grid;
  gap: clamp(10px, 1.35vw, 24px);
}

.works-project-image {
  position: relative;
  display: block;
  width: 100%;
  background: transparent;
  text-decoration: none;
}

.works-project-back-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 clamp(10px, 1.1vw, 20px);
}

.works-project-back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--works-link-blue);
  font-size: clamp(13px, 0.82vw, 15px);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
}

.works-project-back-top__arrow {
  display: inline-block;
  font-size: 1.18em;
  line-height: 1;
  transform: translateY(-0.5px);
}

.works-project-back-top:hover,
.works-project-back-top:focus-visible {
  color: var(--works-black);
  outline: none;
}

.works-project-image img,
.works-project-image video {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.works-project-image img {
  height: auto;
  object-fit: contain;
}

.works-project-image--video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

.works-project-image video {
  height: 100%;
  object-fit: cover;
}

.works-project-copy {
  position: sticky;
  top: 0;
  min-width: 0;
  height: 100svh;
  padding: clamp(104px, 7.4vw, 142px) clamp(26px, 6.2vw, 118px) clamp(28px, 3.4vw, 66px) clamp(30px, 5.4vw, 104px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--works-black);
  background: #ffffff;
}

.works-project-copy__body {
  width: min(100%, 690px);
}

.works-project-tags {
  margin-bottom: clamp(28px, 2.8vw, 50px);
}

.works-project-copy h1 {
  margin: 0 0 clamp(16px, 1.35vw, 24px);
  color: var(--works-link-blue);
  font-size: clamp(26px, 2.35vw, 44px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.works-project-copy p {
  max-width: 66ch;
  margin: 0 0 clamp(12px, 1.15vw, 20px);
  color: var(--works-black);
  font-size: clamp(13px, 0.82vw, 16px);
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: -0.015em;
}

.works-project-lead {
  font-size: clamp(14px, 0.9vw, 17px) !important;
  font-weight: 500 !important;
}

.works-project-actions {
  position: absolute;
  right: clamp(24px, 5.2vw, 100px);
  bottom: clamp(22px, 2.9vw, 56px);
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.35vw, 26px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.works-project-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: clamp(13px, 0.95vw, 18px) clamp(20px, 1.7vw, 32px) clamp(12px, 0.85vw, 16px);
  border: 1px solid rgba(7, 19, 36, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: var(--works-link-blue);
  font-size: clamp(12px, 0.78vw, 15px);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
}

.works-project-action svg {
  width: 22px;
  height: 22px;
}

.works-project-action:focus-visible {
  outline: 2px solid var(--works-link-blue);
  outline-offset: 4px;
}

body.is-at-project-bottom .works-project-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .works-project-shell {
    display: flex;
    flex-direction: column-reverse;
    min-height: 100svh;
  }

  .works-project-gallery {
    width: 100%;
    padding: 20px 18px 92px;
  }

  .works-project-copy {
    position: relative;
    height: auto;
    min-height: auto;
    width: 100%;
    padding: 104px 18px 28px;
  }

  .works-project-copy__body {
    width: 100%;
  }

  .works-project-actions {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .works-project-action {
    padding: 13px 18px 12px;
    background: rgba(255, 255, 255, 0.96);
  }
}

@media (max-width: 640px) {
  .works-project-copy {
    padding-top: 96px;
  }

  .works-project-gallery {
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }


  .works-project-copy h1 {
    font-size: clamp(25px, 8vw, 36px);
    letter-spacing: -0.035em;
  }

  .works-project-copy p {
    font-size: 13px;
    line-height: 1.52;
  }

  .works-project-lead {
    font-size: 14px !important;
  }
}
