/* ---------------------------------------------------------------------------
   Pi Kitchen & Bath Fairfax - section components.

   Follows the Alexandria design language: white / cream (#F5F1EB) / dark
   (#211D17) grounds alternating down the page, pill buttons, 18px cards,
   Plus Jakarta Sans headings over Instrument Sans body.
--------------------------------------------------------------------------- */

/* ===== Header ============================================================ */
/*
 * `position: sticky` cannot work here: Elementor wraps the header template in
 * a container that is exactly as tall as the header, so the sticky element has
 * no travel inside its parent and scrolls away. Fixed positioning plus a body
 * offset is the reliable equivalent.
 */
:root { --pi-header-h: 94px; }
@media (max-width: 1079px) { :root { --pi-header-h: 82px; } }

/*
 * The capsule floats over the page, so the home page gives it no offset at all
 * and lets the hero photograph run up behind it. Inner pages open on ordinary
 * content, which would otherwise start underneath the bar, so they keep it.
 */
body.pi-page { padding-top: var(--pi-header-h); }
body.pi-page.home { padding-top: 0; }

/*
 * The bar is a floating capsule over the page rather than a band across the
 * top: the wrapper stays transparent and the inner row carries the surface,
 * matching the Alexandria showroom shell.
 */
.pi-header {
	position: fixed;
	top: 12px;
	left: 0;
	right: 0;
	z-index: 40;
	background: transparent;
	backdrop-filter: none;
	border-bottom: 0;
	transition: top .3s var(--pi-ease);
}

.pi-header__inner {
	width: min(1280px, calc(100% - 36px));
	margin: 0 auto;
	padding: 11px 13px 11px 27px;
	height: 70px;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	border-radius: 999px;
	background: rgba(22, 18, 14, .42);
	border: 1px solid rgba(255, 255, 255, .1);
	box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
	backdrop-filter: saturate(1.2) blur(10px);
	transition: height .3s var(--pi-ease), background-color .3s var(--pi-ease);
}

/* Only the home page opens on a dark photograph; elsewhere the capsule would
   float over white, so it fills in to keep the light type legible. */
body:not(.home) .pi-header__inner { background: rgba(22, 18, 14, .94); }

.pi-header__logo { flex: 0 0 auto; display: flex; align-items: center; }
.pi-header__logo img {
	height: 42px;
	width: auto;
	display: block;
	transition: height .3s var(--pi-ease);
}

