/* ===========================================================================
   Helios Design — Theme chrome

   The PHP-template side of the site: fallback header/footer (used only when no
   Elementor Pro Theme Builder template is assigned), archives, single post,
   single project, prose, pagination, 404.

   Widget-rendered sections style themselves; nothing here reaches into them.

   Handle: hl-theme   Depends: hl-core
   ======================================================================== */

/* ---------------------------------------------------------------------------
   Fallback brand bar
   ------------------------------------------------------------------------ */
.hl-topbar {
	position: sticky;
	top: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px var(--hl-pad);
	background: rgba(11, 9, 8, .88);
	border-bottom: 1px solid var(--hl-line);
	backdrop-filter: blur(10px) saturate(1.1);
}

.hl-logo {
	display: flex;
	align-items: baseline;
	gap: .5rem;
	font-family: var(--hl-f-display);
	font-size: 1.42rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--hl-cream);
}
.hl-logo b { font-weight: 500; }
.hl-logo i {
	font-family: var(--hl-f-body);
	font-style: normal;
	font-size: .58rem;
	letter-spacing: .34em;
	opacity: .6;
}
.hl-logo img { max-height: 44px; width: auto; }

/* The sun mark — Helios' one piece of iconography. */
.hl-sun-mark {
	align-self: center;
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--hl-sun);
	box-shadow: 0 0 0 4px rgba(217, 154, 78, .16), 0 0 22px rgba(240, 176, 99, .7);
	animation: hl-pulse 5s ease-in-out infinite;
}
@keyframes hl-pulse {
	50% { box-shadow: 0 0 0 9px rgba(217, 154, 78, .05), 0 0 30px rgba(240, 176, 99, .55); }
}

/* ---------------------------------------------------------------------------
   Fallback nav
   ------------------------------------------------------------------------ */
.hl-nav ul {
	display: flex;
	gap: clamp(16px, 2vw, 34px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.hl-nav a {
	font-size: .72rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--hl-cream);
}
.hl-nav a:hover,
.hl-nav .current-menu-item > a { color: var(--hl-sun); }

.hl-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	width: 40px;
	padding: 8px 6px;
	border: 0;
	background: none;
}
.hl-nav-toggle span {
	display: block;
	height: 1px;
	background: var(--hl-cream);
	transition: .35s var(--hl-ease);
}

@media (max-width: 900px) {
	.hl-nav-toggle { display: flex; }
	.hl-nav {
		position: absolute;
		inset-inline: 0;
		top: 100%;
		display: none;
		padding: 20px var(--hl-pad) 28px;
		background: var(--hl-ink-2);
		border-bottom: 1px solid var(--hl-line);
	}
	.hl-nav.is-open { display: block; }
	.hl-nav ul { flex-direction: column; gap: 18px; }
}

/* ---------------------------------------------------------------------------
   Floating social bar — fixed bottom centre, mono circles
   ------------------------------------------------------------------------ */
.hl-social-float {
	position: fixed;
	inset-inline-start: 50%;
	bottom: 22px;
	transform: translateX(-50%);
	z-index: 65;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border: 1px solid var(--hl-line);
	border-radius: 999px;
	background: rgba(11, 9, 8, .55);
	backdrop-filter: blur(10px) saturate(1.1);
}
.hl-social-float a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--hl-cream-faint);
	border-radius: 50%;
	background: transparent;
	color: var(--hl-cream);
	transition: .4s var(--hl-ease);
}
.hl-social-float a svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}
.hl-social-float a:hover,
.hl-social-float a:focus-visible {
	background: var(--hl-cream);
	border-color: var(--hl-cream);
	color: var(--hl-ink);
	transform: translateY(-3px);
}
@media (max-width: 720px) {
	.hl-social-float { gap: 7px; padding: 8px 10px; bottom: 16px; }
	.hl-social-float a { width: 38px; height: 38px; }
	.hl-social-float a svg { width: 15px; height: 15px; }
}

/* ---------------------------------------------------------------------------
   Fallback footer
   ------------------------------------------------------------------------ */
