/* ==========================================================================
   Wavenity — inner pages (projects, services, blog, contact, 404)
   Relies on the tokens and base components from main.css.
   ========================================================================== */

/* ------------------------------------------------------- Shared pieces */

.btn--outline {
	background: transparent;
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--ink);
}

.btn--block {
	width: 100%;
}

.btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.header__nav .is-current {
	position: relative;
	padding-left: 12px;
}

.header__nav .is-current::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	translate: 0 -50%;
}

.menu__link.is-current {
	color: var(--accent);
}

.footer__nav {
	display: grid;
	align-content: start;
	justify-items: start;
	gap: 32px;
}

.footer__links {
	display: grid;
	gap: 6px;
	font-size: 15px;
	color: rgba(var(--on-ink-rgb), 0.7);
}

.footer__links a:hover {
	color: var(--on-ink);
}

.back-link {
	display: inline-flex;
	gap: 8px;
	margin-bottom: 24px;
	font-size: 14px;
	color: var(--muted);
	transition: color 0.3s, gap 0.4s var(--ease-out);
}

.back-link:hover {
	color: var(--ink);
	gap: 14px;
}

/* Breadcrumb trail — same visual weight as .back-link, which it replaces. */
.breadcrumbs {
	margin-bottom: 24px;
	font-size: 14px;
	color: var(--muted);
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: inherit;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.breadcrumbs__link {
	color: var(--muted);
	transition: color 0.3s;
}

.breadcrumbs__link:hover {
	color: var(--ink);
}

.breadcrumbs__sep {
	color: var(--muted);
	opacity: 0.5;
}

.breadcrumbs__current {
	color: var(--ink);
}

.empty {
	grid-column: 1 / -1;
	padding: 64px 0;
	color: var(--muted);
}

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

.block--dark {
	background: var(--ink);
	color: var(--on-ink);
}

.block + .block:not(.block--dark) {
	padding-top: 0;
}

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

.marquee--spaced {
	margin-bottom: var(--section);
}

/* Media: featured image or generated artwork filling its box */

.media__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__media .media__img {
	position: absolute;
	inset: -10% 0;
	height: 120%;
	transition: scale 1s var(--ease-out);
}

.card:hover .card__media .media__img {
	scale: 1.06;
}

.cover {
	position: relative;
	aspect-ratio: 16 / 8;
	border-radius: var(--radius);
	overflow: hidden;
}

.cover > .art,
.cover > .media__img {
	position: absolute;
	inset: -12% 0;
	height: 124%;
}

.cover .art__word {
	font-size: clamp(56px, 10vw, 180px);
}

/* Meta line: category · date · reading time */

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	font-size: 13px;
	color: var(--muted);
}

.meta--center {
	justify-content: center;
}

.meta__tag {
	padding: 5px 12px;
	border-radius: 99px;
	background: var(--surface);
	color: var(--ink);
	font-weight: 500;
	transition: background-color 0.3s, color 0.3s;
}

a.meta__tag:hover {
	background: var(--accent);
	color: var(--accent-ink);
}

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

.page-hero {
	padding-top: calc(var(--header-h) + clamp(48px, 8vw, 120px));
	padding-bottom: clamp(40px, 5vw, 72px);
}

.page-hero__head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.page-hero__title {
	max-width: 1200px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(40px, 6.4vw, 112px);
	line-height: 1;
	letter-spacing: -0.04em;
}

.page-hero__count {
	padding-top: 0.4em;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(16px, 1.6vw, 24px);
	color: var(--muted);
}

.page-hero__lead {
	max-width: 620px;
	margin-top: clamp(24px, 3vw, 40px);
	font-size: clamp(16px, 1.3vw, 20px);
	line-height: 1.5;
	color: var(--ink-soft);
}

.page-hero__lead p + p {
	margin-top: 1em;
}

/* -------------------------------------------------------------- Filters */

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: clamp(32px, 4vw, 56px);
}

