/* Allspark
   Layout: black ground, one wide column on a 12-part grid. A narrow left
   column names each section; the content sits to its right. Large light
   serif headlines, a quiet sans for text, hairlines instead of boxes.
   One visual world, black, by choice. */

/* Fonts are served from the theme itself (SIL Open Font License, see assets/fonts). */

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-ext-wght-italic.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
	font-family: "Hanken Grotesk";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
	font-family: "Hanken Grotesk";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
	--black: #000000;
	--bone: #ece6da;
	--muted: #958e82;
	--dim: #5c5852;
	--line: #25221e;
	--line-strong: #4a463f;
	--accent: #c9a97c;

	--serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
	--sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

	--gutter: clamp(1.25rem, 4vw, 3.5rem);
	--space: clamp(4rem, 9vw, 8.5rem);
	--nav-h: 4.75rem;
	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);

	color-scheme: dark;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--black);
	color: var(--bone);
	font-family: var(--sans);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.site {
	position: relative;
	background: var(--black);
	color: var(--bone);
	overflow-x: clip;
}

::selection {
	background: var(--accent);
	color: var(--black);
}

img,
video,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
}

p,
h1,
h2,
h3,
ul,
ol,
dl,
dd {
	margin: 0;
	padding: 0;
}

ul,
ol {
	list-style: none;
}

h1,
h2,
h3 {
	font-weight: inherit;
	text-wrap: balance;
}

:focus-visible {
	outline: 1px solid var(--accent);
	outline-offset: 4px;
}

.wrap {
	max-width: 90rem;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.muted {
	color: var(--muted);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip {
	position: absolute;
	left: var(--gutter);
	top: -5rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	background: var(--bone);
	color: var(--black);
}

.skip:focus {
	top: 0.5rem;
}

/* ---------- atmosphere ---------- */

/* A warm light that follows the pointer through the dark. */
.glow {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 0;
	width: 64rem;
	height: 64rem;
	margin: -32rem 0 0 -32rem;
	background: radial-gradient(circle, rgba(201, 169, 124, 0.15), rgba(201, 169, 124, 0) 62%);
	background: radial-gradient(circle, color-mix(in srgb, var(--accent) 15%, transparent), transparent 62%);
	transform: translate3d(var(--gx, 78vw), var(--gy, 22vh), 0);
	pointer-events: none;
}

.nav,
main,
.foot {
	position: relative;
	z-index: 1;
}

/* Fine film grain over everything. */
.grain {
	position: fixed;
	inset: 0;
	z-index: 60;
	opacity: 0.07;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
	pointer-events: none;
}

/* ---------- type ---------- */

.display {
	font-family: var(--serif);
	font-weight: 300;
	letter-spacing: -0.02em;
	line-height: 1;
}

.display--xl {
	font-size: clamp(2.75rem, 9.2vw, 9rem);
	letter-spacing: -0.03em;
	line-height: 0.94;
}

.display--lg {
	font-size: clamp(1.9rem, 4.4vw, 3.9rem);
	line-height: 1.06;
}

.display--md {
	font-size: clamp(1.45rem, 2.1vw, 1.85rem);
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.15;
}

.lede {
	max-width: 30rem;
	font-size: clamp(1.0625rem, 1.3vw, 1.2rem);
	line-height: 1.5;
	color: var(--bone);
}

.prose {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
	max-width: 36rem;
	font-size: 1.125rem;
	color: var(--muted);
}

.prose a:not(.btn):not(.link) {
	color: var(--bone);
	text-underline-offset: 0.2em;
}

/* Headlines arrive one line at a time, rising out of a mask. */
.line {
	display: block;
	overflow: hidden;
	padding-block: 0.06em 0.16em;
	margin-block: -0.06em -0.16em;
}

.line__in {
	display: block;
}

.js .line__in {
	animation: rise 1.25s var(--ease) both;
}

.js .line:nth-child(2) .line__in {
	animation-delay: 0.12s;
}

.js .line:nth-child(3) .line__in {
	animation-delay: 0.24s;
}

@keyframes rise {
	from {
		transform: translateY(112%);
	}

	to {
		transform: none;
	}
}

/* Blocks ease in as they enter the screen. */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(1.5rem);
	transition: opacity 1s ease, transform 1s var(--ease);
}

.js [data-reveal].is-in {
	opacity: 1;
	transform: none;
}

/* ---------- buttons and links ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.75rem 1.5rem;
	border: 1px solid var(--line-strong);
	background-color: transparent;
	background-image: linear-gradient(var(--bone), var(--bone));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 100% 0;
	color: var(--bone);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-size 0.4s var(--ease), color 0.3s ease, border-color 0.3s ease;
}

.btn:hover {
	border-color: var(--bone);
	background-size: 100% 100%;
	color: var(--black);
}

.btn--solid {
	border-color: var(--bone);
	background-color: var(--bone);
	background-image: linear-gradient(var(--accent), var(--accent));
	color: var(--black);
}

.btn--solid:hover {
	border-color: var(--accent);
}

.link {
	display: inline-block;
	padding-bottom: 0.2rem;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 100% 1px;
	color: var(--bone);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.3s ease, background-size 0.4s var(--ease);
}

.link:hover {
	color: var(--accent);
	background-size: 35% 1px;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.9rem 1.75rem;
}

/* ---------- nav ---------- */

.nav {
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 50;
	background: rgba(0, 0, 0, 0.72);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--nav-h);
}

