/*
Theme Name: Omer Avcioglu
Theme URI: https://omeravcioglu.com
Author: Omer Avcioglu
Description: Portfolio of Omer Avcioglu, product designer: selected work and eleven case studies, dark by default with a light mode. Page markup in parts/ is generated from portfolio/src by portfolio/tools/build-pages.py.
Version: 3.0.8
Requires at least: 6.0
Requires PHP: 7.4
License: All rights reserved
Text Domain: omer-avcioglu
*/

:root {
	--bg: #FAFAF8;
	--ink: #141414;
	--muted: #6A6A65;
	--soft: #4A4A46;
	--role: #70706B;
	--line: #E3E1DB;
	--thumb: #EFEEEA;
	--client-bg: #ECEAE5;
	--hover: #EFEDE8;
	--rest-shadow: 0 1px 2px rgba(20, 20, 20, 0.06);
	--lift-shadow: 0 26px 44px -24px rgba(20, 20, 20, 0.5);
	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #0F0F10;
	--ink: #F2F1EE;
	--muted: #9C9B96;
	--soft: #B9B8B3;
	--role: #8A8983;
	--line: #2A2A2B;
	--thumb: #1E1E1F;
	--client-bg: #1A1A1B;
	--hover: #1E1E1F;
	--rest-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
	--lift-shadow: 0 26px 44px -24px rgba(0, 0, 0, 0.85);
	color-scheme: dark;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: Geist, "Segoe UI", system-ui, -apple-system, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--ink); color: var(--bg); }

a { transition: opacity 200ms ease; }
main a:not(.card):hover,
.site-footer a:hover { opacity: 0.7; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

picture { display: contents; }

.skip-link {
	position: absolute;
	left: 16px;
	top: -64px;
	z-index: 200;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--ink);
	color: var(--bg);
	font-size: 14px;
	text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Header */

.site-header {
	max-width: 1280px;
	margin: 0 auto;
	padding: 28px clamp(20px, 5vw, 64px);
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	flex-wrap: wrap;
}

.site-name {
	color: var(--ink);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.01em;
	text-decoration: none;
}
.site-name:hover { opacity: 0.7; }

.site-tools {
	display: flex;
	align-items: center;
	gap: 8px clamp(12px, 2vw, 24px);
	flex-wrap: wrap;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 4px clamp(16px, 4vw, 32px);
	flex-wrap: wrap;
	font-size: 15px;
}

.site-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--soft);
	text-decoration: none;
	transition: color 200ms ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.theme-toggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease;
}
.theme-toggle:hover { background: var(--hover); }
.theme-toggle svg {
	grid-area: 1 / 1;
	transition: opacity 250ms ease, transform 500ms cubic-bezier(.2, .8, .2, 1);
}
.theme-toggle .i-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
/* The switch needs JavaScript; without it the site simply stays dark. */
html:not(.js) .theme-toggle { display: none; }

/* Shared type and layout */

.wrap {
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: clamp(20px, 5vw, 64px);
	box-sizing: border-box;
}

.eyebrow {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
.eyebrow__n { margin-right: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }

.lead {
	margin: 14px 0 0;
	max-width: 56ch;
	font-size: 18px;
	line-height: 1.55;
	color: var(--soft);
	text-wrap: pretty;
}
.lead--sub { margin-top: 10px; font-size: 17px; }

.prose p {
	margin: 0;
	max-width: 62ch;
	font-size: 17px;
	line-height: 1.62;
	color: var(--soft);
	text-wrap: pretty;
}
.prose p + p { margin-top: 14px; }

.prose strong,
.lead strong,
.list strong,
.cols strong,
figcaption strong,
dd strong,
td strong { color: var(--ink); font-weight: 500; }

.prose a,
.lead a,
.list a,
.note a,
.facts a,
dd a,
td a,
figcaption a { color: var(--ink); text-underline-offset: 3px; }

.list {
	margin: 0;
	padding: 0;
	max-width: 62ch;
	list-style: none;
}
.list li {
	position: relative;
	padding: 11px 0 11px 22px;
	border-top: 1px solid var(--line);
	font-size: 16px;
	line-height: 1.55;
	color: var(--soft);
}
.list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 21px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--muted);
}

