/*
 * aos/hero — frontend styles (premium edition, polished).
 *
 * Z-stack (back to front): background photo, grain, inner content.
 * Four variants: program, home, admissions, event.
 * Tightened: consistent tokens, editorial shadow on buttons, gold accent
 * rail on colophon, refined stat strip.
 */

.aos-hero-block {
	position: relative;
	isolation: isolate;
	color: #fff;
	overflow: hidden;
	background: hsl(var(--aos-navy, 212 82% 13%));
}

/* Background photo + Ken-Burns drift */
.aos-hero-block__photo {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.aos-hero-block__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 28%;
	display: block;
	opacity: 0.55;
	transform: scale(1.04);
	animation: aosHeroPhoto 32s ease-in-out infinite alternate;
}
@keyframes aosHeroPhoto {
	from { transform: scale(1.04); }
	to   { transform: scale(1.10); }
}
@media (prefers-reduced-motion: reduce) {
	.aos-hero-block__photo img { animation: none; }
}
.aos-hero-block__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, hsl(var(--aos-navy, 212 82% 13%) / 0.58) 0%, hsl(var(--aos-navy, 212 82% 13%) / 0.72) 42%, hsl(var(--aos-navy, 212 82% 13%) / 0.94) 100%),
		linear-gradient(90deg, hsl(var(--aos-navy, 212 82% 13%) / 0.60) 0%, transparent 62%);
}

/* Film grain */
.aos-hero-block__grain {
	position: absolute;
	inset: 0;
	z-index: 1;
	opacity: 0.45;
	background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 1.5px);
	background-size: 26px 26px;
	mix-blend-mode: overlay;
	pointer-events: none;
}

/* Inner container */
.aos-hero-block__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--container, min(100%, 1680px));
	margin: 0 auto;
	padding: clamp(2rem, 3.5vw, 3rem) var(--gutter, clamp(1.25rem, 4vw, 4rem)) clamp(3.5rem, 5.5vw, 5rem);
	min-height: clamp(680px, 92vh, 880px);
	display: flex;
	flex-direction: column;
}

/* Accreditation chip */
.aos-hero-block__accred {
	position: absolute;
	top: clamp(1.75rem, 3vw, 2.5rem);
	right: var(--gutter, clamp(1.25rem, 4vw, 4rem));
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 9px 16px 9px 12px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 100px;
	background: hsl(var(--aos-navy, 212 82% 13%) / 0.45);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	font-family: var(--body, system-ui, sans-serif);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
}
.aos-hero-block__accred strong {
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.08em;
}

/* Breadcrumbs */
.aos-hero-block__crumbs {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--body, system-ui, sans-serif);
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.62);
	letter-spacing: 0.01em;
	margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}
.aos-hero-block__crumbs a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
	transition: color 220ms cubic-bezier(.22,1,.36,1);
}
.aos-hero-block__crumbs a:hover { color: hsl(var(--aos-yellow, 174 55% 40%)); }
.aos-hero-block__crumbs .is-current { color: #fff; font-weight: 500; }
.aos-hero-block__crumbs svg { width: 9px; height: 9px; opacity: 0.55; }

/* Date stamp (event) */
.aos-hero-block__date {
	font-family: var(--mono, "JetBrains Mono", monospace);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: hsl(var(--aos-yellow, 174 55% 40%));
	margin: 0 0 1rem;
}

/* Content block */
.aos-hero-block__content {
	margin-top: auto;
	max-width: 1040px;
}

.aos-hero-block__eyebrow {
	font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: hsl(var(--aos-yellow, 174 55% 40%));
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 36px;
}
.aos-hero-block__eyebrow::before {
	content: "";
	width: 40px;
	height: 1.5px;
	background: hsl(var(--aos-yellow, 174 55% 40%));
}

.aos-hero-block__headline {
	font-family: var(--display, "Source Serif 4", Georgia, serif);
	font-size: clamp(3.4rem, 9vw, 8.4rem);
	line-height: 0.88;
	letter-spacing: -0.036em;
	color: #fff;
	margin: 0 0 clamp(2rem, 3vw, 2.75rem);
	font-weight: 300;
	font-variation-settings: "opsz" 60;
	max-width: 14ch;
}
.aos-hero-block__headline em {
	font-style: italic;
	font-weight: 300;
	color: hsl(var(--aos-yellow, 174 55% 40%));
}

/* Location (event) */
.aos-hero-block__location {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--body, system-ui, sans-serif);
	font-size: 15px;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 1rem;
}

