/* =========================================================================
   ATELIER STRUCTURA — Main Stylesheet
   Design: editorial, structural, asymmetric grid, warm stone + brass accent.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
	--ink: #15130F;
	--ink-soft: #3A362D;
	--stone: #EDE8DE;
	--stone-dark: #DCD4C2;
	--paper: #FBF9F4;
	--white: #FFFFFF;
	--accent: #9C7A4E;
	--accent-dark: #7C5F3A;
	--line: rgba(21, 19, 15, 0.14);
	--line-soft: rgba(21, 19, 15, 0.08);

	--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--container-w: 1360px;
	--gutter: clamp(20px, 4vw, 64px);
	--section-space: clamp(64px, 10vw, 140px);

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
input, textarea { font: inherit; color: inherit; }

.container {
	max-width: var(--container-w);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link.screen-reader-text:focus {
	position: fixed;
	top: 10px; left: 10px;
	width: auto; height: auto;
	background: var(--ink);
	color: var(--paper);
	padding: 12px 20px;
	z-index: 9999;
	border-radius: 2px;
}

/* Focus visibility for keyboard users everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

/* ---------- Typography ---------- */
h1, h2, h3, .font-display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.eyebrow {
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--accent-dark);
	margin-bottom: 14px;
	letter-spacing: 0.02em;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	font-size: 0.95rem;
	font-weight: 500;
	border: 1px solid transparent;
	border-radius: 2px;
	transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent-dark); }
