/* ==========================================================================
   hamilton design — site stylesheet
   Palette: black / dark-gray glass / off-white / red
   ========================================================================== */

:root {
	--white: #ffffff;
	--black: #0a0a0a;
	--bg: #0e0e0e;
	--text: #f1efeb;
	--text-soft: #d2cfc9;
	--muted: #a09d98;
	--faint: #74716c;
	--line: rgba(255, 255, 255, .1);
	--line-strong: rgba(255, 255, 255, .22);
	--glass: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 100%);
	--glass-solid: rgba(20, 20, 20, .72);
	--glass-border: rgba(255, 255, 255, .09);
	--glass-shine: inset 0 1px 0 rgba(255, 255, 255, .07);
	--red: #cc0000;
	--red-bright: #ff3f00;

	--serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--sans: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

	--gutter: clamp(1.25rem, 4vw, 3.5rem);
	--max: 1440px;
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
	margin: 0;
	background: transparent;
	color: var(--text);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
/* dark glass backdrop: soft gray light pools and a faint diagonal sheen */
body::before {
	content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background:
		linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .03) 48%, rgba(255, 255, 255, 0) 66%),
		radial-gradient(110% 70% at 10% -10%, rgba(96, 96, 96, .5) 0%, rgba(96, 96, 96, 0) 60%),
		radial-gradient(80% 60% at 105% 105%, rgba(72, 72, 72, .42) 0%, rgba(72, 72, 72, 0) 62%),
		linear-gradient(155deg, #232323 0%, #151515 45%, #0b0b0b 100%);
}
img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

body.menu-open, body.lb-open { overflow: hidden; }

.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 300;
	background: var(--text); color: var(--black); padding: .6rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.scroll-progress {
	position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120;
	background: var(--red-bright); transform: scaleX(0); transform-origin: 0 50%;
	pointer-events: none;
}

.frame { background: var(--white); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75); }
.frame img { display: block; width: 100%; height: auto; }
.parallax { transform: translate3d(0, var(--py, 0px), 0) scale(1.06); will-change: transform; }

/* ---------- reveal on scroll ---------- */
.js .reveal {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
	transition: opacity .9s var(--ease), transform 1.1s var(--ease);
	transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 110;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: transform .5s var(--ease), border-color .3s, background-color .4s;
}
.site-header.is-scrolled {
	background: var(--glass-solid);
	-webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
	border-bottom-color: var(--glass-border);
	box-shadow: var(--glass-shine);
}
.header-hidden .site-header { transform: translateY(-100%); }

.header-inner {
	max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
	height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.brand {
	display: inline-flex; align-items: center; gap: .7rem;
	text-decoration: none; color: var(--text);
	font-family: var(--serif); font-size: 1.65rem; font-weight: 400; letter-spacing: -.01em;
	line-height: 1;
}
.brand-mark { width: 38px; height: 38px; flex: none; transition: color .3s; }
.brand:hover .brand-mark { color: var(--red-bright); }

.nav-primary ul { display: flex; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.nav-primary a {
	position: relative; display: inline-block; padding: .35rem 0;
	text-decoration: none; color: var(--text-soft);
	font-size: 1.02rem; letter-spacing: .01em; transition: color .25s;
}
.nav-primary a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
	transition: transform .5s var(--ease);
}
.nav-primary a:hover { color: var(--text); }
.nav-primary a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-primary a.is-active { color: var(--red-bright); }
.nav-primary a.is-active::after { transform: scaleX(1); }

.menu-toggle { display: none; align-items: center; gap: .75rem; padding: .5rem 0; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.menu-toggle-icon { position: relative; width: 26px; height: 12px; }
.menu-toggle-icon span {
	position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
	transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-toggle-icon span:first-child { top: 0; }
.menu-toggle-icon span:last-child { top: 10px; }
.menu-open .menu-toggle-icon span:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle-icon span:last-child { top: 5px; transform: rotate(-45deg); }

/* ---------- mobile menu overlay (frosted glass) ---------- */
.menu-overlay {
	position: fixed; inset: 0; z-index: 105;
	background: linear-gradient(160deg, rgba(42, 42, 42, .8) 0%, rgba(10, 10, 10, .92) 100%);
	-webkit-backdrop-filter: blur(24px) saturate(130%); backdrop-filter: blur(24px) saturate(130%);
	color: var(--text);
	visibility: hidden;
	clip-path: inset(0 0 100% 0);
	transition: clip-path .7s var(--ease), visibility 0s linear .7s;
	overflow-y: auto; overscroll-behavior: contain;
}
.menu-open .menu-overlay { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .7s var(--ease), visibility 0s; }

.menu-inner {
	min-height: 100%;
	display: flex; flex-direction: column; justify-content: space-between;
	padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
}
.menu-item {
	border-top: 1px solid var(--line);
	opacity: 0; transform: translateY(24px);
	transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.menu-item:last-child { border-bottom: 1px solid var(--line); }
.menu-open .menu-item { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i) * 60ms); }

.menu-row { display: flex; align-items: center; justify-content: space-between; }
.menu-link { flex: 1; display: block; padding: .9rem 0; text-decoration: none; }
.menu-title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.85rem, 8vw, 2.8rem); line-height: 1; letter-spacing: -.02em; }
.menu-link.is-active .menu-title { color: var(--red-bright); }

