/* Our work (2026-11-13): project tiles, /our-work/ page, full-screen viewer, and the home "From idea to the Serengeti" safari section.
   Loaded on the home page and /our-work/. Motion is skipped for visitors who turn off animations. */

/* ---------- Tiles: each photo sits on white "paper" with crop marks, like a print proof ---------- */
.pj-grid { list-style: none; margin: -14px; padding: 14px; overflow: hidden; overflow: clip; } /* room for the crop marks, never wider than the page */
.pj-grid > li { max-width: none; }
.work-tile { margin: 0; }
.work-open { all: unset; display: block; width: 100%; cursor: zoom-in; box-sizing: border-box; }
.work-open:focus-visible { outline: 3px solid var(--green); outline-offset: 6px; border-radius: 14px; }
.work-frame {
  position: relative; display: block; padding: 8px; border-radius: 12px; background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 12px 30px rgba(35, 40, 43, .08); transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}
.work-frame img { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--paper); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.work-frame { overflow: visible; }
.work-frame::after { content: ""; position: absolute; inset: 8px; border-radius: 6px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.work-open:hover .work-frame, .work-open:focus-visible .work-frame { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 1px 0 var(--line), 0 24px 50px rgba(35, 40, 43, .16); }
/* crop marks just outside each corner; they slide in on hover */
.crop { position: absolute; width: 16px; height: 16px; border: 0 solid var(--graphite); opacity: 0; transition: opacity .3s ease, translate .4s cubic-bezier(.2, .7, .2, 1); }
.crop-tl { left: -12px; top: -12px; border-right-width: 1.5px; border-bottom-width: 1.5px; translate: -6px -6px; }
.crop-tr { right: -12px; top: -12px; border-left-width: 1.5px; border-bottom-width: 1.5px; translate: 6px -6px; }
.crop-bl { left: -12px; bottom: -12px; border-right-width: 1.5px; border-top-width: 1.5px; translate: -6px 6px; }
.crop-br { right: -12px; bottom: -12px; border-left-width: 1.5px; border-top-width: 1.5px; translate: 6px 6px; }
.work-open:hover .crop, .work-open:focus-visible .crop { opacity: .55; translate: 0 0; }
.work-count { position: absolute; right: 16px; top: 16px; padding: 4px 10px; border-radius: 99px; background: rgba(17, 22, 26, .72); color: #fff; font: 700 .72rem/1.3 var(--mono); letter-spacing: .04em; }
.work-cap { display: grid; gap: 2px; padding: 12px 4px 0; }
.work-cat { font: 700 .7rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--print-ink); }
.work-title { font-weight: 700; line-height: 1.25; color: var(--graphite); }
.work-tile.is-safari .work-cat::after { content: " · Safari"; color: #4b7222; }

/* reveal as they scroll in */
.js:not(.reveal-all) .work-tile { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js:not(.reveal-all) .work-tile.in { opacity: 1; transform: none; }

/* home: a proof sheet, 3 by 2, the newest job marked */
.pj-grid-home { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 2.8vw, 36px); }
.pj-grid-home .work-frame img { aspect-ratio: 4 / 3; object-fit: cover; }
.pj-grid-home .is-feature .work-frame::before {
  content: "Newest"; position: absolute; left: 16px; top: 16px; z-index: 1; padding: 4px 10px; border-radius: 99px;
  background: var(--print); color: #fff; font: 700 .72rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
@media (max-width: 900px) { .pj-grid-home { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 560px) { .pj-grid-home .work-title { font-size: .92rem; } .pj-grid-home .work-frame { padding: 5px; } }
.works-more { margin: clamp(28px, 4vw, 44px) 0 0; text-align: center; }
.works-more .btn { display: inline-flex; gap: 8px; align-items: center; }
.works-more .btn svg { transition: transform .3s ease; }
.works-more .btn:hover svg { transform: translateX(5px); }

/* /our-work/: masonry columns, photos keep their own shape */
.work-hero { display: flex; align-items: center; }
.work-hero .wrap { width: 100%; }
.work-hero .wrap > * { max-width: min(560px, 46%); }
.work-scatter { position: absolute; inset: 0 0 0 50%; pointer-events: none; }
.work-scatter span { position: absolute; width: clamp(180px, 20vw, 300px); padding: 8px 8px 26px; background: #fff; border-radius: 4px; box-shadow: 0 22px 50px rgba(35, 40, 43, .22); animation: print-drop .9s cubic-bezier(.2, .8, .3, 1.2) both; }
.work-scatter img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.work-scatter .print-1 { left: 6%; top: 14%; rotate: -7deg; animation-delay: .1s; }
.work-scatter .print-2 { left: 42%; top: 8%; rotate: 5deg; animation-delay: .25s; }
.work-scatter .print-3 { left: 20%; top: 44%; rotate: 3deg; z-index: 2; animation-delay: .4s; }
.work-scatter .print-4 { left: 54%; top: 46%; rotate: -4deg; animation-delay: .55s; }
.work-scatter .print-5 { left: 2%; top: 70%; rotate: -2deg; animation-delay: .7s; }
@keyframes print-drop { from { opacity: 0; transform: translateY(-40px) scale(1.08); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .work-hero .wrap > * { max-width: none; }
  .work-scatter { position: relative; inset: auto; height: 260px; margin: 28px var(--gutter) 0; }
  .work-scatter span { width: 44%; }
  .work-scatter .print-1 { left: 0; top: 6%; } .work-scatter .print-2 { left: 52%; top: 0; }
  .work-scatter .print-3 { left: 24%; top: 34%; } .work-scatter .print-4, .work-scatter .print-5 { display: none; }
  .work-hero { flex-direction: column; align-items: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .work-scatter span { animation: none; } }
.work-hero { background: radial-gradient(circle, rgba(133, 180, 78, .18) 1.2px, transparent 1.6px) 0 0 / 14px 14px, var(--print-wash); }
.work-stat { margin: 18px 0 0; font-weight: 600; color: var(--graphite-2); }
.work-stat b { font: 800 2.2rem/1 var(--display); color: var(--print-ink); margin-right: 6px; vertical-align: -4px; }
.work-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.work-filters .chip {
  padding: 9px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--graphite);
  font: 600 .92rem/1.2 var(--body); cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.work-filters .chip:hover { border-color: var(--print); }
.work-filters .chip.is-on { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.work-filters .chip-safari { border-color: #e7b77d; background: #fdf3e4; }
.work-filters .chip-safari.is-on { background: #4b7222; border-color: #4b7222; color: #fff; }
.work-showing { min-height: 1.4em; margin: 0 0 18px; font-size: var(--fs-sm); color: var(--graphite-2); }
.pj-grid-all { columns: 4 250px; column-gap: clamp(18px, 2.4vw, 30px); }
.pj-grid-all .work-frame img { max-height: 440px; object-fit: cover; }
.pj-grid-all .work-tile { break-inside: avoid; margin-bottom: clamp(22px, 2.6vw, 34px); }
.pj-grid-all .work-tile[hidden] { display: none; }
.pj-grid-all .work-tile.is-shown { animation: work-pop .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes work-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .pj-grid-all { columns: 2; column-gap: 14px; } .work-cap { padding-top: 8px; } .work-title { font-size: .92rem; } .work-frame { padding: 5px; } }

/* ---------- Full-screen viewer ---------- */
.work-box {
  width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0f1214; color: #fff; display: none; grid-template-columns: 1fr minmax(280px, 380px);
}
.work-box[open] { display: grid; animation: vt-rise-in .35s cubic-bezier(.2, .7, .2, 1) both; }
.work-box::backdrop { background: rgba(10, 12, 14, .85); }
.wb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 28px 72px; }
.wb-img { max-width: 100%; max-height: calc(100dvh - 56px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transition: opacity .25s ease; }
.work-box.is-loading .wb-img { opacity: .35; }
.wb-nav, .wb-close {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background .2s ease;
}
.wb-nav:hover, .wb-close:hover { background: rgba(255, 255, 255, .22); }
.wb-prev { left: 12px; top: 50%; translate: 0 -50%; } .wb-next { right: 12px; top: 50%; translate: 0 -50%; }
.wb-close { right: 16px; top: 16px; width: 46px; height: 46px; }
.wb-info { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 40px 32px; background: #171b1e; border-left: 1px solid rgba(255, 255, 255, .08); }
.wb-cat { margin: 0; font: 700 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #b7e08a; }
.wb-title { margin: 0; color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.1; }
.wb-text { margin: 0; color: rgba(255, 255, 255, .78); }
.wb-dots { display: flex; gap: 6px; margin: 4px 0 8px; }
.wb-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.wb-dots i.on { background: var(--green); width: 22px; border-radius: 6px; }
@media (max-width: 860px) {
  .work-box { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .wb-stage { padding: 64px 12px 12px; }
  .wb-img { max-height: calc(100dvh - 300px); }
  .wb-info { padding: 18px 20px 24px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .wb-nav { width: 44px; height: 44px; top: auto; bottom: 18px; translate: none; background: rgba(0, 0, 0, .5); }
  .wb-close { right: 12px; top: 12px; }
}

/* ---------- Home: From idea to the Serengeti (clean version, 2026-11-14) ---------- */
.section-safari { --safari: #4b7222; background: #fff; border-block: 1px solid var(--line); }
.section.section-safari { padding-block: clamp(64px, 8vw, 104px); }
.section-safari + .section { padding-top: clamp(56px, 8vw, 104px); }
.safari-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; margin-bottom: clamp(36px, 5vw, 56px); }
.safari-kicker { margin: 0 0 10px; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .04em; color: var(--safari); }
.section-safari h2 { margin: 0; max-width: 14ch; }
.section-safari h2 span { color: var(--safari); }
.safari-lead { margin: 0; max-width: 46ch; color: var(--graphite-2); }

/* five cards on a thin numbered line */
.safari-stops { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 28px); }
.safari-stops::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; border-top: 1px solid var(--line); }
.stop { position: relative; display: flex; flex-direction: column; gap: 6px; max-width: none; }
.stop-mark { position: relative; display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 50%; background: #fff; border: 1.5px solid var(--safari); color: var(--safari); font-size: .8rem; font-weight: 700; }
.stop-photo { display: block; aspect-ratio: 4 / 3; margin-bottom: 10px; border-radius: var(--radius-m); overflow: hidden; background: var(--paper); }
.stop-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.stop:hover .stop-photo img { transform: scale(1.04); }
.stop-place { font-size: .8rem; font-weight: 700; color: var(--safari); }
.stop strong { font-size: 1.1rem; line-height: 1.2; color: var(--graphite); }
.stop-text { font-size: .92rem; color: var(--graphite-2); }
.js:not(.reveal-all) .stop:not(.in) { opacity: 0; transform: translateY(20px); }
.stop { transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }

.safari-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; margin-top: clamp(40px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line); }
.safari-cta p { margin: 0; max-width: 56ch; color: var(--graphite-2); }
.safari-cta strong { color: var(--graphite); }
.btn-safari { background: var(--safari); color: #fff; border: 0; }
.btn-safari:hover { background: #9a5416; color: #fff; }

@media (max-width: 960px) {
  /* phones and tablets: swipe through the stops */
  .safari-stops { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(72%, 280px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; }
  .safari-stops::-webkit-scrollbar { display: none; }
  .safari-stops::before { display: none; }
  .stop { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .stop, .stop-photo img { transition: none; }
  .work-frame, .work-frame img, .crop { transition: none; }
}
