/*
Theme Name: Janardan Enterprises Premium
Theme URI: https://janardanenterprises.com/
Author: Janardan Enterprises
Description: A bespoke, performance-focused portfolio theme for Janardan Enterprises.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: janardan-enterprises
*/

:root {
	--ink: #101414;
	--ink-soft: #242b2a;
	--gold: #b89155;
	--gold-light: #d7bd8f;
	--ivory: #f6f2ea;
	--paper: #fffdf9;
	--mist: #e8e5dd;
	--muted: #676c68;
	--line: rgba(16, 20, 20, 0.13);
	--white: #ffffff;
	--success: #245f49;
	--error: #9a3030;
	--shadow: 0 22px 70px rgba(12, 18, 18, 0.12);
	--shadow-soft: 0 14px 36px rgba(12, 18, 18, 0.08);
	--serif: Georgia, "Times New Roman", serif;
	--sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--container: 1240px;
	--narrow: 820px;
	--radius: 3px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

button,
input,
select,
textarea {
	font: inherit;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--gold);
}

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

svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

h1,
h2,
h3,
h4,
p {
	margin-top: 0;
}

h1,
h2,
h3,
h4 {
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

h1 {
	font-size: clamp(3rem, 7vw, 6.7rem);
}

h2 {
	font-size: clamp(2.35rem, 4.5vw, 4.35rem);
}

h3 {
	font-size: clamp(1.45rem, 2.2vw, 2rem);
}

::selection {
	background: var(--gold);
	color: var(--ink);
}

.site-shell {
	overflow: clip;
}

.container {
	width: min(calc(100% - 40px), var(--container));
	margin-inline: auto;
}

.container--narrow {
	width: min(calc(100% - 40px), var(--narrow));
	margin-inline: auto;
}

.skip-link {
	position: fixed;
	top: 14px;
	left: 14px;
	z-index: 99999;
	padding: 10px 16px;
	background: var(--white);
	color: var(--ink);
	transform: translateY(-160%);
	transition: transform 0.2s ease;
}

.skip-link:focus {
	transform: translateY(0);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
	color: var(--gold);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.3;
	text-transform: uppercase;
}

.eyebrow::before {
	width: 38px;
	height: 1px;
	background: currentColor;
	content: "";
}

.lead {
	max-width: 750px;
	color: var(--muted);
	font-family: var(--serif);
	font-size: clamp(1.24rem, 2.2vw, 1.65rem);
	line-height: 1.55;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 52px;
	padding: 12px 23px;
	border: 1px solid var(--gold);
	border-radius: var(--radius);
	background: var(--gold);
	color: var(--ink);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.button svg {
	width: 18px;
	height: 18px;
}

.button:hover,
.button:focus-visible {
	background: transparent;
	color: var(--gold);
	transform: translateY(-2px);
}

.button--outline {
	background: transparent;
	color: var(--white);
}

.button--outline:hover,
.button--outline:focus-visible {
	background: var(--white);
	border-color: var(--white);
	color: var(--ink);
}

.button--dark {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--white);
}

.button--dark:hover,
.button--dark:focus-visible {
	background: transparent;
	color: var(--ink);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: var(--ink);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-decoration: none;
	text-transform: uppercase;
}

.text-link svg {
	width: 19px;
	transition: transform 0.2s ease;
}

.text-link:hover svg {
	transform: translateX(5px);
}

.section {
	padding-block: clamp(82px, 10vw, 145px);
}

.section--ivory {
	background: var(--ivory);
}

.section--dark {
	background: var(--ink);
	color: var(--white);
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: clamp(45px, 6vw, 78px);
}

.section-heading h2 {
	max-width: 760px;
	margin-bottom: 0;
}

.section-heading p {
	max-width: 480px;
	margin-bottom: 4px;
	color: var(--muted);
}

.section--dark .section-heading p {
	color: rgba(255, 255, 255, 0.65);
}

.topbar {
	position: relative;
	z-index: 50;
	background: var(--ink);
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.06em;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 39px;
}

.topbar__meta,
.topbar__meta a {
	display: flex;
	align-items: center;
	gap: 9px;
}

.topbar__meta {
	gap: 25px;
}

.topbar__meta a {
	text-decoration: none;
}

.topbar__meta svg {
	width: 15px;
	height: 15px;
	color: var(--gold-light);
}

.topbar__note {
	color: var(--gold-light);
	text-transform: uppercase;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 45;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 253, 249, 0.97);
	transition: box-shadow 0.25s ease;
}

