/**
 * BTAE Corporate — corporate components.
 *
 * Colours come from tokens.css (--md-*): light/dark surfaces from the logo
 * blue, plus the deep brand "ink" (navy) used for the utility bar, hero, page
 * heads, call to action and footer in both modes. The blue → teal gradient
 * follows the promotional video. Shapes: small 6px, medium 10px, large 14px,
 * extra large 20px (Appearance → BTAE Theme → Corner style).
 */

:root {
	--bt-wide: 1240px;
	--bt-header-wide: 1440px;
	--bt-gutter: clamp(1rem, 4vw, 2rem);
	--bt-section: clamp(4rem, 8vw, 6.5rem);
	--bt-gradient: linear-gradient(120deg, var(--md-primary) 0%, var(--md-tertiary) 100%);
	--bt-ink-gradient: linear-gradient(135deg, var(--md-ink-accent) 0%, var(--md-ink-accent-2) 100%);
	--md-shape-s: 6px;
	--md-shape-m: 10px;
	--md-shape-l: 14px;
	--md-shape-xl: 20px;
	--md-ease: cubic-bezier(0.2, 0, 0, 1);
	--md-ease-emphasized: cubic-bezier(0.05, 0.7, 0.1, 1);
}

/* ---------- Base ---------- */
html {
	/* The closed drawer waits off-canvas on the right; it must not widen the page
	   (on the root this applies to the viewport, so the sticky header still works). */
	overflow-x: hidden;
	overflow-x: clip;
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem;
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--md-surface);
	color: var(--md-on-surface);
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: var(--md-primary-container);
	color: var(--md-on-primary-container);
}

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

:focus-visible {
	outline: 3px solid var(--md-primary-text);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.md-icon {
	width: 1.5rem;
	height: 1.5rem;
	flex: none;
	fill: currentColor;
}

/* Icon button with a state layer. */
.md-icon-button {
	position: relative;
	isolation: isolate;
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--md-on-surface-variant);
	cursor: pointer;
}

.md-icon-button::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: currentColor;
	opacity: 0;
	transition: opacity 0.15s var(--md-ease);
}

.md-icon-button:hover::after {
	opacity: 0.08;
}

.md-icon-button:active::after {
	opacity: 0.12;
}

/* ---------- Buttons ---------- */
.wp-block-button__link,
.bt-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	box-sizing: border-box;
	text-decoration: none;
	transition: background-color 0.15s var(--md-ease), border-color 0.15s var(--md-ease), box-shadow 0.15s var(--md-ease), transform 0.15s var(--md-ease);
}

.wp-block-button__link:hover {
	background: color-mix(in srgb, var(--md-primary) 88%, #000);
	box-shadow: var(--md-shadow);
}

.wp-block-button__link:active {
	transform: translateY(1px);
}

.wp-block-button.is-style-tonal .wp-block-button__link {
	background: var(--md-secondary-container);
	color: var(--md-on-secondary-container);
}

.wp-block-button.is-style-tonal .wp-block-button__link:hover {
	background: color-mix(in srgb, var(--md-secondary-container) 90%, var(--md-on-secondary-container));
}

.wp-block-button.is-style-outline .wp-block-button__link {
	padding: calc(0.75rem - 1px) calc(1.375rem - 1px);
	border: 1px solid var(--md-outline);
	background: transparent;
	color: var(--md-on-surface);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--md-primary-text);
	background: rgba(var(--md-primary-rgb), 0.06);
	color: var(--md-primary-text);
	box-shadow: none;
}

.bt-button {
	min-height: 2.5rem;
	padding: 0 1.125rem;
	border-radius: var(--md-shape-s);
	background: var(--md-primary);
	color: var(--md-on-primary);
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
}

.bt-button:hover {
	background: color-mix(in srgb, var(--md-primary) 88%, #000);
	color: var(--md-on-primary);
	box-shadow: var(--md-shadow);
}

/* Chips (social profiles, link rows). */
.bt-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	max-width: 100%;
	height: 2rem;
	padding: 0 0.75rem;
	box-sizing: border-box;
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-shape-s);
	color: var(--md-on-surface);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: border-color 0.15s var(--md-ease), background-color 0.15s var(--md-ease);
}

.bt-chip:hover {
	border-color: var(--md-primary-text);
	color: var(--md-primary-text);
}

.bt-chip__icon {
	width: 1rem;
	height: 1rem;
	margin-right: -0.125rem;
	color: var(--md-primary-text);
}

.bt-chip--link {
	border-color: transparent;
	background: var(--md-secondary-container);
	color: var(--md-on-secondary-container);
}

.bt-chip--link .bt-chip__icon {
	color: inherit;
}

/* Segmented language switcher. */
.bt-seg {
	display: inline-flex;
	height: 2rem;
	box-sizing: border-box;
	border: 1px solid var(--md-outline);
	border-radius: var(--md-shape-s);
	overflow: hidden;
}

.bt-seg__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	padding: 0 0.625rem;
	color: var(--md-on-surface);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: background-color 0.15s var(--md-ease);
}

.bt-seg__item + .bt-seg__item {
	border-left: 1px solid var(--md-outline);
}

.bt-seg__item:hover {
	background: rgba(var(--md-on-surface-rgb), 0.06);
	color: var(--md-on-surface);
}

.bt-seg__item.is-selected {
	background: var(--md-primary);
	color: var(--md-on-primary);
}

/* ---------- Utility bar ---------- */
.bt-topbar {
	background: var(--md-ink);
	color: var(--md-on-ink-muted);
	font-size: 0.8125rem;
}

.bt-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: var(--bt-header-wide);
	min-height: 2.5rem;
	margin: 0 auto;
	padding: 0 var(--bt-gutter);
}

.bt-topbar__group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.5rem;
	min-width: 0;
}

.bt-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.bt-topbar__item:hover {
	color: var(--md-on-ink);
}

.bt-topbar__item .md-icon {
	width: 1rem;
	height: 1rem;
	color: var(--md-ink-accent);
}

.bt-topbar .bt-seg {
	height: 1.625rem;
	border-color: var(--md-ink-line);
}

.bt-topbar .bt-seg__item {
	min-width: 2.25rem;
	color: var(--md-on-ink-muted);
	font-size: 0.6875rem;
}

.bt-topbar .bt-seg__item + .bt-seg__item {
	border-left-color: var(--md-ink-line);
}

.bt-topbar .bt-seg__item:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--md-on-ink);
}

.bt-topbar .bt-seg__item.is-selected {
	background: var(--md-on-ink);
	color: var(--md-ink);
}

.bt-topbar .bt-lang-menu > summary {
	height: 1.75rem;
	border-color: var(--md-ink-line);
	color: var(--md-on-ink);
}

@media (max-width: 47.99rem) {
	.bt-topbar__item--wide {
		display: none;
	}
}

@media (max-width: 29.99rem) {
	.bt-topbar__inner {
		gap: 0.75rem;
	}

	.bt-topbar__group:first-child {
		flex: 1 1 auto;
	}

	.bt-topbar__item {
		min-width: 0;
	}

	.bt-topbar__item span {
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.bt-topbar .bt-seg__item {
		min-width: 2rem;
		padding: 0 0.5rem;
	}
}

/* ---------- Header ---------- */
.bt-site-header {
	position: sticky;
	top: var(--bt-stick, 0px);
	z-index: 50;
	margin: 0;
}

.admin-bar .bt-site-header {
	top: calc(var(--bt-stick, 0px) + var(--wp-admin--admin-bar--height, 32px));
}

@media (max-width: 600px) {
	.admin-bar .bt-site-header {
		top: var(--bt-stick, 0px);
	}
}

.bt-site-header > * {
	margin: 0;
}

.bt-header {
	position: relative;
	isolation: isolate;
	margin: 0;
	border-bottom: 1px solid var(--md-outline-variant);
	transition: box-shadow 0.2s var(--md-ease);
}

/* Frosted background on a pseudo-element: backdrop-filter on the bar itself
   would become the containing block of the fixed navigation drawer. */
.bt-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--md-surface) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
}

.bt-header.is-scrolled {
	box-shadow: var(--md-shadow-lg);
}

.bt-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: var(--bt-header-wide);
	min-height: 4.5rem;
	margin: 0 auto;
	padding: 0 var(--bt-gutter);
}

.bt-header__inner > *,
.bt-header__actions > * {
	margin: 0;
}

.bt-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.bt-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	color: var(--md-on-surface);
	text-decoration: none;
}

.bt-brand:hover {
	color: var(--md-on-surface);
}

/* The logo never gives way to the menu: when they do not fit, the menu folds into the drawer. */
html:not(.bt-nav-compact) .bt-header__inner > .bt-brand {
	flex: none;
}

.bt-nav-compact .bt-brand__name {
	overflow: hidden;
	text-overflow: ellipsis;
}

.bt-brand__logo {
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: 10px;
	object-fit: cover;
}

.bt-brand__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}

.bt-brand__name {
	font-size: 1.0625rem;
	font-weight: 750;
	letter-spacing: -0.015em;
	white-space: nowrap;
}

