/*
Theme Name: TMF Premium
Theme URI: https://www.tmf-me.com/
Author: The Marble Factory
Description: A bespoke luxury WordPress theme for The Marble Factory, featuring a cinematic landing page, services, materials, project gallery, client showcase and built-in quote form.
Version: 1.0.1
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tmf-premium
Tags: custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

:root {
	--tmf-ink: #0b0b0b;
	--tmf-ink-soft: #171717;
	--tmf-charcoal: #22211f;
	--tmf-stone: #f3efe8;
	--tmf-stone-deep: #e8e0d5;
	--tmf-paper: #fbfaf7;
	--tmf-white: #ffffff;
	--tmf-gold: #c6a369;
	--tmf-gold-light: #dbc28f;
	--tmf-muted: #706b64;
	--tmf-border: rgba(26, 23, 19, 0.14);
	--tmf-border-light: rgba(255, 255, 255, 0.2);
	--tmf-serif: Baskerville, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--tmf-sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
	--tmf-container: 1280px;
	--tmf-gutter: clamp(22px, 4vw, 64px);
	--tmf-section: clamp(88px, 10vw, 160px);
	--tmf-shadow: 0 26px 70px rgba(20, 16, 10, 0.17);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	background: var(--tmf-ink);
}

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

body.menu-open,
body.lightbox-open {
	overflow: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
}

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

button {
	color: inherit;
}

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

.tmf-container {
	width: min(calc(100% - (var(--tmf-gutter) * 2)), var(--tmf-container));
	margin-inline: auto;
}

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

.screen-reader-text:focus {
	clip: auto !important;
	width: auto;
	height: auto;
	left: 16px;
	top: 16px;
	z-index: 99999;
	padding: 12px 18px;
	background: var(--tmf-white);
	color: var(--tmf-ink);
	box-shadow: var(--tmf-shadow);
}

.eyebrow {
	margin: 0 0 18px;
	color: var(--tmf-gold-light);
	font-size: 0.73rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.3;
	text-transform: uppercase;
}

.eyebrow--dark {
	color: #9b7640;
}

.section {
	position: relative;
	padding-block: var(--tmf-section);
	overflow: hidden;
}

.section-title {
	margin: 0;
	font-family: var(--tmf-serif);
	font-size: clamp(2.7rem, 5vw, 5.75rem);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.98;
}

.section-lead {
	font-family: var(--tmf-serif);
	font-size: clamp(1.25rem, 2vw, 1.72rem);
	line-height: 1.45;
}

.section-heading {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.62fr);
	gap: clamp(42px, 8vw, 120px);
	align-items: end;
	margin-bottom: clamp(52px, 7vw, 96px);
}

.section-heading > p {
	max-width: 610px;
	margin: 0;
	color: var(--tmf-muted);
	font-size: 1.05rem;
}

.section-heading--light {
	color: var(--tmf-white);
}

.section-heading--light > p {
	color: rgba(255, 255, 255, 0.68);
}

.button {
	display: inline-flex;
	min-height: 54px;
	padding: 0 25px;
	border: 1px solid transparent;
	align-items: center;
	justify-content: center;
	gap: 18px;
	font-size: 0.71rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1;
	text-transform: uppercase;
	transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.button svg,
.text-link svg,
.project-card__content svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
}

.button:hover,
.button:focus-visible {
	transform: translateY(-2px);
}

.button--gold {
	background: var(--tmf-gold);
	color: var(--tmf-ink);
}

.button--gold:hover,
.button--gold:focus-visible {
	background: var(--tmf-gold-light);
}

.button--outline-light {
	border-color: rgba(255, 255, 255, 0.5);
	background: rgba(0, 0, 0, 0.08);
	color: var(--tmf-white);
	backdrop-filter: blur(7px);
}

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

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

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

.text-link {
	display: inline-flex;
	margin-top: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--tmf-gold);
	align-items: center;
	gap: 22px;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.text-link svg {
	transition: transform 200ms ease;
}

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

/* Header */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	width: 100%;
	border-bottom: 1px solid transparent;
	color: var(--tmf-white);
	transition: background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

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

body:not(.tmf-front-page) .site-header,
.site-header.is-scrolled {
	border-bottom-color: rgba(255, 255, 255, 0.09);
	background: rgba(9, 9, 9, 0.94);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	backdrop-filter: blur(16px);
}

.site-header__inner {
	display: grid;
	min-height: 92px;
	grid-template-columns: 190px 1fr auto;
	gap: clamp(24px, 4vw, 58px);
	align-items: center;
}

.site-brand {
	display: inline-flex;
	width: 178px;
	align-items: center;
}

.tmf-brand-logo {
	width: 100%;
	height: auto;
}

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

