/*
Theme Name: William Josephs Radford
Theme URI: https://josephsradford.com
Author: William Josephs Radford
Description: Lean custom theme for josephsradford.com. Mobile first.
Version: 0.99.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: wjr
*/

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: Inter; src: url(assets/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Newsreader; src: url(assets/fonts/newsreader.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

/* ---------- Base ---------- */
:root { --black: #000000; --white: #FFFFFF; --tint: rgba(0, 0, 0, 0.26);
	/* Site colours (William, 12 Nov; 19 Nov: brighter, closer to bone – was F4F2EE): warm bone paper with near-black ink, as on the prints pages. White text stays only on photographs. */
	--paper: #F9F6EE; --ink: #111111; --soft: rgba(17, 17, 17, 0.6); --rule: rgba(17, 17, 17, 0.2); }
/* The wall colour chosen in the print viewer becomes --paper for the whole site (header.php); on dark walls the text turns light. */
:root.wjr-dark { --ink: #F4F4F2; --soft: rgba(244, 244, 242, 0.66); --rule: rgba(244, 244, 242, 0.28); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); transition: background-color 0.6s ease, color 0.6s ease; font-family: Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid currentColor; outline-offset: -3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 12px 16px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 16px; }

/* ---------- Header: one slim bar on every page – the name top left, the pages top right ---------- */
:root { --head: 56px; }
/* ---------- Portfolio (homepage): project titles scattered across one screen (front-page.php, assets/scatter.js) ----------
   William, 20 Nov 2026 – replaces the chequerboard of photographs. No photographs and no scrolling: every title in its place
   in an even honeycomb, every title the same distance from its neighbours (front-page.php sets the places: --c/--r on computers,
   --m/--s on phones; here --d is the distance, worked out from the space available).
   Hover a title (computers): the others fade away, a random photograph from the project fills the screen behind a darker mask,
   cropped as little as possible, and drifts or slowly zooms, and the title and menu turn white. Phones: tap a title to open the project. */
html:has(.scatter-page) { overflow: hidden; }
.scatter-page { position: fixed; inset: 0; }
body:has(.scatter-page) .bar--over { background: none; } /* no fade under the menu */
.scatter { position: absolute; inset: calc(var(--head) + 16px) 16px 28px; margin: 0; padding: 0; list-style: none; container-type: size; }
/* Phones: one centred column, every title the same distance from the next (23 Nov 2026; was a zigzag). */
.scatter li { position: absolute; left: 50%; top: calc(50% + var(--m) * 100cqh / var(--n)); transform: translate(-50%, -50%); transition: opacity 0.5s ease; }
.scatter a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 30px; padding: 0 6px; color: var(--ink); text-decoration: none; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; transition: color 0.5s ease; }
.scatter__year { margin-top: 3px; color: var(--soft); font-size: 0.8em; font-weight: 400; letter-spacing: 0.1em; line-height: 1; transition: color 0.5s ease; } /* the year under each title (William, 23 Nov 2026) */
.scatter.is-on li:not(.is-on) { opacity: 0; pointer-events: none; }
/* Ghost scatter behind the titles (23 Nov 2026): every photograph, small and faint, drifting slowly (assets/scatter.js). */
.ghost { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.ghost.is-ready { opacity: 0.16; }
.ghost img { position: absolute; top: 0; left: 0; max-width: none; user-select: none; }
/* The paper-coloured halo round the titles (for the ghost scatter / panels) was removed (William, 24 Nov 2026): it showed as a white bloom when the hover photograph faded out. */
.scatter__panel { display: none; }
/* Phones (William, 24 Nov 2026): the page scrolls; each project is its photograph, full width and uncropped, with the title in the
   middle of it. The photograph is picked at random on each load from the project's ticked Homepage photos (assets/scatter.js);
   a project with none ticked (Ashtray Breath, Moving Image) stays a plain title on the paper. */
@media (max-width: 899px) {
	html:has(.scatter-page) { overflow: auto; }
	.scatter-page { position: static; padding-top: var(--head); }
	body:has(.scatter-page) .bar--over { background: var(--paper); padding-bottom: 6px; } /* the bar stays readable over the photographs */
	.scatter__bg { display: none; }
	.scatter { position: static; padding: 0 0 28px; container-type: normal; }
	.scatter li { position: static; transform: none; }
	.scatter a { position: relative; min-height: 64px; white-space: normal; text-align: center; }
	.scatter a:has(.scatter__panel) { display: grid; grid-template: 1fr auto auto 1fr / 1fr; justify-items: center; padding: 0; }
	.scatter__panel { display: block; grid-area: 1 / 1 / -1 / -1; width: 100%; height: auto; opacity: 0; transition: opacity 0.6s ease; }
	.scatter__panel.is-in { opacity: 1; }
	.scatter a:has(.scatter__panel) .scatter__name { grid-area: 2 / 1; z-index: 2; padding: 0 16px; }
	.scatter a:has(.scatter__panel) .scatter__year { grid-area: 3 / 1; z-index: 2; }
	.scatter a:has(.scatter__panel.is-in) { color: #FFFFFF; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55); font-size: 12px; }
	.scatter a:has(.scatter__panel.is-in)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, 0.22); }
	.scatter a:has(.scatter__panel.is-in) .scatter__year { color: rgba(255, 255, 255, 0.85); }
}
.scatter__bg { position: absolute; inset: 0; overflow: hidden; opacity: 0; background: #111; transition: opacity 0.7s ease; }
.scatter__bg.is-on { opacity: 1; }
.scatter__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); } /* slightly darker mask */
/* Titles and menu change colour at the same pace as the photograph fades in and out (0.7 s), so they never turn dark over a
   still-dark photograph (William, 24 Nov 2026 – this used to be hidden by the paper-coloured halo). */
html:has(.scatter-page) .scatter a, html:has(.scatter-page) .scatter__year, html:has(.scatter-page) .bar a, html:has(.scatter-page) .bar summary { transition: color 0.7s ease; }
.scatter__bg img { position: absolute; top: 0; left: 0; max-width: none; will-change: transform; } /* size and movement set by assets/scatter.js: just covers the screen, original file */
.scatter__bg iframe { position: absolute; top: 50%; left: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%); border: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; } /* Moving Image hover: a 16:9 video just covering the screen (23 Nov 2026) */
.scatter__bg.is-video.is-playing iframe { opacity: 1; } /* hidden until it is actually playing; its still frame shows underneath meanwhile */
/* A single-photograph project (Ashtray Breath) opens full screen on the homepage: the photograph whole, on the paper, its title underneath. */
.solo-home { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.solo-home::backdrop { background: var(--paper); }
.solo-home[open] { display: flex; animation: wjr-fade 0.4s ease; }
.solo-home figure { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; margin: 0; padding: calc(var(--head) + 8px) 16px 24px; }
.solo-home img { max-width: 100%; max-height: calc(100vh - var(--head) - 80px); object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.16)); }
.solo-home figcaption { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.solo-home__close { position: absolute; top: 8px; right: 12px; min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--ink); font: 500 11px Inter, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.solo-home__close:hover { color: var(--soft); }
@keyframes wjr-fade { from { opacity: 0; } }
@media (min-width: 900px) { .solo-home figure { padding: calc(var(--head) + 16px) 48px 32px; } .solo-home__close { top: 8px; right: 20px; } }
@media (prefers-reduced-motion: reduce) { .solo-home[open] { animation: none; } }
html.wjr-photo .bar, html.wjr-photo .scatter { --ink: #FFFFFF; --soft: rgba(255, 255, 255, 0.7); } /* on the photograph: white title and menu */

/* ---------- Project page: photographs only (title and description moved to the portfolio, 13 Nov 2026) ---------- */

/* The header bar (header.php). On full-screen pages (.bar--over) it floats over the page and fades into it. */
.bar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; min-height: var(--head); padding: 6px 12px; background: var(--paper); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; transition: background-color 0.6s ease; }
.bar--over { position: fixed; inset: 0 0 auto; align-items: flex-start; padding-bottom: 24px; background: linear-gradient(color-mix(in srgb, var(--paper) 92%, transparent), color-mix(in srgb, var(--paper) 0%, transparent)); pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar__name { margin: 0; font: inherit; font-weight: 600; }
.bar__lic { display: flex; flex-direction: column; gap: 8px; padding: 18px 8px 6px 16px; } /* more room above and to the left (William, v0.80.1) */ /* Licensing: the project's title in place of the name – large, with a short description under it (William, 23 Nov 2026, v0.80.0) */
.bar__project { display: block; font-size: clamp(24px, 3vw, 40px); font-weight: 700; line-height: 1; letter-spacing: 0.02em; }
.bar__about { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; line-height: 1.3; color: var(--soft); }
.bar__about[hidden] { display: none; }
:root:has(.bar__lic) { --head: 100px; }
/* Desktop (v0.80.2, William): the title floats in the empty space top left, out of the header's flow – so the menu stays
   where it always was and the header keeps its normal height (the strip photographs keep their size). */
@media (min-width: 900px) {
	:root:has(.bar__lic) { --head: 60px; }
	.bar:has(.bar__lic) { justify-content: flex-end; }
	.bar__name:has(.bar__lic) { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; }
	.bar__lic { padding: 40px 8px 8px 48px; }
} /* the taller header: the strip and the fields below size themselves from --head */
.bar a, .bar summary { display: flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--ink); text-decoration: none; cursor: pointer; }
.bar a, .bar summary { transition: color 0.25s ease; }
.bar__name a:hover, .bar summary:hover { color: var(--soft); } /* no underline: a soft fade to grey */
.bar summary { list-style: none; }
.bar summary::-webkit-details-marker { display: none; }
.bar ul { margin: 0; padding: 0; list-style: none; }
.bar__menu[open] ul { position: absolute; right: 12px; top: 50px; min-width: 200px; padding: 8px; background: var(--paper); border: 1px solid var(--rule); }
.bar nav a { font-size: 11px; letter-spacing: 0.16em; color: color-mix(in srgb, var(--ink) 64%, transparent); } /* menu: small, grey (William, 15 Nov 2026); 64% (was 40%) for 4.5:1 contrast – audit 20 Nov 2026 */
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); } /* the page you're on: full ink */
.bar summary { font-size: 11px; letter-spacing: 0.16em; }
.bar__links { display: none; }
.admin-bar .bar--over { top: 46px; } /* WordPress admin bar, only when logged in */
@media (min-width: 783px) { .admin-bar .bar--over { top: 32px; } }

