/* Blackthorn — front-end styles. */

:root {
	--thorn: #1b1f1a;
	--moss: #3a4233;
	--sage: #7f8771;
	--stone: #cfc8b8;
	--linen: #efebe2;
	--bone: #f7f5f0;
	--bark: #4f3120;
	--ink-soft: #565c50;
	--line: rgba(27, 31, 26, 0.14);

	--serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--sans: Jost, 'Helvetica Neue', Arial, sans-serif;

	--gutter: clamp(1.25rem, 5vw, 4rem);
	--content: 720px;
	--wide: 1320px;
	--section: clamp(5rem, 11vw, 10rem);
	--header-h: 5.5rem;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--bone);
	color: var(--thorn);
	font: 300 1.0625rem/1.75 var(--sans);
	letter-spacing: 0.01em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:hover { color: var(--moss); }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

h1, h2, h3, h4 {
	margin: 0 0 0.6em;
	font-family: var(--serif);
	font-weight: 300;
	line-height: 1.12;
	letter-spacing: -0.005em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.25rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); font-weight: 400; }

p { margin: 0 0 1.25em; text-wrap: pretty; }

.bt-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap;
}

.bt-skip {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--thorn); color: var(--bone);
}
.bt-skip:focus { top: 1rem; }

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

.bt-eyebrow,
.is-style-eyebrow {
	margin-bottom: 1.4rem;
	font: 500 0.7rem/1.4 var(--sans);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--sage);
}

.is-style-lead {
	font-size: clamp(1.15rem, 1.6vw, 1.35rem);
	line-height: 1.7;
	color: var(--ink-soft);
}

.is-style-more a,
.bt-more {
	display: inline-flex; align-items: center; gap: 1rem;
	font: 500 0.72rem/1 var(--sans);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-decoration: none;
}
.is-style-more a::after {
	content: '';
	width: 2.5rem; height: 1px;
	background: currentColor;
	transition: width 0.5s var(--ease);
}
.is-style-more a:hover::after { width: 4rem; }

.bt-button {
	display: inline-block;
	padding: 1.05rem 2.4rem;
	border: 1px solid var(--thorn);
	background: var(--thorn);
	color: var(--bone);
	font: 500 0.72rem/1 var(--sans);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.3s, color 0.3s;
}
.bt-button:hover { background: transparent; color: var(--thorn); }
.bt-button--quiet { background: transparent; color: inherit; border-color: currentColor; }
.bt-button--quiet:hover { background: var(--bone); color: var(--thorn); }

/* Logo -------------------------------------------------------------------- */

/* The SVG is used as a mask, so the logo takes the colour of its surroundings. */
.bt-logo {
	display: block;
	background: currentColor;
	-webkit-mask: var(--logo) center / contain no-repeat;
	mask: var(--logo) center / contain no-repeat;
}
.bt-logo--wide { --logo: url(../img/logo-wide.svg); aspect-ratio: 1734 / 290; height: 2.6rem; }
.bt-logo--stacked { --logo: url(../img/logo.svg); aspect-ratio: 1206 / 591; width: 13rem; }

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

.bt-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	color: var(--thorn);
	background: var(--bone);
	border-bottom: 1px solid var(--line);
	transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.admin-bar .bt-header { top: var(--wp-admin--admin-bar--height, 32px); }

.has-hero .bt-header:not(.is-scrolled) {
	background: transparent;
	border-color: transparent;
	color: var(--bone);
}
.bt-header.is-hidden { transform: translateY(-100%); }

.bt-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 2rem;
	max-width: calc(var(--wide) + 2 * var(--gutter));
	height: var(--header-h);
	margin-inline: auto;
	padding-inline: var(--gutter);
	transition: height 0.5s var(--ease);
}
.is-scrolled .bt-header__inner { height: 4.5rem; }

