/* ==========================================================================
   BBeiroot Academy — Design System

   The palette is sampled directly from the logo mark: its deepest navy, its
   signature teal, its ocean blue and its steel greys.

   Three teals, because one cannot do every job accessibly:
     --accent       #22B8B8  the logo teal. Fills, hairlines, dots, buttons.
                             Ink text on it reads at 7.4:1.
     --accent-soft  #5FD3D0  lifted for dark grounds — 10.0:1 on --ink.
     --accent-ink   #0B7679  darkened for accent TEXT on light grounds, where
                             the logo teal itself only reaches 2.3:1.
   ========================================================================== */

:root {
	/* Brand — sampled from the logo */
	--ink:            #0B1729;
	--ink-2:          #14294A;
	--ink-3:          #204068;
	--accent:         #22B8B8;
	--accent-soft:    #5FD3D0;
	--accent-ink:     #0B7679;
	--ocean:          #0E86B8;
	--steel:          #7890A0;

	/* Surface */
	--bg:             #F7FAFB;
	--surface:        #FFFFFF;
	--surface-alt:    #EDF3F5;
	--line:           #DDE7EB;
	--line-strong:    #C2D2D8;

	/* Text */
	--text:           #10202F;
	--text-muted:     #50646F;
	--text-light:     #8398A3;
	--on-dark:        #EAF2F4;
	--on-dark-muted:  #9DB4BF;

	/* Type */
	--font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

	/* Fluid scale */
	--step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
	--step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
	--step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
	--step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
	--step-3:  clamp(1.8rem, 1.5rem + 1.4vw, 2.7rem);
	--step-4:  clamp(2.2rem, 1.7rem + 2.4vw, 3.8rem);
	--step-5:  clamp(2.6rem, 1.8rem + 3.8vw, 5.2rem);

	/* Rhythm */
	--gutter:    clamp(1.25rem, 4vw, 2.5rem);
	--section:   clamp(4.5rem, 9vw, 9rem);
	--radius:    14px;
	--radius-sm: 8px;
	--maxw:      1280px;
	--maxw-text: 68ch;

	/* Depth */
	--shadow-sm: 0 1px 2px rgba(11, 23, 41, .06), 0 2px 8px rgba(11, 23, 41, .04);
	--shadow-md: 0 4px 12px rgba(11, 23, 41, .08), 0 12px 32px rgba(11, 23, 41, .07);
	--shadow-lg: 0 12px 28px rgba(11, 23, 41, .12), 0 32px 64px rgba(11, 23, 41, .1);

	--ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 128px;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.14;
	letter-spacing: -0.018em;
	margin: 0 0 .6em;
	color: var(--ink);
	text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
	outline: 2px solid var(--accent-ink);
	outline-offset: 3px;
	border-radius: 3px;
}

::selection { background: var(--accent); color: var(--ink); }

.section--dark :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible,
body.has-transparent-header .site-header:not(.is-stuck) :focus-visible { outline-color: var(--accent-soft); }

/* ---------- Layout ---------- */

.wrap {
	width: min(100% - (var(--gutter) * 2), var(--maxw));
	margin-inline: auto;
}

.wrap--narrow { width: min(100% - (var(--gutter) * 2), 860px); margin-inline: auto; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section--dark {
	background: var(--ink);
	color: var(--on-dark);
}

.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: var(--on-dark-muted); }

.section--alt { background: var(--surface-alt); }

/* ---------- Eyebrow + section heads ---------- */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--accent-ink);
	margin-bottom: 1.1rem;
}

/* Over any dark ground the logo teal can sit at full brightness. */
.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.cta .eyebrow,
.site-footer .eyebrow { color: var(--accent-soft); }

.eyebrow::before {
	content: "";
	width: 30px;
	height: 1px;
	background: currentColor;
	flex: none;
}

.section__head {
	max-width: var(--maxw-text);
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head--center {
	margin-inline: auto;
	text-align: center;
}

.section__head--center .eyebrow { justify-content: center; }
.section__head--center .eyebrow::after {
	content: "";
	width: 30px;
	height: 1px;
	background: currentColor;
}

.section__lede {
	font-size: var(--step-1);
	line-height: 1.6;
	color: var(--text-muted);
	font-weight: 400;
}

.section--dark .section__lede { color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	padding: 1rem 2rem;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all .4s var(--ease);
	position: relative;
	overflow: hidden;
	white-space: nowrap;
}

.btn--primary {
	background: var(--ink);
	color: #fff;
	box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
	background: var(--ink-2);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.btn--accent {
	background: var(--accent);
	color: var(--ink);
	box-shadow: 0 4px 14px rgba(34, 184, 184, .3);
}

.btn--accent:hover {
	background: var(--accent-soft);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(34, 184, 184, .42);
}

.btn--ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--line-strong);
}

.btn--ghost:hover {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
}

.btn--light {
	background: rgba(255, 255, 255, .08);
	color: #fff;
	border-color: rgba(255, 255, 255, .28);
	backdrop-filter: blur(8px);
}

.btn--light:hover {
	background: #fff;
	color: var(--ink);
	border-color: #fff;
	transform: translateY(-2px);
}

.btn--sm { padding: .7rem 1.4rem; }

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2rem;
}

/* Arrow link */

.arrow-link {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink);
	transition: gap .3s var(--ease), color .3s var(--ease);
}