.filter {
	display: inline-flex;
	align-items: flex-start;
	gap: 4px;
	padding: 12px 20px;
	border-radius: 14px;
	background: var(--surface);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 14px;
	transition: background-color 0.3s, color 0.3s;
}

.filter sup {
	font-size: 10px;
	color: var(--muted);
	transition: color 0.3s;
}

.filter:hover {
	background: var(--accent);
	color: var(--accent-ink);
}

.filter.is-active {
	background: var(--ink);
	color: var(--on-ink);
}

.filter.is-active sup {
	color: rgba(var(--on-ink-rgb), 0.5);
}

.projects {
	padding-bottom: var(--section);
}

/* ------------------------------------------------------------ Post card */

.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(40px, 4vw, 64px) var(--gutter);
}

.post-card {
	display: grid;
	align-content: start;
	gap: 20px;
}

.post-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	overflow: hidden;
	transform: translateZ(0);
}

.post-card__media > * {
	position: absolute;
	inset: 0;
	transition: scale 1s var(--ease-out);
}

.post-card__media .art__word {
	font-size: clamp(22px, 2.2vw, 34px);
}

.post-card:hover .post-card__media > * {
	scale: 1.06;
}

.post-card__body {
	display: grid;
	gap: 12px;
	padding-inline: 4px;
}

.post-card__title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(18px, 1.4vw, 22px);
	line-height: 1.2;
}

.post-card__text {
	font-size: 15px;
	color: var(--muted);
}

.post-card--featured {
	grid-template-columns: 1.3fr 1fr;
	align-items: center;
	gap: clamp(24px, 4vw, 64px);
	margin-bottom: clamp(48px, 6vw, 96px);
}

.post-card--featured .post-card__media {
	aspect-ratio: 16 / 10;
}

.post-card--featured .post-card__media .art__word {
	font-size: clamp(36px, 5vw, 80px);
}

.post-card--featured .post-card__title {
	font-size: clamp(26px, 3vw, 46px);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.post-card--featured .post-card__text {
	font-size: 17px;
}

.blog,
.latest {
	padding-bottom: var(--section);
}

.latest__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(40px, 5vw, 72px);
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: clamp(48px, 6vw, 96px);
}

.pagination .is-active {
	background: var(--ink);
	color: var(--on-ink);
}

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

/* Keeps titles aligned across service cards with different text lengths */
.service__text {
	min-height: 4.5em;
}

.service__more {
	display: inline-flex;
	gap: 6px;
	margin-top: 20px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 14px;
	transition: gap 0.4s var(--ease-out), color 0.4s;
}

.service:hover .service__more {
	gap: 12px;
	color: var(--accent);
}

.service-rows {
	margin-bottom: var(--section);
	border-top: 1px solid var(--line);
}

.service-row {
	position: relative;
	display: grid;
	grid-template-columns: 48px 56px 1.1fr 1fr 48px;
	align-items: center;
	gap: 24px;
	padding: clamp(24px, 3vw, 44px) 16px;
	border-bottom: 1px solid var(--line);
	isolation: isolate;
	overflow: hidden;
	transition: color 0.4s;
}

.service-row::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--ink);
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform 0.6s var(--ease-out);
}

.service-row:hover {
	color: var(--on-ink);
}

.service-row:hover::before {
	transform: scaleY(1);
	transform-origin: top;
}

.service-row__index {
	font-size: 13px;
	color: var(--muted);
}

.service-row__icon {
	width: 44px;
	height: 44px;
	transition: transform 0.8s var(--ease-out), color 0.4s;
}

.service-row__icon .shape {
	width: 100%;
	height: 100%;
}

.service-row:hover .service-row__icon {
	transform: rotate(180deg);
	color: var(--accent);
}

.service-row__title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(26px, 3.2vw, 52px);
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.service-row__text {
	font-size: 15px;
	color: var(--muted);
	transition: color 0.4s;
}

.service-row:hover .service-row__text {
	color: rgba(var(--on-ink-rgb), 0.65);
}