.btn--outline { border-color: var(--ink); color: var(--ink); padding: 10px 22px; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn--underline {
	padding: 0; border: 0;
	border-bottom: 1px solid var(--ink);
	border-radius: 0;
	padding-bottom: 4px;
}
.btn--underline:hover { border-color: var(--accent); color: var(--accent-dark); }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 200;
	background: transparent;
	transition: background-color .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
	background: rgba(251, 249, 244, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 84px;
}
.is-scrolled .site-header__inner { height: 72px; }
.site-header__logo-text {
	font-family: var(--font-display);
	font-size: 1.25rem;
	color: var(--ink);
}
.site-header.is-scrolled .site-header__logo-text,
.site-header.is-scrolled .menu-link,
.site-header.is-scrolled .menu-toggle__bar { color: var(--ink); }
.has-dark-hero .site-header:not(.is-scrolled):not(.is-menu-open) .site-header__logo-text,
.has-dark-hero .site-header:not(.is-scrolled):not(.is-menu-open) .menu-link { color: #fff; }
.has-dark-hero .site-header:not(.is-scrolled):not(.is-menu-open) .menu-toggle__bar { background: #fff; }
.site-header.is-scrolled .menu-toggle__bar, .site-header.is-menu-open .menu-toggle__bar { background: var(--ink); }

.site-header__nav { display: none; }
@media (min-width: 960px) { .site-header__nav { display: block; } }

.nav-menu { display: flex; gap: 40px; }
.menu-link {
	position: relative;
	font-size: 0.92rem;
	font-weight: 500;
	padding: 4px 0;
}
.menu-link::after {
	content: '';
	position: absolute;
	left: 0; bottom: -2px;
	height: 1px; width: 0;
	background: currentColor;
	transition: width .35s var(--ease);
}
.menu-link:hover::after, .is-current .menu-link::after { width: 100%; }

.site-header__actions { display: flex; align-items: center; gap: 20px; }
.site-header__cta { display: none; }
@media (min-width: 960px) {
	.site-header__cta { display: inline-flex; }
	.has-dark-hero .site-header:not(.is-scrolled):not(.is-menu-open) .site-header__cta { border-color: rgba(255,255,255,0.6); color: #fff; }
	.has-dark-hero .site-header:not(.is-scrolled):not(.is-menu-open) .site-header__cta:hover { background: #fff; color: var(--ink); border-color: #fff; }
}

.menu-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 32px; height: 32px;
}
@media (min-width: 960px) {
	.menu-toggle { display: none; }
}
.menu-toggle__bar {
	display: block;
	width: 100%; height: 1.5px;
	background: var(--ink);
	transition: transform .35s var(--ease), opacity .35s var(--ease), background-color .35s var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu-toggle[aria-expanded="true"] { position: relative; z-index: 200; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar { background: var(--ink) !important; }

.mobile-menu {
	position: fixed;
	inset: 0;
	background: var(--stone);
	z-index: 150;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--gutter);
	visibility: hidden;
	opacity: 0;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; }
.mobile-menu__list { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu__list .menu-link {
	font-family: var(--font-display);
	font-size: clamp(2rem, 8vw, 3.2rem);
	font-weight: 500;
}
.mobile-menu__footer { margin-top: 48px; display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
	position: relative;
	height: 100svh;
	min-height: 560px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	color: #fff;
}
.hero__media { position: absolute; inset: 0; }
.hero__image, .hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(10,9,7,0.35) 0%, rgba(10,9,7,0.15) 40%, rgba(10,9,7,0.75) 100%);
}
.hero__content { position: relative; padding-bottom: clamp(60px, 8vw, 110px); }
.hero__headline {
	font-size: clamp(2.6rem, 7.2vw, 6.2rem);
	line-height: 1.02;
	font-weight: 500;
	max-width: 16ch;
}
.hero__line { display: block; overflow: hidden; }
.hero__line-inner { display: inline-block; will-change: transform; }
.hero__foot { margin-top: 32px; max-width: 640px; }
.hero__subtext { font-size: 1.05rem; opacity: 0.92; margin-bottom: 28px; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll {
	position: absolute; bottom: 28px; left: var(--gutter);
	display: flex; align-items: center; gap: 10px;
	color: #fff; font-size: 0.75rem; letter-spacing: 0.06em;
}
.hero__scroll-line { width: 1px; height: 40px; background: rgba(255,255,255,0.5); position: relative; overflow: hidden; }
.hero__scroll-line::after {
	content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
	background: #fff; animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { to { top: 100%; } }

/* =========================================================================
   INTRO / ABOUT-THE-STUDIO SECTION
   ========================================================================= */
.intro { padding-block: var(--section-space); }
.intro__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	align-items: center;
}
@media (min-width: 900px) {
	.intro__grid { grid-template-columns: 1fr 0.9fr; gap: 80px; }
}
.intro__heading { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.15; max-width: 16ch; margin-bottom: 24px; }
.intro__desc { max-width: 48ch; color: var(--ink-soft); margin-bottom: 32px; }
.intro__media { overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.intro__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

/* =========================================================================
   SERVICES
   ========================================================================= */
.services { padding-block: var(--section-space); border-top: 1px solid var(--line); background: var(--stone); }
.services__head { max-width: 640px; margin-bottom: 56px; }
.services__heading { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.2; }
.services__grid {
	display: grid;
	grid-template-columns: 1fr;
	border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }

.service-card { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.service-card:nth-child(3n) { border-right: none; }
.service-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 40px 32px;
	position: relative;
	transition: background-color .4s var(--ease);
}
.service-card__link:hover { background: var(--paper); }
.service-card__index { font-size: 0.75rem; color: var(--accent-dark); margin-bottom: 24px; }
.service-card__icon { width: 40px; height: 40px; color: var(--ink); margin-bottom: 24px; transition: transform .4s var(--ease); }
.service-card__link:hover .service-card__icon { transform: translateY(-4px); }
.service-card__title { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 10px; }
.service-card__desc { color: var(--ink-soft); font-size: 0.92rem; flex-grow: 1; }
.service-card__arrow { margin-top: 20px; opacity: 0; transform: translateX(-6px); transition: all .35s var(--ease); }
.service-card__link:hover .service-card__arrow { opacity: 1; transform: translateX(0); }

/* =========================================================================
   FEATURED PROJECTS (homepage)
   ========================================================================= */
.featured-projects { padding-block: var(--section-space); }
.featured-projects__head {
	display: flex; flex-wrap: wrap; gap: 20px;
	justify-content: space-between; align-items: flex-end;
	margin-bottom: 56px;
}
.featured-projects__heading { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.featured-projects__list { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 90px); }
.featured-project { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: end; }
@media (min-width: 860px) {
	.featured-project { grid-template-columns: 1.4fr 1fr; gap: 60px; }
	.featured-project.is-offset { grid-template-columns: 1fr 1.4fr; }
	.featured-project.is-offset .featured-project__media { order: 2; }
	.featured-project.is-offset .featured-project__caption { order: 1; }
}
.featured-project__media { overflow: hidden; aspect-ratio: 5 / 4; border: 1px solid var(--line); }
.featured-project__image { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.featured-project:hover .featured-project__image { transform: scale(1.05); }
.featured-project__number { display: block; font-size: 0.8rem; color: var(--accent-dark); margin-bottom: 14px; }
.featured-project__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 10px; }
.featured-project__meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--ink-soft); font-size: 0.88rem; }
.featured-project__meta span:not(:last-child)::after { content: '·'; margin-left: 10px; color: var(--line); }

/* =========================================================================
   CTA BANNER
   ========================================================================= */
.cta-banner { padding-block: clamp(70px, 10vw, 120px); background: var(--ink); color: var(--paper); }
.cta-banner__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.cta-banner__heading { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 14ch; }
.cta-banner .btn--solid { background: var(--paper); color: var(--ink); }
.cta-banner .btn--solid:hover { background: var(--accent); color: var(--paper); }

/* =========================================================================
   PAGE HERO (About / Gallery / Contact / generic)
   ========================================================================= */
.page-hero { position: relative; padding-top: 180px; padding-bottom: 70px; overflow: hidden; }
.page-hero--compact { padding-bottom: 50px; }
.page-hero__heading { font-size: clamp(2.2rem, 5.5vw, 4.2rem); max-width: 20ch; line-height: 1.05; }
.page-hero__media { aspect-ratio: 16 / 7; overflow: hidden; margin-top: 40px; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================================
   ABOUT PAGE: story / vision-mission / stats
   ========================================================================= */
.story-grid { padding-block: var(--section-space); border-top: 1px solid var(--line); }
.story-grid__inner { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 860px) { .story-grid__inner { grid-template-columns: 1fr 1fr; gap: 80px; } }
.story-grid__heading { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 20px; }
.story-grid__subheading { font-size: 1.15rem; margin: 28px 0 12px; }
.story-grid__col p { color: var(--ink-soft); max-width: 52ch; }

.stats { padding-block: clamp(60px, 8vw, 100px); background: var(--stone); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
@media (min-width: 720px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; }
.stat__number, .stat__suffix { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.stat__label { margin-top: 10px; color: var(--ink-soft); font-size: 0.9rem; }

/* =========================================================================
   TEAM
   ========================================================================= */
.team { padding-block: var(--section-space); }
.team__heading { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 48px; }
.team__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 720px) { .team__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .team__grid { grid-template-columns: repeat(4, 1fr); } }
.team-card__media { aspect-ratio: 1; overflow: hidden; margin-bottom: 18px; background: var(--stone); }
.team-card__image { width: 100%; height: 100%; object-fit: cover; filter: grayscale(35%); transition: filter .4s var(--ease), transform .6s var(--ease); }
.team-card:hover .team-card__image { filter: grayscale(0%); transform: scale(1.03); }
.team-card__name { font-family: var(--font-display); font-size: 1.1rem; }
.team-card__position { color: var(--ink-soft); font-size: 0.86rem; margin-top: 4px; }
.team-card__socials { display: flex; gap: 12px; margin-top: 12px; font-size: 0.78rem; }
.team-card__socials a { color: var(--accent-dark); border-bottom: 1px solid transparent; }
.team-card__socials a:hover { border-color: currentColor; }

/* =========================================================================
   GALLERY / PROJECT FILTER GRID
   ========================================================================= */
.gallery-section { padding-bottom: var(--section-space); }
.project-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 20px; }
.project-filters__btn {
	padding: 8px 18px;
	font-size: 0.85rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--ink-soft);
	transition: all .3s var(--ease);
}
.project-filters__btn:hover { border-color: var(--ink); color: var(--ink); }
.project-filters__btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.project-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px 28px;
}
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project-grid .project-card:nth-child(3n+2) { margin-top: 48px; }
@media (max-width: 1099px) { .project-grid .project-card:nth-child(3n+2) { margin-top: 0; } }

.project-card__media { aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); }
.project-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project-card:hover .project-card__image { transform: scale(1.06); }
.project-card__title { font-family: var(--font-display); font-size: 1.15rem; margin-top: 18px; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-soft); font-size: 0.82rem; margin-top: 6px; }
.project-card__meta span:not(:last-child)::after { content: '·'; margin-left: 8px; }
.no-projects { padding: 60px 0; color: var(--ink-soft); }

/* =========================================================================
   SINGLE PROJECT
   ========================================================================= */
.project-hero { position: relative; height: 88vh; min-height: 460px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.project-hero__media { position: absolute; inset: 0; }
.project-hero__image { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.project-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,7,0.15) 30%, rgba(10,9,7,0.75) 100%); }
.project-hero__content { position: relative; padding-bottom: 60px; }
.project-hero__title { font-size: clamp(2.2rem, 6vw, 4.6rem); max-width: 20ch; }