.site-header.is-stuck {
	box-shadow: 0 8px 30px rgba(10, 13, 13, 0.08);
}

.admin-bar .site-header {
	top: 32px;
}

.site-header__inner {
	display: grid;
	grid-template-columns: minmax(210px, 300px) 1fr auto;
	align-items: center;
	gap: 30px;
	min-height: 99px;
}

.brand {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	text-decoration: none;
}

.brand img {
	width: 245px;
	max-height: 80px;
	object-fit: contain;
	object-position: left center;
}

.primary-navigation {
	justify-self: end;
}

.primary-navigation .menu {
	display: flex;
	align-items: center;
	gap: clamp(20px, 2.5vw, 38px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-navigation a {
	position: relative;
	padding-block: 10px;
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.primary-navigation a::after {
	position: absolute;
	right: 0;
	bottom: 4px;
	left: 0;
	height: 1px;
	background: var(--gold);
	content: "";
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.25s ease;
}

.primary-navigation a:hover::after,
.primary-navigation .current-menu-item > a::after,
.primary-navigation .current_page_item > a::after {
	transform: scaleX(1);
	transform-origin: left;
}

.header-cta {
	min-height: 47px;
	padding-inline: 20px;
}

.menu-toggle {
	display: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.menu-toggle svg {
	width: 23px;
	height: 23px;
	margin: auto;
}

.home-hero {
	position: relative;
	display: grid;
	min-height: min(790px, calc(100vh - 138px));
	align-items: end;
	background-color: var(--ink);
	background-position: center;
	background-size: cover;
	color: var(--white);
	isolation: isolate;
}

.home-hero::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(7, 10, 10, 0.92) 0%, rgba(7, 10, 10, 0.7) 45%, rgba(7, 10, 10, 0.23) 78%),
		linear-gradient(0deg, rgba(7, 10, 10, 0.62), transparent 55%);
	content: "";
}

.home-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	align-items: end;
	gap: 70px;
	padding-block: clamp(95px, 13vw, 165px) 78px;
}

.home-hero__content {
	max-width: 880px;
}

.home-hero h1 {
	max-width: 850px;
	margin-bottom: 30px;
	color: var(--white);
}

.home-hero h1 em {
	color: var(--gold-light);
	font-weight: 400;
}

.home-hero__copy {
	max-width: 660px;
	margin-bottom: 37px;
	color: rgba(255, 255, 255, 0.78);
	font-size: clamp(1rem, 1.6vw, 1.2rem);
}

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

.home-hero__stamp {
	padding: 28px 0 6px 30px;
	border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.home-hero__stamp strong,
.home-hero__stamp span {
	display: block;
}

.home-hero__stamp strong {
	margin-bottom: 8px;
	font-family: var(--serif);
	font-size: 3.2rem;
	font-weight: 400;
	line-height: 1;
}

.home-hero__stamp span {
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.5;
	text-transform: uppercase;
}

.trust-strip {
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}

.trust-strip__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.trust-stat {
	padding: 30px clamp(18px, 3vw, 36px);
	border-right: 1px solid var(--line);
}

.trust-stat:first-child {
	border-left: 1px solid var(--line);
}

.trust-stat strong,
.trust-stat span {
	display: block;
}

.trust-stat strong {
	margin-bottom: 4px;
	font-family: var(--serif);
	font-size: clamp(1.65rem, 2.6vw, 2.35rem);
	font-weight: 400;
	line-height: 1.1;
}

.trust-stat span {
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 750;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
	align-items: center;
	gap: clamp(55px, 9vw, 125px);
}

.intro-visual {
	position: relative;
	padding: 0 48px 55px 0;
}

.intro-visual::before {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 70%;
	height: 70%;
	border: 1px solid var(--gold);
	content: "";
}

.intro-visual img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: clamp(470px, 55vw, 665px);
	object-fit: cover;
}

.intro-content h2 {
	margin-bottom: 28px;
}

.intro-content p:not(.eyebrow) {
	max-width: 660px;
	color: var(--muted);
}

.intro-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 30px;
	margin: 32px 0 39px;
	padding: 0;
	border-top: 1px solid var(--line);
	list-style: none;
}