.bt-header__brand { text-decoration: none; color: var(--bark); transition: color 0.5s var(--ease); }
.bt-header__brand:hover { color: var(--bark); }
.has-hero .bt-header:not(.is-scrolled) .bt-header__brand,
.nav-open .bt-header__brand { color: var(--bone); }
.is-scrolled .bt-logo--wide { height: 2.2rem; }
@media (max-width: 480px) { .bt-logo--wide, .is-scrolled .bt-logo--wide { height: 2rem; } }
.bt-header__logo { max-height: 3rem; width: auto; }
.has-hero .bt-header:not(.is-scrolled) .bt-header__logo { filter: brightness(0) invert(1); }

.bt-nav__list {
	display: flex; gap: clamp(1.25rem, 2.6vw, 2.75rem);
	margin: 0; padding: 0; list-style: none;
}
.bt-nav__list a {
	position: relative;
	font: 400 0.72rem/1 var(--sans);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	color: inherit;
	padding-block: 0.6rem;
}
.bt-nav__list a::after {
	content: '';
	position: absolute; left: 0; right: 0; bottom: 0;
	height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: left;
	transition: transform 0.45s var(--ease);
}
.bt-nav__list a:hover::after,
.bt-nav__list .current-menu-item > a::after,
.bt-nav__list .current_page_item > a::after { transform: scaleX(1); }

.bt-header__toggle {
	display: none;
	padding: 0.75rem; margin-right: -0.75rem;
	border: 0; background: none; color: inherit; cursor: pointer;
}
.bt-burger { display: grid; gap: 7px; width: 26px; }
.bt-burger span { height: 1px; background: currentColor; transition: transform 0.4s var(--ease); }
[aria-expanded='true'] .bt-burger span:first-child { transform: translateY(4px) rotate(45deg); }
[aria-expanded='true'] .bt-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
	.bt-header__toggle { display: block; position: relative; z-index: 2; }
	.bt-nav {
		position: fixed; inset: 0;
		display: flex; align-items: center;
		padding: var(--header-h) var(--gutter) 3rem;
		background: var(--thorn); color: var(--bone);
		opacity: 0; visibility: hidden;
		transition: opacity 0.5s var(--ease), visibility 0s 0.5s;
	}
	.bt-nav.is-open { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease); }
	.bt-nav__list { flex-direction: column; gap: 1.1rem; }
	.bt-nav__list a {
		font: 300 clamp(2rem, 8vw, 2.75rem)/1.1 var(--serif);
		letter-spacing: 0;
		text-transform: none;
	}
	.nav-open { overflow: hidden; }
	.nav-open .bt-header { color: var(--bone); background: transparent; border-color: transparent; }
	.nav-open .bt-header__brand { position: relative; z-index: 2; }
}

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

.bt-hero {
	position: relative;
	display: grid; place-items: end center;
	min-height: 78svh;
	padding: calc(var(--header-h) + 3rem) var(--gutter) clamp(4rem, 9vh, 7rem);
	color: var(--bone);
	text-align: center;
	overflow: hidden;
	isolation: isolate;
}
.bt-hero--home { min-height: 100svh; place-items: center; }