.project-meta-bar { border-bottom: 1px solid var(--line); padding-block: 32px; }
.project-meta-bar__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 720px) { .project-meta-bar__grid { grid-template-columns: repeat(4, 1fr); } }
.project-meta-bar__grid span { display: block; font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 6px; }
.project-meta-bar__grid strong { font-weight: 500; }

.project-description { padding-block: clamp(56px, 8vw, 100px); }
.project-description__inner { max-width: 760px; }
.project-description .entry-content { color: var(--ink-soft); font-size: 1.05rem; }
.project-description .entry-content p + p { margin-top: 1.2em; }

.project-gallery__stack { display: flex; flex-direction: column; gap: clamp(20px, 4vw, 48px); padding-bottom: var(--section-space); }
.project-gallery__item { overflow: hidden; }
.project-gallery__image { width: 100%; height: auto; will-change: transform; }

.project-nav { border-top: 1px solid var(--line); padding-block: 40px; }
.project-nav__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.project-nav__link { display: flex; flex-direction: column; gap: 6px; max-width: 260px; }
.project-nav__link--next { text-align: right; margin-left: auto; }
.project-nav__label { font-size: 0.78rem; color: var(--accent-dark); }
.project-nav__title { font-family: var(--font-display); }
.project-nav__link--all { font-size: 0.85rem; border-bottom: 1px solid var(--ink); padding-bottom: 3px; white-space: nowrap; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-section { padding-block: var(--section-space); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 90px; } }
.contact-info__heading { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 6px 0 32px; max-width: 16ch; }
.contact-info__list { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--line); padding-top: 24px; }
.contact-info__list li { display: flex; flex-direction: column; gap: 2px; font-size: 0.95rem; }
.contact-info__list span { font-size: 0.75rem; color: var(--ink-soft); }
.contact-map { margin-top: 32px; aspect-ratio: 16/10; border: 1px solid var(--line); overflow: hidden; }
.contact-map iframe { width: 100%; height: 100%; border: 0; }