.service-row__arrow {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--surface);
	color: var(--ink);
	font-size: 20px;
	transition: transform 0.6s var(--ease-out), background-color 0.4s;
}

.service-row:hover .service-row__arrow {
	background: var(--accent);
	transform: rotate(-45deg);
}

.service-rows--compact {
	margin: 16px 0 0;
}

.service-rows--compact .service-row {
	grid-template-columns: 48px 1fr 48px;
	padding-block: 20px;
}

.service-rows--compact .service-row__icon {
	width: 32px;
	height: 32px;
}

.service-rows--compact .service-row__title {
	font-size: clamp(20px, 2vw, 32px);
}

/* Single service */

.service-hero {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	align-items: end;
	gap: clamp(32px, 5vw, 80px);
	padding-top: calc(var(--header-h) + clamp(48px, 7vw, 100px));
	padding-bottom: clamp(40px, 5vw, 72px);
}

.service-hero .page-hero__title {
	font-size: clamp(40px, 5.6vw, 96px);
}

.service-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-top: 40px;
}

.price-tag {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 15px;
	color: var(--ink-soft);
}

.service-hero__visual {
	justify-self: end;
	width: min(100%, 60vh, 560px);
	aspect-ratio: 1;
	border-radius: var(--radius);
}

.service-hero__shape {
	position: relative;
	z-index: 1;
	display: block;
	width: 38%;
	color: var(--on-ink);
	filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.25));
}

.service-hero__shape .shape {
	width: 100%;
	height: auto;
}

.deliverables {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gutter);
}

.deliverable {
	display: grid;
	grid-template-rows: 1fr auto auto;
	gap: 12px;
	min-height: 260px;
	padding: clamp(20px, 2vw, 32px);
	border-radius: var(--radius);
	background: var(--surface);
	transition: transform 0.6s var(--ease-out), background-color 0.5s, color 0.5s;
}

.deliverable:hover {
	background: var(--ink);
	color: var(--on-ink);
	transform: translateY(-6px);
}

.deliverable__index {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 14px;
	color: var(--muted);
}

.deliverable__title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(18px, 1.4vw, 22px);
	line-height: 1.2;
}

.deliverable__text {
	font-size: 15px;
	color: var(--muted);
	transition: color 0.5s;
}

.deliverable:hover .deliverable__text {
	color: rgba(var(--on-ink-rgb), 0.6);
}

.steps {
	position: relative;
}

.steps__line {
	position: absolute;
	top: 22px;
	left: 0;
	right: 0;
	height: 1px;
	background: rgba(var(--on-ink-rgb), 0.12);
}

.steps__line span {
	display: block;
	height: 100%;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
}

.steps__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--gutter);
}

.step {
	position: relative;
	display: grid;
	align-content: start;
	gap: 12px;
	padding-right: 16px;
}

.step__dot {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--accent-ink);
	font-family: var(--font-display);
	font-weight: 700;
}

.step__title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(20px, 1.6vw, 26px);
}

.step__text {
	font-size: 15px;
	color: rgba(var(--on-ink-rgb), 0.6);
}

/* FAQ */

.faq-section {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	align-items: start;
	gap: clamp(32px, 5vw, 80px);
}

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

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

.faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(17px, 1.4vw, 21px);
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}

.faq__question::-webkit-details-marker {
	display: none;
}

.faq__icon {
	position: relative;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--surface);
	transition: background-color 0.3s, transform 0.5s var(--ease-out);
}

.faq__icon::before,
.faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	margin: -1px 0 0 -6px;
	background: currentColor;
	transition: transform 0.5s var(--ease-out);
}

.faq__icon::after {
	transform: rotate(90deg);
}

.faq__item[open] .faq__icon {
	background: var(--accent);
	transform: rotate(180deg);
}

.faq__item[open] .faq__icon::after {
	transform: rotate(0deg);
}

.faq__answer {
	overflow: hidden;
}

.faq__answer p {
	max-width: 640px;
	padding-bottom: 24px;
	color: var(--ink-soft);
}

/* ------------------------------------------------------------- Projects */