.tmf-nav-list {
	display: flex;
	margin: 0;
	padding: 0;
	align-items: center;
	gap: clamp(18px, 2vw, 35px);
	list-style: none;
}

.tmf-nav-list a {
	position: relative;
	display: block;
	padding: 35px 0 31px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tmf-nav-list a::after {
	position: absolute;
	bottom: 22px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--tmf-gold);
	content: "";
	transition: width 220ms ease;
}

.tmf-nav-list a:hover::after,
.tmf-nav-list a:focus-visible::after,
.tmf-nav-list .current-menu-item > a::after {
	width: 100%;
}

.header-quote {
	display: inline-flex;
	min-height: 43px;
	padding: 0 18px;
	border: 1px solid rgba(198, 163, 105, 0.72);
	align-items: center;
	justify-content: center;
	color: var(--tmf-gold-light);
	font-size: 0.67rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: background 200ms ease, color 200ms ease;
}

.header-quote:hover,
.header-quote:focus-visible {
	background: var(--tmf-gold);
	color: var(--tmf-ink);
}

.menu-toggle {
	display: none;
	padding: 10px 0;
	border: 0;
	background: transparent;
	align-items: center;
	gap: 12px;
	color: var(--tmf-white);
	cursor: pointer;
}

.menu-toggle__label {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.menu-toggle__lines {
	display: grid;
	width: 28px;
	gap: 5px;
}

.menu-toggle__lines i {
	display: block;
	width: 100%;
	height: 1px;
	background: currentColor;
	transition: transform 200ms ease, opacity 200ms ease;
}

.menu-open .menu-toggle__lines i:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle__lines i:nth-child(2) {
	opacity: 0;
}

.menu-open .menu-toggle__lines i:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
	position: relative;
	min-height: clamp(720px, 100svh, 980px);
	background: var(--tmf-ink);
	color: var(--tmf-white);
	overflow: hidden;
}

.hero__slides,
.hero-slide,
.hero-slide__shade {
	position: absolute;
	inset: 0;
}

.hero-slide {
	z-index: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 900ms ease, visibility 900ms ease;
}

.hero-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
}

.hero-slide__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.035);
	transition: transform 9s linear;
}

.hero-slide.is-active .hero-slide__image {
	transform: scale(1.1);
}

.hero-slide__shade {
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.68) 36%, rgba(0, 0, 0, 0.2) 72%, rgba(0, 0, 0, 0.22) 100%),
		linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, transparent 45%);
}

.hero-slide__content {
	position: relative;
	z-index: 3;
	display: flex;
	min-height: clamp(720px, 100svh, 980px);
	padding-top: 150px;
	padding-bottom: 130px;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}

.hero-slide__content h1 {
	max-width: 850px;
	margin: 0;
	font-family: var(--tmf-serif);
	font-size: clamp(3.8rem, 7.4vw, 8.5rem);
	font-weight: 400;
	letter-spacing: -0.055em;
	line-height: 0.86;
	text-wrap: balance;
}

.hero-slide__summary {
	max-width: 650px;
	margin: 32px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(1.02rem, 1.4vw, 1.25rem);
	line-height: 1.7;
}

.hero-slide__actions {
	display: flex;
	margin-top: 38px;
	flex-wrap: wrap;
	gap: 12px;
}

.hero__controls {
	position: absolute;
	z-index: 6;
	right: 0;
	bottom: 44px;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
	pointer-events: none;
}

.hero-arrow,
.hero-dot {
	pointer-events: auto;
}

.hero-arrow {
	display: grid;
	width: 43px;
	height: 43px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(0, 0, 0, 0.18);
	place-items: center;
	color: var(--tmf-white);
	cursor: pointer;
	transition: background 200ms ease, border-color 200ms ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
	border-color: var(--tmf-gold);
	background: var(--tmf-gold);
	color: var(--tmf-ink);
}

.hero-arrow svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
}

.hero-dots {
	display: flex;
	gap: 4px;
}

.hero-dot {
	position: relative;
	width: 44px;
	height: 43px;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.64rem;
	cursor: pointer;
}

.hero-dot::before {
	position: absolute;
	right: 7px;
	bottom: 4px;
	left: 7px;
	height: 1px;
	background: rgba(255, 255, 255, 0.28);
	content: "";
}

.hero-dot::after {
	position: absolute;
	bottom: 4px;
	left: 7px;
	width: 0;
	height: 1px;
	background: var(--tmf-gold);
	content: "";
	transition: width 400ms ease;
}

.hero-dot.is-active {
	color: var(--tmf-white);
}

.hero-dot.is-active::after {
	width: calc(100% - 14px);
}