.form-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field label { font-size: 0.82rem; color: var(--ink-soft); }
.form-field input, .form-field textarea {
	border: 1px solid var(--line);
	background: var(--paper);
	padding: 14px 16px;
	border-radius: 2px;
	transition: border-color .3s var(--ease);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); outline: none; }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field--honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: 0.78rem; color: #B3402C; min-height: 1em; }
.form-field.has-error input, .form-field.has-error textarea { border-color: #B3402C; }
.contact-form__submit { margin-top: 8px; }
.form-status { margin-top: 14px; font-size: 0.9rem; min-height: 1em; }
.form-notice { padding: 14px 18px; margin-bottom: 24px; font-size: 0.9rem; border-radius: 2px; }
.form-notice--success { background: #E4EFE2; color: #2F5B2A; }
.form-notice--error { background: #F5E3DF; color: #8A3420; }

/* =========================================================================
   GENERIC PAGE CONTENT
   ========================================================================= */
.page-extra-content { padding-block: clamp(40px, 6vw, 80px); }
.entry-content { max-width: 760px; color: var(--ink-soft); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { color: var(--ink); margin-top: 1.6em; }
.entry-content img { margin-block: 1.4em; }

.error-404 { padding-top: 220px; padding-bottom: 140px; text-align: center; }
.error-404__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* =========================================================================
   GLOBAL CTA & WHATSAPP
   ========================================================================= */
.global-cta { padding-block: clamp(60px, 10vw, 120px); background-color: var(--stone); border-top: 1px solid var(--line); }
.global-cta__heading { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.global-cta__desc { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 32px; }

.whatsapp-cta {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 56px;
	height: 56px;
	background-color: #25D366;
	color: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	z-index: 99;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-cta:hover, .whatsapp-cta:focus {
	transform: translateY(-4px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.2);
	color: #ffffff;
}
.whatsapp-cta svg { width: 32px; height: 32px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--ink); color: var(--stone); padding-top: clamp(60px, 8vw, 100px); }
.site-footer__top { display: grid; grid-template-columns: 1fr; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid rgba(237,232,222,0.14); }
@media (min-width: 860px) { .site-footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; } }
.site-footer__logo-text { font-family: var(--font-display); font-size: 1.3rem; color: var(--paper); }
.site-footer__desc { margin-top: 18px; color: rgba(237,232,222,0.7); max-width: 40ch; font-size: 0.92rem; }
.site-footer__socials { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.site-footer__socials a { font-size: 0.8rem; border-bottom: 1px solid rgba(237,232,222,0.3); padding-bottom: 2px; }
.site-footer__socials a:hover { border-color: var(--accent); color: var(--accent); }
.site-footer__heading { font-size: 0.78rem; color: rgba(237,232,222,0.55); margin-bottom: 18px; }
.site-footer__list { display: flex; flex-direction: column; gap: 12px; font-size: 0.92rem; }
.site-footer__list a:hover { color: var(--accent); }
.site-footer__list--contact li { color: rgba(237,232,222,0.85); }
.site-footer__widgets { padding-block: 30px; border-bottom: 1px solid rgba(237,232,222,0.14); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 26px; font-size: 0.8rem; color: rgba(237,232,222,0.55); }
.site-footer__legal { display: flex; gap: 18px; }
.site-footer__legal a:hover { color: var(--accent); }

/* =========================================================================
   ANIMATION HELPER STATES (GSAP toggles these via JS; CSS gives sane fallback)
   ========================================================================= */
[data-reveal-text], [data-reveal-fade], [data-parallax-item] { opacity: 1; }
.js-ready [data-reveal-fade] { opacity: 0; transform: translateY(24px); }
.js-ready [data-reveal-text] { opacity: 0; transform: translateY(16px); }

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
	.js-ready [data-reveal-fade], .js-ready [data-reveal-text] { opacity: 1 !important; transform: none !important; }
	.hero__scroll-line::after { animation: none; }
}

/* ---------- Comments (used only if single.php blog posts have comments open) ---------- */
.comment-list { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.comment-respond { margin-top: 40px; }
.comment-form p { margin-bottom: 14px; }
.comment-form input, .comment-form textarea { width: 100%; border: 1px solid var(--line); padding: 12px 14px; }

/* =========================================================================
   House Tour Zoom Animation (About Page)
   ========================================================================= */
.house-tour-section {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	background: var(--ink);
}
.house-tour-container {
	position: relative;
	width: 100%;
	height: 100%;
}
.tour-layer {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	will-change: transform, opacity;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--ink);
}
.tour-layer img {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	z-index: 1;
	opacity: 0.8;
}
.tour-content {
	position: relative;
	z-index: 2;
	color: var(--white);
	text-align: center;
	opacity: 0;
	transform: translateY(20px);
}
.tour-content h2 {
	font-size: clamp(2.5rem, 6vw, 5rem);
	color: var(--white);
	text-shadow: 0 4px 24px rgba(0,0,0,0.6);
	margin-bottom: 0.5rem;
}
.tour-content p {
	font-size: 1.125rem;
	text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}



/* =========================================================================
   CINEMATIC JOURNEY (2.5D FRONT PAGE)
   ========================================================================= */
.cinematic-main {
	background: #0a0a0a;
	color: #ffffff;
}

#cinematic-journey {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
}

.scene {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	will-change: transform, opacity;
}

.scene--01 { opacity: 1; visibility: visible; }

.scene__bg {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	z-index: 1;
}

.scene__bg img {
	width: 100%; height: 100%;
	object-fit: cover;
	will-change: transform;
}

.scene__content {
	position: relative;
	z-index: 10;
	max-width: 800px;
	padding: 4vw;
}

.text-center { text-align: center; margin: 0 auto; }
.align-left { text-align: left; margin-right: auto; padding-left: 10vw; }
.align-right { text-align: right; margin-left: auto; padding-right: 10vw; }

.scene__title {
	font-size: clamp(2.5rem, 6vw, 5rem);
	color: #fff;
	line-height: 1.1;
	text-shadow: 0 4px 24px rgba(0,0,0,0.8);
	margin-bottom: 0.5rem;
}
.scene__title.huge { font-size: clamp(3rem, 8vw, 7rem); }

.eyebrow {
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	color: #9C7A4E; /* accent */
	text-transform: uppercase;
	margin-bottom: 1rem;
}

/* Specifics */
.spatial-markers { position: absolute; inset: 0; z-index: 5; }
.marker { position: absolute; }
.marker::before { content:''; position:absolute; width:12px; height:12px; background:#9C7A4E; border-radius:50%; transform:translate(-50%,-50%); box-shadow: 0 0 10px rgba(156,122,78,0.5); }
.marker span { position:absolute; left:20px; top:-10px; font-size:0.85rem; letter-spacing:0.1em; text-transform:uppercase; opacity:0; }
.m1 { top: 40%; left: 30%; }
.m2 { top: 60%; left: 70%; }

.blueprint-overlay {
	width: 100%; height: 100%;
	background: url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><path d="M40 0L0 0 0 40" fill="none" stroke="rgba(255,255,255,0.15)" stroke-width="1"/></svg>');
	opacity: 0;
}

.tech-canvas { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #111; }
.line { position: absolute; background: #9C7A4E; }
.h-line { top: 50%; left: 0; width: 0%; height: 1px; }
.v-line { left: 50%; top: 0; width: 1px; height: 0%; }
.tech-svg { position: absolute; width: 100%; height: 100%; opacity: 0; }

.materials-grid {
	position: absolute; inset: 0;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
	opacity: 0.7;
}
.mat-item { background: #222; transform: scaleY(0); transform-origin: bottom; }
.mat-item.concrete { background: #444; }
.mat-item.wood { background: #5a4033; }
.mat-item.glass { background: #334455; }

.project-slider { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.p-slide { position: absolute; opacity: 0; text-align: center; }
.p-slide h2 { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 0.5rem; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }


/* =========================================================================
   SINGLE PROJECT CINEMATIC SECTIONS
   ========================================================================= */
.project-editorial {
	padding: 8vw 0;
	background: #0a0a0a;
	color: #fff;
	text-align: center;
}
.project-editorial .editorial-text {
	font-size: clamp(2rem, 4vw, 3.5rem);
	line-height: 1.2;
	max-width: 900px;
	margin: 0 auto;
	color: #e0e0e0;
}
.project-technical {
	padding: 4vw 0;
	background: #111;
	text-align: center;
}
.tech-blueprint {
	max-width: 100%;
	height: auto;
	mix-blend-mode: screen;
	opacity: 0.8;
	filter: invert(1) hue-rotate(180deg);
}


/* =========================================================================
   PRELOADER (PHASE 27)
   ========================================================================= */
.preloader {
	position: fixed;
	inset: 0;
	background: #0a0a0a;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.is-loaded {
	opacity: 0;
	visibility: hidden;
}
.preloader__inner {
	text-align: center;
	max-width: 400px;
	width: 100%;
	padding: 0 20px;
}
.preloader__title {
	display: block;
	font-size: 2rem;
	letter-spacing: 0.1em;
	margin-bottom: 0.5rem;
}
.preloader__subtitle {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	color: #9C7A4E;
	text-transform: uppercase;
	margin-bottom: 2rem;
}
.preloader__bar {
	width: 100%;
	height: 2px;
	background: rgba(255,255,255,0.1);
	margin-bottom: 1rem;
	position: relative;
	overflow: hidden;
}
.preloader__progress {
	position: absolute;
	top: 0; left: 0;
	height: 100%;
	width: 0%;
	background: #9C7A4E;
	transition: width 0.3s ease;
}
.preloader__count {
	font-size: 0.85rem;
	font-family: monospace;
	opacity: 0.7;
}
body.is-loading {
	overflow: hidden;
}


/* MOBILE OPTIMIZATION REMOVED TO ALLOW CINEMATIC ON MOBILE */


/* =========================================================================
   FINAL QA & PREMIUM POLISH (PHASE 22)
   ========================================================================= */

/* Prevent horizontal layout shifts from pinning */
html {
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

/* Custom Cursor */
@media (pointer: fine) {
    body {
        cursor: none;
    }
    .atelier-cursor {
        position: fixed;
        top: 0; left: 0;
        width: 10px; height: 10px;
        background-color: #9C7A4E;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 999999;
        transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
        mix-blend-mode: difference;
    }
    .atelier-cursor.is-active {
        width: 40px; height: 40px;
        background-color: rgba(156, 122, 78, 0.4);
        backdrop-filter: blur(2px);
    }
}


/* =========================================================================
   STUDIO / PHILOSOPHY PAGE (PHASE 37)
   ========================================================================= */

.studio-page {
    background-color: #0a0a0a;
    color: #fff;
}

.studio-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(10,10,10,0.8), rgba(10,10,10,1)), url('../images/cinematic_lobby_1790312327495.webp') no-repeat center center/cover;
    position: relative;
}

.studio-hero__content {
    max-width: 800px;
    z-index: 2;
}

.studio-hero h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 1rem;
    color: #9C7A4E;
}

.studio-philosophy {
    padding: 8rem 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.studio-philosophy h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #9C7A4E;
}

.studio-philosophy p {
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.studio-team {
    padding: 5rem 0 10rem;
}

.studio-team h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #9C7A4E;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.team-member {
    text-align: center;
}

.team-member__img-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(100%);
}

.team-member:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-member span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9C7A4E;
}


/* =========================================================================
   CINEMATIC CONTACT PAGE (PHASE 38)
   ========================================================================= */

.cinematic-contact {
    background-color: #0a0a0a;
    color: #fff;
    min-height: 100vh;
}

.contact-split {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
}

.contact-visual {
    flex: 1 1 50%;
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-visual__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: brightness(0.6) contrast(1.2);
    transform: scale(1.1); /* Subtle zoom in GSAP could be added later */
}

.contact-visual__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.contact-visual__content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #9C7A4E;
    margin-bottom: 2rem;
}

.contact-details {
    font-size: 1.2rem;
    line-height: 1.8;
}

.contact-details p {
    margin-bottom: 1.5rem;
}

.contact-form-area {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: #111;
}

.contact-form-area__inner {
    width: 100%;
    max-width: 500px;
}

.contact-form-area__inner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.contact-form-area__inner .subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 3rem;
}

/* Adjust the existing AJAX form slightly for dark mode */
.atelier-form input,
.atelier-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 1rem 0;
}

.atelier-form input:focus,
.atelier-form textarea:focus {
    border-bottom-color: #9C7A4E;
}


/* =========================================================================
   CINEMATIC GALLERY PAGE (PHASE 39)
   ========================================================================= */

.cinematic-gallery {
    background-color: #0a0a0a;
    color: #fff;
    min-height: 100vh;
}

.gallery-hero {
    padding: 12rem 0 6rem;
    text-align: center;
    background: linear-gradient(to bottom, #111, #0a0a0a);
}

.gallery-hero h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    color: #9C7A4E;
    margin-bottom: 1rem;
}

.gallery-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

.cinematic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    padding-bottom: 8rem;
}

/* Make individual project cards cinematic */
.cinematic-grid .project-card {
    background: #111;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.cinematic-grid .project-card:hover {
    transform: translateY(-10px);
    border-color: #9C7A4E;
}

.cinematic-grid .project-card__image img {
    filter: grayscale(80%);
    transition: filter 0.4s ease, transform 0.8s ease;
}

.cinematic-grid .project-card:hover .project-card__image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}


/* =========================================================================
   404 ERROR PAGE (PHASE 40)
   ========================================================================= */
.error-404-cinematic {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a0a0a;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.error-404-cinematic__bg {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.02) 0px,
        rgba(255,255,255,0.02) 1px,
        transparent 1px,
        transparent 20px
    );
    z-index: 1;
    opacity: 0.5;
}

.error-404-cinematic__inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.error-404-cinematic h1 {
    font-size: clamp(6rem, 15vw, 12rem);
    color: #9C7A4E;
    line-height: 1;
    margin-bottom: 0;
    opacity: 0.2;
    transform: translateY(20px);
}

.error-404-cinematic h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.error-404-cinematic p {
    font-size: 1.2rem;
    opacity: 0.7;
    margin-bottom: 3rem;
}


/* =========================================================================
   DEFAULT PAGES (PHASE 41)
   ========================================================================= */
.cinematic-page {
    background-color: #0a0a0a;
    color: #fff;
    min-height: 100vh;
}

.cinematic-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    background: linear-gradient(to bottom, #111, #0a0a0a);
}

.cinematic-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #9C7A4E;
    margin-bottom: 1rem;
}

