﻿/** Project portfolio: independent typography and uncropped, intrinsic-size media. */
body.hb-proj-cinematic,
body.hb-proj-cinematic .hb-main { background: #111d23; }
body.hb-proj-cinematic .hb-footer { background: #0d181e; color: #d4d0c8; }
body.hb-proj-cinematic .hb-header { background: #10191df5; border-bottom: 1px solid #ffffff12; }

.hb-proj {
	--project-gold: var(--gold, #ce9d3a);
	--project-paper: #f4efe6;
	--project-muted: #aab1af;
	color: #f4efe6;
	overflow: clip;
}
.hb-proj::before {
	content: '';
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	inset-inline: 0;
	height: 2px;
	z-index: 1001;
	background: linear-gradient(90deg, #92702e, var(--project-gold), #f0db9d);
	transform: scaleX(var(--project-progress, 0));
	transform-origin: right;
	pointer-events: none;
}
.hb-proj .hb-wrap { width: min(100% - 4rem, 1280px); }
.hb-proj a:focus-visible,
.hb-proj button:focus-visible { outline: 2px solid var(--project-gold); outline-offset: 6px; }
.hb-proj__hero {
	position: relative;
	padding: calc(122px + var(--wp-admin--admin-bar--height, 0px)) 0 64px;
	background: radial-gradient(ellipse at 10% 55%, #ce9d3a0b, transparent 60%), #111d23;
}
.hb-proj__topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 24px;
	border-bottom: 1px solid #ffffff1c;
}
.hb-proj__back { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; color: #e6dfd3; }
.hb-proj__back svg { transition: transform .2s ease; }
.hb-proj__back:hover { color: var(--project-gold); }
.hb-proj__back:hover svg { transform: translateX(4px); }
.hb-proj__collection { font-size: .72rem; color: var(--project-muted); }
.hb-proj__hero-inner {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 5rem);
	padding-top: clamp(36px, 5vw, 68px);
}
.hb-proj__hero-copy { min-width: 0; padding-block: 12px; }
.hb-proj__hero--plain .hb-proj__hero-inner { grid-template-columns: minmax(0, 760px); }
.hb-proj__kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.hb-proj__rule { width: 32px; height: 1px; background: var(--project-gold); }
.hb-proj__eyebrow { margin: 0; color: var(--project-gold); font-size: .76rem; font-weight: 600; }
.hb-proj__title {
	margin: 0 0 24px;
	font-size: clamp(2rem, 3.6vw, 3.6rem);
	font-weight: 700;
	line-height: 1.55;
	letter-spacing: -.045em;
	text-wrap: balance;
	color: #f4efe6;
}
.hb-proj__word { display: inline-block; }
.hb-proj__word > span { display: inline-block; }
.hb-proj__lead { margin: 0 0 30px; max-width: 36rem; font-size: 1rem; line-height: 2.1; color: #bac0bc; }
.hb-proj__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px 16px;
	margin: 0;
	padding: 24px 0;
	border-block: 1px solid #ffffff1c;
}
.hb-proj__facts > div { min-width: 0; }
.hb-proj__facts dt { margin: 0 0 8px; font-size: .7rem; color: var(--project-muted); }
.hb-proj__facts dd { margin: 0; font-size: .86rem; color: #f4efe6; overflow-wrap: anywhere; }
.hb-proj__scroll { display: inline-flex; align-items: center; gap: 16px; margin-top: 28px; color: var(--project-gold); font-size: .8rem; }
.hb-proj__scroll svg { transition: transform .2s ease; }
.hb-proj__scroll:hover svg { transform: translateY(4px); }
.hb-proj__visual { min-width: 0; margin: 0; position: relative; }
.hb-proj__visual::before,
.hb-proj__visual::after { content: ''; position: absolute; width: 28px; height: 28px; pointer-events: none; border-color: var(--project-gold); border-style: solid; opacity: .7; }
.hb-proj__visual::before { top: -10px; right: -10px; border-width: 1px 1px 0 0; }
.hb-proj__visual::after { bottom: 37px; left: -10px; border-width: 0 0 1px 1px; }
.hb-proj__hero-frame {
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	min-height: 360px;
	padding: clamp(16px, 2.2vw, 32px);
	border: 1px solid #ffffff14;
	background: #17252b;
	transition: border-color .45s ease, box-shadow .45s ease, transform .45s ease;
}
.hb-proj__hero-frame::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(circle 220px at var(--pointer-x, 50%) var(--pointer-y, 50%), #ce9d3a20, transparent 75%);
	opacity: 0;
	transition: opacity .45s ease;
	pointer-events: none;
}
.hb-proj__visual::before,
.hb-proj__visual::after { transition: width .5s ease, height .5s ease, opacity .5s ease; }
.hb-proj__hero--medium .hb-proj__hero-frame { min-height: 260px; }
.hb-proj__hero--tall .hb-proj__hero-frame { min-height: 400px; }
.hb-proj__image-link { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; cursor: zoom-in; }
.hb-proj__hero-media,
.hb-proj__chapter-figure img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 540px;
	object-fit: contain;
}
.hb-proj__hero--medium .hb-proj__hero-media { max-height: 380px; }
.hb-proj__hero--tall .hb-proj__hero-media { max-height: 600px; }
.hb-proj__caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; font-size: .7rem; color: var(--project-muted); }
.hb-proj__caption b { display: inline-block; margin-inline-end: 12px; font-weight: 400; font-family: 'Segoe UI', sans-serif; color: var(--project-gold); }
.hb-proj__caption a { flex-shrink: 0; color: #e6dfd3; }
.hb-proj__caption a:hover { color: var(--project-gold); }
.hb-proj__caption a span { display: inline-block; margin-inline-start: 6px; font-size: 1rem; }

.hb-proj__story,
.hb-proj__gallery,
.hb-proj__more { scroll-margin-top: 110px; }
.hb-proj__story { padding: 80px 0; background: var(--project-paper); color: #192d37; }
.hb-proj__story-grid { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 60px; }
.hb-proj__story-aside { border-inline-start: 2px solid var(--project-gold); padding-inline-start: 24px; }
.hb-proj__story-aside h2 { margin: 12px 0 0; font-size: clamp(1.6rem, 2.5vw, 2.3rem); line-height: 1.7; text-wrap: balance; }
.hb-proj__story-main { min-width: 0; }
.hb-proj__quote { margin: 0 0 20px; font-size: 1.2rem; line-height: 2; }
.hb-proj__prose { overflow-wrap: anywhere; }
.hb-proj__prose p { margin: 0 0 18px; color: #585852; font-size: 1rem; line-height: 2.2; }
.hb-proj__prose p:last-child { margin-bottom: 0; }
.hb-proj__prose img { width: auto; height: auto; max-width: 100%; margin: 24px auto; }
.hb-proj__prose a { text-decoration: underline; text-underline-offset: 4px; }

.hb-proj__gallery { padding: 76px 0 32px; background: #111d23; }
.hb-proj__gallery-head { padding-bottom: 32px; border-bottom: 1px solid #ffffff20; }
.hb-proj__gallery-head h2 { margin: 12px 0 0; font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 600; }
.hb-proj__chapter { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr); align-items: center; gap: clamp(28px, 6vw, 80px); padding-block: 56px; border-bottom: 1px solid #ffffff1c; }
.hb-proj__chapter:last-child { border-bottom: 0; }
.hb-proj__chapter:nth-of-type(even) { grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); }
.hb-proj__chapter:nth-of-type(even) .hb-proj__chapter-figure { order: 2; }
.hb-proj__chapter--text,
.hb-proj__chapter--image,
.hb-proj__chapter--image:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
.hb-proj__chapter-figure { min-width: 0; margin: 0; }
.hb-proj__chapter-figure .hb-proj__image-link { padding: 24px; min-height: 240px; background: #17252b; border: 1px solid #ffffff14; }
.hb-proj__chapter-figure img { max-height: 620px; }
.hb-proj__card { min-width: 0; }
.hb-proj__chapter-number { display: block; color: var(--project-gold); font-family: 'Segoe UI', sans-serif; font-size: 2.5rem; font-weight: 300; line-height: 1; margin-bottom: 26px; }
.hb-proj__card h2 { margin: 0 0 16px; color: #f4efe6; font-size: 1.5rem; line-height: 1.8; }
.hb-proj__card p { margin: 0 0 16px; color: #bac0bc; font-size: .95rem; line-height: 2.1; }

.hb-proj__more { padding: 72px 0; background: var(--project-paper); color: #192d37; }
.hb-proj__more-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.hb-proj__more-head h2 { margin: 12px 0 0; font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.hb-proj__text-link { font-size: .8rem; border-bottom: 1px solid #ab8540; padding-bottom: 6px; }
.hb-proj__more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.hb-proj__more-card { min-width: 0; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.hb-proj__more-media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 20px; background: #e9e3d8; border: 1px solid #182b3410; transition: border-color .4s ease, box-shadow .4s ease; }
.hb-proj__more-media img { width: auto; height: auto; max-width: 100%; max-height: 200px; object-fit: contain; }
.hb-proj__more-hover { position: absolute; inset: auto auto 10px 10px; padding: 5px 10px; background: #15262f; color: #f4efe6; font-size: .65rem; opacity: 0; transform: translateY(5px); transition: opacity .2s, transform .2s; }
.hb-proj__more-card:hover .hb-proj__more-hover,
.hb-proj__more-card:focus-visible .hb-proj__more-hover { opacity: 1; transform: none; }
.hb-proj__more-body { padding-top: 18px; }
.hb-proj__more-body small { color: #816328; font-size: .7rem; }
.hb-proj__more-body h3 { margin: 6px 0 0; font-size: 1rem; line-height: 1.9; font-weight: 600; }
.hb-proj__adjacent { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #ffffff1c; }
.hb-proj__adj { display: flex; align-items: center; gap: 24px; padding: 36px clamp(24px, 4vw, 64px); min-width: 0; background: #15242c; transition: background .2s; }
.hb-proj__adj + .hb-proj__adj { border-inline-start: 1px solid #ffffff1c; }
.hb-proj__adj:hover { background: #1b303a; }
.hb-proj__adj img { width: auto; height: auto; max-width: 100px; max-height: 80px; object-fit: contain; }
.hb-proj__adj small { display: block; color: var(--project-gold); font-size: .7rem; margin-bottom: 8px; }
.hb-proj__adj strong { font-size: .95rem; font-weight: 500; line-height: 1.9; }
.hb-proj__adj--empty { background: #111d23; }

.hb-proj__lightbox { position: fixed; inset: 0; width: min(96vw, 1600px); height: fit-content; max-height: 94dvh; margin: auto; padding: 56px 24px 16px; border: 1px solid #ffffff2b; color: #f4efe6; background: #111d23; overflow: auto; }
.hb-proj__lightbox::backdrop { background: #050c10ed; }
.hb-proj__lightbox[open] { animation: hb-project-dialog .3s cubic-bezier(.22, 1, .36, 1) both; }
.hb-proj__lightbox[open]::backdrop { animation: hb-project-fade .3s ease both; }
.hb-proj__lightbox img { width: auto; height: auto; max-width: 100%; max-height: calc(90dvh - 130px); margin-inline: auto; object-fit: contain; }
.hb-proj__lightbox p { margin: 14px 0 0; text-align: center; color: #bac0bc; font-size: .8rem; }
.hb-proj__lightbox-close { position: absolute; top: 10px; inset-inline-end: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ffffff40; border-radius: 50%; background: transparent; color: #fff; font: 28px/1 sans-serif; cursor: pointer; }
.hb-proj__lightbox-close:hover { background: #ffffff15; }
html.hb-project-image-open { overflow: hidden; }

.hb-proj.has-motion [data-hb-in] { opacity: 0; transform: translateY(28px); transition: opacity .85s ease, transform .85s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--d, 0s); }
.hb-proj.has-motion [data-hb-in].is-in { opacity: 1; transform: none; }
.hb-proj.has-motion.is-ready .hb-proj__topline { animation: hb-project-enter .7s ease both; }
.hb-proj.has-motion.is-ready .hb-proj__kicker { animation: hb-project-enter .75s ease .08s both; }
.hb-proj.has-motion.is-ready .hb-proj__word > span { animation: hb-project-enter .85s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--d, .15s); }
.hb-proj.has-motion.is-ready .hb-proj__lead { animation: hb-project-enter .85s ease .3s both; }
.hb-proj.has-motion.is-ready .hb-proj__facts { animation: hb-project-enter .85s ease .42s both; }
.hb-proj.has-motion.is-ready .hb-proj__scroll { animation: hb-project-enter .85s ease .55s both; }
.hb-proj.has-motion.is-ready .hb-proj__visual { animation: hb-project-enter 1.1s cubic-bezier(.22, 1, .36, 1) .12s both; }
.hb-proj.has-motion.is-ready .hb-proj__rule { transform-origin: right; animation: hb-project-draw .9s ease .15s both; }
.hb-proj.has-motion.is-ready .hb-proj__visual::before,
.hb-proj.has-motion.is-ready .hb-proj__visual::after { animation: hb-project-corner 1.1s ease .5s backwards; }
.hb-proj.has-motion.is-ready .hb-proj__scroll svg { animation: hb-project-nudge 2.8s ease-in-out 1.6s 3; }
@keyframes hb-project-enter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes hb-project-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hb-project-corner { from { opacity: 0; width: 0; height: 0; } to { opacity: .7; width: 28px; height: 28px; } }
@keyframes hb-project-nudge { 0%, 25%, 65%, 100% { transform: translateY(0); } 45% { transform: translateY(5px); } }
@keyframes hb-project-dialog { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes hb-project-fade { from { opacity: 0; } to { opacity: 1; } }

@media (hover: hover) and (pointer: fine) {
	.hb-proj__hero-frame:hover { transform: translateY(-4px); border-color: #ce9d3a70; box-shadow: 0 24px 50px #00000020; }
	.hb-proj__hero-frame:hover::before { opacity: 1; }
	.hb-proj__visual:hover::before,
	.hb-proj__visual:hover::after { width: 44px; height: 44px; opacity: 1; }
	.hb-proj__more-card:hover { transform: translateY(-6px); }
	.hb-proj__more-card:hover .hb-proj__more-media { border-color: #ab854070; box-shadow: 0 14px 28px #182b3410; }
	.hb-proj__chapter-figure .hb-proj__image-link { transition: border-color .35s ease, background .35s ease; }
	.hb-proj__chapter-figure .hb-proj__image-link:hover { border-color: #ce9d3a70; background: #1a2a31; }
}

@media (min-width: 1600px) {
	.hb-proj__hero { padding-bottom: 80px; }
	.hb-proj__hero-inner { padding-top: 72px; }
}
@media (max-width: 900px) {
	.hb-proj .hb-wrap { width: min(100% - 3rem, 680px); }
	.hb-proj__hero { padding-top: calc(112px + var(--wp-admin--admin-bar--height, 0px)); padding-bottom: 44px; }
	.hb-proj__hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 32px; }
	.hb-proj__title { max-width: 22ch; font-size: clamp(2rem, 5.8vw, 3rem); }
	.hb-proj__lead { margin-bottom: 22px; }
	.hb-proj__hero-frame,
	.hb-proj__hero--medium .hb-proj__hero-frame,
	.hb-proj__hero--tall .hb-proj__hero-frame { min-height: 240px; }
	.hb-proj__hero-media { max-height: 480px; }
	.hb-proj__story,
	.hb-proj__more { padding-block: 52px; }
	.hb-proj__story-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.hb-proj__chapter,
	.hb-proj__chapter:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-block: 36px; }
	.hb-proj__chapter:nth-of-type(even) .hb-proj__chapter-figure { order: 0; }
	.hb-proj__chapter-number { font-size: 1.6rem; margin-bottom: 16px; }
	.hb-proj__more-grid { gap: 18px; }
	.hb-proj__more-media { padding: 12px; }
	.hb-proj__adj { gap: 16px; padding: 28px 24px; }
	.hb-proj__adj img { max-width: 70px; max-height: 60px; }
}
@media (max-width: 600px) {
	.hb-proj .hb-wrap { width: calc(100% - 2.5rem); }
	.hb-proj__collection { font-size: .6rem; }
	.hb-proj__back { gap: 6px; font-size: .72rem; }
	.hb-proj__kicker { margin-bottom: 16px; }
	.hb-proj__title { font-size: 2rem; margin-bottom: 16px; }
	.hb-proj__lead { font-size: .9rem; }
	.hb-proj__facts { gap: 16px 12px; }
	.hb-proj__facts dd { font-size: .78rem; }
	.hb-proj__hero-frame { padding: 12px; }
	.hb-proj__caption { font-size: .64rem; gap: 10px; }
	.hb-proj__caption b { margin-inline-end: 6px; }
	.hb-proj__gallery { padding-top: 44px; }
	.hb-proj__chapter-figure .hb-proj__image-link { padding: 12px; min-height: 180px; }
	.hb-proj__more-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.hb-proj__more-media { aspect-ratio: 3 / 2; padding: 20px; }
	.hb-proj__more-media img { max-height: 240px; }
	.hb-proj__more-hover { opacity: 1; transform: none; }
	.hb-proj__adjacent { grid-template-columns: minmax(0, 1fr); }
	.hb-proj__adj + .hb-proj__adj { border-inline-start: 0; border-top: 1px solid #ffffff1c; }
	.hb-proj__adj--empty { display: none; }
	.hb-proj__lightbox { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.hb-proj *, .hb-proj *::before, .hb-proj *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.hb-proj::before { display: none; }
	.hb-proj__lightbox::backdrop { animation: none !important; }
	.hb-proj__hero-frame:hover,
	.hb-proj__more-card:hover { transform: none; }
	.hb-proj.has-motion [data-hb-in] { opacity: 1; transform: none; }
}
