/* ─── /work — Selected creative direction ──────────────────────────────────
   Full-bleed infinite gallery + centered caption; detail slides in from right.
   Dark theme, exact site type (Erode 400 / JetBrains Mono / Inter Tight).
--------------------------------------------------------------------------- */

:root {
  --bg: #151515;
  --ink: #f0eae1;                       /* oatmeal */
  --ink-soft: rgba(240, 234, 225, 0.55);
  --hair: rgba(240, 234, 225, 0.14);
  --font-serif: "Erode", Georgia, serif;
  --font-sans: "Inter Tight", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Entrance is a GSAP fade-blur stagger (see revealLanding in work.js). Initial
   hidden states live here so there's no flash before it runs. NB: no transform
   on #work-root — that would make it the containing block for the fixed children
   and collapse them to 0 height. */
.wk-pill, .wk-home-hero > *, .wk-home-card, .wk-row { opacity: 0; }

/* ── Standard floating nav pill (same as about/posters/photography) ── */
.wk-pill {
  position: fixed;
  top: 24px; bottom: 24px; left: 24px;
  width: 3.5rem;
  z-index: 50; /* persistent — stays above the panning gallery/detail */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-radius: 9999px;
  background: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(240, 234, 225, 0.12);
}
.wk-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}
.wk-pill-btn:hover { background: rgba(240, 234, 225, 0.1); }
.wk-pill-logo {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  max-height: 60vh;
  text-overflow: ellipsis;
}
/* Scrambling characters glow brighter, then settle to the soft label colour */
.wk-pill-dud { color: var(--ink); }
@media (max-width: 640px) {
  .wk-pill { top: 16px; bottom: 16px; left: 16px; }
}

/* ── Centered caption ── */
.wk-caption {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 45; /* above the panning content; hands off to the detail hero title */
  width: min(90vw, 40rem);
  text-align: center;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.5s ease, filter 0.5s ease; /* same fade-blur as /about text */
}
.wk-caption.is-in { opacity: 1; filter: blur(0px); }
.wk-caption-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.9rem;
  opacity: 0.75;
}
.wk-caption-line {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* ── Infinite, staggered, parallax gallery (Codrops technique) ── */
.wk-viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  z-index: 5;
  will-change: transform, opacity, filter; /* pans/blurs left when a project opens */
}
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12vh;
  width: 100%;
  padding-top: 14vh;
}
.gallery__slide {
  cursor: pointer;
  will-change: transform;      /* gsap animates y/yPercent here (loop + parallax) */
}
.gallery__img-wrapper {
  position: relative;
  margin: 0;
  width: var(--img-w, 300px);
  aspect-ratio: 0.8;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  transform: translateX(var(--stagger, 0)); /* horizontal scatter — separate from gsap's y */
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery__slide:hover .gallery__img-wrapper { transform: translateX(var(--stagger, 0)) scale(1.03); }
.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.15);
  pointer-events: none;
}

/* ── Home: image-card + hero line, then a scalable stack of project rows ── */
.wk-home {
  position: absolute;
  inset: 0;
  overflow-y: auto;                 /* the list scrolls as projects are added */
  padding: clamp(3.5rem, 9vh, 6.5rem) clamp(1.5rem, 5vw, 4rem) 4rem;
  padding-left: max(clamp(1.5rem, 5vw, 4rem), 6rem); /* clear the fixed nav pill */
}
.wk-home-inner { max-width: 64rem; margin: 0 auto; }

/* Top: image card (left) beside the hero line (right). The hero text sets the
   height (measured in JS → syncCardHeight); the 3:4 card matches it. */
.wk-home-top {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.wk-home-hero { flex: 0 1 30rem; min-width: 0; max-width: 30rem; }
.wk-home-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.3rem;
}
.wk-home-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wk-work-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.9rem;
  padding: 0.72rem 1.25rem;
  border: 1px solid var(--hair);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.wk-work-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wk-btn-chev { flex: 0 0 auto; }
