/*
Theme Name: Core Concepts Portfolio
Theme URI: https://coreconcepts.design/
Author: CoreConcepts Design
Author URI: https://coreconcepts.design/
Description: Dark, neon-lit one-page portfolio for Core Concepts Design. Custom-coded, content editable through ClientLayer.
Version: 0.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: ccportfolio
*/

/* ---------- Tokens ---------- */

:root {
	color-scheme: dark;
	--bg: #06070b;
	--surface: #0b0e16;
	--text: #e6eaf4;
	--muted: #8c94a8;
	--line: rgba(230, 234, 244, 0.13);
	--neon: #00f0ff;
	--neon-2: #ff2bd6;
	--glow: 0 0 0.5rem rgba(0, 240, 255, 0.55), 0 0 1.75rem rgba(0, 240, 255, 0.35);
	--glow-2: 0 0 0.5rem rgba(255, 43, 214, 0.55), 0 0 1.75rem rgba(255, 43, 214, 0.35);
	--text-glow: 0 0 0.12em rgba(0, 240, 255, 0.75), 0 0 0.45em rgba(0, 240, 255, 0.45);
	--text-glow-2: 0 0 0.12em rgba(255, 43, 214, 0.75), 0 0 0.45em rgba(255, 43, 214, 0.45);

	--font-display: "Orbitron", "Eurostile", "Arial Black", sans-serif;
	--font-body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--gutter: clamp(1rem, 4vw, 3.5rem);
	--gap: clamp(1rem, 2vw, 2rem);
	--section: clamp(5rem, 11vw, 11rem);
	--header-h: 4.5rem;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */

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

html {
	background: var(--bg);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1,
h2,
h3,
p,
figure,
ul,
ol {
	margin: 0;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
}

ul,
ol {
	padding: 0;
	list-style: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--neon);
	outline-offset: 4px;
}

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

[id] {
	scroll-margin-top: var(--header-h);
}

.container {
	width: min(100% - 2 * var(--gutter), 97.5rem);
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--neon);
	color: var(--bg);
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

.mono {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ---------- Buttons and links ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.75em;
	padding: 1em 1.5em;
	border: 1px solid var(--neon);
	border-radius: 0.25rem;
	background: var(--neon);
	color: var(--bg);
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
	box-shadow: 0 0 1.25rem rgba(0, 240, 255, 0.3);
	transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn .icon-arrow {
	flex: none;
	transition: transform 0.45s var(--ease);
}

.btn:hover,
.btn:focus-visible {
	background: transparent;
	color: var(--neon);
	box-shadow: var(--glow), inset 0 0 1rem rgba(0, 240, 255, 0.15);
}

.btn:hover .icon-arrow,
.btn:focus-visible .icon-arrow {
	transform: translateX(0.3em);
}

.btn-line {
	border-color: rgba(230, 234, 244, 0.35);
	background: transparent;
	color: var(--text);
	box-shadow: none;
}

.btn-line:hover,
.btn-line:focus-visible {
	border-color: var(--neon-2);
	color: var(--neon-2);
	box-shadow: var(--glow-2), inset 0 0 1rem rgba(255, 43, 214, 0.15);
}

.link {
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 1px;
	transition: background-size 0.45s var(--ease), color 0.35s var(--ease), text-shadow 0.35s var(--ease);
}

.link:hover,
.link:focus-visible {
	background-size: 100% 1px;
	color: var(--neon);
	text-shadow: var(--text-glow);
}

/* ---------- Header ---------- */

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-scrolled {
	border-bottom-color: var(--line);
	background: rgba(6, 7, 11, 0.94);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	height: var(--header-h);
}

.brand {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-family: var(--font-display);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.brand-mark {
	flex: none;
	width: 0.6rem;
	height: 0.6rem;
	background: var(--neon);
	box-shadow: var(--glow);
	transform: rotate(45deg);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: clamp(1.25rem, 2.4vw, 2.5rem);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-nav .nav-cta {
	padding: 0.85em 1.3em;
	border: 1px solid var(--neon);
	border-radius: 0.25rem;
	color: var(--neon);
	transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
	background: var(--neon);
	color: var(--bg);
	box-shadow: var(--glow);
}

.nav-toggle {
	position: relative;
	z-index: 2;
	display: none;
	width: 2.75rem;
	height: 2.75rem;
	margin-right: -0.5rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--neon);
	cursor: pointer;
}

.nav-toggle span {
	position: absolute;
	left: 0.5rem;
	right: 0.5rem;
	top: 50%;
	height: 2px;
	background: currentColor;
	box-shadow: 0 0 0.5rem rgba(0, 240, 255, 0.7);
	transition: transform 0.45s var(--ease);
}

.nav-toggle span:first-child {
	transform: translateY(-4px);
}

.nav-toggle span:last-child {
	transform: translateY(4px);
}

.nav-open .nav-toggle span:first-child {
	transform: rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
	transform: rotate(-45deg);
}

@media (max-width: 860px) {
	.nav-toggle {
		display: block;
	}

	.site-nav {
		position: fixed;
		inset: 0;
		z-index: 1;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 0.75rem;
		padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
		background:
			radial-gradient(26rem 20rem at 100% 0%, rgba(0, 240, 255, 0.16), transparent 70%),
			radial-gradient(24rem 18rem at 0% 100%, rgba(255, 43, 214, 0.14), transparent 70%),
			var(--bg);
		font-family: var(--font-display);
		font-size: clamp(1.5rem, 7.5vw, 2.75rem);
		font-weight: 600;
		line-height: 1.2;
		letter-spacing: 0;
		text-transform: none;
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
	}

	.site-nav .link {
		background-size: 0 2px;
	}

	.site-nav .nav-cta {
		margin-top: 1.5rem;
		font-family: var(--font-mono);
		font-size: 0.8125rem;
		font-weight: 500;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}

	.nav-open {
		overflow: hidden;
	}

	.nav-open .site-nav {
		visibility: visible;
		opacity: 1;
		transition-delay: 0s;
	}

	.nav-open .site-header,
	.nav-open .site-header.is-scrolled {
		border-bottom-color: transparent;
		background: transparent;
	}
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem));
	padding-bottom: clamp(1.75rem, 4vw, 3.5rem);
	overflow: hidden;
}

/* Neon light sources. */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(44rem 30rem at 88% 8%, rgba(0, 240, 255, 0.22), transparent 70%),
		radial-gradient(38rem 26rem at 2% 80%, rgba(255, 43, 214, 0.18), transparent 70%);
	-webkit-mask-image: linear-gradient(#000 72%, transparent);
	mask-image: linear-gradient(#000 72%, transparent);
	animation: neon-pulse 7s ease-in-out infinite alternate;
}

/* Faint technical grid, fading out towards the edges. */
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 4rem 4rem;
	-webkit-mask-image: radial-gradient(ellipse at 60% 35%, #000 5%, transparent 72%);
	mask-image: radial-gradient(ellipse at 60% 35%, #000 5%, transparent 72%);
	opacity: 0.6;
}

@keyframes neon-pulse {
	from {
		opacity: 0.7;
	}
	to {
		opacity: 1;
	}
}

.hero .container {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.hero-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	flex-wrap: wrap;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
}

.hero-top p:last-child {
	color: var(--neon);
}

.hero-title {
	margin-top: auto;
	padding-top: clamp(2rem, 5vw, 4rem);
	font-size: clamp(1.6rem, min(10.2vw, 12.5vh), 7.25rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.015em;
	overflow-wrap: break-word;
}

/* Padding with matching negative margin keeps the glow from being clipped. */
.line {
	display: block;
	overflow: hidden;
	margin: -0.12em -0.2em -0.16em;
	padding: 0.12em 0.2em 0.16em;
}

.line > span {
	display: block;
}

.hero-title .line:nth-child(2) {
	margin-left: calc(clamp(0rem, 7vw, 7rem) - 0.2em);
}

.hero-title .line:last-child {
	color: var(--neon);
	text-shadow: var(--text-glow);
}

.hero-title .line:last-child > span::after {
	content: "";
	display: inline-block;
	width: 0.16em;
	height: 0.16em;
	margin-left: 0.1em;
	background: var(--neon-2);
	box-shadow: 0 0 0.12em var(--neon-2), 0 0 0.4em rgba(255, 43, 214, 0.6);
}

.hero-foot {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gap);
	align-items: end;
	margin-top: clamp(2rem, 4vw, 3.5rem);
}

.scroll-cue {
	grid-column: 1 / span 4;
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--muted);
}

.scroll-cue::before {
	content: "";
	width: 1px;
	height: 2.5rem;
	background: var(--neon);
	box-shadow: 0 0 0.5rem var(--neon);
	transform-origin: top;
	animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
	0% {
		transform: scaleY(0);
	}
	50% {
		transform: scaleY(1);
		transform-origin: top;
	}
	51% {
		transform-origin: bottom;
	}
	100% {
		transform: scaleY(0);
		transform-origin: bottom;
	}
}

.hero-lede {
	grid-column: 7 / -1;
}

.hero-lede p {
	max-width: 34rem;
	font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
	line-height: 1.5;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

/* ---------- Sections ---------- */

.section {
	padding-block: var(--section);
}

.section-head {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gap);
	align-items: start;
	margin-bottom: clamp(3rem, 7vw, 6rem);
	padding-top: 1.25rem;
	border-top: 1px solid transparent;
	border-image: linear-gradient(90deg, var(--neon), rgba(0, 240, 255, 0.15) 35%, var(--line) 60%) 1;
}

.kicker {
	grid-column: 1 / span 3;
	display: flex;
	gap: 1rem;
	padding-top: 0.6em;
	color: var(--muted);
}

.kicker span:first-child {
	color: var(--neon);
	text-shadow: var(--text-glow);
}

.section-title {
	grid-column: 4 / -1;
	max-width: 22ch;
	font-size: clamp(1.5rem, 4.2vw, 3.75rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

/* ---------- Work ---------- */

.work-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(3rem, 6vw, 6rem) var(--gap);
}

.work-item--1 {
	grid-column: 1 / span 8;
}

.work-item--2 {
	grid-column: 9 / -1;
	margin-top: clamp(4rem, 12vw, 12rem);
}

.work-item--3 {
	grid-column: 1 / span 5;
}

.work-item--4 {
	grid-column: 6 / -1;
	margin-top: clamp(3rem, 8vw, 8rem);
}

.work-item--5 {
	grid-column: 1 / -1;
}

.frame {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--surface);
	transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}

.work-item--1 .frame,
.work-item--4 .frame {
	aspect-ratio: 16 / 10;
}

.work-item--2 .frame,
.work-item--3 .frame {
	aspect-ratio: 4 / 5;
}

.work-item--5 .frame {
	aspect-ratio: 21 / 9;
}

.work-meta {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 0.25rem 1rem;
	align-items: baseline;
	margin-top: 1rem;
}

.work-index {
	color: var(--neon);
}

.work-title {
	font-size: clamp(1rem, 1.5vw, 1.3125rem);
	font-weight: 500;
	line-height: 1.25;
	transition: color 0.35s var(--ease), text-shadow 0.35s var(--ease);
}

.work-tags {
	display: flex;
	gap: 1rem;
	color: var(--muted);
	text-align: right;
}

@media (hover: hover) {
	.work-item:hover .frame {
		border-color: var(--neon);
		box-shadow: var(--glow);
	}

	.work-item:nth-child(even):hover .frame {
		border-color: var(--neon-2);
		box-shadow: var(--glow-2);
	}

	.work-item:hover .frame img {
		transform: scale(1.04);
	}

	.work-item:hover .work-title {
		color: var(--neon);
		text-shadow: var(--text-glow);
	}

	.work-item:nth-child(even):hover .work-title {
		color: var(--neon-2);
		text-shadow: var(--text-glow-2);
	}
}

/* ---------- Services ---------- */

.services {
	border-block: 1px solid var(--line);
	background: var(--surface);
}

.service-list {
	border-bottom: 1px solid var(--line);
}

.service {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 0.5rem var(--gap);
	align-items: baseline;
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
	border-top: 1px solid var(--line);
}

.service-num {
	grid-column: 1 / span 3;
	color: var(--neon);
}

.service-title {
	grid-column: 4 / span 5;
	font-size: clamp(1.25rem, 2.8vw, 2.5rem);
	font-weight: 600;
	line-height: 1.15;
	transition: transform 0.6s var(--ease), color 0.35s var(--ease), text-shadow 0.35s var(--ease);
}

.service-text {
	grid-column: 9 / -1;
	color: var(--muted);
}

@media (hover: hover) {
	.service:hover .service-title {
		color: var(--neon);
		text-shadow: var(--text-glow);
		transform: translateX(1rem);
	}
}

/* ---------- Approach ---------- */

.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(2.5rem, 5vw, 4rem) var(--gap);
}

.step {
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
}

.step-num {
	display: block;
	margin-bottom: clamp(2rem, 5vw, 4.5rem);
	color: var(--neon);
	font-family: var(--font-display);
	font-size: clamp(2.25rem, 4vw, 3.5rem);
	font-weight: 700;
	line-height: 1;
	text-shadow: var(--text-glow);
}

.step:nth-child(even) .step-num {
	color: var(--neon-2);
	text-shadow: var(--text-glow-2);
}

.step-title {
	margin-bottom: 0.75rem;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
}

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

/* ---------- About ---------- */

.about-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(2.5rem, 5vw, 4rem) var(--gap);
	align-items: end;
}