.arrow-link::after {
	content: "";
	width: 16px;
	height: 8px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'%3E%3Cpath d='M0 4h13M10 1l3 3-3 3' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'%3E%3Cpath d='M0 4h13M10 1l3 3-3 3' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat center / contain;
	transition: transform .3s var(--ease);
}

.arrow-link:hover { gap: .9rem; color: var(--accent-ink); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	transition: all .45s var(--ease);
	border-bottom: 1px solid transparent;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 112px;
	transition: min-height .45s var(--ease);
}

/* Transparent over hero, glass once scrolled */

body.has-transparent-header .site-header {
	background: transparent;
}

.site-header.is-stuck,
body:not(.has-transparent-header) .site-header {
	background: rgba(255, 255, 255, .82);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom-color: var(--line);
	box-shadow: 0 1px 24px rgba(11, 23, 41, .06);
}

.site-header.is-stuck .site-header__inner { min-height: 92px; }

.brand { display: flex; align-items: center; gap: .8rem; flex: none; }

.brand__mark {
	height: 75px;
	width: auto;
	object-fit: contain;
	transition: height .45s var(--ease);
	flex: none;
}

.site-header.is-stuck .brand__mark { height: 63px; }

.brand__text {
	font-family: var(--font-display);
	font-size: 1.83rem;
	font-weight: 700;
	letter-spacing: .005em;
	line-height: 1.08;
	color: var(--ink);
	white-space: nowrap;
	transition: color .45s var(--ease);
}

.brand__text span {
	display: block;
	font-family: var(--font-body);
	font-size: .5em;
	font-weight: 600;
	color: var(--accent-ink);
	letter-spacing: .26em;
	text-transform: uppercase;
	margin-top: .18em;
	transition: color .45s var(--ease);
}

body.has-transparent-header .site-header:not(.is-stuck) .brand__text { color: #fff; }
body.has-transparent-header .site-header:not(.is-stuck) .brand__text span { color: var(--accent-soft); }

/* Navigation */

.nav { display: flex; align-items: center; gap: 2.2rem; }

.nav__list {
	display: flex;
	align-items: center;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav__list a {
	position: relative;
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: .04em;
	color: var(--ink);
	padding-block: .5rem;
	transition: color .3s var(--ease);
	white-space: nowrap;
}

.nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 1.5px;
	background: var(--accent);
	transition: width .35s var(--ease);
}

.nav__list a:hover::after,
.nav__list .current-menu-item > a::after { width: 100%; }

.nav__list a:hover { color: var(--accent-ink); }

body.has-transparent-header .site-header:not(.is-stuck) .nav__list a { color: rgba(255, 255, 255, .92); }
body.has-transparent-header .site-header:not(.is-stuck) .nav__list a:hover { color: var(--accent-soft); }

/* Dropdowns */

.nav__list li { position: relative; }

.nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 14px);
	left: -1.2rem;
	min-width: 250px;
	list-style: none;
	margin: 0;
	padding: .6rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all .3s var(--ease);
}

.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav__list .sub-menu a {
	display: block;
	padding: .7rem 1rem;
	border-radius: 5px;
	color: var(--ink) !important;
	font-weight: 500;
}

.nav__list .sub-menu a::after { display: none; }
.nav__list .sub-menu a:hover { background: var(--surface-alt); color: var(--accent-ink) !important; }

/* Burger */

.burger {
	display: none;
	width: 44px;
	height: 44px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 10px;
	flex: none;
}

.burger span {
	display: block;
	height: 1.6px;
	background: var(--ink);
	border-radius: 2px;
	transition: all .35s var(--ease);
}

.burger span + span { margin-top: 6px; }

body.has-transparent-header .site-header:not(.is-stuck) .burger span { background: #fff; }

.burger.is-open span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	position: relative;
	min-height: min(100svh, 920px);
	display: grid;
	align-items: center;
	overflow: hidden;
	background: var(--ink);
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero__media img,
.hero__media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	will-change: transform;
}

/*
 * The clip is 16:9. A tall phone viewport is far narrower than that, so
 * `cover` crops the sides hard — shifting the focal point keeps the
 * clinicians in frame instead of empty ceiling. The ink background covers
 * the instant before the poster paints.
 */
.hero__media .hero__video {
	object-position: center 42%;
	background: var(--ink);
	pointer-events: none;
}

@media (max-width: 700px) {
	.hero__media .hero__video { object-position: 34% 45%; }
}

/* A reduced-motion preference holds the poster frame still instead. */
@media (prefers-reduced-motion: reduce) {
	.hero__video { display: none; }

	.hero__media {
		background-image: var(--hero-poster, none);
		background-size: cover;
		background-position: center 42%;
	}
}

.hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(11, 23, 41, .72) 0%, rgba(11, 23, 41, .52) 42%, rgba(11, 23, 41, .88) 100%),
		linear-gradient(100deg, rgba(11, 23, 41, .85) 0%, rgba(11, 23, 41, .28) 62%);
}

.hero__inner {
	position: relative;
	z-index: 2;
	padding-block: clamp(10.5rem, 17vh, 13rem) clamp(4rem, 9vh, 7rem);
	max-width: 900px;
	color: #fff;
}