.note {
	margin: 0;
	max-width: 62ch;
	font-size: 15px;
	line-height: 1.6;
	color: var(--muted);
}

/* Home: the name rises in letter by letter, then its letters follow the pointer (assets/js/site.js). */

@keyframes oa-rise {
	from { transform: translateY(110%); }
	to { transform: translateY(0); }
}

@keyframes oa-fade-up {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.hero-l {
	animation: oa-rise 850ms cubic-bezier(.2, .8, .2, 1) var(--d, 0ms) both;
	transition: font-weight 260ms ease, color 260ms ease;
}

.hero-sub { animation: oa-fade-up 900ms cubic-bezier(.2, .8, .2, 1) 450ms both; }

.home-hero {
	padding-block: clamp(48px, 7vw, 104px) clamp(56px, 7vw, 96px);
	text-align: center;
	touch-action: pan-y pinch-zoom;
}
.home-hero__line {
	margin: 18px auto 0;
	max-width: 60ch;
	font-size: clamp(15px, 1.3vw, 18px);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	color: var(--ink);
	text-wrap: balance;
}
.home-hero__sub {
	margin: 14px auto 0;
	max-width: 52ch;
	font-size: clamp(15px, 1.3vw, 17px);
	line-height: 1.55;
	color: var(--soft);
	text-wrap: pretty;
}
.home-hero__place { margin: 14px auto 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Home: work cards. Capsules lift and their pieces spread on hover or keyboard focus. */

.home-work { padding-bottom: clamp(96px, 11vw, 160px); }
.home-work__title { margin: 0 0 24px; }
.home-work__group { margin: 0 0 20px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--soft); }
.home-work__more { margin-top: clamp(72px, 9vw, 120px); }
.home-work__more .cards + .home-work__group { margin-top: clamp(40px, 5vw, 64px); }

.cards { display: grid; gap: 40px 24px; }
.cards--feat { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px 32px; }
.cards--more { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 36px 20px; }
/* Three featured projects sit in one row on wide screens. */
@media (min-width: 1000px) {
	.cards--feat.cards--n3 { grid-template-columns: repeat(3, 1fr); gap: 56px 28px; }
}

.card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: var(--ink);
	text-decoration: none;
}
.card__body { display: flex; flex-direction: column; gap: 8px; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__title { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.cards--feat .card__title { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.02em; }
.card__kind { font-size: 13px; line-height: 1.45; color: var(--muted); }
.card__text { font-size: 15px; line-height: 1.55; color: var(--soft); }
.cards--feat .card__text { max-width: 56ch; font-size: 16px; }
.card svg.card-arrow { flex: none; transition: opacity 300ms ease, transform 400ms cubic-bezier(.2, .8, .2, 1); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip {
	padding: 3px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--soft);
}

.card .cap { transform: translateY(0); box-shadow: var(--rest-shadow); }
.card:hover .cap,
.card:focus-visible .cap { transform: translateY(-6px); box-shadow: var(--lift-shadow); }

.cap-el { height: auto; transform: var(--r); }
.card:hover .cap-el,
.card:focus-visible .cap-el { transform: var(--h); }

.card-arrow { opacity: 0; transform: translateX(-6px); }
.card:hover .card-arrow,
.card:focus-visible .card-arrow { opacity: 1; transform: translateX(0); }

.card:focus-visible { outline-offset: 8px; border-radius: 16px; }

@media (hover: none) {
	.card-arrow { opacity: 1; transform: none; }
}

/* Home: about */

.about { border-top: 1px solid var(--line); }
.about__in {
	padding-block: clamp(80px, 10vw, 144px);
	display: flex;
	flex-wrap: wrap;
	gap: 24px clamp(32px, 6vw, 96px);
}
.about__label { flex: 1 1 200px; margin: 0; }
.about__main {
	flex: 999 1 600px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: clamp(40px, 5vw, 64px);
}
.about__intro {
	margin: 0;
	max-width: 34ch;
	font-size: clamp(22px, 2.3vw, 30px);
	line-height: 1.4;
	letter-spacing: -0.015em;
	text-wrap: pretty;
}
.about__text { display: flex; flex-direction: column; gap: 14px; }
.about__text p {
	margin: 0;
	max-width: 60ch;
	font-size: 17px;
	line-height: 1.62;
	color: var(--soft);
	text-wrap: pretty;
}
.about__motto { margin: 0; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.4; letter-spacing: -0.01em; }
.about h3.eyebrow { margin-bottom: 4px; }
.xp { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.xp li { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.xp__role { flex: 1 1 220px; font-weight: 500; }
.xp__org { flex: 1 1 200px; color: var(--soft); }
.xp__when { flex: 0 0 112px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.about__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
	gap: 28px 32px;
	font-size: 15px;
	line-height: 1.5;
}
.about__grid h3.eyebrow { margin-bottom: 10px; }
.about__grid p { margin: 0; }
.about__grid p + p { margin-top: 10px; }
.about__grid span { color: var(--soft); }

/* Case study: title block */

.cs-hero { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 64px); }

.cs-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--soft);
	font-size: 14px;
	text-decoration: none;
}

.cs-hero h1 {
	margin: clamp(28px, 4vw, 56px) 0 0;
	font-weight: 400;
	font-size: clamp(42px, 7vw, 104px);
	line-height: 0.98;
	letter-spacing: -0.05em;
	text-wrap: balance;
}

.cs-role {
	margin: 14px 0 0;
	max-width: 28ch;
	font-size: clamp(22px, 2.6vw, 36px);
	line-height: 1.2;
	letter-spacing: -0.03em;
	color: var(--role);
	text-wrap: balance;
}

.facts {
	margin: clamp(40px, 5vw, 64px) 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
	gap: 20px 32px;
}
.facts dt,
.triad dt,
.aud dt,
.opts dt,
.iter__fields dt {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
.facts dd { margin: 8px 0 0; font-size: 16px; line-height: 1.45; }
/* Five facts: between four and five columns one would sit alone, so hold three columns there. */
@media (min-width: 951px) and (max-width: 1199px) {
	.facts--5 { grid-template-columns: repeat(3, 1fr); }
}

/* Case study: the 30-second version */

.cs-glance { padding-top: clamp(64px, 8vw, 112px); }

.cs-lead {
	margin: 0;
	max-width: 36ch;
	font-size: clamp(24px, 2.6vw, 34px);
	line-height: 1.35;
	letter-spacing: -0.02em;
	text-wrap: pretty;
}

.triad {
	margin: clamp(48px, 6vw, 80px) 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 28px 40px;
}
.triad dd { margin: 10px 0 0; max-width: 46ch; font-size: 16px; line-height: 1.55; color: var(--soft); }

.keys { margin-top: clamp(40px, 5vw, 64px); }
.keys .eyebrow { margin-bottom: 6px; }
.keys ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: key;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
	gap: 0 40px;
}
.keys li { counter-increment: key; }
.keys a {
	display: flex;
	align-items: baseline;
	gap: 16px;
	min-height: 44px;
	padding: 14px 0;
	box-sizing: border-box;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font-size: 16px;
	line-height: 1.45;
	text-decoration: none;
}
.keys a::before {
	content: counter(key, decimal-leading-zero);
	flex: none;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.keys a::after { content: "\2193"; flex: none; margin-left: auto; color: var(--muted); }

/* Case study: sticky section links */

.cs-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	margin-top: clamp(56px, 7vw, 96px);
	border-block: 1px solid var(--line);
	background: var(--bg);
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
}
.cs-nav__in {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(20px, 5vw, 64px);
	box-sizing: border-box;
	display: flex;
	gap: 0 clamp(18px, 2.4vw, 32px);
	overflow-x: auto;
	scrollbar-width: none;
}
.cs-nav__in::-webkit-scrollbar { display: none; }
.cs-nav a {
	flex: none;
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	border-bottom: 1px solid transparent;
	margin-bottom: -1px;
	color: var(--muted);
	font-size: 14px;
	white-space: nowrap;
	text-decoration: none;
	transition: color 200ms ease, border-color 200ms ease;
}
@media (max-width: 760px) {
	.cs-nav__in {
		gap: 0 20px;
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
	}
}
.cs-nav a:hover { color: var(--ink); opacity: 1; }
.cs-nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Case study: chapters */

.cs-section { padding-top: clamp(80px, 10vw, 144px); scroll-margin-top: 8px; }
.cs-section > :not(:first-child) { margin-top: clamp(32px, 4vw, 52px); }

.cs-head h2 {
	margin: 0;
	max-width: 24ch;
	font-weight: 400;
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.12;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.cs-sub { padding-top: clamp(16px, 2vw, 28px); }
.cs-sub > :not(:first-child) { margin-top: clamp(24px, 3vw, 36px); }
.cs-sub h3,
.iter__head h3 {
	margin: 0;
	max-width: 30ch;
	font-size: clamp(21px, 2vw, 27px);
	font-weight: 500;
	line-height: 1.22;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.cs-sub > h3 + .lead--sub:not(:first-child) { margin-top: 10px; }
.cs-sub > .tags + h3:not(:first-child) { margin-top: 0; }
.cs-section > .cs-sub:not(:first-child) { margin-top: clamp(40px, 5vw, 72px); }
.cs-section > .anchor { display: block; margin: 0; height: 0; scroll-margin-top: 72px; }
.cs-section > .anchor + .cs-sub:not(:first-child) { margin-top: clamp(40px, 5vw, 72px); }

.hmw {
	margin: 0;
	max-width: 30ch;
	font-size: clamp(22px, 2.4vw, 32px);
	line-height: 1.3;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.hmw .eyebrow { display: block; }

.quote {
	margin: 0;
	max-width: 46ch;
	padding-left: 20px;
	border-left: 2px solid var(--ink);
}
.quote p { margin: 0; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.4; letter-spacing: -0.01em; }
.quote footer {
	margin-top: 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	font-size: 14px;
	color: var(--muted);
}

/* Expandable section: secondary detail, one click away. Consecutive ones share a rule. */
.extra { border-block: 1px solid var(--line); margin-block: clamp(20px, 2.4vw, 32px); }
.extra + .extra { margin-top: calc(-1 * clamp(20px, 2.4vw, 32px) - 1px); }
.extra summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	font-size: 16px;
	font-weight: 500;
	color: var(--soft);
	cursor: pointer;
	list-style: none;
	transition: color 160ms ease;
}
.extra summary:hover,
.extra[open] summary { color: var(--ink); }
.extra summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.extra summary::-webkit-details-marker { display: none; }
.extra summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; line-height: 1; color: var(--muted); }
.extra[open] summary::after { content: "\2212"; }
.extra > :not(summary) { margin-bottom: 20px; }
.extra > summary + * { margin-top: 12px; }
.extra > :last-child { margin-bottom: clamp(24px, 3vw, 40px); }

/* Evidence tags: a filled dot is something that happened, a hollow one is a plan or an after-the-fact comparison. */

.tags { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 10px 4px 9px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.01em;
	color: var(--soft);
	white-space: nowrap;
	vertical-align: middle;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.tag--open::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

/* Figures */

.fig { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.fig__frame {
	position: relative;
	display: block;
	border-radius: 14px;
	overflow: hidden;
	background: var(--tint, var(--thumb));
}
.fig__frame img,
.fig__frame video { display: block; width: 100%; height: auto; }
.fig--wide .fig__frame { aspect-ratio: 16 / 9; }
.fig--wide .fig__frame img { height: 100%; object-fit: cover; }
.fig--phone .fig__frame {
	display: grid;
	place-items: center;
	padding: clamp(24px, 3vw, 36px) 16px;
}
.fig--phone .fig__frame img,
.fig--phone .fig__frame video {
	width: min(80%, 260px);
	height: auto;
	border-radius: 11% / 5.1%;
	box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.55);
}
.fig--paper .fig__frame { background: var(--tint, #F4F1EA); }
.fig--device .fig__frame { display: grid; place-items: center; padding: clamp(20px, 2.6vw, 32px) 12px; }
.fig--device .fig__frame img { width: min(86%, 300px); height: auto; }
.fig--piece .fig__frame { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 9%; }
.fig--piece .fig__frame img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 0; }

figcaption { max-width: 62ch; font-size: 16px; line-height: 1.5; color: var(--soft); }
.fig__label { color: var(--ink); font-weight: 500; }

/* Pause and play for the looping recordings (added by assets/js/site.js). */
.vid-toggle {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(17, 17, 17, 0.72);
	color: #FFFFFF;
	cursor: pointer;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background-color 200ms ease;
}
.vid-toggle:hover { background: rgba(17, 17, 17, 0.9); }
.vid-toggle:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; border-radius: 50%; }

.figs { display: grid; gap: clamp(36px, 4vw, 56px) clamp(20px, 2.5vw, 32px); }
.figs--2 { grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.figs--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.figs--4 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }

/* Rows of phone screens become a sideways strip on small screens, so a page of twelve screens stays short. */
@media (max-width: 700px) {
	.figs--swipe {
		display: flex;
		gap: 14px;
		margin-inline: calc(-1 * clamp(20px, 5vw, 64px));
		padding-inline: clamp(20px, 5vw, 64px);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: clamp(20px, 5vw, 64px);
		scrollbar-width: none;
	}
	.figs--swipe::-webkit-scrollbar { display: none; }
	.figs--swipe > .fig { flex: 0 0 76%; scroll-snap-align: start; }
}

.strip ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
	gap: 24px 16px;
}
.strip li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--muted);
	text-align: center;
}
.strip img { width: 72px; height: 72px; object-fit: contain; }
.strip__cap { margin: 20px 0 0; max-width: 62ch; font-size: 16px; line-height: 1.5; color: var(--soft); }