.menu-expand { position: relative; width: 44px; height: 44px; flex: none; }
.menu-expand span::before, .menu-expand span::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px;
	background: currentColor; transform: translate(-50%, -50%);
	transition: transform .45s var(--ease);
}
.menu-expand span::after { transform: translate(-50%, -50%) rotate(90deg); }
.menu-item.is-open .menu-expand span::after { transform: translate(-50%, -50%) rotate(0deg); }

.menu-sub {
	display: grid; grid-template-rows: 0fr; visibility: hidden;
	transition: grid-template-rows .5s var(--ease), visibility 0s linear .5s;
}
.menu-sub > ul { min-height: 0; overflow: hidden; padding-left: .15rem; }
.menu-item.is-open .menu-sub { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .5s var(--ease), visibility 0s; }
.menu-sub li:last-child { padding-bottom: 1rem; }
.menu-sub a {
	display: inline-block; padding: .3rem 0;
	color: var(--muted); text-decoration: none; font-size: 1.05rem;
	transition: color .25s;
}
.menu-sub a:hover, .menu-sub a.is-active { color: var(--text); }
.menu-sub a.is-active::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .6rem; border-radius: 50%; background: var(--red-bright); vertical-align: middle; }

.menu-foot { padding-top: 2.5rem; font-size: .95rem; opacity: 0; transition: opacity .6s .5s; }
.menu-open .menu-foot { opacity: 1; }
.menu-foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-foot a:hover { color: var(--text); }

.menu-open .site-header { background: transparent; border-bottom-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- shared page heads ---------- */
.page-head {
	max-width: var(--max); margin: 0 auto;
	padding: clamp(1.75rem, 4.5vw, 3.75rem) var(--gutter) clamp(1.75rem, 3.5vw, 3rem);
}
.page-title {
	font-family: var(--serif); font-weight: 300;
	font-size: clamp(2.6rem, 7vw, 6.25rem);
	line-height: .95; letter-spacing: -.03em;
	font-variation-settings: "opsz" 72;
}

/* ---------- prose (CMS content) ---------- */
.prose { color: var(--text-soft); line-height: 1.75; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--red-bright); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s; }
.prose a:hover { color: var(--text); }
.prose b { font-weight: inherit; }
.prose strong { font-weight: 600; color: var(--text); }
.prose img { display: block; max-width: 100%; height: auto; }
.prose .text9, .prose .text10, .prose .text12, .prose .text14 { font-size: inherit; font-weight: inherit; }
.prose [class^="headline"] {
	font-family: var(--serif); font-weight: 400; color: var(--text);
	font-size: 1.55em; line-height: 1.2; letter-spacing: -.01em;
}
.prose p:has(> [class^="headline"]), .prose p:has(> strong > [class^="headline"]) { margin-bottom: .45em; }
.prose p:has(> [class^="headline"]):not(:first-child), .prose p:has(> strong > [class^="headline"]):not(:first-child) { margin-top: 1.6em; }

/* ---------- footer ---------- */
.site-footer {
	margin-top: clamp(5rem, 12vw, 10rem);
	background: linear-gradient(180deg, rgba(255, 255, 255, .045) 0%, rgba(0, 0, 0, .45) 100%);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-top: 1px solid var(--glass-border);
	box-shadow: var(--glass-shine);
	color: var(--text);
}

.footer-contact {
	max-width: var(--max); margin: 0 auto;
	padding: clamp(3rem, 7vw, 5rem) var(--gutter);
}
.contact-lines p {
	margin: 0; font-family: var(--serif); font-weight: 300;
	font-size: clamp(1.35rem, 2.6vw, 2.2rem); line-height: 1.25; letter-spacing: -.015em;
}
.contact-lines p:nth-child(2) { color: var(--muted); font-style: italic; }
.contact-lines [class^="headline"] { font: inherit; }
.contact-lines a {
	color: var(--text); text-decoration: none;
	background: linear-gradient(var(--red-bright), var(--red-bright)) 0 100% / 100% 1px no-repeat;
	transition: color .3s, background-size .5s var(--ease);
	overflow-wrap: anywhere;
}
.contact-lines a:hover { color: var(--red-bright); background-size: 0 1px; }