.project__hero {
	padding-top: calc(var(--header-h) + clamp(48px, 7vw, 100px));
	padding-bottom: clamp(40px, 5vw, 64px);
}

.project__title {
	max-width: 1300px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(36px, 5.6vw, 96px);
	line-height: 1;
	letter-spacing: -0.04em;
}

.project__meta {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: clamp(40px, 5vw, 72px) 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.project__meta dt {
	margin-bottom: 6px;
	font-size: 13px;
	color: var(--muted);
}

.project__meta dd {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 16px;
}

.project__results {
	padding-top: clamp(40px, 5vw, 72px);
}

.stats--wide {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	max-width: none;
	margin-top: 0;
}

.split {
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: clamp(32px, 5vw, 80px);
	padding-block: var(--section);
}

.split__aside {
	align-self: start;
}

.split__lead {
	max-width: 420px;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(18px, 1.5vw, 24px);
	line-height: 1.35;
}

.next-project {
	display: block;
	overflow: hidden;
}

.next-project__inner {
	position: relative;
	display: grid;
	gap: 16px;
	padding-block: clamp(64px, 10vw, 160px);
	border-top: 1px solid var(--line);
}

.next-project .eyebrow {
	color: var(--muted);
}

.next-project__title {
	position: relative;
	z-index: 1;
	max-width: 1000px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(34px, 6vw, 100px);
	line-height: 1;
	letter-spacing: -0.04em;
}

.next-project__media {
	position: absolute;
	top: 50%;
	right: var(--gutter);
	width: clamp(200px, 26vw, 420px);
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	overflow: hidden;
	translate: 0 -50%;
	scale: 0.6;
	rotate: 6deg;
	opacity: 0;
	transition: scale 0.8s var(--ease-out), rotate 0.8s var(--ease-out), opacity 0.4s;
}

.next-project__media > * {
	position: absolute;
	inset: 0;
}

.next-project__media .art__word {
	font-size: 40px;
}

.next-project:hover .next-project__media {
	scale: 1;
	rotate: -3deg;
	opacity: 1;
}

/* ---------------------------------------------------------------- Prose */

.prose {
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink-soft);
}

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

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

.prose h2,
.prose h3,
.prose h4 {
	margin-top: 2em;
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.prose h2 {
	font-size: clamp(24px, 2.2vw, 34px);
}

.prose h3 {
	font-size: clamp(20px, 1.7vw, 26px);
}

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

.prose a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.prose a:hover {
	background: var(--accent);
	color: var(--accent-ink);
}

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

.prose ul,
.prose ol {
	display: grid;
	gap: 0.5em;
}

.prose li {
	position: relative;
	padding-left: 32px;
}

.prose ul > li::before {
	content: "";
	position: absolute;
	top: 0.65em;
	left: 6px;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--accent);
	rotate: 45deg;
}

.prose ol {
	counter-reset: prose;
}

.prose ol > li {
	counter-increment: prose;
}

.prose ol > li::before {
	content: counter(prose, decimal-leading-zero);
	position: absolute;
	top: 0.25em;
	left: 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 12px;
	color: var(--muted);
}

.prose blockquote {
	margin: 2em 0;
	padding: clamp(24px, 3vw, 40px);
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--on-ink);
}

.prose blockquote p {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(20px, 2vw, 28px);
	line-height: 1.3;
}

.prose img,
.prose figure {
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.prose code {
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--surface);
	font-size: 0.9em;
}

.prose--large {
	font-size: clamp(18px, 1.5vw, 22px);
}

.prose--article {
	max-width: 760px;
	margin-inline: auto;
}

.page-body {
	padding-bottom: var(--section);
}

/* -------------------------------------------------------------- Article */

.read-progress {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 850;
	height: 3px;
	pointer-events: none;
}

.admin-bar .read-progress {
	top: 32px;
}

.read-progress span {
	display: block;
	height: 100%;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
}

.article__hero {
	display: grid;
	justify-items: center;
	padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px));
	padding-bottom: clamp(40px, 5vw, 72px);
	text-align: center;
}