.aos-hero-block__lead {
	margin-top: clamp(1rem, 2vw, 1.5rem);
	font-family: var(--display, "Source Serif 4", Georgia, serif);
	font-weight: 300;
	font-size: clamp(18px, 1.6vw, 24px);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.86);
	max-width: 72ch;
	margin: 0 0 clamp(2.75rem, 4.5vw, 3.75rem);
	font-variation-settings: "opsz" 40;
}

/* Colophon with gold accent rail */
.aos-hero-block__colophon {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	padding: clamp(20px, 2.5vw, 28px) 0;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	border-left: 2px solid hsl(var(--aos-yellow, 174 55% 40%) / 0.6);
	padding-left: clamp(16px, 2vw, 24px);
	margin: 0 0 clamp(2.75rem, 4.5vw, 3.75rem);
	max-width: 920px;
	align-items: flex-start;
}
.aos-hero-block__colophon-cell {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 clamp(24px, 3vw, 40px);
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	flex: 0 0 auto;
}
.aos-hero-block__colophon-cell:first-child { padding-left: 0; }
.aos-hero-block__colophon-cell:last-child  { border-right: 0; }
.aos-hero-block__colophon-label {
	font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin: 0;
}
.aos-hero-block__colophon-value {
	font-family: var(--display, "Source Serif 4", Georgia, serif);
	font-weight: 400;
	font-size: 18px;
	line-height: 1.2;
	color: #fff;
	font-variation-settings: "opsz" 60;
	font-variant-numeric: lining-nums tabular-nums;
	margin: 0;
}
.aos-hero-block__colophon-value em {
	font-style: italic;
	font-weight: 300;
	color: hsl(var(--aos-yellow, 174 55% 40%));
}

/* Stats strip */
.aos-hero-block__stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(28px, 4vw, 52px);
	margin: 0 0 clamp(2.75rem, 4.5vw, 3.75rem);
	max-width: 960px;
}
.aos-hero-block__stat {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 20px;
	border-top: 2px solid hsl(var(--aos-yellow, 174 55% 40%));
}
.aos-hero-block__stat-num {
	font-family: var(--display, "Source Serif 4", Georgia, serif);
	font-size: clamp(2.6rem, 4.4vw, 3.6rem);
	line-height: 0.92;
	letter-spacing: -0.038em;
	color: #fff;
	font-weight: 300;
	font-variation-settings: "opsz" 60;
	font-variant-numeric: lining-nums tabular-nums;
	margin: 0;
}
.aos-hero-block__stat-num .small {
	font-size: 0.38em;
	vertical-align: 0.5em;
	margin-left: 3px;
	color: hsl(var(--aos-yellow, 174 55% 40%));
	font-weight: 400;
	letter-spacing: -0.01em;
}
.aos-hero-block__stat-label {
	font-family: var(--body, system-ui, sans-serif);
	font-size: 13px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

/* Buttons with editorial shadow */
.aos-hero-block__actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin: 0;
}
.aos-hero-block__actions .btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 26px;
	border-radius: 100px;
	font-family: var(--body, system-ui, sans-serif);
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: -0.005em;
	text-decoration: none;
	transition: background 280ms cubic-bezier(.2,.8,.2,1),
	            border-color 280ms cubic-bezier(.2,.8,.2,1),
	            transform 280ms cubic-bezier(.2,.8,.2,1),
	            box-shadow 280ms cubic-bezier(.2,.8,.2,1);
}
.aos-hero-block__actions .btn--primary {
	background: hsl(var(--aos-yellow, 174 55% 40%));
	color: hsl(var(--aos-navy, 212 82% 13%));
	border: 1px solid hsl(var(--aos-yellow, 174 55% 40%));
	box-shadow: 0 10px 32px hsl(var(--aos-yellow, 174 55% 40%) / 0.28);
}
.aos-hero-block__actions .btn--primary:hover {
	background: hsl(var(--aos-yellow-deep, 38 95% 38%));
	border-color: hsl(var(--aos-yellow-deep, 38 95% 38%));
	transform: translateY(-1px);
	box-shadow: 0 14px 40px hsl(var(--aos-yellow, 174 55% 40%) / 0.4);
}
.aos-hero-block__actions .btn--ghost {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.28);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.aos-hero-block__actions .btn--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.5);
}

/* === Variant overrides ================================================== */

