@charset "UTF-8";
/* =============================================================================
   Three related blocks that close the homepage.

   1. Testimonial band  [figma] 747:4499–747:4513 — an 800x320 quote card beside
      a 420x320 "applications open" card.
   2. Blog cards        [figma] 747:4510–747:4512 — 380x520: a 200px image over a
      #d9d9d9 body panel, category / title / excerpt, 44px arrow.
   3. Community showcase [figma] 747:4561/4562/4576/4577 — 295x480 portraits with
      a navy wash, an italic pull quote, name, role and a play button. These are
      video testimonials, not stills.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   Testimonial band
   -------------------------------------------------------------------------- */

.testimonial-band {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-6);
}

@media (min-width: 64em) {
	.testimonial-band {
		/* [figma] 800 + 420 with a 30px gutter. */
		grid-template-columns: minmax(0, 800fr) minmax(0, 420fr);
		gap: 1.875rem;
		min-height: 20rem;                   /* 320 [figma] */
	}
}

/* Every story sits in the same grid cell and the ones not showing are only
   made invisible (.is-off), so the card is always as tall as the longest story
   and the arrows never move between slides (Domagoj, 2026-09-25). A class, not
   the `hidden` attribute: base.css makes [hidden] display:none !important,
   which would take the story out of the cell. `visibility` also takes the
   stories not showing out of the tab order and the accessibility tree. */
.testimonial-slider {
	display: grid;
}

.testimonial {
	grid-area: 1 / 1;
}

.testimonial.is-off {
	visibility: hidden;
}

/* The stories can read alike, so the change needs to be visible: the one
   arriving fades in from the side it came from (Domagoj, 2026-09-17). */
.testimonial--in-next { animation: testimonial-in-next 0.4s var(--ease) both; }
.testimonial--in-prev { animation: testimonial-in-prev 0.4s var(--ease) both; }

@keyframes testimonial-in-next {
	from { opacity: 0; transform: translateX(1.5rem); }
}

@keyframes testimonial-in-prev {
	from { opacity: 0; transform: translateX(-1.5rem); }
}

@media (prefers-reduced-motion: reduce) {
	.testimonial--in-next,
	.testimonial--in-prev { animation: none; }
}

.testimonial {
	display: flex;
	flex-direction: column;
	padding: var(--space-8);
	border: 1px solid var(--color-ink-300);  /* the ink-200 hairline read as no border at all */
	border-radius: var(--radius-lg);
	background-color: var(--color-white);
}

@media (min-width: 64em) {
	.testimonial { padding: 2.6875rem 3.25rem; }
}

/* [figma] Lora Regular 20/36 in navy — the same treatment as a section intro. */
.testimonial__quote {
	padding-block-end: var(--space-5);       /* 20 above the rule (Domagoj, 2026-09-25) */
	font-family: var(--font-display);
	font-size: var(--fs-copy-20);
	line-height: var(--lh-editorial);
	color: var(--color-navy);
}

.testimonial__author {
	display: flex;
	align-items: center;
	gap: var(--space-6);
	margin-block-start: auto;
	padding-block-start: var(--space-6);
	border-block-start: 1px solid var(--color-border);
}

.testimonial__who { flex: 1; min-width: 0; }

/* [figma] two 60px discs at (782, 7225) and (757, 7285) — the testimonial
   carousel's prev/next, inside the card. */
.testimonial__nav {
	display: flex;
	flex: none;
	gap: var(--space-3);
}

/* On a phone a long role wraps onto more lines and the author row grows, so a
   centred pair of arrows moved between stories. Pinned to the row's foot they
   hold still, because the row itself is pinned to the card's (2026-09-25). */
@media (max-width: 47.99em) {
	.testimonial__nav {
		align-self: flex-end;
	}
}

.testimonial__control {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.75rem;
	height: 3.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-full);
	background-color: var(--color-white);
	color: var(--color-navy);
	transition:
		background-color var(--duration) var(--ease),
		border-color var(--duration) var(--ease),
		color var(--duration) var(--ease);
}

.testimonial__control:hover {
	background-color: var(--color-navy);
	border-color: var(--color-navy);
	color: var(--color-white);
}

/* 80px round. Every portrait is LSB's own round frame on a transparent square,
   so the image is served square ('medium' keeps its ratio) — the 480x560
   portrait crop cut the sides off the ring and made it read as square
   (Domagoj, 2026-09-25). */