.hero h1 {
	font-size: var(--step-5);
	color: #fff;
	margin-bottom: 1.4rem;
	letter-spacing: -0.028em;
}

.hero h1 em {
	font-style: italic;
	color: var(--accent-soft);
}

.hero__lede {
	font-size: var(--step-1);
	line-height: 1.6;
	color: rgba(255, 255, 255, .88);
	max-width: 62ch;
	margin-bottom: 0;
}



/* Hero stat strip */

.hero__stats {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: rgba(255, 255, 255, .14);
	border-top: 1px solid rgba(255, 255, 255, .14);
}

.hero__stat {
	background: rgba(11, 23, 41, .58);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1rem, 2vw, 1.6rem);
	text-align: center;
}

.hero__stat dt {
	font-size: var(--step--1);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .62);
	margin-bottom: .4rem;
	font-weight: 500;
}

.hero__stat dd {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.9rem, 4vw, 2.9rem);
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

.hero__stat dd span { color: var(--accent-soft); }

/* Scroll cue */

.hero__cue {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 2.2rem);
	transform: translateX(-50%);
	z-index: 3;
	width: 1px;
	height: 54px;
	background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .55));
	overflow: hidden;
}

.hero__cue::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--accent);
	animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
	0%   { transform: translateY(-100%); }
	60%  { transform: translateY(100%); }
	100% { transform: translateY(100%); }
}

/* ==========================================================================
   Trust bar
   ========================================================================== */

.pillars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.pillar {
	padding: 2rem 1.6rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	position: relative;
	overflow: hidden;
	transition: all .45s var(--ease);
}

.pillar::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 2px;
	background: linear-gradient(90deg, var(--accent), var(--ocean));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .5s var(--ease);
}

.pillar:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-md);
	border-color: transparent;
}

.pillar:hover::before { transform: scaleX(1); }

.pillar__icon {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: linear-gradient(140deg, rgba(34, 184, 184, .16), rgba(14, 134, 184, .14));
	color: var(--ink);
	margin-bottom: 1.1rem;
}

.pillar h3 { font-size: var(--step-1); margin-bottom: .45rem; }
.pillar p { font-size: var(--step--1); color: var(--text-muted); margin: 0; line-height: 1.65; }

/* ==========================================================================
   Cards — programmes, events, faculty
   ========================================================================== */

.grid {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.2rem);
}

.grid--3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }

.life-gallery {
	columns: 4 220px;
	column-gap: 1rem;
}

.life-gallery__item {
	break-inside: avoid;
	margin-bottom: 1rem;
	overflow: hidden;
	border-radius: var(--radius-sm);
}

.life-gallery__item img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform .5s var(--ease);
}

.life-gallery__item:hover img { transform: scale(1.04); }

@media (max-width: 640px) {
	.life-gallery { columns: 2 160px; }
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: all .5s var(--ease);
	height: 100%;
}

.card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
	border-color: transparent;
}

.card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--surface-alt);
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .9s var(--ease);
}

.card:hover .card__media img { transform: scale(1.06); }

.card__media--contain {
	background: var(--ink);
}

.card__media--contain img {
	object-fit: contain;
}

.card__tag {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 2;
	padding: .38rem .85rem;
	border-radius: 100px;
	background: rgba(11, 23, 41, .82);
	backdrop-filter: blur(10px);
	color: #fff;
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.card__tag--accent { background: var(--accent); color: var(--ink); }

.card__body {
	padding: clamp(1.4rem, 2.5vw, 1.9rem);
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: .85rem;
}

.card__title {
	font-size: var(--step-1);
	margin: 0;
	line-height: 1.25;
	transition: color .3s var(--ease);
}

.card:hover .card__title { color: var(--accent-ink); }

.card__excerpt {
	font-size: var(--step--1);
	color: var(--text-muted);
	line-height: 1.65;
	margin: 0;
	flex: 1;
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.1rem;
	padding-top: .9rem;
	border-top: 1px solid var(--line);
	font-size: .78rem;
	color: var(--text-light);
	letter-spacing: .02em;
}

.card__meta span {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}

.card__meta svg { width: 14px; height: 14px; flex: none; opacity: .75; }

.card__link { position: absolute; inset: 0; z-index: 3; }

/* Faculty card */

.faculty-card { text-align: center; }

.faculty-card .card__media {
	aspect-ratio: 3 / 4;
	border-radius: var(--radius) var(--radius) 0 0;
}

.faculty-card .card__media::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 55%;
	background: linear-gradient(180deg, transparent, rgba(11, 23, 41, .82));
	opacity: 0;
	transition: opacity .5s var(--ease);
}

.faculty-card:hover .card__media::after { opacity: 1; }

.faculty-card__role {
	font-size: .78rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent-ink);
	font-weight: 600;
}

.faculty-card__inst { font-size: var(--step--1); color: var(--text-muted); }

/* Event card */

.event-card { display: grid; grid-template-columns: 110px 1fr; align-items: stretch; }

.event-card__date {
	display: grid;
	place-content: center;
	text-align: center;
	background: var(--ink);
	color: #fff;
	padding: 1.4rem .8rem;
}

.event-card__day {
	font-family: var(--font-display);
	font-size: 2.3rem;
	font-weight: 700;
	line-height: 1;
	color: var(--accent-soft);
}

.event-card__month {
	font-size: .72rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	margin-top: .3rem;
	color: rgba(255, 255, 255, .72);
}