/* Anchors must clear the fixed bar. */
[id] { scroll-margin-top: calc(var(--pi-header-h) + 18px); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.pi-header__nav { margin-left: auto; display: flex; align-items: center; gap: 0; }
.pi-header__item { position: relative; display: flex; align-items: center; }

/* Top-level rows, to the Alexandria spec: Instrument Sans 15/500 in white,
   with the spacing carried by the row's own padding rather than a flex gap. */
.pi-header__item > a {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-family: var(--pi-font-body, "Instrument Sans"), sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: normal;
	color: #fff;
	white-space: nowrap;
	padding: 13px 20px;
	transition: color .2s var(--pi-ease);
}
.pi-header__item > a:hover { color: var(--pi-red); }
.pi-header__caret { width: 11px; height: 8px; flex: none; transition: transform .25s var(--pi-ease); }
.pi-header__item.has-sub:hover .pi-header__caret { transform: rotate(180deg); }

/* Drop-down: a plain white panel, exactly as the Alexandria header renders it. */
.pi-header__sub {
	position: absolute;
	top: 100%;
	left: 8px;
	min-width: 156px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border-radius: 0;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s var(--pi-ease), transform .2s var(--pi-ease), visibility .2s;
	z-index: 5;
}
.pi-header__item.has-sub:hover .pi-header__sub,
.pi-header__item.has-sub:focus-within .pi-header__sub {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.pi-header__sub a {
	display: block;
	font-family: Roboto, var(--pi-font-body), sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #33373d;
	padding: 13px 20px;
	white-space: nowrap;
	transition: background-color .2s var(--pi-ease), color .2s var(--pi-ease);
}
.pi-header__sub a:hover { background: #f5f1eb; color: var(--pi-red); }

.pi-header__phone {
	display: inline-flex;
	flex-direction: column;
	line-height: 1.15;
	white-space: nowrap;
}
.pi-header__phone span {
	font-family: var(--pi-font-accent);
	font-size: .625rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(243, 236, 221, .62);
}
.pi-header__phone b {
	font-family: var(--pi-font-accent);
	font-size: 1.0625rem;
	font-weight: 600;
	color: #fff;
}
.pi-header__phone:hover b { color: var(--pi-red); }

/* Once the page has moved under it the bar tightens and lifts slightly: enough
   to feel responsive, not enough to make the layout jump. */
.pi-header.is-stuck .pi-header__inner {
	background: rgba(22, 18, 14, .94);
	box-shadow: 0 14px 38px rgba(0, 0, 0, .34);
}
@media (min-width: 1080px) {
	.pi-header.is-stuck .pi-header__inner { height: 64px; }
	.pi-header.is-stuck .pi-header__logo img { height: 38px; }
}

.pi-header__toggle { display: none; }

/* ===== Mobile drawer ===================================================== */
.pi-drawer { position: fixed; inset: 0; z-index: 60; }
.pi-drawer[hidden] { display: none; }

.pi-drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgba(20, 17, 13, .5);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity .35s var(--pi-ease);
}

/* A floating card inset from the edges, not a full-height sheet, so it reads
   as the same object family as the capsule above it. */
.pi-drawer__panel {
	position: absolute;
	top: 80px;
	left: 18px;
	right: 18px;
	bottom: auto;
	width: auto;
	max-height: calc(100vh - 98px);
	background: rgba(22, 18, 14, .97);
	backdrop-filter: blur(18px) saturate(1.2);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 22px;
	display: flex;
	flex-direction: column;
	padding: 10px;
	transform: translateY(-10px);
	opacity: 0;
	transition: transform .32s var(--pi-ease), opacity .28s var(--pi-ease);
	overflow-y: auto;
	overscroll-behavior: contain;
	box-shadow: 0 22px 54px rgba(0, 0, 0, .42);
}

.pi-drawer.is-open .pi-drawer__scrim { opacity: 1; }
.pi-drawer.is-open .pi-drawer__panel { transform: none; opacity: 1; }

.pi-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .35rem .5rem .9rem;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.pi-drawer__top img { height: 30px; width: auto; }

.pi-drawer__close {
	width: 42px;
	height: 42px;
	aspect-ratio: 1;
	display: grid; place-items: center;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	flex: 0 0 auto;
	line-height: 0;
	transition: transform .3s var(--pi-ease);
}
.pi-drawer__close svg { width: 18px; height: 18px; }
.pi-drawer__close:hover { transform: rotate(90deg); }

/* Navigation: each row unfolds on its own beat. */
.pi-drawer__nav { display: grid; padding: .4rem 0 .5rem; }

.pi-drawer__nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-family: var(--pi-font-display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: normal;
	color: #f3ecdd;
	padding: 15px 18px;
	line-height: 1.2;
	border-bottom: 1px solid rgba(255, 255, 255, .07);
	border-radius: 12px;
	min-height: 49px;                    /* the Alexandria row height */
	opacity: 0;
	transform: translateX(18px);
}
.pi-drawer__nav a:last-child { border-bottom: 0; }

/* Second-level rows sit indented and a size down, the way the drawer on the
   Alexandria site nests them. */
.pi-drawer__nav .pi-drawer__sublink {
	padding-left: 34px;
	font-size: .875rem;
	font-weight: 500;
	color: rgba(243, 236, 221, .72);
	min-height: 42px;
}
.pi-drawer__nav a:hover,
.pi-drawer__nav a:focus-visible { background: rgba(255, 255, 255, .06); color: #fff; }

.pi-drawer.is-open .pi-drawer__nav a {
	opacity: 1;
	transform: none;
	transition: opacity .4s var(--pi-ease), transform .45s var(--pi-ease);
	transition-delay: calc(120ms + var(--pi-step, 0) * 45ms);
}

.pi-drawer__nav a svg {
	width: 19px; height: 19px;
	flex: none;
	color: var(--pi-line-2);
	transition: transform .3s var(--pi-ease), color .3s var(--pi-ease);
}
.pi-drawer__nav a:hover svg,
.pi-drawer__nav a:focus svg { color: var(--pi-red); transform: translateX(4px); }

/* Contact block */
.pi-drawer__block { padding: 0 .5rem 1.25rem; }
.pi-drawer__block h4 {
	font-family: var(--pi-font-accent);
	font-size: .625rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: rgba(243, 236, 221, .55);
	margin: 0 0 .9rem;
}

.pi-drawer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .95rem; }
.pi-drawer__contact a,
.pi-drawer__place {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .75rem;
	align-items: start;
}
.pi-drawer__contact svg { width: 18px; height: 18px; color: var(--pi-red); margin-top: 3px; flex: none; }
.pi-drawer__contact b {
	display: block;
	font-family: var(--pi-font-display);
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
}
.pi-drawer__contact span span,
.pi-drawer__contact span { font-size: .8125rem; color: rgba(243, 236, 221, .6); line-height: 1.5; }

.pi-drawer__foot {
	margin-top: auto;
	padding-top: 1.35rem;
	border-top: 1px solid rgba(255, 255, 255, .1);
	display: grid;
	gap: 1.15rem;
}
.pi-drawer__foot .pi-btn { width: 100%; }

.pi-drawer__social { list-style: none; margin: 0; padding: 0; display: flex; gap: .6rem; }
.pi-drawer__social a {
	width: 42px; height: 42px;
	display: grid; place-items: center;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--pi-r-pill);
	color: rgba(243, 236, 221, .8);
	transition: color .25s var(--pi-ease), border-color .25s var(--pi-ease),
	            background-color .25s var(--pi-ease);
}
.pi-drawer__social svg { width: 17px; height: 17px; }
.pi-drawer__social a:hover {
	color: #fff;
	background: var(--pi-red);
	border-color: var(--pi-red);
}

/* The page behind must not scroll while the drawer is open. */
body.pi-drawer-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.pi-drawer__panel, .pi-drawer__scrim { transition: none; }
	/* The staggered entrance is decorative; the links must still be there. */
	.pi-drawer__nav a { opacity: 1; transform: none; }
}

