/* ==========================================================================
   Hager Gewefel — home sections + inner pages
   ========================================================================== */

/* ---------- shared ---------- */
.hg-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

.hg-ph {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	background: linear-gradient(135deg, #e9e3da, #d9d1c5);
}

.hg-label--sm { font-size: 11px; line-height: 16px; letter-spacing: 1.1px; }

.hg-h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.1; }
.hg-h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1; margin-top: 0.5rem; }

.hg-label { margin: 0; }

/* ---------- Hero ---------- */
.hg-hero {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100svh;
	background: var(--hg-bone);
}

.hg-hero__frame {
	position: absolute;
	inset: 1rem;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px)  { .hg-hero__frame { inset: 2rem; } }
@media (min-width: 1024px) { .hg-hero__frame { inset: 3rem; } }

.hg-hero__slides { position: absolute; inset: 0; }
.hg-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.2s var(--hg-ease);
}
.hg-hero__slide.is-active { opacity: 1; }

.hg-hero__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1), transparent);
	pointer-events: none;
}

.hg-hero__content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.5rem;
	color: #fff;
}
@media (min-width: 768px)  { .hg-hero__content { padding: 2.5rem; } }
@media (min-width: 1024px) { .hg-hero__content { padding: 3rem; } }

.hg-hero__content { flex-direction: row; align-items: flex-end; justify-content: space-between; }

.hg-hero__title {
	font-size: 2.25rem;
	line-height: 1.1;
	color: #fff;
}
@media (min-width: 768px)  { .hg-hero__title { font-size: 3rem; } }
@media (min-width: 1024px) { .hg-hero__title { font-size: 3.75rem; } }

.hg-hero__sub {
	margin: 0.75rem 0 0;
	font-family: var(--hg-serif);
	font-style: italic;
	font-size: 1.125rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
}

.hg-hero__dots { display: flex; gap: 0.5rem; margin-top: 2rem; }
.hg-hero__dot {
	width: 16px;
	height: 2px;
	padding: 0;
	background: rgba(255, 255, 255, 0.4);
	transition: width 0.5s var(--hg-ease), background-color 0.5s var(--hg-ease);
}
.hg-hero__dot.is-active { width: 32px; background: #fff; }

.hg-hero__labels { position: relative; min-width: 12rem; height: 16px; text-align: right; }
.hg-hero__label {
	position: absolute;
	right: 0;
	bottom: 0;
	white-space: nowrap;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
	opacity: 0;
	transition: opacity 0.6s var(--hg-ease);
}
.hg-hero__label.is-active { opacity: 1; }

/* ---------- Portfolio carousel ---------- */
.hg-portfolio {
	background: var(--hg-bone);
	padding: 6rem 0;
	overflow: hidden;
}
@media (min-width: 768px) { .hg-portfolio { padding: 8rem 0; } }

.hg-portfolio__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding: 0 var(--hg-gutter);
	margin-bottom: 3rem;
}

.hg-portfolio__track {
	display: flex;
	gap: 1.5rem;
	padding: 0 var(--hg-gutter);
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-snap-type: x proximity;
	scroll-padding-left: var(--hg-gutter);
	cursor: grab;
}
.hg-portfolio__track::-webkit-scrollbar { display: none; }
.hg-portfolio__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.hg-portfolio__track.is-dragging a { pointer-events: none; }

.hg-card {
	flex: 0 0 auto;
	width: min(36rem, 85vw);
	background: #fff;
	padding: 0.875rem;
	scroll-snap-align: start;
	user-select: none;
	-webkit-user-drag: none;
}

.hg-card__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--hg-stone); }

.hg-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 1rem 0 0.25rem;
}
.hg-card__title { font-size: 1.375rem; line-height: 1.5rem; margin-bottom: 0.25rem; }
.hg-card__meta .hg-label { display: block; }
.hg-card__meta > .hg-label { padding-top: 0.25rem; }

/* ---------- Services ---------- */
.hg-services { background: var(--hg-bone); padding: 6rem var(--hg-gutter); }
@media (min-width: 768px) { .hg-services { padding: 8rem var(--hg-gutter); } }

.hg-services__inner { max-width: 61rem; margin: 0 auto; }

.hg-services__head {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 4rem;
}
@media (min-width: 768px) {
	.hg-services__head { flex-direction: row; justify-content: space-between; align-items: flex-end; margin-bottom: 6rem; }
}

.hg-services__intro {
	margin: 0;
	max-width: 17rem;
	font-family: var(--hg-serif);
	font-size: 1rem;
	line-height: 1.5rem;
	color: rgba(26, 26, 26, 0.6);
}

.hg-services__grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .hg-services__grid { grid-template-columns: 1fr 1fr; } }

.hg-service { padding: 2rem 0; border-bottom: 1px solid rgba(26, 26, 26, 0.1); }
.hg-service:last-child { border-bottom: 0; }
@media (min-width: 768px) {
	.hg-service { padding: 3rem; }
	.hg-service:nth-child(odd)  { border-right: 1px solid rgba(26, 26, 26, 0.1); }
	.hg-service:nth-child(n+3)  { border-bottom: 0; }
	.hg-service:nth-child(-n+2) { border-bottom: 1px solid rgba(26, 26, 26, 0.1); }
}