.hero__scroll {
	position: absolute;
	z-index: 6;
	bottom: 38px;
	left: max(var(--tmf-gutter), calc((100vw - var(--tmf-container)) / 2));
	display: flex;
	align-items: center;
	gap: 14px;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.61rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hero__scroll i {
	position: relative;
	display: block;
	width: 1px;
	height: 42px;
	background: rgba(255, 255, 255, 0.25);
	overflow: hidden;
}

.hero__scroll i::after {
	position: absolute;
	top: -100%;
	left: 0;
	width: 1px;
	height: 70%;
	background: var(--tmf-gold);
	content: "";
	animation: tmf-scroll-line 2.2s ease-in-out infinite;
}

@keyframes tmf-scroll-line {
	0% { transform: translateY(0); }
	100% { transform: translateY(285%); }
}

/* Capability strip */
.capability-strip {
	position: relative;
	z-index: 8;
	border-bottom: 1px solid var(--tmf-border);
	background: var(--tmf-paper);
}

.capability-strip__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.capability {
	display: grid;
	min-height: 170px;
	padding: 38px clamp(18px, 2.2vw, 36px);
	grid-template-columns: 48px 1fr;
	gap: 20px;
	align-items: center;
	border-right: 1px solid var(--tmf-border);
}

.capability:first-child {
	border-left: 1px solid var(--tmf-border);
}

.capability__icon {
	align-self: start;
	color: var(--tmf-ink);
}

.capability__icon svg {
	width: 42px;
	height: 42px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.25;
}

.capability h2 {
	margin: 0 0 7px;
	font-family: var(--tmf-serif);
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.15;
}

.capability p {
	margin: 0;
	color: var(--tmf-muted);
	font-size: 0.8rem;
	line-height: 1.55;
}

/* About */
.section--about {
	background:
		linear-gradient(rgba(251, 250, 247, 0.93), rgba(251, 250, 247, 0.93)),
		url("assets/images/light-marble-texture.jpg") center / cover fixed;
}

.about-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1.22fr);
	gap: clamp(70px, 10vw, 150px);
	align-items: center;
}

.about-copy > p:not(.eyebrow) {
	max-width: 590px;
	color: var(--tmf-muted);
}

.about-copy .section-lead {
	margin: 42px 0 25px;
	color: var(--tmf-ink);
}

.about-visual {
	position: relative;
	min-height: 710px;
}

.about-visual__image {
	position: absolute;
	inset: 0 12% 0 0;
	overflow: hidden;
	box-shadow: var(--tmf-shadow);
}

.about-visual__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 800ms ease;
}

.about-visual:hover .about-visual__image img {
	transform: scale(1.025);
}

.about-visual__card {
	position: absolute;
	right: 0;
	bottom: 62px;
	z-index: 2;
	width: min(355px, 53%);
	padding: clamp(34px, 4vw, 56px);
	background:
		linear-gradient(rgba(12, 12, 12, 0.92), rgba(12, 12, 12, 0.92)),
		url("assets/images/dark-marble-texture.jpg") center / cover;
	box-shadow: var(--tmf-shadow);
	color: var(--tmf-white);
}

.about-visual__card img {
	width: 62px;
	margin-bottom: 28px;
}

.about-visual__card strong,
.about-visual__card span {
	display: block;
	font-family: var(--tmf-serif);
}

.about-visual__card strong {
	color: var(--tmf-gold-light);
	font-size: clamp(2rem, 3vw, 3.25rem);
	font-weight: 400;
	line-height: 1;
}

.about-visual__card span {
	margin-top: 8px;
	font-size: 1.3rem;
	line-height: 1.25;
}

.about-visual__card p {
	margin: 26px 0 0;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.84rem;
}

/* Services */
.section--services {
	background: var(--tmf-ink);
	color: var(--tmf-white);
}

.section--services::before {
	position: absolute;
	top: -170px;
	right: -170px;
	width: 560px;
	height: 560px;
	border: 1px solid rgba(198, 163, 105, 0.08);
	border-radius: 50%;
	content: "";
}

.service-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2.4vw, 36px);
}

.service-card {
	position: relative;
	background: #131313;
	overflow: hidden;
}

.service-card__image {
	position: relative;
	aspect-ratio: 4 / 4.6;
	overflow: hidden;
}

.service-card__image::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent 50%);
	content: "";
}

.service-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.82);
	transition: transform 700ms ease, filter 500ms ease;
}

.service-card:hover .service-card__image img {
	transform: scale(1.05);
	filter: saturate(1);
}

.service-card__image > span {
	position: absolute;
	right: 25px;
	bottom: 18px;
	z-index: 2;
	color: rgba(255, 255, 255, 0.72);
	font-family: var(--tmf-serif);
	font-size: 2.1rem;
}