@media (max-width: 1079px) {
	.pi-header { top: 10px; }
	.pi-header__inner {
		height: 62px;
		max-width: none;
		margin-inline: 18px;
		padding: 8px 10px 8px 18px;
	}
	.pi-header__logo img { height: 34px; }
	.pi-header__nav { display: none; }
	/*
	 * Logo + phone + burger need 369px inside a 311px capsule at 375, which
	 * pushed the burger clean off screen. Alexandria's mobile bar carries the
	 * logo and the burger only; the number stays one tap away in the drawer.
	 */
	.pi-header__phone { display: none; }
	.pi-header__toggle { margin-left: auto; }
	.pi-header__inner { gap: .75rem; }
	.pi-header__toggle {
		display: inline-grid;
		place-items: center;
		flex: 0 0 auto;
		width: 42px;
		height: 42px;
		aspect-ratio: 1;
		background: rgba(255, 255, 255, .1);
		border: 1px solid rgba(255, 255, 255, .16);
		border-radius: 50%;
		color: #fff;
		cursor: pointer;
		line-height: 0;
	}
}

/* Two bars of unequal length read as considered rather than generic; they
   level out on press. */
.pi-burger {
	display: grid;
	gap: 5px;
	justify-items: end;
	width: 19px;
}
.pi-burger i {
	display: block;
	height: 2px;
	width: 19px;
	border-radius: 2px;
	background: currentColor;
	transition: width .3s var(--pi-ease);
}
.pi-burger i:last-child { width: 12px; }
.pi-header__toggle:hover .pi-burger i:last-child,
.pi-header__toggle:focus-visible .pi-burger i:last-child { width: 19px; }
@media (max-width: 599px) {
	.pi-header__cta { display: none; }
}

/* ===== Hero ============================================================== */
.pi-hero {
	position: relative;
	display: flex;
	align-items: center;
	isolation: isolate;
	overflow: hidden;
	min-height: min(86dvh, 760px);
}

.pi-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.pi-hero__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center 58%;
}

/* A very slow push into the photograph. Long enough that you register depth
   rather than movement. */
@media (prefers-reduced-motion: no-preference) {
	.pi-kenburns {
		animation: pi-kenburns 26s var(--pi-ease) infinite alternate;
		will-change: transform;
	}
}
@keyframes pi-kenburns {
	from { transform: scale(1); }
	to   { transform: scale(1.07); }
}

/* Directional scrim: keeps the left copy at AA contrast without flattening
   the photograph behind the estimate card. */
.pi-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(100deg, rgba(20, 17, 13, .92) 0%, rgba(20, 17, 13, .76) 40%,
		                        rgba(20, 17, 13, .34) 68%, rgba(20, 17, 13, .16) 100%),
		linear-gradient(to top, rgba(20, 17, 13, .48), transparent 44%);
}

