/* Work page — 02 / Creative, Content & Growth capability section (wc) */
.wc {
  --wc-navy: #05122d;
  --wc-lunar: #f4f9fb;
  --wc-gold: #ecb965;
  --wc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
  background: var(--wc-navy);
  scroll-margin-top: 110px;
}

.wc-inner {
  padding-top: clamp(5rem, 8vw, 8rem);
  padding-bottom: clamp(4rem, 6vw, 6.5rem);
}

/* ---------- intro ---------- */
.wc-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.65fr);
  align-items: end;
  gap: clamp(4rem, 7vw, 8rem);
}
.wc-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.wc-rule {
  display: block;
  height: 2px;
  width: 46px;
  background: var(--wc-gold);
  transform-origin: left center;
}
.wc-eyebrow-text {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--wc-gold);
}
.wc-title {
  margin-top: clamp(1.8rem, 3vw, 2.75rem);
  font-family: Jost, system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(46px, 4.4vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: var(--wc-lunar);
}
.wc-title .wc-line {
  display: block;
}
.wc-gold {
  color: var(--wc-gold);
}
.wc-sub {
  margin-top: 1.5rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
  color: rgba(244, 249, 251, 0.68);
  max-width: 650px;
}

/* ---------- explore link ---------- */
.wc-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 44px;
  padding-bottom: 8px;
  position: relative;
  text-decoration: none;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: rgba(244, 249, 251, 0.82);
  transition: color 300ms var(--wc-ease);
  outline: none;
  justify-self: end;
}
.wc-explore::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--wc-gold);
  transition: width 300ms var(--wc-ease);
}
.wc-explore svg {
  width: 20px;
  height: 20px;
  color: var(--wc-gold);
  transition: transform 300ms var(--wc-ease);
}
@media (hover: hover) and (pointer: fine) {
  .wc-explore:hover {
    color: var(--wc-lunar);
  }
  .wc-explore:hover::after {
    width: calc(100% + 18px);
  }
  .wc-explore:hover svg {
    transform: translateX(4px);
  }
}
.wc-explore:focus-visible {
  outline: 2px solid var(--wc-gold);
  outline-offset: 4px;
  color: var(--wc-lunar);
}

/* ---------- project grid ---------- */
.wc-grid {
  margin-top: clamp(2.5rem, 4.5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.4vw, 2.5rem);
  align-items: stretch;
}
.wc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(236, 185, 101, 0.42);
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  text-decoration: none;
  box-shadow: none;
  outline: none;
}
.wc-card > article {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.wc-media {
  position: relative;
  aspect-ratio: 16 / 8.8;
  width: 100%;
  overflow: hidden;
  background: #071a3c;
}
.wc-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition:
    transform 650ms var(--wc-ease),
    opacity 650ms var(--wc-ease);
}
.wc-media img.wc-img-b {
  opacity: 0;
}
.wc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 45, 0.05);
  opacity: 0;
  transition: opacity 650ms var(--wc-ease);
  pointer-events: none;
}


.wc-num {
  position: absolute;
  top: clamp(1rem, 1.6vw, 1.5rem);
  left: clamp(1rem, 1.6vw, 1.5rem);
  font-family: Jost, system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 2.2vw, 38px);
  line-height: 1;
  color: var(--wc-gold);
  opacity: 0.78;
  text-shadow: 0 1px 10px rgba(5, 18, 45, 0.25);
  transition: opacity 650ms var(--wc-ease);
  z-index: 1;
}

/* ---------- info ---------- */
.wc-info {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(15rem, 0.82fr);
  gap: clamp(1.75rem, 3vw, 3rem);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: var(--wc-navy);
  border-top: 1px solid rgba(220, 229, 234, 0.15);
  min-height: 210px;
}
.wc-info-div {
  background: rgba(220, 229, 234, 0.18);
  width: 1px;
}
.wc-name {
  display: block;
  font-family: Jost, system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 2.25vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--wc-lunar);
  opacity: 0.9;
  transition: opacity 300ms var(--wc-ease);
}
.wc-industry {
  display: block;
  margin-top: 0.55rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244, 249, 251, 0.6);
}
.wc-rule-sm {
  display: block;
  margin-top: 0.9rem;
  height: 2px;
  width: 28px;
  background: var(--wc-gold);
  transition: width 300ms var(--wc-ease);
}
.wc-services {
  display: block;
  margin-top: 1.15rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(244, 249, 251, 0.72);
}
.wc-outcome {
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--wc-lunar);
}
.wc-cta {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  position: relative;
  padding-bottom: 6px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--wc-gold);
}
.wc-cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--wc-gold);
  transition: width 300ms var(--wc-ease);
}
.wc-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 300ms var(--wc-ease);
}