/* Numbered rules */

.rules {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
	gap: 28px 24px;
}
.rules li { display: flex; flex-direction: column; padding-top: 16px; border-top: 1px solid var(--line); }
.rules__n { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.rules__t { margin-top: 10px; font-size: 17px; font-weight: 500; line-height: 1.3; }
.rules__d { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--soft); }

/* Audiences */

.aud {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 36px clamp(24px, 3vw, 48px);
}
.aud--2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.aud__card { padding-top: 18px; border-top: 1px solid var(--ink); }
.aud__card .eyebrow { margin-bottom: 8px; }
.aud__card h3 { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
.aud__card dl { margin: 18px 0 0; display: grid; gap: 16px; }
.aud dd { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--soft); }

/* Tables: comparisons, edge cases, measures */

.tablewrap { max-width: 100%; }
.matrix { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.matrix caption {
	caption-side: top;
	padding-bottom: 16px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--muted);
	text-align: left;
}
.matrix th,
.matrix td {
	padding: 16px 24px 16px 0;
	border-top: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}
.matrix th:last-child,
.matrix td:last-child { padding-right: 0; }
.matrix thead th {
	padding-block: 0 12px;
	border-top: 0;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
.matrix tbody th { width: 18%; min-width: 132px; font-weight: 500; color: var(--ink); }
.matrix td { color: var(--soft); }
.matrix:not(.matrix--plain) td:last-child { color: var(--ink); }
.matrix--edge tbody th { width: 34%; }
.matrix--metrics tbody th { width: 24%; }

@media (max-width: 760px) {
	.matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.matrix,
	.matrix tbody,
	.matrix tr,
	.matrix th,
	.matrix td { display: block; width: auto; }
	.matrix caption { display: block; }
	.matrix tbody th,
	.matrix--edge tbody th,
	.matrix--metrics tbody th { width: auto; min-width: 0; }
	.matrix tr { padding: 16px 0; border-top: 1px solid var(--line); }
	.matrix th,
	.matrix td { padding: 0; border: 0; }
	.matrix tbody th { margin-bottom: 10px; font-size: 17px; }
	.matrix td + td { margin-top: 10px; }
	.matrix td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		font-size: 12px;
		font-weight: 500;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--muted);
	}
}