.pi-hero__inner {
	position: relative;
	width: 100%;
	max-width: var(--pi-shell);
	margin: 0 auto;
	padding: clamp(3.5rem, 6vw, 5.5rem) var(--pi-gutter) clamp(3rem, 5vw, 4.25rem);
}

/* One wide column: the headline is long, so it needs room to land in three
   lines rather than six. */
.pi-hero__copy { max-width: 680px; }

.pi-hero h1 {
	color: #fff;
	font-size: clamp(2.1rem, 4vw, 3.375rem);
	line-height: 1.08;
	margin-bottom: 1.15rem;
	text-shadow: 0 1px 32px rgba(0, 0, 0, .3);
}

.pi-hero__sub {
	color: rgba(255, 255, 255, .9);
	font-size: var(--pi-lead);
	line-height: 1.6;
	max-width: 52ch;
	margin-bottom: 1.9rem;
}

.pi-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Estimate card ---------------------------------------------------------- */
.pi-quote {
	background: var(--pi-surface);
	border-radius: var(--pi-r-card);
	box-shadow: var(--pi-shadow-md);
	padding: clamp(1.6rem, 2.4vw, 2rem);
}

.pi-quote__title {
	font-family: var(--pi-font-display);
	font-size: 1.375rem;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--pi-ink);
	margin-bottom: .3rem;
}

.pi-quote__note { font-size: var(--pi-small); color: var(--pi-muted); margin-bottom: 1.2rem; }

.pi-field { display: grid; gap: .35rem; margin-bottom: .8rem; }

.pi-field label {
	font-family: var(--pi-font-display);
	font-size: .8125rem;
	font-weight: 600;
	color: var(--pi-ink);            /* label above input, always present */
}

.pi-field input,
.pi-field select,
.pi-field textarea {
	font: 400 var(--pi-base)/1.45 var(--pi-font-body);
	color: var(--pi-ink);
	background: #fff;
	border: 1px solid #c6bdae;       /* 3.1:1 on white, passes for UI borders */
	border-radius: var(--pi-r-sm);
	padding: .8rem .9rem;
	width: 100%;
	transition: border-color .2s var(--pi-ease), box-shadow .2s var(--pi-ease);
}