.wordmark {
	display: block;
	width: 8.75rem;
	/* A taller tap area than the logo itself, without moving it. */
	padding-block: 0.9rem;
	margin-block: -0.9rem;
	color: var(--bone);
}

.wordmark svg {
	width: 100%;
	height: auto;
}

.custom-logo-link img {
	display: block;
	width: auto;
	max-height: 2rem;
}

.site--invert-logo .custom-logo-link img {
	filter: invert(1) brightness(1.6);
}

.nav__links {
	display: flex;
	align-items: center;
	gap: 0.5rem clamp(1.5rem, 3vw, 2.75rem);
}

.nav__links a {
	padding-block: 0.4rem;
	background-image: linear-gradient(var(--accent), var(--accent));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 1px;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background-size 0.4s var(--ease);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
	background-size: 100% 1px;
}

.nav__menu {
	display: none;
	min-height: 2.75rem;
	padding: 0.4rem 0;
	border: 0;
	background: none;
	color: var(--bone);
	font: inherit;
	font-size: 0.95rem;
	cursor: pointer;
}

@media (max-width: 52rem) {
	.nav__menu {
		position: relative;
		z-index: 2;
		display: block;
	}

	.wordmark,
	.custom-logo-link {
		position: relative;
		z-index: 2;
	}

	.nav__links {
		position: fixed;
		inset: 0;
		z-index: 1;
		display: none;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 0.35rem;
		padding: var(--nav-h) var(--gutter) 2rem;
		background: var(--black);
	}

	/* The blur would trap the full-screen menu inside the bar, so it is
	   switched off while the menu is open. */
	.nav[data-open="true"] {
		background: var(--black);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.nav[data-open="true"] .nav__links {
		display: flex;
	}

	.nav__links a {
		font-family: var(--serif);
		font-size: clamp(2.25rem, 11vw, 3.25rem);
		font-weight: 300;
		letter-spacing: -0.02em;
		line-height: 1.15;
	}
}

/* ---------- hero ---------- */

.hero__inner {
	display: grid;
	align-content: space-between;
	gap: clamp(3rem, 8vw, 6rem);
	min-height: min(calc(100svh - var(--nav-h)), 54rem);
	padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.hero__title {
	position: relative;
	align-self: center;
}

/* With scripts on, the headline sits in half-light and a soft light
   passes over it, following the pointer. */
.hero__title.is-shaded {
	color: var(--dim);
}

.hero__lit {
	display: block;
	position: absolute;
	/* taller than the headline so descenders stay inside the lit area */
	inset: -0.35em 0;
	padding-block: 0.35em;
	color: var(--bone);
	pointer-events: none;
	-webkit-mask-image: radial-gradient(circle var(--lr, 24rem) at var(--lx, 32%) var(--ly, 45%), #000 0%, rgba(0, 0, 0, 0.75) 40%, transparent 100%);
	mask-image: radial-gradient(circle var(--lr, 24rem) at var(--lx, 32%) var(--ly, 45%), #000 0%, rgba(0, 0, 0, 0.75) 40%, transparent 100%);
}

.hero__foot {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: end;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.hero__tag {
	grid-column: 1 / span 5;
	color: var(--muted);
}

.hero__side {
	grid-column: 7 / -1;
	display: grid;
	gap: 1.5rem;
	justify-items: start;
}

@media (max-width: 52rem) {
	.hero__tag,
	.hero__side {
		grid-column: 1 / -1;
	}
}

/* ---------- showreel (appears when a video is set in the Customizer) ---------- */

.reel {
	padding-inline: var(--gutter);
	padding-bottom: var(--space);
}

.reel__frame {
	max-width: 90rem;
	margin-inline: auto;
	overflow: hidden;
	transform: scale(var(--rs, 1));
	transform-origin: 50% 0;
}

.reel video {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* ---------- sections ---------- */

.section {
	padding-block: var(--space);
	border-top: 1px solid var(--line);
}

.section__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 2rem 1.5rem;
	align-items: start;
}

.section__label {
	grid-column: 1 / span 3;
	position: sticky;
	top: calc(var(--nav-h) + 1.5rem);
	display: flex;
	align-items: baseline;
	gap: 0.7rem;
	font-family: var(--sans);
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--muted);
}

.section__label::before {
	content: "";
	flex: none;
	width: 0.35rem;
	height: 0.35rem;
	background: var(--accent);
	transform: translateY(-0.12rem);
}

.section__body {
	grid-column: 4 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.75rem, 3vw, 3rem);
	min-width: 0;
}

@media (max-width: 52rem) {
	.section__label,
	.section__body {
		grid-column: 1 / -1;
	}

	.section__label {
		position: static;
	}
}

.page-head {
	padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem);
}

.page-head .wrap {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(1.75rem, 4vw, 3rem) 1.5rem;
}

.page-head h1,
.page-head .actions {
	grid-column: 1 / -1;
}

.page-head .lede {
	grid-column: 4 / span 7;
}

@media (max-width: 52rem) {
	.page-head .lede {
		grid-column: 1 / -1;
	}
}

/* A statement whose words come into the light as you read down the page. */
.statement {
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(1.9rem, 4.2vw, 3.75rem);
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.statement .w {
	color: var(--dim);
	transition: color 0.5s ease;
}

.statement .w.is-lit {
	color: var(--bone);
}

/* ---------- index (rows of names) ---------- */

.index {
	border-top: 1px solid var(--line-strong);
}

.index__row {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 1.25rem;
	gap: 0.35rem 1.5rem;
	align-items: baseline;
	padding-block: clamp(1.1rem, 2.2vw, 1.75rem);
	border-bottom: 1px solid var(--line);
	color: var(--bone);
	text-decoration: none;
	transition: opacity 0.35s ease, padding-left 0.45s var(--ease);
}

.index__name {
	font-family: var(--serif);
	font-size: clamp(1.6rem, 3vw, 2.6rem);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.08;
}

.index__meta {
	color: var(--muted);
}

a.index__row::after {
	content: "";
	align-self: center;
	justify-self: end;
	width: 0.6rem;
	height: 0.6rem;
	border-top: 1px solid var(--accent);
	border-right: 1px solid var(--accent);
	opacity: 0;
	transform: translate(-0.4rem, 0.4rem);
	transition: opacity 0.35s ease, transform 0.45s var(--ease);
}

@media (hover: hover) {
	.index:hover a.index__row:not(:hover) {
		opacity: 0.38;
	}

	a.index__row:hover {
		padding-left: 0.9rem;
	}

	a.index__row:hover::after {
		opacity: 1;
		transform: none;
	}
}

.index--static .index__name {
	font-size: clamp(1.35rem, 2.1vw, 1.8rem);
}

@media (max-width: 40rem) {
	.index__row {
		grid-template-columns: minmax(0, 1fr) 1.25rem;
	}

	.index__meta {
		grid-column: 1;
	}

	a.index__row::after {
		grid-row: 1;
		grid-column: 2;
		opacity: 1;
		transform: none;
	}
}

/* ---------- columns ---------- */

.cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: 2.25rem clamp(1.5rem, 3vw, 3rem);
}

.cols > div,
.steps > li {
	display: grid;
	gap: 0.7rem;
	align-content: start;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line-strong);
}

.cols p,
.steps p {
	color: var(--muted);
}

/* A real sequence, so it is numbered. */
.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
	gap: 2.25rem clamp(1.5rem, 3vw, 3rem);
	counter-reset: step;
}