.about-media {
	grid-column: 1 / span 5;
	aspect-ratio: 4 / 5;
}

.about-copy {
	grid-column: 7 / -1;
}

.about-statement {
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 2.2vw, 2rem);
	font-weight: 500;
	line-height: 1.3;
}

.about-text {
	max-width: 34rem;
	margin-top: 1.75rem;
	color: var(--muted);
}

/* ---------- Contact and footer ---------- */

.site-footer {
	position: relative;
	padding-bottom: 2rem;
	background:
		radial-gradient(46rem 26rem at 12% 0%, rgba(255, 43, 214, 0.16), transparent 70%),
		radial-gradient(42rem 24rem at 95% 30%, rgba(0, 240, 255, 0.14), transparent 70%),
		var(--surface);
	box-shadow: 0 -1px 0 rgba(0, 240, 255, 0.55), 0 -1.5rem 4rem -2rem rgba(0, 240, 255, 0.45);
}

.contact {
	padding-block: var(--section) clamp(3rem, 6vw, 5rem);
}

.contact-title {
	max-width: 16ch;
	font-size: clamp(1.75rem, 6.4vw, 6rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.015em;
}

.contact-body {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gap);
	align-items: end;
	margin-top: clamp(2.5rem, 6vw, 5rem);
}

.contact-text {
	grid-column: 1 / span 4;
	max-width: 26rem;
	color: var(--muted);
}