@media (hover: hover) and (pointer: fine) {
  .wc-card:hover .wc-media img {
    transform: scale(1.02);
  }
  .wc-card:hover .wc-media.has-secondary .wc-img-a {
    opacity: 0;
  }
  .wc-card:hover .wc-media.has-secondary .wc-img-b {
    opacity: 1;
  }
  .wc-card:hover .wc-overlay {
    opacity: 1;
  }
  .wc-card:hover .wc-num {
    opacity: 1;
  }
  .wc-card:hover .wc-rule-sm {
    width: 44px;
  }
  .wc-card:hover .wc-name {
    opacity: 1;
  }
  .wc-card:hover .wc-cta::after {
    width: calc(100% + 16px);
  }
  .wc-card:hover .wc-cta svg {
    transform: translateX(4px);
  }
}
.wc-card:focus-visible {
  outline: 2px solid var(--wc-gold);
  outline-offset: 4px;
}
.wc-card:focus-visible .wc-num,
.wc-card:focus-visible .wc-name {
  opacity: 1;
}
.wc-card:focus-visible .wc-rule-sm {
  width: 44px;
}
.wc-card:focus-visible .wc-cta::after {
  width: calc(100% + 16px);
}

/* ---------- next capability ---------- */
.wc-next-wrap {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid rgba(220, 229, 234, 0.2);
  padding-top: clamp(2rem, 3.5vw, 3rem);
  display: flex;
  justify-content: center;
}
.wc-next {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  min-height: 44px;
  padding: 8px 16px;
  outline: none;
}
.wc-next-label {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--wc-gold);
}
.wc-next-title {
  font-family: Jost, system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(244, 249, 251, 0.9);
  text-align: center;
  transition: color 300ms var(--wc-ease);
}
.wc-next-rule {
  display: block;
  height: 2px;
  width: 28px;
  background: var(--wc-gold);
  transition: width 300ms var(--wc-ease);
}
.wc-next-arrow {
  color: var(--wc-gold);
  display: block;
  transition: transform 300ms var(--wc-ease);
}
.wc-next-arrow svg {
  width: 16px;
  height: 16px;
}
@media (hover: hover) and (pointer: fine) {
  .wc-next:hover .wc-next-arrow {
    transform: translateY(4px);
  }
  .wc-next:hover .wc-next-rule {
    width: 48px;
  }
  .wc-next:hover .wc-next-title {
    color: var(--wc-lunar);
  }
}
.wc-next:focus-visible {
  outline: 2px solid var(--wc-gold);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- reveals ---------- */
.wc [data-wc-anim] {
  opacity: 0;
  transform: translateY(16px);
}
.wc [data-wc-anim="rule"] {
  opacity: 1;
  transform: scaleX(0);
}
.wc [data-wc-anim="mask"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
}
.wc.is-in [data-wc-anim] {
  opacity: 1;
  transform: none;
  transition:
    opacity 750ms var(--wc-ease),
    transform 750ms var(--wc-ease);
  transition-delay: var(--wc-delay, 0ms);
}
.wc.is-in [data-wc-anim="rule"] {
  transform: scaleX(1);
  transition: transform 700ms var(--wc-ease);
  transition-delay: var(--wc-delay, 0ms);
}
.wc.is-in [data-wc-anim="mask"] {
  clip-path: inset(0 0 0 0);
  transition: clip-path 850ms var(--wc-ease);
  transition-delay: var(--wc-delay, 0ms);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .wc-intro {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .wc-explore {
    margin-top: 1.75rem;
    justify-self: start;
  }
  .wc-info {
    gap: 1.25rem;
  }
}
@media (max-width: 760px) {
  .wc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .wc-info {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    min-height: 0;
  }
  .wc-info-div {
    width: 100%;
    height: 1px;
  }
  .wc-title {
    font-size: clamp(40px, 10.5vw, 54px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wc [data-wc-anim],
  .wc.is-in [data-wc-anim] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .wc-media img,
  .wc-overlay,
  .wc-cta svg,
  .wc-explore svg,
  .wc-next-arrow {
    transition: none !important;
  }
  .wc-card:hover .wc-media img {
    transform: none;
  }
  .wc-card:hover .wc-media.has-secondary .wc-img-a,
  .wc-card:hover .wc-media.has-secondary .wc-img-b {
    opacity: revert-layer;
  }
}

/* row 2 cards hold their reveal until they are reached */
.wc.is-in .wc-card[data-wc-row2]:not(.is-in) [data-wc-anim] {
  opacity: 0;
  transform: translateY(16px);
  transition: none;
}
.wc.is-in .wc-card[data-wc-row2]:not(.is-in)[data-wc-anim] {
  opacity: 0;
  transform: translateY(16px);
  transition: none;
}
.wc.is-in .wc-card[data-wc-row2]:not(.is-in) [data-wc-anim="mask"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: none;
}