.pi-field input::placeholder,
.pi-field textarea::placeholder { color: #6b6459; }   /* 4.9:1 on white */

.pi-field input:focus,
.pi-field select:focus,
.pi-field textarea:focus {
	outline: none;
	border-color: var(--pi-red);
	box-shadow: 0 0 0 3px rgba(226, 14, 32, .15);
}

.pi-quote .pi-btn { width: 100%; margin-top: .4rem; }
.pi-quote__fine { margin-top: .8rem; font-size: .8125rem; color: var(--pi-muted); text-align: center; }

@media (max-width: 1023px) {
	.pi-hero { min-height: 0; }
	.pi-hero__copy { max-width: none; }
}

/* ===== Section shell ===================================================== */
.pi-section { padding: var(--pi-section-y) 0; background: var(--pi-surface); }
.pi-section--cream { background: var(--pi-cream); }
.pi-section--cream-2 { background: var(--pi-cream-2); }
.pi-section--dark { background: var(--pi-ink-2); color: var(--pi-on-dark); }
.pi-section--dark h2, .pi-section--dark h3, .pi-section--dark h4 { color: #fff; }
.pi-section--dark p { color: var(--pi-on-dark-muted); }

.pi-shell { max-width: var(--pi-shell); margin: 0 auto; padding: 0 var(--pi-gutter); }

.pi-head { max-width: 60ch; margin-bottom: clamp(2rem, 3.5vw, 3rem); }
.pi-head p { font-size: var(--pi-lead); line-height: 1.65; }

/* ===== Award strip ======================================================= */
.pi-awards__inner {
	max-width: var(--pi-shell);
	margin: 0 auto;
	padding: 0 var(--pi-gutter);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(1.5rem, 4vw, 3rem);
	flex-wrap: wrap;
}
.pi-awards img {
	height: 54px;
	width: auto;
	display: block;
	opacity: .85;
	transition: opacity .25s var(--pi-ease);
}
.pi-awards img:hover { opacity: 1; }

/* ===== Services grid ===================================================== */
/* Six services, six cells. The two package services take the wide cells
   because they carry the price points. */
.pi-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.pi-svc {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: var(--pi-r-card);
	height: 300px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.75rem;
	color: #fff;
	grid-column: span 3;
}
.pi-svc:nth-child(1), .pi-svc:nth-child(2) { height: 360px; }

@media (min-width: 900px) {
	.pi-svc:nth-child(3), .pi-svc:nth-child(4), .pi-svc:nth-child(5) { grid-column: span 2; }
	.pi-svc:nth-child(6) { grid-column: span 6; height: 272px; }
	.pi-svc:nth-child(6) .pi-svc__body { max-width: 46ch; }
}

@media (max-width: 639px) {
	.pi-bento { grid-template-columns: 1fr; }
	.pi-svc, .pi-svc:nth-child(n) { grid-column: 1 / -1; height: 268px; }
}

.pi-svc img {
	position: absolute; inset: 0; z-index: -2;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .8s var(--pi-ease);
}
.pi-svc:hover img { transform: scale(1.05); }

/* Two stacked scrims: a deep one at the foot for the copy, and a light overall
   wash so the photograph still reads as a photograph. */
.pi-svc::after {
	content: '';
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(to top, rgba(16, 13, 10, .95) 0%, rgba(16, 13, 10, .8) 26%,
		                        rgba(16, 13, 10, .34) 60%, rgba(16, 13, 10, 0) 88%),
		linear-gradient(to top, rgba(16, 13, 10, .18), rgba(16, 13, 10, .18));
}

.pi-svc h3 {
	color: #fff;
	font-size: 1.375rem;
	line-height: 1.22;
	margin-bottom: .55rem;
	letter-spacing: -.018em;
}

/* A short brand rule that draws out on hover: the only motion these cards need. */
.pi-svc h3::after {
	content: '';
	display: block;
	width: 30px;
	height: 3px;
	margin-top: .7rem;
	border-radius: 2px;
	background: var(--pi-red);
	transition: width .45s var(--pi-ease);
}
.pi-svc:hover h3::after { width: 62px; }

.pi-svc p {
	color: rgba(255, 255, 255, .84);
	font-size: .9063rem;
	line-height: 1.55;
	max-width: 40ch;
}

.pi-svc__price {
	position: absolute;
	top: 1.25rem;
	left: 1.25rem;
	background: var(--pi-red);
	color: #fff;
	font-family: var(--pi-font-display);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .01em;
	padding: .45rem .85rem;
	border-radius: var(--pi-r-pill);
	box-shadow: 0 2px 10px rgba(16, 13, 10, .3);
}

/* ===== Why choose us ===================================================== */
.pi-split {
	display: grid;
	grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.pi-split--flip > *:first-child { order: 2; }

.pi-split__media { position: relative; }
.pi-split__media img {
	width: 100%; height: auto; display: block;
	border-radius: var(--pi-r-card);
}

.pi-badge {
	position: absolute;
	right: -14px;
	bottom: -18px;
	background: var(--pi-red);
	color: #fff;
	padding: 1.1rem 1.3rem;
	border-radius: var(--pi-r-card);
	box-shadow: var(--pi-shadow-md);
}
.pi-badge b {
	display: block;
	font-family: var(--pi-font-display);
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
}
.pi-badge span { font-size: .8125rem; letter-spacing: .04em; opacity: .94; }

.pi-points { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.05rem; }
.pi-points li { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; }
.pi-points svg { width: 22px; height: 22px; flex: none; color: var(--pi-red); margin-top: 3px; }
.pi-points b {
	display: block;
	font-family: var(--pi-font-display);
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--pi-ink);
	margin-bottom: .1rem;
}
.pi-points p { font-size: var(--pi-small); line-height: 1.6; }

@media (max-width: 899px) {
	.pi-split { grid-template-columns: 1fr; }
	.pi-split--flip > *:first-child { order: 0; }
	.pi-badge { right: 12px; bottom: 12px; }
}

/* ===== Project rail ====================================================== */
.pi-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(258px, 29vw, 384px);
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 1rem;
	/* The rail has its own progress bar, so the native scrollbar would read as
	   a second, competing indicator. */
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.pi-rail::-webkit-scrollbar { display: none; }

.pi-rail figure {
	margin: 0;
	scroll-snap-align: start;
	border-radius: var(--pi-r-card);
	overflow: hidden;
	background: var(--pi-cream-3);
}

/* The whole tile is the lightbox trigger. */
.pi-rail a {
	display: block;
	position: relative;
	isolation: isolate;
	cursor: zoom-in;
}
.pi-rail img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
	transition: transform .6s var(--pi-ease);
}
.pi-rail a:hover img { transform: scale(1.05); }

/* Affordance so it reads as openable, not just a photo. */
.pi-rail a::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(16, 13, 10, 0);
	transition: background .35s var(--pi-ease);
}
.pi-rail a:hover::after { background: rgba(16, 13, 10, .26); }