.event-card__year { font-size: .7rem; color: rgba(255, 255, 255, .45); margin-top: .15rem; }

/* ==========================================================================
   Alternating feature blocks
   ========================================================================== */

.feature {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.feature + .feature { margin-top: clamp(3.5rem, 7vw, 6.5rem); }

.feature:nth-child(even) .feature__media { order: -1; }

.feature__media {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	aspect-ratio: 5 / 4;
}

.feature__media img { width: 100%; height: 100%; object-fit: cover; }

.feature__media::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid rgba(34, 184, 184, .28);
	border-radius: var(--radius);
	pointer-events: none;
}

.feature__num {
	font-family: var(--font-display);
	font-size: clamp(3rem, 7vw, 5rem);
	font-weight: 700;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.2px rgba(34, 184, 184, .48);
	margin-bottom: .5rem;
}

.feature ul,
.feature__text ul {
	list-style: none;
	margin: 1.6rem 0 0;
	padding: 0;
	display: grid;
	gap: .85rem;
}

.feature li,
.feature__text li {
	position: relative;
	padding-left: 1.9rem;
	font-size: var(--step--1);
	color: var(--text-muted);
	line-height: 1.6;
	margin: 0;
}

.feature li::before,
.feature__text li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .45em;
	width: 15px;
	height: 9px;
	border-left: 1.8px solid var(--accent);
	border-bottom: 1.8px solid var(--accent);
	transform: rotate(-45deg);
}

.section--dark .feature li { color: var(--on-dark-muted); }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials {
	display: flex;
	gap: clamp(1.2rem, 2.5vw, 2rem);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 1.2rem;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.testimonials::-webkit-scrollbar { height: 4px; }
.testimonials::-webkit-scrollbar-track { background: rgba(255, 255, 255, .1); border-radius: 2px; }
.testimonials::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.testimonial {
	flex: 0 0 min(88vw, 430px);
	scroll-snap-align: start;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--radius);
	padding: clamp(1.6rem, 3vw, 2.4rem);
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	transition: all .45s var(--ease);
}

.testimonial:hover {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(34, 184, 184, .42);
	transform: translateY(-4px);
}

.testimonial__quote {
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-style: italic;
	line-height: 1.55;
	color: #fff;
	margin: 0;
	flex: 1;
}

.testimonial__stars { color: var(--accent-soft); letter-spacing: .12em; font-size: .9rem; }

.testimonial__person {
	display: flex;
	align-items: center;
	gap: .85rem;
	padding-top: 1.1rem;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.testimonial__avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
	border: 1.5px solid rgba(34, 184, 184, .55);
}

.testimonial__name { font-weight: 600; color: #fff; font-size: var(--step--1); line-height: 1.3; }
.testimonial__role { font-size: .78rem; color: var(--on-dark-muted); }

.testimonial__play {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .76rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--accent-soft);
	font-weight: 600;
}

/* ==========================================================================
   Partners grid
   ========================================================================== */

.partners-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(1.25rem, 3vw, 2rem);
}

.partners-grid__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.1rem;
	width: clamp(190px, 22vw, 240px);
	padding: clamp(1.75rem, 3vw, 2.25rem) 1.5rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}

.partners-grid__item:hover {
	border-color: var(--accent);
	box-shadow: 0 16px 32px -20px rgba(11, 23, 41, .28);
	transform: translateY(-3px);
}

.partners-grid__logo {
	height: clamp(44px, 5vw, 60px);
	width: auto;
	max-width: 100%;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .7;
	transition: all .4s var(--ease);
}

.partners-grid__item:hover .partners-grid__logo { filter: grayscale(0); opacity: 1; }

.partners-grid__name {
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--text-muted);
	text-align: center;
	transition: color .4s var(--ease);
}

.partners-grid__item:hover .partners-grid__name { color: var(--accent-ink); }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta {
	position: relative;
	overflow: hidden;
	background: var(--ink);
	text-align: center;
	isolation: isolate;
}

.cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 60% 80% at 20% 0%, rgba(14, 134, 184, .22), transparent 60%),
		radial-gradient(ellipse 60% 80% at 82% 100%, rgba(34, 184, 184, .2), transparent 62%);
}

.cta h2 { color: #fff; font-size: var(--step-4); }
.cta p { color: rgba(255, 255, 255, .78); font-size: var(--step-1); max-width: 58ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */

.page-hero {
	position: relative;
	background: var(--ink);
	color: #fff;
	padding-block: clamp(10.5rem, 18vh, 14rem) clamp(3.5rem, 7vh, 5.5rem);
	overflow: hidden;
}

.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(11, 23, 41, .88), rgba(11, 23, 41, .74));
}

.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .6rem; }
.page-hero p { color: rgba(255, 255, 255, .8); font-size: var(--step-1); max-width: 62ch; }

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	font-size: var(--step--1);
	color: rgba(255, 255, 255, .55);
	margin-bottom: 1.2rem;
	list-style: none;
	padding: 0;
}