.bt-hero__media { position: absolute; inset: 0; z-index: -1; background: var(--moss); }
.bt-hero__media::after {
	content: '';
	position: absolute; inset: 0;
	/* Even tint plus a soft pool behind the heading, so text holds up over bright footage. */
	background:
		radial-gradient(ellipse 55% 45% at 50% 55%, rgba(14, 17, 13, 0.38), rgba(14, 17, 13, 0) 70%),
		linear-gradient(180deg, rgba(14, 17, 13, 0.5) 0%, rgba(14, 17, 13, 0) 28%),
		linear-gradient(0deg, rgba(14, 17, 13, 0.6) 0%, rgba(14, 17, 13, 0.1) 55%),
		rgba(14, 17, 13, 0.2);
}
.bt-hero__image,
.bt-hero__video {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
.bt-hero__image { animation: bt-settle 2.4s var(--ease) both; }
.bt-hero__video { opacity: 0; transition: opacity 1.6s var(--ease); }
.bt-hero__video.is-playing { opacity: 1; }

@keyframes bt-settle { from { transform: scale(1.06); } to { transform: none; } }

.bt-hero__content { max-width: 60rem; animation: bt-rise 1.4s 0.3s var(--ease) backwards; /* "backwards" so the scroll effect can take over afterwards */ }
.bt-hero .bt-eyebrow { color: inherit; opacity: 0.85; }
.bt-hero__title { margin: 0; font-weight: 300; }
.bt-hero--home .bt-hero__title { font-size: clamp(2.8rem, 7vw, 6.25rem); }
.bt-hero__subtitle {
	max-width: 38rem; margin: 1.6rem auto 0;
	font-size: clamp(1.05rem, 1.5vw, 1.2rem);
	opacity: 0.9;
}

@keyframes bt-rise { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }

.bt-hero__scroll {
	position: absolute; left: 50%; bottom: 1.75rem;
	width: 1px; height: 3.5rem;
	overflow: hidden;
	background: rgba(247, 245, 240, 0.3);
}
.bt-hero__scroll span {
	position: absolute; inset: 0;
	background: var(--bone);
	animation: bt-scroll 2.6s var(--ease) infinite;
}
.bt-hero:not(.bt-hero--home) .bt-hero__scroll { display: none; }
@keyframes bt-scroll { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
	.bt-hero__image, .bt-hero__content, .bt-hero__scroll span { animation: none; }
}

/* Placeholders (until photography arrives) ---------------------------------- */

.bt-placeholder {
	display: grid; place-items: center;
	width: 100%; height: 100%;
	min-height: 12rem;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 12.5%, transparent 12.5% 25%),
		linear-gradient(135deg, #4a5541, #2f372b 55%, #1e231c);
	color: rgba(239, 235, 226, 0.55);
}
.bt-hero .bt-placeholder { place-items: end start; padding: 1.5rem var(--gutter); }
.bt-hero .bt-placeholder span { font-size: 0.6rem; opacity: 0.7; }
.bt-placeholder span {
	font: 400 0.7rem/1.4 var(--sans);
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

/* Placeholder label, kept still while the image behind it drifts. Disappears when a photo is swapped in. */
.wp-block-image:has(img[src*="/placeholder-"]) { position: relative; }
.wp-block-image:has(img[src*="/placeholder-"])::after {
	content: 'Photograph to follow';
	position: absolute; inset: 0;
	display: grid; place-items: center;
	font: 400 0.7rem/1.4 Georgia, serif;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(239, 235, 226, 0.55);
	pointer-events: none;
}
.wp-block-image.alignfull:has(img[src*="/placeholder-"])::after { font-size: 1.1rem; }

/* Page content (blocks) ------------------------------------------------------ */

.bt-main { display: block; padding-bottom: 0; }
.bt-main--plain { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)); }

.bt-content > *,
.bt-content .is-layout-constrained > :where(:not(.alignfull):not(.alignwide)) {
	max-width: var(--content);
	margin-inline: auto;
}
.bt-content > * { padding-inline: var(--gutter); box-sizing: content-box; }
.bt-content > .alignwide,
.bt-content .is-layout-constrained > .alignwide {
	max-width: var(--wide);
	margin-inline: auto;
}
.bt-content > .alignfull { max-width: none; padding-inline: 0; }
.bt-content > .alignfull.is-layout-constrained { padding-inline: var(--gutter); box-sizing: border-box; }

.bt-content > :first-child:not(.alignfull) { margin-top: var(--section); }
.bt-content > * + * { margin-top: var(--section); }
.bt-content > .alignfull + .alignfull { margin-top: 0; }
.bt-content > .wp-block-heading + *,
.bt-content > .wp-block-paragraph + * { margin-top: 0; }
.bt-content > .wp-block-heading + .wp-block-gallery { margin-top: 1.5rem; }
/* A heading that titles a gallery lines up with the gallery's edge, not the narrower text column. */
.bt-content > .wp-block-heading:has(+ .wp-block-gallery.alignwide) { max-width: var(--wide); }
.bt-content > .wp-block-gallery + .wp-block-heading { margin-top: clamp(4rem, 8vw, 7rem); }
.bt-content > :last-child:not(.alignfull) { margin-bottom: var(--section); }