.bt-brand__tag {
	margin-top: 0.125rem;
	color: var(--md-on-surface-variant);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

/* Navigation links (wide screens): underline by default, pills as an option. */
.bt-nav__list {
	display: flex;
	align-items: center;
	gap: 0.125rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bt-nav__list a {
	position: relative;
	display: flex;
	align-items: center;
	height: 4.5rem;
	padding: 0 0.75rem;
	color: var(--md-on-surface-variant);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s var(--md-ease);
}

.bt-nav__list a::after {
	content: "";
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: -1px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--bt-gradient);
	transform: scaleX(0);
	transition: transform 0.2s var(--md-ease);
}

.bt-nav__list a:hover {
	color: var(--md-on-surface);
}

.bt-nav__list a:hover::after {
	transform: scaleX(0.4);
}

.bt-nav__list .current-menu-item > a,
.bt-nav__list .current_page_item > a,
.bt-nav__list a[aria-current="page"] {
	color: var(--md-on-surface);
	font-weight: 600;
}

.bt-nav__list .current-menu-item > a::after,
.bt-nav__list .current_page_item > a::after,
.bt-nav__list a[aria-current="page"]::after {
	transform: none;
}

.bt-nav__open,
.bt-nav__scrim,
.bt-nav__drawer-head,
.bt-nav__drawer-foot {
	display: none;
}

.bt-theme-toggle__light {
	display: none;
}

.bt-theme-toggle[aria-pressed="true"] .bt-theme-toggle__dark {
	display: none;
}

.bt-theme-toggle[aria-pressed="true"] .bt-theme-toggle__light {
	display: block;
}

html:not(.bt-nav-compact) .bt-nav-pill .bt-nav__list a {
	height: 2.5rem;
	border-radius: 999px;
}

html:not(.bt-nav-compact) .bt-nav-pill .bt-nav__list a::after {
	display: none;
}

html:not(.bt-nav-compact) .bt-nav-pill .bt-nav__list a:hover {
	background: rgba(var(--md-on-surface-rgb), 0.06);
}

html:not(.bt-nav-compact) .bt-nav-pill .bt-nav__list .current-menu-item > a,
html:not(.bt-nav-compact) .bt-nav-pill .bt-nav__list .current_page_item > a,
html:not(.bt-nav-compact) .bt-nav-pill .bt-nav__list a[aria-current="page"] {
	background: var(--md-secondary-container);
	color: var(--md-on-secondary-container);
}

@media (max-width: 47.99rem) {
	.bt-header__actions > .bt-header-cta {
		display: none;
	}
}

/* When the header row does not fit, theme.js first hides the tagline
   (html.bt-nav-tight), then the header button (html.bt-nav-tightest; the
   contact page stays in the menu) and folds the menu only if the row still
   does not fit. The folded header shows both again. */
html.bt-nav-tight .bt-header__inner > .bt-brand .bt-brand__tag,
html.bt-nav-tightest .bt-header__actions > .bt-header-cta {
	display: none;
}

/* Navigation drawer: html.bt-nav-compact is set before first paint below 64rem
   and by theme.js whenever the menu does not fit next to the logo, even without
   the tagline (long menus, long translations). */
.bt-nav-compact .bt-nav__open {
	display: inline-grid;
}

.bt-nav-compact .bt-nav {
	order: 3;
}

.bt-nav-compact .bt-nav__scrim:not([hidden]) {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 99;
	background: rgba(var(--md-ink-rgb), 0.55);
	animation: bt-fade 0.2s var(--md-ease);
}

.bt-nav-compact .bt-nav__panel {
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	width: min(22.5rem, 88vw);
	box-sizing: border-box;
	padding: 0.75rem;
	background: var(--md-surface-container-low);
	box-shadow: var(--md-shadow-lg);
	overflow-y: auto;
	transform: translateX(104%);
	visibility: hidden;
	transition: transform 0.25s var(--md-ease), visibility 0s linear 0.25s;
}

.bt-nav-compact .bt-nav.is-open .bt-nav__panel {
	transform: none;
	visibility: visible;
	transition: transform 0.4s var(--md-ease-emphasized);
}

.bt-nav-compact .admin-bar .bt-nav__panel {
	top: var(--wp-admin--admin-bar--height, 46px);
}

.bt-nav-compact .bt-nav__drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.5rem 0.25rem 1rem 0.5rem;
	border-bottom: 1px solid var(--md-outline-variant);
	margin-bottom: 0.5rem;
}

.bt-nav-compact .bt-nav__drawer-head .bt-brand__tag {
	display: none;
}

.bt-nav-compact .bt-nav__list {
	flex-direction: column;
	align-items: stretch;
	gap: 0.125rem;
}

.bt-nav-compact .bt-nav__list a {
	height: 3.25rem;
	padding: 0 1rem;
	border-radius: var(--md-shape-m);
	font-size: 1rem;
}

.bt-nav-compact .bt-nav__list a::after {
	top: 0.875rem;
	bottom: 0.875rem;
	left: 0;
	right: auto;
	width: 3px;
	height: auto;
	border-radius: 0 3px 3px 0;
	transform: scaleY(0);
}

.bt-nav-compact .bt-nav__list a:hover {
	background: rgba(var(--md-on-surface-rgb), 0.05);
}

.bt-nav-compact .bt-nav__list .current-menu-item > a,
.bt-nav-compact .bt-nav__list .current_page_item > a,
.bt-nav-compact .bt-nav__list a[aria-current="page"] {
	background: var(--md-secondary-container);
	color: var(--md-on-secondary-container);
}

.bt-nav-compact .bt-nav__list .current-menu-item > a::after,
.bt-nav-compact .bt-nav__list a[aria-current="page"]::after {
	transform: none;
}

.bt-nav-compact .bt-nav__drawer-foot {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	margin-top: auto;
	padding: 1.25rem 0.5rem 0.5rem;
}

.bt-nav-compact .bt-nav__drawer-foot .bt-header-cta {
	align-self: stretch;
	min-height: 3rem;
	font-size: 0.9375rem;
}

html.bt-nav-compact.bt-nav-open {
	overflow: hidden;
}

@media (max-width: 29.99rem) {
	.bt-header__inner {
		gap: 0.5rem;
	}

	.bt-brand__tag {
		display: none;
	}

	.bt-brand__name {
		font-size: 0.9375rem;
	}

	.bt-brand__logo {
		width: 38px;
		height: 38px;
	}
}

@keyframes bt-fade {
	from {
		opacity: 0;
	}
}

/* ---------- Layout ---------- */
.bt-main {
	margin-top: 0;
	padding-bottom: var(--wp--preset--spacing--60);
}

.bt-main--home {
	padding-bottom: 0;
}

.bt-main--bare {
	padding-top: var(--wp--preset--spacing--50);
}

.bt-wrap {
	max-width: var(--bt-wide);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--bt-gutter);
	padding-right: var(--bt-gutter);
	box-sizing: border-box;
}

.bt-meta,
.bt-meta a {
	color: var(--md-on-surface-variant);
	font-size: 0.875rem;
	text-decoration: none;
}

/* Brand "ink" background with a blueprint grid and soft glows (hero, page heads, CTA). */
.bt-hero,
.bt-page-head,
.bt-cta,
.bt-rd-cta,
.bt-stats {
	position: relative;
	isolation: isolate;
	background-color: var(--md-ink);
	color: var(--md-on-ink);
}

.bt-hero::before,
.bt-page-head::before,
.bt-cta::before,
.bt-rd-cta::before,
.bt-stats::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 48px 48px;
	background-position: center top;
	-webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 0%, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 0%, transparent 75%);
	pointer-events: none;
}

.bt-hero::after,
.bt-page-head::after,
.bt-cta::after,
.bt-rd-cta::after,
.bt-stats::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(40rem 26rem at 85% 0%, color-mix(in srgb, var(--md-ink-accent) 30%, transparent), transparent 70%),
		radial-gradient(32rem 22rem at 0% 100%, color-mix(in srgb, var(--md-ink-accent-2) 20%, transparent), transparent 70%);
	pointer-events: none;
}

/* ---------- Page head (inner pages) ---------- */
.bt-page-head {
	margin-top: 0 !important;
	margin-bottom: var(--wp--preset--spacing--50);
	overflow: hidden;
}

.bt-page-head__inner {
	max-width: var(--bt-wide);
	margin: 0 auto;
	padding: clamp(2.25rem, 5vw, 3.75rem) var(--bt-gutter) clamp(2.25rem, 5vw, 3.5rem);
	box-sizing: border-box;
}

.bt-page-head__inner > * {
	margin: 0;
}

.bt-page-title {
	margin: 0;
	font-size: clamp(2rem, 4.6vw, 3.125rem);
	font-weight: 750;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.bt-page-head .bt-page-title {
	max-width: 52rem;
	color: var(--md-on-ink);
}

.bt-page-head .bt-meta {
	margin-top: 0.75rem;
	color: var(--md-on-ink-muted);
}

.bt-breadcrumb {
	margin-bottom: 1rem !important;
	font-size: 0.8125rem;
	font-weight: 500;
}

.bt-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--md-on-surface-variant);
}

.bt-breadcrumb li {
	display: inline-flex;
	align-items: center;
}

.bt-breadcrumb li + li::before {
	content: "";
	width: 1rem;
	height: 1rem;
	margin: 0 0.375rem;
	background: currentColor;
	opacity: 0.6;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bt-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.bt-breadcrumb a:hover {
	text-decoration: underline;
}

.bt-page-head .bt-breadcrumb ol {
	color: var(--md-on-ink-muted);
}

.bt-page-head .bt-breadcrumb a:hover {
	color: var(--md-on-ink);
}

.bt-page-head .bt-breadcrumb [aria-current] {
	color: var(--md-ink-accent);
}

/* ---------- Home ---------- */
.bt-home,
.bt-home-page {
	margin-top: 0;
}

.bt-home-page > .bt-home {
	margin: 0;
}

.bt-home > * {
	margin-top: 0;
	margin-bottom: 0;
}

.bt-home :where(h1, h2, h3, h4, p, ul, figure) {
	margin-top: 0;
}

.bt-home .bt-wrap > *,
.bt-section__head > * {
	margin-top: 0;
	margin-bottom: 0;
}

/* Hero. */
.bt-hero {
	padding-top: clamp(3.5rem, 8vw, 6rem);
	padding-bottom: clamp(6rem, 11vw, 8.5rem);
	overflow: hidden;
}

.bt-hero__grid {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.bt-hero__grid > * {
	margin: 0;
	min-width: 0;
}

@media (min-width: 64rem) {
	.bt-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
		gap: 4rem;
	}
}

.bt-hero__text > * {
	margin-top: 0;
	margin-bottom: 0;
}

.bt-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 1.5rem !important;
	padding: 0.4375rem 0.875rem 0.4375rem 0.75rem;
	border: 1px solid var(--md-ink-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--md-on-ink-muted);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.bt-dot {
	width: 0.5rem;
	height: 0.5rem;
	flex: none;
	border-radius: 50%;
	background: var(--md-ink-accent-2);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-ink-accent-2) 25%, transparent);
}

