/*
Theme Name: Héctor Navarro Arquitectura
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hector-navarro
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

:root {
	--site-gutter: clamp(1.25rem, 4vw, 3rem);
	--header-height: 5.5rem;
	--rule: rgb(21 21 21 / 0.18);
}

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

html {
	scroll-behavior: smooth;
}

body {
	min-width: 320px;
	-webkit-font-smoothing: antialiased;
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > main {
	flex: 1 0 auto;
}

img {
	display: block;
}

:where(a, button):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.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;
}
/* === typography === */
.site-wordmark,
.site-wordmark a {
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.13em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

.provisional-label,
.project-meta small,
.project-navigation small {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.provisional-label {
	color: var(--wp--preset--color--muted);
	margin: 0;
}

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

h1,
h2,
h3,
p {
	text-wrap: pretty;
}
/* === header === */
.site-header {
	align-items: center;
	border-bottom: 1px solid transparent;
	display: flex;
	height: var(--header-height);
	left: 0;
	padding-inline: var(--site-gutter);
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 100;
	transition: background-color 420ms ease, border-color 420ms ease, color 420ms ease;
}

.site-header {
	color: #fff;
}

.home .site-header:not(.is-on-light) {
	mix-blend-mode: difference;
}

.home .site-header:not(.is-on-light) .site-wordmark,
.home .site-header:not(.is-on-light) .site-navigation > .wp-block-navigation__container,
.home .site-header:not(.is-on-light) .site-navigation > .wp-block-navigation__responsive-container-open {
	filter: drop-shadow(0 1px 5px rgb(0 0 0 / 0.46));
}

.site-header a,
.site-header button {
	color: #fff;
	mix-blend-mode: normal;
}

body:not(.home) .site-header,
body:not(.home) .site-header a,
body:not(.home) .site-header button {
	color: var(--wp--preset--color--text);
	mix-blend-mode: normal;
}

.home .site-header.is-on-light {
	background: rgb(255 255 255 / 0.92);
	border-bottom-color: rgb(21 21 21 / 0.09);
	color: var(--wp--preset--color--text);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	mix-blend-mode: normal;
}

.home .site-header.is-on-light a,
.home .site-header.is-on-light button {
	color: var(--wp--preset--color--text);
	mix-blend-mode: normal;
}

.site-navigation {
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.wp-site-blocks > main {
	transition: opacity 320ms ease, transform 480ms cubic-bezier(.2,.72,.2,1);
}

body.is-leaving .wp-site-blocks > main {
	opacity: 0;
	transform: translateY(-12px);
}

.site-navigation .wp-block-navigation-item__content {
	text-decoration: none;
}

.site-navigation .wp-block-navigation-item__content:hover {
	text-decoration: underline;
}
/* === home posters === */
.home-projects,
.home-project-query,
.home-project-list {
	margin: 0;
	max-width: none !important;
	padding: 0;
	width: 100%;
}

.home-projects {
	height: 100dvh;
	overflow-y: auto;
	scroll-behavior: smooth;
	scroll-snap-type: none;
}

.has-soft-home-snap .home-projects {
	scroll-snap-type: none;
}

.home-projects.is-programmatic-scrolling {
	scroll-behavior: auto !important;
	scroll-snap-type: none !important;
}

html.is-programmatic-scrolling {
	scroll-behavior: auto !important;
	scroll-snap-type: none !important;
}

.home-project-list {
	list-style: none;
}

.home-project-list > li {
	height: 100dvh;
	margin: 0;
	scroll-snap-align: start;
	scroll-snap-stop: normal;
}

.project-poster {
	background: var(--wp--preset--color--primary);
	height: 100%;
	overflow: hidden;
	position: relative;
}

.project-poster::after {
	background: linear-gradient(180deg, transparent 48%, rgb(0 0 0 / 0.68) 100%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.project-poster-image,
.project-poster-image a,
.project-poster-image img {
	height: 100%;
	width: 100%;
}

.project-poster-image img {
	filter: contrast(1.03);
	object-fit: cover;
	object-position: var(--project-cover-x, 50%) var(--project-cover-y, 50%);
	transform: scale(1.025);
	transition: transform 6s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.project-poster:hover .project-poster-image img {
	transform: scale(1);
}

.project-poster-copy {
	bottom: clamp(2rem, 6vw, 5rem);
	color: #fff;
	left: var(--site-gutter);
	margin: 0 !important;
	max-width: min(46rem, calc(100% - 2 * var(--site-gutter))) !important;
	position: absolute;
	z-index: 2;
}

.project-poster-copy .provisional-label {
	color: rgb(255 255 255 / 0.72);
}

.project-poster-copy h2 {
	margin-block: 0.65rem 0.8rem;
}

.project-poster-copy h2 a,
.project-poster-excerpt a {
	color: inherit;
	text-decoration: none;
}

.project-poster-excerpt {
	font-size: 0.85rem;
	margin: 0;
}

.project-poster-excerpt p {
	display: flex;
	gap: 1rem;
	margin: 0;
}

.project-poster-excerpt .wp-block-post-excerpt__more-link {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.projects-reveal {
	background: var(--wp--preset--color--background);
	margin-top: 0 !important;
	min-height: 100dvh;
	padding-block: calc(var(--header-height) + 2.5rem) 4rem;
	scroll-snap-align: start;
	scroll-snap-stop: normal;
}

.projects-reveal-heading {
	align-items: flex-end;
	border-bottom: 1px solid var(--rule);
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
	padding-bottom: 1.25rem;
}

.home-project-filters {
	margin-bottom: clamp(2.5rem, 5vw, 4rem) !important;
}

.home-project-filters .project-filters {
	padding-top: 0.2rem;
}

.back-to-top {
	background: rgb(255 255 255 / 0.92);
	border: 1px solid rgb(21 21 21 / 0.16);
	bottom: 1.25rem;
	color: var(--wp--preset--color--text);
	cursor: pointer;
	font: inherit;
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	opacity: 0;
	padding: 0.8rem 1rem;
	pointer-events: none;
	position: fixed;
	right: var(--site-gutter);
	text-transform: uppercase;
	transform: translateY(0.75rem);
	transition: opacity 300ms ease, transform 420ms cubic-bezier(.2,.72,.2,1);
	z-index: 110;
}

.back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.projects-reveal-heading h2 {
	font-size: clamp(1.5rem, 2.4vw, 2rem) !important;
	margin-block: 0.45rem 0;
}

.archive-link {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	margin: 0;
	text-transform: uppercase;
}

.home-reveal-grid {
	gap: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem);
}

.home-reveal-grid > li {
	opacity: 1;
	transform: none;
	transition: opacity 700ms ease, transform 900ms cubic-bezier(0.18, 0.72, 0.2, 1);
}

.is-motion-ready .projects-reveal:not(.is-revealed) .home-reveal-grid > li {
	opacity: 0.28;
	transform: translateY(4rem) scale(0.84);
}

.is-motion-ready .projects-reveal:not(.is-revealed) .home-reveal-grid > li:nth-child(3n + 1) {
	transform: translate(105%, 4rem) scale(0.84);
}

.is-motion-ready .projects-reveal:not(.is-revealed) .home-reveal-grid > li:nth-child(3n) {
	transform: translate(-105%, 4rem) scale(0.84);
}

.home-reveal-grid > li:nth-child(2),
.home-reveal-grid > li:nth-child(5) {
	transition-delay: 90ms;
}

.home-reveal-grid > li:nth-child(3),
.home-reveal-grid > li:nth-child(6) {
	transition-delay: 180ms;
}

.project-card-term {
	color: var(--wp--preset--color--muted);
	font-size: 0.58rem;
	letter-spacing: 0.1em;
	margin: 0;
	text-transform: uppercase;
}
/* === projects archive === */
.archive-projects {
	padding-block: calc(var(--header-height) + 4rem) clamp(5rem, 10vw, 9rem) !important;
}

.archive-heading {
	align-items: flex-end;
	border-bottom: 1px solid var(--rule);
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
}

.archive-heading h1,
.archive-heading .wp-block-query-title {
	font-size: clamp(1.6rem, 2.4vw, 2.15rem) !important;
}

.archive-heading h1,
.archive-intro {
	margin: 0;
}

.archive-intro {
	color: var(--wp--preset--color--muted);
	font-size: 0.8rem;
	max-width: 26rem;
}

.project-filters-wrap {
	margin-bottom: clamp(3rem, 6vw, 5rem) !important;
}

.project-filters {
	align-items: flex-start;
	border-bottom: 1px solid var(--rule);
	display: flex;
	font-size: 0.72rem;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	letter-spacing: 0.04em;
	padding-bottom: 1.25rem;
	width: 100%;
}

.project-filters a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.project-filters a:hover,
.project-filters a.is-current {
	color: var(--wp--preset--color--text);
}

.project-filters a.is-current {
	text-decoration: underline;
}

.project-filter-list,
.project-filter-children {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.project-filter-list {
	flex: 1 1 auto;
	justify-content: space-between;
}

.project-filter-list > li {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.project-filter-children {
	border-left: 1px solid var(--rule);
	font-size: 0.64rem;
	gap: 0.65rem;
	padding-left: 0.75rem;
}

.projects-grid {
	gap: clamp(2rem, 5vw, 5rem) clamp(1rem, 2vw, 2rem);
}

.projects-query[aria-busy="true"] {
	cursor: progress;
}

.projects-grid > li {
	will-change: transform, opacity;
}

.photo-card .project-card-image {
	aspect-ratio: 4 / 3;
	margin: 0;
}

.photo-space-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.photo-card .project-card-image a,
.photo-card .project-card-image img {
	display: block;
	height: 100%;
	width: 100%;
}

.photo-card .project-card-image img {
	object-fit: cover;
}

.project-filter-status {
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.project-card {
	margin: 0;
}

.project-card-image {
	background: var(--wp--preset--color--soft);
	overflow: hidden;
}

.project-card-image img {
	filter: contrast(1.03);
	transition: transform 450ms cubic-bezier(0.2, 0.65, 0.25, 1), filter 450ms ease;
}

.project-card:hover .project-card-image img {
	filter: contrast(1.06);
	transform: scale(1.018);
}

.project-card-caption {
	align-items: baseline;
	border-top: 1px solid var(--rule);
	margin-top: 0.8rem;
	padding-top: 0.7rem;
}

.project-card-caption h2,
.project-card-caption h3,
.project-card-caption .provisional-label {
	margin: 0;
}

.project-card-caption h2 a,
.project-card-caption h3 a {
	text-decoration: none;
}

.project-card-caption .provisional-label {
	font-size: 0.58rem;
}
/* === single project === */
main.single-project {
	padding-top: calc(var(--header-height) + 2.5rem) !important;
}

.project-title-block {
	margin-bottom: clamp(2rem, 4vw, 3.5rem) !important;
}

.archive-back-link {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	margin-bottom: 1.5rem !important;
	text-transform: uppercase;
}

.archive-back-link a {
	text-decoration: none;
}

.archive-back-link a:hover,
.archive-back-link a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

.project-title-block h1 {
	font-size: clamp(2.75rem, 6vw, 5.75rem) !important;
	letter-spacing: -0.045em;
	line-height: 0.94;
	margin-block: 0.8rem 0;
}

.project-hero-image {
	margin-bottom: clamp(3rem, 6vw, 6rem) !important;
}

.project-hero-image img {
	max-height: 84vh;
	object-fit: cover;
	width: 100%;
}

.project-information {
	margin-bottom: clamp(4rem, 7vw, 7rem) !important;
}

.project-meta {
	border-bottom: 1px solid var(--rule);
	border-top: 1px solid var(--rule);
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	margin-bottom: clamp(2.5rem, 4vw, 4rem);
	padding-block: 1.2rem;
}

.project-meta span {
	display: block;
}

.project-meta small {
	color: var(--wp--preset--color--muted);
	display: block;
	margin-bottom: 0.4rem;
}

.project-information .wp-block-post-content {
	max-width: var(--wp--style--global--wide-size);
}

.project-story {
	align-items: start;
	border-bottom: 1px solid var(--rule);
	display: grid;
	gap: clamp(2rem, 6vw, 7rem) !important;
	grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
	margin-block: 0 clamp(2.5rem, 5vw, 5rem) !important;
	padding-bottom: clamp(2.5rem, 5vw, 5rem);
	max-width: var(--wp--style--global--wide-size);
}

.project-story p {
	margin: 0;
}

.project-story-lead {
	font-size: clamp(1.35rem, 2.4vw, 2.15rem);
	letter-spacing: -0.025em;
	line-height: 1.22;
}

.project-gallery {
	display: grid;
	gap: clamp(0.75rem, 1.4vw, 1.35rem) !important;
	margin-block: 0 !important;
	max-width: var(--wp--style--global--wide-size);
}

.project-gallery > *,
.project-gallery figure,
.project-gallery .wp-block-column {
	margin-block: 0 !important;
}

.project-gallery img {
	cursor: zoom-in;
	display: block;
	width: 100%;
}

.project-hero-image img {
	cursor: zoom-in;
}

.project-lightbox {
	background: transparent;
	border: 0;
	color: var(--wp--preset--color--text);
	height: var(--project-lightbox-height, 100dvh);
	inset: 0;
	margin: 0;
	max-height: none;
	max-width: none;
	padding: 0;
	position: fixed;
	width: var(--project-lightbox-width, 100dvw);
}

.project-lightbox::backdrop {
	background: rgb(246 245 242 / 0.96);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.project-lightbox-frame {
	display: block;
	height: 100%;
	min-height: 0;
	min-width: 0;
	position: relative;
	width: 100%;
}

.project-lightbox figure {
	display: grid;
	height: 100%;
	margin: 0;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	padding: clamp(4.5rem, 9vw, 7rem) clamp(3.75rem, 9vw, 8rem) clamp(3rem, 7vw, 5rem);
	touch-action: none;
	user-select: none;
	width: 100%;
}

.project-lightbox-viewport {
	height: 100%;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	width: 100%;
}

.project-lightbox-track {
	display: flex;
	height: 100%;
	min-height: 0;
	min-width: 0;
	transform: translate3d(-100%, 0, 0);
	will-change: transform;
	width: 100%;
}

.project-lightbox-slide {
	display: grid;
	flex: 0 0 100%;
	height: 100%;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	place-items: center;
	width: 100%;
}

.project-lightbox img {
	display: block;
	height: 100%;
	margin: auto;
	max-height: none;
	max-width: none;
	min-height: 0;
	min-width: 0;
	object-fit: contain;
	transform: translate3d(0, 0, 0) scale(1);
	transform-origin: center;
	-webkit-user-drag: none;
	will-change: transform;
	width: 100%;
}

.project-lightbox button {
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	padding: 1rem;
	z-index: 2;
}

.project-lightbox-close {
	font-size: 1.05rem !important;
	font-weight: 300;
	line-height: 1;
	opacity: 0.48;
	padding: 0.55rem !important;
	position: fixed;
	right: 0.75rem;
	top: 0.65rem;
	transition: opacity 180ms ease;
}

.project-lightbox-close:hover,
.project-lightbox-close:focus-visible {
	opacity: 1;
}

.project-lightbox-prev,
.project-lightbox-next {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
}

.project-lightbox-prev {
	left: max(0.25rem, env(safe-area-inset-left));
}

.project-lightbox-next {
	right: max(0.25rem, env(safe-area-inset-right));
}

.project-lightbox-status {
	clip: rect(0, 0, 0, 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: fixed;
	white-space: nowrap;
	width: 1px;
}

.project-gallery-pair {
	align-items: stretch !important;
	gap: clamp(0.75rem, 1.4vw, 1.35rem) !important;
	margin-block: 0 !important;
}

.project-gallery-pair .wp-block-column,
.project-gallery-pair figure {
	height: 100%;
}

.project-gallery-pair img {
	height: 100%;
	object-fit: cover;
}

.project-gallery-pair-landscape img {
	aspect-ratio: 3 / 2;
}

.project-gallery-pair-portrait img {
	aspect-ratio: 4 / 5;
}

.project-story-continuation {
	font-size: 1rem;
	line-height: 1.72;
	margin-block: clamp(2.75rem, 7vw, 6rem) !important;
	margin-inline: auto !important;
	max-width: 46rem;
	padding-inline: var(--site-gutter);
	width: 100%;
}

.project-story-continuation p {
	margin: 0;
}

.project-credit {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.08em;
	margin-top: 0.25rem !important;
	text-transform: uppercase;
}

.project-information figcaption {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.08em;
	text-align: left;
	text-transform: uppercase;
}

.project-navigation-wrap {
	border-top: 1px solid var(--rule);
	padding-block: 2rem 5rem;
}

.project-navigation {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr 1fr;
}

.project-navigation a {
	align-items: center;
	display: flex;
	flex-direction: row;
	gap: 0.8rem;
	text-decoration: none;
}

.project-navigation a > span:not(.project-navigation-arrow) {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.project-navigation-next {
	justify-content: flex-end;
	text-align: right;
}

.project-navigation-arrow {
	font-size: 1rem;
	line-height: 1;
}

.project-navigation small {
	color: var(--wp--preset--color--muted);
}
/* === pages and archives === */
.page-template-default main,
.archive main:not(.archive-projects),
.single main:not(.single-project),
.error404 main {
	padding-top: calc(var(--header-height) + 4rem);
}

.page-template-default main > .wp-block-group:first-child,
.archive main:not(.archive-projects) > .wp-block-group:first-child {
	border-top: 1px solid var(--rule);
	padding-top: 2rem;
}

.wp-block-query-pagination {
	border-top: 1px solid var(--rule);
	margin-top: 5rem;
	padding-top: 1.5rem;
}

.content-archive {
	padding-bottom: clamp(5rem, 10vw, 9rem) !important;
}

.editorial-grid {
	gap: clamp(2rem, 5vw, 5rem) clamp(1rem, 2vw, 2rem);
}

.editorial-card h2 {
	margin-block: 0.75rem 0.5rem;
}

.editorial-card h2 a {
	text-decoration: none;
}

.editorial-card .wp-block-post-date {
	color: var(--wp--preset--color--muted);
	margin-top: 1rem;
}

.empty-archive {
	border-top: 1px solid var(--rule);
	padding-top: 1.5rem;
}

/* === editorial singles === */
main.single-editorial {
	padding-top: calc(var(--header-height) + 2.5rem) !important;
}

.editorial-title-block {
	border-bottom: 1px solid var(--rule);
	padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.editorial-title-block h1 {
	font-size: clamp(2.5rem, 5.5vw, 5.25rem) !important;
	letter-spacing: -0.045em;
	line-height: 0.98;
	margin-block: 0.8rem 1.5rem;
	max-width: 12ch;
}

.editorial-date {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.editorial-hero {
	margin-block: clamp(2rem, 4vw, 4rem) 0 !important;
}

.editorial-hero img {
	max-height: 78vh;
	object-fit: cover;
	width: 100%;
}

.editorial-article {
	padding-block: clamp(3rem, 6vw, 6rem);
}

.editorial-article .wp-block-post-content {
	font-size: clamp(1.1rem, 1.8vw, 1.4rem);
	line-height: 1.55;
	max-width: 48rem;
}

.editorial-source {
	border-top: 1px solid var(--rule);
	font-size: 0.9rem;
	margin-top: 2.5rem !important;
	max-width: 48rem;
	padding-top: 1.25rem;
}

.editorial-return {
	border-top: 1px solid var(--rule);
	padding-block: 2rem 4rem;
}
/* === footer === */
.site-footer {
	border-top: 1px solid rgb(21 21 21 / 0.07);
	color: rgb(21 21 21 / 0.48);
	font-size: 0.57rem;
	letter-spacing: 0.06em;
	min-height: 3.25rem;
	padding: 0.85rem var(--site-gutter);
}

.site-footer p {
	margin: 0;
}

.footer-note {
	color: inherit;
}

/* === studio and contact pages === */
.page-intro {
	margin-bottom: clamp(4rem, 9vw, 9rem) !important;
}

.page-kicker {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.12em;
	margin-bottom: 1.25rem;
	text-transform: uppercase;
}

.page-lead {
	font-size: clamp(1.25rem, 2.3vw, 2rem);
	line-height: 1.22;
	max-width: 48rem;
}

.studio-grid {
	border-top: 1px solid var(--rule);
	gap: clamp(2rem, 5vw, 5rem) !important;
	padding-top: 1.5rem;
}

.studio-grid h2 {
	font-size: 0.72rem !important;
	letter-spacing: 0.1em;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
}

.studio-grid p {
	font-size: 0.9rem;
}

.contact-intro {
	margin-bottom: clamp(3rem, 5vw, 5rem) !important;
	text-align: center;
}

.contact-direct {
	font-size: clamp(2rem, 4.8vw, 4.75rem);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.98;
	margin-block: 1.5rem 2rem;
}

.contact-direct a {
	text-decoration: none;
}

.contact-direct a:hover {
	text-decoration: underline;
}

.contact-intro .page-lead {
	margin-inline: auto;
}

.contact-phone {
	margin-top: 2rem;
}

.contact-locations {
	border-top: 1px solid var(--rule);
	margin-bottom: clamp(3rem, 6vw, 6rem) !important;
	padding-top: 1.25rem;
	text-align: center;
}

.contact-locations-heading {
	align-items: center !important;
	flex-direction: column;
	gap: 0.35rem;
	justify-content: center !important;
	margin-bottom: 1.5rem !important;
	text-align: center;
	width: 100%;
}

.contact-locations-heading .page-kicker,
.contact-locations-heading p {
	margin: 0;
}

.contact-actions {
	border-bottom: 1px solid var(--rule);
	border-top: 1px solid var(--rule);
	gap: 0 !important;
	margin-bottom: clamp(4rem, 7vw, 7rem) !important;
}

.contact-action {
	min-height: 10rem;
	padding: 1.25rem 1.5rem 1.5rem 0;
}

.contact-action + .contact-action {
	border-left: 1px solid var(--rule);
	padding-left: 1.5rem;
}

.contact-action h2 {
	font-size: 0.7rem !important;
	letter-spacing: 0.1em;
	margin-bottom: 2.5rem;
	text-transform: uppercase;
}

.contact-action p {
	font-size: 0.9rem;
	max-width: 19rem;
}

.contact-offices {
	gap: clamp(2rem, 6vw, 8rem) !important;
	margin-inline: auto !important;
	margin-bottom: 0 !important;
	max-width: 64rem;
}

.contact-office {
	border-top: 1px solid var(--rule);
	padding-top: 1.25rem;
}

.contact-office h2 {
	font-size: clamp(1.4rem, 2.5vw, 2.25rem) !important;
	margin-block: 0 2rem;
}

.contact-office p {
	font-size: 0.9rem;
}

.instagram-editorial {
	border-top: 1px solid var(--rule);
	margin-top: clamp(3rem, 6vw, 6rem) !important;
	padding-block: 1.5rem clamp(4rem, 8vw, 8rem);
}

.instagram-editorial-header {
	align-items: flex-end;
	margin-bottom: 2rem !important;
}

.instagram-editorial-header h2 {
	font-size: clamp(1.5rem, 2.7vw, 2.4rem) !important;
	margin: 0;
}

.instagram-grid {
	gap: clamp(0.6rem, 1.5vw, 1.25rem) !important;
}

.instagram-grid figure {
	margin: 0;
	overflow: hidden;
}

.instagram-grid img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 500ms cubic-bezier(.2,.72,.2,1);
}

.instagram-grid figure:hover img {
	transform: scale(1.018);
}

@keyframes hn-menu-fade-in {
	from { opacity: 0; transform: translateY(-1.25rem); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes hn-menu-links-in {
	from { opacity: 0; transform: translateY(1rem); }
	to { opacity: 1; transform: translateY(0); }
}
/* === responsive and motion === */
@media (max-width: 900px) {
	:root {
		--header-height: 4.8rem;
	}

	.site-navigation .wp-block-navigation__responsive-container.is-menu-open {
		animation: hn-menu-fade-in 320ms cubic-bezier(.2,.72,.2,1) both;
		background: rgb(246 245 242 / 0.78) !important;
		border-bottom: 1px solid rgb(21 21 21 / 0.14);
		bottom: auto;
		box-shadow: 0 18px 50px rgb(21 21 21 / 0.07);
		color: var(--wp--preset--color--text) !important;
		left: 0;
		margin: 0;
		max-height: 100dvh;
		min-height: 0;
		overflow-y: auto;
		padding: 1rem var(--site-gutter) 1.2rem;
		right: 0;
		top: 0;
		box-sizing: border-box;
		max-width: 100vw;
		min-width: 100vw;
		width: 100vw;
		-webkit-backdrop-filter: blur(24px) saturate(1.1);
		backdrop-filter: blur(24px) saturate(1.1);
	}

	.site-navigation .wp-block-navigation__responsive-container.is-menu-open a,
	.site-navigation .wp-block-navigation__responsive-container.is-menu-open button {
		color: var(--wp--preset--color--text) !important;
		mix-blend-mode: normal;
	}

	.site-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
	.site-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
		height: auto;
		max-width: none;
		min-width: 0;
		width: 100%;
	}

	.site-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::before {
		content: "MENÚ";
		font-size: 0.62rem;
		font-weight: 500;
		left: 0;
		letter-spacing: 0.13em;
		line-height: 1;
		position: absolute;
		top: 0.6rem;
	}

	.site-navigation .wp-block-navigation__responsive-container-close {
		display: grid;
		height: 2.75rem;
		place-items: center;
		right: -0.65rem;
		top: -0.65rem;
		width: 2.75rem;
	}

	.site-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		align-items: stretch;
		display: flex;
		height: auto;
		justify-content: flex-start;
		padding-top: 3.75rem;
		min-width: 0;
		width: 100%;
	}

	.site-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: stretch;
		animation: hn-menu-links-in 460ms cubic-bezier(.2,.72,.2,1) 70ms both;
		border-bottom: 1px solid var(--rule);
		display: grid;
		gap: 0;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}

	.site-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		align-items: stretch;
		border-top: 1px solid var(--rule);
		width: 100%;
	}

	.site-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(odd) {
		border-right: 1px solid var(--rule);
	}

	.site-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		display: block;
		font-size: 0.92rem;
		font-weight: 400;
		letter-spacing: 0.01em;
		line-height: 1.2;
		padding: 0.9rem 0.75rem 0.9rem 0;
		width: 100%;
	}

	.site-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(even) .wp-block-navigation-item__content {
		padding-left: 0.75rem;
	}

	.site-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible {
		outline: 0;
		text-decoration: underline;
		text-underline-offset: 0.25em;
	}

	.site-header:has(.wp-block-navigation__responsive-container.is-menu-open) .site-wordmark {
		opacity: 0;
	}

	.home .site-header:has(.wp-block-navigation__responsive-container.is-menu-open) {
		mix-blend-mode: normal;
	}

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

	.home-reveal-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 600px) {
	.project-poster-image img {
		object-position: var(--project-mobile-cover-x, var(--project-cover-x, 50%)) var(--project-mobile-cover-y, var(--project-cover-y, 50%));
	}

	html.is-home-mobile-scroll {
		scroll-snap-type: none;
	}

	html.has-soft-home-snap.is-home-mobile-scroll {
		scroll-snap-type: none;
	}

	.is-home-mobile-scroll .home-projects {
		height: auto;
		overflow: visible;
		scroll-snap-type: none;
	}

	.is-home-mobile-scroll .home-project-list > li {
		height: 100svh;
		min-height: 100svh;
	}

	.site-wordmark,
	.site-wordmark a {
		font-size: 0.92rem;
	}

	.contact-direct {
		font-size: clamp(1.7rem, 8vw, 2.5rem);
	}

	.contact-actions {
		border-bottom: 0;
	}

	.contact-intro {
		margin-bottom: 3rem !important;
	}

	.contact-intro .page-lead {
		font-size: 1.2rem;
	}

	.contact-locations {
		margin-bottom: 3.5rem !important;
	}

	.contact-locations-heading {
		align-items: center !important;
		flex-direction: column;
		gap: 0.35rem;
	}

	.contact-offices {
		gap: 1.5rem !important;
	}

	.contact-action,
	.contact-action + .contact-action {
		border-bottom: 1px solid var(--rule);
		border-left: 0;
		min-height: 0;
		padding: 1.25rem 0 2rem;
	}

	.back-to-top {
		bottom: 0.85rem;
	}
	main.single-project {
		padding-top: calc(var(--header-height) + 1.5rem) !important;
	}

	.project-title-block h1 {
		font-size: clamp(2.5rem, 11.5vw, 4rem) !important;
		hyphens: none;
		overflow-wrap: normal;
		word-break: normal;
	}

	.project-hero-image {
		margin-bottom: 3rem !important;
	}

	.project-hero-image img {
		max-height: none;
	}

	.project-meta {
		gap: 1.25rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-bottom: 2.5rem;
	}

	.project-story {
		gap: 1.5rem !important;
		grid-template-columns: 1fr !important;
		margin-bottom: 2.5rem !important;
		padding-bottom: 2.5rem;
	}

	.project-story-lead {
		font-size: 1.45rem;
	}

	.project-gallery {
		gap: 0.55rem !important;
	}

	.project-gallery-pair {
		flex-wrap: nowrap !important;
		gap: 0.55rem !important;
	}

	.project-gallery-pair > .wp-block-column {
		flex-basis: 0 !important;
		min-width: 0;
	}

	.project-poster-copy {
		bottom: 2rem;
	}

	.project-poster-excerpt p {
		display: block;
	}

	.project-poster-excerpt .wp-block-post-excerpt__more-link {
		display: block;
		margin-top: 0.75rem;
	}

	.projects-grid {
		grid-template-columns: 1fr !important;
	}

	.projects-reveal {
		min-height: auto;
		padding-block: calc(var(--header-height) + 1.5rem) 4rem;
	}

	.projects-reveal-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.home-reveal-grid {
		grid-template-columns: 1fr !important;
	}

	.is-motion-ready .projects-reveal:not(.is-revealed) .home-reveal-grid > li,
	.is-motion-ready .projects-reveal:not(.is-revealed) .home-reveal-grid > li:nth-child(3n + 1),
	.is-motion-ready .projects-reveal:not(.is-revealed) .home-reveal-grid > li:nth-child(3n) {
		transform: translateY(2rem) scale(0.94);
	}

	.project-filters {
		align-items: center;
		flex-direction: row;
		gap: 1.35rem;
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		padding-bottom: 0.9rem;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		white-space: nowrap;
	}

	.project-filters::-webkit-scrollbar {
		display: none;
	}

	.project-filters a,
	.project-filter-list > li {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	.project-filter-list,
	.project-filter-children,
	.project-filter-list > li {
		flex-wrap: nowrap;
	}

	.project-filter-list {
		gap: 1.35rem;
		justify-content: flex-start;
	}

	.project-filter-children {
		border-left: 0;
		padding-left: 0.15rem;
	}

	.project-filters-wrap {
		margin-bottom: 2.75rem !important;
	}

	.archive-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.project-information .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
		width: 100%;
	}

	.instagram-grid {
		display: grid !important;
		gap: 0.45rem !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.instagram-grid > .wp-block-column {
		min-width: 0;
	}

	.project-navigation {
		gap: 1rem;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.project-navigation a {
		font-size: 0.78rem;
		gap: 0.5rem;
	}

	.project-navigation-arrow {
		font-size: 0.9rem;
	}

	.project-lightbox figure {
		padding: 4.75rem 3.25rem 3rem;
	}

}

/* The public review link adds WordPress.com UI that is not part of the site. */
#wpcom-preview-site-badge,
.sharedaddy.sd-sharing-enabled {
	display: none !important;
}

@media (max-height: 640px) {
	.home-projects {
		height: auto;
		overflow: visible;
		scroll-snap-type: none;
	}

	.home-project-list > li {
		height: auto;
		min-height: 70dvh;
	}
}

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

	.home-projects {
		scroll-snap-type: none;
	}

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

	.project-poster-image img {
		transform: none;
	}
}