/* home */
.aos-hero-block--home .aos-hero-block__inner {
	min-height: clamp(640px, 90vh, 860px);
}
.aos-hero-block--home .aos-hero-block__content {
	margin-top: 0;
	margin-bottom: auto;
	max-width: 1240px;
	padding-top: clamp(2rem, 4vw, 4rem);
}
.aos-hero-block--home .aos-hero-block__headline {
	font-size: clamp(3.8rem, 10vw, 9.6rem);
	max-width: 17ch;
}
.aos-hero-block--home .aos-hero-block__lead {
	margin-top: clamp(1rem, 2vw, 1.5rem);
	max-width: 72ch;
	font-size: clamp(19px, 1.7vw, 26px);
}

/* admissions */
.aos-hero-block--admissions .aos-hero-block__inner {
	min-height: clamp(580px, 82vh, 780px);
	justify-content: center;
	align-items: center;
	text-align: center;
}
.aos-hero-block--admissions .aos-hero-block__content {
	margin-top: 0;
	margin-bottom: 0;
	max-width: 920px;
}
.aos-hero-block--admissions .aos-hero-block__eyebrow {
	justify-content: center;
}
.aos-hero-block--admissions .aos-hero-block__eyebrow::before {
	display: none;
}
.aos-hero-block--admissions .aos-hero-block__headline {
	font-size: clamp(2.8rem, 7.2vw, 6.8rem);
	margin-left: auto;
	margin-right: auto;
	max-width: 18ch;
}
.aos-hero-block--admissions .aos-hero-block__lead {
	margin-top: clamp(1rem, 2vw, 1.5rem);
	margin-left: auto;
	margin-right: auto;
	max-width: 72ch;
}
.aos-hero-block--admissions .aos-hero-block__actions {
	justify-content: center;
}
.aos-hero-block--admissions .aos-hero-block__photo::after {
	background:
		radial-gradient(ellipse at center, hsl(var(--aos-navy, 212 82% 13%) / 0.36) 0%, hsl(var(--aos-navy, 212 82% 13%) / 0.94) 78%),
		linear-gradient(180deg, hsl(var(--aos-navy, 212 82% 13%) / 0.4) 0%, hsl(var(--aos-navy, 212 82% 13%) / 0.65) 100%);
}

/* event */
.aos-hero-block--event .aos-hero-block__inner {
	min-height: clamp(480px, 68vh, 640px);
}
.aos-hero-block--event .aos-hero-block__content {
	margin-top: 0;
	margin-bottom: auto;
	padding-top: clamp(1rem, 2.5vw, 2rem);
	max-width: 920px;
}
.aos-hero-block--event .aos-hero-block__date {
	font-size: 12.5px;
	letter-spacing: 0.22em;
	padding: 9px 16px;
	border: 1px solid hsl(var(--aos-yellow, 174 55% 40%) / 0.55);
	border-radius: 3px;
	display: inline-block;
	background: hsl(var(--aos-navy, 212 82% 13%) / 0.35);
	margin: 0 0 1.5rem;
}
.aos-hero-block--event .aos-hero-block__headline {
	font-size: clamp(2.8rem, 7.2vw, 6.4rem);
	max-width: 20ch;
}

/* === Responsive ========================================================= */

@media (max-width: 820px) {
	.aos-hero-block__colophon { padding: 18px 0 18px 12px; margin-bottom: clamp(2rem, 4vw, 2.75rem); }
	.aos-hero-block__colophon-cell { padding: 0 clamp(16px, 2.5vw, 24px); gap: 6px; }
	.aos-hero-block__lead {
	margin-top: clamp(1rem, 2vw, 1.5rem); margin-bottom: clamp(2rem, 4vw, 2.75rem); }
	.aos-hero-block__stats { grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 4vw, 32px); margin-bottom: clamp(2rem, 4vw, 2.75rem); }
	.aos-hero-block__stat { padding-top: 16px; gap: 10px; }
}

@media (max-width: 480px) {
	.aos-hero-block__colophon { flex-direction: column; gap: 16px; padding: 20px 0 20px 12px; }
	.aos-hero-block__colophon-cell {
		flex-direction: row;
		justify-content: space-between;
		align-items: baseline;
		padding: 0 0 14px;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}
	.aos-hero-block__colophon-cell:last-child { padding-bottom: 0; border-bottom: 0; }
	.aos-hero-block__stats { grid-template-columns: 1fr 1fr; gap: 24px; }
	.aos-hero-block__stat { padding-top: 18px; }
	.aos-hero-block__stat-num { font-size: clamp(2.8rem, 12vw, 4rem); }
	.aos-hero-block__actions { flex-direction: column; align-items: stretch; gap: 12px; }
	.aos-hero-block__actions .btn { justify-content: center; }
}
