/* =====================================================================
   WORK INDEX PAGE
   ===================================================================== */
.wk-hero { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin: 6px 0 36px; }
.wk-title { font-size: clamp(36px, 5.2vw, 84px); letter-spacing: -.06em; line-height: 1; margin: 12px 0 14px; }
html[dir=rtl] .wk-title { letter-spacing: 0; line-height: 1.25; }
.wk-count { font-size: .28em; color: var(--lime); letter-spacing: .04em; vertical-align: top; margin-inline-start: .3em; font-weight: 700; position: relative; top: .5em; }
.wk-intro { max-width: 52ch; margin: 0; }
.wk-view { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff05; }
.wk-view-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.wk-view-btn .icon { width: 16px; height: 16px; }
.wk-view-btn[aria-pressed=true] { background: var(--lime); color: #10110f; }

/* Spotlight */
.wk-spot { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-bottom: 56px; padding: clamp(14px, 1.6vw, 22px); border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(150deg, #1a1e16, #121311 70%); }
.wk-spot-media { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: var(--ar, 4/5); max-height: 78vh; background: #0d0e0c; cursor: zoom-in; }
.wk-spot-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.16,1,.3,1); }
.wk-spot-info { display: grid; gap: 12px; align-content: center; padding-inline-end: clamp(0px, 2vw, 24px); }
.wk-spot-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.wk-spot-tag .icon { width: 16px; height: 16px; }
.wk-spot-info h2 { font-size: clamp(30px, 3.4vw, 54px); letter-spacing: -.05em; line-height: 1; margin: 4px 0; }
html[dir=rtl] .wk-spot-info h2 { letter-spacing: 0; line-height: 1.3; }
.wk-spot-info p { color: var(--muted); margin: 0; max-width: 44ch; }
.wk-spot-meta { font-size: 13px; color: #c9cdbf; margin-bottom: 8px; }
.wk-spot-info .button sup { font-size: 10px; color: var(--lime); }
.wk-expand { position: absolute; top: 14px; inset-inline-end: 14px; width: 46px; height: 46px; border-radius: 50%; background: #10110fcc; color: var(--lime); display: grid; place-items: center; backdrop-filter: blur(6px); transition: transform .3s cubic-bezier(.16,1,.3,1); }
@media (hover: hover) { .wk-spot-media:hover img { transform: scale(1.03); } .wk-spot-media:hover .wk-expand { transform: scale(1.1); } }

/* Filters with sliding ink */
.wk-filters { position: sticky; top: 84px; z-index: 6; display: flex; gap: 4px; width: max-content; max-width: 100%; padding: 5px; margin-bottom: 36px; border: 1px solid var(--line); border-radius: 16px; background: #141513ee; backdrop-filter: blur(10px); isolation: isolate; overflow-x: auto; scrollbar-width: none; }
.wk-filters::-webkit-scrollbar { display: none; }
.wk-filters a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .25s; }
.wk-filters a sup { font-size: 10px; opacity: .7; }
.wk-filters a.active { color: #10110f; }
.wk-filter-ink { position: absolute; z-index: 0; left: 0; top: 5px; height: calc(100% - 10px); border-radius: 11px; background: var(--lime); opacity: 0; transition: transform .45s cubic-bezier(.16,1,.3,1), width .45s cubic-bezier(.16,1,.3,1), opacity .2s; }
@media (max-width: 860px) { .wk-filters { top: 74px; } }

/* Grid: editorial masonry with curtain reveal */
.wk-grid { columns: 3 300px; column-gap: 32px; }
.wk-item { break-inside: avoid; margin-bottom: 44px; }
.wk-media { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: var(--ar, 4/5); cursor: zoom-in; background: radial-gradient(circle at 30% 20%, hsl(var(--h, 80) 55% 28%), transparent 60%), #121311; }
.wk-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.16,1,.3,1); }
.wk-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.wk-ph svg { width: 36%; height: auto; color: #c8ff5530; }
.wk-hover { position: absolute; bottom: 14px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background: #10110fd9; color: var(--text); font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.wk-hover .icon { width: 14px; height: 14px; color: var(--lime); }
@media (hover: hover) { .wk-media:hover img { transform: scale(1.045); } .wk-media:hover .wk-hover, .wk-media:focus-visible .wk-hover { opacity: 1; transform: none; } }
@media (hover: none) { .wk-hover { opacity: 1; transform: none; } }
.wk-meta { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; padding: 16px 4px 0; }
.wk-num { font-size: 12px; font-weight: 800; color: var(--lime); font-variant-numeric: tabular-nums; }
.wk-meta h3 { margin: 0 0 3px; font-size: 18px; letter-spacing: -.02em; line-height: 1.2; }
.wk-meta h3 a:hover { color: var(--lime); }
.wk-cat, .wk-year { font-size: 12px; color: var(--muted); }
.js-motion .wk-item[data-reveal] { opacity: 1; transform: none; }
.js-motion .wk-item[data-reveal] .wk-media { clip-path: inset(100% 0 0 0 round 18px); transition: clip-path 1.1s cubic-bezier(.76,0,.24,1); transition-delay: calc(var(--i, 0) * 70ms); }
.js-motion .wk-item[data-reveal] .wk-media img { transform: scale(1.18); transition: transform 1.4s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 70ms); }
.js-motion .wk-item[data-reveal].in .wk-media { clip-path: inset(0 0 0 0 round 18px); }
.js-motion .wk-item[data-reveal].in .wk-media img { transform: none; }
.js-motion .wk-item[data-reveal] .wk-meta { opacity: 0; transform: translateY(10px); transition: opacity .6s .35s, transform .6s .35s cubic-bezier(.16,1,.3,1); }
.js-motion .wk-item[data-reveal].in .wk-meta { opacity: 1; transform: none; }
@media (max-width: 760px) { .wk-grid { columns: 2 150px; column-gap: 16px; } .wk-item { margin-bottom: 28px; } .wk-meta { grid-template-columns: 1fr; gap: 2px; } .wk-meta .wk-num, .wk-year { display: none; } .wk-meta h3 { font-size: 15px; } }

/* List / index view */
.wk-list { border-top: 1px solid var(--line); isolation: isolate; }
.wk-list-head, .wk-row { display: grid; grid-template-columns: 70px minmax(0, 2.2fr) minmax(0, 1fr) 80px 40px; gap: 16px; align-items: center; }
.wk-list-head { padding: 14px 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.wk-row { position: relative; padding: 26px 8px; border-bottom: 1px solid var(--line); transition: padding .4s cubic-bezier(.16,1,.3,1), color .3s; overflow: hidden; }
.wk-row::before { content: ""; position: absolute; inset: 0; background: var(--lime); transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.16,1,.3,1); z-index: -1; }
.wk-row-title { display: flex; align-items: center; gap: 14px; font-size: clamp(20px, 2.4vw, 36px); font-weight: 700; letter-spacing: -.03em; }
.wk-row-thumb { display: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.wk-row-cat, .wk-row-year { font-size: 13px; color: var(--muted); transition: color .3s; }
.wk-row-go { color: var(--lime); transition: transform .4s cubic-bezier(.16,1,.3,1); }
@media (hover: hover) {
  .wk-row:hover { color: #10110f; padding-inline-start: 22px; }
  .wk-row:hover::before { transform: scaleY(1); }
  .wk-row:hover .wk-row-cat, .wk-row:hover .wk-row-year, .wk-row:hover .wk-num, .wk-row:hover .wk-row-go { color: #10110f; }
  .wk-row:hover .wk-row-go { transform: translate(4px, -4px); }
}
.wk-preview { position: fixed; left: 0; top: 0; z-index: 50; width: 280px; aspect-ratio: 4/5; margin: -170px 0 0 30px; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; scale: .85; transition: opacity .25s, scale .35s cubic-bezier(.16,1,.3,1); box-shadow: 0 30px 60px #000a; }
html[dir=rtl] .wk-preview { margin: -170px 0 0 -310px; }
.wk-preview.on { opacity: 1; scale: 1; }
.wk-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 760px) {
  .wk-list-head { display: none; }
  .wk-row { grid-template-columns: minmax(0, 1fr) auto; padding: 16px 4px; }
  .wk-row .wk-num, .wk-row-year { display: none; }
  .wk-row-cat { grid-column: 1; grid-row: 2; padding-inline-start: 70px; margin-top: -10px; }
  .wk-row-go { grid-row: 1 / span 2; grid-column: 2; }
  .wk-row-thumb { display: block; }
  .wk-row-title { font-size: 18px; }
  .wk-preview { display: none; }
}
.wk-empty { padding: 40px 0; text-align: center; }

/* CTA */
.wk-cta { margin: clamp(80px, 10vw, 140px) 0 20px; padding: clamp(40px, 6vw, 80px); border-radius: 32px; text-align: center; background: radial-gradient(ellipse at 50% 0, #2a3a1c, transparent 70%), #141513; border: 1px solid var(--line); }
.wk-cta .eyebrow { justify-content: center; }
.wk-cta h2 { font-size: clamp(30px, 4.4vw, 68px); letter-spacing: -.05em; line-height: 1.05; margin: 12px 0 30px; }
html[dir=rtl] .wk-cta h2 { letter-spacing: 0; line-height: 1.3; }
.wk-cta .row { justify-content: center; }
@media (max-width: 860px) { .wk-spot { grid-template-columns: 1fr; } .wk-spot-media { max-height: 70vh; } }

/* Case study: images open in the lightbox */
.case-media figure[data-lb-index] { cursor: zoom-in; position: relative; }
.case-media figure[data-lb-index]:focus-visible { box-shadow: var(--focus); }

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
html.lb-open, html.lb-open body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 400; display: grid; grid-template-rows: auto 1fr auto; background: #0a0b09f2; backdrop-filter: blur(14px); opacity: 0; transition: opacity .2s ease; }
.lb.in { opacity: 1; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px clamp(14px, 3vw, 28px); }
.lb-info { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.lb-title { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.lb-actions { display: flex; gap: 6px; }
.lb-btn { display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 12px; justify-content: center; border-radius: 12px; border: 1px solid #ffffff1a; background: #ffffff0a; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s; }
.lb-btn:hover { background: #ffffff16; border-color: #ffffff30; }
.lb-btn svg { width: 18px; height: 18px; }
.lb-view { color: #10110f; background: var(--lime); border-color: var(--lime); }
.lb-view:hover { background: #d6ff7e; }
.lb-stage { position: relative; display: grid; place-items: center; overflow: hidden; padding: 0 clamp(56px, 7vw, 96px); min-height: 0; outline: none; }
.lb-media { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px #000; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
video.lb-media { cursor: default; width: min(100%, 1100px); }
.lb.slide .lb-media { animation: lb-in .35s cubic-bezier(.16,1,.3,1); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
.lb.is-zoomed .lb-stage { overflow: auto; place-items: start center; padding: 0; }
.lb.is-zoomed .lb-media { max-width: none; max-height: none; cursor: zoom-out; border-radius: 0; }
.lb-nav { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid #ffffff22; background: #10110fcc; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .2s, opacity .2s; }
.lb-nav svg { width: 22px; height: 22px; }
.lb-nav:hover:not(:disabled) { background: var(--lime); color: #10110f; }
.lb-nav:disabled { opacity: .25; cursor: default; }
.lb-prev { inset-inline-start: clamp(8px, 2vw, 24px); }
.lb-next { inset-inline-end: clamp(8px, 2vw, 24px); }
.lb.is-zoomed .lb-nav { display: none; }
.lb-thumbs { display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 12px clamp(14px, 3vw, 28px) calc(14px + env(safe-area-inset-bottom)); scrollbar-width: none; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb { flex: 0 0 auto; width: 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #1a1c18; cursor: pointer; opacity: .5; transition: opacity .2s, border-color .2s, transform .2s; }
.lb-thumb img, .lb-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb:hover { opacity: .85; }
.lb-thumb.active { opacity: 1; border-color: var(--lime); transform: translateY(-2px); }
@media (max-width: 700px) { .lb-stage { padding: 0 8px; } .lb-nav { width: 44px; height: 44px; margin-top: -22px; background: #10110f99; } .lb-view span { display: none; } .lb-thumb { width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .lb, .lb-media { transition: none; animation: none !important; } }

/* Fit fix: a flex stage gives the media a definite box so max-height:100% resolves */
.lb-stage { display: flex; align-items: center; justify-content: center; }
.lb-media { max-width: 100%; max-height: 100%; min-height: 0; flex: 0 1 auto; }
.lb.is-zoomed .lb-stage { display: block; text-align: center; }

/* Toolbar: filters (start) + grid/list switch (end), sticky together under the featured project */
.wk-toolbar { position: sticky; top: 84px; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 36px; }
.wk-toolbar .wk-filters { position: relative; top: auto; margin-bottom: 0; flex: 0 1 auto; min-width: 0; }
.wk-toolbar .wk-view { flex-shrink: 0; background: #141513ee; backdrop-filter: blur(10px); }
@media (max-width: 860px) { .wk-toolbar { top: 74px; } .wk-view-btn span { display: none; } .wk-view-btn { padding: 0 11px; } }