.hg-service__title { font-size: 1.75rem; line-height: 1.2; margin: 1.25rem 0 1rem; }
.hg-service__text { margin: 0; font-size: 14px; line-height: 22px; color: rgba(26, 26, 26, 0.6); max-width: 22rem; }

/* ---------- The Studio ---------- */
.hg-studio { background: #fff; padding: 6rem var(--hg-gutter); }
@media (min-width: 768px) { .hg-studio { padding: 8rem var(--hg-gutter); } }

.hg-studio__inner { max-width: 56rem; margin: 0 auto; }

.hg-studio__statement {
	margin-top: 1rem;
	max-width: 46rem;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.25;
}

.hg-studio__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 4rem; }
@media (min-width: 768px) { .hg-studio__grid { grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; } }

.hg-studio__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--hg-stone); }

.hg-studio__block { margin-bottom: 2rem; }
.hg-studio__block .hg-label { margin-bottom: 0.5rem; }
.hg-studio__strong { margin: 0; font-family: var(--hg-serif); font-size: 1rem; line-height: 1.5rem; color: var(--hg-charcoal); }
.hg-studio__text { margin: 0; font-family: var(--hg-serif); font-size: 1rem; line-height: 1.55rem; color: rgba(26, 26, 26, 0.6); }

/* ---------- Featured project ---------- */
.hg-featured { background: var(--hg-stone); padding: 6rem var(--hg-gutter); }
@media (min-width: 768px) { .hg-featured { padding: 8rem var(--hg-gutter); } }

.hg-featured__inner { max-width: 61rem; margin: 0 auto; }

.hg-featured__head {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 3rem;
}
@media (min-width: 768px) { .hg-featured__head { flex-direction: row; justify-content: space-between; align-items: flex-end; } }

.hg-featured__tags { display: flex; gap: 1.5rem; padding-bottom: 0.5rem; }

.hg-featured__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .hg-featured__grid { grid-template-columns: 2fr 1fr; } }

.hg-featured__main { display: block; background: #fff; padding: 0.625rem; }
.hg-featured__img { overflow: hidden; background: var(--hg-stone); }
.hg-featured__img--wide { aspect-ratio: 4 / 3; }
.hg-featured__img--square { aspect-ratio: 1 / 1; }

.hg-featured__side { display: flex; flex-direction: column; gap: 1.25rem; }
.hg-featured__card { background: #fff; padding: 0.625rem; }
.hg-featured__card--text { flex: 1; padding: 1.625rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.hg-featured__summary {
	margin: 0;
	font-family: var(--hg-serif);
	font-size: 1.125rem;
	line-height: 1.5rem;
	color: rgba(26, 26, 26, 0.6);
}
.hg-featured__card--text .hg-link { align-self: flex-start; }

/* ---------- Contact CTA ---------- */
.hg-cta { background: var(--hg-bone); padding: 6rem var(--hg-gutter); }
@media (min-width: 768px) { .hg-cta { padding: 8rem var(--hg-gutter); } }

.hg-cta__inner { max-width: 40rem; margin: 0 auto; text-align: center; }
.hg-cta__title { font-size: clamp(2.25rem, 4.5vw, 3rem); line-height: 1.1; }
.hg-cta__text {
	margin: 2rem auto 0;
	max-width: 24rem;
	font-family: var(--hg-serif);
	font-size: 1.125rem;
	line-height: 1.5rem;
	color: rgba(26, 26, 26, 0.6);
}
.hg-cta__contact {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 2rem 0 2.5rem;
	font-size: 12px;
	line-height: 24px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: rgba(26, 26, 26, 0.6);
}
.hg-cta__contact a { transition: color 0.2s var(--hg-ease); }
.hg-cta__contact a:hover { color: var(--hg-charcoal); }

/* ---------- Inner pages ---------- */
.hg-inner .hg-header { color: var(--hg-charcoal); }
.hg-inner .hg-header__brand img { filter: none; }
.hg-inner .hg-header__brand img.is-invert { filter: brightness(0); }
.hg-inner .hg-header__wordmark,
.hg-inner .hg-burger { text-shadow: none; filter: none; }

.hg-page,
.hg-archive {
	padding: 9rem var(--hg-gutter) 6rem;
	max-width: 76rem;
	margin: 0 auto;
}
.hg-page__article { max-width: 48rem; }

.hg-prose { font-size: 16px; line-height: 1.7; color: rgba(26, 26, 26, 0.85); }
.hg-prose p { margin: 0 0 1.25rem; }
.hg-prose h2, .hg-prose h3 { margin: 2rem 0 1rem; }

.hg-archive__head { margin-bottom: 3rem; }
.hg-archive__head .hg-h1 { margin-top: 0.75rem; }
.hg-archive__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .hg-archive__grid { grid-template-columns: 1fr 1fr; } }
.hg-archive .hg-card { width: auto; }
.hg-archive .navigation { margin-top: 3rem; }