/* Portfolio → project (William, 20 Nov 2026): the project opens on the photograph that was behind its title, full screen and
   exactly where it was (drawn by header.php before the page paints), then zooms out into the scatter (assets/gallery.js),
   where it sits in the middle. The menu and controls fade in at the end. If the script never runs, it all clears after 8 s. */
.zoom-in { position: fixed; inset: 0; z-index: 6; overflow: hidden; background: #111; pointer-events: none; animation: wjr-zoom-gone 0.6s 8s forwards; }
.zoom-in__photo { position: absolute; transform-origin: 0 0; will-change: transform; }
.zoom-in__photo img { display: block; width: 100%; height: 100%; max-width: none; }
.zoom-in__mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); } /* the portfolio's darker mask, fading as it zooms out */
@keyframes wjr-zoom-gone { to { opacity: 0; visibility: hidden; } }
html.wjr-zoom .gallery.is-ready { animation: none; }
html.wjr-zoom .bar, html.wjr-zoom .gallery-controls { opacity: 0; animation: wjr-reveal 0.6s 8s forwards; }
html.wjr-zoom.wjr-zoom-done .bar, html.wjr-zoom.wjr-zoom-done .gallery-controls { opacity: 1; transition: opacity 0.8s ease; }

/* Photographs. Never cropped. Views switched by gallery.js: field (explore), grid, and the single-photo dialog. */
.gallery-wrap { position: relative; overflow-x: clip; } /* never wider than the screen, even mid-glide */
.gallery { --row: 140px; --zoom: 1; position: relative; }
.gallery--dense { --row: 90px; } /* big sets (e.g. Character Building): more per row */
/* Opens straight on the Scatter: with JavaScript on, the photographs stay hidden until gallery.js has laid the scatter out,
   then fade in – so the grid (the no-JavaScript layout) never flashes up first (William, 20 Nov 2026).
   If the script ever fails, they show anyway after 3 seconds. */