.service-card__body {
	padding: clamp(30px, 3.2vw, 48px);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-top: 0;
}

.service-card h3 {
	margin: 0;
	font-family: var(--tmf-serif);
	font-size: clamp(2rem, 3vw, 3.1rem);
	font-weight: 400;
	line-height: 1;
}

.service-card__body > p {
	min-height: 106px;
	margin: 22px 0 26px;
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.94rem;
}

.service-card ul {
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	list-style: none;
}

.service-card li {
	position: relative;
	padding: 14px 0 14px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.76rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.service-card li::before {
	position: absolute;
	top: 22px;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--tmf-gold);
	content: "";
}

/* Process */
.section--process {
	background: var(--tmf-paper);
}

.process-grid {
	display: grid;
	margin: 0;
	padding: 0;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--tmf-border);
	border-bottom: 1px solid var(--tmf-border);
	list-style: none;
}

.process-step {
	position: relative;
	min-height: 340px;
	padding: 46px clamp(24px, 3vw, 44px);
	border-right: 1px solid var(--tmf-border);
}

.process-step:first-child {
	border-left: 1px solid var(--tmf-border);
}

.process-step > span {
	display: block;
	margin-bottom: 68px;
	color: #9b7640;
	font-family: var(--tmf-serif);
	font-size: 1.25rem;
}

.process-step h3 {
	margin: 0 0 16px;
	font-family: var(--tmf-serif);
	font-size: 1.8rem;
	font-weight: 500;
	line-height: 1.1;
}

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

.process-step::after {
	position: absolute;
	right: -5px;
	top: 50px;
	z-index: 2;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--tmf-gold);
	content: "";
}

.process-step:last-child::after {
	display: none;
}

/* Materials */
.section--materials {
	isolation: isolate;
	background: var(--tmf-ink);
	color: var(--tmf-white);
}

.section--materials__texture {
	position: absolute;
	z-index: -2;
	inset: 0;
	background: url("assets/images/dark-marble-texture.jpg") center / cover;
	filter: contrast(1.12);
}

.section--materials::after {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(100deg, rgba(4, 4, 4, 0.97) 0%, rgba(4, 4, 4, 0.84) 55%, rgba(4, 4, 4, 0.72) 100%);
	content: "";
}

.materials-layout {
	display: grid;
	grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1.28fr);
	gap: clamp(60px, 10vw, 150px);
	align-items: start;
}

.materials-intro {
	position: sticky;
	top: 145px;
}

.materials-intro > p:not(.eyebrow) {
	max-width: 510px;
	margin: 35px 0;
	color: rgba(255, 255, 255, 0.64);
}

.materials-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--tmf-border-light);
	border-left: 1px solid var(--tmf-border-light);
}

.material-card {
	min-height: 285px;
	padding: clamp(30px, 4vw, 55px);
	border-right: 1px solid var(--tmf-border-light);
	border-bottom: 1px solid var(--tmf-border-light);
	background: rgba(255, 255, 255, 0.015);
	transition: background 250ms ease;
}

.material-card:hover {
	background: rgba(198, 163, 105, 0.08);
}

.material-card > span {
	color: var(--tmf-gold);
	font-family: var(--tmf-serif);
	font-size: 0.92rem;
}

.material-card h3 {
	margin: 38px 0 13px;
	font-family: var(--tmf-serif);
	font-size: 2.45rem;
	font-weight: 400;
	line-height: 1;
}

.material-card p {
	margin: 0;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.88rem;
}

/* Projects */
.section--projects {
	background: var(--tmf-paper);
}

.project-grid {
	display: grid;
	grid-auto-flow: dense;
	grid-auto-rows: 235px;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 12px;
}

.project-card {
	position: relative;
	min-height: 235px;
	padding: 0;
	border: 0;
	background: var(--tmf-charcoal);
	color: var(--tmf-white);
	cursor: zoom-in;
	overflow: hidden;
	text-align: left;
}

.project-card--1 { grid-column: span 5; grid-row: span 2; }
.project-card--2 { grid-column: span 7; grid-row: span 1; }
.project-card--3 { grid-column: span 4; grid-row: span 1; }
.project-card--4 { grid-column: span 3; grid-row: span 1; }
.project-card--5 { grid-column: span 5; grid-row: span 1; }

.project-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 750ms ease, filter 500ms ease;
}

.project-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 58%);
	transition: background 350ms ease;
}

.project-card__content {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: grid;
	padding: clamp(22px, 3vw, 38px);
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 5px 20px;
}