.pi-rail__zoom {
	position: absolute;
	z-index: 1;
	right: 14px;
	bottom: 14px;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: var(--pi-r-pill);
	background: rgba(255, 255, 255, .94);
	color: var(--pi-ink);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .3s var(--pi-ease), transform .3s var(--pi-ease);
}
.pi-rail a:hover .pi-rail__zoom,
.pi-rail a:focus-visible .pi-rail__zoom { opacity: 1; transform: none; }
.pi-rail__zoom svg { width: 19px; height: 19px; }

.pi-rail__hint { margin-top: .85rem; font-size: var(--pi-small); color: var(--pi-muted); }

/* Section head with controls parked on the right. */
.pi-head--row {
	max-width: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
}
.pi-head--row > div:first-child { max-width: 60ch; }

.pi-rail__nav { display: flex; gap: .6rem; flex: none; padding-bottom: .25rem; }

.pi-rail__btn {
	width: 48px; height: 48px;
	display: grid; place-items: center;
	border-radius: var(--pi-r-pill);
	cursor: pointer;
	transition: color .25s var(--pi-ease), border-color .25s var(--pi-ease),
	            background-color .25s var(--pi-ease), opacity .25s var(--pi-ease);
}
.pi-rail__btn svg { width: 19px; height: 19px; }
.pi-rail__btn[disabled] { opacity: .35; cursor: default; }

/* Scroll progress under the rail. */
.pi-rail__bar {
	height: 3px;
	border-radius: 3px;
	background: var(--pi-line);
	overflow: hidden;
}
.pi-rail__bar span {
	display: block;
	height: 100%;
	width: 12%;
	border-radius: 3px;
	background: var(--pi-red);
	transform-origin: left;
	transition: width .18s linear, transform .18s linear;
}

@media (max-width: 767px) {
	.pi-head--row { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
	.pi-rail__nav { display: none; }   /* touch users swipe */
}

/* ===== Process =========================================================== */
.pi-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1.25rem, 3vw, 2.5rem);
	position: relative;
}
.pi-steps::before {
	content: '';
	position: absolute;
	left: 0; right: 0; top: 23px;
	height: 1px;
	background: var(--pi-line-2);
}
.pi-section--dark .pi-steps::before { background: rgba(255, 255, 255, .16); }

.pi-step__no {
	width: 46px; height: 46px;
	border-radius: var(--pi-r-pill);
	display: grid; place-items: center;
	background: var(--pi-red);
	color: #fff;
	font-family: var(--pi-font-display);
	font-weight: 800;
	font-size: 1.0625rem;
	margin-bottom: 1.1rem;
	position: relative;
	z-index: 1;
}
.pi-step h3 { font-size: 1.1875rem; margin-bottom: .4rem; }
.pi-step p { font-size: var(--pi-small); line-height: 1.62; }

@media (max-width: 899px) {
	.pi-steps { grid-template-columns: 1fr 1fr; }
	.pi-steps::before { display: none; }
}
@media (max-width: 519px) { .pi-steps { grid-template-columns: 1fr; } }