.bt-hero__title {
	margin-bottom: 1.5rem !important;
	color: var(--md-on-ink);
	font-size: var(--wp--preset--font-size--display);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.bt-hero__lead {
	max-width: 36rem;
	margin-bottom: 2.25rem !important;
	color: var(--md-on-ink-muted);
	font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
	line-height: 1.65;
}

.bt-hero__actions {
	gap: 0.75rem;
}

.bt-hero .is-style-outline .wp-block-button__link,
.bt-cta .is-style-outline .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.32);
	color: var(--md-on-ink);
}

.bt-hero .is-style-outline .wp-block-button__link:hover,
.bt-cta .is-style-outline .wp-block-button__link:hover {
	border-color: var(--md-on-ink);
	background: rgba(255, 255, 255, 0.08);
	color: var(--md-on-ink);
}

.bt-hero .wp-block-button:not(.is-style-outline):not(.is-style-tonal) .wp-block-button__link,
.bt-cta .wp-block-button:not(.is-style-outline):not(.is-style-tonal) .wp-block-button__link {
	background: var(--md-on-ink);
	color: var(--md-ink);
}

.bt-hero .wp-block-button:not(.is-style-outline):not(.is-style-tonal) .wp-block-button__link:hover,
.bt-cta .wp-block-button:not(.is-style-outline):not(.is-style-tonal) .wp-block-button__link:hover {
	background: #fff;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

/* Promotional video. */
.bt-video {
	position: relative;
	margin: 0;
}

.bt-video::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: 0;
	border-radius: calc(var(--md-shape-xl) + 1px);
	background: var(--bt-ink-gradient);
	opacity: 0.85;
	transform: translate(14px, 14px);
}

.bt-video__frame {
	position: relative;
	z-index: 1;
	aspect-ratio: 16 / 9;
	border-radius: var(--md-shape-xl);
	background: #fff;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
	overflow: hidden;
}

.bt-video__media {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #fff;
}

.bt-video__toggle {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--md-ink);
	color: var(--md-on-ink);
	box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.45);
	cursor: pointer;
	transition: transform 0.15s var(--md-ease), opacity 0.2s var(--md-ease);
}

.bt-video__toggle:hover {
	transform: scale(1.06);
}

.bt-video__pause,
.bt-video.is-playing .bt-video__play {
	display: none;
}

.bt-video.is-playing .bt-video__pause {
	display: block;
}

.bt-video.is-playing .bt-video__toggle {
	opacity: 0.55;
}

.bt-video.is-playing .bt-video__toggle:hover,
.bt-video.is-playing .bt-video__toggle:focus-visible {
	opacity: 1;
}

/* Registrations strip: a card overlapping the hero. */
.bt-section--creds {
	position: relative;
	z-index: 2;
	margin-top: calc(-1 * clamp(3.5rem, 7vw, 4.75rem)) !important;
}

.bt-creds {
	display: grid;
	margin: 0;
	padding: 0;
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-shape-l);
	background: var(--md-surface-container-lowest);
	box-shadow: var(--md-shadow-lg);
	list-style: none;
	overflow: hidden;
}