.testimonial__photo {
	flex: none;
	width: 5rem;
	height: 5rem;
	border-radius: var(--radius-full);
	object-fit: cover;
}

.testimonial__name {
	display: block;
	font-family: var(--font-display);
	font-size: var(--fs-ui-base);
	line-height: var(--lh-card);
	color: var(--color-navy);
}

.testimonial__role {
	display: block;
	margin-block-start: var(--space-1);
	font-family: var(--font-display);
	font-size: var(--fs-ui-sm);
	line-height: var(--lh-card);
	color: var(--color-ink-400);
}

/* Phones: photo, name and role share the row; the arrows drop to their own
   row beneath. With all three on one line at 390 the name column was 24px
   wide and the role broke one word per line (Domagoj, 2026-09-25). */
@media (max-width: 47.99em) {
	.testimonial {
		padding: var(--space-6);
	}

	.testimonial__quote {
		line-height: 1.6;
	}

	.testimonial__author {
		flex-wrap: wrap;
		gap: var(--space-4);
	}

	.testimonial__who {
		flex: 1 1 0;
	}

	.testimonial__nav {
		flex-basis: 100%;
		justify-content: flex-end;
	}

	.testimonial__control {
		width: 2.75rem;                      /* 44 */
		height: 2.75rem;
	}

	.testimonial__photo {
		width: 3.5rem;                       /* 56 */
		height: 3.5rem;
	}
}

/* --- "Applications open" card ---------------------------------------------- */

/* [figma] 420x320 navy card holding a 363x261 inset panel — so ~28px of navy
   shows all round the inner border. */
.apply-card {
	display: flex;
	flex-direction: column;
	padding: 1.8125rem;
	border-radius: var(--radius-lg);
	background-color: var(--color-navy);
	color: var(--color-on-dark);
}

.apply-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: space-between;
	gap: var(--space-10);
	padding: 2.5rem 1.9375rem;               /* [figma] title at x=984 in a card from 925 */
	border: 1px solid var(--color-on-dark-border);
	border-radius: var(--radius-md);
}

/* [figma] node 269:1189 — 140x40 WHITE pill with navy label, not crimson. */
.apply-card__cta {
	border: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 8.75rem;
	min-height: 2.5rem;
	padding-inline: var(--space-6);
	border-radius: var(--radius-pill);
	background-color: var(--color-white);
	color: var(--color-navy);
	font-family: var(--font-body);
	font-size: var(--fs-ui);
	font-weight: var(--fw-semibold);
	text-decoration: none;
	transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.apply-card__cta:hover {
	background-color: var(--color-crimson);
	color: var(--color-white);
}

/* [figma] Lora Regular 30. */
.apply-card__title {
	font-family: var(--font-display);
	font-size: var(--fs-ui-xl);
	font-weight: var(--fw-regular);
	line-height: var(--lh-tight);
	color: var(--color-on-dark);
}

@media (max-width: 47.99em) {
	.apply-card { padding: var(--space-5); }
	.apply-card__inner { gap: var(--space-8); padding: var(--space-8) var(--space-6); }
	.apply-card__title { font-size: var(--fs-editorial-xl); }   /* 26 */
}

/* -----------------------------------------------------------------------------
   Blog cards
   -------------------------------------------------------------------------- */

.post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-6);
	margin: 0;
	list-style: none;
}

@media (min-width: 48em) {
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64em) {
	.post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;                        /* 20 [figma] */
	}
}

.post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.post-card__media {
	flex: none;
	border-radius: var(--radius-md);         /* 12 [figma] */
	overflow: hidden;
}

/* Greyed at rest, full colour on hover. No zoom — the card changes colour, it
   does not move (Domagoj, 2026-09-02). */
.post-card__media img {
	display: block;
	width: 100%;
	height: 12.5rem;                         /* 200 [figma] */
	object-fit: cover;
	filter: grayscale(1);
	transition: filter var(--duration-slow) var(--ease);
}

.post-card:hover .post-card__media img {
	filter: grayscale(0);
}

/* A cover with words in it (a poster, a banner) is shown whole, on the
   card's own grey, rather than cropped (2026-10-15). */
.post-card__media--whole { background-color: var(--color-bg-alt); }
.post-card__media--whole img { object-fit: contain; }

/* [figma] node 747:4511 — the middle card inverts: body panel on top, image
   underneath. Not a mistake in the file; card 1 and 3 are image-first. */