.bt-content .wp-block-image { margin: 0; }
/* …but a photograph that follows other content keeps the section spacing above it, so text sits centred between. */
.bt-content > * + .wp-block-image { margin-top: var(--section); }
.bt-content .wp-block-image img { width: 100%; }
.bt-content figure.alignfull img { width: 100%; max-height: 92vh; }
.wp-block-image figcaption {
	margin-top: 0.9rem;
	font-size: 0.85rem;
	color: var(--ink-soft);
	text-align: left;
}

.wp-block-list { padding-left: 0; list-style: none; }
.wp-block-list li { padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.wp-block-list li:first-child { border-top: 1px solid var(--line); }

/* Full-width sections sit flush against each other, so they carry their own spacing. */
.bt-content > .bt-section { padding-block: calc(var(--section) * 0.6); }
.bt-content > .bt-section + .bt-section:not(.is-style-linen) { padding-top: 0; }
.bt-content > .bt-section.is-style-linen { padding-block: var(--section); }

/* Statement */
.bt-statement { text-align: center; }
.bt-content > .bt-statement { max-width: 52rem; }
.bt-statement h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
.bt-statement .is-style-lead { max-width: 40rem; margin-inline: auto; }

/* Photograph + text */
.bt-split.wp-block-columns { gap: clamp(2.5rem, 8vw, 8rem); margin-bottom: 0; }
@media (min-width: 782px) {
	.bt-split > .wp-block-column:has(.wp-block-image) { flex: 0 0 46% !important; }
	.bt-split > .wp-block-column:not(:has(.wp-block-image)) { flex: 1 1 0 !important; }
}
.bt-split > .wp-block-column:not(:has(.wp-block-image)) > * { max-width: 28rem; }

@media (max-width: 781px) {
	.bt-split--reverse.wp-block-columns { flex-direction: column-reverse; }
}

/* Three specialisms */
.bt-section > .is-style-eyebrow { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.bt-trio.wp-block-columns { gap: clamp(1.5rem, 3vw, 3rem); }
.bt-trio .wp-block-image { margin-bottom: 1.75rem; overflow: hidden; }
.bt-trio p:not(.is-style-more) { color: var(--ink-soft); }

/* Principles / process */
.bt-principles.wp-block-columns { gap: clamp(1.5rem, 3vw, 3rem); }
.bt-principles .wp-block-column { padding-top: 1.6rem; border-top: 1px solid var(--thorn); }
.bt-principles h3 { font-size: 1.5rem; }
.bt-principles p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

@media (min-width: 782px) and (max-width: 1100px) {
	.bt-principles.wp-block-columns { flex-wrap: wrap !important; }
	.bt-principles > .wp-block-column { flex-basis: calc(50% - 1.5rem) !important; }
}

/* Backgrounds */
.is-style-linen { background: var(--linen); padding-block: var(--section); }
.is-style-thorn { background: var(--thorn); color: var(--bone); padding-block: var(--section); }
.is-style-thorn a:hover { color: var(--stone); }

/* Estate services */
.bt-estate.wp-block-columns { gap: clamp(2.5rem, 8vw, 8rem); }
.bt-estate .wp-block-list { margin: 0; columns: 1; }

/* Call to action */
.bt-cta { text-align: center; }
.bt-cta h2 { max-width: 40rem; margin-inline: auto; }
.bt-cta p:not(.is-style-more) { color: rgba(247, 245, 240, 0.8); }
.bt-cta .is-style-more { margin-top: 2.5rem; }

/* Galleries */
/* Core sizes each tile using this variable, so set the gap through it or the last column wraps. */
.bt-content .wp-block-gallery.has-nested-images {
	--wp--style--unstable-gallery-gap: clamp(0.5rem, 1vw, 0.9rem);
	gap: var(--wp--style--unstable-gallery-gap);
}
.wp-block-gallery.has-nested-images figure.wp-block-image img { transition: opacity 0.4s; }
.wp-block-gallery.has-nested-images figure.wp-block-image:hover img { opacity: 0.88; }

/* Lightbox (core) */
.wp-lightbox-overlay .scrim { background-color: var(--thorn) !important; opacity: 0.96 !important; }
.wp-lightbox-overlay .close-button,
.wp-lightbox-container button { color: var(--bone); }

/* Parallax: the frame clips, the photograph inside it moves (driven by main.js). */
.bt-parallax { overflow: hidden; }
.bt-parallax img,
.bt-parallax .bt-placeholder { transform: scale(var(--bt-scale, 1)); will-change: transform; }
.bt-hero__media,
.bt-hero__content { will-change: transform; }

/* Scroll reveal */
.bt-reveal { opacity: 0; transform: translateY(2rem); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.bt-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .bt-reveal { opacity: 1; transform: none; transition: none; } }

/* Team ---------------------------------------------------------------------- */

.bt-team {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 3rem);
	margin-bottom: var(--section);
}
.bt-member__portrait { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 1.75rem; background: var(--linen); }
.bt-member__portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); }
.bt-member__name { margin-bottom: 0.4rem; font-size: 1.85rem; font-weight: 400; }
.bt-member__role { font: 500 0.7rem/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage); }
.bt-member__bio { font-size: 0.98rem; color: var(--ink-soft); }

