/* bao-bab — two halves, one curve */
:root {
	--bb-a: var(--wp--preset--color--wine);
	--bb-b: var(--wp--preset--color--night);
	--bb-ink: var(--wp--preset--color--cream);
	--bb-serif: var(--wp--preset--font-family--serif);
	--bb-display: var(--wp--preset--font-family--display);
}

/* The curve: left half wine, right half night blue, repeating down the page */
body {
	background-color: var(--bb-b);
	background-image: url("split.svg");
	background-size: 100% 1600px;
	background-repeat: repeat-y;
	background-position: center top;
}
.editor-styles-wrapper { background-color: var(--bb-b); }
::selection { background: var(--bb-ink); color: var(--bb-a); }
a { text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--bb-ink); outline-offset: 3px; }

/* Header */
.bb-header-wrap { position: sticky; top: 0; z-index: 100; transition: transform .35s ease, background-color .3s ease, box-shadow .3s ease; }
.admin-bar .bb-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .bb-header-wrap { top: 46px; } }
.bb-header-wrap.bb-scrolled { background: linear-gradient(90deg, rgba(110,21,67,.94) 50%, rgba(34,48,88,.94) 50%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(244,235,221,.12); }
.bb-header-wrap.bb-hide { transform: translateY(-110%); }
.bb-logo { display: inline-flex; align-items: center; min-height: 44px; }
.bb-logo img { display: block; height: 30px; width: auto; }
.bb-nav .wp-block-navigation-item__content { text-decoration: none; text-align: center; }
.bb-nav .wp-block-navigation-item__label { display: inline-flex; flex-direction: column; align-items: center; font-family: var(--bb-serif); font-size: 23px; line-height: 1.05; }
.bb-sub { display: block; margin-top: 3px; font-family: var(--wp--preset--font-family--body); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.bb-nav .wp-block-navigation-item__content:hover .wp-block-navigation-item__label { font-style: italic; }
.wp-block-navigation__responsive-container.is-menu-open .bb-nav-item, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label { font-size: 34px; align-items: flex-start; }

/* Split rows: one thing on each half */
.bb-split { justify-content: space-between !important; align-items: flex-end; gap: 24px; }
.bb-split > * { margin: 0 !important; }
.bb-split > *:last-child { text-align: right; }
.bb-eyebrow { margin-top: clamp(32px, 6vw, 64px) !important; font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.bb-tagline { font-family: var(--bb-serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; }

/* DUO | BAO-BAB */
.bb-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 18px 0 20px !important; font-family: var(--bb-display) !important; font-weight: 900 !important; line-height: .8 !important; letter-spacing: -0.05em; text-transform: uppercase; }
.bb-title .bb-l { font-size: clamp(76px, 14.5vw, 200px); }
.bb-title .bb-r { font-size: clamp(44px, 8.2vw, 116px); text-align: right; }
.bb-display { font-family: var(--bb-display) !important; font-weight: 900 !important; letter-spacing: -0.05em; }

/* Hero: one shot across both halves, with the dot in the middle */
.bb-hero { position: relative; margin-top: 48px !important; border-radius: 260px; overflow: hidden; }
.bb-hero::after { content: ""; position: absolute; left: calc(50% - 30px); top: calc(50% - 30px); width: 60px; height: 60px; border-radius: 50%; background: var(--bb-a); border: 11px solid var(--bb-b); box-sizing: border-box; z-index: 2; }

/* Work */
.bb-work-section { margin-top: clamp(90px, 12vw, 150px) !important; scroll-margin-top: 100px; }
.bb-split-h { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin: 0 0 40px !important; font-size: clamp(44px, 6vw, 80px) !important; }
.bb-split-h .bb-l { font-style: italic; }
.bb-work .wp-block-post-template { column-gap: clamp(40px, 13vw, 180px) !important; row-gap: 56px !important; }
.bb-work .wp-block-post { display: flex; flex-direction: column; }
.bb-work .wp-block-post-featured-image { margin: 0 0 14px !important; overflow: hidden; }
.bb-work .wp-block-post-featured-image img, .bb-work .bb-noimg { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.bb-work .wp-block-post-featured-image a:hover img { transform: scale(1.04); }
.bb-work .wp-block-post:nth-child(odd) .wp-block-post-featured-image { border-radius: 120px 8px 8px 120px; }
.bb-work .wp-block-post:nth-child(even) .wp-block-post-featured-image { border-radius: 8px 120px 120px 8px; }
.bb-work .wp-block-post:nth-child(even) { align-items: flex-end; text-align: right; }
.bb-noimg { display: flex !important; align-items: flex-end; padding: 16px 20px; box-sizing: border-box; background: rgba(244,235,221,.08); font-family: var(--bb-serif); font-size: 22px; }
.bb-work-title { margin: 0 !important; font-size: clamp(24px, 2.4vw, 32px) !important; line-height: 1.1; }
.bb-work-title a { text-decoration: none; }
.bb-work-title a:hover { font-style: italic; }
.bb-work-type { margin-top: 6px !important; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.bb-work-type a { text-decoration: none; pointer-events: none; }
.bb-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -12px 0 40px; }
.bb-filter button { min-height: 40px; padding: 8px 18px; border: 1.5px solid rgba(244,235,221,.5); border-radius: 999px; background: transparent; color: var(--bb-ink); font: 700 12px/1 var(--wp--preset--font-family--body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.bb-filter button[aria-pressed="true"], .bb-filter button:hover { background: var(--bb-ink); color: var(--bb-b); border-color: var(--bb-ink); }
.bb-work .wp-block-post.bb-hidden { display: none; }

/* About: Oliver | photo | Nino */
.bb-about { margin-top: clamp(100px, 13vw, 160px) !important; scroll-margin-top: 100px; }
.bb-about-cols { align-items: center !important; gap: 48px !important; }
.bb-about-oliver { text-align: right; }
.bb-about h3 { margin: 0 0 12px; font-size: clamp(40px, 4vw, 54px) !important; }
.bb-about p { margin: 0; }
.bb-more { margin-top: 18px !important; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bb-more a { text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 3px; }
.bb-about-photo figure, .bb-about-photo img, .bb-photo-ph { width: 100%; max-width: 440px; aspect-ratio: 1; margin: 0 auto !important; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 10px var(--bb-ink); }
.bb-about-photo img { display: block; height: auto; }
.bb-photo-ph { display: flex; align-items: center; justify-content: center; background: var(--wp--preset--color--plum); font-family: var(--bb-serif); font-size: 28px; font-style: italic; }

/* Footer: SAY | HELLO */
.bb-footer { margin-top: clamp(100px, 13vw, 170px); padding-bottom: 36px; scroll-margin-top: 80px; }
.bb-say-word { margin: 0 !important; font-family: var(--bb-display); font-weight: 900; font-size: clamp(64px, 9vw, 120px); line-height: .85; letter-spacing: -0.05em; }
.bb-say-right { align-items: flex-end !important; gap: 14px !important; text-align: right; }
.bb-email { margin: 6px 0 0 !important; font-size: clamp(18px, 2vw, 24px); font-weight: 700; }
.bb-social { margin: 0 !important; font-size: 14px; letter-spacing: .04em; }
.bb-copy { margin-top: 48px !important; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; text-align: center; }

/* Single project */
.bb-project { padding-top: 24px; }
.bb-back { margin: 0 0 24px !important; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bb-back a { text-decoration: none; }
.bb-meta { gap: 14px !important; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.bb-meta p, .bb-meta div { margin: 0; }
.bb-meta a { text-decoration: none; }
.bb-project-title { margin: 12px 0 36px !important; font-family: var(--bb-display) !important; font-weight: 900 !important; letter-spacing: -0.04em; line-height: .9 !important; }
.bb-project .wp-block-embed { margin: 0 0 40px; }
.bb-project .wp-block-embed iframe { border-radius: 14px; }
.bb-logline { font-family: var(--bb-serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.15; max-width: 920px; }
.bb-credits { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.bb-credits li { padding: 8px 0; border-bottom: 1px solid rgba(244,235,221,.18); }
.bb-project .wp-block-gallery { gap: 12px !important; margin: 40px 0 !important; }
.bb-project .wp-block-gallery .wp-block-image img { aspect-ratio: 3/2; object-fit: cover; height: 100%; border-radius: 6px; }
.bb-next { margin-top: 80px !important; padding-top: 24px; border-top: 1px solid rgba(244,235,221,.25); font-family: var(--bb-serif); font-size: 24px; }
.bb-next a { text-decoration: none; }

/* Small screens: one column, everything on the left */
@media (max-width: 781px) {
	.bb-work .wp-block-post-template { grid-template-columns: 1fr !important; }
	.bb-work .wp-block-post:nth-child(even) { align-items: flex-start; text-align: left; }
	.bb-work .wp-block-post .wp-block-post-featured-image { border-radius: 60px 8px 8px 60px !important; }
	.bb-hero { border-radius: 40px; min-height: 300px !important; }
	.bb-about-oliver { text-align: left; }
	.bb-about-photo { order: -1; }
	.bb-split-h, .bb-title { flex-wrap: wrap; }
	.bb-eyebrow { font-size: 11px; }
}

/* Intro animation */
.bb-title .bb-l, .bb-title .bb-r { display: inline-block; animation: bbIn .9s cubic-bezier(.2,.8,.2,1) both; }
.bb-title .bb-l { animation-name: bbInLeft; }
.bb-title .bb-r { animation-name: bbInRight; animation-delay: .12s; }
@keyframes bbInLeft { from { opacity: 0; transform: translateX(-40px); } }
@keyframes bbInRight { from { opacity: 0; transform: translateX(40px); } }
@media (prefers-reduced-motion: reduce) {
	.bb-title .bb-l, .bb-title .bb-r { animation: none; }
	.bb-header-wrap, .bb-work .wp-block-post-featured-image img { transition: none; }
}
