/* ==========================================================================
   Lewis Projects LLC — clean commercial design system
   ========================================================================== */

:root {
	--white: #ffffff;
	--tint: #f6f7f9;
	--ink: #0f172a;
	--text: #475569;
	--muted: #64748b;
	--line: #e2e8f0;
	--line-strong: #cbd5e1;
	--dark: #0b1220;
	--dark-2: #131d30;

	--accent: #c2410c;
	--accent-hover: #9a3412;
	--accent-soft: #fff3ec;
	--accent-glow: #fb923c;
	--accent-light: #fdba74;

	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--r-sm: 10px;
	--r: 16px;
	--r-lg: 24px;
	--r-xl: 32px;

	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
	--shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(15, 23, 42, 0.14);
	--shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.04), 0 32px 64px -24px rgba(15, 23, 42, 0.32);

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 76px;
	--section: clamp(72px, 9vw, 120px);
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font);
	font-size: 16.5px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); }

::selection { background: var(--accent-soft); color: var(--accent-hover); }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 16px; top: -100px;
	z-index: 100;
	background: var(--ink);
	color: var(--white);
	padding: 10px 16px;
	border-radius: var(--r-sm);
	font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Type ------------------------------------------------------------------- */

.h1 {
	font-size: clamp(36px, 5vw, 58px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.h2 {
	font-size: clamp(30px, 3.6vw, 46px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.eyebrow {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 14px;
}
.eyebrow--light { color: var(--accent-light); }

.lead {
	font-size: clamp(17.5px, 1.4vw, 19.5px);
	line-height: 1.6;
	color: var(--ink);
}
.muted { color: var(--muted); }

.pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 14px 6px 10px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 999px;
	box-shadow: var(--shadow-sm);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text);
}
.pill__dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Buttons ---------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 22px;
	border: 1px solid transparent;
	border-radius: var(--r-sm);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn .icon-arrow { transition: transform 0.2s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }

.btn--primary {
	background: var(--accent);
	color: var(--white);
	box-shadow: 0 1px 2px rgba(194, 65, 12, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn--primary:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 10px 24px -10px rgba(194, 65, 12, 0.6);
}

.btn--secondary {
	background: var(--white);
	border-color: var(--line);
	color: var(--ink);
	box-shadow: var(--shadow-sm);
}
.btn--secondary:hover { border-color: var(--line-strong); background: var(--tint); }

.btn--sm { padding: 10px 16px; font-size: 14.5px; }
.btn--block { width: 100%; }

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--accent);
}
.text-link:hover { color: var(--accent-hover); }

/* Wordmark --------------------------------------------------------------- */

.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	line-height: 1;
}
.wordmark__mark {
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	border-radius: 11px;
	background: var(--ink);
	color: var(--white);
}
.wordmark__text { display: flex; flex-direction: column; gap: 4px; }
.wordmark__name {
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ink);
}
.wordmark__sub {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--muted);
}
.custom-logo-link img { max-height: 52px; width: auto; }

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.86);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
	border-bottom-color: var(--line);
	box-shadow: 0 6px 20px -16px rgba(15, 23, 42, 0.3);
}
.admin-bar .site-header { top: 32px; }

.site-header__in {
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav__list { display: flex; gap: 32px; }
.site-nav__list a {
	font-size: 15px;
	font-weight: 500;
	color: var(--text);
	transition: color 0.2s;
}
.site-nav__list a:hover { color: var(--ink); }

.site-nav__actions { display: flex; align-items: center; gap: 20px; }
.site-nav__phone { font-size: 15px; font-weight: 600; color: var(--ink); }
.site-nav__phone:hover { color: var(--accent); }

.nav-toggle {
	display: none;
	position: relative;
	width: 44px; height: 44px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--white);
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	position: absolute;
	left: 12px; right: 12px;
	height: 1.75px;
	border-radius: 2px;
	background: var(--ink);
	transition: transform 0.25s var(--ease), background-color 0.2s;
}
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; left: 0; right: 0; }
.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: rotate(-45deg); }

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