.breadcrumb a { color: rgba(255, 255, 255, .78); transition: color .3s; }
.breadcrumb a:hover { color: var(--accent-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .45; }

/* ==========================================================================
   Single programme layout
   ========================================================================== */

.prog { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.prog__body h2 { margin-top: 2.6rem; }
.prog__body h2:first-child { margin-top: 0; }
.prog__body > * { max-width: var(--maxw-text); }

.prog__aside {
	position: sticky;
	top: 130px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(1.5rem, 3vw, 2rem);
	box-shadow: var(--shadow-md);
}

.prog__aside::before {
	content: "";
	display: block;
	height: 3px;
	background: linear-gradient(90deg, var(--accent), var(--ocean));
	margin: -2rem -2rem 1.6rem;
	border-radius: var(--radius) var(--radius) 0 0;
}

.spec-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0; }

.spec-list li {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1rem;
	padding: .85rem 0;
	border-bottom: 1px solid var(--line);
	font-size: var(--step--1);
}

.spec-list li:last-child { border-bottom: 0; }
.spec-list dt, .spec-list__label { color: var(--text-light); }
.spec-list__value { font-weight: 600; color: var(--ink); text-align: right; }

/* Curriculum accordion */

.module {
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	margin-bottom: .8rem;
	overflow: hidden;
	transition: all .4s var(--ease);
}

.module[open] { border-color: rgba(34, 184, 184, .55); box-shadow: var(--shadow-sm); }

.module__summary {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.15rem 1.4rem;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	color: var(--ink);
	transition: background .3s var(--ease);
}

.module__summary::-webkit-details-marker { display: none; }
.module__summary:hover { background: var(--surface-alt); }

.module__index {
	flex: none;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 7px;
	background: linear-gradient(140deg, rgba(34, 184, 184, .16), rgba(14, 134, 184, .14));
	font-family: var(--font-display);
	font-size: .95rem;
	color: var(--ink);
}

.module__title { flex: 1; font-size: var(--step-0); }
.module__lead { font-size: .78rem; color: var(--text-light); font-weight: 500; }

.module__chev {
	flex: none;
	width: 11px;
	height: 11px;
	border-right: 1.8px solid var(--text-light);
	border-bottom: 1.8px solid var(--text-light);
	transform: rotate(45deg);
	transition: transform .35s var(--ease);
	margin-right: .3rem;
}

.module[open] .module__chev { transform: rotate(-135deg); }

.module__content { padding: 0 1.4rem 1.4rem 4.4rem; }

.module__content ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

.module__content li {
	position: relative;
	padding-left: 1.1rem;
	font-size: var(--step--1);
	color: var(--text-muted);
	line-height: 1.6;
}

.module__content li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .62em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--accent);
}

/* FAQ */

.faq { border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	padding: 1.3rem 0;
	cursor: pointer;
	list-style: none;
	font-family: var(--font-display);
	font-size: var(--step-1);
	color: var(--ink);
}

.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent-ink); }

.faq__icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq__icon::before, .faq__icon::after {
	content: "";
	position: absolute;
	background: var(--accent);
	transition: transform .35s var(--ease);
}
.faq__icon::before { inset: 7px 0 auto; height: 1.8px; }
.faq__icon::after  { inset: 0 7px auto; width: 1.8px; height: 16px; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }

.faq__a { padding-bottom: 1.4rem; color: var(--text-muted); max-width: var(--maxw-text); }

/* Gallery */

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
}

.gallery-grid a {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--radius-sm);
	background: var(--surface-alt);
}

.gallery-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s var(--ease);
}

.gallery-grid a:hover img { transform: scale(1.08); }

/* ==========================================================================
   Filters
   ========================================================================== */

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin-bottom: 2.5rem;
	padding-bottom: 1.6rem;
	border-bottom: 1px solid var(--line);
}

.filter-chip {
	padding: .6rem 1.25rem;
	border: 1px solid var(--line-strong);
	border-radius: 100px;
	background: transparent;
	font-size: var(--step--1);
	font-weight: 500;
	color: var(--text-muted);
	cursor: pointer;
	transition: all .35s var(--ease);
	white-space: nowrap;
}

.filter-chip:hover { border-color: var(--ink); color: var(--ink); }

.filter-chip.is-active {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.filter-search {
	flex: 1 1 220px;
	min-width: 200px;
	padding: .6rem 1.1rem;
	border: 1px solid var(--line-strong);
	border-radius: 100px;
	font-size: var(--step--1);
	background: var(--surface);
	transition: border-color .3s var(--ease);
}

.filter-search:focus { outline: none; border-color: var(--accent); }

.is-hidden { display: none !important; }

.no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 4rem 1rem;
	color: var(--text-light);
}

/* ==========================================================================
   Timeline (About)
   ========================================================================== */

.timeline { position: relative; padding-left: 2.6rem; }

.timeline::before {
	content: "";
	position: absolute;
	left: 7px;
	top: .6rem;
	bottom: .6rem;
	width: 1px;
	background: linear-gradient(180deg, var(--accent), rgba(14, 134, 184, .5), transparent);
}

.timeline__item { position: relative; padding-bottom: 2.6rem; }
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
	content: "";
	position: absolute;
	left: -2.6rem;
	top: .5rem;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--bg);
	border: 2px solid var(--accent);
}

.section--dark .timeline__item::before { background: var(--ink); }

.timeline__year {
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-weight: 700;
	color: var(--accent-ink);
	line-height: 1;
	margin-bottom: .4rem;
}

/* ==========================================================================
   Forms — application + contact
   ========================================================================== */