@media (min-width: 40rem) {
	.bt-creds {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.bt-creds {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.bt-cred {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-rows: auto auto auto;
	column-gap: 0.875rem;
	align-content: start;
	padding: 1.375rem 1.5rem;
	border-top: 1px solid var(--md-outline-variant);
	margin: -1px 0 0 -1px;
	border-left: 1px solid var(--md-outline-variant);
}

.bt-cred__icon {
	grid-row: 1 / span 3;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0.5rem;
	box-sizing: border-box;
	border-radius: var(--md-shape-m);
	background: var(--md-primary-container);
	color: var(--md-on-primary-container);
}

.bt-cred__issuer {
	color: var(--md-on-surface-variant);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bt-cred__label {
	margin-top: 0.125rem;
	color: var(--md-on-surface);
	font-size: 0.875rem;
	font-weight: 500;
}

.bt-cred__value {
	margin-top: 0.25rem;
	color: var(--md-primary-text);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	font-variant-numeric: tabular-nums;
}

.bt-cred__value--text {
	font-size: 1rem;
	line-height: 1.35;
}

/* Sections. */
.bt-section {
	padding-top: var(--bt-section);
	padding-bottom: var(--bt-section);
}

.bt-band {
	border-top: 1px solid var(--md-outline-variant);
	border-bottom: 1px solid var(--md-outline-variant);
	background: var(--md-surface-container-low);
}

.bt-section__head {
	max-width: 46rem;
	margin-bottom: clamp(2rem, 4vw, 3rem) !important;
}

.bt-overline {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.875rem !important;
	color: var(--md-primary-text);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.bt-overline::before {
	content: "";
	width: 1.75rem;
	height: 2px;
	border-radius: 2px;
	background: var(--bt-gradient);
}

.bt-section__title {
	margin-bottom: 1rem !important;
	font-size: clamp(1.875rem, 3.6vw, 2.75rem);
	font-weight: 750;
	line-height: 1.12;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.bt-section__lead {
	color: var(--md-on-surface-variant);
	font-size: 1.125rem;
	line-height: 1.65;
}

.bt-section__actions {
	margin-top: 2rem !important;
}

.bt-grid {
	display: grid;
	gap: 1.25rem;
	margin: 0;
}

.bt-grid > * {
	margin: 0;
}

@media (min-width: 48rem) {
	.bt-grid--2,
	.bt-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.bt-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Service cards: gradient icon tile (::before) with a masked icon (::after). */
.bt-service {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 2rem 1.75rem 1.75rem;
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-shape-l);
	background: var(--md-surface-container-lowest);
	overflow: hidden;
	transition: border-color 0.2s var(--md-ease), box-shadow 0.2s var(--md-ease), transform 0.2s var(--md-ease);
}

.bt-service:hover {
	border-color: color-mix(in srgb, var(--md-primary-text) 45%, var(--md-outline-variant));
	box-shadow: var(--md-shadow-lg);
	transform: translateY(-2px);
}

.bt-service > * {
	margin-top: 0;
	margin-bottom: 0;
}

.bt-service::before {
	content: "";
	display: block;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 1.5rem;
	border-radius: var(--md-shape-m);
	background: var(--bt-gradient);
	box-shadow: 0 8px 18px -8px rgba(var(--md-primary-rgb), 0.7);
}

.bt-service::after {
	content: "";
	position: absolute;
	top: calc(2rem + 0.8125rem);
	left: calc(1.75rem + 0.8125rem);
	width: 1.625rem;
	height: 1.625rem;
	background: #fff;
	-webkit-mask: var(--bt-icon) center / contain no-repeat;
	mask: var(--bt-icon) center / contain no-repeat;
}

.bt-service--code {
	--bt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z'/%3E%3C/svg%3E");
}

.bt-service--school {
	--bt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3 1 9l11 6 9-4.91V17h2V9L12 3z'/%3E%3C/svg%3E");
}

.bt-service--headset {
	--bt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h4v1h-7v2h6c1.66 0 3-1.34 3-3V10c0-4.97-4.03-9-9-9z'/%3E%3C/svg%3E");
}

.bt-service--ai {
	--bt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 9l1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25L19 9zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12l-5.5-2.5zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25L19 15z'/%3E%3C/svg%3E");
}

.bt-service--research {
	--bt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.8 18.4 14 10.67V6.5l1.35-1.69c.26-.33.03-.81-.39-.81H9.04c-.42 0-.65.48-.39.81L10 6.5v4.17L4.2 18.4c-.49.66-.02 1.6.8 1.6h14c.82 0 1.29-.94.8-1.6z'/%3E%3C/svg%3E");
}

.bt-service--cloud {
	--bt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z'/%3E%3C/svg%3E");
}

.bt-service--security {
	--bt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z'/%3E%3C/svg%3E");
}

.bt-service--consulting {
	--bt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z'/%3E%3C/svg%3E");
}

.bt-service--analytics {
	--bt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z'/%3E%3C/svg%3E");
}

.bt-service--mobile {
	--bt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 1.01 7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z'/%3E%3C/svg%3E");
}

.bt-service--web {
	--bt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
}

.bt-service--design {
	--bt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a9 9 0 0 0 0 18c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8zm-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12zm3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8zm5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8zm3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z'/%3E%3C/svg%3E");
}

.bt-service--database {
	--bt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z'/%3E%3C/svg%3E");
}

.bt-service--team {
	--bt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
}

.bt-service__num {
	position: absolute;
	top: 1.5rem;
	right: 1.75rem;
	color: var(--md-outline-variant);
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}

.bt-service__title {
	margin-bottom: 0.75rem !important;
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.bt-service__text {
	margin-bottom: 1.25rem !important;
	color: var(--md-on-surface-variant);
	font-size: 0.9375rem;
	line-height: 1.65;
}

.bt-checklist {
	margin: auto 0 0 !important;
	padding: 1.25rem 0 0;
	border-top: 1px solid var(--md-outline-variant);
	list-style: none;
	font-size: 0.9375rem;
}

.bt-checklist li {
	position: relative;
	padding: 0.3125rem 0 0.3125rem 1.75rem;
}

.bt-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5rem;
	width: 1.125rem;
	height: 1.125rem;
	background: var(--md-tertiary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* About + founders. */
.bt-about {
	display: grid;
	gap: 2.5rem;
	align-items: start;
}

@media (min-width: 64rem) {
	.bt-about {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
		gap: 4.5rem;
	}
}

.bt-about > *,
.bt-about__main > *,
.bt-about__aside > * {
	margin-top: 0;
	margin-bottom: 0;
}

.bt-about__main .bt-section__head {
	margin-bottom: 1.5rem !important;
}

.bt-about__text {
	margin-bottom: 1.125rem !important;
	color: var(--md-on-surface-variant);
	font-size: 1.0625rem;
	line-height: 1.75;
}

.bt-about__actions {
	margin-top: 1.75rem !important;
}

.bt-about__aside {
	padding: 1.75rem;
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-shape-l);
	background: var(--md-surface-container-lowest);
	box-shadow: var(--md-shadow);
}

.bt-founders__title {
	margin-bottom: 1.25rem !important;
	color: var(--md-on-surface-variant);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.bt-founders {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bt-founder {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.bt-founder + .bt-founder {
	padding-top: 1rem;
	border-top: 1px solid var(--md-outline-variant);
}

.bt-founder__avatar {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	flex: none;
	border-radius: 50%;
	background: var(--bt-gradient);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.bt-founder__avatar,
.bt-founder-card__avatar {
	overflow: hidden;
}

.bt-founder-card__avatar img {
	border: 3px solid var(--md-surface-container-lowest);
	box-sizing: border-box;
}

/* Company logo on the company card, same size as the founder photos. */
.bt-company-logo {
	display: block;
	width: 6rem;
	height: 6rem;
	margin-bottom: 1.25rem;
	border-radius: 22px;
	object-fit: cover;
	box-shadow: 0 10px 24px -10px rgba(var(--md-primary-rgb), 0.55);
}

/* Founder logos from their websites fill the round avatar (initials otherwise). */
.bt-founder__avatar img,
.bt-founder-card__avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	background: var(--md-surface-container-lowest);
}

.bt-founder__text {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
}

.bt-founder__name {
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.bt-founder__name a {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--md-on-surface);
	text-decoration: none;
}

.bt-founder__name a:hover {
	color: var(--md-primary-text);
}

.bt-founder__arrow {
	width: 1rem;
	height: 1rem;
	color: var(--md-primary-text);
}

.bt-founder__role {
	color: var(--md-primary-text);
	font-size: 0.875rem;
	font-weight: 600;
}

.bt-founder__note {
	color: var(--md-on-surface-variant);
	font-size: 0.875rem;
	line-height: 1.5;
}

/* Project cards. */
.bt-project {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 1.75rem 1.75rem 1.75rem 2rem;
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-shape-l);
	background: var(--md-surface-container-lowest);
	overflow: hidden;
	transition: box-shadow 0.2s var(--md-ease);
}

.bt-project::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--bt-gradient);
}

.bt-project:hover {
	box-shadow: var(--md-shadow-lg);
}

.bt-project > * {
	margin-top: 0;
	margin-bottom: 0;
}

.bt-project__code {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 0.375rem;
	margin-bottom: 1rem !important;
	padding: 0.25rem 0.625rem;
	border-radius: var(--md-shape-s);
	background: var(--md-tertiary-container);
	color: var(--md-on-tertiary-container);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bt-project__code strong {
	font-weight: 800;
	letter-spacing: 0.08em;
}

.bt-project__title {
	margin-bottom: 0.75rem !important;
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.015em;
}

.bt-project__text {
	color: var(--md-on-surface-variant);
	font-size: 0.9375rem;
	line-height: 1.65;
}

/* Business partner cards: white logo panel (logos are made for light
   backgrounds) over a name + domain footer; home section and Partners page. */
.bt-partners {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bt-partner {
	display: flex;
}

.bt-partner__card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-shape-l);
	background: var(--md-surface-container-lowest);
	color: var(--md-on-surface);
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.2s var(--md-ease), box-shadow 0.2s var(--md-ease), border-color 0.2s var(--md-ease);
}

a.bt-partner__card:hover {
	border-color: color-mix(in srgb, var(--md-primary-text) 45%, var(--md-outline-variant));
	box-shadow: var(--md-shadow-lg);
	color: var(--md-on-surface);
	transform: translateY(-3px);
}

.bt-partner__card::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: var(--bt-gradient);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--md-ease);
}

a.bt-partner__card:hover::after,
a.bt-partner__card:focus-visible::after {
	transform: none;
}

.bt-partner__logo {
	display: grid;
	place-items: center;
	height: 9rem;
	padding: 1.25rem 1.5rem;
	box-sizing: border-box;
	background:
		radial-gradient(circle at 50% 120%, rgba(var(--md-primary-rgb), 0.07), transparent 60%),
		#fff;
}

.bt-partner__logo img {
	max-width: 100%;
	max-height: 5.75rem;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.8;
	transition: filter 0.25s var(--md-ease), opacity 0.25s var(--md-ease), transform 0.25s var(--md-ease);
}

a.bt-partner__card:hover .bt-partner__logo img,
a.bt-partner__card:focus-visible .bt-partner__logo img {
	filter: none;
	opacity: 1;
	transform: scale(1.04);
}

.bt-partner__initials {
	display: grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: var(--bt-gradient);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
}

.bt-partner__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem 1.25rem 1.125rem;
	border-top: 1px solid var(--md-outline-variant);
}

.bt-partner__role {
	align-self: flex-start;
	margin-bottom: 0.25rem;
	padding: 0.125rem 0.625rem;
	border-radius: 999px;
	background: var(--md-primary-container);
	color: var(--md-on-primary-container);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.bt-partner__name {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.bt-partner__host {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-top: auto;
	color: var(--md-primary-text);
	font-size: 0.8125rem;
	font-weight: 500;
}

.bt-partner__host .md-icon {
	width: 0.9375rem;
	height: 0.9375rem;
	transition: transform 0.2s var(--md-ease);
}

a.bt-partner__card:hover .bt-partner__host .md-icon {
	transform: translate(2px, -2px);
}

.bt-partner-page {
	max-width: var(--bt-wide) !important;
	margin-bottom: var(--wp--preset--spacing--50) !important;
	padding: 0 var(--bt-gutter);
	box-sizing: border-box;
}

.bt-partner-page .bt-coop {
	margin-top: 2.5rem;
}

/* Carousels (home partners and books): a scroll-snap row; arrows and dots
   appear only when it overflows (theme.js adds .is-scrollable). */
.bt-carousel {
	position: relative;
}

.bt-carousel__track {
	display: flex !important;
	gap: 1.25rem;
	margin: 0 -0.5rem;
	padding: 0.5rem 0.5rem 1.25rem;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.bt-carousel__track::-webkit-scrollbar {
	display: none;
}

.bt-carousel__track > li {
	flex: 0 0 auto;
	scroll-snap-align: start;
	scroll-margin-left: 0.5rem;
}

/* Partners: four per row on wide screens, then 2½ and 1¼ so the next card peeks in. */
.bt-carousel--partners .bt-carousel__track > li {
	width: calc((100% - 3 * 1.25rem) / 4);
}

@media (max-width: 63.99rem) {
	.bt-carousel--partners .bt-carousel__track > li {
		width: calc((100% - 2 * 1.25rem) / 2.5);
	}
}

@media (max-width: 39.99rem) {
	.bt-carousel--partners .bt-carousel__track > li {
		width: 78%;
	}
}

/* Projects: two per row on wide screens, 1¼ on phones. */
.bt-carousel--projects .bt-carousel__track > li {
	width: calc((100% - 1.25rem) / 2);
}

@media (max-width: 47.99rem) {
	.bt-carousel--projects .bt-carousel__track > li {
		width: 85%;
	}
}

.bt-carousel--projects .bt-project {
	height: 100%;
	box-sizing: border-box;
}

.bt-project__link {
	margin-top: 1rem;
}

.bt-carousel--books .bt-carousel__track > li {
	width: 100%;
}

.bt-carousel--books .bt-book {
	height: 100%;
	box-sizing: border-box;
	box-shadow: var(--md-shadow);
}

.bt-carousel__nav {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 0.5rem;
}

.bt-carousel.is-scrollable .bt-carousel__nav {
	display: flex;
}

.bt-carousel__btn {
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid var(--md-outline-variant);
	border-radius: 50%;
	background: var(--md-surface-container-lowest);
	color: var(--md-on-surface);
	cursor: pointer;
	transition: border-color 0.15s var(--md-ease), color 0.15s var(--md-ease), background-color 0.15s var(--md-ease);
}

.bt-carousel__btn:hover {
	border-color: var(--md-primary-text);
	color: var(--md-primary-text);
}

.bt-carousel__btn .md-icon {
	width: 1.375rem;
	height: 1.375rem;
}

.bt-carousel__dots {
	display: flex;
	gap: 0.5rem;
}

/* 24px touch target (WCAG 2.2 target size); the visible dot is drawn inside it. */
.bt-carousel__dot {
	display: grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	cursor: pointer;
}

.bt-carousel__dot::before {
	content: "";
	display: block;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: var(--md-outline-variant);
	transition: width 0.25s var(--md-ease), background-color 0.25s var(--md-ease);
}

.bt-carousel__dot[aria-current="true"] {
	width: 2.5rem;
}

.bt-carousel__dot[aria-current="true"]::before {
	width: 1.5rem;
	background: var(--bt-gradient);
}

/* Social responsibility. */
.bt-social {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 56rem) {
	.bt-social {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 4rem;
	}
}

.bt-social > *,
.bt-social__body > * {
	margin-top: 0;
	margin-bottom: 0;
}

.bt-social__img img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--md-shape-l);
	box-shadow: var(--md-shadow-lg);
}

.bt-social__kicker {
	display: inline-flex;
	margin-bottom: 0.75rem !important;
	padding: 0.25rem 0.625rem;
	border-radius: var(--md-shape-s);
	background: var(--md-secondary-container);
	color: var(--md-on-secondary-container);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bt-social__title {
	margin-bottom: 1rem !important;
	font-size: clamp(1.5rem, 2.8vw, 2rem);
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.bt-social__text {
	margin-bottom: 1.75rem !important;
	color: var(--md-on-surface-variant);
	font-size: 1.0625rem;
	line-height: 1.7;
}

/* Call to action. */
.bt-section--cta {
	padding-top: 0;
}

.bt-cta {
	padding: clamp(2.5rem, 6vw, 4.5rem);
	border-radius: var(--md-shape-xl);
	overflow: hidden;
	text-align: center;
}

.bt-cta > * {
	margin-top: 0;
	margin-bottom: 0;
}

.bt-cta__title {
	margin: 0 auto 1rem !important;
	max-width: 40rem;
	color: var(--md-on-ink);
	font-size: clamp(1.875rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.bt-cta__text {
	max-width: 36rem;
	margin: 0 auto 2rem !important;
	color: var(--md-on-ink-muted);
	font-size: 1.125rem;
	line-height: 1.65;
}

.bt-cta__actions {
	justify-content: center;
	gap: 0.75rem;
}

/* ---------- Contact cards (Contact page, overlapping the page head) ---------- */
.bt-page-head:has(+ .bt-page-feature) {
	margin-bottom: 0;
}

.bt-page-head:has(+ .bt-page-feature) .bt-page-head__inner {
	padding-bottom: clamp(5rem, 9vw, 6.5rem);
}

.bt-page-feature {
	position: relative;
	z-index: 2;
	max-width: var(--bt-wide) !important;
	margin-top: calc(-1 * clamp(3.25rem, 6vw, 4.25rem)) !important;
	margin-bottom: var(--wp--preset--spacing--50) !important;
	padding: 0 var(--bt-gutter);
	box-sizing: border-box;
}

.bt-contact-cards__grid,
.bt-about-intro {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 1.25rem;
}

.bt-contact-cards .bt-contact-card--map {
	margin-top: 1.25rem;
}

.bt-contact-cards {
	max-width: var(--bt-wide) !important;
	margin-top: calc(-1 * clamp(3.25rem, 6vw, 4.25rem)) !important;
	margin-bottom: var(--wp--preset--spacing--50) !important;
	padding: 0 var(--bt-gutter);
	box-sizing: border-box;
}

/* On small screens the main column's own padding already provides the gutter. */
@media (max-width: 47.99rem) {
	.bt-page-feature,
	.bt-partner-page {
		padding: 0;
	}
}

.bt-contact-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 1.75rem;
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-shape-l);
	background: var(--md-surface-container-lowest);
	box-shadow: var(--md-shadow-lg);
	overflow: hidden;
	transition: transform 0.2s var(--md-ease), border-color 0.2s var(--md-ease);
}

.bt-contact-card::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: var(--bt-gradient);
}

.bt-contact-card:has(.bt-contact-card__action):hover {
	border-color: color-mix(in srgb, var(--md-primary-text) 45%, var(--md-outline-variant));
	transform: translateY(-3px);
}

.bt-contact-card__icon {
	width: 3rem;
	height: 3rem;
	margin-bottom: 1.25rem;
	padding: 0.75rem;
	box-sizing: border-box;
	border-radius: var(--md-shape-m);
	background: var(--bt-gradient);
	color: #fff;
	box-shadow: 0 8px 18px -8px rgba(var(--md-primary-rgb), 0.7);
}

.bt-contact-card__label {
	margin: 0 0 0.5rem;
	color: var(--md-on-surface-variant);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.bt-contact-card__body {
	flex: 1;
	margin-bottom: 1.25rem;
	color: var(--md-on-surface);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.bt-contact-card__body > * {
	margin: 0;
}

.bt-contact-card__value {
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	overflow-wrap: break-word;
}

.bt-contact-card address {
	font-style: normal;
}

.bt-contact-card address strong {
	font-size: 1.0625rem;
	font-weight: 700;
}

.bt-contact-card__ids {
	display: grid;
	gap: 0.625rem;
}

.bt-contact-card__ids > div {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	padding-bottom: 0.625rem;
	border-bottom: 1px solid var(--md-outline-variant);
}

.bt-contact-card__ids > div:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.bt-contact-card__ids dt {
	color: var(--md-on-surface-variant);
	font-size: 0.8125rem;
}

.bt-contact-card__ids dd {
	margin: 0;
	color: var(--md-primary-text);
	font-weight: 700;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
}

.bt-contact-card__action {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: var(--md-primary-text);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

/* The whole card is the link target. */
.bt-contact-card__action::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* Map: a full-width card under the others. */
.bt-contact-card--map {
	padding: 0;
}

.bt-contact-card--map:hover {
	transform: none;
}

.bt-contact-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	padding: 1.25rem 1.75rem;
}

.bt-contact-card__head .bt-contact-card__icon {
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	padding: 0.5rem;
}

.bt-contact-card__head .bt-contact-card__label {
	margin: 0;
	flex: 1;
}

/* Only the link opens the map; the iframe stays interactive. */
.bt-contact-card--map .bt-contact-card__action::after {
	display: none;
}

.bt-contact-card__map {
	position: relative;
	height: clamp(18rem, 42vw, 26rem);
	border-top: 1px solid var(--md-outline-variant);
	background: var(--md-surface-container);
}

.bt-contact-card__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Map placeholder until the visitor loads the Google map (Pages tab → Map). */
.bt-map-consent {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 1.5rem;
	text-align: center;
	background:
		radial-gradient(circle at 50% 45%, rgba(var(--md-primary-rgb), 0.14), transparent 55%),
		repeating-linear-gradient(0deg, transparent 0 39px, rgba(var(--md-on-surface-rgb), 0.06) 39px 40px),
		repeating-linear-gradient(90deg, transparent 0 39px, rgba(var(--md-on-surface-rgb), 0.06) 39px 40px),
		var(--md-surface-container);
}

.bt-map-consent__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	max-width: 28rem;
}

.bt-map-consent__pin {
	width: 3rem;
	height: 3rem;
	padding: 0.625rem;
	border-radius: 50%;
	background: var(--md-primary);
	color: var(--md-on-primary);
	box-shadow: 0 0 0 0.5rem rgba(var(--md-primary-rgb), 0.16);
	margin-bottom: 0.5rem;
}

.bt-map-consent__title {
	margin: 0;
	font-weight: 600;
	color: var(--md-on-surface);
}

.bt-map-consent__text {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	color: var(--md-on-surface-variant);
}

.bt-map-consent__button {
	gap: 0.5rem;
}

.bt-map-consent__button .md-icon {
	width: 1.125rem;
	height: 1.125rem;
}

.bt-contact-card__note {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	color: var(--md-on-surface-variant);
}

.bt-contact-card__note .md-icon {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.1em;
	color: var(--md-primary-text);
}

/* Appearance tab → Partner logos: always in colour. */
.bt-partners-color .bt-partner__logo img {
	filter: none;
	opacity: 1;
}

.bt-contact-card__action .md-icon {
	width: 1.125rem;
	height: 1.125rem;
	transition: transform 0.2s var(--md-ease);
}

.bt-contact-card:hover .bt-contact-card__action .md-icon {
	transform: translateX(3px);
}

.bt-contact-card--address:hover .bt-contact-card__action .md-icon {
	transform: translate(2px, -2px);
}

/* ---------- Foundation rationale (founder cards + article) ---------- */
.bt-founder-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.75rem;
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-shape-l);
	background: var(--md-surface-container-lowest);
	box-shadow: var(--md-shadow-lg);
	overflow: hidden;
}

.bt-founder-card > * {
	margin: 0;
}

.bt-founder-card::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: var(--bt-gradient);
}

/* Large founder photo with a brand-gradient ring (initials when no photo). */
.bt-founder-card__avatar {
	display: grid;
	place-items: center;
	width: 6rem;
	height: 6rem;
	margin-bottom: 1.25rem;
	padding: 3px;
	box-sizing: border-box;
	border-radius: 50%;
	background: var(--bt-gradient);
	box-shadow: 0 10px 24px -10px rgba(var(--md-primary-rgb), 0.55);
	color: #fff;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.bt-founder-card__role {
	margin-bottom: 0.25rem !important;
	color: var(--md-primary-text);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.bt-founder-card__name {
	margin-bottom: 0.5rem !important;
	font-size: 1.375rem;
	font-weight: 750;
	letter-spacing: -0.02em;
}

.bt-founder-card__note {
	flex: 1;
	margin-bottom: 1.25rem !important;
	color: var(--md-on-surface-variant);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.bt-founder-card--facts .bt-contact-card__icon {
	margin-bottom: 1rem;
}

.bt-facts {
	display: grid;
	gap: 0.75rem;
	width: 100%;
}

.bt-facts > div {
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--md-outline-variant);
}

.bt-facts > div:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.bt-facts dt {
	color: var(--md-on-surface-variant);
	font-size: 0.8125rem;
}

.bt-facts dd {
	margin: 0.125rem 0 0;
	font-weight: 600;
	line-height: 1.45;
}

/* The text as an article: lead paragraph, readable measure, accent rule. */
.bt-page-about .bt-entry > p {
	color: var(--md-on-surface-variant);
	font-size: 1.0625rem;
	line-height: 1.85;
}

.bt-page-about .bt-entry > p:first-of-type {
	padding-left: 1.5rem;
	border-left: 3px solid transparent;
	border-image: var(--bt-gradient) 1;
	color: var(--md-on-surface);
	font-size: clamp(1.1875rem, 2vw, 1.375rem);
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: -0.01em;
}

.bt-page-about .bt-entry > p:last-of-type {
	margin-top: 2.5rem;
	padding: 1.5rem 1.75rem;
	border-radius: var(--md-shape-l);
	background: var(--md-surface-container-low);
	color: var(--md-on-surface);
	font-weight: 500;
}

/* ---------- Social responsibility (book showcase) ---------- */
.bt-social-books {
	display: grid;
	gap: 1.5rem;
}

.bt-book {
	position: relative;
	display: grid;
	gap: 2rem;
	align-items: center;
	padding: clamp(1.5rem, 4vw, 3rem);
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-shape-xl);
	background:
		radial-gradient(60rem 30rem at 0% 0%, rgba(var(--md-primary-rgb), 0.06), transparent 60%),
		var(--md-surface-container-lowest);
	box-shadow: var(--md-shadow-lg);
	overflow: hidden;
}

.bt-book::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: var(--bt-gradient);
}

@media (min-width: 60rem) {
	.bt-book {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		gap: clamp(2.5rem, 5vw, 4rem);
	}
}

/* The cover spread as a slightly turned book that straightens on hover. */
.bt-book__cover {
	perspective: 1600px;
}

.bt-book__cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--md-shape-m);
	box-shadow: 24px 30px 50px -18px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.2);
	transform: rotateY(8deg) rotateX(2deg);
	transform-origin: left center;
	transition: transform 0.6s var(--md-ease-emphasized), box-shadow 0.6s var(--md-ease-emphasized);
}