/* Options weighed against each other */

.opts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 36px clamp(20px, 2.5vw, 32px);
}
.opts--2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px clamp(24px, 3vw, 40px); }
.opts__card { padding-top: 18px; border-top: 1px solid var(--line); }
.opts__card.is-chosen { padding-top: 17px; border-top: 2px solid var(--ink); }
.opts__card.is-chosen > .eyebrow { color: var(--ink); }
.opts__card .eyebrow { margin-bottom: 8px; }
.opts__img { display: block; margin-bottom: 18px; border-radius: 12px; overflow: hidden; background: var(--thumb); }
.opts__img img { display: block; width: 100%; height: auto; }
.opts__card h3 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; }
.opts__text { margin: 8px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--soft); }
.opts__card dl { margin: 16px 0 0; display: grid; gap: 12px; }
.opts dd { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--soft); }
.opts .is-chosen dd { color: var(--soft); }

/* Before and after */

.ba {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	gap: 32px clamp(20px, 2.5vw, 32px);
}
.ba__side { gap: 12px; }
.ba__label {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
.ba__side:last-child .ba__label { color: var(--ink); }

.pin {
	position: absolute;
	left: var(--x);
	top: var(--y);
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #111111;
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	box-shadow: 0 0 0 2px #FFFFFF, 0 6px 14px rgba(0, 0, 0, 0.45);
}

.ba__notes {
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: pin;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 12px 32px;
}
.ba__notes li {
	counter-increment: pin;
	position: relative;
	min-height: 24px;
	padding-left: 36px;
	font-size: 15.5px;
	line-height: 1.5;
	color: var(--soft);
}
.ba__notes li::before {
	content: counter(pin);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--bg);
	font-size: 12px;
	font-weight: 600;
}