.bba-form {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(1.5rem, 4vw, 3rem);
	box-shadow: var(--shadow-md);
}

.bba-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Step indicator */

.bba-steps {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	list-style: none;
	margin: 0 0 clamp(2rem, 4vw, 3rem);
	padding: 0;
	position: relative;
	counter-reset: step;
}

.bba-steps::before {
	content: "";
	position: absolute;
	top: 17px;
	left: 12%;
	right: 12%;
	height: 1.5px;
	background: var(--line-strong);
	z-index: 0;
}

.bba-steps__item {
	position: relative;
	z-index: 1;
	display: grid;
	justify-items: center;
	gap: .55rem;
	text-align: center;
}

.bba-steps__dot {
	width: 35px;
	height: 35px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--surface);
	border: 1.5px solid var(--line-strong);
	color: var(--text-light);
	font-size: .85rem;
	font-weight: 600;
	transition: all .45s var(--ease);
}

.bba-steps__label {
	font-size: .74rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--text-light);
	font-weight: 500;
	transition: color .4s var(--ease);
}

.bba-steps__item.is-active .bba-steps__dot {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
	transform: scale(1.08);
}

.bba-steps__item.is-active .bba-steps__label { color: var(--ink); font-weight: 600; }

.bba-steps__item.is-done .bba-steps__dot {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--ink);
}

/* Steps */

.bba-step { display: none; animation: stepIn .45s var(--ease); }
.bba-step.is-active { display: block; }

@keyframes stepIn {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

.bba-step__title {
	font-size: var(--step-2);
	margin: 0 0 1.2rem;
	padding-bottom: .8rem;
	border-bottom: 1px solid var(--line);
}

.bba-step__title:not(:first-child) { margin-top: 2.6rem; }

.bba-step__intro { color: var(--text-muted); margin-bottom: 1.6rem; font-size: var(--step--1); }

.bba-step__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-top: 2.4rem;
	padding-top: 1.6rem;
	border-top: 1px solid var(--line);
}

/* Notes (step 1) */

.bba-note {
	background: var(--surface-alt);
	border-left: 3px solid var(--accent);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	padding: 1.4rem 1.6rem;
	margin-bottom: 1.2rem;
}

.bba-note h4 { font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; margin: 0 0 .7rem; }
.bba-note p { font-size: var(--step--1); color: var(--text-muted); }
.bba-note ul { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.bba-note li { font-size: var(--step--1); color: var(--text-muted); line-height: 1.6; }
.bba-note li ul { margin-top: .45rem; }

.bba-note__examples { list-style: none; padding-left: 0 !important; }

.bba-note__examples li {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: .65rem .9rem;
	font-size: .84rem;
	font-variant-numeric: tabular-nums;
}

.bba-note__aside { font-style: italic; font-size: .85rem !important; margin-top: .7rem !important; }

.bba-note__warning {
	font-size: var(--step--1);
	color: var(--text-muted);
	padding: 1rem 1.2rem;
	background: rgba(34, 184, 184, .09);
	border-radius: var(--radius-sm);
	margin: 0;
}

/* Programme choice */

.bba-choice__label {
	font-size: .8rem;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 .6rem;
}

.bba-choice__label .req { color: #DC2626; margin-left: .15rem; }

/* A segmented control: one connected row of options, as on the academy's
   existing application form. It wraps to stacked rows on narrow screens
   rather than shrinking the labels past readability. */
.bba-choice {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 2rem;
	border: 1.5px solid var(--line-strong);
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--surface);
}

.bba-choice__item {
	flex: 1 1 200px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1rem 1.35rem;
	cursor: pointer;
	transition: background .3s var(--ease), color .3s var(--ease);
	border-left: 1.5px solid var(--line-strong);
	min-height: 58px;
}

.bba-choice__item:first-child { border-left: 0; }

.bba-choice__item input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.bba-choice__title {
	font-weight: 500;
	font-size: var(--step--1);
	line-height: 1.35;
	color: var(--text-muted);
	transition: color .3s var(--ease);
}

.bba-choice__item:hover { background: var(--surface-alt); }
.bba-choice__item:hover .bba-choice__title { color: var(--ink); }

.bba-choice__item:has(input:checked) { background: var(--accent); }

.bba-choice__item:has(input:checked) .bba-choice__title {
	color: var(--ink);
	font-weight: 600;
}

/* Keyboard focus has to be visible even though the input itself is hidden. */
.bba-choice__item:has(input:focus-visible) {
	outline: 2px solid var(--accent-ink);
	outline-offset: -3px;
}

@media (max-width: 620px) {
	.bba-choice { flex-direction: column; }
	.bba-choice__item { border-left: 0; border-top: 1.5px solid var(--line-strong); }
	.bba-choice__item:first-child { border-top: 0; }
}

/* Inputs */

.bba-grid { display: grid; gap: 1.1rem 1.3rem; margin-bottom: 1.3rem; }
.bba-grid--1 { grid-template-columns: 1fr; }
.bba-grid--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.bba-grid--3 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.bba-input { margin: 0; display: grid; gap: .45rem; }

.bba-input label {
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--ink);
}