.js .gallery:not(.is-ready) { opacity: 0; animation: wjr-reveal 0s 3s forwards; }
.js .gallery.is-ready { animation: wjr-fade 0.4s ease; }
@keyframes wjr-reveal { to { opacity: 1; } }
.gallery__photos { margin: 0; padding: 0; list-style: none; }
.gallery__item { display: block; overflow: hidden; background: var(--rule); cursor: pointer; transform-origin: 0 0; -webkit-user-drag: none; }
.gallery__item img { width: 100%; height: auto; transition: transform 0.8s ease; -webkit-user-drag: none; }

/* Statement: same width in both views, so its text never re-wraps while it glides. */
.gallery__statement { width: min(84vw, 560px); margin: 0 auto; color: var(--soft); font-size: 15px; line-height: 1.65; text-align: center; text-shadow: 0 1px 18px var(--paper), 0 0 2px var(--paper); } /* statement: small, soft grey */
.gallery__statement-inner { transform-origin: 0 0; }
.gallery__statement p { margin: 0 0 18px; }
.gallery__statement p:last-child { margin-bottom: 0; }
.gallery__placeholder { color: var(--soft); font-style: italic; }

/* Grid: rows of equal height, each photo at its own shape, in file order. Zoom changes the row height. */
.gallery[data-view="grid"] { padding: 96px 0 104px; } /* room for the bar and the controls */
.gallery[data-view="grid"] .gallery__statement { padding: 0 0 56px; }
.gallery[data-view="grid"] .gallery__photos { display: flex; flex-wrap: wrap; gap: 4px; }
.gallery[data-view="grid"] li { flex: var(--r) 1 calc(var(--r) * var(--row) * var(--zoom)); }
.gallery[data-view="grid"] .gallery__photos::after { content: ""; flex: 999 1 0; } /* stops the last row stretching */

/* Field: an endless area you drag or swipe around. Positions are set by gallery.js. */
/* Field fills the whole screen; the page itself doesn't scroll. */
html.is-field { overflow: hidden; }
.gallery[data-view="field"] { position: fixed; inset: 0; overflow: hidden; touch-action: none; user-select: none; }
@media (pointer: coarse) { .gallery[data-view="field"] { cursor: grab; } }
.gallery[data-view="field"].is-dragging { cursor: grabbing; }
.gallery[data-view="field"] .gallery__statement { z-index: 1; }
.gallery[data-view="field"] li, .gallery[data-view="field"] .gallery__statement { position: absolute; top: 0; left: 0; margin: 0; transform-origin: 0 0; will-change: transform; }
.gallery[data-view="field"] .gallery__item { cursor: inherit; }

/* Controls (option D, split corners): views bottom-left, zoom + re-centre bottom-right. Small uppercase text. */
.gallery-controls { position: fixed; inset: auto 0 0; z-index: 4; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 0 12px 12px; pointer-events: none; }
.gallery-controls[hidden] { display: none; }
.gallery-controls > *, .solo__ui > * { pointer-events: auto; }
.views, .tools { display: flex; align-items: center; font: 500 12px Inter, system-ui, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; text-shadow: 0 0 12px var(--paper), 0 0 2px var(--paper); }
.views { gap: 12px; }
.tools { gap: 2px; }
.views a, .views button, .tools button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--soft); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.tools button { color: var(--ink); }
.views a:hover, .views button:hover, .tools button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.views a::before, .views button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0; transition: opacity 0.3s ease; }
.views button[aria-pressed="true"], .views a[aria-current] { color: var(--ink); }
.views button[aria-pressed="true"]::before, .views a[aria-current]::before { opacity: 1; }
.views a { text-decoration: none; }
.tools__level { min-width: 48px; color: var(--soft); text-align: center; letter-spacing: 0.12em; }
.tools__rule { width: 1px; height: 20px; margin: 0 10px; background: var(--rule); }
.gallery-controls svg, .solo svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.gallery-wrap:has(.gallery[data-view="grid"]) [data-action="recentre"], .gallery-wrap:has(.gallery[data-view="grid"]) .tools__rule { display: none; }

/* Project pages (William, 16 Nov 2026): a solid off-white bar across the top behind the name and menu, and all the
   controls at the bottom (views and zoom) together in one off-white pill in the middle of the bottom of the screen. */
.single-project .bar--over, .wjr-prints .bar--over { background: var(--paper); padding-bottom: 6px; } /* the print pages too (William, 16 Nov 2026) */
.single-project .gallery-controls { inset: auto auto 14px 50%; transform: translateX(-50%); flex-wrap: nowrap; justify-content: center; gap: 4px 18px;
	padding: 0 14px; background: var(--paper); border-radius: 999px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08); pointer-events: auto; white-space: nowrap; }
.single-project .gallery-controls .views, .single-project .gallery-controls .tools { text-shadow: none; }
.single-project .gallery-controls .views + .tools { padding-left: 18px; border-left: 1px solid var(--rule); }

/* Grid view only: the project's title and description above the photographs (for visitors and search engines).
   In the scatter they stay in the page, hidden from view. */