.bt-book:hover .bt-book__cover img {
	box-shadow: 12px 18px 40px -16px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
	transform: none;
}

.bt-book__body > * {
	margin: 0;
}

.bt-book__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem !important;
	padding: 0.3125rem 0.75rem 0.3125rem 0.625rem;
	border-radius: 999px;
	background: var(--md-secondary-container);
	color: var(--md-on-secondary-container);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bt-book__kicker .md-icon {
	width: 0.9375rem;
	height: 0.9375rem;
	color: #d6455d;
}

.bt-book__title {
	margin-bottom: 0.75rem !important;
	font-size: clamp(1.5rem, 2.8vw, 2.125rem);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.bt-book__subtitle {
	margin-bottom: 1rem !important;
	color: var(--md-primary-text);
	font-size: 1rem;
	font-weight: 600;
}

.bt-book__text {
	color: var(--md-on-surface-variant);
	font-size: 1.0625rem;
	line-height: 1.75;
}

.bt-book__dedication {
	margin: 1.5rem 0 0 !important;
	padding: 1rem 1.25rem;
	border: 0;
	border-left: 3px solid transparent;
	border-image: var(--bt-gradient) 1;
	background: var(--md-surface-container-low);
	color: var(--md-on-surface);
	font-size: 0.9375rem;
	font-style: italic;
	line-height: 1.65;
}

.bt-book__dedication p {
	margin: 0;
}

.bt-book__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.75rem !important;
}