.intro-list li {
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.84rem;
	font-weight: 700;
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.service-card {
	position: relative;
	min-height: 340px;
	padding: clamp(29px, 3.5vw, 48px);
	background: var(--ink);
	transition: background 0.3s ease;
}

.service-card:hover {
	background: var(--ink-soft);
}

.service-card__number {
	display: block;
	margin-bottom: 72px;
	color: var(--gold-light);
	font-family: var(--serif);
	font-size: 0.95rem;
}

.service-card h3 {
	margin-bottom: 18px;
	color: var(--white);
}

.service-card p {
	margin-bottom: 0;
	color: rgba(255, 255, 255, 0.59);
	font-size: 0.92rem;
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(35px, 5vw, 70px) clamp(24px, 4vw, 52px);
}

.project-card {
	position: relative;
}

.project-card__image {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--mist);
	aspect-ratio: 16 / 11;
}

.project-card__image::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(8, 12, 12, 0.28), transparent 52%);
	content: "";
}

.project-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-card__image img {
	transform: scale(1.045);
}

.project-card__status {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 2;
	padding: 7px 11px;
	background: rgba(16, 20, 20, 0.86);
	color: var(--white);
	font-size: 0.64rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.project-card__content {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px;
	padding-top: 24px;
}

.project-card__content h3 {
	margin-bottom: 9px;
}

.project-card__content h3 a {
	text-decoration: none;
}

.project-card__meta {
	margin: 0;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.project-card__arrow {
	display: grid;
	width: 47px;
	height: 47px;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink);
	text-decoration: none;
	transition: background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.project-card__arrow:hover {
	border-color: var(--gold);
	background: var(--gold);
	color: var(--ink);
}

.project-card__arrow svg {
	width: 20px;
}

.process-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	counter-reset: process;
}

.process-step {
	position: relative;
	padding: 42px 32px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	counter-increment: process;
}

.process-step + .process-step {
	border-left: 1px solid var(--line);
}

.process-step::before {
	display: block;
	margin-bottom: 65px;
	color: var(--gold);
	content: "0" counter(process);
	font-family: var(--serif);
	font-size: 1rem;
}

.process-step h3 {
	font-size: 1.45rem;
}

.process-step p {
	margin-bottom: 0;
	color: var(--muted);
	font-size: 0.9rem;
}

.cta-band {
	position: relative;
	padding-block: clamp(90px, 12vw, 155px);
	background-position: center;
	background-size: cover;
	color: var(--white);
	isolation: isolate;
}

.cta-band::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(9, 13, 13, 0.83);
	content: "";
}

.cta-band__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 50px;
}

.cta-band h2 {
	max-width: 850px;
	margin-bottom: 0;
}

.site-footer {
	background: #0c1010;
	color: rgba(255, 255, 255, 0.68);
}

.site-footer__main {
	display: grid;
	grid-template-columns: 1.25fr 0.65fr 0.75fr 1.05fr;
	gap: 55px;
	padding-block: 82px 68px;
}

.footer-brand img {
	width: 260px;
	margin-bottom: 25px;
	filter: drop-shadow(0 4px 18px rgba(255, 255, 255, 0.08));
}

.footer-brand p {
	max-width: 380px;
	font-size: 0.92rem;
}

.footer-title {
	margin: 7px 0 24px;
	color: var(--white);
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.footer-menu,
.footer-contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu li + li,
.footer-contact li + li {
	margin-top: 12px;
}

.footer-menu a,
.footer-contact a {
	text-decoration: none;
}

.footer-contact li {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 11px;
	font-size: 0.9rem;
}

.footer-contact svg {
	width: 16px;
	margin-top: 5px;
	color: var(--gold-light);
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding-block: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.74rem;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__bottom a {
	text-decoration: none;
}

.inner-hero {
	position: relative;
	min-height: 470px;
	display: grid;
	align-items: end;
	padding-block: 90px 75px;
	background: var(--ink);
	color: var(--white);
	isolation: isolate;
}

.inner-hero.has-image {
	min-height: min(690px, 78vh);
	background-position: center;
	background-size: cover;
}

.inner-hero.has-image::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(7, 10, 10, 0.9), rgba(7, 10, 10, 0.25)), linear-gradient(0deg, rgba(7, 10, 10, 0.62), transparent);
	content: "";
}

.inner-hero h1 {
	max-width: 1000px;
	margin-bottom: 23px;
	font-size: clamp(3.1rem, 7vw, 6.25rem);
}

.inner-hero__copy {
	max-width: 690px;
	margin-bottom: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: clamp(1.02rem, 1.8vw, 1.22rem);
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 30px;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.breadcrumbs a {
	text-decoration: none;
}

.content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.65fr);
	gap: clamp(50px, 8vw, 115px);
}