.contact-mail {
	grid-column: 6 / -1;
	justify-self: end;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	max-width: 100%;
	padding-bottom: 0.2em;
	border-bottom: 2px solid currentColor;
	color: var(--neon);
	font-family: var(--font-display);
	font-size: clamp(1.05rem, 3vw, 2.75rem);
	font-weight: 600;
	line-height: 1.15;
	text-shadow: var(--text-glow);
	overflow-wrap: anywhere;
	transition: color 0.35s var(--ease), text-shadow 0.35s var(--ease);
}

.contact-mail .icon-arrow {
	flex: none;
	width: 0.75em;
	height: 0.75em;
	transition: transform 0.45s var(--ease);
}

.contact-mail:hover,
.contact-mail:focus-visible {
	color: var(--neon-2);
	text-shadow: var(--text-glow-2);
}

.contact-mail:hover .icon-arrow,
.contact-mail:focus-visible .icon-arrow {
	transform: translate(0.12em, -0.12em);
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 2.5rem var(--gap);
	padding-block: clamp(2.5rem, 5vw, 4rem);
	border-top: 1px solid var(--line);
}

.footer-brand {
	grid-column: 1 / span 5;
}

.footer-tagline {
	max-width: 22rem;
	margin-top: 1rem;
	color: var(--muted);
}