.article__title {
	max-width: 1100px;
	margin-top: 24px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(32px, 4.6vw, 76px);
	line-height: 1.04;
	letter-spacing: -0.035em;
}

.article__lead {
	max-width: 720px;
	margin-top: 24px;
	font-size: clamp(17px, 1.4vw, 21px);
	color: var(--ink-soft);
}

.article__cover .cover {
	aspect-ratio: 16 / 7;
}

.article__body {
	padding-block: clamp(56px, 7vw, 112px) var(--section);
}

.article__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 760px;
	margin: clamp(48px, 5vw, 72px) auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.article__author {
	font-size: 14px;
	color: var(--muted);
}

.article__footer .pill {
	font-size: 13px;
}

/* -------------------------------------------------------------- Contact */

.contact {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: clamp(40px, 6vw, 96px);
	padding-top: calc(var(--header-h) + clamp(48px, 7vw, 100px));
	padding-bottom: var(--section);
}

.contact .page-hero__title {
	font-size: clamp(40px, 5vw, 84px);
}

.contact__intro {
	align-self: start;
}

.contact__details {
	display: grid;
	justify-items: start;
	gap: 20px;
	margin-top: clamp(40px, 5vw, 64px);
}

.contact__label {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	color: var(--muted);
}

.contact__value {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(20px, 2vw, 30px);
	letter-spacing: -0.02em;
}

.contact__next {
	display: grid;
	gap: 14px;
	margin-top: clamp(40px, 5vw, 64px);
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.contact__next li {
	display: grid;
	grid-template-columns: 40px 1fr;
	font-size: 15px;
	color: var(--ink-soft);
}

.contact__next strong {
	padding-top: 2px;
	font-family: var(--font-display);
	font-size: 13px;
	color: var(--muted);
}

.contact__form-wrap {
	align-self: start;
	padding: clamp(24px, 3.2vw, 48px);
	border-radius: calc(var(--radius) + 8px);
	background: var(--surface);
	scroll-margin-top: calc(var(--header-h) + 24px);
}

.form {
	display: grid;
	gap: 28px;
}

.form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

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

.form__legend {
	margin-bottom: 14px;
	padding: 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 16px;
}

.choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.choice {
	position: relative;
}

.choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.choice span {
	display: inline-flex;
	align-items: center;
	padding: 11px 18px;
	border-radius: 12px;
	background: var(--bg);
	font-size: 14px;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}

.choice span:hover {
	background: var(--surface-2);
}

.choice input:checked + span {
	background: var(--ink);
	color: var(--on-ink);
}

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

.choice input:active + span {
	transform: scale(0.96);
}

.form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.field {
	position: relative;
	display: block;
}

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

.field__input {
	display: block;
	width: 100%;
	padding: 26px 18px 10px;
	border: 1px solid transparent;
	border-radius: 14px;
	background: var(--bg);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
	resize: vertical;
	transition: border-color 0.3s, background-color 0.3s;
}

.field__input:hover {
	background: var(--surface-2);
}

.field__input:focus {
	outline: none;
	border-color: var(--ink);
	background: var(--surface);
}

.field__label {
	position: absolute;
	top: 18px;
	left: 19px;
	font-size: 16px;
	color: var(--muted);
	pointer-events: none;
	transform-origin: left top;
	transition: transform 0.35s var(--ease-out);
}

.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
	transform: translateY(-10px) scale(0.75);
}

.consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	color: var(--ink-soft);
	cursor: pointer;
}

.consent input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--ink);
}

.notice {
	display: flex;
	gap: 16px;
	margin-bottom: 28px;
	padding: 20px;
	border-radius: 16px;
}

.notice p {
	margin-top: 4px;
	font-size: 14px;
}

.notice--success {
	background: var(--accent);
	color: var(--accent-ink);
}

.notice--error {
	background: #ffe3de;
	color: #7a1b0c;
}