.bt-book__read {
	min-height: 2.75rem;
	padding: 0 1.375rem;
	font-size: 0.9375rem;
}

.bt-book__read .md-icon {
	width: 1.125rem;
	height: 1.125rem;
}

.bt-book__format {
	padding: 0.25rem 0.5rem;
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-shape-s);
	color: var(--md-on-surface-variant);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
	.bt-book__cover img {
		transform: none;
	}
}

/* ---------- Privacy policy (legal document layout) ---------- */
/* The content column widens to the site width on this page (table of contents + text). */
.bt-page-privacy .bt-main > .wp-block-post-content {
	max-width: var(--bt-wide);
}

.bt-legal {
	display: grid;
	gap: 2rem;
	align-items: start;
	max-width: var(--bt-wide) !important;
	margin-top: 0 !important;
	counter-reset: bt-legal;
}

@media (min-width: 64rem) {
	.bt-legal {
		grid-template-columns: 18rem minmax(0, 1fr);
		gap: 3.5rem;
	}

	.bt-legal__aside {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 6rem);
	}
}

.bt-legal__aside {
	display: grid;
	gap: 1.25rem;
}

/* Small screens: contents first, then the text, the contact card last. */
@media (max-width: 63.99rem) {
	.bt-legal__aside {
		display: contents;
	}

	.bt-legal__body {
		order: 2;
	}

	.bt-legal__help {
		order: 3;
	}
}

.bt-legal__toc,
.bt-legal__help {
	padding: 1.5rem;
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-shape-l);
	background: var(--md-surface-container-lowest);
}