.project-card__content small {
	grid-column: 1;
	color: var(--tmf-gold-light);
	font-size: 0.63rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.project-card__content strong {
	grid-column: 1;
	font-family: var(--tmf-serif);
	font-size: clamp(1.45rem, 2.2vw, 2.5rem);
	font-weight: 400;
	line-height: 1.05;
}

.project-card__content i {
	display: grid;
	width: 44px;
	height: 44px;
	grid-column: 2;
	grid-row: 1 / span 2;
	border: 1px solid rgba(255, 255, 255, 0.38);
	place-items: center;
	font-style: normal;
}

.project-card:hover img,
.project-card:focus-visible img {
	transform: scale(1.055);
	filter: saturate(1.08);
}

.project-card:hover .project-card__overlay,
.project-card:focus-visible .project-card__overlay {
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.06) 75%);
}

/* Clients */
.section--clients {
	padding-block: clamp(80px, 8vw, 125px);
	background: var(--tmf-ink);
	color: var(--tmf-white);
}

.clients-heading {
	display: grid;
	margin-bottom: 64px;
	grid-template-columns: 0.42fr 1fr 0.75fr;
	gap: 50px;
	align-items: end;
}

.clients-heading .eyebrow {
	margin: 0;
}

.clients-heading .section-title {
	font-size: clamp(2.5rem, 4vw, 4.8rem);
}

.clients-heading > p:last-child {
	margin: 0;
	color: rgba(255, 255, 255, 0.58);
	font-size: 0.9rem;
}

.client-marquee {
	position: relative;
	display: flex;
	width: 100%;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

.client-marquee::before,
.client-marquee::after {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 2;
	width: 12vw;
	content: "";
	pointer-events: none;
}

.client-marquee::before {
	left: 0;
	background: linear-gradient(90deg, var(--tmf-ink), transparent);
}

.client-marquee::after {
	right: 0;
	background: linear-gradient(-90deg, var(--tmf-ink), transparent);
}

.client-marquee__track {
	display: flex;
	width: max-content;
	animation: tmf-marquee 75s linear infinite;
}

.client-marquee__group {
	display: flex;
	flex-shrink: 0;
	align-items: center;
}

.client-marquee__group span {
	position: relative;
	display: inline-flex;
	min-height: 104px;
	padding: 0 35px;
	align-items: center;
	color: rgba(255, 255, 255, 0.72);
	font-family: var(--tmf-serif);
	font-size: 1.15rem;
	white-space: nowrap;
}

.client-marquee__group span::after {
	position: absolute;
	right: -3px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tmf-gold);
	content: "";
}

@keyframes tmf-marquee {
	to { transform: translateX(-50%); }
}

/* Principles */
.section--principles {
	padding: 0;
	background: var(--tmf-stone);
}

.principles-grid {
	display: grid;
	width: 100%;
	max-width: none;
	grid-template-columns: 1fr 1fr;
}

.principle-card {
	position: relative;
	min-height: 590px;
	padding: clamp(65px, 8vw, 130px);
	overflow: hidden;
}

.principle-card > span {
	position: absolute;
	top: 45px;
	right: 55px;
	font-family: var(--tmf-serif);
	font-size: 1rem;
}

.principle-card h2 {
	max-width: 740px;
	margin: 0;
	font-family: var(--tmf-serif);
	font-size: clamp(2.3rem, 4vw, 5rem);
	font-weight: 400;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.principle-card--vision {
	background:
		linear-gradient(rgba(11, 11, 11, 0.88), rgba(11, 11, 11, 0.88)),
		url("assets/images/project-black-marble-stair.jpg") center / cover;
	color: var(--tmf-white);
}

.principle-card--vision > span {
	color: var(--tmf-gold);
}

.principle-card--mission {
	background:
		linear-gradient(rgba(243, 239, 232, 0.91), rgba(243, 239, 232, 0.91)),
		url("assets/images/light-marble-texture.jpg") center / cover;
	color: var(--tmf-ink);
}

.principle-card--mission > span {
	color: #9b7640;
}

/* Contact */
.section--contact {
	background: var(--tmf-stone);
}

.section--contact::before {
	position: absolute;
	right: -10%;
	bottom: -25%;
	width: 55%;
	height: 80%;
	background: url("assets/images/light-marble-texture.jpg") center / cover;
	content: "";
	opacity: 0.45;
	clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.contact-grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1fr);
	gap: clamp(70px, 10vw, 150px);
	align-items: start;
}

.contact-copy .section-lead {
	max-width: 590px;
	margin: 40px 0 50px;
	color: var(--tmf-muted);
}

.contact-details {
	display: grid;
	border-top: 1px solid var(--tmf-border);
}

.contact-details a {
	display: grid;
	min-height: 92px;
	padding: 18px 0;
	grid-template-columns: 48px 1fr;
	grid-template-rows: auto auto;
	column-gap: 18px;
	align-items: center;
	border-bottom: 1px solid var(--tmf-border);
	transition: padding-left 200ms ease;
}