.steps > li {
	counter-increment: step;
}

.steps > li::before {
	content: counter(step, decimal-leading-zero);
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
	color: var(--accent);
}

.plain {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: 0 clamp(1.5rem, 3vw, 3rem);
	max-width: 52rem;
	color: var(--bone);
}

.plain li {
	padding-block: 0.85rem;
	border-bottom: 1px solid var(--line);
}

/* ---------- case ---------- */

.case {
	display: grid;
	gap: 1rem;
	justify-items: start;
}

.case__text {
	max-width: 36rem;
	margin-top: 0.75rem;
	font-size: 1.125rem;
}

.facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	gap: 1.25rem 2rem;
	width: 100%;
	max-width: 52rem;
	margin-block: 0.75rem;
}

.facts > div {
	display: grid;
	gap: 0.25rem;
	padding-top: 0.9rem;
	border-top: 1px solid var(--line-strong);
}

.facts dt {
	font-size: 0.875rem;
	color: var(--muted);
}

.facts dd {
	overflow-wrap: anywhere;
}

.facts a {
	text-underline-offset: 0.2em;
}

/* ---------- pair (DCODE and Allspark) ---------- */

.pair {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	border-top: 1px solid var(--line-strong);
}

.pair__half {
	display: grid;
	gap: 0.5rem;
	align-content: start;
	padding: clamp(1.75rem, 3vw, 2.75rem) 0;
	color: var(--bone);
	text-decoration: none;
}

.pair__half + .pair__half {
	padding-left: clamp(1.5rem, 3vw, 3rem);
	border-left: 1px solid var(--line);
}

.pair__job {
	margin-bottom: 0.75rem;
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--accent);
}

a.pair__half .display {
	transition: color 0.3s ease;
}

a.pair__half:hover .display {
	color: var(--accent);
}

@media (max-width: 40rem) {
	.pair__half + .pair__half {
		padding-left: 0;
		border-left: 0;
		border-top: 1px solid var(--line);
	}
}

/* ---------- brief builder ---------- */

.brief {
	display: grid;
	gap: clamp(2rem, 4vw, 3rem);
	max-width: 52rem;
	min-width: 0;
}

.brief fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.brief legend {
	padding: 0;
	margin-bottom: 1rem;
	font-size: 0.95rem;
	color: var(--muted);
}

.choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.choice {
	position: relative;
	cursor: pointer;
}