.prose h2 {
	margin: 1.25em 0 0.45em;
	font-size: clamp(2rem, 4vw, 3.25rem);
}

.prose h3 {
	margin: 1.5em 0 0.5em;
}

.prose p,
.prose li {
	color: #4e5551;
}

.prose ul,
.prose ol {
	padding-left: 1.25em;
}

.prose a {
	color: #795f37;
}

.aside-card {
	position: sticky;
	top: 130px;
	padding: 38px;
	background: var(--ivory);
	box-shadow: var(--shadow-soft);
}

.aside-card h3 {
	margin-bottom: 24px;
}

.aside-card p {
	color: var(--muted);
}

.value-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.value-card {
	padding: 38px;
	border: 1px solid var(--line);
	background: var(--paper);
}

.value-card strong {
	display: block;
	margin-bottom: 20px;
	color: var(--gold);
	font-family: var(--serif);
	font-size: 1.1rem;
}

.value-card p {
	margin-bottom: 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.capability-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 50px;
	margin: 35px 0 0;
	padding: 0;
	list-style: none;
}

.capability-list li {
	padding: 15px 0;
	border-bottom: 1px solid var(--line);
	font-weight: 650;
}

.service-detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 25px;
}

.service-detail {
	position: relative;
	padding: clamp(30px, 4vw, 52px);
	border: 1px solid var(--line);
	background: var(--paper);
}

.service-detail__number {
	display: block;
	margin-bottom: 48px;
	color: var(--gold);
	font-family: var(--serif);
}

.service-detail h2 {
	font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.service-detail p {
	margin-bottom: 0;
	color: var(--muted);
}

.archive-intro {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	margin-bottom: 70px;
}

.archive-intro h2 {
	margin-bottom: 0;
}

.archive-intro p {
	align-self: end;
	margin-bottom: 8px;
	color: var(--muted);
}

.project-brief {
	position: relative;
	z-index: 4;
	margin-top: -68px;
}

.project-brief__inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: var(--paper);
	box-shadow: var(--shadow);
}

.project-brief__item {
	padding: 28px 34px;
	border-right: 1px solid var(--line);
}

.project-brief__item:last-child {
	border-right: 0;
}

.project-brief__item span,
.project-brief__item strong {
	display: block;
}

.project-brief__item span {
	margin-bottom: 6px;
	color: var(--muted);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.project-brief__item strong {
	font-family: var(--serif);
	font-size: 1.18rem;
	font-weight: 400;
}

.project-overview {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.75fr);
	gap: clamp(60px, 9vw, 125px);
}

.project-overview h2 {
	margin-bottom: 30px;
}

.project-overview__copy p {
	color: var(--muted);
}

.scope-list {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
	list-style: none;
}

.scope-list li {
	position: relative;
	padding: 15px 0 15px 28px;
	border-bottom: 1px solid var(--line);
	color: #424945;
	font-weight: 600;
}

.scope-list li::before {
	position: absolute;
	top: 25px;
	left: 0;
	width: 11px;
	height: 1px;
	background: var(--gold);
	content: "";
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-auto-flow: dense;
	gap: 16px;
}

.gallery-item {
	position: relative;
	grid-column: span 4;
	overflow: hidden;
	min-height: 300px;
	padding: 0;
	border: 0;
	background: var(--mist);
	cursor: zoom-in;
}

.gallery-item:nth-child(7n + 1),
.gallery-item:nth-child(7n + 5) {
	grid-column: span 8;
}

.gallery-item:nth-child(7n + 1) {
	min-height: 500px;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.gallery-item:hover img {
	transform: scale(1.035);
}

.gallery-item__icon {
	position: absolute;
	right: 17px;
	bottom: 17px;
	display: grid;
	width: 43px;
	height: 43px;
	place-items: center;
	background: rgba(12, 16, 16, 0.82);
	color: var(--white);
}

.gallery-item__icon svg {
	width: 18px;
}

.project-note {
	margin-top: 40px;
	padding: 18px 22px;
	border-left: 2px solid var(--gold);
	background: var(--ivory);
	color: var(--muted);
	font-size: 0.82rem;
}

.lightbox {
	width: min(94vw, 1500px);
	max-width: none;
	height: min(92vh, 1000px);
	max-height: none;
	padding: 0;
	border: 0;
	background: #090c0c;
	color: var(--white);
}

.lightbox::backdrop {
	background: rgba(4, 6, 6, 0.94);
}

.lightbox__inner {
	position: relative;
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	padding: 70px 80px 56px;
}

.lightbox__image {
	max-width: 100%;
	max-height: calc(92vh - 130px);
	object-fit: contain;
}

.lightbox__close,
.lightbox__nav {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.32);
	background: rgba(9, 12, 12, 0.78);
	color: var(--white);
	cursor: pointer;
}