.bt-legal__toc-title {
	margin: 0 0 0.875rem;
	color: var(--md-on-surface-variant);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.bt-legal__toc ol {
	display: grid;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bt-legal__toc > ol > li {
	display: grid;
	grid-template-columns: 1.75rem minmax(0, 1fr);
	align-items: baseline;
}

.bt-legal__toc ol ol {
	grid-column: 2;
	margin: 0.25rem 0 0.5rem;
	padding-left: 0.75rem;
	border-left: 1px solid var(--md-outline-variant);
}

.bt-legal__num {
	color: var(--md-primary-text);
	font-size: 0.75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.bt-legal__toc a {
	display: block;
	padding: 0.25rem 0;
	color: var(--md-on-surface-variant);
	font-size: 0.875rem;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.15s var(--md-ease);
}

.bt-legal__toc > ol > li > a {
	color: var(--md-on-surface);
	font-weight: 600;
}

.bt-legal__toc a:hover,
.bt-legal__toc a[aria-current] {
	color: var(--md-primary-text);
}

.bt-legal__toc a[aria-current] {
	font-weight: 700;
}

.bt-legal__help {
	background:
		radial-gradient(20rem 12rem at 100% 0%, rgba(var(--md-primary-rgb), 0.08), transparent 70%),
		var(--md-surface-container-lowest);
}

.bt-legal__help .bt-contact-card__icon {
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: 1rem;
	padding: 0.5rem;
}

.bt-legal__help p {
	margin: 0 0 0.75rem;
	color: var(--md-on-surface-variant);
	font-size: 0.875rem;
	line-height: 1.55;
}

.bt-legal__help .bt-legal__help-title {
	margin-bottom: 0.25rem;
	color: var(--md-on-surface);
	font-size: 1rem;
	font-weight: 700;
}

.bt-legal__help .bt-contact-card__action {
	font-size: 0.875rem;
	overflow-wrap: anywhere;
}

.bt-legal__help .bt-contact-card__action::after {
	display: none;
}

.bt-legal__body {
	min-width: 0;
	max-width: 46rem;
}

.bt-legal__body > :first-child {
	margin-top: 0;
}

.bt-legal__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.5rem;
}

.bt-legal__meta span {
	padding: 0.3125rem 0.75rem;
	border-radius: 999px;
	background: var(--md-surface-container-high);
	color: var(--md-on-surface-variant);
	font-size: 0.8125rem;
	font-weight: 500;
}

.bt-legal__intro {
	margin-bottom: 2.5rem;
	padding: 1.5rem 1.75rem;
	border-left: 3px solid transparent;
	border-image: var(--bt-gradient) 1;
	background: var(--md-surface-container-low);
}

.bt-legal__intro > * {
	margin: 0;
}

.bt-legal__intro > * + * {
	margin-top: 0.875rem;
}

.bt-legal__intro p {
	color: var(--md-on-surface);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.bt-entry .bt-legal__body h2 {
	display: flex;
	align-items: baseline;
	gap: 0.875rem;
	margin: 3rem 0 1rem;
	padding: 0 0 0.75rem;
	scroll-margin-top: 6rem;
	counter-increment: bt-legal;
}

.bt-entry .bt-legal__body h2::before {
	content: counter(bt-legal, decimal-leading-zero);
	flex: none;
	color: transparent;
	background: var(--bt-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	font-size: 0.85em;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.bt-entry .bt-legal__body h3 {
	margin: 1.75rem 0 0.5rem;
	font-size: 1.125rem;
	scroll-margin-top: 6rem;
}

.bt-legal__body p,
.bt-legal__body li {
	color: var(--md-on-surface-variant);
	font-size: 1rem;
	line-height: 1.8;
}

.bt-legal__body ul {
	padding-left: 1.25rem;
}

.bt-legal__body li::marker {
	color: var(--md-primary-text);
}

.bt-legal__body strong {
	color: var(--md-on-surface);
}

/* ---------- Page content ---------- */
.bt-entry :where(p, li) {
	line-height: 1.75;
}

.bt-entry .wp-block-heading {
	margin-top: 2.5rem;
	letter-spacing: -0.02em;
}

.bt-entry > .wp-block-heading:first-child {
	margin-top: 0;
}

.bt-entry h2 {
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--md-outline-variant);
	font-size: clamp(1.375rem, 2.6vw, 1.75rem);
}

.bt-entry h3 {
	font-size: 1.25rem;
}

/* Label + value pairs (İletişim: PIC, OID …). No text-transform: the labels are
   often English terms on Turkish pages, and Turkish uppercase turns i into İ. */
.bt-entry h4 {
	margin-bottom: 0.25rem;
	color: var(--md-on-surface-variant);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.bt-entry h4 + p {
	margin-top: 0;
	font-size: 1.125rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* Text links only: buttons keep their own colours (on-primary on the blue fill). */
.bt-entry a:not(.wp-block-button__link):not(.wp-element-button) {
	color: var(--md-primary-text);
}

.bt-entry img,
.bt-featured img {
	border-radius: var(--md-shape-l);
}

.bt-entry iframe {
	max-width: 100%;
	border-radius: var(--md-shape-l) !important;
}

.bt-entry .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--md-outline-variant);
}

/* Item cards built by inc/content.php. */
.bt-items {
	display: grid;
	gap: 1rem;
}

@media (min-width: 48rem) {
	.bt-items--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.bt-item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1rem;
	margin-bottom: 1rem;
	padding: 1.5rem 1.5rem 1.5rem 1.75rem;
	box-sizing: border-box;
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-shape-l);
	background: var(--md-surface-container-lowest);
	overflow: hidden;
	transition: box-shadow 0.2s var(--md-ease);
}

.bt-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--bt-gradient);
}

.bt-items > .bt-item {
	margin: 0;
}

.bt-item:hover {
	box-shadow: var(--md-shadow-lg);
}

.bt-item > * {
	margin: 0;
}

.bt-item__kicker {
	align-self: flex-start;
	padding: 0.25rem 0.625rem;
	border-radius: var(--md-shape-s);
	background: var(--md-tertiary-container);
	color: var(--md-on-tertiary-container);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bt-entry .bt-item__title {
	margin: 0 !important;
	padding: 0;
	border: 0;
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.015em;
}

.bt-item__rows {
	display: grid;
	gap: 0.5rem;
}

.bt-item__row {
	display: grid;
	grid-template-columns: 8rem minmax(0, 1fr);
	gap: 0.125rem 1rem;
}

.bt-item--compact .bt-item__row,
.bt-item__row--plain {
	grid-template-columns: minmax(0, 1fr);
}

.bt-item--compact .bt-item__row dt {
	display: none;
}

.bt-item__row dt {
	padding-top: 0.2rem;
	color: var(--md-on-surface-variant);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bt-item__row dd {
	margin: 0;
	color: var(--md-on-surface-variant);
	font-size: 0.9375rem;
	line-height: 1.65;
}

@media (max-width: 35.99rem) {
	.bt-item__row {
		grid-template-columns: minmax(0, 1fr);
	}
}

.bt-item__more {
	padding-top: 0.75rem;
	border-top: 1px solid var(--md-outline-variant);
}

.bt-item__more summary {
	color: var(--md-primary-text);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.bt-item__more > div {
	margin-top: 0.5rem;
	color: var(--md-on-surface-variant);
	font-size: 0.9375rem;
	line-height: 1.65;
}

.bt-item__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: auto !important;
	padding-top: 0.25rem;
}

/* Forms: outlined text fields (Jetpack contact form, search). */
.bt-entry :where(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], input[type="number"], textarea, select),
.wp-block-search__input {
	width: 100%;
	box-sizing: border-box;
	min-height: 3.25rem;
	padding: 0.875rem 1rem;
	border: 1px solid var(--md-outline) !important;
	border-radius: var(--md-shape-s) !important;
	background: var(--md-surface-container-lowest) !important;
	color: var(--md-on-surface) !important;
	font: inherit;
	transition: border-color 0.15s var(--md-ease), box-shadow 0.15s var(--md-ease);
}

.bt-entry :where(input, textarea, select):hover {
	border-color: var(--md-on-surface) !important;
}

.bt-entry :where(input, textarea, select):focus,
.wp-block-search__input:focus {
	outline: none;
	border-color: var(--md-primary-text) !important;
	box-shadow: 0 0 0 3px rgba(var(--md-primary-rgb), 0.2);
}

.bt-entry :where(label, .grunion-field-label) {
	color: var(--md-on-surface-variant);
	font-size: 0.875rem;
	font-weight: 600;
}

.bt-entry button[type="submit"],
.bt-entry .contact-form button,
.bt-entry .wp-block-jetpack-button .wp-block-button__link {
	min-height: 2.75rem;
	padding: 0 1.375rem !important;
	border: 0 !important;
	border-radius: var(--md-shape-s) !important;
	background: var(--md-primary) !important;
	color: var(--md-on-primary) !important;
	font: inherit;
	font-size: 0.9375rem !important;
	font-weight: 600;
	cursor: pointer;
}

/* ---------- Blog lists ---------- */
.bt-posts__list {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bt-post {
	padding: 1.5rem 1.75rem;
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-shape-l);
	background: var(--md-surface-container-lowest);
}

.bt-post > * {
	margin: 0;
}

.bt-post__title {
	margin: 0.25rem 0 0.5rem;
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.bt-post__title a {
	color: var(--md-on-surface);
	text-decoration: none;
}

.bt-post__title a:hover {
	color: var(--md-primary-text);
}

.bt-post__excerpt {
	color: var(--md-on-surface-variant);
}

.bt-pagination {
	margin-top: 2rem;
}

/* 404 and closed page. */
.bt-notfound {
	display: grid;
	gap: 2rem;
	align-items: center;
	max-width: var(--bt-wide) !important;
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.bt-notfound > * {
	margin: 0;
}

@media (min-width: 48rem) {
	.bt-notfound {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: 3rem;
	}
}

.bt-notfound__img img {
	display: block;
	width: 100%;
	max-width: 26rem;
	height: auto;
	margin: 0 auto;
}

.bt-notfound__code {
	margin: 0;
	background: var(--bt-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: clamp(6rem, 18vw, 11rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.06em;
	text-align: center;
}

.bt-notfound__text > * {
	margin-top: 0;
}

.bt-notfound .bt-page-title {
	margin-bottom: 1rem;
}

.bt-notfound__lead,
.bt-closed__lead {
	margin-bottom: 1.75rem;
	color: var(--md-on-surface-variant);
	font-size: 1.125rem;
}

.bt-closed-page {
	min-height: 100vh;
	margin: 0;
	display: grid;
	place-items: center;
}

.bt-closed {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 36rem;
	padding: 2rem var(--bt-gutter);
	text-align: center;
}

.bt-closed > * {
	margin-top: 0;
}

.bt-closed > .bt-brand {
	margin-bottom: 2rem;
}

.bt-closed__img {
	width: min(18rem, 70vw);
	height: auto;
	margin-bottom: 1.5rem;
}

.bt-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	padding: 0.375rem 0.875rem 0.375rem 0.75rem;
	border-radius: 999px;
	background: var(--md-secondary-container);
	color: var(--md-on-secondary-container);
	font-size: 0.8125rem;
	font-weight: 600;
}

.bt-closed .bt-page-title {
	margin-bottom: 0.75rem;
}

/* ---------- Footer ---------- */
.bt-site-footer {
	margin-top: 0;
}

.bt-footer {
	margin: 0;
	background: var(--md-ink);
	color: var(--md-on-ink-muted);
	font-size: 0.9375rem;
}

.bt-footer > *,
.bt-footer__inner > * {
	margin: 0;
}

.bt-footer__inner {
	max-width: var(--bt-wide);
	margin: 0 auto;
	padding: clamp(3rem, 6vw, 4.5rem) var(--bt-gutter) 2rem;
	box-sizing: border-box;
}

.bt-footer__cols {
	display: grid;
	gap: 2.5rem 2rem;
}

@media (min-width: 40rem) {
	.bt-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.bt-footer__cols {
		grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr) minmax(0, 1.15fr) minmax(0, 0.9fr);
		gap: 3rem;
	}
}

.bt-footer__col > * {
	margin-top: 0;
}

.bt-footer .bt-brand,
.bt-footer .bt-brand:hover {
	color: var(--md-on-ink);
}

.bt-footer .bt-brand__tag {
	color: var(--md-on-ink-muted);
}

.bt-footer__desc {
	max-width: 24rem;
	margin: 1.25rem 0 1.5rem;
	line-height: 1.7;
}

.bt-footer__title {
	margin-bottom: 1.125rem;
	color: var(--md-on-ink);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.bt-footer a {
	color: var(--md-on-ink-muted);
	text-decoration: none;
	transition: color 0.15s var(--md-ease);
}

.bt-footer a:hover {
	color: var(--md-on-ink);
}

.bt-footer__links,
.bt-footer__list {
	display: grid;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bt-footer__links .current-menu-item > a,
.bt-footer__links a[aria-current="page"] {
	color: var(--md-on-ink);
}

.bt-footer__contact {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
}

.bt-footer__contact .md-icon {
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.2rem;
	color: var(--md-ink-accent);
}

.bt-footer__contact address {
	font-style: normal;
	line-height: 1.6;
}

.bt-footer__ids {
	display: grid;
	gap: 0.875rem;
	margin: 0;
}

.bt-footer__ids dt {
	color: var(--md-on-ink-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.bt-footer__ids dd {
	margin: 0.125rem 0 0;
	color: var(--md-on-ink);
	font-weight: 600;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
}

.bt-profiles {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bt-footer .bt-chip {
	border-color: var(--md-ink-line);
	color: var(--md-on-ink);
}

.bt-footer .bt-chip:hover {
	border-color: var(--md-ink-accent);
	background: rgba(255, 255, 255, 0.06);
}

.bt-footer .bt-chip__icon {
	color: var(--md-ink-accent);
}

.bt-bottombar {
	border-top: 1px solid var(--md-ink-line);
	font-size: 0.8125rem;
}

.bt-bottombar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	max-width: var(--bt-wide);
	min-height: 3.5rem;
	margin: 0 auto;
	padding: 0.75rem var(--bt-gutter);
	box-sizing: border-box;
}

.bt-bottombar__copy {
	margin: 0;
}

.bt-bottombar__group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.5rem;
}

.bt-bottombar__langs {
	display: inline-flex;
	gap: 0.75rem;
}

.bt-bottombar__lang {
	font-weight: 600;
	letter-spacing: 0.04em;
}

.bt-bottombar__lang.is-current {
	color: var(--md-on-ink) !important;
	text-decoration: underline !important;
	text-underline-offset: 0.3em;
}

.bt-flags {
	display: flex;
	justify-content: center;
	margin: 2.5rem 0 0 !important;
}

.bt-flags img {
	display: block;
	width: min(24rem, 100%);
	height: auto;
}

.bt-footer-note {
	margin: 2rem 0 0 !important;
	font-size: 0.8125rem;
	text-align: center;
}

/* Back to top. */
.bt-to-top {
	position: fixed;
	right: 1rem;
	bottom: 1.25rem;
	z-index: 40;
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: var(--md-shape-m);
	background: var(--md-primary);
	color: var(--md-on-primary);
	box-shadow: var(--md-shadow-lg);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s var(--md-ease), transform 0.2s var(--md-ease), visibility 0s linear 0.2s;
}

.bt-to-top .md-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.bt-to-top:hover {
	background: color-mix(in srgb, var(--md-primary) 88%, #000);
}

.bt-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.2s var(--md-ease), transform 0.3s var(--md-ease-emphasized);
}

/* Announcement bar. */
.bt-announce {
	background: var(--bt-gradient);
	color: #fff;
	font-size: 0.875rem;
}

.bt-announce[hidden] {
	display: none;
}

.bt-announce__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	max-width: var(--bt-wide);
	min-height: 2.5rem;
	margin: 0 auto;
	padding: 0.25rem 0.25rem 0.25rem var(--bt-gutter);
	text-align: center;
}

.bt-announce__inner > :first-child {
	flex: 1;
	justify-content: center;
}

.bt-announce__link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.bt-announce__link:hover {
	color: inherit;
	text-decoration: underline;
}

.bt-announce__arrow {
	width: 1rem;
	height: 1rem;
}

.bt-announce__close {
	width: 2rem;
	height: 2rem;
	color: inherit;
}

.bt-announce__close .md-icon {
	width: 1.125rem;
	height: 1.125rem;
}

/* Language dropdown. */
.bt-lang-menu {
	position: relative;
}

.bt-lang-menu > summary {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	height: 2.25rem;
	padding: 0 0.75rem 0 0.625rem;
	border: 1px solid var(--md-outline);
	border-radius: var(--md-shape-s);
	color: var(--md-on-surface);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	list-style: none;
	cursor: pointer;
}

.bt-lang-menu > summary::-webkit-details-marker {
	display: none;
}

.bt-lang-menu__icon {
	width: 1rem;
	height: 1rem;
}

.bt-lang-menu__list {
	position: absolute;
	right: 0;
	top: calc(100% + 0.375rem);
	z-index: 60;
	min-width: 12rem;
	margin: 0;
	padding: 0.375rem;
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-shape-m);
	background: var(--md-surface-container-lowest);
	box-shadow: var(--md-shadow-lg);
	list-style: none;
}

.bt-nav__drawer-foot .bt-lang-menu__list {
	top: auto;
	right: auto;
	bottom: calc(100% + 0.375rem);
	left: 0;
}

.bt-lang-menu__list a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: 2.75rem;
	padding: 0 0.75rem;
	border-radius: var(--md-shape-s);
	color: var(--md-on-surface);
	font-size: 0.875rem;
	text-decoration: none;
}

.bt-lang-menu__list a:hover {
	background: rgba(var(--md-on-surface-rgb), 0.06);
	color: var(--md-on-surface);
}

.bt-lang-menu__list a.is-selected {
	background: var(--md-secondary-container);
	color: var(--md-on-secondary-container);
}

.bt-lang-menu__code {
	margin-left: auto;
	color: var(--md-on-surface-variant);
	font-size: 0.75rem;
	font-weight: 600;
}

.bt-lang-menu__check {
	width: 1.125rem;
	height: 1.125rem;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
	.bt-hero__text > *,
	.bt-hero__grid > .bt-video {
		animation: bt-rise 0.7s var(--md-ease-emphasized) both;
	}

	.bt-hero__text > :nth-child(2) {
		animation-delay: 0.06s;
	}

	.bt-hero__text > :nth-child(3) {
		animation-delay: 0.12s;
	}

	.bt-hero__text > :nth-child(n + 4) {
		animation-delay: 0.18s;
	}

	.bt-hero__grid > .bt-video {
		animation-delay: 0.24s;
	}

	.bt-section--creds .bt-creds {
		animation: bt-rise 0.7s var(--md-ease-emphasized) 0.3s both;
	}

	@keyframes bt-rise {
		from {
			opacity: 0;
			transform: translateY(18px);
		}
	}
}

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

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

.bt-no-motion *,
.bt-no-motion *::before,
.bt-no-motion *::after {
	animation: none !important;
	transition: none !important;
}

/* ---------- Theme settings switches ---------- */
.bt-header-static .bt-site-header {
	position: relative;
	top: auto;
}

/* ---------- Editor ---------- */
.editor-styles-wrapper .bt-home .bt-section--creds {
	margin-top: 0 !important;
}

.editor-styles-wrapper .bt-hero__text > *,
.editor-styles-wrapper .bt-section--creds .bt-creds {
	animation: none;
}

/* ---------- Projects page (Pages tab → Projects page) ---------- */
.bt-page-lead {
	max-width: 46rem;
	margin-top: 1rem !important;
	color: var(--md-on-ink-muted);
	font-size: clamp(1rem, 1.6vw, 1.1875rem);
	line-height: 1.6;
}

.bt-rd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
	gap: 1.25rem;
}

.bt-rd {
	--bt-rd-accent: var(--md-primary);
	--bt-rd-soft: var(--md-primary-container);
	--bt-rd-on-soft: var(--md-on-primary-container);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.75rem;
	border: 1px solid var(--md-outline-variant);
	border-radius: var(--md-shape-l);
	background: var(--md-surface-container-lowest);
	box-shadow: var(--md-shadow);
	overflow: hidden;
	scroll-margin-top: 6rem;
	transition: box-shadow 0.2s var(--md-ease), transform 0.2s var(--md-ease);
}

.bt-rd--alt {
	--bt-rd-accent: var(--md-tertiary);
	--bt-rd-soft: var(--md-tertiary-container);
	--bt-rd-on-soft: var(--md-on-tertiary-container);
}

/* Accent strip and a soft glow in the corner. */
.bt-rd::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: var(--bt-gradient);
}

.bt-rd::after {
	content: "";
	position: absolute;
	top: -6rem;
	right: -6rem;
	width: 14rem;
	height: 14rem;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--bt-rd-accent) 14%, transparent), transparent 70%);
	pointer-events: none;
}