.wk-home-card {
  flex: 0 0 auto;
  aspect-ratio: 3 / 4;              /* portrait; width derived from JS-set height */
  width: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--hair);
}
.wk-home-card img,
.wk-home-card video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* The stack of project rows */
.wk-list-label { display: none; } /* mobile-only eyebrow above the stack */
.wk-list { display: flex; flex-direction: column; }
.wk-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding: 1.15rem 0.5rem;
  border-top: 1px solid var(--hair);
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: background 0.25s ease, padding-left 0.25s ease;
}
.wk-list .wk-row:first-child { border-top: 0; } /* only internal dividers show */
.wk-row:hover { background: rgba(240, 234, 225, 0.03); padding-left: 0.85rem; }
.wk-row:hover .wk-row-chev { transform: translateX(3px); color: var(--ink); }

.wk-row-icon {
  flex: 0 0 auto;
  width: 72px; height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hair);
}
.wk-row-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk-row-icon.is-mono {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #fff;
  border: none;
}

.wk-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.22rem; }
.wk-row-title { font-family: var(--font-serif); font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink); }
.wk-row-desc {
  font-size: 0.92rem; line-height: 1.35; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.wk-row-tags { flex: 0 0 auto; display: flex; gap: 0.5rem; }
.wk-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--hair);
  border-radius: 9999px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.wk-row-chev { flex: 0 0 auto; color: var(--ink-soft); transition: transform 0.25s ease, color 0.25s ease; }

.wk-row.is-soon { cursor: default; opacity: 0.5; }
.wk-row.is-soon:hover { background: none; padding-left: 0.5rem; }
.wk-row-soon {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Desktop shows list view only; mobile forces the card grid (see media query) */

/* ── Detail (slides in from the right) ── */
.wk-detail {
  position: fixed;
  inset: 0;
  z-index: 10; /* above the gallery, below the persistent pill (50) + caption (45) */
  background: var(--bg);
  overflow: hidden;
  will-change: transform;
}
/* Embedded micro-app fills the sliding panel; it scrolls inside its own iframe */
.wk-embed { display: block; width: 100%; height: 100%; border: 0; background: var(--bg); }

.wk-detail-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  /* Content column shared by .wk-hero / .wk-gallery / .wk-lf-layout — the
     shared footer reads these so it lines up with whatever is above it. */
  --footer-col: 1257px;
  --footer-pad: 24px;
}
.wk-hero {
  display: flex;
  align-items: flex-end;                 /* meta bottom-aligns with the left paragraph */
  justify-content: space-between;
  gap: 2.5rem;
  max-width: 1257px;
  margin-inline: auto;
  padding: clamp(3.5rem, 6vw, 5.5rem) 24px clamp(2.5rem, 5vw, 4rem);
}
.wk-hero-main { max-width: 40rem; }
.wk-hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.wk-hero-desc {
  max-width: 30rem;                      /* tightened so the last line isn't an orphan */
  margin-top: 1.1rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.6;
  color: rgba(240, 234, 225, 0.82);
}
.wk-hero-tag {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* Right-hand metadata grid */
.wk-hero-meta {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 1.5rem 3rem;
}
.wk-meta-item { display: flex; flex-direction: column; gap: 0.35rem; }
.wk-meta-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;                    /* same as the Brand · Art Direction tagline */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.wk-meta-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;                     /* larger content under each label */
  line-height: 1.1;
  color: var(--ink);
}
.wk-gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1257px;        /* 1209 content + 24px padding each side (matches the artboard) */
  margin-inline: auto;
  padding: 0 24px 4rem;
}
/* Logofolio: sticky left nav (jump-links) + stacked sections; each mark's
   content sits above its big black tile. */
.wk-lf-layout {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: clamp(4rem, 10vw, 9rem);          /* doubled — nav ↔ tiles breathing room */
  max-width: 1257px;
  margin-inline: auto;
  padding: clamp(5rem, 9vw, 8rem) 24px 3rem;
}
.wk-lf-nav {
  position: sticky;
  top: clamp(5rem, 9vw, 8rem);
  align-self: start;
  max-height: calc(100vh - 10rem);
  overflow-y: auto;
}
.wk-lf-nav-title {          /* same as .wk-hero-title on other project pages */
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1;
  letter-spacing: -0.02em; color: var(--ink);
}
.wk-lf-nav-desc {           /* same as .wk-hero-desc */
  margin-top: 1.1rem; max-width: 30rem;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem); line-height: 1.6;
  color: rgba(240, 234, 225, 0.82);
}
.wk-lf-nav-list { margin-top: 2.2rem; }
.wk-lf-nav-list ul { list-style: none; display: flex; flex-direction: column; }
.wk-lf-nav-list a {
  display: flex; align-items: baseline; gap: 0.7rem;
  padding: 0.42rem 0;
  font-size: 0.92rem; color: var(--ink-soft);
  transition: color 0.2s ease;
}
.wk-lf-nav-list a:hover,
.wk-lf-nav-list a.is-active { color: var(--ink); }
.wk-lf-nav-idx { font-family: var(--font-mono); font-size: 0.64rem; opacity: 0.65; transition: opacity 0.2s ease; }
.wk-lf-nav-list a.is-active .wk-lf-nav-idx { opacity: 1; }