.lightbox__close {
	top: 18px;
	right: 18px;
	width: 47px;
	height: 47px;
}

.lightbox__nav {
	top: 50%;
	width: 50px;
	height: 66px;
	transform: translateY(-50%);
}

.lightbox__nav--prev {
	left: 18px;
}

.lightbox__nav--next {
	right: 18px;
}

.lightbox__nav--prev svg {
	transform: rotate(180deg);
}

.lightbox__caption {
	position: absolute;
	right: 80px;
	bottom: 17px;
	left: 80px;
	margin: 0;
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.8rem;
	text-align: center;
}

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
	gap: clamp(55px, 9vw, 125px);
}

.contact-intro h2 {
	margin-bottom: 25px;
}

.contact-intro > p {
	color: var(--muted);
}

.contact-list {
	margin: 39px 0 0;
	padding: 0;
	border-top: 1px solid var(--line);
	list-style: none;
}

.contact-list li {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 18px;
	padding: 21px 0;
	border-bottom: 1px solid var(--line);
}

.contact-list svg {
	width: 22px;
	height: 22px;
	margin-top: 3px;
	color: var(--gold);
}

.contact-list strong,
.contact-list span,
.contact-list a {
	display: block;
}

.contact-list strong {
	margin-bottom: 3px;
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.contact-list a {
	color: var(--muted);
	text-decoration: none;
}

.contact-form-wrap {
	padding: clamp(28px, 5vw, 58px);
	background: var(--ivory);
	box-shadow: var(--shadow-soft);
}

.contact-form-wrap h2 {
	margin-bottom: 10px;
	font-size: clamp(2rem, 3.5vw, 3rem);
}

.contact-form-wrap > p {
	margin-bottom: 32px;
	color: var(--muted);
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

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

.form-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.form-field input,
.form-field textarea,
.form-field select {
	width: 100%;
	border: 0;
	border-bottom: 1px solid rgba(16, 20, 20, 0.32);
	border-radius: 0;
	outline: 0;
	background: transparent;
	color: var(--ink);
}

.form-field input,
.form-field select {
	height: 51px;
}

.form-field textarea {
	min-height: 130px;
	padding-block: 13px;
	resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
	border-color: var(--gold);
	box-shadow: 0 1px 0 var(--gold);
}

.form-consent {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 11px;
	align-items: start;
	margin: 0;
	color: var(--muted);
	font-size: 0.78rem;
}

.form-consent input {
	width: 16px;
	height: 16px;
	margin-top: 4px;
	accent-color: var(--gold);
}

.form-honeypot {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
}

.form-message {
	margin-bottom: 24px;
	padding: 13px 16px;
	border-left: 3px solid currentColor;
	font-weight: 650;
}

.form-message--success {
	background: rgba(36, 95, 73, 0.09);
	color: var(--success);
}

.form-message--error {
	background: rgba(154, 48, 48, 0.08);
	color: var(--error);
}

.legal-page {
	padding-block: 95px 125px;
}

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

.legal-meta {
	margin-bottom: 40px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.78rem;
}

.error-404 {
	display: grid;
	min-height: 65vh;
	place-items: center;
	padding-block: 100px;
	text-align: center;
}

.error-404__code {
	display: block;
	color: var(--gold);
	font-family: var(--serif);
	font-size: clamp(5rem, 16vw, 11rem);
	line-height: 0.9;
}

.error-404 h1 {
	margin: 25px 0 18px;
	font-size: clamp(2.2rem, 5vw, 4rem);
}

.error-404 p {
	max-width: 560px;
	margin: 0 auto 30px;
	color: var(--muted);
}

.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

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

@media (max-width: 1080px) {
	.site-header__inner {
		grid-template-columns: minmax(190px, 1fr) auto auto;
	}

	.menu-toggle {
		display: grid;
	}

	.header-cta {
		justify-self: end;
	}

	.primary-navigation {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 100;
		width: min(86vw, 410px);
		padding: 118px 42px 45px;
		background: var(--paper);
		box-shadow: -20px 0 60px rgba(8, 12, 12, 0.18);
		transform: translateX(105%);
		transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.primary-navigation.is-open {
		transform: translateX(0);
	}

	.primary-navigation .menu {
		align-items: flex-start;
		flex-direction: column;
		gap: 15px;
	}

	.primary-navigation a {
		font-family: var(--serif);
		font-size: 1.7rem;
		font-weight: 400;
		letter-spacing: 0;
		text-transform: none;
	}

	.menu-toggle {
		position: relative;
		z-index: 101;
	}

	.home-hero__inner {
		grid-template-columns: 1fr;
	}

	.home-hero__stamp {
		display: none;
	}

	.site-footer__main {
		grid-template-columns: 1.25fr repeat(2, 0.75fr);
	}

	.site-footer__main > :last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 840px) {
	.section-heading,
	.cta-band__inner,
	.archive-intro {
		align-items: start;
		flex-direction: column;
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.intro-grid,
	.content-grid,
	.project-overview,
	.contact-grid {
		grid-template-columns: 1fr;
	}

	.intro-visual {
		max-width: 650px;
	}

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

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

	.process-step:nth-child(3) {
		border-left: 0;
	}

	.projects-grid {
		gap: 45px 24px;
	}

	.aside-card {
		position: static;
	}

	.gallery-item,
	.gallery-item:nth-child(7n + 1),
	.gallery-item:nth-child(7n + 5) {
		grid-column: span 6;
		min-height: 340px;
	}

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

	.site-footer__main > :last-child {
		grid-column: auto;
	}
}

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

@media (max-width: 620px) {
	.container,
	.container--narrow {
		width: min(calc(100% - 28px), var(--container));
	}

	.section {
		padding-block: 76px;
	}

	.topbar__note,
	.topbar__meta a:first-child {
		display: none;
	}

	.topbar__inner {
		justify-content: center;
	}

	.site-header__inner {
		grid-template-columns: 1fr auto;
		gap: 15px;
		min-height: 80px;
	}

	.brand img {
		width: 188px;
		max-height: 64px;
	}

	.header-cta {
		display: none;
	}

	.home-hero {
		min-height: 680px;
	}

	.home-hero::before {
		background: linear-gradient(90deg, rgba(7, 10, 10, 0.89), rgba(7, 10, 10, 0.47)), linear-gradient(0deg, rgba(7, 10, 10, 0.7), transparent);
	}

	.home-hero__inner {
		padding-block: 100px 62px;
	}

	.home-hero h1 {
		font-size: clamp(3.1rem, 16vw, 4.45rem);
	}

	.home-hero__actions,
	.home-hero__actions .button {
		width: 100%;
	}

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

	.trust-stat:nth-child(odd) {
		border-left: 1px solid var(--line);
	}

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

	.intro-visual {
		padding: 0 20px 25px 0;
	}

	.intro-visual img {
		height: 490px;
	}

	.intro-list,
	.service-grid,
	.projects-grid,
	.process-grid,
	.value-grid,
	.service-detail-grid,
	.capability-list,
	.form-grid,
	.site-footer__main,
	.project-brief__inner {
		grid-template-columns: 1fr;
	}

	.service-card {
		min-height: 290px;
	}

	.process-step + .process-step,
	.process-step:nth-child(3) {
		border-left: 0;
		border-top: 0;
	}

	.project-card__content {
		padding-top: 19px;
	}

	.cta-band__inner .button {
		width: 100%;
	}

	.inner-hero {
		min-height: 410px;
		padding-block: 75px 62px;
	}

	.inner-hero.has-image {
		min-height: 620px;
	}

	.project-brief {
		margin-top: -34px;
	}

	.project-brief__item {
		padding: 20px 24px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.gallery-grid {
		gap: 10px;
	}

	.gallery-item,
	.gallery-item:nth-child(7n + 1),
	.gallery-item:nth-child(7n + 5) {
		grid-column: 1 / -1;
		min-height: 300px;
	}

	.lightbox__inner {
		padding: 65px 15px 70px;
	}

	.lightbox__nav {
		top: auto;
		bottom: 12px;
		transform: none;
	}

	.lightbox__caption {
		display: none;
	}

	.site-footer__main {
		gap: 42px;
		padding-block: 65px 50px;
	}

	.site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}
}

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

	.reveal {
		opacity: 1;
		transform: none;
	}
}
