/* RJA Work: the custom-work portfolio.
 *
 * Same vocabulary as the rest of the site (the store plugin's site.css, 2026-10-13): white and a warm
 * light grey, near-black ink, one typeface with a mono for small labels, one yellow, flat surfaces.
 * Every token falls back to its own value, so the pages hold up if the store's stylesheet is not on
 * the page. The photographs are the only colour.
 */
.rw, .rw-band, .rw-lb{
  --rw-paper:      var(--ks-paper, #ffffff);
  --rw-paper-warm: var(--ks-paper-warm, #f7f6f3);
  --rw-paper-sunk: var(--ks-paper-sunk, #f1f0ec);
  --rw-band:       var(--ks-band, #171310);
  --rw-ink:        var(--ks-ink, #171310);
  --rw-ink-2:      var(--ks-ink-2, #4d443c);
  --rw-ink-3:      var(--ks-ink-3, #6f655c);
  --rw-line:       var(--ks-line, #dcd8d0);
  --rw-line-strong:var(--ks-line-strong, #8f867c);
  --rw-tape:       var(--ks-tape, #ffc61a);
  --rw-tape-deep:  var(--ks-tape-deep, #f0b400);
  --rw-r-shell:    var(--ks-r-shell, 12px);
  --rw-r-core:     var(--ks-r-core, 8px);
  --rw-r-pill:     var(--ks-r-pill, 6px);
  --rw-ease:       var(--ks-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
  --rw-sans:       var(--ks-sans, 'Albert Sans', system-ui, -apple-system, sans-serif);
  --rw-mono:       var(--ks-mono, 'JetBrains Mono', ui-monospace, Menlo, monospace);
}

/* ---------------------------------------------------------------- page shell (Storefront) */
body.rw-page .entry-header,
body.rw-page .storefront-breadcrumb{ display: none; }
body.rw-page .site-main,
body.rw-page .hentry{ margin: 0; padding: 0; border: 0; }
body.rw-page .entry-content{ margin: 0; }
body.rw-page .content-area{ width: 100%; float: none; margin: 0; }
body.rw-page #secondary{ display: none; }

.rw{
  position: relative; color: var(--rw-ink); font-family: var(--rw-sans);
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem);
}
/* Storefront underlines every link inside .entry-content; ours are cards, pills and buttons. */
.rw a, .hentry .entry-content .rw a, .hentry .entry-content a.rw-card,
.hentry .entry-content .rw-band a.rw-card{ text-decoration: none; }
.hentry .entry-content .rw a.rw-link{ text-decoration: underline; }
.hentry .entry-content .rw .rw-credits a{ text-decoration: underline; }
.rw img, .rw video{ display: block; max-width: 100%; }
.rw picture{ display: contents; }
.rw-empty{ color: var(--rw-ink-2); padding: 4rem 0; }

/* ---------------------------------------------------------------- type */
.rw .rw-eyebrow{
  display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1rem;
  font-family: var(--rw-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rw-ink-3);
}
.rw .rw-eyebrow::before{ content: ''; width: 2rem; height: 3px; background: var(--rw-tape); }
.rw .rw-title{
  font-family: var(--rw-sans); font-weight: 800; color: var(--rw-ink);
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.75rem); line-height: 0.98; letter-spacing: -0.035em;
  margin: 0 0 1rem; text-wrap: balance;
}
.rw .rw-lede{
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.15rem); line-height: 1.55; color: var(--rw-ink-2);
  max-width: 50ch; margin: 0 0 0.9rem; text-wrap: pretty;
}
.rw .rw-h2{
  font-family: var(--rw-sans); font-weight: 800; color: var(--rw-ink);
  font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.75rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0;
}
.rw .rw-section{ margin-top: clamp(3rem, 7vw, 5.5rem); scroll-margin-top: 6rem; }
.rw .rw-head{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin: 0 0 clamp(1.25rem, 2.6vw, 2rem);
}

/* ---------------------------------------------------------------- buttons and links */
.rw .rw-btn{
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3.1rem;
  padding: 0.8rem 1.4rem; border-radius: var(--rw-r-pill);
  background: var(--rw-tape); color: var(--ks-on-tape, var(--rw-ink));
  font-weight: 700; font-size: 0.98rem; line-height: 1.1;
  transition: background-color 220ms var(--rw-ease);
}
.rw .rw-btn:hover{ background: var(--rw-tape-deep); color: var(--ks-on-tape, var(--rw-ink)); }
.rw .rw-dot{ display: inline-grid; place-items: center; transition: transform 320ms var(--rw-ease); }
.rw .rw-btn:hover .rw-dot{ transform: translateX(4px); }
.rw .rw-link{
  color: var(--rw-ink); font-weight: 700; font-size: 0.95rem;
  text-decoration: underline; text-decoration-color: var(--rw-tape-deep); text-decoration-thickness: 3px; text-underline-offset: 0.3em;
}
.rw .rw-link:hover{ color: var(--rw-ink); }
.rw .rw-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.6rem; }
/* The theme rings every focused control in purple; ours ring in ink, and only for keyboard focus. */
.rw a:focus, .rw button:focus, .rw-card:focus, .rw-lb button:focus{ outline: none; }
.rw a:focus-visible, .rw button:focus-visible, .rw-card:focus-visible{
  outline: 3px solid var(--rw-ink); outline-offset: 3px;
}
.rw-lb button:focus-visible{ outline: 2px solid rgb(255 255 255 / 0.7); outline-offset: 2px; }

/* ---------------------------------------------------------------- hero: words beside a moving picture */
.rw .rw-hero, .rw .rw-p-hero{
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 5vw, 5rem); align-items: center;
}
.rw .rw-hero--plain{ grid-template-columns: minmax(0, 1fr); }
.rw .rw-hero--plain .rw-title{ max-width: 16ch; }
.rw .rw-p-hero{
  align-items: start; margin-top: 1.25rem; row-gap: 0;
  grid-template-areas: "head media" "copy media"; grid-template-rows: auto 1fr;
}
.rw .rw-p-head{ grid-area: head; padding-top: clamp(0.5rem, 3vw, 3rem); }
.rw .rw-p-copy{ grid-area: copy; }
.rw .rw-p-hero > .rw-reel, .rw .rw-p-hero > .rw-p-cover{ grid-area: media; }
.rw .rw-p-hero .rw-title{ font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }

/* The reel is a phone-shaped window: it was shot on a phone and it should not pretend otherwise. */
.rw .rw-reel{ margin: 0; justify-self: center; width: min(100%, 23rem); }
.rw .rw-reel-frame{ position: relative; border-radius: var(--rw-r-shell); overflow: hidden; background: var(--rw-band); }
.rw .rw-reel video{ width: 100%; height: 100%; object-fit: cover; background: var(--rw-band); }
.rw .rw-reel-btn{
  position: absolute; left: 50%; bottom: 1.3rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.55rem; white-space: nowrap;
  padding: 0.6rem 1.05rem 0.6rem 0.85rem; border: 0; border-radius: var(--rw-r-pill); cursor: pointer;
  background: rgb(23 19 16 / 0.72); color: #fff; font: 600 0.85rem/1 var(--rw-sans);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color 300ms var(--rw-ease);
}
.rw .rw-reel-btn:hover{ background: rgb(23 19 16 / 0.9); color: #fff; }
.rw .rw-reel-btn .rw-ic-pause{ display: none; }
.rw .rw-reel.is-loud .rw-reel-btn .rw-ic-pause{ display: inline; }
.rw .rw-reel.is-loud .rw-reel-btn .rw-ic-play{ display: none; }
.rw .rw-reel figcaption{ margin-top: 0.8rem; text-align: center; font-size: 0.85rem; color: var(--rw-ink-3); }

.rw .rw-p-cover{ margin: 0; border-radius: var(--rw-r-shell); overflow: hidden; background: var(--rw-paper-sunk); }
.rw .rw-p-cover img{ width: 100%; height: auto; max-height: 78vh; object-fit: cover; }

/* ---------------------------------------------------------------- filter chips */
.rw .rw-chips{ display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rw .rw-chips button{
  display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer;
  min-height: 2.5rem; padding: 0.45rem 0.95rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--rw-ink); box-shadow: inset 0 0 0 1px var(--rw-line-strong);
  font: 600 0.9rem/1.1 var(--rw-sans);
  transition: background-color 220ms var(--rw-ease), color 220ms var(--rw-ease), box-shadow 220ms var(--rw-ease);
}
.rw .rw-chips button span{ font-family: var(--rw-mono); font-weight: 500; font-size: 0.75rem; color: var(--rw-ink-3); }
.rw .rw-chips button:hover{ background: var(--rw-paper-sunk); color: var(--rw-ink); }
.rw .rw-chips button.is-on{ background: var(--rw-ink); color: var(--ks-on-tape, #fff); box-shadow: inset 0 0 0 1px var(--rw-ink); }
.rw .rw-chips button.is-on span{ color: var(--ks-ink-3, rgb(255 255 255 / 0.7)); }

/* ---------------------------------------------------------------- project cards (also used in the home band) */
.rw .rw-grid, .rw-band .rw-band-grid{
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.4rem, 2.6vw, 2.25rem) clamp(0.9rem, 1.8vw, 1.5rem);
  grid-auto-flow: dense;
}
.rw .rw-grid > li, .rw-band .rw-band-grid > li{ margin: 0; min-width: 0; }
.rw .rw-grid > li[hidden]{ display: none; }
.rw .rw-grid > li.is-feature{ grid-column: span 2; grid-row: span 2; }

.rw-card{ display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.rw-card .rw-card-media{
  position: relative; display: block; flex: 1 1 auto; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: var(--rw-r-shell, 12px); background: var(--rw-paper-sunk, #f1f0ec);
}
.rw-card .rw-card-media img{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--rw-ease);
}
.rw-card:hover .rw-card-media img{ transform: scale(1.05); }
.rw-card .rw-card-badge{
  position: absolute; left: 0.7rem; top: 0.7rem; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.55rem; border-radius: 4px;
  background: var(--rw-tape, #ffc61a); color: var(--ks-on-tape, #171310); font: 500 0.68rem/1 var(--rw-mono, monospace); letter-spacing: 0.08em; text-transform: uppercase;
}
.rw-card .rw-card-title{
  display: block; margin-top: 0.85rem;
  font-family: var(--rw-sans); font-weight: 700; font-size: 1.1rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--rw-ink);
  text-wrap: balance;
}
.rw-card .rw-card-meta{ display: block; margin-top: 0.3rem; font-family: var(--rw-mono, monospace); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rw-ink-3); }
.rw .rw-grid > li.is-feature .rw-card-title{ font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; }

/* ---------------------------------------------------------------- project page */
.rw .rw-crumb{ display: flex; flex-wrap: wrap; gap: 0.5rem; font-family: var(--rw-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rw-ink-3); }
.rw .rw-crumb a{ color: var(--rw-ink-2); }
.rw .rw-crumb a:hover{ color: var(--rw-ink); text-decoration: underline; text-underline-offset: 0.25em; }

.rw .rw-facts{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0;
  margin: 1.6rem 0 0; padding: 0; max-width: 34rem; border-top: 1px solid var(--rw-line);
}
.rw .rw-facts > div{ padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--rw-line); }
.rw .rw-facts dt{ font-family: var(--rw-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rw-ink-3); }
.rw .rw-facts dd{ margin: 0.3rem 0 0; font-size: 0.97rem; line-height: 1.4; color: var(--rw-ink); }

/* Photos keep their own shape: a column flow, so a tall phone shot and a wide one sit together without cropping. */
.rw .rw-gallery{ list-style: none; margin: 0; padding: 0; columns: 3; column-gap: clamp(0.7rem, 1.5vw, 1.25rem); }
.rw .rw-gallery > li{ break-inside: avoid; margin: 0 0 clamp(0.7rem, 1.5vw, 1.25rem); }
.rw .rw-gallery a{
  display: block; overflow: hidden; border-radius: var(--rw-r-shell); cursor: zoom-in;
  background: var(--rw-paper-sunk);
}
.rw .rw-gallery img{ width: 100%; height: auto; transition: transform 700ms var(--rw-ease); }
.rw .rw-gallery a:hover img{ transform: scale(1.03); }
.rw .rw-cap{ display: block; margin: 0.5rem 0.2rem 0; font-size: 0.85rem; line-height: 1.4; color: var(--rw-ink-3); }

/* ---------------------------------------------------------------- the ask */
.rw .rw-cta{
  margin-top: clamp(3.5rem, 8vw, 6rem); padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: var(--rw-r-shell); text-align: center;
  background: var(--rw-band); color: #fff;
}
.rw .rw-cta h2{
  font-family: var(--rw-sans); font-weight: 800; color: #fff; margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.4rem); line-height: 1; letter-spacing: -0.03em;
}
.rw .rw-cta p{ margin: 0 auto 1.75rem; max-width: 46ch; color: rgb(255 255 255 / 0.86); line-height: 1.55; }
.rw .rw-cta a:focus-visible{ outline-color: var(--rw-tape); }

.rw .rw-pager{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.rw .rw-pager-a{
  display: block; padding: 1.1rem 1.3rem; border-radius: var(--rw-r-shell); color: inherit;
  background: var(--rw-paper-sunk); transition: background-color 220ms var(--rw-ease);
}
.rw .rw-pager-a:hover{ background: var(--ks-band-2, var(--rw-tape)); }
.rw .rw-pager-a span{ display: block; font-family: var(--rw-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rw-ink-2); }
.rw .rw-pager-a strong{ display: block; margin-top: 0.3rem; font-family: var(--rw-sans); font-weight: 700; font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--rw-ink); }
.rw .rw-pager-a--next{ text-align: right; }

.rw .rw-credits{ margin: 2rem 0 0; font-size: 0.78rem; line-height: 1.5; color: var(--rw-ink-3); text-align: center; }
.rw .rw-credits a{ color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------------------------------------------------------------- lightbox */
.rw-lb{
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(18 14 11 / 0.94); color: #fff; font-family: var(--rw-sans);
}
.rw-lb::backdrop{ background: rgb(18 14 11 / 0.94); }
.rw-lb[open]{ display: grid; grid-template-rows: 1fr auto; place-items: center; }
.rw-lb img{ max-width: min(94vw, 1500px); max-height: calc(100dvh - 6.5rem); width: auto; height: auto; border-radius: 6px; margin-top: 2.5rem; }
.rw-lb p{ margin: 0; padding: 0.9rem 4rem 1.4rem; min-height: 1.4rem; font-size: 0.9rem; color: rgb(255 255 255 / 0.75); text-align: center; }
.rw-lb button{
  position: fixed; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border: 0; border-radius: 6px;
  background: rgb(255 255 255 / 0.12); color: #fff; cursor: pointer; transition: background-color 250ms;
}
.rw-lb button:hover{ background: rgb(255 255 255 / 0.24); }
.rw-lb [data-rw-close]{ top: 1rem; right: 1rem; }
.rw-lb [data-rw-prev]{ left: 1rem; top: 50%; transform: translateY(-50%); }
.rw-lb [data-rw-next]{ right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------------- home page band */
.rw-band .rw-card-title{ font-size: 1.15rem; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px){
  .rw .rw-grid, .rw-band .rw-band-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rw .rw-gallery{ columns: 2; }
}
@media (max-width: 720px){
  .rw .rw-hero, .rw .rw-p-hero{ grid-template-columns: minmax(0, 1fr); }
  .rw .rw-p-hero{ grid-template-areas: "head" "media" "copy"; grid-template-rows: auto; }
  .rw .rw-reel{ width: min(100%, 20rem); }
  .rw .rw-p-head{ padding-top: 0; }
  .rw .rw-p-hero > .rw-reel, .rw .rw-p-hero > .rw-p-cover{ margin: 0.4rem auto 1.6rem; }
  .rw .rw-head{ align-items: flex-start; flex-direction: column; }
  /* Chips scroll sideways in one row rather than stacking into a wall above the photographs. */
  .rw .rw-chips{ flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding: 0.25rem 0.25rem 0.6rem; margin: -0.25rem; scrollbar-width: none; }
  .rw .rw-chips::-webkit-scrollbar{ display: none; }
  .rw .rw-chips button{ flex: 0 0 auto; }
  .rw .rw-card-title{ font-size: 1.05rem; }
  .rw .rw-pager{ grid-template-columns: 1fr; }
  .rw .rw-pager-a--next{ text-align: left; }
  .rw-lb [data-rw-prev], .rw-lb [data-rw-next]{ top: auto; bottom: 0.8rem; transform: none; }
  .rw-lb p{ padding: 0.9rem 4.2rem 1.4rem; }
}
@media (prefers-reduced-motion: reduce){
  .rw *, .rw-card *, .rw-lb *{ transition: none !important; }
}