.hero {
	position: relative;
	padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 120px);
	background:
		radial-gradient(900px 480px at 85% -10%, rgba(251, 146, 60, 0.12), transparent 60%),
		radial-gradient(700px 420px at -10% 110%, rgba(148, 163, 184, 0.16), transparent 60%),
		var(--white);
	overflow: hidden;
}

.hero__in {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(40px, 6vw, 80px);
	align-items: center;
}

.hero__copy .pill { margin-bottom: 28px; }

.hero__title {
	font-size: clamp(44px, 6.2vw, 78px);
	font-weight: 800;
	line-height: 1.03;
	letter-spacing: -0.04em;
	margin-bottom: 24px;
}
.hero__accent {
	display: block;
	color: var(--accent);
}

.hero__text {
	max-width: 36rem;
	font-size: clamp(17.5px, 1.45vw, 20px);
	line-height: 1.6;
	margin-bottom: 36px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__call {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	font-size: 15px;
	color: var(--muted);
}
.hero__call .icon { color: var(--accent); }
.hero__call a { font-weight: 600; color: var(--ink); }
.hero__call a:hover { color: var(--accent); }

/* Hero panel */

.hero__panel {
	position: relative;
	isolation: isolate;
	padding: clamp(28px, 3.2vw, 40px);
	border-radius: var(--r-xl);
	background:
		radial-gradient(520px 320px at 100% 0%, rgba(251, 146, 60, 0.28), transparent 60%),
		linear-gradient(160deg, var(--dark-2), var(--dark));
	color: #cbd5e1;
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.hero__panel::before {
	/* faint dot grid */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 65%);
	mask-image: linear-gradient(200deg, #000 10%, transparent 65%);
}

.hero__panel-head { margin-bottom: 28px; }
.hero__panel-kicker {
	display: block;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-light);
	margin-bottom: 10px;
}
.hero__panel-title {
	display: block;
	max-width: 22ch;
	font-size: clamp(21px, 2vw, 26px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--white);
}

.value-list { display: grid; gap: 12px; }
.value {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 16px;
	padding: 14px 18px 14px 14px;
	border-radius: var(--r);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.value:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); }
.value__icon {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border-radius: 12px;
	background: rgba(251, 146, 60, 0.14);
	color: var(--accent-light);
}
.value__title { font-size: 16.5px; font-weight: 600; color: var(--white); }
.value__num { font-size: 13px; font-weight: 600; color: #64748b; font-variant-numeric: tabular-nums; }

.hero__panel-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero__panel-foot span {
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	font-size: 13px;
	font-weight: 500;
	color: #cbd5e1;
}

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

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

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head__text { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 36rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
	max-width: none;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
	gap: 24px 64px;
	align-items: end;
}
.section-head--split .section-head__text { margin-top: 0; }

.admin-hint {
	display: block;
	margin-top: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
}

/* About */

.about__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(40px, 7vw, 96px);
	align-items: center;
}
.about__copy .h2 { margin-bottom: 24px; }
.about__copy .lead + p { margin-top: 16px; }

.principles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.principle {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--white);
	box-shadow: var(--shadow-sm);
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ink);
}
.principle__icon {
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
}

/* Services */

.service-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.service-card {
	display: flex;
	flex-direction: column;
	padding: 32px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--white);
	box-shadow: var(--shadow-sm);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.service-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
	border-color: transparent;
}
.service-card__icon {
	display: grid;
	place-items: center;
	width: 52px; height: 52px;
	margin-bottom: 24px;
	border-radius: 14px;
	background: var(--accent-soft);
	color: var(--accent);
	transition: background-color 0.3s, color 0.3s;
}
.service-card:hover .service-card__icon { background: var(--accent); color: var(--white); }
.service-card__title {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin-bottom: 10px;
}
.service-card__text { margin-bottom: 24px; }
.service-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	font-size: 15px;
	font-weight: 600;
	color: var(--accent);
}
.service-card__link .icon-arrow { transition: transform 0.2s var(--ease); }
.service-card__link:hover { color: var(--accent-hover); }
.service-card__link:hover .icon-arrow { transform: translateX(3px); }

/* Projects */