.bt-rd:hover {
	box-shadow: var(--md-shadow-lg);
	transform: translateY(-2px);
}

.bt-rd > * {
	position: relative;
	z-index: 1;
	margin: 0;
}

.bt-rd__head {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.bt-rd__icon {
	flex: none;
	width: 3.25rem;
	height: 3.25rem;
	padding: 0.75rem;
	box-sizing: border-box;
	border-radius: var(--md-shape-m);
	background: var(--bt-rd-soft);
	color: var(--bt-rd-on-soft);
}

.bt-rd__meta {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.bt-rd__meta > * {
	margin: 0;
}

.bt-rd__code {
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.08em;
	color: var(--md-on-surface);
}

.bt-rd__status {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--md-on-surface-variant);
}

.bt-rd__dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--bt-rd-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--bt-rd-accent) 22%, transparent);
}

.bt-rd__num {
	margin-left: auto;
	align-self: flex-start;
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	color: transparent;
	-webkit-text-stroke: 1px var(--md-outline-variant);
}

.bt-entry .bt-rd__title,
.bt-rd__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 650;
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: var(--md-on-surface);
}

.bt-rd__text {
	color: var(--md-on-surface-variant);
	font-size: 0.9375rem;
	line-height: 1.7;
}

.bt-rd__facts {
	display: grid;
	gap: 0.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--md-outline-variant);
	font-size: 0.875rem;
}

.bt-rd__facts div {
	display: grid;
	grid-template-columns: minmax(6rem, auto) 1fr;
	gap: 0.75rem;
}

.bt-rd__facts dt {
	color: var(--md-on-surface-variant);
	font-weight: 600;
}

.bt-rd__facts dd {
	margin: 0;
}

.bt-rd__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: auto !important;
	padding: 0;
	list-style: none;
}

.bt-rd__tags li {
	margin: 0;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: var(--bt-rd-soft);
	color: var(--bt-rd-on-soft);
	font-size: 0.8125rem;
	font-weight: 500;
}

.bt-rd__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* Cooperation band under the cards. */
.bt-rd-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 2.5rem;
	margin-top: 2.5rem;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	border-radius: var(--md-shape-xl);
	overflow: hidden;
}

.bt-rd-cta__text {
	flex: 1 1 26rem;
	max-width: 40rem;
}

.bt-rd-cta__text > * {
	margin: 0;
}

.bt-rd-cta__label {
	margin-bottom: 0.5rem !important;
	color: var(--md-ink-accent-2);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bt-rd-cta__title {
	color: var(--md-on-ink);
	font-size: clamp(1.375rem, 2.6vw, 1.75rem);
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.bt-rd-cta__lead {
	margin-top: 0.75rem !important;
	color: var(--md-on-ink-muted);
	line-height: 1.6;
}

.bt-rd-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.bt-rd-cta .bt-button--outline {
	border: 1px solid color-mix(in srgb, var(--md-on-ink) 35%, transparent);
	background: transparent;
	color: var(--md-on-ink);
}

.bt-rd-cta .bt-button--outline:hover {
	border-color: var(--md-on-ink);
	background: rgba(255, 255, 255, 0.08);
	color: var(--md-on-ink);
}

.bt-rd-cta .bt-button .md-icon {
	width: 1.125rem;
	height: 1.125rem;
}

.bt-rd__status--done {
	color: var(--md-on-surface);
}

.bt-rd__check {
	width: 1rem;
	height: 1rem;
	padding: 0.125rem;
	box-sizing: border-box;
	border-radius: 50%;
	background: var(--md-tertiary);
	color: var(--md-on-tertiary);
}

/* Ongoing projects: a softly pulsing dot. */
.bt-rd__status:not(.bt-rd__status--done) .bt-rd__dot {
	animation: bt-rd-pulse 2.4s var(--md-ease) infinite;
}

@keyframes bt-rd-pulse {
	50% {
		box-shadow: 0 0 0 6px color-mix(in srgb, var(--bt-rd-accent) 0%, transparent);
	}
}

@media (max-width: 47.99rem) {
	.bt-rd {
		padding: 1.375rem;
	}

	.bt-rd__num {
		font-size: 2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bt-rd:hover {
		transform: none;
	}

	.bt-rd__dot {
		animation: none !important;
	}
}

/* ---------- In numbers (home) ---------- */
.bt-stats {
	padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.75rem);
	border-radius: var(--md-shape-xl);
	overflow: hidden;
}

.bt-stats__label {
	margin: 0 0 1.5rem;
	color: var(--md-ink-accent-2);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bt-stats__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bt-stat {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 0.875rem;
	align-items: center;
	margin: 0;
	padding-left: 1.25rem;
	border-left: 1px solid var(--md-ink-line);
}

.bt-stat__icon {
	grid-row: 1 / 3;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0.625rem;
	box-sizing: border-box;
	border-radius: var(--md-shape-m);
	background: rgba(255, 255, 255, 0.06);
	color: var(--md-ink-accent);
}

.bt-stat__num {
	font-size: clamp(2.25rem, 4.4vw, 3rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	background: linear-gradient(120deg, var(--md-ink-accent), var(--md-ink-accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.bt-stat__label {
	margin-top: 0.375rem;
	color: var(--md-on-ink-muted);
	font-size: 0.875rem;
	line-height: 1.35;
}

@media (max-width: 47.99rem) {
	.bt-stats__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bt-stat {
		grid-template-columns: 1fr;
		align-content: start;
		align-items: start;
		padding-left: 0.875rem;
	}

	.bt-stat__icon {
		display: none;
	}
}

/* ---------- EU funding notice (project cards, footer) ---------- */
.bt-eu {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
}

.bt-eu__flag {
	flex: none;
	width: 3rem;
	height: auto;
	border-radius: 2px;
}

.bt-eu__body > * {
	margin: 0;
}

.bt-eu__funded {
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.35;
}

.bt-eu__programme {
	margin-top: 0.125rem !important;
	font-size: 0.75rem;
	font-weight: 600;
	opacity: 0.85;
}

.bt-fund {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: 0.875rem;
	color: var(--md-on-surface-variant);
}

.bt-fund strong {
	color: var(--md-on-surface);
}

.bt-fund .md-icon {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	color: var(--md-primary-text);
}

.bt-eu__text {
	margin-top: 0.25rem !important;
	font-size: 0.75rem;
	line-height: 1.5;
	opacity: 0.75;
}

.bt-eu--card {
	padding: 0.875rem 1rem;
	border-radius: var(--md-shape-m);
	background: var(--md-surface-container);
	color: var(--md-on-surface);
}

.bt-eu--footer {
	max-width: 48rem;
	margin: 1.5rem auto 0;
	color: var(--md-on-ink);
}
