
/********************************************************************
 * LOCAL CSS DECLARATIONS
 * Author Devona LLC. http://devona.com/
 * Written by John James <john.james@devona.com>
 * ---------------------------------------------------------------
 * Classes: open, fauxcus, active, johnjames, portfolio,
 *   imagematch, context, intro, stretch, mobile-break,
 *   title-card, job, press, college, headding,
 *   skills, technologies, industries, acknowledgements
 * Layout values the renderer writes on an element's style attribute
 * (api: AppBundle\Content\Layout):
 *   --w / --mw  width on desktop / phone   25%, 50%, ...
 *   --pt / --pb space before / after, in steps of --space
 *   --pl / --pr space left / right, the same steps
 *   --g         a section's gap between blocks, in steps of --space
 *   --f / --mf  --w / --mw as a fraction (for the gap arithmetic)
 *   --h         height                      100vh, 66.666vh
 *   --fit       object-fit                  contain
 *   --pos       object-position             top, bottom, right
 *   --bg        background (color and/or image), --fg text color,
 *   --link      link color: the color fields of sections, blurbs, blocks
 ********************************************************************/

/* Reset ------------------------------------------------------------*/
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
}
ol, ul { list-style: none; }
q { quotes: none; }
:focus { outline: none; }

/* Fonts ------------------------------------------------------------*/
@font-face { font-family: "DIN"; font-weight: 100; font-style: normal;
	src: url("/assets/fonts/9972265f-63aa-4e68-9eef-e571f0072395.woff2") format("woff2"), url("/assets/fonts/04c0d1f1-0fdf-4866-a034-1b5d1ba44a94.woff") format("woff"); }
@font-face { font-family: "DIN"; font-weight: 100; font-style: italic;
	src: url("/assets/fonts/356e99d6-7e95-44af-af40-0334ac4dda2c.woff2") format("woff2"), url("/assets/fonts/11143434-96a9-4740-a138-f16d49263f2f.woff") format("woff"); }
@font-face { font-family: "DIN"; font-weight: 200; font-style: normal;
	src: url("/assets/fonts/de1216be-00c2-43c0-9c45-3e7f925eb519.woff2") format("woff2"), url("/assets/fonts/bc176270-17fa-4c78-a343-9fe52824e501.woff") format("woff"); }
@font-face { font-family: "DIN"; font-weight: 200; font-style: italic;
	src: url("/assets/fonts/26f280d7-8bd0-4192-90f1-3c3cb4cde341.woff2") format("woff2"), url("/assets/fonts/e1c997f3-fb27-4289-abc6-5ef059e51723.woff") format("woff"); }
@font-face { font-family: "DIN"; font-weight: 300; font-style: normal;
	src: url("/assets/fonts/44e7b0fa-6c8d-43c2-b19e-f1e3ce9ea57c.woff2") format("woff2"), url("/assets/fonts/c5a7f89e-15b6-49a9-8259-5ea665e72191.woff") format("woff"); }
@font-face { font-family: "DIN"; font-weight: 300; font-style: italic;
	src: url("/assets/fonts/f37f8098-b16e-405f-ab24-bd595a5d5762.woff2") format("woff2"), url("/assets/fonts/c5635d60-91fa-4e4b-8a51-41c97fc744c3.woff") format("woff"); }
@font-face { font-family: "Devona Display"; font-weight: normal; font-style: normal; font-display: swap;
	src: url("/assets/fonts/DevonaDisplay-Regular.woff2") format("woff2"), url("/assets/fonts/DevonaDisplay-Regular.woff") format("woff"); }

/* Page -------------------------------------------------------------*/
:root { --space: 6rem; }
html {
	font-size: 10px;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: subpixel-antialiased;
}
body {
	background: #111011;
	color: #111011;
	font-family: "DIN";
	font-size: 2rem;
	font-weight: 200;
	line-height: 1.2em;
	overflow-x: hidden;
}
body.open { overflow: hidden; }
main {
	position: fixed;
	top: 0;
	left: 100vw;
	z-index: 100;
	width: calc(100% - 4rem);
	height: 100vh;
	overflow-x: hidden;
	overflow-y: scroll;
	background: transparent;     /* the cards show through wherever a section has no background of its own */
	/*box-shadow: -2px 0 2px rgba(0, 0, 0, .25);*/
	transition: left .5s;   /* the title's flip times itself to this: FLIP_DURATION in local.js */
}
.open main { left: 4rem; }
.resizing main { transition: none; }     /* local.js, while the window is resized: the drawer keeps to its place */

/* Nav --------------------------------------------------------------*/
nav {
	font-size: 0;
	line-height: 0;
}
/* The site name in Devona Display, sized and placed like the title images it replaced: --img-h is the
   height the image had ("contain" in this box), --cap and --pad the image's letter height and the space
   under its letters, as fractions of that height. --ratio is how many times wider than --img-h the name is
   set in the font (a little more than the images' 866:167 = 5.186), so where the width decides its size
   (phones) it fits its box: the text is painted with a background (below), which ends at the box's edge. With line-height .7em (the font's
   cap height) the baseline sits at the bottom of the line box. Ligatures are asked for explicitly because
   browsers may drop them when letter-spacing is not 0. */
nav #nav-title {
	--ratio: 5.3;
	--img-h: min(13vh, calc((100vw - 6rem) / var(--ratio)));
	--cap: .988;
	--pad: 0;
	position: fixed;
	top: 36.5vh;
	left: 3rem;
	z-index: 100;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: calc(100% - 6rem);
	height: 13vh;
	padding-bottom: calc(var(--img-h) * var(--pad));
	/* the cards' head/subhead colors, split exactly where the boundary between two cards crosses the name
	   (local.js trackScroll sets --title-above/--title-below and --title-split, from the top of this box), so
	   the color wipes across it with the cards like their head and subhead: the text is painted with the gradient
	   (background-clip: text). White while open, below. */
	color: transparent;
	background: linear-gradient(to bottom, var(--title-above, #fff) var(--title-split, 100%), var(--title-below, #fff) var(--title-split, 100%));
	-webkit-background-clip: text;
	background-clip: text;
	font-family: "Devona Display";
	font-size: calc(var(--img-h) * var(--cap) / .7);
	font-weight: normal;
	font-variant-ligatures: common-ligatures;
	letter-spacing: -.05em;
	line-height: .7em;
	white-space: nowrap;
	pointer-events: none;
	transform-origin: left bottom;
	/* no transition: local.js animates the flip between the closed and open layouts (TITLE FLIP) */
}
nav.johnjames #nav-title {
	--ratio: 5.45;
	--img-h: min(15vh, calc((100vw - 6rem) / var(--ratio)));
	--cap: .623;
	--pad: .181;
	height: 15vh;
}
.open nav #nav-title {
	--img-h: min(2rem, calc(36.5vh / var(--ratio)));
	color: #fff;
	background: none;
	justify-content: flex-end;
	width: 36.5vh;
	height: 2rem;
	transform: rotate(-90deg);
}
/* breadcrumb (local.js): " :: " separated, in a window that takes the rest of the title's line and scrolls
   along it (no scrollbar); an end with entries out of sight fades. The padding (cancelled by the margin)
   keeps the window from clipping the text's shadow and anything below the baseline. */