.hl-site-footer {
	padding: clamp(48px, 7vw, 84px) var(--hl-pad) calc(28px + var(--hl-social-h));
	background: var(--hl-ink-2);
	border-top: 1px solid var(--hl-line);
}
.hl-site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.2fr;
	gap: clamp(28px, 5vw, 64px);
	max-width: var(--hl-wrap);
	margin-inline: auto;
}
.hl-site-footer h2 {
	margin: 0 0 18px;
	font-family: var(--hl-f-body);
	font-size: .66rem;
	font-weight: 500;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--hl-cream-faint);
}
.hl-site-footer ul { margin: 0; padding: 0; list-style: none; }
.hl-site-footer li + li { margin-top: 12px; }
.hl-site-footer a { color: var(--hl-cream-dim); }
.hl-site-footer a:hover { color: var(--hl-sun); }
.hl-site-footer__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: space-between;
	max-width: var(--hl-wrap);
	margin: clamp(34px, 5vw, 56px) auto 0;
	padding-top: 22px;
	border-top: 1px solid var(--hl-line);
}
@media (max-width: 900px) {
	.hl-site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   Page hero (inner pages)
   ------------------------------------------------------------------------ */
.hl-page-hero {
	position: relative;
	display: grid;
	align-content: end;
	min-height: 46vh;
	padding: calc(var(--hl-bar-h) + 60px) var(--hl-pad) clamp(40px, 6vw, 72px);
	overflow: hidden;
	isolation: isolate;
	background: var(--hl-ink-2);
}
.hl-page-hero__inner {
	position: relative;
	z-index: 2;
	max-width: var(--hl-wrap);
	margin-inline: auto;
	width: 100%;
}
.hl-page-hero h1 {
	margin: 0;
	font-size: clamp(2.2rem, 5.4vw, 4.4rem);
	line-height: 1.02;
}

/* Breadcrumb */
.hl-crumb {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	font-size: .64rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--hl-cream-faint);
}
.hl-crumb a { color: var(--hl-cream-dim); }
.hl-crumb a:hover { color: var(--hl-sun); }
.hl-crumb li + li::before { content: "/ "; opacity: .5; }

/* ---------------------------------------------------------------------------
   Grids — project archive, journal archive
   ------------------------------------------------------------------------ */
.hl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 22px;
	max-width: var(--hl-wrap);
	margin-inline: auto;
}
/* In a grid the card is not a flex item, so release the reel's fixed basis. */
.hl-grid .hl-card {
	flex: none;
	width: 100%;
	height: clamp(320px, 34vw, 460px);
}
.hl-grid > [hidden] { display: none; }

/* ---------------------------------------------------------------------------
   Post card (journal)
   ------------------------------------------------------------------------ */
.hl-pcard {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius-card);
	background: rgba(20, 17, 16, .5);
	color: var(--hl-cream);
	transition: .55s var(--hl-ease);
}
.hl-pcard:hover,
.hl-pcard:focus-visible {
	border-color: var(--hl-sun);
	transform: translateY(-6px);
}
.hl-pcard__thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}
.hl-pcard__thumb .hl-media {
	z-index: 0;
	transform: scale(1.04);
}
.hl-pcard:hover .hl-pcard__thumb .hl-media { transform: scale(1.1); }
.hl-pcard__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}
.hl-pcard__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	font-size: .6rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--hl-cream-faint);
}
.hl-pcard__meta b { color: var(--hl-sun); font-weight: 500; }
.hl-pcard h3 {
	margin: 0 0 10px;
	font-size: 1.3rem;
	line-height: 1.22;
}
.hl-pcard p {
	margin: 0;
	font-size: .78rem;
	line-height: 1.7;
	color: var(--hl-cream-dim);
}
.hl-pcard .hl-go { margin-top: auto; padding-top: 20px; }
.hl-pcard:hover .hl-go { gap: 15px; }

/* ---------------------------------------------------------------------------
   Prose — single post / page content
   ------------------------------------------------------------------------ */
.hl-prose {
	max-width: var(--hl-wrap-prose);
	margin-inline: auto;
	font-size: 1.02rem;
	line-height: 1.85;
	color: var(--hl-cream-dim);
}
.hl-prose > * + * { margin-top: 1.3em; }
.hl-prose h2 {
	margin-top: 2.2em;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	color: var(--hl-cream);
}
.hl-prose h3 {
	margin-top: 1.8em;
	font-size: clamp(1.3rem, 2.2vw, 1.7rem);
	color: var(--hl-cream);
}
.hl-prose a { text-decoration: underline; text-underline-offset: 3px; }
.hl-prose ul, .hl-prose ol { padding-left: 1.3em; }
.hl-prose li + li { margin-top: .5em; }
.hl-prose blockquote {
	padding-left: 24px;
	border-left: 2px solid var(--hl-sun);
	font-family: var(--hl-f-display);
	font-size: clamp(1.2rem, 2.2vw, 1.7rem);
	font-style: italic;
	line-height: 1.45;
	color: var(--hl-cream);
}
.hl-prose img,
.hl-prose figure { border-radius: var(--hl-radius); }
.hl-prose figcaption {
	margin-top: 10px;
	font-size: .72rem;
	letter-spacing: .06em;
	color: var(--hl-cream-faint);
}
.hl-prose code {
	padding: 2px 6px;
	border-radius: 3px;
	background: rgba(242, 234, 224, .07);
	font-size: .9em;
}