/* ===== Showroom band ===================================================== */
.pi-band { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.pi-band img {
	position: absolute; inset: 0; z-index: -2;
	width: 100%; height: 100%; object-fit: cover;
}
.pi-band::after {
	content: '';
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(95deg, rgba(17, 14, 10, .94) 0%, rgba(17, 14, 10, .8) 54%, rgba(17, 14, 10, .55) 100%);
}

.pi-band__inner {
	max-width: var(--pi-shell);
	margin: 0 auto;
	padding: clamp(3.25rem, 5.5vw, 5rem) var(--pi-gutter);
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}
.pi-band h2 { color: #fff; max-width: 22ch; }
.pi-band p { color: rgba(255, 255, 255, .86); }

.pi-contact { display: grid; gap: 1.1rem; }
.pi-contact li { list-style: none; display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; }
.pi-contact svg { width: 20px; height: 20px; color: var(--pi-red); margin-top: 4px; flex: none; }
.pi-contact b {
	display: block;
	font-family: var(--pi-font-display);
	font-size: 1.0625rem;
	font-weight: 700;
	color: #fff;
}
.pi-contact span { font-size: var(--pi-small); color: rgba(255, 255, 255, .74); }

@media (max-width: 899px) { .pi-band__inner { grid-template-columns: 1fr; } }

/* ===== Testimonials ====================================================== */
.pi-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.pi-quote-card {
	background: var(--pi-surface);
	border: 1px solid var(--pi-line);
	border-radius: var(--pi-r-card);
	padding: 1.6rem;
	display: flex;
	flex-direction: column;
	gap: .85rem;
}
.pi-section--cream .pi-quote-card { border-color: var(--pi-line-2); }

.pi-stars { display: flex; gap: 2px; color: #e8a020; }
.pi-stars svg { width: 17px; height: 17px; }

.pi-quote-card blockquote {
	margin: 0;
	font-size: var(--pi-base);
	line-height: 1.62;
	color: var(--pi-ink);
}

.pi-quote-card figcaption {
	margin-top: auto;
	padding-top: .9rem;
	border-top: 1px solid var(--pi-line);
	display: flex;
	align-items: center;
	gap: .7rem;
}

.pi-avatar {
	width: 40px; height: 40px;
	border-radius: var(--pi-r-pill);
	display: grid; place-items: center;
	background: var(--pi-red-tint);
	color: var(--pi-red);
	font-family: var(--pi-font-display);
	font-weight: 800;
	font-size: .9375rem;
	flex: none;
}
.pi-quote-card cite { font-style: normal; }
.pi-quote-card cite b {
	display: block;
	font-family: var(--pi-font-display);
	font-size: .9688rem;
	font-weight: 700;
	color: var(--pi-ink);
}
.pi-quote-card cite span { font-size: .8125rem; color: var(--pi-muted); }

@media (max-width: 959px) { .pi-quotes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 619px) { .pi-quotes { grid-template-columns: 1fr; } }

/* ===== Marquee (partner brands) ========================================== */
.pi-marquee {
	display: flex;
	gap: clamp(2rem, 5vw, 3.5rem);
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.pi-marquee__track {
	list-style: none; margin: 0; padding: 0;
	display: flex; align-items: center;
	gap: clamp(2rem, 5vw, 3.5rem);
	flex: none;
	animation: pi-marquee var(--pi-marquee-speed, 46s) linear infinite;
}
.pi-marquee:hover .pi-marquee__track { animation-play-state: paused; }

.pi-marquee__item img {
	height: var(--pi-marquee-h, 44px);
	width: auto; display: block;
	filter: grayscale(1);
	opacity: .55;
	transition: filter .3s var(--pi-ease), opacity .3s var(--pi-ease);
}
.pi-marquee__item img:hover { filter: none; opacity: 1; }

@keyframes pi-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(calc(-100% - clamp(2rem, 5vw, 3.5rem))); }
}

@media (prefers-reduced-motion: reduce) {
	.pi-marquee { overflow-x: auto; }
	.pi-marquee__track { animation: none; }
	.pi-marquee__track[aria-hidden="true"] { display: none; }
}

/* ===== Press logo grid =================================================== */
/* Five across so the twenty press logos fill exactly four rows. A grid with a
   hole in it reads as a bug, so the column count tracks the item count. */
.pi-logo-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1px;
	background: var(--pi-line-2);
	border: 1px solid var(--pi-line-2);
	border-radius: var(--pi-r-card);
	overflow: hidden;
}

@media (max-width: 899px) { .pi-logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 599px) { .pi-logo-grid { grid-template-columns: repeat(2, 1fr); } }
.pi-logo-grid li {
	background: var(--pi-surface);
	display: grid; place-items: center;
	padding: 1.5rem 1rem;
	min-height: 96px;
}
.pi-logo-grid img {
	max-height: var(--pi-logo-h, 34px);
	max-width: 100%;
	width: auto; display: block;
	filter: grayscale(1);
	opacity: .58;
	transition: filter .3s var(--pi-ease), opacity .3s var(--pi-ease);
}
.pi-logo-grid li:hover img { filter: none; opacity: 1; }

/* ===== Service area chips ================================================ */
.pi-areas { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; }
.pi-areas li {
	list-style: none;
	font-family: var(--pi-font-display);
	font-size: var(--pi-small);
	font-weight: 600;
	color: var(--pi-ink);
	background: var(--pi-surface);
	border: 1px solid var(--pi-line-2);
	border-radius: var(--pi-r-pill);
	padding: .55rem 1.05rem;
}

/* ===== Footer ============================================================ */
.pi-footer { background: var(--pi-footer); color: var(--pi-on-dark-muted); }

.pi-footer__inner {
	max-width: var(--pi-shell);
	margin: 0 auto;
	padding: clamp(3.25rem, 6vw, 4.5rem) var(--pi-gutter) 0;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, 1.05fr);
	gap: clamp(2rem, 5vw, 3.5rem);
}