.footer-bottom {
	max-width: var(--max); margin: 0 auto;
	padding: 1.5rem var(--gutter);
	border-top: 1px solid var(--line);
	display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1.25rem 2.5rem;
	font-size: .85rem; color: var(--muted);
}
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 1.1rem; }
.footer-mark { width: 22px; height: 22px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.footer-nav a { text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.copyright { margin: 0; }
.to-top {
	width: 42px; height: 42px; border-radius: 50%;
	background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shine);
	display: grid; place-items: center; color: var(--text);
	transition: background-color .3s, border-color .3s;
}
.to-top svg { width: 18px; height: 18px; }
.to-top:hover { background: var(--red); border-color: var(--red); }

/* ---------- home ---------- */
.home-hero {
	max-width: var(--max); margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 5.5rem) var(--gutter) 0;
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter);
	align-items: end;
}
.home-hero-media { grid-column: 1 / span 8; }
.home-hero-caption {
	grid-column: 9 / span 4; padding-bottom: clamp(1rem, 4vw, 3.5rem);
	font-family: var(--serif); font-style: italic; font-weight: 300;
	font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.03em; color: var(--text);
}
.home-hero-caption::before, .hub-quote::before {
	content: ""; display: block; width: 3.5rem; height: 2px; background: var(--red-bright); margin-bottom: 1.75rem;
}
.home-hero-caption p { margin: 0; }
.home-hero-caption [class^="headline"] { font: inherit; color: inherit; letter-spacing: inherit; }
.home-hero-caption strong { font-weight: inherit; }

.home-sections { max-width: var(--max); margin: clamp(5rem, 12vw, 10rem) auto 0; padding: 0 var(--gutter); }
.home-panel {
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter);
	align-items: center; padding: clamp(3.5rem, 8vw, 7rem) 0; border-top: 1px solid var(--line);
}
.home-panel .panel-media { grid-column: 1 / span 7; grid-row: 1; }
.home-panel .panel-text { grid-column: 9 / span 4; grid-row: 1; }
.home-panel.is-even .panel-media { grid-column: 6 / span 7; }
.home-panel.is-even .panel-text { grid-column: 1 / span 4; }
.home-panel:nth-child(3n) .panel-media { grid-column: 2 / span 6; }
.home-panel:nth-child(3n) .panel-text { grid-column: 9 / span 4; align-self: end; }
.panel-media { display: block; }
.panel-media img { transition: transform 1.4s var(--ease); }
.panel-media:hover img { transform: scale(1.03); }
.panel-title {
	font-family: var(--serif); font-weight: 300;
	font-size: clamp(2.6rem, 6.5vw, 5.5rem); line-height: .95; letter-spacing: -.03em;
}
.panel-title a { text-decoration: none; transition: color .3s; }
.panel-title a:hover { color: var(--red-bright); }
.panel-links { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-top: 1.75rem; }
.panel-links a { color: var(--muted); text-decoration: none; font-size: .95rem; transition: color .2s; }
.panel-links a:hover { color: var(--red-bright); }

/* ---------- section hubs ---------- */
.hub-feature {
	max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter);
	align-items: end;
}
.hub-splash { grid-column: 1 / span 8; }
.hub-feature.no-quote .hub-splash { grid-column: 3 / span 8; }
.hub-quote { grid-column: 9 / span 4; padding-bottom: 1rem; }
.hub-quote p { margin-bottom: .25em; }
.hub-quote [class^="headline"] { font-size: clamp(1.8rem, 3vw, 2.6rem); font-style: italic; font-weight: 300; }
.hub-quote p:has(> [class^="headline"]) { margin-bottom: .6em; }

.page-extra { max-width: 46rem; margin: 3rem auto 0; padding: 0 var(--gutter); }