/* Article header */
.hl-article-head {
	max-width: var(--hl-wrap-prose);
	margin: 0 auto clamp(28px, 4vw, 48px);
}
.hl-article-head h1 {
	margin: 0 0 18px;
	font-size: clamp(2rem, 4.6vw, 3.6rem);
	line-height: 1.06;
}
.hl-article-head .hl-meta { margin-top: 0; }

.hl-cover {
	max-width: var(--hl-wrap);
	margin: 0 auto clamp(28px, 4vw, 52px);
}
.hl-cover img {
	width: 100%;
	border-radius: var(--hl-radius);
}

/* ---------------------------------------------------------------------------
   Fact strip — single project
   ------------------------------------------------------------------------ */
.hl-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0;
	max-width: var(--hl-wrap);
	margin-inline: auto;
}
.hl-facts > div {
	padding: 24px 20px 22px;
	border-top: 1px solid var(--hl-line);
}
.hl-facts dt {
	margin: 0 0 8px;
	font-size: .6rem;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--hl-cream-faint);
}
.hl-facts dd {
	margin: 0;
	font-family: var(--hl-f-display);
	font-size: 1.34rem;
	line-height: 1.2;
	color: var(--hl-cream);
}

/* ---------------------------------------------------------------------------
   Gallery — single project
   ------------------------------------------------------------------------ */
.hl-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
	max-width: var(--hl-wrap);
	margin-inline: auto;
}
.hl-gallery button {
	display: block;
	padding: 0;
	border: 0;
	border-radius: var(--hl-radius);
	overflow: hidden;
	background: var(--hl-ink-3);
	line-height: 0;
}
.hl-gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 1s var(--hl-ease);
}
.hl-gallery button:hover img { transform: scale(1.05); }

/* Lightbox */
.hl-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	place-items: center;
	padding: clamp(20px, 5vw, 60px);
	background: rgba(6, 5, 4, .94);
	backdrop-filter: blur(6px);
}
.hl-lightbox.is-open { display: grid; }
.hl-lightbox img {
	max-width: 100%;
	max-height: 82vh;
	border-radius: var(--hl-radius);
}
.hl-lightbox__close,
.hl-lightbox__prev,
.hl-lightbox__next {
	position: absolute;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--hl-line);
	border-radius: 50%;
	background: rgba(11, 9, 8, .6);
	color: var(--hl-cream);
}
.hl-lightbox__close { top: 20px; inset-inline-end: 20px; }
.hl-lightbox__prev  { inset-inline-start: 20px; top: 50%; transform: translateY(-50%); }
.hl-lightbox__next  { inset-inline-end: 20px;   top: 50%; transform: translateY(-50%); }
.hl-lightbox__cap {
	position: absolute;
	inset-inline: 0;
	bottom: 24px;
	text-align: center;
	font-size: .76rem;
	color: var(--hl-cream-dim);
}

/* ---------------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------------ */
.hl-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	max-width: var(--hl-wrap);
	margin: clamp(34px, 5vw, 56px) auto 0;
}
.hl-pager .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--hl-line);
	border-radius: 999px;
	font-size: .74rem;
	color: var(--hl-cream-dim);
	transition: .4s var(--hl-ease);
}
.hl-pager .page-numbers:hover { border-color: var(--hl-cream); color: var(--hl-cream); }
.hl-pager .page-numbers.current {
	background: var(--hl-sun);
	border-color: var(--hl-sun);
	color: var(--hl-btn-ink);
}

/* ---------------------------------------------------------------------------
   404 / empty archive
   ------------------------------------------------------------------------ */
.hl-notfound {
	display: grid;
	place-content: center;
	gap: 20px;
	min-height: 68vh;
	padding: var(--hl-pad);
	text-align: center;
}
.hl-notfound h1 {
	font-size: clamp(3rem, 12vw, 9rem);
	line-height: .9;
	color: var(--hl-sun);
}

/* ---------------------------------------------------------------------------
   Non-deck reveal: the observer adds .hl-revealed per element
   ------------------------------------------------------------------------ */
.hl-reveal-scope [data-hl-reveal] { will-change: opacity, transform; }