.post-card--media-last {
	flex-direction: column-reverse;
}

.post-card--media-last .post-card__body {
	margin-block: 0 var(--space-5);
}

/* [figma] #d9d9d9 body panel, radius 12, 20px below the image. */
.post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	margin-block-start: var(--space-5);
	min-height: 18.75rem;                    /* 300 [figma] — 200 image + 20 + 300 = 520 */
	padding: 1.9375rem;
	border-radius: var(--radius-md);
	background-color: #d9d9d9;
	transition: background-color var(--duration) var(--ease);
}

/* Phones: one column, so every card is image-first — the inverted middle card
   otherwise stacked two photos back to back, each looking like it belonged to
   the card beside it. The 300px panel height only exists to level three
   cards in a row; alone it left a hole under every excerpt. */
@media (max-width: 47.99em) {
	.post-card--media-last {
		flex-direction: column;
	}

	/* Photo and panel read as ONE card: no gap between them, and the radius
	   only on the outer corners (Domagoj, 2026-09-25). */
	.post-card__media {
		border-end-start-radius: 0;
		border-end-end-radius: 0;
	}

	.post-card--media-last .post-card__body,
	.post-card__body {
		margin-block: 0;
		min-height: 0;
		padding: var(--space-6);
		border-start-start-radius: 0;
		border-start-end-radius: 0;
	}}

/* Hover fills the panel navy and inverts its type. */
.post-card:hover .post-card__body { background-color: var(--color-navy); }
.post-card:hover .post-card__category,
.post-card:hover .post-card__title,
.post-card:hover .post-card__excerpt { color: var(--color-on-dark); }

/* [figma] AR One Sans 14/20 in #747575 -> Geist. */
.post-card__category {
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);
	line-height: var(--lh-card);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--color-ink-500);
}

/* [figma] Lora Regular 16/22, black. */
.post-card__title {
	transition: color var(--duration) var(--ease);
	margin-block-start: var(--space-6);
	font-family: var(--font-display);
	font-size: var(--fs-ui-base);
	font-weight: var(--fw-regular);
	line-height: 1.375;                      /* 22 / 16 [figma] */
	color: var(--color-text);
}

/* [figma] 12/20 in #747575. Drawn in Nunito Sans on cards 2 and 3 (a NINTH type
   family) and Lora on card 1; normalised to the interface face for all three. */
.post-card__excerpt {
	margin-block-start: var(--space-5);
	font-family: var(--font-body);
	font-size: var(--fs-editorial-xs);
	line-height: 1.667;                      /* 20 / 12 [figma] */
	color: var(--color-ink-500);
}

/* Phones (Domagoj, 2026-09-25). After the base rules so it wins the cascade. */
@media (max-width: 47.99em) {
	.post-card__title {
		font-weight: var(--fw-medium);         /* 500 */
	}

	.post-card__excerpt {
		font-size: var(--fs-ui-sm);            /* 14 */
	}
}

.post-card__arrow {
	margin-block-start: auto;
	padding-block-start: var(--space-6);
	align-self: flex-end;
}

.post-card:hover .icon-btn {
	background-color: var(--color-crimson);
}

/* -----------------------------------------------------------------------------
   Community showcase — video testimonials
   -------------------------------------------------------------------------- */

.community-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-4);
	margin: 0;
	list-style: none;
}

/* On a phone two columns made each card ~167px wide — half its designed 295 —
   so the quotes and the CTA's copy spilled out of the cards (and the Bachelor's
   CTA pushed the page sideways). Below 768 the cards keep close to their design
   size in a swipeable row that bleeds to the screen edges (2026-09-22). */
@media (max-width: 47.99em) {
	.community-grid {
		grid-auto-flow: column;
		grid-template-columns: none;
		grid-auto-columns: min(85%, 18.4375rem);   /* 295 at most; the next card peeks in */
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}

	.community-grid::-webkit-scrollbar {
		display: none;
	}

	.community-grid > li {
		scroll-snap-align: start;
	}
}

@media (min-width: 64em) {
	.community-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.4375rem;                      /* 23 [figma] */
	}
}

.community-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: 295 / 480;                 /* [figma] */
	border-radius: var(--radius-lg);
	overflow: hidden;
	isolation: isolate;
	color: var(--color-on-dark);
}