/* English notes under one screenshot: numbered marks on the image, their legend in the caption. */
.fig__notes { margin: 10px 0 0; grid-template-columns: 1fr; gap: 8px; }
.fig__notes li { font-size: 15px; }
figcaption > .fig__notes:first-child { margin-top: 0; }
.pin--note { width: 20px; height: 20px; font-size: 11px; }

/* Iterations: what was tried, what was heard, what changed */

.iter { padding-top: 28px; border-top: 1px solid var(--line); }
.cs-section > .iter + .iter:not(:first-child),
.cs-sub > .iter + .iter:not(:first-child) { margin-top: clamp(56px, 7vw, 96px); }
.iter > :not(:first-child) { margin-top: clamp(24px, 3vw, 36px); }
.iter__head .eyebrow { margin-bottom: 10px; }
.iter__head .tags { margin-bottom: 14px; }
.iter__fields {
	margin-bottom: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 24px 32px;
}
.iter__fields dd { margin: 8px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--soft); }
/* Five fields would leave one alone on a second row: lay them out three over two. */
@media (min-width: 900px) {
	.iter__fields--5 { grid-template-columns: repeat(3, 1fr); }
}

/* Flows */

.flowfig,
.treefig { margin: 0; display: flex; flex-direction: column; gap: 18px; }

