/* ------------------------------------------------------------------
   BisonTongue — Work explorations (2026-11-02)
   Ten takes on a Moment-style work page ("simple, and just our work").
   Inspiration: moment.so/explore (masonry, no captions) and 21st.dev —
   Masonry Lightbox, Grayscale Mosaic Gallery, Condition Grid, Gallery Grid
   with Captions, Portfolio Gallery (marquee), 3D Parallax Unfurling
   Gallery — morphed into ours. Tiles are the six real project shots plus
   detail crops of them, standing in until new shots arrive.
   Scoped under .wk--N; shared tile first.
   ------------------------------------------------------------------ */
.wk{ color:var(--forest); font-family:var(--grot); }
.wk-head{ padding:clamp(64px, 8vw, 120px) var(--gutter) clamp(32px, 4vw, 56px); }
.wk-head h1{ margin:14px 0 0; font-weight:500; font-size:var(--fs-d3); line-height:1.02; letter-spacing:var(--tr-d); max-width:22ch; text-wrap:balance; }
.wk-head p{ margin:16px 0 0; max-width:52ch; font-size:17px; line-height:1.55; color:var(--forest-mid); }

/* a tile: a real shot, or a crop of one (--s scale, --ox/--oy focus) */
.tile{ position:relative; display:block; margin:0; overflow:hidden; border-radius:10px; corner-shape:superellipse(1.25);
  background:#e3ebe1; box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--forest) 8%, transparent); }
.tile img{ display:block; width:100%; height:100%; object-fit:cover; object-position:var(--ox, 50%) var(--oy, 50%);
  transform:scale(var(--s, 1)); transform-origin:var(--ox, 50%) var(--oy, 50%); transition:transform .9s cubic-bezier(.2,.7,.1,1), filter .5s ease; }
.tile figcaption{ font:500 10.5px/1.4 var(--mono); letter-spacing:.12em; text-transform:uppercase; color:var(--sage-ink); }

/* ============ 01 · Masonry (Moment's explore) ============ */
.wk--1 .grid{ columns:4 260px; column-gap:12px; padding:0 var(--gutter) 120px; }
.wk--1 .tile{ break-inside:avoid; margin-bottom:12px; }
.wk--1 .tile:hover img{ transform:scale(calc(var(--s, 1) * 1.03)); }

/* ============ 02 · Masonry + lightbox ============ */
.wk--2 .grid{ columns:3 300px; column-gap:16px; padding:0 var(--gutter) 120px; }
.wk--2 .tile{ break-inside:avoid; margin-bottom:16px; cursor:zoom-in; }
.wk--2 .tile::after{ content:"+"; position:absolute; right:10px; top:10px; width:28px; height:28px; display:grid; place-items:center; border-radius:50%;
  background:var(--ground); color:var(--forest); font:400 18px/1 var(--grot); opacity:0; transform:scale(.8); transition:opacity .25s ease, transform .25s ease; }
.wk--2 .tile:hover::after{ opacity:1; transform:none; }
.wk--2 dialog{ padding:0; border:0; max-width:min(1200px, 92vw); max-height:88vh; background:transparent; overflow:visible; }
.wk--2 dialog::backdrop{ background:color-mix(in srgb, var(--forest) 86%, transparent); backdrop-filter:blur(4px); }
.wk--2 dialog img{ display:block; max-width:100%; max-height:80vh; border-radius:12px; }
.wk--2 dialog p{ margin:12px 0 0; display:flex; justify-content:space-between; font:500 10.5px/1 var(--mono); letter-spacing:.12em; text-transform:uppercase; color:rgba(255,253,250,.75); }
.wk--2 dialog[open]{ animation:wk-pop .34s cubic-bezier(.16,1,.3,1); }
@keyframes wk-pop{ from{ opacity:0; transform:scale(.96); } }

/* ============ 03 · Duotone → colour on hover (Grayscale Mosaic) ============ */
.wk--3 .grid{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); grid-auto-rows:220px; gap:8px; padding:0 var(--gutter) 120px; }
.wk--3 .tile{ border-radius:6px; }
.wk--3 .tile:nth-child(5n+1){ grid-row:span 2; }
.wk--3 .tile img{ filter:grayscale(1) sepia(.35) hue-rotate(55deg) saturate(.9) contrast(1.05) brightness(.95); }
.wk--3 .tile:hover img{ filter:none; transform:scale(calc(var(--s, 1) * 1.02)); }
.wk--3 .tile figcaption{ position:absolute; left:10px; bottom:10px; padding:5px 7px; border-radius:4px; background:var(--ground); color:var(--forest);
  opacity:0; transform:translateY(4px); transition:opacity .3s ease, transform .3s ease; }