.section-head__side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.project-grid--home { grid-auto-rows: minmax(220px, 280px); }
.project-grid--home .project-card--lead { grid-column: span 2; grid-row: span 2; }
.project-grid--archive .project-card { aspect-ratio: 4 / 3; }

.project-card {
	position: relative;
	overflow: hidden;
	border-radius: var(--r-lg);
	background: var(--tint);
	isolation: isolate;
}
.project-card__link { position: absolute; inset: 0; display: block; color: var(--white); }
.project-card__media { position: absolute; inset: 0; z-index: -1; }
.project-card__img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}
.project-card__link:hover .project-card__img { transform: scale(1.05); }
.project-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 18, 32, 0) 40%, rgba(11, 18, 32, 0.82) 100%);
	transition: opacity 0.3s;
}

.project-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 1px dashed var(--line-strong);
	border-radius: inherit;
	background: linear-gradient(135deg, #f8fafc, #e8edf3);
	color: #94a3b8;
	font-size: 14px;
	font-weight: 500;
}

.project-card__body {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 24px 72px 22px 24px;
}
.project-card__type {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-size: 12.5px;
	font-weight: 600;
}
.project-card__title {
	color: var(--white);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
}
.project-card--lead .project-card__title { font-size: clamp(22px, 2.2vw, 28px); }
.project-card__meta {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.78);
}
.project-card__go {
	position: absolute;
	right: 20px; bottom: 22px;
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--white);
	color: var(--ink);
	transform: translateY(6px);
	opacity: 0;
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.project-card__link:hover .project-card__go,
.project-card__link:focus-visible .project-card__go { opacity: 1; transform: none; }

/* Cards without a photo: dark text on the light placeholder */
.project-card:not(:has(.project-card__img)) .project-card__media::after { display: none; }
.project-card:not(:has(.project-card__img)) .project-card__link { color: var(--ink); }
.project-card:not(:has(.project-card__img)) .project-card__title { color: var(--ink); }
.project-card:not(:has(.project-card__img)) .project-card__meta { color: var(--muted); }
.project-card:not(:has(.project-card__img)) .project-card__type { background: var(--white); color: var(--accent); }
.project-card:not(:has(.project-card__img)) .project-card__go { background: var(--ink); color: var(--white); }

.admin-hint--center { margin-top: 20px; text-align: center; }

/* Archive filter */

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.filter__item {
	padding: 8px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	font-size: 14.5px;
	font-weight: 600;
	color: var(--text);
	transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.filter__item:hover { border-color: var(--line-strong); color: var(--ink); }
.filter__item.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Single project */

.back-link {
	display: inline-block;
	margin-bottom: 24px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--muted);
}
.back-link:hover { color: var(--accent); }
.project-hero .lead { margin-bottom: 0; }

.project-single__photo {
	margin-bottom: clamp(40px, 5vw, 64px);
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--tint);
}
.project-single__photo img { width: 100%; max-height: 720px; object-fit: cover; }

.project-single__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: clamp(40px, 6vw, 80px);
	align-items: start;
}
.project-single .entry__content { max-width: 720px; }

.project-facts {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--white);
	box-shadow: var(--shadow-sm);
}
.project-facts__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.project-facts dl { margin: 0 0 24px; }
.project-facts dl > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
}
.project-facts dt { color: var(--muted); }
.project-facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.project-facts dd a:hover { color: var(--accent); }

.project-gallery { margin-top: clamp(56px, 7vw, 96px); }
.project-gallery__title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }
.project-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.project-gallery__item {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: var(--r);
	overflow: hidden;
	background: var(--tint);
	cursor: zoom-in;
}
.project-gallery__item img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}
.project-gallery__item:hover img { transform: scale(1.04); }

.project-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: clamp(56px, 7vw, 96px);
	padding-top: 32px;
	border-top: 1px solid var(--line);
}
.project-nav__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px 24px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.project-nav__item:hover { border-color: transparent; box-shadow: var(--shadow); }
.project-nav__item small { font-size: 13.5px; color: var(--muted); }
.project-nav__item span { font-weight: 700; color: var(--ink); }
.project-nav__item--next { text-align: right; }

/* Lightbox */

