/* Strip mockup — a single horizontal row that moves as you scroll. */

:root {
	/* margins, gutters, line height and image sizes come from the grid: see grid.css */
	--ink: #111;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: var(--ink); }
body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 10.5px;
	line-height: 1.35;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	-webkit-font-smoothing: antialiased;
}
a, button { color: inherit; text-decoration: none; font: inherit; letter-spacing: inherit; text-transform: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
a:hover, button:hover { opacity: 0.45; }
.item:hover { opacity: 1; }   /* no fade when hovering over images */
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- fixed corners ---------- */
.corner { position: fixed; z-index: 20; margin: 0; }
/* positions are set by the grid (grid.css); here only how each corner looks */
.tl  { text-transform: none; }
.bl  { display: flex; flex-direction: column; align-items: flex-start; }
.tr  { text-align: right; text-transform: lowercase; }  /* on the project-title line, not the name line */
.br  { display: flex; flex-direction: column; align-items: flex-end; }

/* pop-up lists above the bottom-left links */
.pop { background: #fff; }   /* spacing: grid.css */
.pop[hidden] { display: none; }
body.pop-open .corner:not(.bl),
body.pop-open .bl > button:not(.on),
body.pop-open .viewport { opacity: 0.35; }
body.pop-open .bl > button.on { opacity: 1; }
.corner, .viewport, .bl > button { transition: opacity 0.25s; }

/* ---------- Selected Clients page: pink, everything on it white ---------- */
:root { --pink: #fe94ff; }   /* the pink of the signature */
.clients-page {
	position: fixed;
	inset: 0;
	z-index: 15;               /* over the images, under the corner text */
	background: var(--pink);
	color: #fff;
	overflow-y: auto;
}
.clients-page[hidden] { display: none; }
html.clients-open { overflow: hidden; }       /* the images underneath stay put */
body.clients-open .corner,
body.clients-open .corner .adapt { color: #fff; text-shadow: none; }
body.clients-open .signature { filter: brightness(0) invert(1); }   /* pink signature -> white */
body.clients-open #project-title,
body.clients-open #project-role { visibility: hidden; }
body.clients-open.clients-open #index-link { display: block; }
#clients-link.on { opacity: 1; }

/* the Index link is only needed inside a project (and on the clients page) */
body.home #index-link { display: none; }

/* ---------- the moving strip ---------- */
.viewport {
	position: fixed;
	inset: 0;
	overflow: hidden;
}
.strip {
	position: absolute;
	top: 0; left: 0;
	height: 100%;
	display: flex;
	align-items: center;
	will-change: transform;
	opacity: 1;
	transition: opacity 0.35s ease;
}
.strip.fade { opacity: 0; }
.scroller { width: 1px; }

/* homepage: every project fills the whole window, edge to edge */
.home .strip { gap: 0; }
.home .item {
	position: relative;
	display: block;
	flex: none;
	width: 100vw;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
}
.home .item.no-link .media { cursor: default; }
.home .item .media {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #000;
}
/* text over the images turns white where the picture behind it is dark */
.adapt { transition: color 0.3s ease, text-shadow 0.3s ease; }
.adapt.on-dark { color: #fff; text-shadow: 0 0 10px rgba(0, 0, 0, 0.35); }

/* inside a project: a row of equal-height images (size and position: grid.css) */
.project .item { flex: none; }

.media { display: block; width: auto; max-width: none; background: #f2f2f2; }