.wk--3 .tile:hover figcaption{ opacity:1; transform:none; }

/* ============ 04 · Alternating spans, title badges (Condition Grid) ============ */
.wk--4 .grid{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; padding:0 var(--gutter) 120px; }
.wk--4 .tile{ aspect-ratio:4 / 3; }
.wk--4 .tile:nth-child(4n+1), .wk--4 .tile:nth-child(4n+4){ grid-column:span 2; aspect-ratio:auto; }
.wk--4 .tile img{ position:absolute; inset:0; }   /* the row's height comes from the 4:3 tiles; wide ones fill it */
.wk--4 .tile figcaption{ position:absolute; left:14px; top:14px; display:flex; gap:6px; }
.wk--4 .tile figcaption span{ padding:6px 9px; border-radius:999px; background:color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter:blur(6px); color:var(--forest); }
.wk--4 .tile .go{ position:absolute; right:14px; bottom:14px; width:36px; height:36px; border-radius:50%; display:grid; place-items:center; background:var(--forest); color:var(--ground);
  transform:translateY(6px); opacity:0; transition:transform .3s ease, opacity .3s ease; }
.wk--4 .tile:hover .go{ transform:none; opacity:1; }

/* ============ 05 · Two-up with captions (Gallery Grid with Captions) ============ */
.wk--5 .grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:48px 28px; padding:0 var(--gutter) 120px; }
.wk--5 .tile{ background:none; box-shadow:none; overflow:visible; border-radius:0; }
.wk--5 .tile .ph{ display:block; overflow:hidden; border-radius:12px; corner-shape:superellipse(1.25); aspect-ratio:4 / 3; box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--forest) 8%, transparent); }
.wk--5 .tile:hover img{ transform:scale(calc(var(--s, 1) * 1.025)); }
.wk--5 .tile figcaption{ display:flex; justify-content:space-between; gap:16px; margin-top:14px; font:500 17px/1.3 var(--grot); letter-spacing:var(--tr-t); text-transform:none; color:var(--forest); }
.wk--5 .tile figcaption small{ font:500 10.5px/1.7 var(--mono); letter-spacing:.12em; text-transform:uppercase; color:var(--sage-ink); }

/* ============ 06 · Index list, image follows the pointer ============ */
.wk--6 .list{ list-style:none; margin:0; padding:0 var(--gutter) 140px; }
.wk--6 .list li{ display:grid; grid-template-columns:60px minmax(0, 1fr) auto; gap:24px; align-items:baseline; padding:26px 0; border-top:1px solid var(--rule); cursor:default; }
.wk--6 .list li:last-child{ border-bottom:1px solid var(--rule); }
.wk--6 .list .n{ font:500 10.5px/1 var(--mono); letter-spacing:.12em; color:var(--sage-ink); }
.wk--6 .list b{ font-weight:500; font-size:var(--fs-d4); letter-spacing:var(--tr-t); line-height:1; transition:transform .5s cubic-bezier(.2,.7,.1,1), color .3s ease; }
.wk--6 .list .t{ font:500 10.5px/1 var(--mono); letter-spacing:.12em; text-transform:uppercase; color:var(--sage-ink); }
.wk--6 .list:hover li:not(:hover) b{ color:var(--rule); }
.wk--6 .list li:hover b{ transform:translateX(12px); }
.wk--6 .float{ position:fixed; left:0; top:0; z-index:40; width:340px; aspect-ratio:4 / 3; pointer-events:none; border-radius:10px; overflow:hidden;
  opacity:0; transform:translate(-50%, -50%) scale(.9); transition:opacity .25s ease, transform .35s cubic-bezier(.2,.7,.1,1); box-shadow:0 30px 60px -24px rgba(22,40,27,.5); }
.wk--6 .float.on{ opacity:1; transform:translate(-50%, -50%) scale(1); }
.wk--6 .float img{ width:100%; height:100%; object-fit:cover; display:block; }