.lightbox {
	width: 100vw; height: 100vh;
	max-width: none; max-height: none;
	margin: 0;
	padding: 24px;
	border: 0;
	background: transparent;
}
.lightbox::backdrop { background: rgba(11, 18, 32, 0.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img {
	max-width: 100%;
	max-height: calc(100vh - 120px);
	border-radius: var(--r-sm);
	object-fit: contain;
}
.lightbox__btn {
	position: fixed;
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: var(--white);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Process */

.steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.steps::before {
	/* connector line behind the step numbers */
	content: "";
	position: absolute;
	top: 56px;
	left: 16%; right: 16%;
	height: 1px;
	background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.step {
	position: relative;
	padding: 32px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--white);
	box-shadow: var(--shadow-sm);
	text-align: center;
}
.step__num {
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	margin: 0 auto 22px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--white);
	font-size: 17px;
	font-weight: 700;
	box-shadow: 0 0 0 8px var(--white);
}
.step h3 {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin-bottom: 8px;
}
.step p { max-width: 30ch; margin-inline: auto; }

/* Contact */

.contact__panel {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(40px, 6vw, 80px);
	align-items: start;
	padding: clamp(32px, 5.5vw, 72px);
	border-radius: var(--r-xl);
	background:
		radial-gradient(600px 360px at 0% 0%, rgba(251, 146, 60, 0.2), transparent 60%),
		linear-gradient(160deg, var(--dark-2), var(--dark));
	color: #cbd5e1;
	overflow: hidden;
}
.contact__panel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(160deg, #000, transparent 55%);
	mask-image: linear-gradient(160deg, #000, transparent 55%);
}
.contact .h2 { color: var(--white); }
.contact__text { margin-top: 18px; font-size: 18px; color: #94a3b8; max-width: 30rem; }

.contact__details { display: grid; gap: 18px; margin-top: 40px; }
.contact__details li { display: flex; align-items: center; gap: 16px; }
.contact__details small {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #94a3b8;
}
.contact__details li > span:last-child { color: var(--white); font-weight: 600; font-size: 16.5px; line-height: 1.4; }
.contact__details a:hover { color: var(--accent-light); }
.contact__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 46px; height: 46px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--accent-light);
}

.estimate {
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--r-lg);
	background: var(--white);
	box-shadow: var(--shadow-lg);
	color: var(--text);
}
.estimate__title {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 22px;
}

.estimate__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 16px;
	margin-bottom: 24px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field__label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	background: var(--white);
	font-size: 15.5px;
	color: var(--ink);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: #94a3b8; }
.field input:hover,
.field textarea:hover { border-color: #94a3b8; }
.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.12);
}

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

.notice {
	margin-bottom: 20px;
	padding: 12px 16px;
	border-radius: var(--r-sm);
	font-size: 15px;
	font-weight: 500;
}
.notice--ok { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.notice--err { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }

/* Footer ----------------------------------------------------------------- */

.site-footer {
	background: var(--dark);
	color: #94a3b8;
	font-size: 15px;
}
.site-footer .wordmark__mark { background: var(--accent); }
.site-footer .wordmark__name { color: var(--white); }
.site-footer .eyebrow { color: var(--white); text-transform: none; letter-spacing: 0; font-size: 15px; margin-bottom: 18px; }

.site-footer__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 56px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer__big {
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--white);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 48px;
	padding-block: 64px 56px;
}
.site-footer__brand p { margin-top: 18px; max-width: 30ch; }
.site-footer__list,
.site-footer__contact { display: flex; flex-direction: column; gap: 10px; }
.site-footer__list a,
.site-footer__contact a { transition: color 0.2s; }
.site-footer__list a:hover,
.site-footer__contact a:hover { color: var(--white); }
.site-footer__contact strong { color: #e2e8f0; font-weight: 600; }

.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-block: 24px 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 14px;
	color: #64748b;
}
.to-top:hover { color: var(--white); }

/* Inner pages ------------------------------------------------------------ */