.cinematic-page .entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 6rem;
    font-size: 1.2rem;
    line-height: 1.8;
}

.cinematic-page .entry-content a {
    color: #9C7A4E;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cinematic-page .entry-content h2,
.cinematic-page .entry-content h3 {
    color: #fff;
    margin-top: 2rem;
}

.cinematic-img-bw {
    filter: grayscale(80%);
    width: 100%;
    height: auto;
    margin-bottom: 3rem;
}


/* =========================================================================
   CLIENT PORTAL (LOGIN & DASHBOARD)
   ========================================================================= */

.login-section, .dashboard-section {
    padding-bottom: 8rem;
}

.login-wrapper {
    max-width: 400px;
    margin: 0 auto;
    background: #111;
    padding: 3rem;
    border: 1px solid #222;
}

.login-error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4a4a;
    padding: 1rem;
    border-left: 4px solid #ff4a4a;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.login-wrapper form p {
    margin-bottom: 1.5rem;
}

.login-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
}

.login-wrapper input[type="text"],
.login-wrapper input[type="password"] {
    width: 100%;
    padding: 1rem;
    background: #0a0a0a;
    border: 1px solid #333;
    color: #fff;
    font-family: inherit;
}

.login-wrapper input[type="text"]:focus,
.login-wrapper input[type="password"]:focus {
    border-color: #9C7A4E;
    outline: none;
}