.wk-lf-main { display: flex; flex-direction: column; gap: clamp(4rem, 7vw, 6rem); min-width: 0; }
.wk-lf-item { scroll-margin-top: clamp(4rem, 8vw, 7rem); }
.wk-lf-text { margin-bottom: 1.5rem; }  /* tags eyebrow + description; the logo tile carries the name */
.wk-lf-tags {                 /* eyebrow above the description */
  margin-bottom: 0.7rem;
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
}
.wk-lf-desc {
  max-width: 42rem;
  font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.5; color: var(--ink);
}
.wk-lf-card {
  aspect-ratio: 3 / 2;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  container-type: size;
}
.wk-lf-logo { height: 7.7cqh; width: auto; max-width: 31cqw; display: block; }
#lf-dsco .wk-lf-logo { height: 5.8cqh; max-width: 23cqw; } /* wide mark — trim it down */

.wk-gallery-row { display: flex; gap: 24px; align-items: flex-start; }
.wk-gallery-cell { flex: 1 1 0; min-width: 0; }
.wk-gallery-media { display: block; width: 100%; height: auto; }
/* Fixed-aspect containers for 1/2/3-up (sharp, no rounding). Exports match the
   container aspect so nothing crops — only mixed-aspect media like the Hasura
   motion video is cover-fit. 4-up stays natural (its items are same-aspect). */
.wk-gallery.wk-grid .wk-gallery-row[data-cols="1"] .wk-gallery-cell,
.wk-gallery.wk-grid .wk-gallery-row[data-cols="2"] .wk-gallery-cell,
.wk-gallery.wk-grid .wk-gallery-row[data-cols="3"] .wk-gallery-cell { overflow: hidden; }
.wk-gallery.wk-grid .wk-gallery-row[data-cols="1"] .wk-gallery-cell { aspect-ratio: 2418 / 1312; }
.wk-gallery.wk-grid .wk-gallery-row[data-cols="2"] .wk-gallery-cell { aspect-ratio: 1184 / 1296; }
.wk-gallery.wk-grid .wk-gallery-row[data-cols="3"] .wk-gallery-cell { aspect-ratio: 808 / 975; }
.wk-gallery.wk-grid .wk-gallery-row[data-cols="1"] .wk-gallery-media,
.wk-gallery.wk-grid .wk-gallery-row[data-cols="2"] .wk-gallery-media,
.wk-gallery.wk-grid .wk-gallery-row[data-cols="3"] .wk-gallery-media { height: 100%; object-fit: cover; }
.wk-gallery-cell.is-invert { background: transparent; overflow: visible; }
.wk-gallery-cell.is-invert .wk-gallery-media { filter: invert(1); } /* black wordmark -> white on dark */
/* Contain panel (logos/wordmarks on a light ground) */
.wk-gallery-cell.is-contain {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 24 / 7; padding: 3%;
}
.wk-gallery-cell.is-contain .wk-gallery-media { width: auto; max-width: 32%; height: auto; }

/* Phone-clip tile — app video centered on a dark ground (Grain). */
.wk-gallery.wk-grid .wk-gallery-cell.is-phone {
  background: #151316;
  display: flex; align-items: center; justify-content: center;
  container-type: size;
}
.wk-gallery.wk-grid .wk-gallery-cell.is-phone .wk-gallery-media {
  height: 84cqh; width: auto; object-fit: contain;
}

