@font-face { font-family: "Styrene A LC"; src: url("fonts/styrene-a-lc-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
	color-scheme: dark;
	--surface-page: #080808;
	--brand: #f2a541;   /* studio amber — the star and favicon only; arts keeps white */
	--label-primary: #f5f5f7;
	--label-secondary: #86868b;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--spring: cubic-bezier(.34, 1.28, .42, 1);
	--space: 32px;
	--gutter: 16px;
	--rhythm: 96px;   /* logo → text and text → the row */
	--type-display: 1.125rem;
	--type-body: 1.0625rem;
	--reading-width: 36rem;   /* name + two lines of intro */
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scrollbar-gutter: stable; }
body {
	background: var(--surface-page);
	color: var(--label-primary);
	font: 400 var(--type-body)/1.53 "Styrene A LC", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, p, figure { margin: 0; font: inherit; }
a { color: inherit; text-decoration: none; transition: color 180ms ease; }
a:focus-visible { outline: 2px solid var(--label-primary); outline-offset: 5px; }

/* top — this site's white star */
.top { display: flex; align-items: center; gap: 8px; padding: var(--gutter) var(--gutter) 0; }
.logo { display: block; width: 24px; height: 24px; color: var(--brand); }
.logo svg { display: block; width: 100%; height: 100%; fill: currentColor; transition: transform .8s var(--spring); }
.logo:hover svg { transform: rotate(90deg); }

/* intro — reading column on the left edge, in line with the logo */
.page { padding-top: var(--rhythm); }
.intro { max-width: var(--reading-width); padding-inline: var(--gutter); box-sizing: content-box; }
.name, .about { font-size: var(--type-display); line-height: 1.4; text-wrap: pretty; }
.about { color: var(--label-secondary); }
.about .hl { color: var(--label-primary); }
.about a.hl:hover { color: var(--label-secondary); }

/* reel — FlexCarousel (carousel.js) across the full width */
/* one screen: logo, intro, the row taking what's left, footer at the bottom */
body { display: flex; flex-direction: column; min-height: 100svh; }
.page { flex: 1; display: flex; flex-direction: column; }
.reel { position: relative; flex: 1; min-height: 360px; margin-block: var(--reel-air); }
:root { --reel-air: var(--rhythm); }   /* air above and below the row; the canvas bleeds into it so the bent ends aren't cut */
@media (max-width: 809.98px) { :root { --reel-air: 32px; } }
.reel > .flex-carousel { position: absolute; inset: calc(var(--reel-air) * -1) 0; }
.top, .intro, .frow { position: relative; z-index: 1; }
.reel-plain { display: flex; gap: 12px; align-items: center; overflow-x: auto; padding-inline: var(--gutter); scrollbar-width: none; }
.reel-plain img { height: 62%; width: auto; flex: none; }

.flex-carousel {
	position: relative; overflow: hidden; outline: none;
	cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
	-webkit-tap-highlight-color: transparent; overscroll-behavior: contain;
}
.flex-carousel[data-hover='open'] { cursor: zoom-in; }
.flex-carousel[data-hover='close'] { cursor: zoom-out; }
.flex-carousel[data-dragging] { cursor: grabbing; }
.flex-carousel:focus-visible { box-shadow: inset 0 0 0 2px rgb(255 255 255 / .3); }
.flex-carousel__caption {
	position: absolute; left: 0; right: 0;
	top: calc(50% + var(--flex-carousel-half) * var(--flex-carousel-lift, 1) + 22px);
	display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 var(--gutter);
	pointer-events: none; text-align: center;
	animation: flex-carousel-reveal 900ms ease both;
}
.flex-carousel__title {
	display: flex; flex-direction: column; align-items: center; max-width: 100%;
	font-size: 15px; line-height: 1.35;
	animation: flex-carousel-title 520ms var(--ease);
}
.flex-carousel__subtitle { color: var(--label-secondary); }
.flex-carousel__count {
	display: inline-flex; align-items: center; gap: 3px;
	font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums;
	color: var(--label-secondary); transition: opacity 400ms ease;
}
.flex-carousel__count[data-hidden] { opacity: 0; }
.flex-carousel__digits { display: inline-flex; }
.flex-carousel__digit { display: inline-block; height: 1em; overflow: hidden; }
.flex-carousel__reel { display: flex; flex-direction: column; transition: transform 600ms var(--ease); }
.flex-carousel__reel span { height: 1em; }
.flex-carousel__live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@keyframes flex-carousel-title { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes flex-carousel-reveal { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.flex-carousel__caption, .flex-carousel__title { animation: none; }
	.flex-carousel__reel { transition: none; }
}

/* lightbox — the clicked work, as large as the screen allows, over a dark veil */
.lightbox {
	position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: var(--gutter);
	background: rgb(8 8 8 / .92); cursor: zoom-out;
	opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.lightbox :is(img, video) {
	max-width: 100%; max-height: calc(100svh - var(--gutter) * 2 - 40px); object-fit: contain;
	transform: scale(.94); transition: transform .6s var(--spring);
}
.lightbox.open :is(img, video) { transform: none; }
.lightbox figcaption { margin-top: 16px; font-size: 15px; text-align: center; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; max-height: 100%; }

/* footer — the portfolio's bottom row, no menu and no divider */
.frow { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px var(--gutter); font-size: 14px; line-height: 1; }
.who { display: flex; align-items: center; gap: .3em; white-space: nowrap; }
.who .sprints { color: var(--label-secondary); }
@media (hover: none) { .who .sprints { display: none; } }
@media (hover: hover) {
	.who .sprints span { display: inline-block; opacity: 0; filter: blur(10px); transition: opacity .5s var(--ease), filter .5s var(--ease); transition-delay: calc((2 - var(--i)) * .12s); }
	.who:hover .sprints span { opacity: 1; filter: none; transition-duration: .5s; transition-delay: calc(var(--i) * .12s); }
}
.fl { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.fl .fr { display: contents; }
.fl button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.fl a, .fl button { transition: color .2s; }
.fl a:hover, .fl button:hover, .who .me:hover { color: var(--label-secondary); }
.who .me { transition: color .2s; }
.fl .lab { color: var(--label-secondary); }
.toast { position: fixed; bottom: 28px; left: 50%; z-index: 10; padding: 12px 20px; border-radius: 999px; background: #fff; color: #080808; font-size: 15px; opacity: 0; transform: translate(-50%, 20px) scale(.9); transition: opacity .3s var(--ease), transform .5s var(--spring); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (max-width: 640px) {
	/* phones: everything on the left edge — the sites on one row, the contacts on the next, © last;
	   links 28px apart with a taller tap area, so a thumb doesn't hit the neighbour */
	.frow { flex-direction: column-reverse; align-items: flex-start; gap: 16px; padding: 16px var(--gutter) 24px; }
	.fl { flex-direction: column; align-items: flex-start; gap: 0; }
	.fl .fr { display: flex; flex-wrap: wrap; gap: 0 28px; }
	.fl .fr :is(a, button) { padding-block: 10px; }
	.fl .lab { display: none; }
	.who .sprints { display: none; }
}

@media (prefers-reduced-motion: reduce) { .who .sprints span { transition: none; } }

/* 404 — just the number in the middle of the screen, the logo stays top left */
.nf { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; }
.nf .intro { margin: 0; padding: 0; font-size: var(--type-display); line-height: 1.4; }

/* arrival — FadeContent "mist" (fade.js, reveal.js); hidden until it starts, only when JS runs */
.js :is(.logo, .intro, .frow) { visibility: hidden; }

@media (max-width: 809.98px) {
	:root { --space: 24px; --rhythm: 64px; }
}
