/* ==========================================================================
   Our Work (list + case study): builds on services.css (sv-*) and why-us.css (wy-hero).
   ========================================================================== */

/* ---------- List hero ---------- */
.wk-hero .wy-hero-grid { align-items: center; }
.wk-stats { display: flex; flex-wrap: wrap; gap: 2.4rem; margin: 2.4rem 0 0; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.wk-stats div { margin: 0; }
.wk-stats dt { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; line-height: 1; color: #fff; }
.wk-stats dd { margin: .35rem 0 0; font-size: .85rem; color: rgba(255, 255, 255, .65); }

/* Tilted wall of project covers drifting up and down */
.wk-stage { position: relative; height: 520px; perspective: 1400px; }
.wk-tilt { position: absolute; inset: -30px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; transform: rotateX(14deg) rotateY(-14deg) rotateZ(4deg); transform-style: preserve-3d;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); }
.wk-col { overflow: hidden; }
.wk-col-track { display: flex; flex-direction: column; gap: 1rem; animation: wkUp 38s linear infinite; will-change: transform; }
.wk-col.is-down .wk-col-track { animation-name: wkDown; animation-duration: 44s; }
@keyframes wkUp { to { transform: translateY(-50%); } }
@keyframes wkDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.wk-tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .9); }
.wk-tile img { width: 100%; height: 100%; object-fit: cover; }
.wk-tile em { position: absolute; left: .7rem; bottom: .7rem; padding: .25rem .6rem; border-radius: 999px; font-style: normal; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(12, 31, 58, .7); }