.contact-details a:hover,
.contact-details a:focus-visible {
	padding-left: 8px;
}

.contact-details a > span {
	display: grid;
	width: 43px;
	height: 43px;
	grid-row: 1 / span 2;
	border: 1px solid var(--tmf-border);
	place-items: center;
	color: #9b7640;
}

.contact-details svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
}

.contact-details small {
	align-self: end;
	color: var(--tmf-muted);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.contact-details strong {
	align-self: start;
	font-family: var(--tmf-serif);
	font-size: 1.15rem;
	font-weight: 500;
	line-height: 1.3;
}

.quote-panel {
	position: relative;
	z-index: 2;
	padding: clamp(34px, 5vw, 70px);
	background: var(--tmf-white);
	box-shadow: var(--tmf-shadow);
}

.quote-panel__top {
	display: flex;
	margin-bottom: 42px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--tmf-border);
	align-items: center;
	justify-content: space-between;
	gap: 25px;
}

.quote-panel__top span {
	color: #9b7640;
	font-size: 0.67rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.quote-panel__top strong {
	font-family: var(--tmf-serif);
	font-size: 1.12rem;
	font-weight: 500;
}

.quote-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 26px 20px;
}

.field {
	display: grid;
	gap: 9px;
}

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

.field > span {
	color: #5e5a54;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	border: 0;
	border-bottom: 1px solid #bfb8ad;
	border-radius: 0;
	outline: 0;
	background: transparent;
	color: var(--tmf-ink);
	transition: border-color 180ms ease;
}

.field input,
.field select {
	height: 49px;
}

.field textarea {
	min-height: 125px;
	padding: 12px 0;
	resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	border-color: var(--tmf-gold);
}

.field textarea::placeholder {
	color: #aaa39a;
}

.quote-form .button {
	margin-top: 10px;
	border: 0;
	cursor: pointer;
}

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

.form-notice {
	margin: -18px 0 28px;
	padding: 14px 16px;
	border-left: 3px solid;
	font-size: 0.88rem;
}

.form-notice--success {
	border-color: #508566;
	background: #eef6f0;
	color: #315941;
}

.form-notice--error {
	border-color: #a4584f;
	background: #f9efed;
	color: #783e37;
}

/* Footer */
.site-footer {
	background: var(--tmf-ink);
	color: var(--tmf-white);
}

.site-footer__main {
	display: grid;
	padding-block: 82px 70px;
	grid-template-columns: 1.5fr 0.75fr 1fr 0.85fr;
	gap: clamp(38px, 6vw, 95px);
}

.site-footer__brand .tmf-brand-logo {
	width: 210px;
}

.site-footer__brand p {
	max-width: 310px;
	margin: 27px 0 0;
	color: rgba(255, 255, 255, 0.52);
	font-family: var(--tmf-serif);
	font-size: 1.08rem;
}

.site-footer h2 {
	margin: 0 0 22px;
	color: var(--tmf-gold-light);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.site-footer ul,
.site-footer .tmf-nav-list,
.footer-nav {
	display: grid;
	margin: 0;
	padding: 0;
	gap: 10px;
	list-style: none;
}

.site-footer li,
.site-footer li a,
.site-footer .tmf-nav-list a,
.site-footer .footer-nav a {
	padding: 0;
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.82rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.55;
	text-transform: none;
}

.site-footer .tmf-nav-list a::after {
	display: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--tmf-gold-light);
}

.site-footer__bottom {
	display: flex;
	min-height: 78px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	color: rgba(255, 255, 255, 0.4);
	font-size: 0.7rem;
	letter-spacing: 0.04em;
}

.site-footer__bottom p {
	margin: 0;
}

/* Lightbox */
.lightbox {
	position: fixed;
	z-index: 5000;
	inset: 0;
	display: grid;
	padding: clamp(20px, 5vw, 70px);
	background: rgba(0, 0, 0, 0.94);
	place-items: center;
}

.lightbox[hidden] {
	display: none;
}

.lightbox__stage {
	display: grid;
	max-width: min(1280px, 90vw);
	max-height: 88vh;
	place-items: center;
}

.lightbox__stage img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
}

.lightbox__stage p {
	margin: 16px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-family: var(--tmf-serif);
	font-size: 1.2rem;
}

.lightbox__close {
	position: absolute;
	top: 25px;
	right: 30px;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: transparent;
	color: var(--tmf-white);
	font-family: var(--tmf-serif);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

/* Inner content */
.content-shell,
.error-page {
	min-height: 70vh;
	padding-top: 190px;
	padding-bottom: 120px;
}

.content-shell__header {
	max-width: 900px;
	margin-bottom: 65px;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--tmf-border);
}