/* Flick-tile icons on a light panel */
.wk-icons-panel {
  flex: 0 0 auto;                    /* left-aligned, sized to its tiles */
  background: #f4f2ec;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.1rem, 2.4vw, 1.8rem) clamp(1.4rem, 3vw, 2.4rem);
}
.wk-icons {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(0.7rem, 2vw, 1.5rem);
  perspective: 900px;
}
.wk-icon-tile {
  background: none; border: none; padding: 0; margin: 0;
  width: clamp(42px, 5.5vw, 72px); aspect-ratio: 1;
  cursor: grab; touch-action: none;
}
.wk-icon-tile:active { cursor: grabbing; }
.wk-icon-svg {
  width: 100%; height: 100%; display: block;
  will-change: transform;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.18));
}

/* Footer moved to css/footer.css — shared with /play. Surfaces below only
   declare their content column via --footer-col / --footer-pad. */

/* Acknowledgements drawer (ported from the play page so the /work footer link
   works; --color-oatmeal -> --ink, neutral back-button ground). */
.ack-overlay { position: fixed; inset: 0; z-index: 2000; background: #000; }
.ack-back-btn {
  position: absolute; top: 24px; left: 24px; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: rgba(18, 18, 18, 0.35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(240, 234, 225, 0.08);
  color: rgba(240, 234, 225, 0.7);
  transition: background 0.2s ease;
}
.ack-back-btn:hover { background: rgba(240, 234, 225, 0.1); }
.ack-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ack-text {
  position: absolute; top: 18%; left: 50%; transform: translateX(-50%);
  text-align: center; white-space: nowrap; z-index: 1; pointer-events: none;
}
.ack-text p {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 1.5vw, 1.25rem);
  color: var(--ink); font-weight: 300;
  letter-spacing: 0.01em; line-height: 1.6; text-align: center;
}
.ack-letter { display: inline-block; opacity: 0; }
@media (max-width: 768px) { .ack-text p { font-size: 1.25rem; } }

/* ── Mobile: clean single-column stack (eyebrow · title · image · hr) ── */
@media (max-width: 768px) {
  .wk-viewport { overflow-x: hidden; overflow-y: auto; touch-action: auto; }
  .wk-caption { display: none; }   /* stack carries per-item titles */
  .gallery { display: none; }      /* carousel is desktop-only */

  /* Home on mobile: hero card stacks above the hero line; the list is always
     the card grid (no toggle, no stack view). */
  .wk-home { padding: clamp(3rem, 9vh, 5rem) 1.25rem 3rem 6.75rem; }
  .wk-home-top { flex-direction: column; align-items: flex-start; gap: 1.5rem; margin-bottom: 2.75rem; }
  /* Mobile-only eyebrow above the card stack */
  .wk-list-label {
    display: block;
    margin-bottom: 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink-soft);
  }
  /* Footer band spans the full viewport width (breaks out of the padded
     column); the text inside drops back to a normal phone gutter rather than
     the 6.75rem nav-rail inset, since the pill tucks away down here anyway. */
  .wk-home .site-footer { margin-left: -6.75rem; margin-right: -1.25rem; }
  .wk-home .site-footer-inner { --footer-pad: 1.25rem; }
  /* Detail scroll is already full-bleed — only the column vars need relaxing,
     so both surfaces end up with the same full-width band + gutter text. */
  .wk-detail-scroll { --footer-col: none; --footer-pad: 16px; }
  /* Column flex: reset the 24rem basis (it'd become HEIGHT here) so the hero is
     content-tall — otherwise there's a big empty band below the button. */
  .wk-home-hero { flex: 0 0 auto; align-self: stretch; }
  /* Card sizes itself here (not slaved to the hero height like desktop): caps at
     ~288px wide, shrinks to fit narrow phones; 3:4 sets the height. */
  .wk-home-card { width: min(100%, 18rem); height: auto; aspect-ratio: 3 / 4; }
  .wk-row-icon { width: 60px; height: 60px; border-radius: 10px; }

  .wk-list {                                        /* mobile: always the card grid */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1rem;
  }
  .wk-list .wk-row {
    flex-direction: column; align-items: flex-start; gap: 1rem;
    padding: 1.3rem; border: 1px solid var(--hair); border-radius: 14px;
  }
  .wk-list .wk-row:first-child { border-top: 1px solid var(--hair); }
  .wk-list .wk-row:hover { padding-left: 1.3rem; }
  .wk-list .wk-row-main { width: 100%; }
  .wk-list .wk-row-desc { white-space: normal; overflow: visible; }
  .wk-list .wk-row-tags { display: flex; flex-wrap: wrap; margin-top: auto; }
  .wk-list .wk-row-chev, .wk-list .wk-row-soon { display: none; }

  .wk-mstack {
    display: flex;
    flex-direction: column;
    padding: 5vh 1.25rem 13vh 6.75rem; /* landing keeps the full pill — clear it (left) */
  }

  /* PROJECT DETAIL only: reduce the nav to a sticky top-left back arrow, and let
     the hero start high (not vertically centered) so imagery shows first fold. */
  #work-root.wk-in-detail .wk-pill {
    top: 16px; left: 16px; bottom: auto;
    width: auto; padding: 0;
    background: transparent; border: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    flex-direction: row;
  }
  #work-root.wk-in-detail .wk-pill-logo,
  #work-root.wk-in-detail .wk-pill a.wk-pill-btn { display: none; }
  #work-root.wk-in-detail .wk-pill-btn {
    background: rgba(18, 18, 18, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(240, 234, 225, 0.12);
  }
  .wk-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 1.25rem 2rem;
    gap: 2rem;
  }
  .wk-hero-title { font-size: clamp(2rem, 9vw, 2.75rem); }
  .wk-hero-meta { gap: 1.25rem 2.5rem; }
  .wk-mstack-item { cursor: pointer; padding: 2.5rem 0; }
  .wk-mstack-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 0.7rem;
  }
  .wk-mstack-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
  }
  .wk-mstack-img { border-radius: 8px; overflow: hidden; background: #111; aspect-ratio: 4 / 5; }
  .wk-mstack-media { display: block; width: 100%; height: 100%; object-fit: cover; }
  .wk-mstack-hr { border: none; border-top: 1px solid var(--hair); margin: 0; }

  /* Detail: the scatter collapses to a single full-width column */
  .wk-gallery { padding: 0 16px 3rem; gap: 2.5rem; }
  /* Logofolio on mobile: single column; nav becomes a static header, jump-list
     hidden; sections stack. */
  .wk-lf-layout { grid-template-columns: 1fr; gap: 0; padding: clamp(4rem, 12vh, 6rem) 16px 2rem; }
  .wk-lf-nav { position: static; max-height: none; overflow: visible; margin-bottom: 2.5rem; }
  .wk-lf-nav-list { display: none; }
  .wk-lf-main { gap: 3.5rem; }
  .wk-lf-card { aspect-ratio: 4 / 3; }
  .wk-lf-logo { height: 9cqh; max-width: 34cqw; }
  .wk-gallery-row { flex-direction: column; gap: 2.5rem; justify-content: flex-start !important; }
  .wk-gallery-cell { flex: none !important; width: 100% !important; margin-top: 0 !important; }
  /* Drop the fixed 1/2/3-up aspects on mobile — media shows at natural height */
  .wk-gallery.wk-grid .wk-gallery-cell { aspect-ratio: auto !important; overflow: visible; }
  .wk-gallery.wk-grid .wk-gallery-media { height: auto !important; object-fit: initial; }
  /* Phone-clip tiles (Grain) must keep a definite height. The blanket
     `aspect-ratio: auto` above removes it, and because these cells are
     `container-type: size` the contents can't contribute height either — the
     tile collapsed to 0 and took `height: 84cqh` on the clip down with it, so
     every video vanished on mobile. Restore the tile proportion here. */
  .wk-gallery.wk-grid .wk-gallery-cell.is-phone {
    aspect-ratio: 1184 / 1296 !important;
    overflow: hidden;
  }
  .wk-gallery.wk-grid .wk-gallery-cell.is-phone .wk-gallery-media {
    height: 84cqh !important;          /* beats the blanket height:auto above */
    width: auto; object-fit: contain;
  }
  .wk-gallery-cell.is-invert { width: 45% !important; }
  .wk-gallery-cell.is-contain { aspect-ratio: 16 / 6; }
  .wk-gallery-cell.is-contain .wk-gallery-media { max-width: 52%; }
  .wk-icons-panel { align-self: flex-start; }
}