/* Gallery page -------------------------------------------------------------- */

.bt-tabs {
	display: flex; justify-content: center; gap: clamp(2rem, 6vw, 4rem);
	padding-top: clamp(3rem, 7vw, 5rem);
	border-bottom: 1px solid var(--line);
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin-inline: auto;
}
.bt-tabs__tab {
	position: relative;
	padding: 0 0 1.25rem;
	border: 0; background: none; color: var(--ink-soft);
	font: 400 0.75rem/1 var(--sans);
	letter-spacing: 0.24em; text-transform: uppercase;
	cursor: pointer;
}
.bt-tabs__tab[aria-selected='true'] { color: var(--thorn); }
.bt-tabs__tab::after {
	content: '';
	position: absolute; left: 0; right: 0; bottom: -1px;
	height: 1px; background: var(--thorn);
	transform: scaleX(0);
	transition: transform 0.45s var(--ease);
}
.bt-tabs__tab[aria-selected='true']::after { transform: scaleX(1); }

.bt-films {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 32rem), 1fr));
	gap: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 3rem);
	padding-block: var(--section);
}
.bt-films__empty { grid-column: 1 / -1; text-align: center; font: 300 1.6rem/1.4 var(--serif); color: var(--ink-soft); }
.bt-film__play { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.bt-film__poster { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--moss); }
.bt-film__poster img, .bt-film__poster .bt-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.bt-film__play:hover .bt-film__poster img { transform: scale(1.03); }
.bt-film__icon {
	position: absolute; left: 50%; top: 50%;
	display: grid; place-items: center;
	width: 5rem; height: 5rem;
	margin: -2.5rem 0 0 -2.5rem;
	border: 1px solid rgba(247, 245, 240, 0.7);
	border-radius: 50%;
	color: var(--bone);
	/* A soft dark disc keeps the play mark visible over bright footage. */
	background: rgba(14, 17, 13, 0.28);
	backdrop-filter: blur(2px);
	transition: background 0.4s, color 0.4s;
}
.bt-film__icon .bt-icon { width: 1.4rem; height: 1.4rem; margin-left: 0.2rem; }
.bt-film__play:hover .bt-film__icon { background: var(--bone); color: var(--thorn); }
.bt-film__title { margin: 1.5rem 0 0.3rem; font-size: 1.75rem; font-weight: 400; }
.bt-film__meta { font: 500 0.7rem/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.75rem; }
.bt-film__text { color: var(--ink-soft); font-size: 0.98rem; }