.login-wrapper input[type="submit"] {
    width: 100%;
    padding: 1.2rem;
    background: #9C7A4E;
    color: #fff;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-wrapper input[type="submit"]:hover {
    background: #b59265;
}

.dashboard-wrapper {
    background: #111;
    border: 1px solid #222;
    padding: 2rem;
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dashboard-table th {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: #777;
    padding: 1rem;
    border-bottom: 1px solid #333;
}

.dashboard-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #222;
    color: #ddd;
}

.doc-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: #222;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #9C7A4E;
    border-radius: 3px;
    text-transform: uppercase;
}

.download-link {
    color: #9C7A4E;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.download-link:hover {
    border-color: #9C7A4E;
}

.no-documents-msg {
    text-align: center;
    padding: 3rem;
    color: #777;
}

/* =========================================================================
   CINEMATIC FORM OVERRIDES
   ========================================================================= */
.cinematic-form .form-field label {
    color: #aaa;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cinematic-form input[type="text"],
.cinematic-form input[type="email"],
.cinematic-form input[type="tel"],
.cinematic-form textarea {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #333 !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 1rem 0 !important;
    transition: border-color 0.3s ease !important;
}
.cinematic-form input:focus,
.cinematic-form textarea:focus {
    border-color: #9C7A4E !important;
    outline: none !important;
    background-color: transparent !important;
}
.cinematic-form .btn--solid {
    background-color: #9C7A4E;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.cinematic-form .btn--solid:hover {
    background-color: #b59265;
}

/* =========================================================================
   NEW PAGES MOBILE OPTIMIZATION (Phases 37+)
   ========================================================================= */
@media (max-width: 991px) {
    /* Studio Page */
    .studio-hero h1 { font-size: 3rem; }
    .studio-philosophy { padding: 4rem 0; }
    .studio-philosophy p { font-size: 1.2rem; }
    .studio-team { padding: 3rem 0 5rem; }
    .studio-team h2 { font-size: 2.2rem; margin-bottom: 2rem; }
    .team-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    /* Contact Page */
    .contact-split { flex-direction: column; }
    .contact-visual { flex: 1 1 100%; min-height: 40vh; }
    .contact-form-area { flex: 1 1 100%; padding: 3rem 1.5rem; }
    .contact-form-area__inner h2 { font-size: 2rem; }
    
    /* Gallery / Projects */
    .gallery-hero { padding: 8rem 0 3rem; }
    .gallery-hero h1 { font-size: 3rem; }
    .project-filters { flex-wrap: wrap; gap: 10px; margin-bottom: 2rem; }
    .project-filters__btn { font-size: 0.8rem; padding: 6px 12px; }
    .project-grid { gap: 2rem; }
    
    /* Client Portal */
    .login-section, .dashboard-section { padding-bottom: 4rem; }
    .login-wrapper { padding: 2rem 1.5rem; }
    .dashboard-wrapper { padding: 1rem; }
    .dashboard-table th, .dashboard-table td { padding: 1rem 0.5rem; font-size: 0.85rem; }
}

@media (max-width: 560px) {
    /* Form row stacking */
    .form-row { grid-template-columns: 1fr; }
}

/* =========================================================================
   CINEMATIC MOBILE TYPOGRAPHY & LAYOUT FIXES
   ========================================================================= */
@media (max-width: 768px) {
    /* Scale down giant text for narrow screens to prevent overflow */
    .scene__title { font-size: clamp(1.8rem, 8vw, 3rem) !important; word-wrap: break-word; }
    .scene__title.huge { font-size: clamp(2rem, 10vw, 4rem) !important; }
    
    /* Ensure no text bleeds off screen */
    .scene__content {
        padding: 1.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Reset aggressive alignments that push content off screen */
    .align-left, .align-right { 
        padding-left: 0 !important; 
        padding-right: 0 !important; 
        text-align: center !important; 
        margin: 0 auto !important; 
    }
    
    /* Adjust spatial markers so they stay on screen */
    .m1 { top: 25%; left: 10%; }
    .m2 { top: 70%; left: 15%; }
}

/* WebGL Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Behind all DOM elements */
    pointer-events: none; /* Let clicks pass through to DOM */
}



/* Project View Modes */
.project-view-container.is-list-view .project-grid { display: block; }
.project-view-container.is-list-view .project-card { display: flex; align-items: center; gap: 2rem; margin-bottom: 2rem; }
.project-view-container.is-list-view .project-card__image-wrapper { width: 300px; flex-shrink: 0; padding-bottom: 0; height: 200px; }
.project-view-container.is-list-view .project-card__content { padding: 0; }
@media (max-width: 768px) { .project-view-container.is-list-view .project-card { flex-direction: column; } .project-view-container.is-list-view .project-card__image-wrapper { width: 100%; height: auto; padding-bottom: 66%; } }
.view-toggle { display: flex; justify-content: flex-end; gap: 0.5rem; margin-bottom: 2rem; }
.view-toggle__btn { background: transparent; border: 1px solid var(--border); color: var(--text-light); padding: 0.5rem; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.view-toggle__btn:hover, .view-toggle__btn.is-active { color: var(--accent); border-color: var(--accent); }

/* =========================================================================
   PROJECT FILTERS & VIEW TOGGLES (ARCHIVE)
   ========================================================================= */
.gallery-section .container {
    position: relative;
}

.project-filters-advanced {
    margin-bottom: 3rem;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    appearance: none;
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.6rem 2.5rem 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    transition: border-color 0.3s ease;
}

.filter-select:focus,
.filter-select:hover {
    border-color: var(--color-accent, #9C7A4E);
    outline: none;
}

.filter-select option {
    background-color: #0a0a0a;
    color: #fff;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    position: absolute;
    right: 15px; /* container padding */
    top: 0;
}

@media (max-width: 992px) {
    .view-toggle {
        position: static;
        margin-top: 1.5rem;
        margin-bottom: 2rem;
        justify-content: flex-start;
    }
}

.view-toggle__btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    padding: 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.view-toggle__btn:hover,
.view-toggle__btn.is-active {
    color: var(--color-accent, #9C7A4E);
    border-color: var(--color-accent, #9C7A4E);
}

/* Recommended WP Classes */
.wp-caption, .wp-caption-text, .sticky, .gallery-caption, .bypostauthor, .alignright, .alignleft, .aligncenter { display: block; }