.community-card > picture {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.community-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* [figma] EXACT. Two washes, not one:
     A — full card:   linear-gradient(180deg, rgba(5,49,80,0) 0%, rgba(5,49,80,0.5) 100%)
     B — node 380:1856, 295x263 at top 217, i.e. the bottom 54.79% of a 480 card:
         linear-gradient(to bottom, rgba(0,0,0,0), #000)   — to FULL black
   An earlier version merged them into one gradient with invented stops. */
.community-card__wash {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image:
		linear-gradient(to bottom, rgb(0 0 0 / 0) 0%, rgb(0 0 0 / 1) 100%),
		linear-gradient(180deg, rgb(5 49 80 / 0) 0%, rgb(5 49 80 / var(--community-tint, 0.5)) 100%);
	background-size: 100% 54.79%, 100% 100%;
	background-position: bottom, top;
	background-repeat: no-repeat;
}

/* [figma] node 747:4576 tints to 0.75 rather than 0.5. */
.community-card--tint-strong { --community-tint: 0.75; }

.community-card__body {
	position: relative;
	z-index: 2;
	padding: var(--space-6) 1.875rem 1.75rem;
}

/* [figma] Lora SemiBold ITALIC 18/26 — the only italic in the design. */
.community-card__quote {
	font-family: var(--font-display);
	font-style: italic;
	font-size: var(--fs-editorial-sm);
	font-weight: var(--fw-semibold);
	line-height: 1.444;                      /* 26 / 18 [figma] */
	color: var(--color-on-dark);
}

.community-card__meta {
	margin-block-start: var(--space-5);
	padding-block-start: var(--space-4);
	border-block-start: 1px solid var(--color-on-dark-border);
}

/* [figma] Lora Regular 16/20. */
.community-card__name {
	display: block;
	font-family: var(--font-display);
	font-size: var(--fs-ui-base);
	line-height: var(--lh-card);
}

/* [figma] Lora Regular 10/20. */
.community-card__role {
	display: block;
	margin-block-start: 2px;
	font-family: var(--font-display);
	font-size: var(--fs-ui-3xs);
	line-height: var(--lh-card);
	color: var(--color-on-dark-muted);
}

/* --- Fourth community card: a CTA, not a person. [figma] 747:4561 ----------
   295x480, gradient #004F7A (top) -> #053150 (bottom), Lora SemiBold 24/32
   heading, Nunito Sans 12/20 body -> Geist, 60px arrow disc at the bottom. */

.community-cta {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;                 /* the copy sits on the card's middle */
	height: 100%;
	aspect-ratio: 295 / 480;
	/* [figma] the copy is centred in the card and the 60px arrow sits at the
	   bottom-right with 44 below it. The arrow is taken out of the flow so the
	   copy centres against the WHOLE card rather than against what is left over
	   above the arrow (Domagoj, 2026-09-05). */
	padding: 1.875rem 1.875rem 9.17%;
	border-radius: var(--radius-lg);
	background-image: linear-gradient(to bottom, var(--color-navy-glow) 0%, #053150 100%);
	color: var(--color-on-dark);
	text-decoration: none;
}

.community-cta__title {
	max-width: 16rem;
	font-family: var(--font-display);
	font-size: var(--fs-editorial-2xl);      /* 32, up from the design's 24 (Domagoj, 2026-09-17) */
	font-weight: var(--fw-semibold);
	line-height: 1.2;
}

/* The copy lifts with the arrow on hover, so the whole card responds rather
   than only the disc in its corner. TRANSFORM ONLY — the colour is pinned
   because the card used to be a link, which made every word of it turn crimson
   on hover via the generic a:hover (Domagoj, 2026-09-05). */
.community-cta__title,
.community-cta__text {
	color: var(--color-on-dark);
	transition: transform var(--duration-slow) var(--ease);
}

.community-cta:hover .community-cta__title,
.community-cta:focus-visible .community-cta__title,
.community-cta:hover .community-cta__text,
.community-cta:focus-visible .community-cta__text {
	transform: translateY(-0.25rem);
}

@media (prefers-reduced-motion: reduce) {
	.community-cta__title,
	.community-cta__text {
		transition: none;
	}

	.community-cta:hover .community-cta__title,
	.community-cta:hover .community-cta__text {
		transform: none;
	}
}

.community-cta__text {
	margin-block-start: 2.25rem;             /* [figma] title ends ~199, body starts ~236 */
	max-width: 14.75rem;                     /* 236 [figma] */
	font-family: var(--font-body);
	font-size: var(--fs-ui-base);            /* 16, up from the design's 12 (Domagoj, 2026-09-17) */
	line-height: 1.667;                      /* 20 / 12 [figma] */
}

/* [figma] 60px disc, bottom-right. It is the card's only link. */
.community-cta__arrow {
	position: absolute;
	text-decoration: none;
	right: 1.875rem;
	bottom: 9.17%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.75rem;
	height: 3.75rem;
	border: 0;
	border-radius: var(--radius-full);
	background-color: var(--color-white);
	color: var(--color-navy);
	transition:
		background-color var(--duration) var(--ease),
		color var(--duration) var(--ease);
}

/* [figma] white disc with a navy arrow, going crimson with a white arrow on
   hover. (Removed 2026-09-04 on the strength of a static screenshot, restored
   2026-09-05 once both states were visible side by side.) */
.community-cta:hover .community-cta__arrow,
.community-cta__arrow:hover,
.community-cta__arrow:focus-visible {
	background-color: var(--color-crimson);
	color: var(--color-white);
}

/* [figma] 50px disc, top-right, with a play triangle. */
.community-card__play {
	position: absolute;
	z-index: 3;
	top: 1.25rem;
	right: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.125rem;
	height: 3.125rem;
	border: 1px solid var(--color-on-dark-border);
	border-radius: var(--radius-full);
	background-color: rgb(255 255 255 / 0.15);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: var(--color-on-dark);
	transition: background-color var(--duration) var(--ease);
}

.community-card:hover .community-card__play,
.community-card__play:focus-visible {
	background-color: var(--color-crimson);
	border-color: var(--color-crimson);
}

/* Phone CTA card — after the arrow's own rules so it wins (see .community-grid). */
@media (max-width: 47.99em) {
	/* The homepage CTA's copy is longer than a 295px card leaves room for above
	   an absolutely placed arrow, so on a phone the arrow joins the flow under
	   the copy: the two auto margins keep the copy centred in the space above
	   it and the disc at the bottom, and they can no longer overlap. */
	.community-cta {
		padding-block-end: 1.875rem;
	}

	.community-cta__title {
		margin-block-start: auto;
	}

	.community-cta__arrow {
		position: static;
		flex: none;
		align-self: flex-end;
		margin-block-start: auto;
	}

	/* Shorter than the drawn 295x480 on a phone (Domagoj, 2026-09-28): at 480
	   one card filled most of the screen. */
	.community-card,
	.community-cta {
		aspect-ratio: 3 / 4;
	}
}

/* ---------------------------------------------------------------------------
   Community showcase as quote cards (Layout → Quote cards, 2026-11-15): the
   programme pages' `.mif-vq` (assets/css/mif-careers.css), redrawn here with
   the site-wide tokens because the programme stylesheets do not load on the
   homepage or the News page. The "get in touch" card closes the grid as in
   the photo layout.
   ------------------------------------------------------------------------ */

.community-quotes {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.community-quotes > li {
	display: flex;
}

.community-quotes > li > * {
	flex: 1;
}

.community-quotes .community-cta {
	aspect-ratio: auto;                      /* as tall as the quote beside it */
	min-height: 0;
}

.community-quotes .mif-vq {
	margin: 0;
	padding: 1.875rem 2rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background-color: var(--color-white);
}

.community-quotes .mif-vq blockquote {
	margin: 0 0 1.125rem;
	font-family: var(--font-display);
	font-size: var(--fs-copy-19);
	font-style: italic;
	line-height: 1.5;
	color: var(--color-navy);
}

.community-quotes .mif-vq figcaption {
	display: flex;
	align-items: center;
	gap: var(--space-4);
}

.community-quotes .mif-vq figcaption picture {
	flex: none;
}

.community-quotes .mif-vq__photo {
	display: block;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	object-fit: cover;
	object-position: center 38%;
}

.community-quotes .mif-vq cite {
	display: block;
	font-family: var(--font-body);
	font-size: var(--fs-ui-tag);
	font-style: normal;
	color: var(--color-text-muted);
}

.community-quotes .mif-vq cite b {
	display: block;
	font-size: var(--fs-ui);
	font-weight: var(--fw-medium);
	color: var(--color-navy);
}

@media (min-width: 48em) {
	.community-quotes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.community-quotes {
		gap: 1.4375rem;
	}
}