.bba-input .req { color: #DC2626; margin-left: .15rem; }

.bba-input input,
.bba-input select,
.bba-input textarea {
	width: 100%;
	padding: .85rem 1rem;
	border: 1.5px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-size: var(--step--1);
	transition: all .3s var(--ease);
	font-family: inherit;
}

.bba-input textarea { resize: vertical; min-height: 120px; }

.bba-input input:focus,
.bba-input select:focus,
.bba-input textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(34, 184, 184, .16);
}

.bba-input input:user-invalid,
.bba-input select:user-invalid,
.bba-input textarea:user-invalid {
	border-color: #DC2626;
}

.bba-input input::placeholder { color: var(--text-light); }

/* File upload */

.bba-file { margin-bottom: 1.4rem; }

.bba-file__label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .3rem; }
.bba-file__help { font-size: .78rem; color: var(--text-light); margin: 0 0 .6rem; line-height: 1.5; }

.bba-file__drop {
	position: relative;
	display: flex;
	align-items: center;
	gap: .85rem;
	padding: 1.15rem 1.3rem;
	border: 1.5px dashed var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--surface-alt);
	transition: all .35s var(--ease);
	cursor: pointer;
}

.bba-file__drop:hover,
.bba-file__drop.is-dragover {
	border-color: var(--accent);
	background: rgba(34, 184, 184, .06);
}

.bba-file__drop.has-file { border-style: solid; border-color: var(--accent); background: rgba(14, 134, 184, .07); }

.bba-file__drop input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
}

.bba-file__icon { color: var(--text-light); flex: none; }
.bba-file__drop.has-file .bba-file__icon { color: var(--accent-ink); }
.bba-file__text { font-size: var(--step--1); color: var(--text-muted); }

/* Consent */

.bba-consent {
	display: flex;
	align-items: flex-start;
	gap: .8rem;
	padding: 1.2rem;
	background: var(--surface-alt);
	border-radius: var(--radius-sm);
	font-size: .85rem;
	line-height: 1.6;
	color: var(--text-muted);
	cursor: pointer;
	margin-top: 1rem;
}

.bba-consent input { margin-top: .22rem; flex: none; width: 17px; height: 17px; accent-color: var(--accent); }

/* Messages */

.bba-form-errors {
	background: #FEF2F2;
	border: 1px solid #FECACA;
	border-left: 3px solid #DC2626;
	border-radius: var(--radius-sm);
	padding: 1.1rem 1.3rem;
	margin-bottom: 1.6rem;
	color: #991B1B;
	font-size: var(--step--1);
}

.bba-form-errors ul { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.bba-form-errors p { margin: 0; }

.bba-form-success {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
	text-align: center;
	box-shadow: var(--shadow-md);
}

.bba-form-success__mark { color: var(--accent-ink); margin: 0 auto 1.5rem; width: 52px; }

.bba-form-success__mark svg path,
.bba-form-success__mark svg circle {
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	animation: draw .9s var(--ease) forwards;
}

.bba-form-success__mark svg path { animation-delay: .35s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.bba-form-success h2 { font-size: var(--step-2); margin-bottom: .8rem; }
.bba-form-success p { color: var(--text-muted); max-width: 52ch; margin-inline: auto; }

.bba-form-success__ref {
	display: inline-block;
	padding: .7rem 1.5rem;
	background: var(--surface-alt);
	border-radius: var(--radius-sm);
	margin: .5rem 0 1.4rem !important;
	font-size: var(--step--1);
	letter-spacing: .04em;
}

.bba-form-success__ref strong { color: var(--ink); font-size: 1.15em; letter-spacing: .06em; }

.bba-form-success--compact { padding: 2.2rem 1.6rem; text-align: left; }

.bba-form--contact { box-shadow: none; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }

.contact-item { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-of-type { border-bottom: 0; }

.contact-item__icon {
	flex: none;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 9px;
	background: linear-gradient(140deg, rgba(34, 184, 184, .16), rgba(14, 134, 184, .14));
	color: var(--ink);
}

.contact-item__label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-light); margin-bottom: .18rem; }
.contact-item__value { font-weight: 500; color: var(--ink); line-height: 1.5; }
.contact-item__value a:hover { color: var(--accent-ink); }

.map-embed {
	width: 100%;
	aspect-ratio: 16 / 10;
	border: 0;
	border-radius: var(--radius);
	filter: grayscale(.35) contrast(1.05);
}

/* WhatsApp float */

.wa-float {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 90;
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #25D366;
	color: #fff;
	box-shadow: 0 6px 20px rgba(37, 211, 102, .42);
	transition: all .4s var(--ease);
}

.wa-float:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 10px 28px rgba(37, 211, 102, .55); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-block: clamp(3.5rem, 7vw, 5.5rem) 0; }