.page-hero {
	padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px);
	background:
		radial-gradient(700px 360px at 90% -20%, rgba(251, 146, 60, 0.1), transparent 60%),
		var(--tint);
	border-bottom: 1px solid var(--line);
}
.page-hero .h1 { max-width: 20ch; }
.page-hero .lead { margin: 20px 0 32px; max-width: 40ch; color: var(--text); }
.page-hero--404 { padding-bottom: var(--section); border-bottom: 0; }

.page-body { padding-block: clamp(48px, 6vw, 80px) var(--section); }

.entry { max-width: 760px; }
.entry__media { margin-bottom: 40px; border-radius: var(--r-lg); overflow: hidden; }
.entry__content { color: var(--text); font-size: 17px; }
.entry__content > * + * { margin-top: 1.2em; }
.entry__content h2,
.entry__content h3 { letter-spacing: -0.02em; line-height: 1.25; margin-top: 1.8em; }
.entry__content h2 { font-size: 30px; }
.entry__content h3 { font-size: 22px; }
.entry__content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry__content ul { list-style: disc; padding-left: 1.3em; }
.entry__content ol { list-style: decimal; padding-left: 1.3em; }
.entry__content blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--accent);
	font-size: 19px;
	color: var(--ink);
}

.post-list { display: grid; gap: 20px; max-width: 820px; }
.post-card {
	padding: 28px 32px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	transition: box-shadow 0.25s, border-color 0.25s;
}
.post-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.post-card .eyebrow { margin-bottom: 8px; }
.post-card h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 10px; }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { margin-bottom: 14px; }

.nav-links { display: flex; gap: 8px; margin-top: 40px; }
.nav-links .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px; height: 42px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	font-weight: 600;
}
.nav-links .current { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Reveal on scroll ------------------------------------------------------- */

.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .service-card.reveal.is-visible:hover { transform: translateY(-4px); }

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

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

@media (max-width: 960px) {
	:root { --header-h: 68px; }

	.nav-toggle { display: block; }

	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		flex-direction: column;
		align-items: stretch;
		justify-content: space-between;
		gap: 32px;
		padding: 16px var(--gutter) 32px;
		background: var(--white);
		border-top: 1px solid var(--line);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
		overflow-y: auto;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.site-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
	}
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list a {
		display: block;
		padding: 16px 0;
		border-bottom: 1px solid var(--line);
		font-size: 20px;
		font-weight: 600;
		color: var(--ink);
	}
	.site-nav__actions { flex-direction: column; align-items: stretch; gap: 12px; }
	.site-nav__phone { display: block; text-align: center; padding: 10px; }
	.site-nav .btn { padding: 15px; font-size: 16px; }

	.hero__in,
	.about__grid,
	.contact__panel,
	.section-head--split { grid-template-columns: 1fr; }

	.hero__panel { max-width: 560px; }

	.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.project-grid--home .project-card--lead { grid-column: 1 / -1; grid-row: span 1; }
	.project-grid--home { grid-auto-rows: minmax(240px, 300px); }
	.project-single__grid { grid-template-columns: 1fr; }
	.project-facts { position: static; }

	.steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
	.steps::before { top: 56px; bottom: 56px; left: 50%; right: auto; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }

	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

@media (max-width: 680px) {
	body { font-size: 16px; }

	.hero__actions .btn { flex: 1 1 auto; }

	.principles { grid-template-columns: 1fr; }
	.principle { flex-direction: row; align-items: center; padding: 18px 20px; gap: 14px; }

	.service-grid { grid-template-columns: 1fr; gap: 16px; }
	.service-card { padding: 26px; }

	.project-grid,
	.project-grid--archive { grid-template-columns: 1fr; gap: 16px; }
	.project-grid--home { grid-auto-rows: 260px; }
	.project-grid--home .project-card--lead { grid-column: auto; grid-row: auto; }
	.project-card__go { opacity: 1; transform: none; }

	.project-gallery__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.project-nav { grid-template-columns: 1fr; }
	.project-nav__item--next { text-align: left; }

	.contact__panel { padding: 28px 20px; border-radius: var(--r-lg); margin-inline: calc(var(--gutter) * -0.5); }
	.estimate { padding: 22px 18px; }
	.estimate__fields { grid-template-columns: 1fr; }

	.site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.js .reveal { opacity: 1; transform: none; }
}