.content-shell__header h1,
.error-page h1 {
	margin: 0;
	font-family: var(--tmf-serif);
	font-size: clamp(3rem, 6vw, 6.5rem);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.98;
}

.entry-content {
	max-width: 900px;
	margin-inline: auto;
}

.entry-content > *:not(.content-shell__header):not(.entry-featured) {
	max-width: 760px;
	margin-inline: auto;
}

.entry-featured {
	margin-bottom: 55px;
}

.entry-content h2,
.entry-content h3 {
	font-family: var(--tmf-serif);
	font-weight: 500;
	line-height: 1.15;
}

.entry-content h2 { font-size: 2.4rem; }
.entry-content h3 { font-size: 1.7rem; }

.post-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 50px 32px;
}

.post-card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.post-card__meta {
	margin: 20px 0 8px;
	color: #9b7640;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.post-card h2 {
	margin: 0;
	font-family: var(--tmf-serif);
	font-size: 2rem;
	font-weight: 500;
}

.error-page {
	display: flex;
	max-width: 840px;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}

.error-page > img {
	width: 100px;
	margin-bottom: 40px;
}

.error-page > p:not(.eyebrow) {
	max-width: 620px;
	margin: 28px 0;
	color: var(--tmf-muted);
}

/* Reveal animation */
.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 750ms ease, transform 750ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.js .reveal.reveal--delay {
	transition-delay: 120ms;
}

.js .reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

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

/* Responsive */
@media (max-width: 1180px) {
	.site-header__inner {
		grid-template-columns: 170px 1fr auto;
		gap: 22px;
	}

	.site-brand {
		width: 160px;
	}

	.tmf-nav-list {
		gap: 18px;
	}

	.header-quote {
		display: none;
	}

	.capability-strip__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.capability:nth-child(4) {
		border-left: 1px solid var(--tmf-border);
	}

	.capability:nth-child(n+4) {
		border-top: 1px solid var(--tmf-border);
	}

	.about-grid,
	.contact-grid {
		grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr);
		gap: 60px;
	}

	.service-card__body > p {
		min-height: 130px;
	}

	.process-step {
		padding-inline: 25px;
	}

	.site-footer__main {
		grid-template-columns: 1.3fr repeat(3, 1fr);
		gap: 40px;
	}
}

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

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

	.site-brand {
		width: 155px;
	}

	.menu-toggle {
		display: inline-flex;
		justify-self: end;
	}

	.site-brand,
	.menu-toggle {
		position: relative;
		z-index: 2;
	}

	.primary-navigation {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 1;
		display: flex;
		width: min(440px, 100%);
		padding: 130px 48px 60px;
		background: rgba(8, 8, 8, 0.985);
		align-items: flex-start;
		justify-content: flex-start;
		opacity: 0;
		visibility: hidden;
		transform: translateX(100%);
		transition: transform 300ms ease, opacity 250ms ease, visibility 300ms ease;
	}

	.menu-open .primary-navigation {
		opacity: 1;
		visibility: visible;
		transform: translateX(0);
	}

	.primary-navigation .tmf-nav-list {
		display: grid;
		width: 100%;
		gap: 0;
	}

	.primary-navigation .tmf-nav-list a {
		padding: 18px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		font-family: var(--tmf-serif);
		font-size: 1.65rem;
		font-weight: 400;
		letter-spacing: 0;
		text-transform: none;
	}

	.primary-navigation .tmf-nav-list a::after {
		display: none;
	}

	.hero-slide__content h1 {
		max-width: 700px;
	}

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

	.capability:nth-child(odd) {
		border-left: 1px solid var(--tmf-border);
	}

	.capability:nth-child(n+3) {
		border-top: 1px solid var(--tmf-border);
	}

	.about-grid,
	.contact-grid,
	.materials-layout {
		grid-template-columns: 1fr;
	}

	.about-copy {
		max-width: 720px;
	}

	.about-visual {
		min-height: 760px;
	}

	.service-list {
		grid-template-columns: 1fr;
	}

	.service-card {
		display: grid;
		grid-template-columns: minmax(300px, 0.9fr) 1fr;
	}

	.service-card__image {
		aspect-ratio: auto;
	}

	.service-card__body {
		border-top: 1px solid rgba(255, 255, 255, 0.09);
	}

	.service-card__body > p {
		min-height: auto;
	}

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

	.process-step:nth-child(2)::after {
		display: none;
	}

	.process-step:nth-child(n+3) {
		border-top: 1px solid var(--tmf-border);
	}

	.materials-intro {
		position: static;
		max-width: 700px;
	}

	.project-grid {
		grid-auto-rows: 300px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.project-card,
	.project-card--1,
	.project-card--2,
	.project-card--3,
	.project-card--4,
	.project-card--5 {
		grid-column: span 1;
		grid-row: span 1;
	}

	.project-card:nth-child(1),
	.project-card:nth-child(6) {
		grid-row: span 2;
	}

	.clients-heading {
		grid-template-columns: 1fr 2fr;
	}

	.clients-heading > p:last-child {
		grid-column: 2;
	}

	.principles-grid {
		grid-template-columns: 1fr;
	}

	.principle-card {
		min-height: 500px;
	}

	.contact-copy {
		max-width: 720px;
	}

	.site-footer__main {
		grid-template-columns: 1.4fr 1fr 1fr;
	}

	.site-footer__column:last-child {
		grid-column: 2;
	}
}

