/* ==========================================================
   Work / Portfolio / Case Studies
   (uses tokens, buttons, CTA and reveal animations from aurex-service.css)
   ========================================================== */

/* ---------- Hero ---------- */
.wk-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(140px, 15vw, 190px) 0 0;
  background: var(--svc-navy);
  color: #fff;
}
.wk-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 30%, #000 15%, transparent 70%);
  content: "";
}
.wk-hero__glow {
  position: absolute;
  z-index: -1;
  top: -20%;
  right: -10%;
  width: 60vw;
  max-width: 760px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 79, 0.38), transparent 62%);
  animation: wk-glow 10s ease-in-out infinite alternate;
}
.wk-hero__crumb li,
.wk-hero__crumb a {
  color: rgba(255, 255, 255, 0.7);
}
.wk-hero__crumb li + li::before {
  color: rgba(255, 255, 255, 0.4);
}
.wk-hero__crumb a:hover,
.wk-hero__crumb [aria-current] {
  color: #ff8a96;
}
.wk-hero__eyebrow {
  color: #ff8a96;
}
.wk-hero__eyebrow span {
  background: #ff8a96;
}
.wk-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 6.2vw, 88px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.wk-hero h1 em {
  color: var(--svc-brand);
  font-style: normal;
}
.wk-hero__lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
}
.wk-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin-top: 34px;
}
.wk-btn--outline {
  padding: 0 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.wk-btn--outline:hover,
.wk-btn--outline:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--svc-ink);
}
.wk-hero .container > * {
  animation: svc-rise 900ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.wk-hero .container > :nth-child(2) { animation-delay: 120ms; }
.wk-hero .container > :nth-child(3) { animation-delay: 220ms; }
.wk-hero .container > :nth-child(4) { animation-delay: 340ms; }
.wk-hero .container > :nth-child(5) { animation-delay: 460ms; }

/* Service marquee along the bottom of the hero */
.wk-marquee {
  margin-top: clamp(60px, 8vw, 96px);
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.wk-marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 34px;
  animation: wk-marquee 30s linear infinite;
}
.wk-marquee__track span {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wk-marquee__track span:nth-of-type(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
}
.wk-marquee__track i {
  color: var(--svc-brand);
  font-size: 18px;
  font-style: normal;
}

/* ---------- Work hub: two entry cards ---------- */
.wk-paths {
  padding: clamp(70px, 9vw, 110px) 0 0;
  background: #fff;
}
.wk-paths__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
}
.wk-path {
  position: relative;
  display: block;
  min-height: 440px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.wk-path img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms ease;
}
.wk-path::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 26, 42, 0.1) 20%, rgba(15, 26, 42, 0.92) 100%);
  content: "";
  transition: background-color 400ms ease;
}
.wk-path:hover img {
  transform: scale(1.07);
}
.wk-path__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(26px, 3.5vw, 44px);
}
.wk-path__label {
  color: #ff8a96;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.wk-path strong {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.wk-path__text {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
  line-height: 1.7;
}
.wk-path__go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
}
.wk-path__go span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--svc-brand);
  transition: transform 300ms ease;
}
.wk-path:hover .wk-path__go span {
  transform: translateX(6px);
}
.wk-path:focus-visible {
  outline: 3px solid var(--svc-brand);
  outline-offset: 4px;
}

/* ---------- Featured projects ---------- */
.wk-featured {
  padding: clamp(80px, 10vw, 120px) 0;
  background: #fff;
}
.wk-featured__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}
.svc-heading--left {
  margin: 0;
  text-align: left;
}