/* ---------- Shared bits ---------- */
.wk-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.wk-tags span { padding: .3rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 700; color: #1E75B0; background: rgba(30, 143, 208, .1); }
.wk-tags span.is-plain { color: #64748B; background: var(--sv-soft); }
.wk-sample { position: absolute; right: .8rem; top: .8rem; z-index: 2; padding: .25rem .65rem; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7C2D12; background: #FDE68A; }
.wk-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: rgba(255, 255, 255, .35); background: linear-gradient(145deg, #16508E, #0B1322); }

/* ---------- Featured carousel ---------- */
.wk-featured { background: var(--sv-soft); padding: 4.5rem 0; }
.wkf-slides { display: grid; }
.wkf-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; border-radius: 28px; background: #fff; border: 1px solid var(--sv-line); box-shadow: 0 50px 90px -60px rgba(11, 18, 32, .6);
    visibility: hidden; opacity: 0; transition: opacity .7s ease, visibility 0s .7s; }
.wkf-slide.is-active { visibility: visible; opacity: 1; transition: opacity .7s ease; }
.wkf-media { position: relative; display: block; min-height: 420px; overflow: hidden; background: linear-gradient(145deg, #16508E, #0B1322); }
.wkf-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--sv-ease); }
.wkf-slide.is-active .wkf-media img { transform: scale(1); }
.wkf-body { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: clamp(1.6rem, 3vw, 2.8rem); }
.wkf-body > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--sv-ease), transform .6s var(--sv-ease); }
.wkf-slide.is-active .wkf-body > * { opacity: 1; transform: none; }
.wkf-slide.is-active .wkf-body > :nth-child(2) { transition-delay: .08s; }
.wkf-slide.is-active .wkf-body > :nth-child(3) { transition-delay: .16s; }
.wkf-slide.is-active .wkf-body > :nth-child(4) { transition-delay: .24s; }
.wkf-slide.is-active .wkf-body > :nth-child(5) { transition-delay: .32s; }
.wkf-body h3 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.2; }
.wkf-body h3 a { color: var(--sv-ink); text-decoration: none; }
.wkf-body h3 a:hover { color: #1E75B0; }
.wkf-body p { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--sv-muted); }
.wkf-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; width: 100%; margin: .3rem 0 .4rem; }
.wkf-metrics div { padding: .9rem 1rem; border-radius: 16px; background: var(--sv-soft); }
.wkf-metrics dt { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; line-height: 1.1; color: #1E75B0; }
.wkf-metrics dd { margin: .3rem 0 0; font-size: .8rem; line-height: 1.4; color: var(--sv-muted); }
.wkf-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.4rem; }
.wkf-dots button { position: relative; width: 34px; height: 6px; padding: 0; border: 0; border-radius: 999px; overflow: hidden; background: #CDD3DB; cursor: pointer; }
.wkf-dots button span { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #1E8FD0, #16508E); }
.wkf-dots button.is-done span { transform: scaleX(1); }
.wkf-dots button.is-active span { animation: wkfFill var(--wkf-ms, 6000ms) linear forwards; }
@keyframes wkfFill { to { transform: scaleX(1); } }
.wkf-dots button:focus-visible { outline: 2px solid #1E8FD0; outline-offset: 3px; }

/* ---------- All projects ---------- */
.wk-all { padding: 4.5rem 0; }
.wk-count { font-size: .9rem; color: var(--sv-muted); }
.wk-count strong { font-family: var(--font-heading); font-size: 1.6rem; color: var(--sv-ink); }
.wk-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.wk-filter { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--sv-line); background: #fff; font: inherit; font-size: .88rem; font-weight: 700; color: #3F4653; cursor: pointer; transition: all .25s var(--sv-ease); }
.wk-filter i { font-size: .78rem; color: #1E75B0; }
.wk-filter span { padding: .05rem .45rem; border-radius: 999px; font-size: .72rem; color: #64748B; background: var(--sv-soft); }
.wk-filter:hover { border-color: rgba(30, 143, 208, .4); transform: translateY(-2px); }
.wk-filter.is-active { color: #fff; border-color: transparent; background: linear-gradient(135deg, #1E8FD0, #16508E); box-shadow: 0 12px 24px -14px rgba(22, 80, 142, .8); }
.wk-filter.is-active i { color: #fff; } .wk-filter.is-active span { color: #fff; background: rgba(255, 255, 255, .2); }
.wk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.wk-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 22px; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--sv-line); transition: transform .45s var(--sv-ease), box-shadow .45s, border-color .3s; }
.wk-card:hover { color: inherit; transform: translateY(-6px); border-color: rgba(30, 143, 208, .3); box-shadow: 0 34px 60px -40px rgba(11, 18, 32, .6); }
.wk-card[hidden] { display: none; }
.wk-card.is-in { animation: wkPop .55s var(--sv-ease) both; animation-delay: calc(var(--d, 0) * 60ms); }
@keyframes wkPop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.wk-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0B1322; }
.wk-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--sv-ease); }
.wk-card:hover .wk-card-media img { transform: scale(1.07); }
.wk-chip { position: absolute; left: .8rem; top: .8rem; padding: .28rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 800; color: #fff; background: rgba(12, 31, 58, .72); }
.wk-card-body { flex: 1; display: flex; flex-direction: column; gap: .45rem; padding: 1.2rem 1.3rem 1.4rem; }
.wk-card-body small { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #94A3B8; }
.wk-card-body strong { font-size: 1.1rem; line-height: 1.35; color: var(--sv-ink); }
.wk-card-text { font-size: .9rem; line-height: 1.6; color: var(--sv-muted); }
.wk-card-metric { margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--sv-line); font-size: .82rem; color: var(--sv-muted); }
.wk-card-metric b { font-family: var(--font-heading); font-size: 1.1rem; color: #1E75B0; }
.wk-note { display: flex; align-items: center; gap: .5rem; margin: 1.6rem 0 0; font-size: .84rem; color: var(--sv-muted); }
.wk-note i { color: #B45309; }

/* ---------- Empty state ---------- */
.wk-soon { max-width: 640px; margin: 0 auto; text-align: center; }
.wk-soon-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #1E75B0; background: rgba(30, 143, 208, .1); }
.wk-soon p { color: var(--sv-muted); }
.wk-soon-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.4rem; }

/* ---------- Case study: hero ---------- */
.wkd-hero { position: relative; isolation: isolate; overflow: hidden; padding: 9rem 0 5rem; color: #fff; background: #0F2440; }
.wkd-hero-bg { position: absolute; inset: 0; z-index: -1; }
.wkd-hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: wkdZoom 12s ease-out forwards; }
@keyframes wkdZoom { to { transform: scale(1); } }
.wkd-hero-bg span { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 31, 58, .95) 0%, rgba(14, 42, 78, .85) 45%, rgba(22, 80, 142, .45) 100%), linear-gradient(0deg, rgba(12, 31, 58, .7), transparent 50%); }
.wkd-hero h1 { max-width: 860px; margin: 1rem 0 1rem; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; letter-spacing: -.02em; color: #fff; }
.wkd-hero p { max-width: 680px; margin: 0; font-size: 1.1rem; line-height: 1.7; color: rgba(255, 255, 255, .82); }
.wkd-facts { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2.2rem 0 0; }
.wkd-facts div { padding: .8rem 1.1rem; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.wkd-facts dt { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.wkd-facts dd { display: flex; align-items: center; gap: .5rem; margin: .2rem 0 0; font-weight: 700; color: #fff; }
.wkd-facts dd img { height: 22px; width: auto; border-radius: 4px; background: #fff; padding: 2px; }
.wkd-facts a { color: #fff; text-decoration: underline; text-decoration-color: rgba(143, 215, 255, .6); text-underline-offset: 3px; }

/* Results at a glance: cards over the hero edge */
.wkd-metrics-wrap { position: relative; z-index: 2; }
.wkd-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: -2.6rem; }
.wkd-metric { padding: 1.3rem 1.4rem; border-radius: 20px; background: #fff; border: 1px solid var(--sv-line); box-shadow: 0 30px 60px -40px rgba(11, 18, 32, .5); }
.wkd-metric strong { display: block; font-family: var(--font-heading); font-size: 2rem; line-height: 1; color: #1E75B0; }
.wkd-metric span { display: block; margin-top: .4rem; font-size: .88rem; color: var(--sv-muted); }

/* Story with a sticky side nav */
.wkd-story { padding: 4.5rem 0; }
.wkd-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.wkd-nav { position: sticky; top: 120px; display: flex; flex-direction: column; gap: .3rem; }
.wkd-nav a:not(.btn) { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 12px; font-weight: 700; color: #64748B; text-decoration: none; transition: background .3s, color .3s; }
.wkd-nav a:not(.btn) span { font-family: var(--font-heading); font-size: .78rem; color: #94A3B8; }
.wkd-nav a:not(.btn):hover { color: var(--sv-ink); background: var(--sv-soft); }
.wkd-nav a.is-active { color: #1E75B0; background: rgba(30, 143, 208, .08); }
.wkd-nav a.is-active span { color: #1E75B0; }
.wkd-nav-cta { margin-top: 1.2rem; justify-content: center; }
.wkd-content { display: flex; flex-direction: column; gap: 1.2rem; }
.wkd-block { scroll-margin-top: 120px; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 24px; background: #fff; border: 1px solid var(--sv-line); }
.wkd-icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; color: #fff; background: linear-gradient(135deg, #1E8FD0, #16508E); }
.wkd-icon.is-orange { background: linear-gradient(135deg, #FDC943, #E57E27); }
.wkd-icon.is-green { background: linear-gradient(135deg, #9BC73B, #5C8A1E); }
.wkd-block h2 { margin: 1rem 0 .7rem; font-size: 1.5rem; color: var(--sv-ink); }
.wkd-text p { margin: 0 0 .8rem; font-size: 1.02rem; line-height: 1.8; color: var(--sv-muted); }
.wkd-results { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.wkd-results li { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; border-radius: 14px; font-weight: 600; color: var(--sv-ink); background: var(--sv-soft); }
.wkd-results i { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; color: #fff; background: linear-gradient(135deg, #9BC73B, #5C8A1E); }
.wkd-quote { position: relative; margin: 0; padding: 2rem 2.2rem; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #16508E, #0E2A4E); }
.wkd-quote > i { font-size: 1.6rem; color: #8FD7FF; }
.wkd-quote p { margin: .8rem 0; font-size: 1.15rem; line-height: 1.7; }
.wkd-quote cite { font-style: normal; font-weight: 700; color: rgba(255, 255, 255, .8); }
.wk-more { background: var(--sv-soft); padding: 4.5rem 0; }
.wk-more [data-slide] { height: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .wk-stage { height: 380px; margin-top: 1rem; }
    .wkf-slide { grid-template-columns: 1fr; }
    .wkf-media { min-height: 260px; }
    .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wkd-grid { grid-template-columns: 1fr; }
    .wkd-nav { position: static; flex-direction: row; flex-wrap: wrap; }
    .wkd-nav-cta { display: none; }
}
@media (max-width: 640px) {
    .wk-stage { display: none; }
    .wk-stats { gap: 1.6rem; }
    .wk-stats dt { font-size: 1.8rem; }
    .wk-featured, .wk-all, .wkd-story, .wk-more { padding: 3.2rem 0; }
    .wkf-media { min-height: 210px; }
    .wkf-metrics { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
    .wkf-metrics div { padding: .7rem; }
    .wkf-metrics dt { font-size: 1.15rem; }
    .wkf-body .btn { width: 100%; }
    .wk-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1rem 1.4rem; padding: 0 1rem; scrollbar-width: none; }
    .wk-filters::-webkit-scrollbar { display: none; }
    .wk-filter { flex-shrink: 0; }
    .wk-grid { grid-template-columns: 1fr; }
    .wkd-hero { padding: 7rem 0 4.5rem; }
    .wkd-metrics { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .wkd-metric { padding: 1rem; }
    .wkd-metric strong { font-size: 1.5rem; }
    .wkd-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .wk-col-track, .wkd-hero-bg img { animation: none; }
    .wkf-slide, .wkf-media img, .wkf-body > *, .wk-card { transition: none !important; }
    .wk-card.is-in { animation: none; }
    .wkf-dots button.is-active span { animation: none; transform: scaleX(1); }
}
