/* =========================================================
   Services page — page header, alternating service blocks, process
   ========================================================= */

.svc-head {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 9rem var(--gutter) 3rem;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 3rem;
	align-items: end;
}
.svc-head h1 {
	font-weight: 500;
	font-size: clamp(3rem, 10vw, 9rem);
	letter-spacing: -0.03em;
	line-height: .9;
	text-transform: lowercase;
	max-width: 14ch;
}
.svc-head h1 .italic {
	font-family: var(--font-accent-serif);
	font-style: italic;
	font-weight: 300;
	color: var(--accent-deep);
}
.svc-head .side {
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--muted);
	max-width: 48ch;
}
@media (max-width: 860px) {
	.svc-head { grid-template-columns: 1fr; }
}

/* Anchor-link nav — pill chips, jump to each service block. */
.svc-anchor-nav {
	max-width: var(--maxw);
	margin: 0 auto 2rem;
	padding: 0 var(--gutter);
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: center;
}
.svc-anchor-label {
	font-family: var(--font-mono);
	font-size: .72rem;
	letter-spacing: .06em;
	text-transform: lowercase;
	color: var(--muted);
	margin-right: .5rem;
}
.svc-anchor-chip {
	display: inline-flex;
	align-items: center;
	font-family: var(--font-sans);
	font-size: .92rem;
	letter-spacing: -.005em;
	text-transform: lowercase;
	color: var(--ink);
	background: transparent;
	border: 1px solid var(--hairline);
	border-radius: 999px;
	padding: .45em .95em;
	text-decoration: none;
	transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.svc-anchor-chip:hover {
	border-color: var(--ink);
}
.svc-anchor-chip:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
@media (max-width: 600px) {
	.svc-anchor-nav { gap: .35rem; }
	.svc-anchor-chip { font-size: .85rem; padding: .35em .8em; }
	.svc-anchor-label { width: 100%; margin-bottom: .25rem; margin-right: 0; }
}
/* Smooth scroll + offset for the sticky header — avoids the section
 * heading hiding under the nav-pill on click. */
.svc-block[id] { scroll-margin-top: 6rem; }

/* Alternating service blocks */
.svc-block {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 5rem var(--gutter);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	border-top: 1px solid var(--hairline);
}
.svc-block .media {
	/* Single 4/5 portrait aspect for every service tile — keeps the
	 * editorial rhythm consistent and the alternating block layout
	 * tidy. Whatever video / image goes in here gets cropped to fit
	 * via object-fit: cover. */
	aspect-ratio: 4/5;
	border-radius: var(--radius-lg);
	overflow: hidden;
	position: relative;
	background: var(--ink, #141616); /* solid frame until media paints */
}
.svc-block .media .ph,
.svc-block .media img,
.svc-block .media video,
.svc-block .media .svc-slideshow {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}

/* Photography slideshow — JS toggles .is-active on one image at a
 * time; CSS handles the cross-fade. Simpler + more reliable than
 * pure CSS keyframes (which were proving fragile across browsers and
 * cache states). prefers-reduced-motion locks the first image. */
.svc-slideshow {
	position: absolute; inset: 0;
}
.svc-slideshow img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.svc-slideshow img.is-active {
	opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
	.svc-slideshow img {
		transition: none;
	}
	.svc-slideshow img:first-child {
		opacity: 1;
	}
	.svc-slideshow img:not(:first-child) {
		opacity: 0 !important;
	}
}
.svc-block .content .num {
	font-family: var(--font-mono);
	font-size: .72rem;
	letter-spacing: .04em;
	color: var(--muted);
	text-transform: lowercase;
	margin-bottom: 1.5rem;
	display: inline-flex;
	align-items: center;
	gap: .6em;
}
.svc-block .content .num::before {
	content: "";
	width: 8px; height: 8px;
	border: 1px solid var(--muted);
	border-radius: 50%;
}
.svc-block .content h2 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(2.4rem, 5vw, 4rem);
	letter-spacing: -0.04em;
	text-transform: lowercase;
	line-height: .95;
}
.svc-block .content h2 .italic {
	font-family: var(--font-accent-serif);
	font-style: italic;
	font-weight: 300;
	color: var(--accent-deep);
}
.svc-block .content p {
	margin-top: 1.5rem;
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--ink);
	max-width: 50ch;
}
.svc-block .content p.muted { color: var(--muted); }
.svc-block .content .ideal {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--hairline);
	font-family: var(--font-mono);
	font-size: .78rem;
	color: var(--muted);
	text-transform: lowercase;
	letter-spacing: .02em;
	line-height: 1.6;
}
.svc-block .content .ideal strong {
	display: block;
	margin-bottom: .5em;
	color: var(--ink);
	font-weight: 500;
	letter-spacing: .04em;
}
.svc-block .content .cta { margin-top: 2.5rem; }
.svc-block:nth-child(even) .media { order: 2; }

@media (max-width: 860px) {
	.svc-block { grid-template-columns: 1fr; gap: 2rem; }
	.svc-block:nth-child(even) .media { order: 0; }
}

/* Process section — 4-step */
.proc {
	max-width: var(--maxw);
	margin: 4rem auto 0;
	padding: 6rem var(--gutter);
	border-top: 1px solid var(--hairline);
}
.proc-head h2 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(2.5rem, 6vw, 5rem);
	letter-spacing: -0.04em;
	text-transform: lowercase;
	line-height: .95;
}
.proc-head h2 .italic {
	font-family: var(--font-accent-serif);
	font-style: italic;
	font-weight: 300;
	color: var(--accent-deep);
}
.proc-grid {
	margin-top: 3rem;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}
.proc-step .num {
	font-family: var(--font-mono);
	font-size: .72rem;
	letter-spacing: .04em;
	color: var(--accent);
	text-transform: lowercase;
	margin-bottom: 1rem;
}
.proc-step h3 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.6rem;
	letter-spacing: -0.025em;
	text-transform: lowercase;
	line-height: 1.1;
	margin-bottom: .8em;
}
.proc-step p {
	color: var(--muted);
	font-size: .98rem;
	line-height: 1.6;
}
@media (max-width: 860px) {
	.proc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.proc-grid { grid-template-columns: 1fr; }
}