.choice input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.choice span {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.5rem 1.1rem;
	border: 1px solid var(--line-strong);
	font-size: 0.95rem;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.choice:hover span {
	border-color: var(--bone);
}

.choice input:checked + span {
	border-color: var(--bone);
	background: var(--bone);
	color: var(--black);
}

.choice input:focus-visible + span {
	outline: 1px solid var(--accent);
	outline-offset: 4px;
}

.brief__fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1.75rem clamp(1.5rem, 3vw, 3rem);
}

.field {
	display: grid;
	gap: 0.3rem;
	min-width: 0;
}

.field--wide {
	grid-column: 1 / -1;
}

.field label {
	font-size: 0.95rem;
	color: var(--muted);
}

.field input,
.field textarea {
	width: 100%;
	min-width: 0;
	padding: 0.6rem 0;
	border: 0;
	border-bottom: 1px solid var(--line-strong);
	border-radius: 0;
	background: transparent;
	color: var(--bone);
	font: inherit;
	font-size: 1.125rem;
}

.field textarea {
	resize: vertical;
}

.field input:focus,
.field textarea:focus {
	outline: 0;
	border-bottom-color: var(--accent);
}

.brief__text {
	padding-left: 1.25rem;
	border-left: 1px solid var(--accent);
	font-weight: 400;
	overflow-wrap: anywhere;
}

.brief__status {
	min-height: 1.6em;
	margin-top: -1rem;
	color: var(--accent);
}

/* Hidden from people; only bots fill it in. */
.brief__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.brief__done {
	max-width: 40rem;
	padding-left: 1.25rem;
	border-left: 1px solid var(--accent);
}

/* ---------- WhatsApp button in the corner of every page ---------- */

.wa-float {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 90;
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
	border-radius: 50%;
	background: var(--bone);
	color: var(--black);
	box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.45);
	transition: transform 0.35s var(--ease), background-color 0.25s ease, color 0.25s ease;
}

.wa-float:hover,
.wa-float:focus-visible {
	transform: translateY(-3px);
	background: #25d366;
	color: #ffffff;
}

.wa-float:focus-visible {
	outline: 1px solid var(--accent);
	outline-offset: 4px;
}

.wa-float[data-label]::before {
	content: attr(data-label);
	position: absolute;
	right: calc(100% + 0.75rem);
	padding: 0.4rem 0.75rem;
	white-space: nowrap;
	font-size: 0.85rem;
	background: var(--black);
	color: var(--bone);
	border: 1px solid var(--line-strong);
	opacity: 0;
	transform: translateX(6px);
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.wa-float:hover::before,
.wa-float:focus-visible::before {
	opacity: 1;
	transform: none;
}

body:has(.nav[data-open="true"]) .wa-float,
.intro-on .wa-float {
	opacity: 0;
	pointer-events: none;
}

@media print {
	.wa-float { display: none; }
}

/* ---------- closing call ---------- */

.cta {
	padding-block: var(--space);
	border-top: 1px solid var(--line);
}

.cta .wrap {
	display: grid;
	gap: 1rem;
	justify-items: start;
}

.cta__link {
	display: inline-flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 2.5rem);
	color: var(--bone);
	text-decoration: none;
}

.cta__link .display {
	transition: color 0.4s ease;
}

.cta__arrow {
	flex: none;
	width: clamp(1.5rem, 5vw, 4.5rem);
	height: clamp(1.5rem, 5vw, 4.5rem);
	border-top: 1px solid var(--accent);
	border-right: 1px solid var(--accent);
	background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--accent) calc(50% - 0.5px), var(--accent) calc(50% + 0.5px), transparent calc(50% + 0.5px));
	transition: transform 0.5s var(--ease);
}

.cta__link:hover .display {
	color: var(--accent);
}

.cta__link:hover .cta__arrow {
	transform: translate(0.6rem, -0.6rem);
}

/* ---------- footer ---------- */

.foot {
	padding-block: clamp(3rem, 6vw, 5rem) 1.5rem;
	border-top: 1px solid var(--line);
}

.foot__grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 2rem 1.5rem;
}

/* On tablets the first column takes the full width, so the email address
   in the last column has room on one line. */
@media (max-width: 64rem) and (min-width: 40.01rem) {
	.foot__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.foot__grid > .foot__col:first-child {
		grid-column: 1 / -1;
	}
}

.foot__col {
	display: grid;
	gap: 0.45rem;
	align-content: start;
	justify-items: start;
}

.foot__col a {
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: color 0.3s ease;
}

.foot__col a:hover {
	color: var(--accent);
}

[data-clock] {
	margin-left: 0.6rem;
	font-variant-numeric: tabular-nums;
}

.foot__mark {
	margin-block: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 3vw, 2.5rem);
	color: var(--bone);
}

.foot__mark svg {
	width: 100%;
	height: auto;
}

.foot__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
	font-size: 0.875rem;
	color: var(--muted);
}

.foot__base a {
	color: var(--bone);
	text-underline-offset: 0.2em;
}