.pi-footer h4 {
	font-family: var(--pi-font-accent);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 1.15rem;
}

.pi-footer__logo img { height: 48px; width: auto; margin-bottom: 1.15rem; }
.pi-footer p { font-size: var(--pi-small); line-height: 1.7; max-width: 42ch; }

.pi-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pi-footer ul a { font-size: var(--pi-small); transition: color .2s var(--pi-ease); }
.pi-footer ul a:hover { color: #fff; }

.pi-showrooms { display: flex; flex-wrap: wrap; gap: .35rem .7rem; }
.pi-showrooms a { font-size: .875rem; color: var(--pi-on-dark-muted); }
.pi-showrooms a:hover { color: var(--pi-red); }

.pi-footer__bar {
	max-width: var(--pi-shell);
	margin: clamp(2.5rem, 5vw, 3.25rem) auto 0;
	padding: 1.5rem var(--pi-gutter);
	border-top: 1px solid rgba(255, 255, 255, .1);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
	font-size: .875rem;
}

@media (max-width: 899px) { .pi-footer__inner { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Header controls, pinned against the kit.

   The Baiti kit paints every <button> with the brand fill at (0,1,1) and
   repaints the label white on :hover/:focus. Both of these controls are
   outlined circles on a dark surface, so every state has to be declared or
   they render as red pills.
--------------------------------------------------------------------------- */

.pi-page .pi-header__toggle,
.pi-page .pi-header__toggle:hover,
.pi-page .pi-header__toggle:focus,
.pi-page .pi-header__toggle:focus-visible,
.pi-page .pi-header__toggle:active,
.pi-page .pi-drawer__close,
.pi-page .pi-drawer__close:hover,
.pi-page .pi-drawer__close:focus,
.pi-page .pi-drawer__close:focus-visible,
.pi-page .pi-drawer__close:active {
	width: 42px;
	height: 42px;
	min-width: 0;
	min-height: 0;
	aspect-ratio: 1;
	padding: 0;
	/* Block margins only: the mobile rule pushes this right with
	   `margin-left: auto`, and a blanket `margin: 0` would undo it. */
	margin-block: 0;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 50%;
	box-shadow: none;
	outline: none;
	display: grid;
	place-items: center;
	line-height: 0;
	font-size: 0;
	text-shadow: none;
	cursor: pointer;
	flex: 0 0 auto;
}

.pi-page .pi-header__toggle:hover,
.pi-page .pi-drawer__close:hover {
	background: rgba(255, 255, 255, .18);
	border-color: rgba(255, 255, 255, .28);
	color: #fff;
}

/* Keyboard users still get a ring; mouse users do not. */
.pi-page .pi-header__toggle:focus-visible,
.pi-page .pi-drawer__close:focus-visible {
	box-shadow: 0 0 0 3px rgba(226, 14, 32, .4);
}

.pi-page .pi-drawer__close svg { width: 18px; height: 18px; display: block; }

.pi-page .pi-header__toggle .pi-burger {
	display: grid;
	gap: 5px;
	justify-items: end;
	width: 19px;
}
.pi-page .pi-header__toggle .pi-burger i {
	display: block;
	width: 19px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: width .3s ease;
}
.pi-page .pi-header__toggle .pi-burger i:last-child { width: 12px; }
.pi-page .pi-header__toggle:hover .pi-burger i:last-child { width: 19px; }

/* The burger belongs to narrow screens only; the block above would otherwise
   leak its `display: grid` onto desktop, where the full nav is visible. */
@media (min-width: 1080px) {
	.pi-page .pi-header__toggle { display: none; }
}