.bt-viewer {
	width: 100vw; height: 100vh; max-width: none; max-height: none;
	margin: 0; padding: clamp(3.5rem, 6vw, 5rem) var(--gutter) 2rem;
	border: 0;
	background: rgba(14, 17, 13, 0.97);
	color: var(--bone);
}
.bt-viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bt-viewer::backdrop { background: rgba(14, 17, 13, 0.97); }
.bt-viewer__stage { width: min(100%, calc((100vh - 10rem) * 16 / 9)); aspect-ratio: 16 / 9; }
.bt-viewer__stage video, .bt-viewer__stage iframe { width: 100%; height: 100%; border: 0; background: #000; }
.bt-viewer__title { margin: 1.25rem 0 0; font: 300 1.5rem/1.3 var(--serif); }
.bt-viewer__close {
	position: absolute; top: 1rem; right: 1rem;
	padding: 0.75rem; border: 0; background: none; color: inherit; cursor: pointer;
}

/* Contact ------------------------------------------------------------------- */

.bt-contact {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(3rem, 8vw, 8rem);
	padding-bottom: var(--section);
}
.bt-contact__intro h1 { font-size: clamp(2.4rem, 4.5vw, 4rem); }
.bt-contact__details {
	display: grid; grid-template-columns: auto 1fr; gap: 0.9rem 2rem;
	margin: 3rem 0 0; padding-top: 2rem;
	border-top: 1px solid var(--line);
}
.bt-contact__details dt { font: 500 0.7rem/2.2 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage); }
.bt-contact__details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.bt-contact > * { min-width: 0; }
@media (max-width: 900px) { .bt-contact { grid-template-columns: 1fr; } }

.bt-map iframe { width: 100%; height: 26rem; border: 0; filter: grayscale(1) contrast(0.95); }

/* Form */
.bt-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
@media (max-width: 600px) { .bt-form__grid { grid-template-columns: 1fr; } }

.bt-field { margin: 0 0 2rem; }
.bt-field label,
.bt-field legend {
	display: block; margin-bottom: 0.4rem;
	font: 500 0.7rem/1.4 var(--sans);
	letter-spacing: 0.2em; text-transform: uppercase;
}
.bt-field__opt { font-weight: 300; letter-spacing: 0.05em; text-transform: none; color: var(--ink-soft); font-size: 0.8rem; }