#nav-title-line {
	display: flex;
	align-items: flex-end;
	min-width: 0;
	max-width: 100%;
}
#nav-title-name { flex: none; }
#breadcrumb {
	--fade-start: 0em;
	--fade-end: 0em;
	display: block;
	flex: 0 1 auto;
	min-width: 0;
	margin: -.1em 0 -.3em;
	padding: .1em 0 .3em;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	white-space: nowrap;
	pointer-events: auto;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
	mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
}
#breadcrumb::-webkit-scrollbar { display: none; }
#breadcrumb.fade-start { --fade-start: 1em; }
#breadcrumb.fade-end { --fade-end: 1em; }
#breadcrumb button {
	all: unset;
	cursor: pointer;
	opacity: .5;
}
#breadcrumb button:hover { opacity: 1; }
.breadcrumb-divider { opacity: .5; }
.breadcrumb-item { display: inline-block; }
/* a new entry that pushes the title along slides in from beyond the title's end, clipped there (local.js) */
#nav-title.trail-entering { overflow: hidden; }
/* a new entry when the trail fits and the name stays put (phones): it slides in from the window's end */
.breadcrumb-new { animation: breadcrumb-in .4s ease-out; }
@keyframes breadcrumb-in { from { transform: translateX(100%); } }
#breadcrumb button:focus-visible { outline: 1px solid; }
/* The page scrolls only the cards (main is fixed). local.js scrolls them itself and lands them in place, by
   the same rules with a mouse wheel, a trackpad or a finger (CARD SCROLL, TOUCH SCROLL): no CSS snapping. */