.gallery-index {
	max-width: var(--max); margin: clamp(5rem, 10vw, 8rem) auto 0; padding: 0 var(--gutter);
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) var(--gutter);
}
.gallery-index li:nth-child(3n+2) { margin-top: clamp(0rem, 6vw, 5rem); }
.gallery-card {
	display: block; padding: .6rem .6rem 0; text-decoration: none; color: var(--text);
	background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shine);
	transition: border-color .4s, background-color .4s;
}
.gallery-card:hover { border-color: var(--line-strong); background-color: rgba(255, 255, 255, .03); }
.card-media { display: block; aspect-ratio: 715 / 496; background: var(--white); overflow: hidden; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery-card:hover .card-media img { transform: scale(1.05); }
.card-meta { display: block; padding: .9rem .35rem 1rem; }
.card-title { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.1; letter-spacing: -.015em; transition: color .3s; }
.gallery-card:hover .card-title { color: var(--red-bright); }

/* ---------- standard pages (about) ---------- */
.article-grid {
	max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter);
	align-items: start;
}
.article-aside { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 2rem); text-align: center; }
.article-aside img { width: min(100%, 240px); margin: 0 auto 1.25rem; border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.article-body { grid-column: 6 / span 7; max-width: 44rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.article-grid.no-aside .article-body { grid-column: 3 / span 8; }

/* ---------- gallery pages ---------- */
.gallery-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .5rem 2rem; }
.crumb {
	grid-column: 1 / -1; justify-self: start; margin-bottom: 1rem;
	display: inline-flex; align-items: center; gap: .6rem;
	font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--muted); text-decoration: none; transition: color .2s;
}
.crumb::before { content: "\2190"; transition: transform .4s var(--ease); }
.crumb:hover { color: var(--red-bright); }
.crumb:hover::before { transform: translateX(-4px); }

.subnav {
	position: sticky; top: var(--header-h); z-index: 20;
	margin-bottom: clamp(2rem, 5vw, 4rem);
	background: var(--glass-solid);
	-webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
	border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
	box-shadow: var(--glass-shine);
	transition: top .5s var(--ease);
}
.header-hidden .subnav { top: 0; }
.subnav ul {
	position: relative;
	max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
	display: flex; gap: clamp(1.25rem, 2.5vw, 2.25rem);
	overflow-x: auto; scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
	mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav li { flex: none; }
.subnav a {
	position: relative; display: block; padding: 1rem 0;
	font-size: .92rem; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s;
}
.subnav a:hover, .subnav a.is-active { color: var(--text); }
.subnav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red-bright); }

.thumb-grid {
	max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem);
	align-items: start;
}
.thumb { grid-column: span 4; }
.thumb:nth-child(5n+1) { grid-column: span 7; }
.thumb:nth-child(5n+2) { grid-column: span 5; align-self: end; }
.thumb-grid.count-1 .thumb { grid-column: 2 / span 10; }
.thumb a { position: relative; display: block; background: var(--white); overflow: hidden; cursor: zoom-in; box-shadow: 0 30px 60px -35px rgba(0, 0, 0, .8); }
.thumb img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.thumb a:hover img { transform: scale(1.04); }
.thumb-num {
	position: absolute; left: 0; bottom: 0; padding: .35rem .65rem;
	background: rgba(10, 10, 10, .85); color: var(--text); font-size: .7rem; letter-spacing: .12em;
	transform: translateY(101%); transition: transform .45s var(--ease);
}
.thumb a:hover .thumb-num, .thumb a:focus-visible .thumb-num { transform: none; }
.thumb-caption { padding-top: 1rem; font-size: .95rem; }
.js .thumb-caption { display: none; }

/* ---------- lightbox ---------- */
.lightbox {
	position: fixed; inset: 0; z-index: 200;
	display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
	background: linear-gradient(155deg, rgba(34, 34, 34, .94) 0%, rgba(8, 8, 8, .97) 100%);
	-webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
	color: var(--text);
	opacity: 0; transition: opacity .4s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lb-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: .9rem var(--gutter); }
.lb-counter { margin: 0; font-size: .8rem; letter-spacing: .14em; color: var(--muted); }
.lb-current { color: var(--text); }
.lb-sep { margin: 0 .5rem; color: var(--faint); }
.lb-title { margin: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.lb-close { justify-self: end; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background-color .3s, color .3s; }
.lb-close:hover { background: var(--text); color: var(--black); }
.lb-close svg, .lb-nav svg { width: 22px; height: 22px; }

.lb-stage {
	min-height: 0; padding: 0 var(--gutter);
	display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 1rem;
}
.lb-nav {
	width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
	background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shine);
	transition: background-color .3s, border-color .3s, color .3s;
}
.lb-nav:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.lb-figure {
	height: 100%; min-height: 0;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); grid-template-rows: minmax(0, 1fr);
	gap: clamp(1.5rem, 3vw, 3rem); align-items: center;
}
.lb-media { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 1rem 0; }
.lb-img {
	display: block; max-width: 100%; max-height: 100%; width: auto; height: auto;
	background: var(--white); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85);
	transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.lb-img.is-entering { opacity: 0; transform: translate3d(calc(var(--dir, 0) * 40px), 0, 0) scale(.985); }