.bt-field input[type='text'],
.bt-field input[type='email'],
.bt-field input[type='tel'],
.bt-field select,
.bt-field textarea {
	width: 100%;
	padding: 0.7rem 0;
	border: 0; border-bottom: 1px solid var(--stone); border-radius: 0;
	background: transparent;
	color: inherit;
	font: 300 1.05rem/1.5 var(--sans);
	transition: border-color 0.3s;
	appearance: none;
}
.bt-field select {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b1f1a'/%3E%3C/svg%3E") right center no-repeat;
}
.bt-field textarea { resize: vertical; min-height: 8rem; }
.bt-field input:focus, .bt-field select:focus, .bt-field textarea:focus { outline: none; border-color: var(--thorn); }
.bt-field .is-invalid { border-color: #8a3b2e; }

.bt-field--choices { border: 0; padding: 0; margin-inline: 0; }
.bt-field--choices legend { margin-bottom: 1rem; }
.bt-choice { display: inline-flex !important; align-items: center; gap: 0.6rem; margin: 0 1.75rem 0.8rem 0 !important; font: 300 1rem/1.4 var(--sans) !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; }
.bt-choice input {
	appearance: none; margin: 0;
	width: 1rem; height: 1rem;
	border: 1px solid var(--sage);
	display: grid; place-content: center;
	cursor: pointer;
}
.bt-choice input::after { content: ''; width: 0.5rem; height: 0.5rem; background: var(--thorn); transform: scale(0); transition: transform 0.2s; }
.bt-choice input:checked::after { transform: scale(1); }

.bt-upload__zone {
	position: relative;
	padding: 1.75rem;
	border: 1px dashed var(--stone);
	text-align: center;
	transition: border-color 0.3s, background 0.3s;
}
.bt-upload__zone.is-dragging { border-color: var(--thorn); background: var(--linen); }
.bt-upload__zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bt-upload__hint { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.bt-upload__hint::before { content: '+'; display: block; font: 300 2rem/1 var(--serif); color: var(--thorn); margin-bottom: 0.5rem; }
.bt-upload__list { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 0; padding: 0; list-style: none; }
.bt-upload__list:not(:empty) { margin-top: 1rem; }
.bt-upload__list li { width: 4.5rem; aspect-ratio: 1; overflow: hidden; background: var(--linen); font-size: 0.7rem; }
.bt-upload__list img { width: 100%; height: 100%; object-fit: cover; }
.bt-upload__error { color: #8a3b2e; font-size: 0.9rem; margin: 0.75rem 0 0; }

.bt-form__trap { position: absolute; left: -9999px; }
.bt-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.bt-form__privacy { margin: 0; font-size: 0.85rem; color: var(--ink-soft); flex: 1 1 14rem; }
.bt-form__errors { margin-bottom: 2rem; padding: 1.25rem 1.5rem; border-left: 2px solid #8a3b2e; background: #f3ebe6; }
.bt-form__errors ul { margin: 0; padding-left: 1.1rem; }
.bt-form__errors p { margin-bottom: 0.5rem; }
.bt-form__done { padding: 3rem 0; }
.bt-form__done h2 { font-size: clamp(2rem, 3vw, 2.6rem); }
.bt-form.is-sending .bt-button { opacity: 0.5; pointer-events: none; }

/* Instagram feed ------------------------------------------------------------- */

.bt-instagram { padding-block: var(--section) 0; text-align: center; }

/* 404 ------------------------------------------------------------------------- */

.bt-notfound { text-align: center; padding-bottom: var(--section); }

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

.bt-footer { margin-top: 0; background: var(--thorn); color: var(--stone); font-size: 0.95rem; }
.bt-instagram + .bt-footer { margin-top: var(--section); }
.bt-footer a { color: var(--bone); text-decoration: none; }
.bt-footer a:hover { color: var(--stone); }
.bt-footer .bt-eyebrow { color: var(--sage); margin-bottom: 1rem; }
.bt-footer__inner {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 3rem;
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin-inline: auto;
	padding: clamp(4rem, 8vw, 6.5rem) var(--gutter) 3.5rem;
}
.bt-footer__brand a { display: inline-block; color: var(--bone); margin-bottom: 1.75rem; }
.bt-footer__brand p { max-width: 24rem; }
.bt-footer p { margin: 0 0 0.6rem; overflow-wrap: anywhere; }
.bt-footer__social a { display: inline-flex; align-items: center; gap: 0.6rem; }
.bt-footer__social .bt-icon { width: 1.1rem; height: 1.1rem; }
.bt-footer__base {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin-inline: auto;
	padding: 1.5rem var(--gutter) 2rem;
	border-top: 1px solid rgba(207, 200, 184, 0.15);
	font-size: 0.78rem; letter-spacing: 0.06em;
}
.bt-footer__base p { margin: 0; }
.bt-footer__links { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 782px) { .bt-footer__inner { grid-template-columns: 1fr; gap: 2.25rem; } }

/* Cookie banner ---------------------------------------------------------------- */

.bt-consent {
	position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
	max-width: 46rem; margin-inline: auto;
	padding: 1.25rem 1.5rem;
	background: var(--thorn); color: var(--bone);
	font-size: 0.9rem;
	box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.2);
}
.bt-consent[hidden] { display: none; }
.bt-consent p { margin: 0; flex: 1 1 18rem; }
.bt-consent a { color: inherit; }
.bt-consent__actions { display: flex; gap: 0.75rem; }
.bt-consent .bt-button { padding: 0.85rem 1.4rem; border-color: var(--bone); background: var(--bone); color: var(--thorn); }
.bt-consent .bt-button--quiet { background: transparent; color: var(--bone); }

/* Full-width photographs need more height on phones. */
@media (max-width: 781px) {
	.bt-content figure.alignfull img { aspect-ratio: 4 / 3 !important; }
}