.footer-grid {
	display: grid;
	grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
	gap: clamp(2rem, 4vw, 3.5rem);
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* The footer is always dark, so it always takes the light lockup. */
.footer__logo { width: auto; max-height: 82px; max-width: 250px; object-fit: contain; margin-bottom: 1.3rem; }

.brand__text--footer { color: #fff; font-size: 1.5rem; display: inline-block; margin-bottom: 1.2rem; }

.footer h4 {
	font-family: var(--font-body);
	font-size: .78rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent-soft);
	margin-bottom: 1.2rem;
	font-weight: 600;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer a { color: var(--on-dark-muted); font-size: var(--step--1); transition: color .3s var(--ease); }
.footer a:hover { color: var(--accent-soft); }
.footer p { font-size: var(--step--1); line-height: 1.7; }

.socials { display: flex; gap: .6rem; margin-top: 1.3rem; }

.socials a {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 8px;
	color: var(--on-dark-muted);
	transition: all .35s var(--ease);
}

.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-block: 1.6rem;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: .8rem;
	color: var(--text-light);
}

/* ==========================================================================
   Editorial content (blog + pages)
   ========================================================================== */

.entry-content > * { max-width: var(--maxw-text); }
.entry-content > .alignwide { max-width: var(--maxw); }
.entry-content > .alignfull { max-width: none; }

.entry-content h2 { margin-top: 2.4rem; }
.entry-content h3 { margin-top: 1.8rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: .5rem; }
.entry-content img { border-radius: var(--radius-sm); }

.entry-content blockquote {
	margin: 2rem 0;
	padding: 1.4rem 1.8rem;
	border-left: 3px solid var(--accent);
	background: var(--surface-alt);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-style: italic;
}

.entry-content a:not(.btn) { color: var(--ink); border-bottom: 1px solid var(--accent); transition: color .3s; }
.entry-content a:not(.btn):hover { color: var(--accent-ink); }

/* Pagination */

.pagination { display: flex; justify-content: center; gap: .45rem; margin-top: 3.5rem; flex-wrap: wrap; }

.pagination .page-numbers {
	min-width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	padding-inline: .8rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	font-size: var(--step--1);
	font-weight: 500;
	transition: all .3s var(--ease);
}

.pagination .page-numbers:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .8s var(--ease), transform .8s var(--ease);
	will-change: opacity, transform;
}

[data-reveal].is-visible { opacity: 1; transform: none; }

[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .4s; }

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
	position: absolute;
	top: -60px;
	left: 1rem;
	z-index: 1000;
	background: var(--ink);
	color: #fff;
	padding: .8rem 1.4rem;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	transition: top .3s var(--ease);
}

.skip-link:focus { top: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

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

@media (max-width: 1024px) {
	.prog { grid-template-columns: 1fr; }
	.prog__aside { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {

	/*
	 * The drawer is position:fixed and the burger was position:static, so the
	 * drawer painted over the close button regardless of DOM order — the X was
	 * both invisible and unclickable, leaving the menu with no way out on
	 * touch devices. Giving the burger its own positioned layer lifts it back
	 * above the panel.
	 */
	.burger {
		display: block;
		position: relative;
		z-index: 2;
	}

	/*
	 * While open the bars sit on the dark drawer, so they must be white on
	 * every page — not only where the transparent header already made them so.
	 */
	.burger.is-open span,
	body.has-transparent-header .site-header:not(.is-stuck) .burger.is-open span,
	.site-header.is-stuck .burger.is-open span {
		background: #fff;
	}

	.nav {
		position: fixed;

		/*
		 * An ancestor establishes a containing block for fixed children, so
		 * `bottom: 0` resolved against the ~112px header rather than the
		 * viewport: the panel collapsed to the height of its own padding and
		 * every menu item below the first spilled out over the page. An
		 * explicit viewport height is immune to whatever the containing block
		 * turns out to be. dvh also tracks mobile browser chrome as it hides;
		 * vh is the fallback for browsers without it.
		 */
		inset: 0 0 auto auto;
		height: 100vh;
		height: 100dvh;
		width: min(86vw, 380px);
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		padding: 8rem 1.8rem 2.5rem;
		background: var(--ink);
		transform: translateX(100%);
		transition: transform .5s var(--ease);
		overflow-y: auto;
		box-shadow: -10px 0 40px rgba(11, 23, 41, .3);
	}

	.nav.is-open { transform: none; }

	.nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }

	.nav__list > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }

	.nav__list a,
	body.has-transparent-header .site-header:not(.is-stuck) .nav__list a {
		display: block;
		padding: 1.05rem 0;
		color: #fff;
		font-size: 1.05rem;
	}

	.nav__list a::after { display: none; }

	.nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: transparent;
		border: 0;
		box-shadow: none;
		padding: 0 0 .6rem 1rem;
	}

	.nav__list .sub-menu a { color: rgba(255, 255, 255, .72) !important; font-size: .92rem; padding: .55rem 0; }

	.nav .btn { margin-top: 1.5rem; width: 100%; }

	.hero__stats { grid-template-columns: repeat(2, 1fr); }

	.feature:nth-child(even) .feature__media { order: 0; }

	.event-card { grid-template-columns: 88px 1fr; }

	.bba-steps__label { display: none; }
	.bba-steps::before { left: 8%; right: 8%; }
}

@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; }
	.grid--2, .grid--3 { grid-template-columns: 1fr; }
	.btn-row .btn { width: 100%; }
	.bba-step__nav { flex-direction: column-reverse; }
	.bba-step__nav .btn { width: 100%; }
	.hero__stat dd { font-size: 1.7rem; }
}

/* ==========================================================================
   Motion + print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}

	[data-reveal] { opacity: 1; transform: none; }
}

@media print {
	.site-header, .site-footer, .wa-float, .btn, .filters { display: none !important; }
	body { background: #fff; }
	.page-hero { padding-block: 1rem; background: none; color: #000; }
	.page-hero::after { display: none; }
	.page-hero h1 { color: #000; }
}