/* ---------- Project grid / cards ---------- */
.wk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.wk-grid--masonry {
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
}
.wk-grid--featured {
  grid-auto-rows: 300px;
}
.wk-grid--masonry .wk-project--tall {
  grid-row: span 2;
}
.wk-grid--masonry .wk-project--wide {
  grid-column: span 2;
}
.wk-project {
  position: relative;
  min-height: 240px;
}
.wk-project[hidden] {
  display: none;
}
.wk-project__link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  background: #e9ecf2;
}
.wk-project__link img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms ease, filter 600ms ease;
}
.wk-project__link::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 26, 42, 0.88) 100%);
  content: "";
  transition: opacity 400ms ease;
}
.wk-project__link::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 59, 79, 0.15), rgba(255, 59, 79, 0.75));
  content: "";
  opacity: 0;
  transition: opacity 450ms ease;
}
.wk-project__link:hover img,
.wk-project__link:focus-visible img {
  transform: scale(1.08);
}
.wk-project__link:hover::after,
.wk-project__link:focus-visible::after {
  opacity: 1;
}
.wk-project__link:focus-visible {
  outline: 3px solid var(--svc-brand);
  outline-offset: 3px;
}
.wk-project__num {
  position: absolute;
  top: 18px;
  left: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.wk-project__info {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(8px);
  transition: transform 400ms ease;
}
.wk-project__link:hover .wk-project__info,
.wk-project__link:focus-visible .wk-project__info {
  transform: none;
}
.wk-project__cat {
  align-self: flex-start;
  margin-bottom: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.wk-project__info strong {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.wk-project__work {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}
.wk-project__go {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--svc-brand);
  opacity: 0;
  transform: scale(0.6) rotate(-45deg);
  transition: opacity 350ms ease, transform 400ms cubic-bezier(0.3, 1.4, 0.5, 1);
}
.wk-project__link:hover .wk-project__go,
.wk-project__link:focus-visible .wk-project__go {
  opacity: 1;
  transform: none;
}

/* ---------- Portfolio filter ---------- */
.wk-portfolio {
  padding: clamp(70px, 9vw, 110px) 0 clamp(80px, 10vw, 120px);
  background: #fff;
}
.wk-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.wk-filter button {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  padding: 11px 20px;
  border: 1.5px solid var(--svc-line);
  border-radius: 999px;
  background: #fff;
  color: var(--svc-ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}
.wk-filter button sup {
  top: 0;
  color: var(--svc-brand);
  font-size: 10px;
  font-weight: 800;
}
.wk-filter button:hover {
  border-color: var(--svc-brand);
  color: var(--svc-brand);
}
.wk-filter button[aria-pressed="true"] {
  border-color: var(--svc-brand);
  background: var(--svc-brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 59, 79, 0.28);
}
.wk-filter button[aria-pressed="true"] sup {
  color: #fff;
}
.wk-filter button:focus-visible {
  outline: 2px solid var(--svc-brand);
  outline-offset: 3px;
}
.wk-project.is-filtered-in,
.js-reveal .wk-grid .wk-project.is-filtered-in.is-revealed {
  animation: wk-filter-in 550ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.wk-empty {
  margin: 40px 0 0;
  color: var(--svc-text);
  text-align: center;
}

/* ---------- Case studies ---------- */
.wk-cases {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--svc-bg);
}
.wk-cases--dark {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 59, 79, 0.18), transparent 40%),
    var(--svc-navy);
}
.wk-case {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(26, 48, 73, 0.08);
}
.wk-case + .wk-case {
  margin-top: clamp(28px, 4vw, 44px);
}
.wk-case--flip .wk-case__media {
  order: 2;
}
.wk-case__media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}
.wk-case__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms ease;
}
.wk-case:hover .wk-case__media img {
  transform: scale(1.06);
}
.wk-case__tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--svc-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.wk-case__body {
  padding: clamp(30px, 4vw, 54px);
}
.wk-case__client {
  display: block;
  margin-bottom: 12px;
  color: var(--svc-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.wk-case h3 {
  margin: 0 0 24px;
  color: var(--svc-ink);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.wk-case__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 26px;
  border-bottom: 1px dashed #e4e1ec;
}
.wk-case h4 {
  margin: 0 0 8px;
  color: var(--svc-ink);
  font-size: 15px;
  font-weight: 800;
}
.wk-case h4::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--svc-brand);
  vertical-align: middle;
  content: "";
}
.wk-case__cols p {
  margin: 0;
  color: var(--svc-text);
  font-size: 14.5px;
  line-height: 1.75;
}
.wk-case__results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.wk-case__results li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  background: #fff6f7;
}
.wk-case__results strong {
  color: var(--svc-brand);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.wk-case__results span {
  color: var(--svc-text);
  font-size: 12.5px;
  font-weight: 600;
}
.wk-cases__more {
  margin-top: 40px;
  text-align: center;
}

/* ---------- Keyframes ---------- */
@keyframes wk-marquee {
  to { transform: translateX(-50%); }
}
@keyframes wk-glow {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-8%, 10%) scale(1.15); }
}
@keyframes wk-filter-in {
  from { opacity: 0; scale: 0.94; }
  to { opacity: 1; scale: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .wk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wk-grid--masonry .wk-project--wide {
    grid-column: span 2;
  }
  .wk-case {
    grid-template-columns: 1fr;
  }
  .wk-case--flip .wk-case__media {
    order: 0;
  }
  .wk-case__media {
    min-height: 300px;
  }
}
@media (max-width: 767px) {
  .wk-paths__grid,
  .wk-grid {
    grid-template-columns: 1fr;
  }
  .wk-grid--masonry {
    grid-auto-rows: 260px;
  }
  .wk-grid--masonry .wk-project--tall,
  .wk-grid--masonry .wk-project--wide {
    grid-row: auto;
    grid-column: auto;
  }
  .wk-path {
    min-height: 380px;
  }
  .wk-case__cols,
  .wk-case__results {
    grid-template-columns: 1fr;
  }
  .wk-filter {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .wk-filter button {
    flex-shrink: 0;
  }
}
@media (max-width: 575px) {
  .wk-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .wk-btn--outline {
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wk-hero__glow,
  .wk-marquee__track,
  .wk-hero .container > *,
  .wk-project.is-filtered-in {
    animation: none;
  }
  .wk-path img,
  .wk-project__link img,
  .wk-project__info,
  .wk-project__go,
  .wk-case__media img {
    transition: none;
  }
}