@media (max-width: 40rem) {
	.foot__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.js .line__in {
		animation: none;
	}

	.js [data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.statement .w {
		color: var(--bone);
		transition: none;
	}

	.btn,
	.link,
	.index__row,
	a.index__row::after,
	.cta__arrow,
	.nav__links a {
		transition: none;
	}
}

/* ==========================================================================
   Signature motion: the logo opening, the page curtain, the square cursor,
   the light ribbons, the sideways work showcase and the tent reveal.
   The tent is the crossbar-less A from the logo; the square is its dot.
   ========================================================================== */

/* ---------- opening sequence (home page, once per visit) ---------- */

.intro {
	display: none;
}

.intro-on .intro {
	position: fixed;
	inset: 0;
	z-index: 95;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 1.75rem;
	background: var(--black);
	color: var(--bone);
	animation: intro-lift 0.95s var(--ease) 2.35s forwards;
}

.intro-on .intro.is-done {
	animation: intro-lift 0.6s var(--ease) forwards;
}

.intro__mark {
	width: min(72vw, 34rem);
}

.wm {
	width: 100%;
	height: auto;
	overflow: visible;
}

.intro-on .intro .wm__l {
	opacity: 0;
	transform: translateY(45%);
	transform-box: fill-box;
	animation: letter-in 0.85s var(--ease) forwards;
	animation-delay: calc(0.2s + var(--i) * 0.07s);
}

/* The dot of the broken L lands last, lit. */
.intro-on .intro .wm__dot {
	fill: var(--accent);
	transform: translateY(-420%);
	animation: dot-drop 0.75s cubic-bezier(0.3, 1.35, 0.5, 1) 1.2s forwards, dot-cool 0.5s ease 2s forwards;
}

.intro__tag {
	color: var(--muted);
	opacity: 0;
	animation: fade-in 0.8s ease 1.35s forwards;
}

@keyframes letter-in {
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes dot-drop {
	from {
		opacity: 1;
		transform: translateY(-420%);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes dot-cool {
	to {
		fill: var(--bone);
	}
}

@keyframes fade-in {
	to {
		opacity: 1;
	}
}

@keyframes intro-lift {
	to {
		transform: translateY(-100%);
		visibility: hidden;
	}
}

/* ---------- page curtain ---------- */

.curtain {
	position: fixed;
	inset: 0;
	z-index: 94;
	border-top: 1px solid var(--accent);
	border-bottom: 1px solid var(--accent);
	background: var(--black);
	transform: translateY(101%);
	pointer-events: none;
}

.js .curtain {
	animation: curtain-out 0.8s var(--ease) both;
}

.intro-on .curtain {
	animation: none;
}

.js .curtain.is-leaving {
	animation: curtain-in 0.5s var(--ease) both;
}

@keyframes curtain-out {
	from {
		transform: translateY(0);
	}

	to {
		transform: translateY(-101%);
	}
}

@keyframes curtain-in {
	from {
		transform: translateY(101%);
	}

	to {
		transform: translateY(0);
	}
}

/* Headlines wait for the curtain, or for the opening, before they rise. */
.js .line .line__in {
	animation-delay: 0.3s;
}

.js .line:nth-child(2) .line__in {
	animation-delay: 0.42s;
}

.js .line:nth-child(3) .line__in {
	animation-delay: 0.54s;
}

.intro-on .line .line__in {
	animation-delay: 2.5s;
}

.intro-on .line:nth-child(2) .line__in {
	animation-delay: 2.62s;
}

/* ---------- the square cursor ---------- */

.cursor {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 96;
	display: grid;
	place-items: center;
	width: 0.45rem;
	height: 0.45rem;
	margin: -0.225rem 0 0 -0.225rem;
	border: 1px solid var(--accent);
	background: var(--accent);
	color: var(--black);
	font-size: 0.8rem;
	font-weight: 500;
	opacity: 0;
	transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0);
	pointer-events: none;
	transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.cursor.is-on {
	opacity: 1;
}

.cursor.is-link {
	width: 2.25rem;
	height: 2.25rem;
	margin: -1.125rem 0 0 -1.125rem;
	background: transparent;
}

.cursor.is-label {
	width: 4.75rem;
	height: 4.75rem;
	margin: -2.375rem 0 0 -2.375rem;
	border-color: var(--bone);
	background: var(--bone);
}

.cursor::after {
	content: attr(data-label);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.cursor.is-label::after {
	opacity: 1;
}

/* ---------- light ribbons behind the home headline ---------- */

.hero {
	position: relative;
}

.hero__trails {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 98%);
	mask-image: linear-gradient(to bottom, #000 55%, transparent 98%);
}

.hero__inner {
	position: relative;
	z-index: 1;
}

/* ---------- the tent reveal ---------- */

.js [data-tent] {
	clip-path: polygon(50% 0, 50% 0, 100% 100%, 0 100%);
	transition: clip-path 1.4s var(--ease);
}

.js [data-tent].is-in {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ---------- work showcase: a slider moved by the arrows or a swipe ---------- */

.hwork {
	--ph: clamp(22rem, 52svh, 32rem);
	position: relative;
	border-top: 1px solid var(--line);
}

.hwork__pin {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
	padding-block: var(--space);
	overflow: hidden;
}

.hwork__pin > .wrap {
	width: 100%;
}

.hwork__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.5rem;
	width: 100%;
}

.hwork__head .section__label {
	position: static;
}

.hwork__count {
	margin-right: 0.75rem;
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
}

.hwork__controls {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.hwork__arrow {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 1px solid var(--line-strong);
	border-radius: 0;
	background: transparent;
	color: var(--bone);
	cursor: pointer;
	transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.hwork__arrow--prev svg {
	transform: scaleX(-1);
}

.hwork__arrow:hover:not(:disabled) {
	border-color: var(--bone);
	background: var(--bone);
	color: var(--black);
}

.hwork__arrow:focus-visible {
	outline: 1px solid var(--accent);
	outline-offset: 3px;
}

.hwork__arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

.hwork__view {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(var(--gutter), calc((100vw - 90rem) / 2 + var(--gutter)));
	scrollbar-width: none;
}

.hwork__view:focus-visible {
	outline: 1px solid var(--accent);
	outline-offset: -1px;
}

.hwork__view::-webkit-scrollbar {
	display: none;
}

.hwork__track {
	display: flex;
	gap: clamp(1.25rem, 3vw, 3rem);
	width: max-content;
	padding-inline: max(var(--gutter), calc((100vw - 90rem) / 2 + var(--gutter)));
}

.plate {
	flex: none;
	width: calc(var(--ph) * 0.8);
	scroll-snap-align: start;
}

.plate__link {
	display: grid;
	gap: 0.3rem;
	color: var(--bone);
	text-decoration: none;
}

.plate__frame {
	position: relative;
	display: block;
	height: var(--ph);
	margin-bottom: 0.9rem;
	overflow: hidden;
	background: #0b0a09;
}

.plate__frame canvas,
.plate__frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.4s var(--ease);
}

.plate__link:hover .plate__frame canvas,
.plate__link:hover .plate__frame img {
	transform: scale(1.06);
}

.plate__by {
	font-size: 0.875rem;
}

.plate__name {
	font-size: clamp(1.5rem, 2.1vw, 1.95rem);
	line-height: 1.08;
	transition: color 0.3s ease;
}

.plate__link:hover .plate__name {
	color: var(--accent);
}

.plate--end {
	display: grid;
	place-items: center;
	height: var(--ph);
}

.plate__all {
	display: inline-flex;
	align-items: center;
	gap: 1.25rem;
	color: var(--bone);
	text-decoration: none;
}

.plate__all .cta__arrow {
	width: 2rem;
	height: 2rem;
}

.plate__all:hover .cta__arrow {
	transform: translate(0.4rem, -0.4rem);
}

.hwork__bar {
	position: relative;
	height: 1px;
	background: var(--line-strong);
}

.hwork__bar span {
	position: absolute;
	inset: -1px 0 0;
	height: 3px;
	background: var(--accent);
	transform: scaleX(var(--p, 0.06));
	transform-origin: 0 50%;
	transition: transform 0.45s var(--ease);
}

@media (max-width: 40rem) {
	.hwork {
		--ph: 22rem;
	}

	.hwork__arrow {
		width: 2.75rem;
		height: 2.75rem;
	}
}



/* ---------- reel frames on the work page ---------- */

.frames {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.6rem, 1.5vw, 1.25rem);
	width: 100%;
	max-width: 40rem;
	margin-top: 1.5rem;
}

.plate__frame--reel {
	height: auto;
	aspect-ratio: 9 / 16;
	margin: 0;
}

a.plate__frame--reel:hover img,
a.plate__frame--reel:focus-visible img {
	transform: scale(1.04);
}

/* ---------- the footer logo arrives letter by letter ---------- */

.js .foot__mark .wm__l {
	opacity: 0;
	transform: translateY(55%);
	transform-box: fill-box;
	transition: transform 1.1s var(--ease), opacity 0.9s ease;
	transition-delay: calc(var(--i) * 0.05s);
}

.js .foot__mark.is-in .wm__l {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.intro-on .intro,
	.curtain,
	.cursor {
		display: none;
	}

	.js [data-tent] {
		clip-path: none;
		transition: none;
	}

	.js .foot__mark .wm__l {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.plate__frame canvas,
	.plate__frame img {
		transition: none;
	}
}

/* ==========================================================================
   Journal, projects, service pages, cookie notice
   ========================================================================== */

/* A section name set above its content rather than beside it. */
.section__label--inline {
	position: static;
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.section__body--solo {
	grid-column: 4 / span 7;
}

@media (max-width: 64rem) {
	.section__body--solo {
		grid-column: 1 / -1;
	}
}

/* ---------- filter buttons ---------- */

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.chip {
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	padding: 0.4rem 1rem;
	border: 1px solid var(--line-strong);
	border-radius: 0;
	background: transparent;
	color: var(--bone);
	font: inherit;
	font-size: 0.9rem;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.chip:hover {
	border-color: var(--bone);
}

.chip[aria-current="page"],
.chip[aria-pressed="true"] {
	border-color: var(--bone);
	background: var(--bone);
	color: var(--black);
}

.section--journal .chips {
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- journal cards ---------- */

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.25rem, 2.5vw, 2.5rem);
}

@media (max-width: 64rem) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 40rem) {
	.post-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.post-card__link {
	display: grid;
	gap: 1.1rem;
	color: var(--bone);
	text-decoration: none;
}

.post-card__frame {
	height: auto;
	aspect-ratio: 16 / 9;
	margin: 0;
}

.post-card__link:hover .post-card__frame img,
.post-card__link:hover .post-card__frame canvas {
	transform: scale(1.05);
}

.post-card__text {
	display: grid;
	gap: 0.55rem;
	align-content: start;
}

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1rem;
	font-size: 0.85rem;
}

.post-card__meta span + span::before {
	content: "·";
	margin-right: 1rem;
	color: var(--dim);
}

.post-card__title {
	transition: color 0.3s ease;
}

.post-card__link:hover .post-card__title {
	color: var(--accent);
}

.post-card__excerpt {
	max-width: 34rem;
	color: var(--muted);
}

.post-card__date {
	font-size: 0.85rem;
}

/* The newest post, large, above the grid. */
.post-card--feature {
	margin-bottom: clamp(3rem, 6vw, 5rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
	border-bottom: 1px solid var(--line);
}

.post-card--feature .post-card__link {
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: end;
}

.post-card--feature .post-card__text {
	gap: 1rem;
}

@media (max-width: 52rem) {
	.post-card--feature .post-card__link {
		grid-template-columns: minmax(0, 1fr);
	}
}

.journal__empty {
	color: var(--muted);
}

.pager {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	margin-top: clamp(3rem, 6vw, 5rem);
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}

.pager > :last-child {
	justify-self: end;
}

.pager__count {
	font-size: 0.9rem;
}

@media (max-width: 30rem) {
	.pager {
		grid-template-columns: 1fr 1fr;
	}

	.pager__count {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: center;
	}
}

/* ---------- one post ---------- */

.post__head {
	padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2rem, 4vw, 3rem);
}

.post__head .wrap {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
}

.post__title {
	max-width: 18ch;
	font-size: clamp(2.5rem, 7vw, 6.5rem);
}

.post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.6rem;
	font-size: 0.9rem;
}

.post__meta a {
	color: var(--muted);
	text-decoration: none;
	transition: color 0.25s ease;
}

.post__meta a:hover {
	color: var(--bone);
}

.page-head .post__meta {
	grid-column: 1 / -1;
}

.post__byline {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.6rem;
	font-size: 0.95rem;
}

.post__cover {
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.post__frame {
	height: auto;
	aspect-ratio: 16 / 9;
	margin: 0;
}

.post__body {
	margin-inline: auto;
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* Long-form text: posts, service pages, the privacy policy. */
.prose--long {
	max-width: 42rem;
	gap: 0;
	font-size: clamp(1.0625rem, 1.2vw, 1.175rem);
	line-height: 1.7;
	color: #cfc8bb;
}

.prose--long > * + * {
	margin-top: 1.3em;
}

.prose--long h2,
.prose--long h3,
.prose--long h4 {
	color: var(--bone);
	font-family: var(--serif);
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.15;
}

.prose--long h2 {
	margin-top: 2.2em;
	font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.prose--long h3 {
	margin-top: 1.8em;
	font-size: clamp(1.35rem, 2vw, 1.65rem);
	font-weight: 500;
}

.prose--long h2 + *,
.prose--long h3 + * {
	margin-top: 0.7em;
}

.prose--long > :first-child {
	margin-top: 0;
}

.prose--long ul,
.prose--long ol {
	display: grid;
	gap: 0.6em;
	padding-left: 1.25em;
}

.prose--long ul {
	list-style: none;
}

.prose--long ul li {
	position: relative;
}

.prose--long ul li::before {
	content: "";
	position: absolute;
	left: -1.25em;
	top: 0.72em;
	width: 0.35em;
	height: 0.35em;
	background: var(--accent);
}

.prose--long ol {
	list-style: decimal;
}

.prose--long ol li::marker {
	color: var(--accent);
}

.prose--long strong {
	color: var(--bone);
	font-weight: 600;
}

.prose--long blockquote,
.prose--long .wp-block-quote,
.prose--long .wp-block-pullquote {
	margin: 2em 0;
	padding: 0 0 0 1.25rem;
	border: 0;
	border-left: 1px solid var(--accent);
	font-family: var(--serif);
	font-size: clamp(1.45rem, 2.4vw, 1.9rem);
	line-height: 1.3;
	color: var(--bone);
}

.prose--long blockquote cite {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--sans);
	font-size: 0.9rem;
	font-style: normal;
	color: var(--muted);
}

.prose--long figure,
.prose--long .wp-block-image,
.prose--long .wp-block-embed {
	margin: 2em 0;
}

.prose--long img {
	height: auto;
}

.prose--long figcaption {
	margin-top: 0.6rem;
	font-size: 0.875rem;
	color: var(--muted);
}

.prose--long iframe {
	max-width: 100%;
}

.prose--long .wp-block-embed__wrapper iframe[src*="youtube"],
.prose--long .wp-block-embed__wrapper iframe[src*="vimeo"] {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.prose--long hr {
	margin: 2.5em 0;
	border: 0;
	border-top: 1px solid var(--line-strong);
}

.prose--long code {
	padding: 0.1em 0.35em;
	background: #15130f;
	font-size: 0.9em;
}

.prose--long pre {
	overflow-x: auto;
	padding: 1rem;
	background: #15130f;
}

.prose--long table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.prose--long .wp-block-table {
	overflow-x: auto;
}

.prose--long th,
.prose--long td {
	padding: 0.6rem 0.75rem 0.6rem 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.prose--long .wp-block-button__link {
	display: inline-flex;
	padding: 0.75rem 1.5rem;
	border-radius: 0;
	background: var(--bone);
	color: var(--black);
	text-decoration: none;
}

.alignwide,
.alignfull {
	max-width: none;
}

.post__end {
	display: grid;
	gap: 1.25rem;
	max-width: 42rem;
	margin: 0 auto clamp(3rem, 6vw, 5rem);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid var(--line-strong);
}

/* ---------- projects ---------- */

.work-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.work-head .section__label--inline {
	margin-bottom: 0;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.25rem, 2.5vw, 2.5rem);
}

@media (max-width: 64rem) {
	.project-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 34rem) {
	.project-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.project-card[hidden] {
	display: none;
}

.project-card__frame {
	height: auto;
	aspect-ratio: 4 / 5;
}

.project-card__excerpt {
	margin-top: 0.4rem;
	color: var(--muted);
	font-size: 0.95rem;
}

.project__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

.project__cover {
	position: sticky;
	top: calc(var(--nav-h) + 1.5rem);
}

.project__frame {
	height: auto;
	aspect-ratio: 4 / 5;
	margin: 0;
}

.project__body {
	display: grid;
	gap: clamp(1.75rem, 3vw, 2.5rem);
	min-width: 0;
}

.project__body .frames {
	margin-top: 0;
}

@media (max-width: 52rem) {
	.project__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.project__cover {
		position: static;
		max-width: 28rem;
	}
}

.project__next .cta__link {
	display: inline-grid;
	grid-template-columns: auto auto;
	align-items: center;
	gap: 0.75rem clamp(1rem, 3vw, 2.5rem);
}

.project__next-label {
	grid-column: 1 / -1;
	font-size: 0.95rem;
}

/* ---------- footer: privacy and cookie links ---------- */

.foot__legal {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
}

.foot__cookies {
	padding: 0;
	border: 0;
	background: none;
	color: var(--bone);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

/* ---------- cookie notice ---------- */

.consent {
	position: fixed;
	left: max(1rem, env(safe-area-inset-left));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 91;
	display: grid;
	gap: 1rem;
	width: min(26rem, calc(100vw - 6.5rem));
	padding: 1.25rem;
	border: 1px solid var(--line-strong);
	background: rgba(8, 7, 6, 0.96);
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
	font-size: 0.9rem;
	line-height: 1.5;
	opacity: 0;
	transform: translateY(1rem);
	transition: opacity 0.4s ease, transform 0.4s var(--ease);
}

.consent[hidden] {
	display: none;
}

.consent.is-shown {
	opacity: 1;
	transform: none;
}

.consent a {
	color: var(--bone);
	text-underline-offset: 0.2em;
}

.consent__text {
	color: #cfc8bb;
}

.consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.consent .btn {
	min-height: 2.6rem;
	padding: 0.5rem 1.1rem;
	font-size: 0.875rem;
}

@media (max-width: 30rem) {
	.consent {
		left: 0.75rem;
		width: calc(100vw - 5.75rem);
		padding: 1rem;
	}
}

@media print {
	.consent { display: none; }
}

/* ---------- back links ---------- */

.back {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 2.75rem;
	padding: 0.45rem 1rem 0.45rem 0.8rem;
	border: 1px solid var(--line-strong);
	color: var(--bone);
	font-size: 0.9rem;
	text-decoration: none;
	transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.back svg {
	flex: none;
	transition: transform 0.35s var(--ease);
}

.back:hover {
	border-color: var(--bone);
	background: var(--bone);
	color: var(--black);
}

.back:hover svg {
	transform: translateX(-3px);
}

.page-head .back {
	grid-column: 1 / -1;
	justify-self: start;
}

.back-row {
	padding-block: 0 clamp(2.5rem, 5vw, 4rem);
}

.post__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.chip--small {
	min-height: 2.75rem;
	font-size: 0.85rem;
	color: var(--muted);
}

.post__back {
	max-width: 42rem;
	margin: 0 auto clamp(3rem, 6vw, 5rem);
}

/* Service page: text follows the header picture closely. */
.section--tight {
	padding-top: clamp(1rem, 2vw, 2rem);
}

/* Pictures inside posts and service pages. */
.prose--long figure img,
.prose--long .wp-block-image img {
	display: block;
	width: 100%;
	border-radius: 2px;
}