.gallery__about { width: auto; margin: 0; padding: 0 clamp(20px, 5vw, 72px) 56px; text-align: center; } /* full width with a little padding at the sides (William, 23 Nov 2026; was max 620px) */
.gallery__about h2 { margin: 0 0 18px; font-size: clamp(1.75rem, 6vw, 3rem); font-weight: 600; line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; }
.gallery__about-series { margin: 0 0 10px; color: var(--soft); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.gallery__about-text { color: var(--soft); font-size: 15px; line-height: 1.65; }
.gallery__about-text p { margin: 0 0 1em; }
.gallery__about-text p:last-child { margin: 0; }
.gallery:not([data-view="grid"]) .gallery__about { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Repeated photos fill the scatter so every project feels equally full; the grid shows each photo once. */
.gallery[data-view="grid"] .is-copy { display: none; }
.gallery[data-view="field"] .is-copy { transition: opacity 0.5s ease; }
.gallery[data-view="field"] .is-under { opacity: 0; pointer-events: none; } /* repeats that would sit under the title */

/* Single photograph: almost full screen, arrows either side. */
.solo { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.solo::backdrop { background: color-mix(in srgb, var(--paper) 97%, transparent); }
.solo__img { position: fixed; display: block; transform-origin: 0 0; }
.solo__ui > * { position: fixed; margin: 0; }
.solo__count { top: 16px; left: 24px; font-size: 16px; line-height: 48px; }
.solo__close { top: 16px; right: 16px; }
.solo .solo__prev, .solo .solo__next { bottom: 16px; min-width: 64px; font-size: 22px; }
.solo__prev { left: 16px; }
.solo__next { right: 16px; }
.solo__close, .solo__prev, .solo__next { min-width: 48px; min-height: 48px; padding: 0 18px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: 500 13px Inter, system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.solo__close:hover, .solo__prev:hover, .solo__next:hover { background: var(--rule); }
/* Single view: Buy print and Licence image (William, 15 Nov 2026), centred just under the photo – gallery.js sets the top (23 Nov 2026; was bottom right on a computer). */
.solo__actions { bottom: auto; top: auto; left: 50%; display: flex; gap: 8px; transform: translateX(-50%); }
.solo__actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: 600 11px Inter, system-ui, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.solo__actions a:first-child { background: var(--ink); color: var(--paper); }
.solo__actions a:hover { opacity: 0.85; }


@media (hover: hover) {
	.gallery__item:hover img { transform: scale(1.03); }
}

/* Paired photos (Transparent): the changed version sits on top, hidden, and slowly fades in on hover – and back out. */
.gallery__item--pair { position: relative; }
.gallery__item .gallery__after { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity 2s ease, transform 0.8s ease; }
.gallery__item--pair:focus-visible .gallery__after { opacity: 1; }
.solo__after { position: fixed; display: block; transform-origin: 0 0; opacity: 0; pointer-events: none; transition: opacity 2s ease; }
.solo__after.is-new { opacity: 0 !important; transition: none; } /* a fresh photo starts as the original */
.solo__after.is-shown { opacity: 1; } /* phones: fades in once the photo is open */
@media (hover: hover) {
	.gallery__item--pair:hover .gallery__after, .solo__img:hover + .solo__after { opacity: 1; }
}


/* ---------- Desktop ---------- */
@media (min-width: 900px) {
	:root { --head: 60px; }

	/* Portfolio: rows of 6, 5, 6, 5 spread over the whole screen, every other row shifted half a place. The places are wider
	   than they are tall by about one title's length, so the empty space between neighbouring titles is the same across as down. */
	.scatter { inset: calc(var(--head) + 3vh) 3vw 5vh; }
	.scatter li { left: calc(50% + var(--c) * 100cqw / var(--cols)); top: calc(50% + var(--r) * 100cqh / var(--rows)); } /* an even grid: each title in the middle of an equal share (23 Nov 2026) */
	.scatter a { min-height: 44px; font-size: clamp(10px, 0.78vw, 12px); }
	/* The panel photographs behind the titles (24 Nov 2026) were taken off computers the same day (William): titles only. */

	.bar { padding: 8px 20px; }
	.bar--over { padding-bottom: 28px; }
	.bar__menu { display: none; } /* desktop: the six links sit in a row instead */
	.bar__links { display: block; }
	.bar__links ul { display: flex; gap: 4px; }
	.gallery { --row: 240px; }
	.gallery--dense { --row: 150px; }
	.gallery[data-view="grid"] .gallery__photos { gap: 6px; }
	.solo .solo__prev, .solo .solo__next { top: 50%; bottom: auto; min-height: 80px; transform: translateY(-50%); }
	.solo__prev { left: 24px; }
	.solo__next { right: 24px; }
	.gallery-controls { padding: 0 20px 16px; }
}

/* ---------- Recognition – "Index with totals" (William, 18 Nov 2026, option 1 of 5) ---------- */
/* Title, then rows that read across: year · project · title ↗. (Totals strip removed, William, 18 Nov 2026.) */
main.page.page--recognition { max-width: 1180px; margin: 0 auto; padding: 32px 24px 80px; line-height: 1.5; }
.page--recognition h1 { margin: 0 0 8px; font-size: clamp(2.75rem, 12vw, 4rem); font-weight: 600; line-height: 0.92; letter-spacing: -0.03em; text-transform: uppercase; } /* set like the name in the header */
.rec__section { margin: 48px 0 0; scroll-margin-top: 16px; }
.rec__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.page--recognition h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.rec__list { margin: 0; padding: 0; list-style: none; }
.rec__row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.rec__year { grid-row: span 2; color: var(--soft); }
.rec__project { font-weight: 600; }
.rec__project:empty { display: none; }
.rec__arrow { display: none; }
.rec__row a { text-decoration: none; }
.rec__row a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rec__title a[href^="http"]::after { content: ' \2197'; color: var(--soft); } /* ↗ on phones */
/* WordPress's standard hidden-text class (text for screen readers only; WooCommerce uses it too). */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; margin: 0; clip-path: none; }
@media (min-width: 900px) {
	main.page.page--recognition { padding: 40px 32px 96px; }
	.page--recognition h1 { font-size: 64px; }
	.rec__section { margin-top: 64px; }
	.rec__row { grid-template-columns: 72px 220px minmax(0, 1fr) 24px; gap: 16px; align-items: baseline; padding: 14px 0; }
	.rec__year { grid-row: auto; }
	.rec__project:empty { display: block; }
	.rec__arrow { display: block; text-align: right; color: var(--soft); }
	.rec__title a[href^="http"]::after { content: none; }
}

/* ---------- About: an encyclopedia article laid out like Wikipedia's current desktop skin (Vector 2022) ----------
   (William, 19 Nov 2026, v0.60.0.) On the site's own bone background. One column: no Contents sidebar and no
   Appearance panel. Beside the title: a Contents button (left) and a language button (right), each opening a small menu.
   Serif title and section headings with a rule, sans-serif text, blue links, grey boxes. No Wikipedia name or logo. */
main.page.wiki { --wiki-line: #A2A9B1; --wiki-line-soft: #C8CCD1; --wiki-box: color-mix(in srgb, #EAECF0 55%, var(--paper)); --wiki-link: #3366CC; --wiki-meta: #54595D;
	--wiki-serif: "Linux Libertine", "Georgia", "Times", "Source Serif Pro", serif; --wiki-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
	max-width: none; margin: 0; padding: 0; color: #202122; font: 400 16px/1.6 var(--wiki-sans); }
main.page.wiki a { color: var(--wiki-link); text-decoration: none; } /* beats the site-wide main.page a { color: inherit } */
.wiki a:hover { text-decoration: underline; }
.wiki :focus-visible { outline: 2px solid var(--wiki-link); outline-offset: 1px; }

/* Title, tabs, tagline */
.wiki__page { max-width: 1100px; margin: 0 auto; padding: 8px 16px 64px; }
.wiki__head { margin: 8px 0 0; }
.wiki__titlebar { display: flex; align-items: center; gap: 8px; }
.wiki__titlebar .wiki__title { flex: 1; min-width: 0; }
/* Contents and language buttons with their menus */
.wiki__drop { position: relative; flex: none; }
.wiki__drop summary { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 6px; border-radius: 2px; color: #202122; font-size: 14px; font-weight: 700; list-style: none; cursor: pointer; }
.wiki__drop summary::-webkit-details-marker { display: none; }
.wiki__drop summary:hover { background: color-mix(in srgb, #202122 6%, transparent); }
.wiki__drop--lang summary { color: var(--wiki-link); }
.wiki__drop--lang summary svg:first-child { color: var(--wiki-link); }
.wiki__chev { transition: transform 0.15s ease; }
.wiki__drop[open] .wiki__chev { transform: rotate(180deg); }
.wiki__drop-panel { position: absolute; z-index: 20; top: calc(100% + 4px); min-width: 200px; max-height: 70vh; overflow-y: auto; margin: 0; padding: 8px 0; border: 1px solid var(--wiki-line); border-radius: 2px; background: var(--paper); box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.2); font-size: 14px; line-height: 1.4; list-style: none; }
.wiki__drop--toc .wiki__drop-panel { left: 0; width: 280px; }
.wiki__drop--lang .wiki__drop-panel { right: 0; display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); width: min(360px, 90vw); } /* 20 languages in two columns */
.wiki .wiki__drop-panel ul { margin: 0; padding: 0; list-style: none; }
.wiki__drop-panel li { margin: 0; }
.wiki__drop-panel a { display: block; padding: 6px 16px; }
main.page.wiki .wiki__drop-panel a[aria-current] { color: #202122; font-weight: 700; }
.wiki__drop-title { margin: 0 0 4px; padding: 0 16px 6px; border-bottom: 1px solid var(--wiki-line-soft); font-weight: 700; }
.wiki__toc-sub a { padding-left: 32px; }
.wiki h1, .wiki h2 { font-family: var(--wiki-serif); font-weight: 400; color: #000000; }
.wiki__title { margin: 0; font-size: 1.8em; line-height: 1.375; letter-spacing: 0; text-transform: none; border: 0; }
.wiki__tabs { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--wiki-line); font-size: 14px; overflow-x: auto; }
.wiki .wiki__tabs ul { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.wiki__tabs li { margin: 0; }
.wiki__tabs a { display: block; padding: 8px 0 6px; border-bottom: 2px solid transparent; white-space: nowrap; }
main.page.wiki .wiki__tabs .is-selected a { color: #202122; border-bottom-color: #202122; }
.wiki__tabs .is-selected a:hover { text-decoration: none; }
.wiki__tagline { margin: 8px 0 12px; color: var(--wiki-meta); font-size: 0.8em; }
.wiki__hatnote { margin: 0 0 0.6em; padding-left: 1.6em; font-style: italic; }

/* Article */
.wiki__body { overflow-wrap: break-word; }
.wiki h2 { overflow: hidden; margin: 1em 0 0.25em; padding: 0 0 2px; font-size: 1.5em; line-height: 1.375; border-bottom: 1px solid var(--wiki-line); }
.wiki h3 { margin: 0.3em 0 0; padding-top: 0.5em; font-size: 1.2em; font-weight: 700; line-height: 1.6; color: #000000; }
.wiki p { margin: 0.5em 0 1em; }
.wiki__body ul, .wiki__body ol { margin: 0.3em 0 0.5em 1.6em; padding: 0; }
.wiki__body li { margin-bottom: 0.1em; }
.wiki__list li { margin-bottom: 0.5em; }
.wiki__cite { font-size: 0.75em; line-height: 1; font-weight: 400; font-style: normal; white-space: nowrap; }
.wiki__cite:target { background: #EAF3FF; }
/* Infobox */
.wiki__infobox { box-sizing: border-box; width: 100%; margin: 0.5em 0 1em; padding: 0.2em; border: 1px solid var(--wiki-line); border-spacing: 3px; background: var(--wiki-box); color: #202122; font-size: 88%; line-height: 1.5em; }
.wiki__infobox .wiki__infobox-title { width: auto; padding: 0.2em; font-size: 125%; font-weight: 700; line-height: 1.2; text-align: center; }
.wiki__infobox th, .wiki__infobox td { padding: 0.2em 0.4em 0.2em 0.2em; text-align: left; vertical-align: top; }
.wiki__infobox th { width: 36%; padding-right: 0.65em; font-weight: 700; }
.wiki__infobox-image { text-align: center !important; }
.wiki__infobox-image img { display: block; width: 100%; max-width: 250px; height: auto; margin: 0 auto; }
.wiki__infobox-caption { padding-top: 0.2em; font-size: 95%; line-height: 1.4; text-align: center; }
/* Thumbnails */
.wiki__thumb { box-sizing: border-box; width: 100%; margin: 0.5em 0 1.3em; padding: 3px; border: 1px solid var(--wiki-line-soft); background: var(--wiki-box); }
.wiki__thumb img { width: 100%; height: auto; border: 1px solid var(--wiki-line-soft); }
.wiki__thumb figcaption { padding: 3px; font-size: 88%; line-height: 1.4; }
/* Lists, references, navigation box, categories */
.wiki__cols { columns: 1; }
.wiki__refs { columns: 30em; column-gap: 2em; font-size: 90%; }
.wiki__refs li { break-inside: avoid; margin-bottom: 0.1em; }
.wiki__refs li:target { background: #EAF3FF; }
.wiki__back { font-weight: 700; }
.wiki__back sup { font-size: 0.8em; }
.wiki__navbox { clear: both; margin: 1.5em 0 1em; border: 1px solid var(--wiki-line); padding: 2px; font-size: 88%; text-align: center; }
.wiki__navbox summary { position: relative; display: block; padding: 0.25em 4em; background: #CCCCFF; font-weight: 700; list-style: none; cursor: pointer; }
.wiki__navbox summary::-webkit-details-marker { display: none; }
.wiki__navbox-hide { position: absolute; right: 0.5em; top: 0.25em; color: var(--wiki-link); font-weight: 400; }
.wiki__navbox-hide::before { content: attr(data-hide); }
.wiki__navbox:not([open]) .wiki__navbox-hide::before { content: attr(data-show); }
.wiki__navbox table { width: 100%; margin-top: 2px; border-spacing: 0 2px; }
.wiki__navbox th { width: 1%; padding: 0.25em 1em; background: #DDDDFF; text-align: right; white-space: nowrap; }
.wiki__navbox td { padding: 0.25em 0.5em; background: color-mix(in srgb, #F8F9FA 70%, var(--paper)); text-align: left; }
.wiki__navbox tr:nth-child(even) td { background: color-mix(in srgb, #F2F2F2 60%, var(--paper)); }
.wiki__cats { clear: both; margin: 1em 0; padding: 5px; border: 1px solid var(--wiki-line); background: var(--wiki-box); font-size: 88%; }
.wiki__cats-label { font-weight: 400; }
.wiki .wiki__cats ul { display: inline; margin: 0; padding: 0; list-style: none; }
.wiki__cats li { display: inline-block; margin: 0.125em 0; padding: 0 0.5em; border-left: 1px solid var(--wiki-line); line-height: 1.25em; }
.wiki__cats li:first-child { padding-left: 0.25em; border-left: 0; }
.wiki__lastmod { margin: 1.5em 0 0; padding-top: 1em; border-top: 1px solid var(--wiki-line-soft); color: var(--wiki-meta); font-size: 12px; }
@media (min-width: 720px) {
	.wiki__infobox { float: right; clear: right; width: 22em; margin: 0.5em 0 1em 1em; }
	.wiki__thumb { float: right; clear: right; width: 222px; margin: 0.5em 0 1.3em 1.4em; }
	.wiki__cols { columns: 2; column-gap: 2em; }
	.wiki__cols li { break-inside: avoid; }
}

/* ---------- Licensing – option 5 "Pick a photograph first", as drawn (William, 18 Nov 2026, theme v0.45.0; page-licensing.php).
   One screen: a strip of photographs (the chosen one large in the middle, the others smaller and fainter towards the sides),
   its name underneath, and one row along the bottom – title, Use, Where, How long, Name, Email, Send – on the page's own
   background above a thin line. Phones: the page scrolls, the fields go two to a row.
   v0.46.0: no frame round the chosen photograph, no title under the strip; a full-screen chooser for the whole project.
   v0.48.0: no "View full project" button – the photographs themselves open it. ---------- */
main.page.page--licensing { max-width: none; margin: 0; padding: 0; line-height: 1.5; }
.page--licensing a { text-underline-offset: 4px; }
.lic-form { display: flex; flex-direction: column; }
.lic-pick { position: relative; min-width: 0; margin: 0; padding: 8px 0 0; border: 0; }
.lic-strip { position: relative; display: flex; align-items: center; gap: 18px; overflow-x: auto; padding: 16px; scrollbar-width: none; }
.lic-strip::-webkit-scrollbar { display: none; }
.lic-strip__item { position: relative; flex: none; cursor: default; transform-origin: center; will-change: transform, opacity; }
.lic-strip__item.is-centre, .lic-strip__item.is-only { cursor: pointer; } /* only the one in the middle can be clicked (v0.48.1) */
.lic-strip__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lic-strip__item img { width: auto; height: 46svh; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22); }
.lic-strip__item input:focus-visible + img { outline: 3px solid var(--ink); outline-offset: 8px; }
.lic-strip__arrow { position: absolute; z-index: 1; top: 50%; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-top: -28px; padding: 0; border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--paper) 70%, transparent); color: var(--ink); cursor: pointer; transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease; } /* clean and elegant: a fine chevron in a hairline circle (William, v0.49.3) */
.lic-strip__arrow:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.lic-strip__arrow svg { transition: transform 0.35s ease; }
.lic-strip__arrow--prev svg { margin-right: 2px; }
.lic-strip__arrow--next svg { margin-left: 2px; }
.lic-strip__arrow--prev:hover svg { transform: translateX(-2px); }
.lic-strip__arrow--next:hover svg { transform: translateX(2px); }
.lic-strip__arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lic-strip__arrow--prev { left: 12px; }
.lic-strip__arrow--next { right: 12px; }
.lic-strip__arrow[hidden] { display: none; }
/* One photograph chosen (v0.47.0): only it shows, centred, full size; the other projects, arrows and "View full project" go */
.is-chosen .lic-strip { justify-content: center; padding-left: 16px !important; padding-right: 16px !important; overflow: hidden; }
.is-chosen .lic-strip__item:not(.is-only), .is-chosen .lic-strip__arrow { display: none; }
.is-chosen .lic-strip__item { transform: none !important; opacity: 1 !important; }

/* "View full project": every photograph of the project, uncropped in rows of equal height; the one in the strip is marked */
.lic-proj { box-sizing: border-box; width: 100vw; max-width: none; height: 100svh; max-height: none; margin: 0; padding: 0 16px 40px; border: 0; background: var(--paper); color: var(--ink); overflow-y: auto; }
.lic-proj:focus { outline: none; }
.lic-proj__photo:focus:not(:focus-visible) { outline: none; }
.lic-proj::backdrop { background: var(--paper); }
.lic-proj__top { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 16px 0 14px; background: var(--paper); }
.lic-proj__top h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.lic-proj__top p { flex: 1; margin: 0; color: var(--soft); font-size: 14px; }
.lic-proj__close { min-height: 44px; padding: 0 20px; border: 0; background: var(--ink); color: var(--paper); font: 600 12px Inter, system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.lic-proj__close:hover { background: var(--soft); }
.lic-proj__next:disabled { opacity: 0.3; cursor: default; }
.lic-proj__next:disabled:hover { background: var(--ink); }
/* Ticked photographs (several can be chosen, 24 Nov 2026, 20:30). */
.lic-proj__photo { position: relative; }
.lic-proj__photo[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 3px; }
.lic-proj__photo[aria-pressed="true"]::after { content: ""; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink)
	url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.lic-strip__item.is-multi { display: flex; align-items: center; gap: 12px; }
.lic-strip__more { width: auto; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22); cursor: pointer; }
.lic-proj__grid { display: flex; flex-wrap: wrap; gap: 8px; color: var(--soft); font-size: 15px; }
.lic-proj__photo { --h: 96px; flex: calc(var(--r) * var(--h)) 1 calc(var(--r) * var(--h)); max-width: calc(var(--r) * var(--h) * 1.6); padding: 0; border: 0; background: none; cursor: pointer; }
.lic-proj__photo img { width: 100%; height: auto; transition: opacity 0.2s ease; }
.lic-proj__photo:hover img { opacity: 0.8; }
.lic-proj__photo:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }


/* The row along the bottom */
.lic-bar { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; padding: 12px 16px 24px; } /* no separator line (William, v0.47.0) */
.is-ready:not(.is-chosen) .lic-bar:not(.lic-bar--done) { display: none; } /* only once a photograph has been chosen (William, v0.50.0) */
.is-chosen .lic-bar { animation: lic-rise 0.5s ease both; }
@keyframes lic-rise { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .is-chosen .lic-bar { animation: none; } }
.lic-bar__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; outline: 0; }
.lic-bar__head h1 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.lic-bar__head p { margin: 0; color: var(--soft); font-size: 13px; }
.lic-bar__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; }
.lic-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: var(--soft); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.lic-field select, .lic-field input { box-sizing: border-box; width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 0; background: transparent; color: var(--ink); font: 400 14px Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; transition: border-color 0.2s ease; }
.lic-field select { appearance: none; padding-right: 32px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23777' stroke-width='1.4'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center; cursor: pointer; }
.lic-field select option { background: var(--paper); color: var(--ink); }
.lic-field select:hover, .lic-field input:hover { border-color: var(--soft); }
.lic-field :focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.lic-field [aria-invalid="true"] { border: 2px solid #B00020; }
.lic-send { grid-column: 1 / -1; min-height: 44px; padding: 0 26px; border: 0; background: var(--ink); color: var(--paper); font: 600 12px Inter, system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: background-color 0.2s ease; }
.lic-send:hover { background: var(--soft); }
.lic-send:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.lic-check { margin: 0; color: #B00020; font-size: 15px; font-weight: 600; }
.lic-check:empty { display: none; }
.lic__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lic__problem { padding: 10px 14px; border: 2px solid #B00020; color: #B00020; font-size: 14px; font-weight: 600; outline: 0; }
.lic__problem ul { margin: 0; padding-left: 18px; }

@media (min-width: 900px) {
	/* Full screen: the strip takes whatever room the row leaves */
	.js main.page.page--licensing { height: calc(100svh - var(--head)); overflow: hidden; }
	.js .admin-bar main.page.page--licensing { height: calc(100svh - var(--head) - 32px); }
	.js .lic-form { height: 100%; }
	.js .lic-pick { flex: 1; min-height: 0; display: flex; flex-direction: column; }
	.js .lic-strip { flex: 1; min-height: 0; }
	.lic-strip { gap: 22px; padding: 16px 40px; }
	.js .lic-strip__item img { height: min(56svh, calc(100svh - var(--head) - 260px)); }
	.lic-strip__arrow--prev { left: 32px; } /* back at the sides of the screen (William, v0.49.5) */
	.lic-strip__arrow--next { right: 32px; }
	.lic-bar { padding: 12px 40px 24px; }
	.lic-bar__fields { gap: 10px; }
	.lic-send { min-height: 40px; }
	.lic-proj { padding: 0 40px 48px; }
	.lic-proj__top { padding: 22px 0 18px; }
	.lic-proj__grid { gap: 10px; }
	.lic-proj__photo { --h: 150px; } /* smaller, so more fit on the screen (William, v0.48.4) */
	.lic-bar__head h1 { font-size: 26px; }
	.lic-bar__fields { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; }
	.lic-send { grid-column: auto; }
}

/* Licensing – scrolling bar of logos under the strip (William, 22 Nov 2026, v0.76.0; parts/licensing-logos.php).
   One light grey, no names underneath (William, 22 Nov 2026), slow drift (about 40 px a second), pauses on hover; edges fade out.
   Goes once a photograph is chosen. Motion off: still, and the row can be scrolled sideways by hand. */
.logos { flex: none; overflow: hidden; padding: 10px 0 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.is-chosen .logos { display: none; }
.logos__track { display: flex; width: max-content; animation: logos-loop var(--loop, 240s) linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logos__list { display: flex; align-items: center; gap: 40px; margin: 0; padding: 0 20px; list-style: none; }
.logos__item { display: flex; align-items: center; }
.logos__item img { display: block; width: auto; height: auto; max-height: 30px; max-width: 100px; filter: brightness(0.86); } /* a touch darker than the files' #BDB8AE, about #A29E95 (William, 22 Nov 2026) */
@keyframes logos-loop { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.logos { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
	.logos__track { animation: none; }
	.logos__list[aria-hidden] { display: none; }
}
/* Phones: one screen too while choosing (the page only scrolls once the fields appear) */
@media (max-width: 899px) {
	.js main.page.page--licensing:has(.logos):not(:has(.is-chosen)) { display: flex; flex-direction: column; height: calc(100svh - var(--head)); overflow: hidden; }
	.js .page--licensing:has(.logos):not(:has(.is-chosen)) .lic-form { flex: 1; min-height: 0; }
	.js .page--licensing:has(.logos):not(:has(.is-chosen)) .lic-pick { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
	.js .page--licensing .lic-form:not(.is-chosen) .lic-strip__item img { height: min(46svh, calc(100svh - var(--head) - 200px)); }
}
@media (min-width: 900px) {
	.logos { padding: 8px 0 24px; }
	.logos__list { gap: 56px; padding: 0 28px; }
	.logos__item img { max-height: 46px; max-width: 150px; }
}
@media (min-width: 900px) and (max-height: 700px) {
	.logos__item img { max-height: 34px; max-width: 110px; }
}

/* ---------- Contact (William, 16 Nov 2026): email and phone large and centred, small icons underneath ---------- */
main.page.page--contact { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: none; min-height: calc(100svh - var(--head) - 8px); margin: 0; padding: 40px 20px 15vh; text-align: center; }
.page--contact h1 { margin: 0 0 28px; color: var(--soft); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.contact__line { margin: 0 0 10px; font-size: clamp(1.15rem, 4.5vw, 1.75rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact__line a { color: var(--ink); text-decoration: none; }
.contact__line a:hover { color: var(--soft); }
.contact__social { display: flex; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.contact__social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--soft); }
.contact__social a:hover { color: var(--ink); }
.contact__social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.page--contact a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ---------- Basic page fallback ---------- */
main.page { max-width: 720px; margin: 0 auto; padding: 48px 24px; line-height: 1.6; }
main.page a, .gallery__statement a { color: inherit; }

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Privacy Policy + Returns links in the prints section (William, 24 Nov 2026) – wjr_legal_links() in inc/prints.php.
   Small, quiet, the colour of the text around them (so they follow the viewer's wall colour). */
.legal { position: relative; z-index: 1; display: flex; justify-content: center; gap: 22px; padding: 40px 16px 28px; font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.legal a { color: inherit; opacity: 0.55; text-decoration: none; transition: opacity 0.2s ease; }
.legal a:hover, .legal a:focus-visible { opacity: 1; }
.legal--fixed { position: fixed; left: 0; right: 0; bottom: 12px; z-index: 3; padding: 0; } /* phones: a centred row of its own under the stack */
body:has(.legal--fixed) .stack.is-live { padding-bottom: 44px; }
.legal--spread { padding-bottom: 0; }
@media (min-width: 900px) { .legal--fixed { right: auto; left: 48px; bottom: 20px; justify-content: flex-start; } body:has(.legal--fixed) .stack.is-live { padding-bottom: 20px; } }

/* ---------- Mobile check (William, 24 Nov 2026): spacing and overlap fixes found at 390 px and 360 px ---------- */
/* Project pages: a space between the title and its year in the header (the link lays its parts out side by side, which drops the space). */
.bar__year { margin-left: 0.4em; }
/* The phone menu opens just under its own Menu button, however tall the header is (it covered the button on Licensing). */
.bar__menu { position: relative; }
.bar__menu[open] ul { top: 100%; right: 0; z-index: 10; }
@media (max-width: 599px) {
	/* Project pages: the controls pill fits the screen (it was 469 px wide, cut off at both sides). */
	.single-project .gallery-controls { gap: 4px 6px; padding: 0 6px; }
	.single-project .gallery-controls .views + .tools { padding-left: 6px; }
	.single-project .views, .single-project .tools { font-size: 11px; letter-spacing: 0.08em; }
	.single-project .views { gap: 0; }
	.single-project .views a, .single-project .views button { gap: 5px; padding: 0 5px; }
	.single-project .tools button { min-width: 40px; padding: 0 4px; }
	/* About: the links box at the foot stacks each heading over its links (the heading column took most of the width). */
	.wiki__navbox table, .wiki__navbox tbody, .wiki__navbox tr, .wiki__navbox th, .wiki__navbox td { display: block; width: auto; }
	.wiki__navbox th { text-align: center; white-space: normal; }
	.wiki__navbox td { text-align: center; }
}
@media (max-width: 374px) { .single-project .tools__level { display: none; } } /* the narrowest phones: − and + stay, the 100% readout goes */


/* ---------- Portfolio: invisible fields + sticky bubble (William, 24 Nov 2026, v0.90.0) – front-page.php, assets/scatter.js ----------
   Computers: the background is always a photograph (it opens on one from Projects → Homepage start, then cross-fades from project
   to project), so titles and menu are always white. The screen is shared out into one invisible field per title; in a field the
   title and year grow with a slight bounce and are drawn a little towards the mouse. The other titles stay as they are. */
@media (min-width: 900px) {
	html:has(.scatter-page) .bar, html:has(.scatter-page) .scatter { --ink: #FFFFFF; --soft: rgba(255, 255, 255, 0.72); }
	.scatter__bg { opacity: 1; }
	.scatter__bg img { opacity: 0; transition: opacity 0.7s ease; }
	.scatter__bg img.is-shown { opacity: 1; }
	.scatter__bg img.is-start { width: 100%; height: 100%; object-fit: cover; } /* until scatter.js sizes it */
	.scatter li.is-near { z-index: 3; }
	html:has(.scatter-page) .scatter a { scale: 1; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); transition: scale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.7s ease; }
	html:has(.scatter-page) .scatter li.is-near a { scale: var(--grow, 1.6); } /* set per title by scatter.js so it never reaches its neighbours (William, 24 Nov 2026; was 2.4) */
	.scatter-page.is-field { cursor: pointer; }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) {
	html:has(.scatter-page) .scatter a { transition: color 0.7s ease; }
	.scatter__bg img { transition: none; }
}