.lb-caption { max-height: 100%; overflow-y: auto; padding-right: .5rem; font-size: .98rem; }
.lb-caption [class^="headline"] { font-size: 1.7em; }

.lb-thumbs-wrap { min-width: 0; padding: .75rem 0 1.25rem; border-top: 1px solid var(--line); }
.lb-thumbs { position: relative; display: flex; gap: .5rem; overflow-x: auto; padding: .25rem var(--gutter); scrollbar-width: none; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs li { flex: none; }
.lb-thumbs li:first-child { margin-left: auto; }
.lb-thumbs li:last-child { margin-right: auto; }
.lb-thumb {
	position: relative; display: block; width: 84px; aspect-ratio: 715 / 496;
	background: var(--white); overflow: hidden; opacity: .4; transition: opacity .3s;
}
.lb-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lb-thumb::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
	background: var(--red-bright); transform: scaleX(0); transition: transform .4s var(--ease);
}
.lb-thumb:hover { opacity: .8; }
.lb-thumb.is-active { opacity: 1; }
.lb-thumb.is-active::after { transform: scaleX(1); }

/* ---------- page not found ---------- */
.not-found-body { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.not-found-body p { max-width: 36rem; color: var(--text-soft); font-size: 1.1rem; }
.not-found-link {
	display: inline-flex; align-items: center; gap: .6rem; margin-top: 2rem;
	padding: .85rem 1.4rem; border-radius: 999px;
	color: var(--text); text-decoration: none; font-size: .95rem;
	background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shine);
	transition: background-color .3s, border-color .3s;
}
.not-found-link::before { content: "\2190"; }
.not-found-link:hover { background: var(--red); border-color: var(--red); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.lb-figure { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: .75rem; }
	.lb-caption { width: 100%; max-width: 46rem; max-height: 24vh; margin: 0 auto; padding: 0 0 .5rem; align-self: start; }
}

@media (max-width: 899px) {
	:root { --header-h: 64px; }
	.nav-primary { display: none; }
	.menu-toggle { display: inline-flex; }
	html:not(.js) .nav-primary { display: block; }
	html:not(.js) .nav-primary ul { flex-wrap: wrap; gap: .25rem 1rem; }
	html:not(.js) .menu-toggle { display: none; }
	.brand { font-size: 1.35rem; gap: .55rem; }
	.brand-mark { width: 32px; height: 32px; }

	.home-hero, .home-panel, .hub-feature, .article-grid { grid-template-columns: minmax(0, 1fr); }
	.home-hero-media, .home-hero-caption,
	.home-panel .panel-media, .home-panel .panel-text,
	.home-panel.is-even .panel-media, .home-panel.is-even .panel-text,
	.home-panel:nth-child(3n) .panel-media, .home-panel:nth-child(3n) .panel-text,
	.hub-splash, .hub-quote, .hub-feature.no-quote .hub-splash,
	.article-aside, .article-body, .article-grid.no-aside .article-body { grid-column: 1 / -1; grid-row: auto; }
	.home-hero-caption { padding-bottom: 0; }
	.home-panel { gap: 1.75rem; }

	.article-aside { position: static; }
	.article-aside img { width: min(100%, 200px); }

	.gallery-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gallery-index li:nth-child(3n+2) { margin-top: 0; }
	.gallery-index li:nth-child(2n) { margin-top: 3rem; }

	.thumb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.thumb, .thumb:nth-child(5n+2) { grid-column: span 1; align-self: start; }
	.thumb:nth-child(5n+1), .thumb-grid.count-1 .thumb { grid-column: 1 / -1; }

	.footer-bottom { grid-template-columns: 1fr auto; }
	.footer-nav, .copyright { grid-column: 1 / -1; }
	.to-top { grid-row: 1; grid-column: 2; }

	.lb-bar { grid-template-columns: 1fr auto; }
	.lb-title { display: none; }
	.lb-stage { position: relative; grid-template-columns: minmax(0, 1fr); padding: 0 1rem; }
	.lb-nav { position: absolute; top: 40%; z-index: 2; width: 44px; height: 44px; background: rgba(20, 20, 20, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
	.lb-prev { left: .5rem; }
	.lb-next { right: .5rem; }
	.lb-thumb { width: 60px; }
}

@media (max-width: 520px) {
	.gallery-index { grid-template-columns: minmax(0, 1fr); }
	.gallery-index li:nth-child(2n) { margin-top: 0; }
	.thumb-grid { gap: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
		transition-delay: 0s !important;
		scroll-behavior: auto !important;
	}
	.parallax { transform: none; }
}
