/**
 * BK Portfolio — design system (Barlow Condensed, flat greys, fixed START).
 */

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

/* --- Scroll-triggered fade-in (see theme.js) --- */
.bk-scroll-reveal {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
	transition:
		opacity 0.7s ease-out,
		transform 0.7s ease-out;
}

.bk-scroll-reveal.bk-scroll-reveal--visible {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
	.bk-scroll-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.bk-scroll-reveal.bk-scroll-reveal--visible {
		opacity: 1;
		transform: none;
	}
}

/* Block / Site editor: theme.js does not run — show content while editing */
.editor-styles-wrapper .bk-scroll-reveal {
	opacity: 1;
	transform: none;
	transition: none;
}

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
	max-width: 100%;
}

html,
body {
	margin: 0;
	min-height: 100%;
}

/* Scroll target for menu START link (template part top-anchor) */
.bk-anchor-top {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body {
	max-width: 100%;
	overflow-x: hidden;
	background-color: #D9D9D9;
	color: #000;
	font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
	font-weight: 700;
	font-style: normal;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

a {
	color: #000;
	font-style: normal;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* --- START button (all pages; stays above overlay) --- */
.start-button {
	position: fixed;
	bottom: 32px;
	right: 40px;
	z-index: 6000;
	display: inline-block;
	padding: 14px 40px;
	border-radius: 100px;
	background: #e0e0de;
	color: #000;
	font-size: 28px;
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
	line-height: 1;
	border: none;
	box-shadow: none;
}

.start-button:hover {
	opacity: 0.55;
}

.start-button:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}

.start-button-wrap {
	display: contents;
}

body.bk-fs-menu-open {
	overflow: hidden;
}

/* --- Full-screen menu (START) --- */
.bk-fs-menu {
	position: fixed;
	inset: 0;
	z-index: 5000;
	background: #D9D9D9;
	box-sizing: border-box;
	height: 100vh;
	height: 100dvh;
	max-height: 100vh;
	max-height: 100dvh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.bk-fs-menu[hidden] {
	display: none !important;
}

.bk-fs-menu-scroll.menu-page {
	flex: 1 1 0;
	min-height: 0;
	max-height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
}

#bk-fullscreen-menu .menu-list-item {
	padding: 0;
}

#bk-fullscreen-menu .menu-list-link {
	line-height: 1;
}

main.menu-page .menu-list-item {
	padding: 0;
}

main.menu-page .menu-list-link {
	line-height: 1;
}

/* Close (X) — top-right, above overlay content; below START (z-index 6000) */
.bk-fs-menu-close {
	position: fixed;
	top: 28px;
	right: 40px;
	z-index: 5500;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 100px;
	background: #e0e0de;
	color: #000;
	cursor: pointer;
	line-height: 1;
	box-shadow: none;
	-webkit-tap-highlight-color: transparent;
}

.bk-fs-menu-close:hover,
.bk-fs-menu-close:focus-visible {
	opacity: 0.55;
}

.bk-fs-menu-close:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.bk-fs-menu-close-x {
	display: block;
	font-size: 32px;
	font-weight: 300;
	line-height: 0.85;
	margin-top: -0.1em;
}

/* --- Front page hero --- */
.page-hero {
	width: 100%;
	max-width: 100%;
	height: 100dvh;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	box-sizing: border-box;
}

.hero-card {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.hero-video,
.hero-bg-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.hero-text {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: clamp(10px, 2vw, 20px);
	padding: 5%;
	text-align: right;
	pointer-events: none;
}

.hero-text .wp-block-heading {
	pointer-events: auto;
	width: 100%;
	max-width: 100%;
}

.hero-text .hero-subtitle,
.hero-text p.hero-subtitle {
	pointer-events: auto;
	margin: 0;
	width: 100%;
	max-width: 100%;
}

.hero-title,
.hero-text .wp-block-heading.hero-title,
.hero-text h1.hero-title,
.hero-text h2.hero-title,
.hero-text h3.hero-title {
	color: #000;
	font-size: clamp(5vw, 9vw, 130px);
	font-weight: 900;
	line-height: 0.9;
	text-transform: uppercase;
	margin: 0;
	font-style: normal;
}

.hero-subtitle,
.hero-text p.hero-subtitle {
	color: #000;
	font-size: clamp(1.1rem, 3.2vw, 2.25rem);
	font-weight: 800;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-style: normal;
}

/* --- Menu (fullscreen overlay + /menu page) --- */
.menu-page {
	background: #D9D9D9;
	min-height: 100dvh;
	padding: 40px;
	box-sizing: border-box;
}

main.wp-block-group.menu-page {
	height: 100vh;
	height: 100dvh;
	max-height: 100vh;
	max-height: 100dvh;
	min-height: 100vh;
	min-height: 100dvh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
}

.menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

#bk-fullscreen-menu .menu-list,
main.menu-page .menu-list {
	flex: 0 1 auto;
	max-height: 100%;
	overflow: hidden;
}

.menu-list-item {
	margin: 0;
	padding: 0.12em 0;
}

/* Number + title: underline only on title; wraps per line */
.menu-list-link {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 0.35em;
	align-items: start;
	font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	color: #000;
	text-decoration: none;
	line-height: 1.05;
	transition: opacity 0.15s ease;
	font-style: normal;
	cursor: pointer;
	width: 100%;
	box-sizing: border-box;
}

.menu-list-link--plain {
	grid-template-columns: minmax(0, 1fr);
}

.menu-num {
	display: inline-block;
	text-decoration: none;
	border-bottom: 0;
	padding-top: 0.02em;
	font-weight: 800;
}

.menu-text {
	min-width: 0;
}

.menu-label {
	display: inline;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-decoration-color: #000;
	text-underline-offset: 0.08em;
	font-weight: 800;
	white-space: normal;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.menu-list-link:hover {
	opacity: 0.45;
}

.menu-empty {
	padding: 12px 0;
	font-weight: 700;
}

/* --- Project single --- */
.project-page {
	background: #D9D9D9;
	min-height: 100dvh;
	padding: 40px;
	box-sizing: border-box;
}

.project-title,
.project-section .project-title,
.project-page .wp-block-post-title.project-title {
	font-size: clamp(4rem, 10vw, 140px);
	font-weight: 900;
	text-transform: uppercase;
	line-height: 0.95;
	color: #000;
	border-bottom: 2px solid #000;
	padding-bottom: 6px;
	margin: 0 0 24px;
	display: block;
	width: 100%;
	font-style: normal;
}

/* --- One-page project sections --- */
.project-section {
	scroll-margin-top: 1.5rem;
	padding: 48px 0 64px;
	box-sizing: border-box;
}

.project-section-inner {
	max-width: 100%;
	padding-left: 40px;
	padding-right: 40px;
	box-sizing: border-box;
}

.bk-project-sections .project-section + .project-section {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.info-page.info-section,
section.info-page {
	scroll-margin-top: 1.5rem;
	padding-bottom: 120px;
}

/* 80% media / 20% info card — equal row height (media stretches to match card) */
.project-body {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 1fr);
	gap: clamp(16px, 2vw, 24px);
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 900px) {
	.project-body {
		grid-template-columns: 1fr;
	}
}

.wp-block-columns.project-body {
	align-items: stretch;
	gap: 24px;
	margin-bottom: 0;
}

.wp-block-columns.project-body > .wp-block-column {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.wp-block-columns.project-body > .wp-block-column > .project-media {
	flex: 1 1 auto;
	min-height: 0;
}

.wp-block-columns.project-body > .wp-block-column > .wp-block-group.project-info-card,
.wp-block-columns.project-body .project-info-card {
	flex: 1 1 auto;
	min-height: 0;
}

@media (max-width: 900px) {
	.wp-block-columns.project-body .wp-block-column {
		flex-basis: 100% !important;
	}
}

.project-media {
	border-radius: 12px;
	overflow: hidden;
	background: #000;
	width: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-self: stretch;
}

.project-section .project-body > .project-media {
	flex: 1 1 auto;
	min-height: 0;
}

.project-media-placeholder {
	width: 100%;
	flex: 1 1 auto;
	min-height: min(56vw, 70vh);
	aspect-ratio: 16 / 9;
	background: #000;
}

/* Default media sizing when not in stretched section */
.project-media img,
.project-media video,
.project-media iframe {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	display: block;
	object-fit: cover;
	border: 0;
}

/* One-page sections + single template: media fills column height (matches grey card) */
.project-section .project-media img,
.project-section .project-media video,
.project-section .project-media iframe,
.project-page .project-media img,
.project-page .project-media video,
.project-page .project-media iframe {
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	height: 100%;
	max-height: none;
	aspect-ratio: unset;
	object-fit: cover;
	border: 0;
}

.project-info-card {
	min-width: 0;
	height: 100%;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	background: #e8e8e6;
	border-radius: 12px;
	padding: 20px;
	box-sizing: border-box;
}

.project-section .project-body > .project-info-card {
	flex: 0 1 auto;
	min-height: 0;
}

.project-info-card .card-section-title {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 6px;
	margin-top: 18px;
	color: #000;
	text-transform: uppercase;
	font-style: normal;
}

.project-info-card .card-section-title:first-child {
	margin-top: 0;
}

.project-info-card .card-meta {
	font-size: 13px;
	color: #555;
	line-height: 1.5;
	font-weight: 400;
	font-style: normal;
}

.project-info-card .card-desc {
	font-size: 14px;
	font-weight: 700;
	color: #222;
	line-height: 1.6;
	font-style: normal;
	margin: 0;
}

.project-info-card .card-link {
	font-size: 13px;
	font-weight: 700;
	color: #000;
	text-decoration: underline;
	text-underline-offset: 3px;
	word-break: break-all;
	display: block;
	margin-top: 4px;
	font-style: normal;
}

/* --- Info page --- */
.info-page {
	background: #D9D9D9;
	min-height: 100dvh;
	padding: 40px;
	box-sizing: border-box;
}

.info-contact-label {
	font-size: clamp(4rem, 10vw, 140px);
	font-weight: 900;
	text-transform: uppercase;
	line-height: 0.9;
	color: #000;
	font-style: normal;
	margin: 0;
}

.info-contact-link {
	display: block;
	font-size: clamp(2rem, 5vw, 72px);
	font-weight: 900;
	text-transform: uppercase;
	color: #000;
	text-decoration: none;
	line-height: 1;
	font-style: normal;
	margin: 0;
}

.info-contact-link a {
	color: #000;
	text-decoration: none;
	font-weight: 900;
}

.info-contact-link a:hover {
	opacity: 0.55;
}

.info-about-section {
	margin-top: clamp(40px, 8vh, 100px);
}

.info-about-label {
	font-size: clamp(3rem, 7vw, 100px);
	font-weight: 900;
	text-transform: uppercase;
	line-height: 0.9;
	color: #000;
	margin: 0 0 20px;
	font-style: normal;
}

.info-about-body {
	font-size: clamp(14px, 1.2vw, 18px);
	font-weight: 400;
	line-height: 1.5;
	color: #000;
	max-width: 760px;
	font-style: normal;
	margin: 0;
}

.editor-styles-wrapper .info-about-body,
.editor-styles-wrapper .card-desc {
	font-size: clamp(14px, 1.2vw, 18px);
}