.flow {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(168px, 100%), 1fr));
	row-gap: 28px;
}
.flow li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 22px 0 0;
	border-top: 1px solid var(--ink);
}
.flow li::after {
	content: "";
	position: absolute;
	top: -5px;
	right: 8px;
	width: 8px;
	height: 8px;
	border-top: 1px solid var(--ink);
	border-right: 1px solid var(--ink);
	transform: rotate(45deg);
}
.flow li:last-child::after { display: none; }
.flow__n { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.flow__t { font-size: 16px; font-weight: 500; line-height: 1.3; }
.flow__d { font-size: 14.5px; line-height: 1.5; color: var(--soft); }

@media (max-width: 560px) {
	.flow { grid-template-columns: 1fr; row-gap: 0; }
	.flow li { padding: 0 0 26px 22px; border-top: 0; border-left: 1px solid var(--ink); }
	.flow li:last-child { padding-bottom: 0; }
	.flow li::after { top: auto; right: auto; bottom: 6px; left: -5px; transform: rotate(135deg); }
}

/* Information architecture */

.tree { display: grid; justify-items: center; }
.tree__root {
	margin: 0;
	padding: 10px 20px;
	border: 1px solid var(--ink);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
}
.tree__branches {
	position: relative;
	width: 100%;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
	gap: 28px 20px;
	border-top: 1px solid var(--ink);
}
.tree__branches::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -21px;
	height: 20px;
	border-left: 1px solid var(--ink);
}
.tree__branches > li { position: relative; padding-top: 22px; }
.tree__branches > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	height: 12px;
	border-left: 1px solid var(--ink);
}
.tree__t { display: block; font-size: 16px; font-weight: 500; line-height: 1.3; }
.tree__branches ul { margin: 8px 0 0; padding: 0; list-style: none; }
.tree__branches ul li { padding: 3px 0; font-size: 14.5px; line-height: 1.5; color: var(--soft); }