/* each card's z-index is set in base.html.twig, earlier cards higher */
nav a {
	position: relative;
	display: block;
	width: 100vw;
	height: 102vh;
	overflow: hidden;
	background: #111011;
}
nav a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(17, 16, 17, .85);
	transition: background-color 2s;
}
body:not(.open) nav a:is(:hover, :focus, .fauxcus)::before { background: rgba(17, 16, 17, 0); }
/* dimming and undimming as the drawer opens and closes take as long as its slide (main, left .5s) */
.sliding nav a::before { transition-duration: .5s; }
nav a img,
nav a video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* the card's zoom (2026-11-20, api nav_zoom as --nz), from where its position puts the picture */
	transform: scale(var(--nz, 1));
	transform-origin: var(--pos, 50% 50%);
}
nav a .nav-head,
nav a .nav-subhead {
	display: block;
	position: fixed;
	z-index: 1;
	width: 100%;
	padding: 0 calc(50% - 33.8vh - 6rem);
	overflow-y: hidden;
	color: var(--nav-color, #fff);     /* the card's own color, set in the editor (base.html.twig) */
	line-height: 1em;
	text-align: center;
	/* fade back in as the drawer closes, waiting so it ends with the drawer's slide (main's left .5s) */
	transition: opacity .325s .175s;
}
/* fade out as the drawer opens, starting with it */
.open nav a .nav-head,
.open nav a .nav-subhead {
	opacity: 0;
	transition: opacity .325s;
}
nav a .nav-head {
	top: 50vh;
	color: var(--nav-head-color, #fff); /* the card's second color (editor); white without one */
	margin-top: .5rem;
	font-size: 1.5rem;
	font-weight: 200;
	letter-spacing: .2rem;
	text-transform: uppercase;
}
nav a .nav-subhead {
	top: calc(50vh + 2.2rem);
	margin-top: 1rem;
	font-size: 4.2rem;
	font-weight: 300;
}

/* The page's first scroll (local.js INTRO): the name and the heads hidden while it runs, faded in over 1s as it
   lands (.intro-fade); every card dimmed as it starts, the dimming going over the whole scroll (.intro-undim,
   3s: INTRO_DURATION), gone by the time it reaches the first card */
.intro nav #nav-title,
.intro nav a :is(.nav-head, .nav-subhead) { opacity: 0; }
.intro-fade nav #nav-title,
.intro-fade nav a :is(.nav-head, .nav-subhead) { transition: opacity 1s; }
.intro nav a::before { background: rgba(17, 16, 17, .85) !important; transition: none !important; }
.intro.intro-undim nav a::before { background: rgba(17, 16, 17, 0) !important; transition: background-color 3s linear !important; }

/* Ripples (local.js RIPPLES) across the site name and the head and subhead in sight, each letter back as it
   was behind them. local.js sets, from each one's own box, the group's visual center (--rx/--ry) and how far
   along the fade's direction (--angle) its gradient line starts after the group's start (--off), and the
   distance from the center to the group's farthest corner (--rmax) and the group's length along the fade's
   direction (--span).
   - the rainbow flash (nav.rainbow): each letter goes once around the hue wheel, starting from its own color
     (--base; the rings are its hue turned on in sevenths); white, with no hue, counts as red. The text is
     painted with the gradient (background-clip: text): the rings over the element's own color.
   - the fade (nav.fade): a band half as wide as the name (--name-width) that fades the letters it crosses (a
     mask), swiping across the group in --angle's direction. */
@property --ripple { syntax: "<number>"; inherits: false; initial-value: 0; }
@keyframes ripple { from { --ripple: 0; } to { --ripple: 1; } }
body:not(.open) nav.ripple :is(#nav-title, a.ripple .nav-head, a.ripple .nav-subhead) { animation: ripple .5s linear; }

body:not(.open) nav.rainbow :is(#nav-title, a.ripple .nav-head, a.ripple .nav-subhead) {
	--band: calc(var(--rmax) / 4);
	--r: calc(var(--ripple) * (var(--rmax) + 7 * var(--band)));
	--rings: radial-gradient(circle at var(--rx) var(--ry),
		transparent calc(var(--r) - 7 * var(--band)),
		hsl(from var(--base) calc(h + 308.6) 100% 58%) calc(var(--r) - 6 * var(--band)),
		hsl(from var(--base) calc(h + 257.1) 100% 58%) calc(var(--r) - 5 * var(--band)),
		hsl(from var(--base) calc(h + 205.7) 100% 58%) calc(var(--r) - 4 * var(--band)),
		hsl(from var(--base) calc(h + 154.3) 100% 58%) calc(var(--r) - 3 * var(--band)),
		hsl(from var(--base) calc(h + 102.9) 100% 58%) calc(var(--r) - 2 * var(--band)),
		hsl(from var(--base) calc(h + 51.4) 100% 58%) calc(var(--r) - var(--band)),
		transparent var(--r));
	background: var(--rings), linear-gradient(var(--base), var(--base));
	-webkit-background-clip: text;
	background-clip: text;
}
body:not(.open) nav.rainbow a.ripple :is(.nav-head, .nav-subhead) { color: transparent; }
body:not(.open) nav.rainbow a.ripple .nav-head { --base: var(--nav-head-color, #fff); }
body:not(.open) nav.rainbow a.ripple .nav-subhead { --base: var(--nav-color, #fff); }
/* the name keeps its split between two cards' colors under the rings; its rings start from the upper card's */
body:not(.open) nav.rainbow #nav-title {
	--base: var(--title-above, #fff);
	background: var(--rings), linear-gradient(to bottom, var(--title-above, #fff) var(--title-split, 100%), var(--title-below, #fff) var(--title-split, 100%));
	-webkit-background-clip: text;
	background-clip: text;
}

body:not(.open) nav.fade :is(#nav-title, a.ripple .nav-head, a.ripple .nav-subhead) {
	--band: calc(var(--name-width) / 4);    /* half the band: the band, opaque edge to opaque edge, is half the name's width */
	/* how far along from the group's start the band's front edge is, then from this one's own line's start */
	--r: calc(var(--ripple) * (var(--span) + 2 * var(--band)) - var(--off));
	-webkit-mask-image: linear-gradient(var(--angle),
		#000 calc(var(--r) - 2 * var(--band)), rgba(0, 0, 0, .25) calc(var(--r) - var(--band)), #000 var(--r));
	mask-image: linear-gradient(var(--angle),
		#000 calc(var(--r) - 2 * var(--band)), rgba(0, 0, 0, .25) calc(var(--r) - var(--band)), #000 var(--r));
	animation-duration: .25s;
}

#nav-index {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 150;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	width: 4rem;
	height: 100vh;
	padding-bottom: 4rem;
	pointer-events: none;
	/* only while the drawer is open: off the left while it is closed, sliding in and out with the drawer
	   (main, left .5s) */
	transform: translateX(-100%);
	transition: transform .5s;
}
.open #nav-index { transform: none; }
#nav-index button {
	position: relative;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 4rem;
	padding: .5rem 0;
	background: none;
	cursor: pointer;
	pointer-events: auto;
}
/* the square: a white .5px ring; the index shows only while the drawer is open, where the active and hovered
   squares are scaled up and filled (not while it closes, sliding out) */
#nav-index button::before {
	content: "";
	flex-shrink: 0;
	box-sizing: content-box;
	width: var(--nav-index-w, 1rem);
	height: var(--nav-index-h, 1rem);
	border: .5px solid #fff;
	transition: transform .3s, background-color .3s;
}
.open #nav-index button:is(.active, :hover)::before {
	transform: scale(1.5);
	background: #fff;
}
.open #nav-index button:not(.active):hover::before { transition: transform .1s; }
/* its card's head beside it on hover, at once (the browser's own title tooltip waits, and sits below right):
   over the drawer's edge, from the button's aria-label */
#nav-index button::after {
	content: attr(aria-label);
	position: absolute;
	top: 50%;
	left: 100%;
	padding: .4rem .8rem;
	background: rgba(17, 16, 17, .85);
	color: #fff;
	font-size: 1.2rem;
	font-weight: 100;
	letter-spacing: .2rem;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translateY(-50%);
}
.open #nav-index button:hover::after { opacity: 1; }
/* the active square's (the page in the drawer) closes the drawer when clicked (local.js clickNavIndex) */
.open #nav-index button.active::after { content: "X :: Close"; }

/* the section nav (local.js SECTION NAV): the page in the drawer's header, sections and footer by name, as the nav
   index's hover labels, down the upper right while the drawer is open, sliding in and out with it. Black on white, the
   section in view (and one rolled over) white on black. One length, the names to the left, running off the
   right edge. */
#section-nav {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 150;
	display: flex;
	flex-direction: column;
	align-items: stretch;     /* all as wide as the longest */
	gap: .4rem;
	padding-top: 4rem;
	pointer-events: none;
	transform: translateX(100%);
	transition: transform .5s;
}
.open #section-nav { transform: none; }
#section-nav button {
	padding: .4rem 2rem .4rem .8rem;     /* the right edge's off the page's */
	text-align: left;
	background: #fff;
	color: #000;
	font-size: 1.2rem;
	font-weight: 100;
	letter-spacing: .2rem;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	pointer-events: auto;
	transition: background-color .3s, color .3s;
}
#section-nav button:is(.active, :hover) { background: #000; color: #fff; }
#section-nav button:not(.active):hover { transition: background-color .1s, color .1s; }

/* Header and sections ----------------------------------------------*/
/* A section - and the header and footer, which lay out the same way - lays its blocks out in rows, with --g
   (a step of --space, none/half/normal/double) between them both ways and nothing at its edges. It is as wide
   as the drawer, with no side padding: its blocks' widths keep them in (below, Layout values), and its
   alignment places them. Space above and below: --pt / --pb, none when unset (the editor's none). */
:is(header, section, footer) {
	--gap: calc(var(--g, 0) * var(--space));
	--section-gap: var(--gap);     /* still the section's inside a list block, which has its own --gap */
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: var(--gap);
	overflow: hidden;
	text-align: center;
}
section {
	font-size: 0;
	line-height: 0;
	letter-spacing: 0;
}
/* the header's hero is its first block (full, stretch, a height) */
/* a portfolio's title: for screen readers and search, not shown */
header.portfolio h1 {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
/* the content max a block's width is a fraction of: min(900px, the section's width less 8rem) on desktop (2026-11-29,
   todo #178: with the whole width, content touched the edges from 940px down to 601px), the section's width less 8rem
   on a phone (below); a list block's items are fractions of the list itself */
:root { --max: min(900px, 100% - 8rem); }
/* (a list block's items are fractions of the list: .list-group > *, below) */
/* a block without a width is full: the content max */
:is(header, section, footer, .row) > * {
	flex-shrink: 0;
	width: var(--max);
}
/* a row: the blocks between two breaks (api ContentRenderer::rows()), laid out as the section lays out its blocks,
   the whole section wide; the section spaces its rows by its gap, once */
:is(header, section, footer) > .row {
	display: flex;
	flex-wrap: wrap;
	justify-content: inherit;
	align-items: flex-start;
	gap: var(--gap);
	width: 100%;
}
/* a section's alignment: its blocks along the row and its text (start, center or end) */
:is(header, section, footer)[style*="--sa:"] {
	justify-content: var(--sa);
	text-align: var(--sa);
}
/* an iframe keeps the browser's own size unless it is given a height (below) */
:is(header, section, footer, .row) > iframe { width: auto; }
/* a break block ends the row; its negative margin takes back the second gap an empty row would add */
:is(header, section, footer) > div:empty {
	width: 100%;     /* the whole row, whatever the content max, so nothing fits beside it */
	height: 0;
	margin-bottom: calc(-1 * var(--gap));
}
/* an aligned list block: its items in a row of their own, spaced like the section's, aligned left, center or
   right (headings and names too) */
.list-group {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--gap);
	width: var(--max);     /* the content max, alone on its row (.full); with .stretch the whole section */
}
/* its items: the block's width as a fraction of the list */
.list-group > * { --max: 100%; }
.list-group { justify-content: inherit; } /* as its section, unless aligned (below) */
/* a list block's own gap between its items */
.list-group[style*="--g:"] { --gap: calc(var(--g) * var(--space)); }
.list-group > * { flex-shrink: 0; }
/* as directly in a section (section > *): full width unless the block gives a width */
.list-group > :not([style*="--w:"]) { width: 100%; }
.list-group.align-left { justify-content: flex-start; text-align: left; }
.list-group.align-center { justify-content: center; text-align: center; }
.list-group.align-right { justify-content: flex-end; text-align: right; }
/* a brief list's part side by side (api ContentRenderer, brief): its title one column of four on the left, its
   paragraphs the other three, apart by the list's gap (at least 1.5em), the title's baseline on the first line's */
.brief-part.side { --bgap: max(var(--gap, 0px), 1.5em); --bt: calc((100% - 3 * var(--bgap)) / 4); display: flex; align-items: baseline; gap: var(--bgap); }
.brief-part.side > h3 { flex: 0 0 var(--bt); margin-top: 0; }
.brief-part.side > .brief-text { flex: 1 1 0; min-width: 0; }
.brief-part.side.titles-right { flex-direction: row-reverse; }
/* centred (the list's align, or its section's when it has none), the two columns meet in the middle: the title
   aligned toward the paragraphs, the paragraphs toward the title */
.brief-part.side > h3 { text-align: var(--title-align, inherit); }
.brief-part.side > .brief-text { text-align: var(--text-align, inherit); }
@media screen and (min-width: 601px) {
	:is(.list-group.align-center, :is(header, section, footer):not([style*="--sa:start"]):not([style*="--sa:end"]) > :is(.list-group, .row > .list-group):not(.align-left):not(.align-right)) .brief-part.side { --title-align: right; --text-align: left; }
	:is(.list-group.align-center, :is(header, section, footer):not([style*="--sa:start"]):not([style*="--sa:end"]) > :is(.list-group, .row > .list-group):not(.align-left):not(.align-right)) .brief-part.side.titles-right { --title-align: left; --text-align: right; }
}
/* a list block's item (api ListBlock): an image with its name under it, linked to its page when it has one */
figure.item { margin: 0; }
figure.item img { display: block; width: 100%; }
figure.item figcaption { padding-top: .75rem; font-size: 1.8rem; line-height: 1.25; }
/* related work (api ListBlock::sourceRelated(), a case study's footer): under one heading, each list with its label
   (what it is related by) turned on its side on a black bar to its left, set as the section nav is; each item its
   nav image with its title over it, in the middle, in its nav card's subhead color */
:is(footer, footer > .row) > .related-strip {
	/* as far below the credits as the credits are below the footer's top (its padding before; the row's gap counts) */
	margin-top: max(0px, calc(var(--pt, 0) * var(--space) - var(--gap, 0px)));
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	width: 100%;
	background: #000;
}
/* the lists scroll on their own, beside the heading (which stays put) */
.related-scroll {
	display: flex;
	flex: 1 1 auto;
	align-items: stretch;
	min-width: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
}
/* a label's width, so the nth stays at n of them from the left (its line and its padding) */
.related-scroll { --label: calc(1.2rem * 1.2 + 1.2rem); }
/* a 1pt rule between the thumbnails (the black behind them) */
.related-scroll > .list-group.related {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	width: auto;
	gap: 1pt;
}
/* each thumbnail the size it had four to a row in three quarters of the content (a quarter of 675px) */
.related-scroll > .list-group.related > figure.item { flex: 0 0 auto; width: 16rem; }
/* square, as the nav images are, cropped as the case study's Nav tab sets it (--tx/--ty: the point at its centre,
   --tz: how far in; api CaseStudy::getNavThumb()); the middle, not zoomed, without */
.related-scroll > .list-group.related > figure.item > a { overflow: hidden; }
.related-scroll > .list-group.related > figure.item img {
	aspect-ratio: 1;
	object-fit: cover;
	object-position: var(--tx, 50%) var(--ty, 50%);
	transform: scale(var(--tz, 1));
	transform-origin: var(--tx, 50%) var(--ty, 50%);
}
/* the footer ends with the lists: no space under them */
main footer:has(> .related-strip, > .row > .related-strip) { padding-bottom: 0 !important; }
/* once the lists are all in view they stay at the bottom of the drawer while the footer goes on scrolling up, until
   its top reaches the drawer's: the footer at least the drawer's height, the lists sticking that far down it (their
   height, --strip-h, measured by local.js). Clipped rather than hidden, which would make the footer the scroll the
   lists stick in. */
main footer:has(> .related-strip) {
	min-height: 100vh;     /* main's height (less the bar above it on a phone, below) */
	align-content: flex-start;
	overflow: clip visible;     /* and the lists can slide up out of it (local.js, rolling over the drawer's bottom) */
}
main footer > .related-strip {
	position: sticky;
	top: calc(100% - var(--strip-h, 16rem));
	z-index: 3;
}
/* "Related Work" a bar at the far left, set as the lists' labels are; the lists scroll beside it, each label staying at
   the left of the scroll */
.related-strip > h2.related-heading,
.related-scroll > h3.related-label {
	position: sticky;
	left: 0;
	z-index: 2;
	flex: 0 0 auto;
	width: auto;
	margin: 0;
	padding: .6rem;
	padding-inline: .9rem;     /* before the first word and after the last */
	background: #000;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 300;
	letter-spacing: .2rem;
	line-height: 1.2;
	text-align: start;
	text-transform: uppercase;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	/* as tall as the thumbnails, not as its text: a longer label is cut short with an ellipsis */
	contain: inline-size;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.related-strip > h2.related-heading { position: static; padding-block: .9rem 0; }     /* off the drawer's edge; nothing between it and the first label */
.related-scroll > h3.related-label {
	left: calc(var(--i, 0) * var(--label));
	width: var(--label);
	color: #888;
	letter-spacing: 0;
	text-transform: none;     /* mixed case */
}
figure.item.title-over,
figure.item.title-over > a { position: relative; display: block; }
figure.item.title-over figcaption {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	padding: 1rem;
	color: var(--title, #fff);
	font-weight: 300;
	text-align: center;
}
/* the title shows only on rollover (2026-10-21, trying it out), over the dimmed image */
figure.item.title-over figcaption { opacity: 0; transition: opacity .2s; }
figure.item.title-over:is(:hover, :focus-within) figcaption { opacity: 1; }
/* rolled over: dimmed, as a nav card is while the drawer is open (nav a::before), its title over it */
figure.item.title-over:hover::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(17, 16, 17, .85);
	pointer-events: none;
}
:is(header, header > .row) > * { vertical-align: top; }
img,
video {
	display: inline-block;
	width: 100%;
	object-fit: var(--fit, fill);
	object-position: var(--pos, 50% 50%);
}
/* a video with more to step through (local.js initiateVideoSwitches): its box takes its place in the layout, and
   it fills the box; previous and next arrows over its sides */
.video-switch { position: relative; vertical-align: top; }
.video-switch > video { display: block; height: 100%; }
/* TV static (eSmail's) over the video while it changes, under the arrows; always there, so the GIF is loaded before
   the first switch */
.video-switch::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("/assets/img/static.gif");
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s;
}
.video-switch.switching::before { opacity: 1; transition: none; }
.video-switch > button {
	position: absolute;
	top: 50%;
	width: clamp(2.5rem, 4vw, 3.5rem);
	aspect-ratio: 1;
	padding: .6rem;
	border: 0;
	border-radius: 50%;
	background: rgba(17, 16, 17, .45);
	color: #fff;
	cursor: pointer;
	opacity: .7;
	transform: translateY(-50%);
	transition: opacity .2s, background .2s;
}
.video-switch-previous { left: 1rem; }
.video-switch-next { right: 1rem; }
.video-switch > button:is(:hover, :focus-visible) { opacity: 1; background: rgba(17, 16, 17, .7); }
.video-switch > button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.video-switch > button svg { display: block; width: 100%; height: 100%; }

/* a heading seen only by screen readers and search engines: a section's label when it has no label block (api
   ContentRenderer::section()) */
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0 !important;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Type -------------------------------------------------------------*/
/* headings and paragraphs take their container's alignment (header, section and footer are centred) */
h1 { font-size: 5rem; font-weight: 200; line-height: 1.2em; }
h2 { font-size: 3.6rem; font-weight: 200; line-height: 1.2em; }
h3 { font-size: 2.4rem; font-weight: 300; line-height: 1.5em; }
h4 { font-size: 2rem; font-weight: 300; line-height: 1.2em; }
p { font-size: 2.2rem; line-height: 1.5em; }
p.intro { font-size: 2.8rem; }
:is(section, section > .row) > q {
	display: inline-block;
	font-size: 3.6rem;
	line-height: 1.5em;
}
i { letter-spacing: -.02em; }
strong { font-weight: 300; }
a {
	color: rgb(118, 156, 163);
	text-decoration: none;
}
a:hover { color: rgb(142, 154, 54); }
.mobile-break { display: none; }

h1:has(+ p.context),
h2:has(+ p.context) { padding-bottom: 0 !important; }
h1 + p.context,
h2 + p.context {
	padding-top: 0 !important;
	/* a context line sits right under its heading: take back the section's gap between them */
	margin-top: calc(-1 * var(--gap, 0px));
}

/* a rule block: a line in its color (--fg, else the text color), its thickness (--rt, 1px unless set), as wide
   as its width */
hr {
	width: 100%;
	height: 0;
	border: 0;
	border-top: var(--rt, 1px) solid var(--fg, currentColor);
}

/* Lists ------------------------------------------------------------*/
ul {
	margin-bottom: 1.8rem;
	font-size: 1.8rem;
	line-height: 1.5em;
}
ul ul,
ul:last-of-type,
p:last-of-type { margin-bottom: 0; }
li { margin-bottom: .45rem; }
li i {
	display: inline-block;
	margin-right: .6rem;
	color: var(--link, #f00); /* a list's icons (technologies) take its link color, when it has one */
}
section ul {
	column-count: 4;
	column-gap: 4rem;
}
/* a list block's names: as many columns as its columns setting (at most two on a phone) */
:is(ul, ol)[style*="--cols:"] { column-count: var(--cols); }
/* a list's own gap: between its columns and between its items */
:is(ul, ol)[style*="--g:"] { column-gap: calc(var(--g) * var(--space)); }
:is(ul, ol)[style*="--g:"] > li { margin-bottom: calc(var(--g) * var(--space)); }
li ul {
	column-count: 1 !important;
	break-inside: avoid-column;
}

/* Images that enlarge on rollover (block class "enlarge", local.js initiateEnlarge, 2026-10-26): the rolled-over one,
   at its largest, as wide as the box around all of them in its section and centred on it, so it covers them all (its
   height follows its proportions, past the box's top and bottom when the box is wider); the mouse passes through it */
/* (the dimming: over the whole drawer, fixed where main is, under the enlarged image; the nav cards' tint) */
.enlarge-dim { position: fixed; top: 0; bottom: 0; left: 4rem; right: 0; z-index: 4; pointer-events: none;
    background: rgba(17, 16, 17, .85); opacity: 0; transition: opacity .15s linear; }
.enlarge-dim.shown { opacity: 1; }
.enlarge-view { position: absolute; z-index: 5; display: flex; align-items: center; justify-content: center;
    pointer-events: none; opacity: 0; transition: opacity .15s linear; }
.enlarge-view.shown { opacity: 1; }
.enlarge-view img { display: block; width: 100%; height: auto; flex: none; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }

/* An image over its nav card (block class "over-nav", local.js initiateOverNav, 2026-11-05): its picture drawn as its
   background where the page's nav card draws its own with the card filling the frame and the page at its top (its own
   picture moved out of its box): flickering on when they line up, like a lightbox's tubes (a few blinks, then on), and
   off at once when they don't; hidden until the drawer is in */
img.over-nav:not(.plain) { object-position: 300vw 0 !important; background-repeat: no-repeat; }
img.over-nav { opacity: 0; }
img.over-nav.lit { animation: lightbox 1.2s linear forwards; }
img.over-nav.unlit { animation: none; opacity: 0; }     /* (off at once when they no longer line up: John) */
@keyframes lightbox {
	0% { opacity: 0; }
	6% { opacity: .75; }
	9% { opacity: 0; }
	24% { opacity: 0; }
	26% { opacity: .9; }
	30% { opacity: .1; }
	40% { opacity: .1; }
	42% { opacity: 1; }
	47% { opacity: .35; }
	55% { opacity: .95; }
	60% { opacity: .7; }
	70%, 100% { opacity: 1; }
}
}
@media (prefers-reduced-motion: reduce) { img.over-nav.lit { animation: none; opacity: 1; } }

/* Effects and widgets (2026-10-21) ---------------------------------*/
/* an animated effect (local.js startEffects, assets/effects): its canvas behind its element's content (a section's
   blocks; its background still under it), or over its first block (a header's main image) or all of it (a nav card's
   image, under the card's dimming and its words) */
.has-effect { position: relative; isolation: isolate; }
canvas:is(.effect-smoke, .effect-squares, .effect-underworld, .effect-race-light, .effect-clock, .effect-turbine, .effect-plugs, .effect-walkers, .effect-sparks, .effect-videos) { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
canvas:is(.effect-smoke, .effect-squares, .effect-underworld, .effect-race-light, .effect-clock, .effect-turbine, .effect-plugs, .effect-walkers, .effect-sparks, .effect-videos).over-first { inset: auto; z-index: 0; }     /* placed on the block by the effect */
canvas:is(.effect-smoke, .effect-squares, .effect-underworld, .effect-race-light, .effect-clock, .effect-turbine, .effect-plugs, .effect-walkers, .effect-sparks, .effect-videos).over-all { z-index: 0; }
/* a widget with code of its own (api Content\Widgets): its poster until its script starts it */
.widget > .widget-poster { display: block; width: 100%; height: auto; }

/* Footer -----------------------------------------------------------*/
footer {
	color: #111011;
	font-size: 0;
	line-height: 0;
	text-align: center;
}
footer ul { margin: 0; }
footer li {
	display: inline-block;
	margin-right: 1.8rem;
}
footer li:not(:first-of-type) {
	float: right;
	margin-right: 0;
}
footer li:not(:first-of-type):not(:last-of-type)::before {
	content: "|";
	margin: 0 .45rem;
}

/* Layout values ----------------------------------------------------*/
/* a block's width: its fraction (--f, from --w) of the content max (--max, above), or with
   stretch of the whole section; less its share of the gaps in its row (5 fifths and 4 gaps fill a row
   exactly). Blocks share a row while they fit. */
[style*="--w:"] {
	display: inline-block;
	width: calc(var(--max) * var(--f, 1) - var(--gap, 0px) * (1 - var(--f, 1)));
}
/* a full block is alone on its row: margins take up the rest of the row, on the sides the section's alignment
   leaves open (both when centred) */
.full:not(.stretch) { margin-inline: calc((100% - var(--max)) / 2); }
:is(header, section, footer)[style*="--sa:start"] > :is(.full, .row > .full):not(.stretch) { margin-inline: 0 calc(100% - var(--max)); }
:is(header, section, footer)[style*="--sa:end"] > :is(.full, .row > .full):not(.stretch) { margin-inline: calc(100% - var(--max)) 0; }
.stretch { width: 100%; }
.stretch[style*="--w:"] { width: calc(100% * var(--f, 1) - var(--gap, 0px) * (1 - var(--f, 1))); }
/* match-height (block class, 2026-10-30: Loading Bar's set photo): as tall as the tallest block on its row; text
   centred in it top to bottom, an image or video cropped to fill it. Alone on its row (a phone), its own height. */
:is(header, section, footer, .row) > .match-height { align-self: stretch; }
:is(header, section, footer, .row) > .match-height:not(img, video, iframe) { align-content: center; }     /* (not flex: that would split a paragraph's links from its text) */
:is(header, section, footer, .row) > :is(img, video).match-height { object-fit: var(--fit, contain); }     /* (contain unless a fit is chosen: cover, 2026-11-17) */
/* sticky (block class, 2026-11-05: the About page's spine beside the jobs): held in view as main scrolls, from when its
   top reaches the section nav's top (its 4rem padding) until its bottom meets the bottom of its row (between breaks;
   otherwise its section's content), then scrolling on with it; for two unevenly tall blocks side by side. Its section
   clips (overflow: clip) rather than hides, which would stop it sticking. Not on a phone, where blocks stack. */
@media screen and (min-width: 601px) {
	:is(header, section, footer):has(> .sticky, > .row > .sticky) { overflow: clip; }
	:is(header, section, footer, .row) > .sticky { position: sticky; top: 4rem; align-self: flex-start; }
}
/* stack (block class, 2026-10-30: Loading Bar's shoot photos): stacked blocks next to each other, one above the other in
   a column the first one's width (api ContentRenderer::stacks()); its blocks the column's width. With match-height the
   column is as tall as the row's other blocks - its images and videos adding no height of their own, sharing that
   height, cropped - so the row is as tall as its other blocks. Alone on its row (a phone), each its own height. */
.stack, .stack[style*="--w:"] { display: flex; flex-direction: column; gap: var(--gap); }
.stack > *, .stack > [style*="--w:"] { --max: 100%; width: 100%; margin-inline: 0; }
.stack.match-height > :is(img, video) { flex: 1 1 0; min-height: 0; height: 0; object-fit: var(--fit, contain); }
/* (its text: the first and last blocks share what the column has over their own height, the first's text at the
   bottom of its share and the last's at the top, so a heading and paragraph with a background fill the row's height,
   their words centred in it together; 2026-11-06, Proud Partners' Web Banners) */
.stack.match-height > :first-child:not(img, video, iframe) { flex-grow: 1; align-content: end; }
.stack.match-height > :last-child:not(img, video, iframe) { flex-grow: 1; align-content: start; }
.stack.match-height > :only-child:not(img, video, iframe) { align-content: center; }
/* no gap above (block class "no-gap-before", 2026-11-06): the section's gap between it and the block above taken back,
   so the two touch (in a stack, or on a row of its own under the block above) */
.no-gap-before { margin-top: calc(-1 * var(--gap, 0px)); }
:has(+ .no-gap-before) { margin-bottom: 0 !important; }     /* (and the block above's own margin: a heading's, on a phone) */
/* no gap below, left or right (block classes, 2026-11-17): the same on its other sides; left and right not on a phone,
   where blocks stack */
.no-gap-after { margin-bottom: calc(-1 * var(--gap, 0px)) !important; }
@media screen and (min-width: 601px) {
	.no-gap-left { margin-left: calc(-1 * var(--gap, 0px)) !important; }
	.no-gap-right { margin-right: calc(-1 * var(--gap, 0px)) !important; }
}
/* background to the edges (block class "bg-edges", 2026-11-12): its background painted out past both its sides (a
   border image's outset) to the tray's edges, which clip it, level with it at any width; under its content */
.bg-edges[style*="--bg:"] { background: none; border-image: var(--bg) fill 0 / 0 / 0 100vw; }
/* (a plain color, 2026-11-22: border-image takes only an image or gradient, so a color alone was dropped, and with the
   background taken off the block had none at all: Reinvent The Storefront's header text; as a one-color gradient) */
.bg-edges:is([style*="--bg:#"], [style*="--bg:rgb"], [style*="--bg:hsl"]) { border-image: linear-gradient(var(--bg), var(--bg)) fill 0 / 0 / 0 100vw; }
/* draw-in (block class, local.js initiateDrawIn): the drawing, over its image (hidden until drawn) */
.draw-in-canvas { position: absolute; pointer-events: none; }
/* a widget at its actual size (block class "native", 2026-11-08): the block (.widget-frame) keeps its width; the widget
   in it is the width it was made at (--nw, from its widget.json), no wider than the block, placed left, centre or right
   as the block's text is aligned (its own alignment, else its section's) */
.widget-frame > .widget { display: inline-block; vertical-align: top; width: min(var(--nw), 100%); text-align: initial; }
/* a list block's own width: as any block's, its share of its section's gaps (its --gap is its items'); still a
   flex row of its items (a width makes other blocks inline-block, above) */
.list-group[style*="--w:"] {
	display: flex;
	width: calc(var(--max) * var(--f, 1) - var(--section-gap, 0px) * (1 - var(--f, 1)));
}
.list-group.stretch[style*="--w:"] { width: calc(100% * var(--f, 1) - var(--section-gap, 0px) * (1 - var(--f, 1))); }
/* a sized image/video keeps its proportions (width follows the height); an iframe has no proportions of
   its own (it would fall back to the browser's 300px), so it fills its row */
[style*="--h:"] { height: var(--h); }
:is(img, video)[style*="--h:"]:not([style*="--fit:"]) { width: auto; }     /* cropped (a fit): keeps its width */
iframe[style*="--h:"] { width: 100%; }
[style*="--pt:"] { padding-top: calc(var(--pt) * var(--space)) !important; }
[style*="--pb:"] { padding-bottom: calc(var(--pb) * var(--space)) !important; }
[style*="--pl:"] { padding-left: calc(var(--pl) * var(--space)) !important; }
[style*="--pr:"] { padding-right: calc(var(--pr) * var(--space)) !important; }
[style*="--ta:"] { text-align: var(--ta) !important; } /* a block's own alignment wins over its section's */


[style*="--bg:"] { background: var(--bg); }
[style*="--fg:"] { color: var(--fg); }
[style*="--link:"] a { color: var(--link); }
/* a gradient as the text or link color (2026-11-08: api Layout .fg-gradient, .link-gradient): painted through the
   letters, over the background (a plain color stays under it; a gradient one is --bgi); a rule's line in it */
[style*="--fg:"].fg-gradient { background-image: var(--fg), var(--bgi, none); -webkit-background-clip: text, padding-box; background-clip: text, padding-box; -webkit-text-fill-color: transparent; }
[style*="--link:"] a { -webkit-text-fill-color: var(--link); }
[style*="--link:"].link-gradient a { background-image: var(--link); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
hr.fg-gradient { background-image: none; border-image: var(--fg) 1; }

/* Credits (the footer's brief block) -------------------------------*/
#credits {
	display: block;
	max-width: 600px;
	margin: 0 auto;
}
#credits > span { display: block; }
/* read as one run of prose: "Design: A, B and C Technologies: X and Y" - each discipline an h3, its people a list */
#credits :is(h3, h4, ul, li, p) {
	display: inline;
	float: none;
	margin: 0;
	padding: 0;
	font-size: 1.6rem;
	font-style: italic;
	font-weight: 100;
	line-height: 1.5em;
}
#credits :is(h3, h4) {
	font-weight: 200;
}
#credits li::before { content: none; }
#credits :is(h3, h4, ul)::after { content: " "; }
#credits li:has(+ li + li)::after { content: ", "; }
#credits li:has(+ li:last-child)::after { content: " and "; }

/* World map --------------------------------------------------------*/
#world-map {
	width: 100%;
	height: 100%;
	overflow: visible;
	cursor: crosshair;
}
#nyc { fill: rgb(189, 79, 92); }
#flag { display: none; }

/* Resume -----------------------------------------------------------*/
.job > p { text-align: left; }
.job > p:first-child { font-weight: 300; }
.job > p:nth-child(2) {
	color: #666;
	font-size: 0;
	font-style: italic;
	line-height: 0;
}
.job > p:nth-child(2) > span,
.job > p:nth-child(2) > span:last-child::before {
	margin-right: .6rem;
	font-size: 1.6rem;
	line-height: 1em;
}
/* "client type | title | start–end" */
.job > p:nth-child(2) > :is(.clienttype, .title)::after {
	content: "|";
	margin-left: .9rem;
}
/* the dates as a range: an en dash, closed up (2012–Present) */
.job > p:nth-child(2) > span:last-child::before { content: "\2013"; }
/* a piece with nothing in it shows nothing, its separator included (a profile's Earlier Work has no title or dates) */
.job > p:nth-child(2) > span:empty { display: none; }
.job > p:nth-child(2) > .startdate,
.job > p:nth-child(2) > span:last-child::before { margin-right: 0; }
.job > p:nth-child(3) { font-size: 1.8rem; }
.job > ul {
	margin: 0;
	padding-left: 1.6rem;
	column-count: 1;
	font-size: 1.6rem;
	text-align: left;
}
.job li { list-style: initial; }

.college {
	padding: 0;
	border-bottom: 2px solid #fff;
	background: #AFAFAF;
}
.college img {
	width: 25%;
	vertical-align: middle;
}
.college div {
	display: inline-block;
	width: 75%;
	padding: 3rem;
	color: #444;
	vertical-align: middle;
}
.college p { margin: 0; text-align: left; }
.college p:nth-child(2) {
	font-size: 3.4rem;
	line-height: 1em;
}

.skills {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 4rem;
}
.skills > h2 { grid-column: 1 / -1; }
.skills ul {
	column-count: 1;
	text-align: left;
}
.headding { font-weight: 300; }
.industries h3 {
	padding-top: 8rem;
	border-bottom: 1px solid;
	color: #5da9e8;
}

.press {
	position: relative;
	display: inline-block;
}
.title-card {
	display: none;
	position: absolute;
	width: 100%;
	height: 100%;
	margin: .5rem 0 0 .5rem;
	padding: 1rem;
	/* a press list block's background, text and link colors go on the overlay; without them, white text on
	   #444 with #fcb540 links. The border is the text color. */
	border: 1px solid currentColor;
	background: var(--bg, #444);
	color: var(--fg, #fff);
	text-align: center;
}
/* ...rather than on the card behind the image */
.press[style*="--bg:"] { background: none; }
/* shown over the image on rollover, and while its link has keyboard focus. In CSS rather than script so it
   also works on pages the drawer loads after the page itself (local.js fetchContent). */
.press:is(:hover, :focus-within) .title-card { display: block; }
.title-card p,
.title-card a {
	display: block;
	margin: 0 auto;
	font-size: 1.2rem;
	line-height: 1.2em;
}
.title-card p:nth-child(1) { margin: 3rem auto 1rem; font-size: 1.8rem; }
.title-card p:nth-child(2) { opacity: .5; font-size: .9rem; } /* the date: half the text color over the background */
.title-card p:nth-child(3) { margin-top: .25rem; font-size: 1.8rem; text-transform: uppercase; }
.title-card p:nth-child(4) { margin: .25rem auto 1.5rem; }
.title-card a { margin: .25rem auto 1rem; color: var(--link, #fcb540); }
.title-card a:hover { text-decoration: underline; }

/* Case studies -----------------------------------------------------*/
#image-mill #assets-in-context video { max-width: 1300px; }
#morbid-baubles q a { font-style: italic; }

/* Mobile -----------------------------------------------------------*/
@media screen and (max-width: 600px) {
	:root { --space: 2.5rem; }
	.mobile-break { display: block; }
	#nav-index,
	#section-nav { display: none; }

	main {
		top: 100vh;
		left: 0;
		width: 100vw;
		height: calc(100vh - 4rem);
		transition: top .5s;
	}
	.open main { top: 4rem; left: 0; }
	.resizing main { transition: none; }
	main footer:has(> .related-strip) { min-height: calc(100vh - 4rem); }

	/* no flip on phones: the title just moves and resizes between its two layouts */
	/* only what changes between them */
	nav #nav-title { transition: top .5s, width .5s, height .5s, font-size .5s, padding-bottom .5s, color .5s; }
	nav.johnjames #nav-title { --img-h: min(13vh, calc((100vw - 6rem) / var(--ratio))); height: 13vh; }
	.open nav #nav-title {
		--img-h: min(2rem, calc((100vw - 6rem) / var(--ratio)));
		top: 1rem;
		height: 2rem;       /* again here: John James's height (above) comes after the open one outside this block */
		justify-content: flex-start;
		width: calc(100% - 6rem);
		transform: none;
	}
	nav a .nav-head { padding: 0 3rem; }
	nav a .nav-subhead {
		padding: 0 3rem;
		font-size: 3.2rem;
		line-height: 1.2em;
	}

	h1, h2, h3, h4, p {
		padding: 0;
		text-align: left;
	}
	h1 { margin-bottom: 1.35rem; font-size: 4.2rem; }
	h2 { margin-bottom: 1.35rem; font-size: 3.2rem; }
	h3 { font-size: 2rem; line-height: 1.2em; }
	p { margin-bottom: .9rem; font-size: 2rem; line-height: 1.2em; }
	/* but none under a paragraph block (and the overview's, which are paragraph blocks too) or a brief list's
	   paragraphs: the gap spaces them */
	:is(header, section, footer, .row) > p,
	.brief-part p { margin-bottom: 0; }
	:is(section, section > .row) > q {
		line-height: 1.2em;
		text-align: left;
	}

	footer li {
		display: block;
		float: none !important;
		font-size: 1.4rem;
		font-weight: 300;
		line-height: 1.2em;
	}
	footer li:not(:first-of-type):not(:last-of-type)::before {
		content: "";
		margin: 0;
	}

	:root { --max: calc(100% - 8rem); }
	.list-group > * { --max: 100%; }
	[style*="--w:"] { width: calc(var(--max) * var(--mf, 1) - var(--gap, 0px) * (1 - var(--mf, 1))); }
	.stretch[style*="--w:"] { width: calc(100% * var(--mf, 1) - var(--gap, 0px) * (1 - var(--mf, 1))); }
	.stack > *, .stack > [style*="--w:"] { width: 100%; }
	.stack.match-height > :is(img, video) { flex: none; height: auto; }
	.list-group[style*="--w:"] { width: calc(var(--max) * var(--mf, 1) - var(--section-gap, 0px) * (1 - var(--mf, 1))); }
	.list-group.stretch[style*="--w:"] { width: calc(100% * var(--mf, 1) - var(--section-gap, 0px) * (1 - var(--mf, 1))); }
	.brief-part.side { display: block; }     /* stacked on a phone */
	/* a brief's titles and paragraphs take the list's alignment (its own, else its section's), not the left above */
	.brief-part :is(h3, p) { text-align: inherit; }
	/* but titles to the left or right: both to that side, whatever the alignment */
	.brief-part.side :is(h3, p) { text-align: left; }
	.brief-part.side.titles-right :is(h3, p) { text-align: right; }

	.college img,
	.college div { width: 100%; }
	.college div { padding: 2.5rem; }
	.college p { text-align: center; }
	.skills { grid-template-columns: 1fr; }
	:is(ul, ol)[style*="--cols:"] { column-count: min(var(--cols), 2); }
	.technologies ul { column-count: 2; }
}