/* ============ 07 · Film strips (Portfolio Gallery marquee) ============ */
.wk--7 .strip{ display:flex; gap:14px; width:max-content; padding:0 0 14px; animation:wk-run var(--dur, 60s) linear infinite; }
.wk--7 .strip.rev{ animation-direction:reverse; }
.wk--7 .x-rows{ overflow:hidden; padding-bottom:110px; mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.wk--7 .x-rows:hover .strip{ animation-play-state:paused; }
.wk--7 .tile{ height:300px; flex:none; aspect-ratio:var(--ar, 4 / 3); }
.wk--7 .tile:hover img{ transform:scale(calc(var(--s, 1) * 1.04)); }
@keyframes wk-run{ to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .wk--7 .strip{ animation:none; } .wk--7 .x-rows{ overflow-x:auto; } }

/* ============ 08 · One project per row: hero + details ============ */
.wk--8 .proj{ display:grid; grid-template-columns:minmax(180px, 1fr) minmax(0, 2.2fr) minmax(0, 1fr); gap:16px; padding:28px var(--gutter); border-top:1px solid var(--rule); }
.wk--8 .proj:last-child{ border-bottom:1px solid var(--rule); margin-bottom:120px; }
.wk--8 .proj header{ display:flex; flex-direction:column; gap:8px; }
.wk--8 .proj header b{ font-weight:500; font-size:var(--fs-t1); letter-spacing:var(--tr-t); }
.wk--8 .proj .hero{ aspect-ratio:16 / 10; }
.wk--8 .proj .side{ display:grid; gap:16px; grid-template-rows:1fr 1fr; }

/* ============ 09 · Contact sheet: frames, numbers, the light table ============ */
.wk--9 .sheet{ margin:0 var(--gutter) 120px; padding:28px; border-radius:6px; background:#16281B; }
.wk--9 .sheet .meta{ display:flex; justify-content:space-between; margin-bottom:20px; font:500 10.5px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase; color:rgba(255,253,250,.55); }
.wk--9 .frames{ display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:16px 14px; }
.wk--9 .tile{ aspect-ratio:4 / 3; border-radius:2px; background:#0f1d13; box-shadow:0 0 0 4px #fffdfa; }
.wk--9 .tile figcaption{ position:absolute; left:0; right:0; bottom:0; padding:14px 6px 5px; display:flex; background:linear-gradient(transparent, rgba(15,29,19,.85)); color:rgba(255,253,250,.8); font-size:9px; }
.wk--9 .tile:hover{ box-shadow:0 0 0 4px #FFE14A; }
.wk--9 .tile img{ border-radius:2px; }

/* ============ 10 · Parallax columns (3D Parallax Unfurling) ============ */
.wk--10 .cols{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; padding:0 var(--gutter) 160px; align-items:start; }
.wk--10 .col{ display:grid; gap:16px; will-change:transform; }
.wk--10 .col:nth-child(2){ margin-top:120px; }
.wk--10 .tile:hover img{ transform:scale(calc(var(--s, 1) * 1.03)); }

@media (max-width:860px){
  .wk--3 .grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); grid-auto-rows:160px; }
  .wk--4 .grid, .wk--5 .grid{ grid-template-columns:minmax(0, 1fr); }
  .wk--4 .tile:nth-child(n){ grid-column:auto; aspect-ratio:4 / 3; }
  .wk--6 .list li{ grid-template-columns:40px minmax(0, 1fr); } .wk--6 .list .t{ display:none; } .wk--6 .float{ display:none; }
  .wk--7 .tile{ height:200px; }
  .wk--8 .proj{ grid-template-columns:minmax(0, 1fr); }
  .wk--9 .frames{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
  .wk--10 .cols{ grid-template-columns:repeat(2, minmax(0, 1fr)); } .wk--10 .col:nth-child(3){ display:none; } .wk--10 .col:nth-child(2){ margin-top:60px; }
}

/* ==================================================================
   THE WORK PAGE (chosen 2026-11-02: masonry), dressed in the site's
   own pieces: About's dashed column frame + live greeting for the
   header, the home hero's pill toggle as a sticky project filter, and
   the home reel's cards (square, forest ground, frosted mono label).
   ================================================================== */
/* the dashed frame + greeting header now live in ../frame.css (shared with News) */

/* the hero's pill toggle, as the project filter (pricing's .pr__tabs recipe) */
.wp-bar{ position:sticky; top:calc(var(--head-h, 70px) + 12px); z-index:5; display:flex; justify-content:center; padding:20px var(--gutter) 22px; pointer-events:none; }
.wp-bar[hidden]{ display:none; }
.wp-bar[hidden] + .wp-grid{ padding-top:1rem; }   /* filter off: 1rem below the dashed rule, matching the 1rem above it (user) */
.wp-tabs{ --tgl-pad:4px; pointer-events:auto; position:relative; display:inline-flex; max-width:100%; overflow-x:auto; scrollbar-width:none;
  padding:var(--tgl-pad); border-radius:999px;
  background:color-mix(in srgb, var(--rule-2) 62%, var(--ground));
  border:1px solid color-mix(in srgb, var(--rule) 62%, var(--ground));
  box-shadow:inset 0 1px 2px color-mix(in srgb, var(--forest) 5%, transparent), 0 12px 26px -16px rgba(22,40,27,.45); }
.wp-tabs::-webkit-scrollbar{ display:none; }
.wp-tabs button{ position:relative; z-index:1; flex:none; appearance:none; background:transparent; border:0; border-radius:999px; cursor:pointer;
  font-family:var(--mono); font-size:var(--fs-m2); font-weight:500; letter-spacing:var(--tr-mi); text-transform:uppercase; white-space:nowrap;
  padding:7px 13px; line-height:1; color:var(--sage-ink); transition:color .18s ease, box-shadow .18s ease; }
.wp-tabs button[aria-pressed="true"]{ color:var(--forest); }
.wp-tabs button + button::before{ content:''; position:absolute; left:-1px; top:5px; bottom:5px; width:1px; background:color-mix(in srgb, var(--rule) 80%, var(--ground)); transition:opacity .18s ease; }
.wp-tabs button:not([aria-pressed="true"]):hover{ color:var(--forest-mid); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--rule) 88%, var(--ground)); }
.wp-tabs button:not([aria-pressed="true"]):hover::before,
.wp-tabs button[aria-pressed="true"]::before,
.wp-tabs button[aria-pressed="true"] + button::before{ opacity:0; }
.wp-tabs button:focus-visible{ outline:2px solid var(--forest); outline-offset:2px; }
.wp-tabs button sup{ margin-left:4px; font-size:8.5px; color:color-mix(in srgb, var(--sage-ink) 65%, transparent); vertical-align:1px; }
.wp-tabs .index__ind{ transition:transform .34s cubic-bezier(.4,0,.2,1), width .34s cubic-bezier(.4,0,.2,1), opacity .2s ease; }

/* the masonry: home reel cards — square, forest ground, 8px apart */
.wp-grid{ position:relative; z-index:1; columns:var(--cols, 4) 250px; column-gap:8px; padding:0 calc(var(--gutter) + 1rem) 140px; }   /* 1rem in from the dashed side guides (user) */
.wp-grid .tile{ break-inside:avoid; margin:0 0 8px; border-radius:0; background:var(--forest); box-shadow:none; }
.wp-grid .tile[hidden]{ display:none; }
.wp-grid .tile.is-in{ animation:wp-in .5s cubic-bezier(.2,.7,.1,1) both; animation-delay:calc(var(--i, 0) * 28ms); }
@keyframes wp-in{ from{ opacity:0; transform:translateY(10px); } }
.wp-grid .tile:hover img{ transform:scale(calc(var(--s, 1) * 1.035)); }
.wp-grid .tile figcaption{ position:absolute; left:12px; bottom:12px; z-index:1; padding:7px 9px;
  font:500 10.5px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase; color:var(--ground);
  background:color-mix(in srgb, var(--forest) 70%, transparent); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  opacity:0; transform:translateY(4px); transition:opacity .25s ease, transform .3s cubic-bezier(.2,.7,.1,1); }
.wp-grid .tile:hover figcaption{ opacity:1; transform:none; }
@media (hover:none){ .wp-grid .tile figcaption{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){ .wp-grid .tile.is-in{ animation:none; } .wp-tabs .index__ind{ transition:none; } }

@media (max-width:860px){
  .wp-bar{ justify-content:flex-start; }
}

/* ---- the lightbox (user, 2026-11-02): click a tile, it opens up; click
   through with ‹ › / ← → / swipe; × / Esc / backdrop closes. The stage
   shows the tile as clicked (its crop), sized to the screen, and grows
   out of the tile on open. Forest panel family: FAQ, booking sheet. ---- */
.wp-grid .tile{ cursor:zoom-in; }
.wp-grid .tile:focus-visible{ outline:2px solid var(--forest); outline-offset:3px; }
.wl{ position:fixed; inset:0; width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:transparent; overflow:hidden; color:var(--ground); }
.wl::backdrop{ background:color-mix(in srgb, #0f1d13 90%, transparent); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.wl[open]{ animation:wl-fade .3s ease both; }
.wl.is-out{ animation:wl-out .22s ease both; }
@keyframes wl-fade{ from{ opacity:0; } }
@keyframes wl-out{ to{ opacity:0; } }
.wl__stage{ position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); overflow:hidden; background:var(--forest);
  box-shadow:0 40px 90px -30px rgba(0,0,0,.6); transform-origin:center; }
.wl__stage img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:var(--ox, 50%) var(--oy, 50%);
  transform:scale(var(--s, 1)); transform-origin:var(--ox, 50%) var(--oy, 50%); }
.wl__stage.is-swap{ animation:wl-swap .38s cubic-bezier(.2,.7,.1,1); }
@keyframes wl-swap{ from{ opacity:0; transform:translate(calc(-50% + var(--dir, 0) * 28px), -50%); } }
.wl__btn{ position:absolute; z-index:2; width:44px; height:44px; border:0; border-radius:50%; cursor:pointer; display:grid; place-items:center;
  background:rgba(255,253,250,.1); color:var(--ground); transition:background-color .2s ease, transform .2s ease; }
.wl__btn:hover{ background:rgba(255,253,250,.2); }
.wl__btn:active{ transform:scale(.94); }
.wl__btn:focus-visible{ outline:2px solid var(--ground); outline-offset:2px; }
.wl__prev{ left:20px; top:50%; margin-top:-22px; }
.wl__next{ right:20px; top:50%; margin-top:-22px; }
.wl__x{ right:20px; top:calc(20px + env(safe-area-inset-top, 0px)); }
.wl__bar{ position:absolute; left:0; right:0; bottom:calc(20px + env(safe-area-inset-bottom, 0px)); display:flex; justify-content:center; gap:10px; pointer-events:none;
  font:500 10.5px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase; }
.wl__bar span{ padding:8px 10px; background:color-mix(in srgb, var(--forest) 70%, transparent); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.wl__bar .n{ color:rgba(255,253,250,.6); }
@media (max-width:640px){ .wl__prev, .wl__next{ top:auto; bottom:calc(16px + env(safe-area-inset-bottom, 0px)); margin:0; } .wl__bar{ bottom:calc(76px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce){ .wl[open], .wl.is-out, .wl__stage.is-swap{ animation:none; } }

/* real shots at their natural shape (2026-11-02): the image sets the tile */
.wp-grid .tile--natural img{ position:static; height:auto; transform:none; }
.wp-grid .tile--natural:hover img{ transform:scale(1.035); }

/* "more work coming" line under the grid (user, 2026-11-03): a small radar
   whose sweep turns slowly and lights a blip as it passes */
.wp-grid:has(+ .wp-more){ padding-bottom:0; }
.wp-more{ display:flex; align-items:center; justify-content:center; gap:10px; margin:0; padding:56px var(--gutter) 140px;
  font:400 15px/1.4 var(--grot); color:var(--sage-ink); }
.wp-more__radar{ flex:none; color:var(--forest-mid); }
.wp-more__sweep{ transform-origin:9px 9px; animation:wp-sweep 4s linear infinite; }
.wp-more__blip{ opacity:0; animation:wp-blip 4s linear infinite; }
@keyframes wp-sweep{ to{ transform:rotate(360deg); } }
@keyframes wp-blip{ 0%,9%{ opacity:0; } 11%{ opacity:1; } 45%,100%{ opacity:0; } }
@media (prefers-reduced-motion: reduce){ .wp-more__sweep{ animation:none; transform:rotate(30deg); } .wp-more__blip{ animation:none; opacity:1; } }
.wp-more__cta{ color:var(--forest); text-decoration:underline; text-decoration-color:var(--rule); text-underline-offset:3px; transition:text-decoration-color .2s ease; }
.wp-more__cta:hover{ text-decoration-color:currentColor; }
