/* =========================================================
   PORTFOLIO / WORK PAGE
========================================================= */

html {
  scroll-behavior: smooth;
}

.WorkPageWrapper {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 145, 77, 0.16), transparent 34rem),
    radial-gradient(circle at 85% 20%, rgba(20, 20, 20, 0.08), transparent 28rem),
    #f7f3ee;
  color: #151515;
  overflow-x: hidden;
}

/* =========================================================
   HEADER
========================================================= */

.WorkPageHeader {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 64px);
  background: rgba(247, 243, 238, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.WorkPageLogoImage {
  width: 46px;
  height: auto;
  display: block;
}

.WorkPageHeaderNav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.WorkPageHeaderNav a,
.WorkStickyNav a {
  color: #151515;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  border-radius: 999px;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.WorkPageHeaderNav a:hover,
.WorkStickyNav a:hover,
.WorkStickyNav a.is-active {
  background: #151515;
  color: #ffffff;
  transform: translateY(-2px);
}

/* =========================================================
   HERO
========================================================= */

.WorkHeroSection {
  padding: clamp(82px, 11vw, 150px) clamp(20px, 5vw, 80px) clamp(52px, 7vw, 90px);
}

.WorkHeroInner {
  max-width: 1120px;
  margin: 0 auto;
}

.WorkHeroEyebrow,
.WorkSectionEyebrow,
.WorkCTAEyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 900;
  color: #d9672f;
  margin: 0 0 14px;
}

.WorkHeroHeadline {
  max-width: 1020px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.75rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 950;
}

.WorkHeroDescription {
  max-width: 740px;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.65;
  color: rgba(21, 21, 21, 0.72);
  margin: 28px 0 0;
}

.WorkHeroButtonRow,
.WorkCTAButtonRow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.WorkHeroButtonPrimary,
.WorkHeroButtonSecondary,
.WorkCTAButtonRow a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.WorkHeroButtonPrimary,
.WorkCTAButtonRow a:first-child {
  background: #151515;
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(21, 21, 21, 0.18);
}

.WorkHeroButtonSecondary,
.WorkCTAButtonRow a:last-child {
  background: #ffffff;
  color: #151515;
  border: 1px solid rgba(21, 21, 21, 0.1);
}

.WorkHeroButtonPrimary:hover,
.WorkHeroButtonSecondary:hover,
.WorkCTAButtonRow a:hover {
  transform: translateY(-3px);
}

/* =========================================================
   STICKY SECTION NAV
========================================================= */

.WorkStickyNav {
  position: sticky;
  top: 84px;
  z-index: 900;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 0 auto 34px;
  display: flex;
  gap: 6px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(21, 21, 21, 0.08);
  box-shadow: 0 20px 55px rgba(21, 21, 21, 0.08);
  overflow-x: auto;
}

.WorkStickyNav::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   GLOBAL SECTIONS
========================================================= */

.WorkSection {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 80px);
  scroll-margin-top: 150px;
}

.WorkSectionAlt {
  background:
    linear-gradient(135deg, rgba(21, 21, 21, 0.96), rgba(42, 38, 34, 0.96)),
    #151515;
  color: #ffffff;
}

.WorkSectionHeader {
  max-width: 940px;
  margin: 0 auto 38px;
}