@media (max-width: 720px) {
	:root {
		--tmf-gutter: 20px;
		--tmf-section: 88px;
	}

	.admin-bar .site-header {
		top: 0;
	}

	#wpadminbar {
		display: none;
	}

	.section-heading {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.site-header__inner {
		min-height: 72px;
	}

	.site-brand {
		width: 142px;
	}

	.primary-navigation {
		padding: 110px 28px 40px;
	}

	.hero {
		min-height: 780px;
	}

	.hero-slide__content {
		min-height: 780px;
		padding-top: 125px;
		padding-bottom: 150px;
	}

	.hero-slide__content h1 {
		font-size: clamp(3.3rem, 16vw, 5.3rem);
		line-height: 0.92;
	}

	.hero-slide__summary {
		margin-top: 24px;
		font-size: 0.95rem;
	}

	.hero-slide__actions {
		display: grid;
		width: 100%;
		max-width: 330px;
	}

	.hero__controls {
		bottom: 42px;
		justify-content: flex-end;
	}

	.hero__scroll {
		display: none;
	}

	.hero-dot {
		width: 34px;
	}

	.capability-strip__grid {
		width: 100%;
		grid-template-columns: 1fr;
	}

	.capability,
	.capability:first-child,
	.capability:nth-child(odd),
	.capability:nth-child(4) {
		min-height: 130px;
		border-right: 0;
		border-left: 0;
		border-top: 1px solid var(--tmf-border);
	}

	.capability:first-child {
		border-top: 0;
	}

	.about-visual {
		min-height: 600px;
	}

	.about-visual__image {
		inset: 0 0 90px 0;
	}

	.about-visual__card {
		right: 0;
		bottom: 0;
		width: 78%;
	}

	.service-card {
		display: block;
	}

	.service-card__image {
		aspect-ratio: 4 / 3;
	}

	.process-grid,
	.materials-grid,
	.project-grid,
	.quote-form,
	.post-list {
		grid-template-columns: 1fr;
	}

	.process-step,
	.process-step:first-child {
		min-height: 280px;
		border-right: 1px solid var(--tmf-border);
		border-left: 1px solid var(--tmf-border);
		border-top: 1px solid var(--tmf-border);
	}

	.process-step:first-child {
		border-top: 0;
	}

	.process-step::after {
		display: none;
	}

	.process-step > span {
		margin-bottom: 38px;
	}

	.project-grid {
		grid-auto-rows: 360px;
	}

	.project-card:nth-child(1),
	.project-card:nth-child(6) {
		grid-row: span 1;
	}

	.clients-heading {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.clients-heading > p:last-child {
		grid-column: 1;
	}

	.principle-card {
		min-height: 470px;
		padding: 70px 28px;
	}

	.principle-card > span {
		top: 28px;
		right: 28px;
	}

	.quote-panel {
		padding: 30px 22px;
	}

	.quote-panel__top {
		display: grid;
	}

	.field--full {
		grid-column: auto;
	}

	.site-footer__main {
		grid-template-columns: 1fr 1fr;
		padding-block: 65px 55px;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}

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

	.site-footer__bottom {
		padding-block: 22px;
		flex-direction: column;
		align-items: flex-start;
	}

	.content-shell,
	.error-page {
		padding-top: 145px;
	}
}

@media (max-width: 480px) {
	.menu-toggle__label {
		display: none;
	}

	.hero-arrow {
		display: none;
	}

	.about-visual__card {
		width: 88%;
		padding: 30px;
	}

	.service-card__body {
		padding: 28px 22px;
	}

	.material-card {
		min-height: 245px;
	}

	.project-grid {
		grid-auto-rows: 300px;
	}

	.project-card__content i {
		display: none;
	}

	.site-footer__main {
		grid-template-columns: 1fr;
	}

	.site-footer__brand,
	.site-footer__column:last-child {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}

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