@media (max-width: 560px) {
	.tree { justify-items: start; }
	.tree__branches { border-top: 0; border-left: 1px solid var(--ink); margin-left: 20px; width: calc(100% - 20px); gap: 0; }
	.tree__branches::before { left: -1px; }
	.tree__branches > li { padding: 14px 0 6px 20px; }
	.tree__branches > li::before { left: 0; top: 26px; width: 12px; height: 0; border-left: 0; border-top: 1px solid var(--ink); }
}

/* Outcome ledger */

.status {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
	gap: 0 clamp(24px, 4vw, 64px);
}
.status__row {
	display: grid;
	grid-template-columns: 124px 1fr;
	gap: 6px 20px;
	padding: 16px 0;
	border-top: 1px solid var(--line);
}
.status dt { font-size: 15px; font-weight: 500; line-height: 1.5; }
.status dd { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--soft); }
.status__state {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-right: 10px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
	white-space: nowrap;
}
.status__state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.status--no .status__state { color: var(--muted); }
.status--no .status__state::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.status--part .status__state::before { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--ink); }

@media (max-width: 480px) {
	.status__row { grid-template-columns: 1fr; }
}

/* Text columns */

.cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: 40px clamp(24px, 4vw, 64px);
}
.cols h3.eyebrow { margin-bottom: 6px; }
.cols p { margin: 0; max-width: 56ch; font-size: 16px; line-height: 1.6; color: var(--soft); }

/* Next project */

.next { padding-block: clamp(80px, 10vw, 144px) clamp(72px, 9vw, 120px); }
.next a {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
}
.next .eyebrow { margin: 0; }
.next__t {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: clamp(28px, 3.4vw, 48px);
	letter-spacing: -0.04em;
}

/* Plain pages: 404 and anything published through WordPress itself. */

.plain {
	max-width: 760px;
	min-height: 50vh;
	margin: 0 auto;
	padding: clamp(48px, 8vw, 120px) clamp(20px, 5vw, 64px);
	box-sizing: border-box;
}
.plain .eyebrow { margin: 0 0 14px; }
.plain h1 {
	margin: 0 0 20px;
	font-weight: 400;
	font-size: clamp(40px, 6vw, 72px);
	line-height: 1;
	letter-spacing: -0.04em;
}
.plain p,
.plain li { font-size: 17px; line-height: 1.65; color: var(--soft); }
.plain a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero-l,
	.hero-sub { animation: none; }
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.cs-nav,
	.theme-toggle,
	.skip-link { display: none; }
}