.footer-col {
	grid-column: span 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
}

.footer-col--wide {
	grid-column: span 3;
}

.footer-col .mono {
	margin-bottom: 0.5rem;
	color: var(--muted);
}

.footer-col a {
	overflow-wrap: anywhere;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.875rem;
}

.footer-bottom a {
	color: var(--text);
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
	color: var(--neon);
}

.footer-credit {
	margin-left: auto;
}

/* ---------- Generic page content ---------- */

.site-main {
	padding-top: var(--header-h);
}

.notfound {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 1.5rem;
	min-height: 80vh;
	padding-top: var(--header-h);
}

.notfound .mono {
	color: var(--neon);
}

.notfound h1 {
	font-size: clamp(1.75rem, 6.4vw, 6rem);
	font-weight: 700;
	line-height: 1.04;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

.js .hero-title .line > span {
	transform: translateY(125%);
	transition: transform 1.2s var(--ease);
}

.js .hero-title .line:nth-child(2) > span {
	transition-delay: 0.08s;
}

.js .hero-title .line:nth-child(3) > span {
	transition-delay: 0.16s;
}

.js .hero [data-hero-fade] {
	opacity: 0;
	transform: translateY(1rem);
	transition: opacity 1s var(--ease) 0.45s, transform 1s var(--ease) 0.45s;
}

.js.is-loaded .hero-title .line > span,
.js.is-loaded .hero [data-hero-fade] {
	opacity: 1;
	transform: none;
}

.js [data-reveal] {
	opacity: 0;
	transform: translateY(1.75rem);
	transition: opacity 1s var(--ease), transform 1s var(--ease);
	transition-delay: var(--reveal-delay, 0s);
}

/* The clip sits on the image, not the observed frame, so the frame stays measurable. */
.js [data-reveal="image"] {
	opacity: 1;
	transform: none;
	transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
	transition-delay: 0s;
}

.js [data-reveal="image"] img {
	clip-path: inset(0 0 100% 0);
	transform: scale(1.14);
	transition: clip-path 1.3s var(--ease), transform 1.3s var(--ease);
	transition-delay: var(--reveal-delay, 0s);
}

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

.js [data-reveal="image"].is-in img {
	clip-path: inset(0);
	transform: scale(1);
}

@media (hover: hover) {
	.js .work-item:hover [data-reveal="image"].is-in img {
		transform: scale(1.04);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.scroll-cue::before {
		transform: none;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-brand {
		grid-column: 1 / -1;
	}

	.footer-col,
	.footer-col--wide {
		grid-column: span 4;
	}
}

@media (max-width: 860px) {
	.hero-foot {
		align-items: start;
	}

	.scroll-cue {
		display: none;
	}

	.hero-lede {
		grid-column: 1 / -1;
	}

	.kicker,
	.section-title {
		grid-column: 1 / -1;
	}

	.kicker {
		padding-top: 0;
	}

	.work-item--1,
	.work-item--2,
	.work-item--3,
	.work-item--4,
	.work-item--5 {
		grid-column: 1 / -1;
		margin-top: 0;
	}

	.work-item--5 .frame {
		aspect-ratio: 16 / 10;
	}

	.service-num,
	.service-title,
	.service-text {
		grid-column: 1 / -1;
	}

	.service-text {
		max-width: 34rem;
	}

	.about-media {
		grid-column: 1 / span 9;
	}

	.about-copy {
		grid-column: 1 / -1;
	}

	.contact-text {
		grid-column: 1 / -1;
	}

	.contact-mail {
		grid-column: 1 / -1;
		justify-self: start;
	}
}

@media (max-width: 560px) {
	.hero-title .line:nth-child(2) {
		margin-left: -0.2em;
	}

	.hero-actions .btn {
		flex: 1 1 auto;
		justify-content: center;
	}

	.work-meta {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.work-tags {
		grid-column: 2;
		text-align: left;
	}

	.steps {
		grid-template-columns: minmax(0, 1fr);
	}

	.about-media {
		grid-column: 1 / -1;
	}

	.footer-col,
	.footer-col--wide {
		grid-column: 1 / -1;
	}

	.footer-credit {
		margin-left: 0;
	}
}