.notice__icon {
	flex: none;
	width: 28px;
	height: 28px;
	animation: spin 6s linear infinite;
}

/* ------------------------------------------------------------------ 404 */

.not-found {
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 24px;
	min-height: 90vh;
	padding-top: var(--header-h);
	padding-bottom: var(--section);
	text-align: center;
}

.not-found__code {
	display: flex;
	align-items: center;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(120px, 24vw, 360px);
	line-height: 0.85;
	letter-spacing: -0.06em;
}

.not-found__star {
	display: block;
	width: 0.7em;
	height: 0.7em;
	margin-inline: 0.04em;
	color: var(--accent);
}

.not-found__star .shape {
	width: 100%;
	height: 100%;
}

.not-found__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 16px;
}

/* ----------------------------------------------------- Page transitions */

.transition {
	position: fixed;
	inset: 0;
	z-index: 950;
	background: var(--ink);
	transform: translateY(100%);
	pointer-events: none;
}

/* ------------------------------------------------- Project galleries */

.project__cover .cover {
	aspect-ratio: 16 / 9;
}

.cover .media__img {
	object-position: top center;
}

/* Wide screenshots inside project content */
.prose .is-wide {
	margin: 2.5em 0 0;
	border-radius: var(--radius);
	overflow: hidden;
}

.prose .is-wide img {
	display: block;
	width: 100%;
	height: auto;
}

/* Phone screenshot inside project content */
.prose .is-phone {
	max-width: 300px;
	margin: 2.5em auto 0;
	border: 8px solid #2a2a2a;
	border-radius: 36px;
	overflow: hidden;
	box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6);
}

.prose .is-phone img {
	display: block;
	width: 100%;
	height: auto;
}

/* Photo as service visual */
.service-hero__visual--image {
	overflow: hidden;
	background: var(--surface);
}

.service-hero__visual--image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ------------------------------------------------- Studio & principles */

.studio-photo {
	max-width: 640px;
	aspect-ratio: 3 / 2;
	margin: clamp(32px, 4vw, 56px) 0 0;
	border-radius: var(--radius);
	overflow: hidden;
}

.studio-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.principles {
	display: grid;
	max-width: 640px;
	margin-top: clamp(32px, 4vw, 56px);
	border-top: 1px solid var(--line);
}

.principle {
	display: grid;
	grid-template-columns: 56px 1fr;
	column-gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.principle__index {
	grid-row: span 2;
	font-size: 13px;
	color: var(--accent);
}

.principle__title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 20px;
}

.principle__text {
	margin-top: 4px;
	font-size: 15px;
	color: var(--muted);
}

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

@media (max-width: 1100px) {
	.service-row {
		grid-template-columns: 48px 1fr 48px;
	}

	.service-row__icon,
	.service-row__text {
		display: none;
	}

	.service-rows--compact .service-row__icon {
		display: block;
	}

	.deliverables {
		grid-template-columns: repeat(2, 1fr);
	}

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

@media (max-width: 1023px) {
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.post-card--featured,
	.service-hero,
	.split,
	.faq-section,
	.contact {
		grid-template-columns: 1fr;
	}

	.service-hero__visual {
		max-width: 420px;
	}

	.steps__line,
	.next-project__media {
		display: none;
	}

	.cover,
	.article__cover .cover {
		aspect-ratio: 4 / 3;
	}
}

@media (max-width: 640px) {
	.posts-grid,
	.deliverables,
	.form__grid {
		grid-template-columns: 1fr;
	}

	.latest__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.service-row,
	.service-rows--compact .service-row {
		grid-template-columns: 1fr 40px;
	}

	.service-row__index,
	.service-rows--compact .service-row__icon,
	.page-hero__count {
		display: none;
	}

	.service-row__arrow {
		width: 40px;
		height: 40px;
	}

	.admin-bar .read-progress {
		top: 46px;
	}
}

/* Service cards on the services archive */
.service-card__text {
	max-width: 560px;
	margin-top: 16px;
	padding-inline: 4px;
	font-size: 15px;
	color: var(--muted);
}