.WorkSectionTitle {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.WorkSectionDescription {
  max-width: 740px;
  margin: 20px 0 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(21, 21, 21, 0.68);
}

.WorkSectionAlt .WorkSectionDescription {
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   WEB
========================================================= */

.WebWorkGrid,
.VideoWorkGrid,
.MusicWorkGrid,
.SocialAccountGrid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.WebWorkGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.WebWorkCard,
.VideoWorkCard,
.SocialAccountCard,
.BrandRefreshCard,
.MusicEmbedCard {
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(21, 21, 21, 0.08);
  box-shadow: 0 24px 70px rgba(21, 21, 21, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.WorkSectionAlt .VideoWorkCard,
.WorkSectionAlt .SocialAccountCard,
.WorkSectionAlt .BrandRefreshCard {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.WebWorkCard:hover,
.VideoWorkCard:hover,
.SocialAccountCard:hover,
.BrandRefreshCard:hover,
.MusicEmbedCard:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 85px rgba(21, 21, 21, 0.16);
}

.WebWorkImage {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #ddd;
  transition: transform 0.5s ease;
}

.WebWorkCard:hover .WebWorkImage {
  transform: scale(1.04);
}

.WebWorkCardContent {
  padding: 24px;
}

.WebWorkCategory {
  color: #d9672f;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 900;
  margin: 0 0 10px;
}

.WebWorkCard h3,
.VideoWorkCard h3,
.SocialAccountCard h3,
.BrandRefreshIntro h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.WebWorkCard p,
.SocialAccountCard p,
.BrandRefreshIntro p {
  color: rgba(21, 21, 21, 0.65);
  line-height: 1.65;
}

.WorkSectionAlt .SocialAccountCard p,
.WorkSectionAlt .BrandRefreshIntro p {
  color: rgba(255, 255, 255, 0.68);
}

.WorkTextLink {
  display: inline-flex;
  margin-top: 8px;
  color: #151515;
  font-weight: 900;
  text-decoration: none;
}

.WorkTextLink:hover {
  text-decoration: underline;
}

/* =========================================================
   VIDEO
========================================================= */

.VideoWorkGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.VideoWorkCard {
  padding: 12px;
}

.WorkVideoEmbed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
}

.WorkVideoEmbed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.VideoWorkCard h3 {
  padding: 18px 8px 8px;
}

/* =========================================================
   PHOTOGRAPHY
========================================================= */

.PhotoWorkGrid {
  max-width: 1180px;
  margin: 0 auto;
  columns: 3 260px;
  column-gap: 18px;
}

.PhotoWorkGrid img {
  width: 100%;
  display: block;
  margin: 0 0 18px;
  border-radius: 28px;
  break-inside: avoid;
  background: #ddd;
  box-shadow: 0 24px 60px rgba(21, 21, 21, 0.1);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
  cursor: pointer;
}

.PhotoWorkGrid img:hover {
  transform: scale(1.025);
  box-shadow: 0 34px 80px rgba(21, 21, 21, 0.18);
  filter: contrast(1.04);
}

/* =========================================================
   GRAPHIC DESIGN / SOCIAL
========================================================= */

.SocialAccountGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.SocialAccountCard {
  padding: 28px;
  text-decoration: none;
  color: #ffffff;
  min-height: 230px;
  position: relative;
}

.SocialAccountCard::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.SocialAccountCard span {
  display: inline-flex;
  margin-bottom: 34px;
  color: #d9672f;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* =========================================================
   BRAND REFRESHES
========================================================= */

.BrandRefreshBlock {
  max-width: 1180px;
  margin: 76px auto 0;
}

.BrandRefreshIntro {
  max-width: 760px;
  margin-bottom: 28px;
}

.BrandRefreshGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 70px;
}

.BrandRefreshCard {
  width: 100%;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}

.BrandRefreshCard:hover {
  transform: none;
  box-shadow: none;
}

.BrandRefreshBefore {
  width: min(300px, 100%);
  margin: 0 auto 22px;
}

.BrandRefreshAfter {
  width: 100%;
  margin: 0 auto;
}

.BrandRefreshBefore span,
.BrandRefreshAfter span {
  display: block;
  margin-bottom: 10px;
  color: #d9672f;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.BrandRefreshBefore img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 18px;
  background: transparent;
}

.BrandRefreshAfter img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 24px;
  background: transparent;
}

/* =========================================================
   MUSIC
========================================================= */

.MusicWorkGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.MusicEmbedCard {
  padding: 12px;
}

.MusicEmbedCard iframe {
  display: block;
  border: 0;
}

/* =========================================================
   CTA
========================================================= */

.WorkCTASection {
  margin: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 80px);
  padding: clamp(46px, 7vw, 88px);
  border-radius: 42px;
  background:
    radial-gradient(circle at top right, rgba(255, 145, 77, 0.26), transparent 28rem),
    #151515;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 32px 90px rgba(21, 21, 21, 0.18);
}

.WorkCTASection h2 {
  max-width: 850px;
  margin: 0 auto;
  font-size: clamp(2.1rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.WorkCTAButtonRow {
  justify-content: center;
}

.WorkCTAButtonRow a:first-child {
  background: #ffffff;
  color: #151515;
}

.WorkCTAButtonRow a:last-child {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

/* =========================================================
   PHOTO LIGHTBOX
========================================================= */

.PortfolioLightboxOpen {
  overflow: hidden;
}

.PortfolioLightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(14px);
  animation: PortfolioLightboxFadeIn 0.22s ease forwards;
}

.PortfolioLightbox img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.PortfolioLightboxClose {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #151515;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@keyframes PortfolioLightboxFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* =========================================================
   ANIMATION STATES FOR JS
========================================================= */

.WorkReveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.WorkReveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px) {
  .WebWorkGrid,
  .SocialAccountGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .WorkPageHeader {
    align-items: flex-start;
  }

  .BrandRefreshBefore {
    max-width: 360px;
  }

  .BrandRefreshAfter {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .WorkPageHeader {
    position: relative;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .WorkPageHeaderNav {
    justify-content: center;
  }

  .WorkStickyNav {
    top: 12px;
    justify-content: flex-start;
  }

  .WebWorkGrid,
  .VideoWorkGrid,
  .MusicWorkGrid,
  .SocialAccountGrid {
    grid-template-columns: 1fr;
  }

  .WorkHeroHeadline,
  .WorkSectionTitle,
  .WorkCTASection h2 {
    letter-spacing: -0.055em;
  }

  .BrandRefreshCard {
    padding: 16px;
  }

  .BrandRefreshBefore {
    max-width: 100%;
  }

  .BrandRefreshBefore img {
    max-height: 260px;
  }

  .BrandRefreshAfter img {
    max-height: none;
  }
}

@media (max-width: 520px) {
  .WorkPageHeaderNav a,
  .WorkStickyNav a {
    font-size: 0.76rem;
    padding: 9px 12px;
  }

  .WorkHeroSection {
    padding-top: 58px;
  }

  .WorkHeroButtonPrimary,
  .WorkHeroButtonSecondary,
  .WorkCTAButtonRow a {
    width: 100%;
  }

  .WorkSection {
    padding-left: 16px;
    padding-right: 16px;
  }

  .WorkCTASection {
    margin-left: 16px;
    margin-right: 16px;
    border-radius: 30px;
  }
}