/*
 * The "Top" section.
 *
 * Positions are percentages of the 1500x915 Figma canvas, so the stage scales
 * with the viewport. Layer geometry is written by js/hdci-top.js from the same
 * measurements; only the hero's opening full-bleed state is declared here, so
 * there is no flash before the script runs.
 */

/*
 * On the root, not on .site-main--front, because .hdci-mark-cross lives on the
 * body - a fixed element inside a transformed ancestor is not fixed at all -
 * and a custom property it cannot inherit makes its calc() invalid, which
 * silently stretched it to the full width of the window.
 */
:root {
	/*
	 * One unit is one pixel on the 1500x915 Figma canvas. Every box in this
	 * file is a percentage of that canvas, so type has to be stated in the same
	 * unit or it stops wrapping the way the comp wraps: a capped font inside a
	 * box that keeps growing with the viewport fits more words per line, which
	 * is how the About headline lost the line that overlaps the panel.
	 *
	 * Clamped by the shorter axis rather than taken from the width alone. The
	 * two coefficients are the same pixel - 1/1500 of the width, 1/915 of the
	 * height - so on the canvas's own 1.64 they agree exactly and the unit is
	 * 1px either way. On a wider, shorter window the width would have gone on
	 * growing the type and the flow boxes while the height they have to fit
	 * into did not, which is how a 16:9 laptop put the slider's progress bar
	 * through the card links. min() makes the unit mean the page's scale
	 * instead of a share of its width.
	 */
	--u: min(0.0666667vw, 0.1092896vh);

	/*
	 * One pixel of the 360x803 narrow canvas, by the same construction. Only
	 * the <1025 composition uses it, but it is declared here rather than in
	 * that media query for the same reason --u is: .hdci-mark-cross is on the
	 * body and a property it cannot inherit makes its calc() invalid.
	 *
	 * Type has to be stated in this unit and not in --u below 1025: --u is a
	 * quarter of a pixel on a phone, so the comp's 30px heading came out at
	 * 7.8 and fell back to the 18px floor.
	 */
	--mu: min(0.2777778vw, 0.1245330vh);
}

.site-main--front {
	margin: 0;
	max-width: none;
}

.top {
	position: relative;
	height: 100vh;
	overflow: hidden;
	background: #000;
}

.top__stage {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #000;
}

.top__layer {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	will-change: transform;
}

img.top__layer,
.top__hero video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The risers sit off-stage until the script places them. */
.top:not(.is-ready) img.top__layer {
	opacity: 0;
}

.top__hero {
	width: 100%;
	height: 100%;
}

img.top__mark {
	/*
	 * No opacity here on purpose. big-hdci-2x.png is already white baked at
	 * alpha 51, i.e. the 20% ghost the design calls for, so dimming it again
	 * in CSS compounds to 4% and the wordmark disappears against the stage.
	 */
	opacity: 1;
	/*
	 * The layer box is a percentage of the stage on each axis independently,
	 * so its ratio drifts away from the art's 5.159:1 on any viewport that
	 * isn't 1500x915. "contain" keeps the whole wordmark inside the box;
	 * "cover" would clip the outer letters.
	 */
	object-fit: contain;

	/*
	 * The box, which the timeline no longer writes: it only slides the top.
	 * The wordmark is the one layer whose size has to match something outside
	 * Top - .mid__banner, by way of .hdci-mark-cross - and a breakpoint
	 * cannot change an inline width. All three are stated here instead, in
	 * the same unit, so they agree by construction rather than by arithmetic
	 * that has to be kept in step.
	 *
	 * Centred by auto margins, as the other two are: a width clamped by the
	 * shorter axis no longer reaches both edges, and the comp's left offset
	 * would leave it against one of them.
	 */
	left: 0;
	right: 0;
	margin-inline: auto;
	width: calc(1393 * var(--u));
	height: auto;
	aspect-ratio: 1393 / 270;
}

/* Headline ------------------------------------------------------------- */

.top__headline {
	position: absolute;
	top: 49.9454%; /* 457 / 915 */
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	margin: 0;
	padding: 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: max(26px, calc(60 * var(--u)));
	font-weight: 600;
	line-height: 1;
	color: #fff;
	white-space: nowrap;
	pointer-events: none;
}

/*
 * Fixed width so the static half never shifts when the word changes: the three
 * words are stacked and right-aligned inside it, as in Figma.
 */
.top__cycle {
	position: relative;
	flex: 0 0 auto;
	width: 16.0667%; /* 241 / 1500 */
	height: 1em;

	/*
	 * Figma butts the two text nodes together at 0px, because the rotating
	 * word and the static half are separate nodes there. The merged node in
	 * frames 5-6 carries a real space, so add one back.
	 */
	margin-right: 0.25em;
}

.top__word {
	position: absolute;
	top: 0;
	right: 0;
	opacity: 0;
}

.top__word::after {
	content: "";
	position: absolute;
	top: 1.15em; /* rule at 526, word at 457 */
	left: 0;
	right: 0;
	height: 2px;
	background: #fff;
}

.top__static {
	flex: 0 0 auto;
}

/* Header --------------------------------------------------------------- */

.top__header {
	position: absolute;

	/*
	 * In canvas units, not 7.1038% of the viewport's height.
	 * As a percentage the header rode the screen's height while everything
	 * in it - the Give button, the menu disc, the gap between them - was
	 * sized in units, so on a tall or narrow screen the row drifted down
	 * away from its own contents: 92px from the top at 1500x1300 where the
	 * unit wants 65. Now the whole header scales as one piece with the page.
	 *
	 * left/right stay percentages of the width on purpose: they align the
	 * header with the risers below it, which the JS still positions as
	 * percentages of the viewport.
	 */
	top: calc(65 * var(--u));
	left: 9.8667%; /* 148 / 1500 */
	right: 9.8667%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.top__logo {
	display: block;

	/* Units, because it sits in a flex row beside unit-sized siblings. */
	width: calc(177.1 * var(--u));

	/*
	 * The floor for the whole header is Figma's own size. These three
	 * controls may grow with the page on a big screen, but shrinking them
	 * below the comp only ever made them harder to hit and read, and the
	 * unit goes very small on a phone - 0.26 at 390 wide, which asked for
	 * a 46px logo.
	 */
	min-width: 177px;
	flex: 0 0 auto;
}

.top__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.top__header-right {
	display: flex;
	align-items: center;
	gap: max(24px, calc(24 * var(--u)));
}

.top__give {
	display: inline-block;
	padding: max(8px, calc(8 * var(--u))) max(14px, calc(14 * var(--u)));
	border-radius: 3px;
	background: #fff;
	color: #000;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: max(14px, calc(14 * var(--u)));
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

/*
 * Drawn the same way as the footer's back-to-top control: a solid white disc
 * with the black glyph inside it. plus-2x.png is already black, which is what
 * the disc wants - it is only the glyphs sitting straight on the stage that
 * ever need inverting.
 */
.top__menu {
	display: flex;
	align-items: center;
	justify-content: center;
	width: max(36px, calc(36.4 * var(--u)));
	height: max(36px, calc(36.4 * var(--u)));
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	line-height: 0;
}

/*
 * The header at Figma's own size needs 334px of row. A phone does not have
 * it: 390 wide leaves 313 once the 9.8667% side margins are taken, so the
 * controls ran off the right edge. Pull the margins in and tighten the one
 * gap, and the Give button and the menu disc keep their full size - they are
 * the things you actually tap. The logo is the only part allowed under the
 * comp, and only below about 420px wide, where nothing else will fit.
 */
@media (max-width: 575px) {
	.top__header {
		left: 16px;
		right: 16px;
		gap: 12px;
	}

	.top__logo {
		min-width: min(177px, 42vw);
	}
}

.top__menu img {
	display: block;
	width: max(17px, calc(19.4 * var(--u))); /* Matches the arrow in its disc. */
	height: auto;
}

@media (prefers-reduced-motion: reduce) {
	.top__layer {
		will-change: auto;
	}
}

/* If the script never runs, still show the opening word. */
.top:not(.is-ready) .top__word[data-word="0"] {
	opacity: 1;
}


/* =====================================================================
 * Mid
 * ===================================================================== */

.mid {
	position: relative;
	height: 100vh;
	overflow: hidden;
	background: #fff;
}

/*
 * No background. .mid is already white, and the wordmark now sits behind this
 * stage so that the cards, which deal forward over it, paint on top. A white
 * fill here would hide it. Narrow, where this box is letterboxed to 360:803,
 * the bars are the section's white for the same reason.
 */
.mid__stage {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.mid__banner {
	position: absolute;
	top: 5.5738%;  /* 51 / 915 */

	/*
	 * Left and width in canvas units, not a share of the stage's width. At
	 * 1393 of 1500 this is the widest thing on the page, so it is the one that
	 * tracking the width alone ran into the copy below it on a wide, short
	 * window. --u is clamped by the shorter axis, so the comp's side padding
	 * holds instead. .top__mark and .hdci-mark-cross are sized the same way in
	 * js/hdci-scroll.js; all three have to agree or the handoff shows.
	 *
	 * Centred rather than set at the comp's left offset: once the width is
	 * clamped the wordmark no longer reaches both edges, and a fixed left
	 * would leave it hugging one of them. At 1500 the auto margins come out
	 * at the comp's own 51 and 52.
	 */
	left: 0;
	right: 0;
	/*
	 * 1393, the art's own width, where Figma draws this frame's copy at 1397.
	 * The four units are a designer's wobble between two frames of the same
	 * wordmark, and spending them cost a 0.3% scale and a 2px shift at each
	 * end of the band - img.top__mark is 1393 and the two have to be equal,
	 * not nearly.
	 */
	width: calc(1393 * var(--u));
	margin-inline: auto;

	/*
	 * Its own proportions rather than a share of the viewport's height, as on
	 * the risers: the travelling copy that arrives here is sized the same way,
	 * and the two have to agree exactly at the handoff or the swap shows.
	 */
	height: auto;
	aspect-ratio: 1393 / 270;

	/* The asset is the white wordmark; Figma draws it dark on white here. */
	filter: invert(1);
}

/*
 * The one wordmark that crosses from the end of Top to the top of Mid. It
 * lives outside #smooth-content - a fixed element inside a transformed
 * ancestor is not fixed to the viewport at all - and is only ever visible in
 * the band between the two pins, where .top__mark and .mid__banner are both
 * hidden so that only one of the three is ever on screen.
 *
 * difference does the recolouring for free. The asset is white baked at alpha
 * 51, so against Top's black it resolves to rgb(51,51,51) - the 20% ghost -
 * and against Mid's white to rgb(204,204,204), which is exactly what
 * .mid__banner's invert(1) produces. The boundary between the two stages
 * sweeps across it during the band and each half is right on its own side,
 * with no tween to time.
 */
.hdci-mark-cross {
	position: fixed;

	/*
	 * Sized here, not by the tween that moves it: both ends are the same
	 * size now, so there is nothing to interpolate, and a width that cannot
	 * change is a width that cannot scale. Only left and top travel.
	 */
	width: calc(1393 * var(--u));
	height: auto;
	aspect-ratio: 1393 / 270;
	mix-blend-mode: difference;
	pointer-events: none;
	opacity: 0;
	z-index: 2;
}

.mid__layer {
	position: absolute;
	top: 0;
	left: 0;
	display: block;

	/*
	 * The cards are square on the canvas and stay square at every width.
	 * The height lives here rather than in the timeline because the
	 * timeline would have to tween it, and a tweened height beats an
	 * aspect-ratio. ratio() writes only left, top and width.
	 */
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 5px;
	will-change: transform;
}

/* The risers sit off-stage until the script places them. */
.mid:not(.is-ready) .mid__layer {
	opacity: 0;
}

.mid__copy {
	position: absolute;
	top: 0;
	left: 0;
	width: 18.2%; /* 273 / 1500 */
}

.mid__heading {
	margin: 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: max(18px, calc(30 * var(--u)));
	font-weight: 600;
	line-height: 1.0667; /* 32 / 30 */
	color: #000;
}

.mid__link {
	display: inline-block;
	margin-top: 1.5em; /* button sits 117 below the heading top */
	font-family: "IBM Plex Sans", sans-serif;
	font-size: max(12px, calc(14 * var(--u)));
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	color: #3fb3fa;
}

@media (prefers-reduced-motion: reduce) {
	.mid__layer {
		will-change: auto;
	}
}


/* =====================================================================
 * About
 * ===================================================================== */

/*
 * About rises over Mid before it has anything to show: through the handoff
 * its box is transparent, so Mid's "Partner with HDCI >" link is still
 * plainly visible underneath - and was unclickable, because the empty box
 * and GSAP's pin wrapper sat on top of it taking the click.
 *
 * Nothing here moves anything. The section and its spacer stop taking
 * clicks where they paint nothing, and .about__stage, which holds every
 * last thing About owns, takes them back. Mid's link stays live for as
 * long as it is on screen.
 */
.about,
.pin-spacer:has(> .about) {
	pointer-events: none;
}

.about__stage {
	pointer-events: auto;
}

.about {
	position: relative;
	height: 100vh;
	overflow: hidden;

	/*
	 * Mid's last card finishes 76.2842% down its stage, leaving 23.7158vh of
	 * room beneath it. That gap reads right as Mid finishes, but it should
	 * close rather than ride all the way down the page, so About sits that
	 * much higher and is handed the distance back as a transform on its stage,
	 * which it gives up across the handover (see hdci-scroll.js). The section
	 * itself stays transparent while that is happening: its box is over Mid's
	 * white by then, and only the stage inside it carries the black.
	 */
	margin-top: -23.7158vh; /* 100 - ( 22.4044 + 53.8798 ) */
	background: transparent;
}

.about__stage {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #000;
}

.about__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Figma darkens this wash 0.2 -> 0.7 -> black across the three beats. */
.about__wash {
	position: absolute;
	inset: 0;
	background: #000;
	opacity: 0.2;
}

.about__panel,
.about__headline,
.about__intro,
.about__rule,
.about__stats,
.about__cta,
.about__card,
.about__partners {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
	will-change: transform;
}

.about__panel {
	/*
	 * The box is fixed; js/hdci-scroll.js only slides it up the stage.
	 *
	 * Width in canvas units, not a share of the stage's: everything in the
	 * panel is stated in units - the headline is wider than the box and hung
	 * outside it by a negative margin - so once --u stopped tracking the
	 * viewport's width the two no longer agreed and the headline drifted off
	 * the box's centre. Both panels are centred on the canvas (448 + 302 and
	 * 531 + 219 both land on 750), so auto margins put them back exactly
	 * where the comp has them.
	 */
	left: 0;
	right: 0;
	width: calc(604 * var(--u));
	margin-inline: auto;
	height: 47.3224%; /* 433 / 915 */
	background: rgba(0, 0, 0, 0.8);
	border-radius: 5px;
}

.about__headline {
	font-family: "IBM Plex Sans", sans-serif;
	font-size: max(26px, calc(60 * var(--u)));
	font-weight: 600;
	line-height: 1;
	text-align: center;
	color: #fff;
}

.about__intro,
.about__card-copy p {
	font-family: "IBM Plex Sans", sans-serif;
	font-size: max(12px, calc(14 * var(--u)));
	font-weight: 400;
	line-height: 1.5;
	color: #fff;
}

.about__intro {
	text-align: center;
}

.about__rule {
	height: 1px;
	background: #fff;
	opacity: 0.3;
}

/* Stats ---------------------------------------------------------------- */

.about__stats {
	display: flex;
	/*
	 * Three 134px columns and two gaps come to 504 inside a 513 box, so
	 * left-aligning leaves the row sitting 5px off the panel's centreline.
	 */
	justify-content: center;
	gap: calc(51 * var(--u)); /* 185 - 134 */
}

.about__stat {
	width: calc(134 * var(--u));
	text-align: center;
	color: #fff;
}

.about__stat dt {
	/* TODO: DIN Condensed is licensed and not shipped with the theme. */
	font-family: "DIN Condensed", "Oswald", "Arial Narrow", sans-serif;
	font-weight: 700;
	font-size: max(32px, calc(60 * var(--u)));
	line-height: 1;
	text-transform: uppercase;
}

.about__stat dd {
	margin: 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: max(12px, calc(14 * var(--u)));
	line-height: 1.2;
}

.about__cta,
.about__card-copy a {
	font-family: "IBM Plex Sans", sans-serif;
	font-size: max(12px, calc(14 * var(--u)));
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	color: #3fb3fa;
}

.about__cta {
	width: 11.9333%; /* 179 / 1500 */
	text-align: center;
}

/* Audience cards ------------------------------------------------------- */

.about__card img {
	display: block;
	width: 100%;
	height: auto; /* See the note on .career__event img. */
	object-fit: cover;
	border-radius: 5px;
}

.about__card-copy {
	padding-top: 25px;
	color: #fff;
	/* Set on the row by the timeline, so cloned slides inherit it too. */
	opacity: var(--copy-opacity, 1);
}

.about__card-label {
	margin: 0 0 4px;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: max(12px, calc(14 * var(--u)));
	color: #a6a6a9;
}

.about__card-copy h3 {
	margin: 0 0 12px;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: max(18px, calc(24 * var(--u)));
	font-weight: 600;
	line-height: 1.3333;
}

/*
 * The body paragraph, not the label above it, which keeps its own 4. This was
 * the one block of copy in either card row still carrying the theme's default
 * paragraph margin - 22.5px on a phone - on top of the link's own 16, so the
 * link sat 39 off the copy here against 16 on the event cards. The gap belongs
 * to the link alone, as it does everywhere else in this file.
 */
.about__card-copy > p:last-of-type {
	margin-bottom: 0;
}

.about__card-copy a {
	display: inline-block;
	margin-top: 16px;
}

/* Partners ------------------------------------------------------------- */

.about__partners {
	width: 100%;
	text-align: center;
}

.about__partners h3 {
	/*
	 * 24, not the comp's 56. The row has to fit between the cards' last beat
	 * and the bottom of the stage - 266 of room at canvas size - and at 56
	 * with a 96 logo slot the block came out 248 tall and ran off the bottom
	 * of the screen at every viewport. See the partners layer in
	 * js/hdci-scroll.js, which anchors what is left to the bottom.
	 */
	margin: 0 0 24px;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: max(20px, calc(30 * var(--u)));
	font-weight: 600;
	color: #fff;
}

.about__partners ul {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 0 3.3%;
	list-style: none;
}

/* PLACEHOLDER: no partner logos shipped; these are visibly empty slots. */
.about__partners li {
	width: 12%;
	height: 32px;
	border: 1px dashed rgba(255, 255, 255, 0.25);
	border-radius: 3px;
}

.about:not(.is-ready) .about__card,
.about:not(.is-ready) .about__partners {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.about__panel,
	.about__card {
		will-change: auto;
	}
}


/* =====================================================================
 * Career Programs
 * ===================================================================== */

.career {
	position: relative;
	height: 100vh;
	overflow: hidden;
	background: #000;
}

.career__stage {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #000;
}

.career__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Figma darkens this wash 0.3 -> 0.7 -> black across the three beats. */
.career__wash {
	position: absolute;
	inset: 0;
	background: #000;
	opacity: 0.3;
}

.career__panel,
.career__headline,
.career__intro,
.career__cta,
.career__events-title,
.career__events-all,
.career__event,
.career__rule,
.career__footer {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
	will-change: transform;
}

.career__panel {
	/* As with About's: fixed box, the timeline only slides it. See there. */
	left: 0;
	right: 0;
	width: calc(438 * var(--u));
	margin-inline: auto;
	height: 44.4809%; /* 407 / 915 */
	background: rgba(0, 0, 0, 0.8);
	border-radius: 5px;
}

.career__headline {
	font-family: "IBM Plex Sans", sans-serif;
	font-size: max(34px, calc(90 * var(--u)));
	font-weight: 600;
	line-height: 1;
	text-align: center;
	color: #fff;
}

.career__intro {
	font-family: "IBM Plex Sans", sans-serif;
	font-size: max(12px, calc(14 * var(--u)));
	line-height: 1.5;
	text-align: center;
	color: #fff;
}

.career__cta,
.career__events-all,
.career__event-copy a {
	font-family: "IBM Plex Sans", sans-serif;
	font-size: max(12px, calc(14 * var(--u)));
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
}

.career__cta {
	width: 16.5333%; /* 248 / 1500 */
	text-align: center;
	color: #3fb3fa;
}

/*
 * "Experience HDCI" and "See All Events" are one row. They sit at the same
 * top and in line boxes of the same height, so each centres its own type in
 * an identical box and the two read as aligned whatever size either is. The
 * shared height is why these live on a variable rather than being typed
 * twice - the link is 14px against a heading that is 30 on the canvas and 20
 * on a phone, and any fixed offset between them only holds at one of those.
 */
.career {
	--events-size: max(20px, calc(30 * var(--u)));
	--events-leading: 1.0667;
}

.career__events-title {
	font-family: "IBM Plex Sans", sans-serif;
	font-size: var(--events-size);
	font-weight: 600;
	line-height: var(--events-leading);
	color: #fff;
}

.career__events-all {
	line-height: calc(var(--events-size) * var(--events-leading));
	color: #fff;
}

/* Event cards ---------------------------------------------------------- */

/*
 * The percentage here never resolved - the slide's height is auto, so there
 * was nothing for it to be a percentage of - and the photo fell back to its
 * own proportions. That made card height follow card width, and at 1800x900
 * a 540-wide slide came out 90 taller than the comp and put the card links
 * through the slider's progress bar. See the desktop rule further down.
 */
.career__event img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 5px;
}

.career__event-copy {
	padding-top: 18px;
	color: #fff;
	opacity: var(--copy-opacity, 1);
}

.career__event-copy h4 {
	margin: 0 0 12px;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: max(18px, calc(24 * var(--u)));
	font-weight: 600;
	line-height: 1.3333;
}

.career__event-copy p {
	margin: 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: max(12px, calc(14 * var(--u)));
	line-height: 1.5;
}

.career__event-copy a {
	display: inline-block;
	margin-top: 16px;
	color: #3fb3fa;
}

/* Footer --------------------------------------------------------------- */

.career__rule {
	height: 1px;
	background: rgba(255, 255, 255, 0.3);
}

.career__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.career__footer-logo {
	display: block;

	/*
	 * The same mark at the same size as the one in the Top header, stated
	 * the same way. As 14.7583% of the footer it tracked the viewport's
	 * width while the header's tracked the clamped unit, so the two copies
	 * of one logo disagreed in both directions: 46px against 164 on a
	 * phone, and 227 against 209 at 1920.
	 *
	 * The floor is written as min() rather than in the phone media block
	 * up with the header's, because that block sits earlier in the file and
	 * this rule would simply win. 42vw only bites under about 420px wide;
	 * above that it is a flat 177.
	 */
	width: calc(177.1 * var(--u));
	min-width: min(177px, 42vw);
	flex: 0 0 auto;
}

.career__footer-logo img {
	display: block;
	width: 100%;
	height: auto;
}

/*
 * Figma puts the address 235.05 from the footer's left edge, which is 57.95
 * past the logo. Placed by that offset rather than by justify-content:
 * space-between would have spread the three items evenly and put it near the
 * middle of the row. The auto margin on its right is what takes up the slack
 * instead, so the social icons and the disc stay pinned to the far end.
 *
 * Figma draws this in Inter Bold 12, which is Figma's own default rather
 * than a choice. It is set in the body face at body size instead - the same
 * declaration .career__intro carries, so the address reads as a line of
 * paragraph text wherever it appears.
 */
.career__footer-address {
	margin: 0 auto 0 calc(57.95 * var(--u));
	font-family: "IBM Plex Sans", sans-serif;
	font-size: max(12px, calc(14 * var(--u)));
	font-weight: 400;
	line-height: 1.25;
	color: #fff;
}

.career__footer-right {
	display: flex;
	align-items: center;
	/*
	 * Floored at the 28px the icons are spaced by, not at 16: this gap scales
	 * with the viewport's width and the one inside .career__social does not,
	 * so below about 1400 this one kept shrinking away from it and the back
	 * to top crept in towards the Instagram icon. Level with it from there
	 * down; 1500 still gets the comp's 30.
	 */
	gap: max(28px, calc(30 * var(--u))); /* 1165.05 - 1135.05 */
}

.career__social {
	display: flex;
	gap: 28px; /* 50 - 22, between the two 22px icons */
	margin: 0;
	padding: 0;
	list-style: none;
}

.career__social li {
	width: 22px;
	height: 22px;
}

.career__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	text-decoration: none;
}

/*
 * Figma draws this as a solid white disc with a black arrow inside it, the
 * arrow filling a little over half the height. up-arrow-2x.png is the arrow on
 * its own, already black, so it needs no inverting here. The top section's
 * plus menu is built the same way.
 */
.career__top {
	display: flex;
	align-items: center;
	justify-content: center;

	/*
	 * Fixed, not a share of the canvas. The comp's 36.4 units read as 32 on a
	 * phone and 47 at 1920, which put this visibly out of step with the
	 * social icons beside it - those have always been a flat 22px - so the
	 * row looked like it was resizing when only this was.
	 */
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	line-height: 0;
}

.career__top img {
	display: block;
	height: 19px; /* 19.4 in the comp's 37px disc, at the 36 above */
	width: auto;
}

/*
 * The floating copy of the same control, shown over the page while Career's
 * own is still below the fold.
 *
 * Fixed, and in the markup outside #smooth-wrapper, because the smoother
 * transforms #smooth-content and a fixed element inside a transformed
 * ancestor is positioned against that ancestor rather than the window.
 *
 * Where it sits is the footer's own slot, so that the hand-over at the end of
 * Career is a swap in place rather than a jump. The footer layer rests at 807
 * of the 915 canvas - 88.1967% of the window - and its disc's bottom edge
 * lands 39 further down, a fixed figure because the row's height comes from
 * the logo's own 177px floor and does not scale. Its right edge is the
 * footer's 90%. Checked against the real thing rather than reasoned about:
 * the two agree to the pixel at the moment the swap happens.
 */
.hdci-totop {
	position: fixed;
	right: 10%; /* 1350 / 1500, the footer's right edge */
	bottom: calc(11.8033vh - 39px); /* measured against the footer's resting slot */
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	line-height: 0;

	/*
	 * Hidden by opacity rather than by display, so that coming and going is a
	 * fade. visibility rides along on a zero-length transition delayed by the
	 * length of the fade: it keeps the control out of the tab order while it
	 * is invisible, without snapping away before the fade has run.
	 */
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

/*
 * is-live is on from the moment Mid fills the screen until the way back up;
 * is-docked goes on over the last of Career, as the footer's own control
 * arrives in the same place. Both are classes, and both are written here, so
 * that neither can be overruled by an inline style the other left behind.
 */
.hdci-totop.is-live {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.25s ease;
}

.hdci-totop.is-live.is-docked {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.hdci-totop img {
	display: block;
	height: 19px;
	width: auto;
}

/*
 * The outline is what lets the disc read at all on Mid, which is white. On
 * Career's dark stage it is invisible, which is why both controls can carry
 * it and stay the same object.
 */
.career__top,
.hdci-totop {
	border: 1.5px solid #000;
}

.career:not(.is-ready) .career__event,
.career:not(.is-ready) .career__footer {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.career__panel,
	.career__event {
		will-change: auto;
	}
}


/* =====================================================================
 * Sliders
 *
 * Two arrow-driven rows (audience cards, events) and one autoscrolling
 * marquee (partner logos). The rows are deliberately wider than the stage:
 * three 548-wide slides span 1644 against the 1500 canvas, so the third is
 * cut off at the viewport edge and reached with the arrows, as in Figma.
 * ===================================================================== */

.hdci-slider {
	position: absolute;
	top: 0;
	left: 0;
	width: 90%; /* 1350: x=150 to the stage edge, so the track overflows it */
	will-change: transform;
}

.hdci-slider .slick-track {
	display: flex;
	align-items: flex-start;
}

/*
 * Slick puts slick-slide on the cards themselves rather than wrapping them,
 * so the card IS the slide: its width is the card (450) and its right margin
 * is the gutter (98), giving Figma's 548 pitch. Fixed widths also let Slick's
 * variableWidth mode measure a track wider than the list, so it knows it has
 * somewhere to scroll.
 */
.hdci-slider .slick-slide {
	/*
	 * A share of the window, so the row always shows the comp's two and a
	 * half cards however wide the window is. That is what makes the third
	 * card's cut edge - and so the arrows, and the loop - mean something at
	 * every size: in canvas units the cards stopped growing, the whole row
	 * fitted on screen past about 1.9:1, and Slick filled the spare slot with
	 * a copy of the first card.
	 *
	 * What must not track the width is the card's HEIGHT; see the note on
	 * .career__event img.
	 */
	width: 30vw;            /* 450 / 1500 */
	margin-right: 6.5333vw; /* 98 / 1500 */
	height: auto;
}

.about__card,
.career__event {
	position: static;
}

/*
 * How tall a card is, settled independently of how wide it is: the photo in
 * canvas units, the copy under it in unit-scaled type. 299 is the comp's own
 * height at 1500. --u is clamped by the shorter axis, so on a window with no
 * more height to grow into the card gets wider without getting taller and the
 * copy stays clear of the progress bar. The photo crops wider as it does -
 * 1.5:1 at the canvas, about 2.2:1 on a 2560x1080 - which object-fit takes
 * from the middle.
 *
 * Desktop only. Below 1025 the slides are a deliberate 44 and 78 of the
 * window's width, far wider than the comp's proportion, and a canvas-unit
 * height against those would letterbox a phone's photo to nearly 4:1.
 */
@media (min-width: 1025px) {
	.about__card img,
	.career__event img {
		height: calc(299 * var(--u));
	}
}

/*
 * Narrow sizes the card photo against the stage it has to fit in, not only
 * against the card's width. 52vw is the height a 78vw slide's photo comes to
 * at its own proportions, so on a tall phone this changes nothing - 203px at
 * 390x844, as before. It bites only where the frame is genuinely short: the
 * same phone with the address bar showing is 390x664, and there the stage has
 * to hold the cards, the progress bar AND the partner logos, which at the
 * photo's own height it could not - the bar was landing on the card copy.
 *
 * 24vh rather than a fixed figure because what is scarce is the viewport's
 * height, which is the thing the cards are competing for.
 */
@media (max-width: 1024px) {
	.about__card img,
	.career__event img {
		height: min(52vw, 24vh);
	}
}

/*
 * Narrow stays on vw. These are shares of the window, not the comp, and on a
 * phone the width is already the shorter axis, so there is nothing for --u to
 * clamp and a card cannot outgrow the height the way it did at 1800x900.
 */
@media (max-width: 1024px) {
	.hdci-slider .slick-slide {
		width: 44vw;
		margin-right: 4vw;
	}
}

@media (max-width: 640px) {
	.hdci-slider .slick-slide {
		width: 78vw;
		margin-right: 5vw;
	}
}

/* Slider nav ----------------------------------------------------------- */

.hdci-slidernav {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	width: 80%; /* 1200 / 1500 */
	height: 15px;
	color: #fff;
	will-change: transform;
}

/*
 * Set by js/hdci-scroll.js when the whole row is on screen at once. There is
 * nowhere for the arrows to take you and nothing for the bar to report, so
 * they step back rather than disappear - removing them would leave a hole in
 * the composition and shift everything under it as the window is dragged.
 */
.hdci-slidernav.is-idle {
	opacity: 0.35;
	pointer-events: none;
}

.hdci-slidernav__track {
	position: relative;
	width: 87.8333%; /* 1054 / 1200 */
	height: 1px;
	background: rgba(255, 255, 255, 0.3);
}

/*
 * A segment one slide wide that travels the track. Figma draws it 405.79 of
 * 1054 at rest, which is the designer's eyeball of 1/3 for three cards; the
 * real width comes from the slide count at runtime.
 */
.hdci-slidernav__fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 33.3333%;
	background: #fff;
	transition: left 0.45s ease, width 0.45s ease;
}

.hdci-slidernav__arrow {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	color: inherit;
	line-height: 0;
	transition: opacity 0.2s ease;
}

/* Arrows sit at 1116 and 1169 of 1200, after the 1054 track. */
.hdci-slidernav__arrow[data-dir="prev"] {
	margin-left: 5.1667%; /* 1116 - 1054 */
}

.hdci-slidernav__arrow[data-dir="next"] {
	margin-left: 1.8333%; /* 1169 - 1147 */
}

.hdci-slidernav__arrow svg {
	display: block;
	width: 32px;
	height: 15px;
}

.hdci-slidernav__arrow[disabled] {
	opacity: 0.3;
	cursor: default;
}

/* Partner marquee ------------------------------------------------------ */

.hdci-marquee {
	overflow: hidden;
}

/*
 * One strip holding every logo and its copies. max-content so it keeps its
 * real length instead of being squeezed to the stage, which is what the
 * tween slides.
 */
.hdci-marquee__track {
	display: flex;
	align-items: center;
	width: max-content;
	will-change: transform;
}

/*
 * The logos are wide and short (roughly 6:1), so slot width is what sizes
 * them, not height. Four across with tight padding gives each ~327px.
 */
.hdci-marquee__item {
	display: flex !important;
	flex: 0 0 auto; /* The slot width is set on the element by crawl(). */
	align-items: center;
	justify-content: center;
	height: 64px; /* Was 96; see the note on .about__partners h3. */
	padding: 0 24px;
}

@media (max-width: 1024px) {
	.hdci-marquee__item {
		height: 64px;
		padding: 0 24px;
	}
}

.hdci-marquee__item img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Before the row is built, show only the first few rather than a stack. */
.hdci-marquee:not(.is-crawling) .hdci-marquee__item:nth-child(n + 4),
.hdci-slider:not(.slick-initialized) .about__card:nth-child(n + 4),
.hdci-slider:not(.slick-initialized) .career__event:nth-child(n + 4) {
	display: none;
}

/* Panel contents
--------------------------------------------- */

/*
 * The panels lay their contents out in flow. The comp positions each of them
 * absolutely, which makes every gap the leftover difference between two
 * coordinates - and those drift, because a text block's height follows the
 * viewport's width while the boxes follow its height. At 1920 that difference
 * had already gone negative and the CTA sat on the intro's last line. As real
 * spacing the gaps hold at any size, and a breakpoint can set bigger type
 * without anything colliding. Every number below is the comp's own, measured
 * off the 1500 render, so the desktop layout is unchanged.
 */
.about__panel,
.career__panel {
	box-sizing: border-box;
	height: auto;
}

.about__panel > *,
.career__panel > * {
	position: static;
}

.about__panel {
	padding-bottom: calc(24 * var(--u)); /* 734 - 710 */
}

.career__panel {
	padding: calc(28 * var(--u)) 0 calc(55 * var(--u)); /* 279 - 251, 658 - 603 */
}

/* Both headlines hang outside their panel: wider than it, and About's higher. */
.about__headline {
	width: calc(786 * var(--u));
	margin-top: calc(-96 * var(--u)); /* 205 - 301 */
	margin-left: calc(-94 * var(--u)); /* 354 - 448 */
}

.career__headline {
	width: calc(769 * var(--u));
	margin-left: calc(-166 * var(--u)); /* 365 - 531 */
}

.about__intro {
	width: calc(469 * var(--u));
	margin: calc(19 * var(--u)) auto 0; /* 404 - 385 */
}

.career__intro {
	width: calc(313 * var(--u));
	margin: calc(20 * var(--u)) auto 0; /* 479 - 459 */
}

/*
 * Set off from the copy above. The comp's coordinates put both of these all
 * but touching their intro - 0 here and 5 on Career - but that reads as
 * cramped on the page, because Figma's text node carries leading above the
 * glyphs that our line-height: 1 does not. 28 is the panel's own rhythm, the
 * same step Career already pads its top with, and the floor keeps it legible
 * on a phone, where a canvas unit is a quarter of a pixel.
 */
.about__cta {
	display: block;
	width: calc(179 * var(--u));
	margin: max(18px, calc(28 * var(--u))) auto 0;
}

.career__cta {
	display: block;
	width: calc(248 * var(--u));
	margin: max(18px, calc(28 * var(--u))) auto 0; /* see .about__cta */
}

.about__rule {
	width: 100%;
	margin-top: calc(37 * var(--u)); /* 581 - 544 */
}

.about__stats {
	width: calc(513 * var(--u));
	margin: calc(34 * var(--u)) auto 0; /* 616 - 582 */
}

/* Mid, narrow screens
--------------------------------------------- */

/*
 * Keep this breakpoint and the MOBILE constant in js/hdci-scroll.js together:
 * the stylesheet widens the column and holds the cards square, the script
 * moves the stack to the right and brings both messages up the same column.
 */
/*
 * Below 1025 Mid is a different composition altogether, drawn on its own
 * 360x803 canvas: the wordmark across the top, the card stack centred, and
 * one column of copy underneath instead of a message either side. It used to
 * hold the desktop composition down to 768, lower than the other sections go;
 * it now turns over at 1024 with the rest of them.
 *
 * The matching breakpoint is in the JS, which swaps in CARDS_NARROW and a
 * fifth beat on the same query. The two have to turn over together.
 *
 * Nearly all of the geometry is the timeline's - it writes left, top and
 * width as percentages of that canvas. What is left here is what the
 * timeline does not touch.
 */
@media (max-width: 1024px) {

	/*
	 * The stage takes the comp's own 360:803 and is centred in whatever is
	 * left. Everything inside is a percentage of it, so this is what keeps
	 * the cards and the copy in step.
	 *
	 * Without it the two drifted apart in the usual way: a card's width came
	 * from the viewport's width and the copy's top from its height, so they
	 * only agreed at 0.448, the comp's own aspect. A phone is near enough -
	 * 390x844 is 0.462 - but anything squarer buried the copy under the
	 * stack, by 49px at 500x900 and 235px at 767x1024. Narrowing a desktop
	 * window put you in that range immediately, and the copy was never seen.
	 *
	 * Letterboxing is invisible here because the stage and the section are
	 * both white; what it costs is width on a short wide window, which is
	 * the right thing to give up for a composition drawn 803 tall.
	 */
	.mid {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.mid__stage {
		width: min(100%, calc(100vh * 360 / 803));
		height: min(100%, calc(100vw * 803 / 360));
		flex: 0 0 auto;
	}

	/*
	 * One column for both messages, which the timeline crossfades in place.
	 * The comp puts the heading at x31 of 360; the matching inset on the
	 * right gives 298, which is what the link needs - "Explore Career
	 * Programs >" is 271 wide and would not fit the heading's own 233.
	 */
	.mid__copy {
		left: 8.6111%; /* 31 / 360 */
		width: 82.7778%; /* 298 / 360 */
	}

	/* 30/32 on the narrow canvas, where --u would give 7.8. */
	.mid__heading {
		font-size: calc(30 * var(--mu));
	}

	/* 14, and its 1.5em keeps the comp's 117 gap from the heading top. */
	.mid__link {
		font-size: calc(14 * var(--mu));
	}

	/*
	 * The stack is centred by the timeline rather than held to a column, so
	 * the scaling the wide layout needs is off: cards change size here by
	 * changing width, beat by beat, exactly as they do on the wide canvas.
	 */
	.mid__layer {
		transform-origin: 50% 50%;
	}

	/*
	 * 334 x 66 at 16,24 on the narrow canvas - but 334 of the canvas, not
	 * 92.7778% of the stage, and the art's own ratio rather than the comp's
	 * rounding of it. Same width for Top's mark and for the copy that
	 * carries it between them, which is the whole point: the stage here is
	 * letterboxed to 360:803 while Top's is not, so a share of the stage and
	 * a share of the viewport are two different numbers below 768. They were
	 * 426 and 712 at 767x1024, and the wordmark scaled 40% down across the
	 * band. 334 units is the narrower of the two, which is the one that fits.
	 */
	.mid__banner,
	img.top__mark,
	.hdci-mark-cross {
		/*
		 * 334 of the narrow canvas's 360 - but as a share of the WINDOW, not
		 * of the letterboxed stage. The stage is 360:803 and is the narrower
		 * of the two below 768: 287 of a 360x640 phone, 459 of a 767x1024
		 * tablet. A wordmark measured against it came out 266 and 426 where
		 * Top's mark, which tracks the window, was 334 and 712 - so it
		 * scaled down across the band - and measuring Top's against the
		 * stage instead fixed the scaling by making both of them small,
		 * which is not what the comp draws. 334/360 of the window is what
		 * the comp draws, and it is the one number all three can share.
		 *
		 * This is why .mid__banner is a child of .mid and not of the stage:
		 * out here it is wider than the stage without being clipped by it.
		 */
		width: 92.7778vw; /* 334 / 360 */
	}

	.mid__banner {
		/*
		 * The comp's 24 of 803, measured on the stage - which is centred in
		 * whatever height is left over, and is no longer this element's
		 * containing block.
		 */
		--mid-stage-h: min(100vh, calc(100vw * 803 / 360));
		top: calc((100vh - var(--mid-stage-h)) / 2 + var(--mid-stage-h) * 24 / 803);
	}
}

@media (max-width: 1024px) {
	/*
	 * At the comp's proportions these are 40.3% and 29.2% of the width, which
	 * is a 157px and a 114px panel on a phone. Give them the screen bar a
	 * 50px gutter each side.
	 */
	.about__panel,
	.career__panel {
		left: 50px;
		right: 50px;
		width: auto;

		/*
		 * Capped and centred rather than filling: by the top of this range a
		 * 50px gutter leaves a 900px panel, which is wider than the copy
		 * wants to be read at. left and right both set, width auto and the
		 * margins auto is what centres an absolutely positioned box - no
		 * transform, which Career's panel is already using to hang itself off
		 * the bottom of the stage.
		 */
		max-width: 600px;
		margin-left: auto;
		margin-right: auto;
	}

	/*
	 * Their contents follow, and the type comes off the canvas scale onto
	 * fixed sizes: 60 canvas units is 15.6px on a 390 screen, so everything
	 * was sitting on the legibility floors and reading as a column of single
	 * words. The panel is in flow, so taller text simply makes it taller.
	 */
	.about__headline,
	.career__headline {
		width: calc(100% + 50px);
		margin-left: -25px;
		font-size: 30px;
	}

	/*
	 * About's headline joins its panel, the way Career's already does.
	 *
	 * On the canvas both headlines hang outside their box - wider than it,
	 * and About's lifted clear above it by the -96u top margin. Career's
	 * survives that treatment here because its panel carries 28u of top
	 * padding and its two lines are short enough never to reach the 25px
	 * of overhang; "Find Your Path. Build Your Future." sits inside the
	 * dark box and reads as part of it. About's headline is long enough to
	 * use every pixel of that overhang, and the negative top margin puts it
	 * above the box entirely, so at this size it read as a stray line of
	 * copy on the photograph rather than the panel's own heading.
	 *
	 * So: no lift, the same top padding Career has, and the width held to
	 * the panel's. It wraps to one more line than it did and every line of
	 * it is inside the box.
	 */
	.about__panel {
		padding-top: calc(28 * var(--u));
	}

	/*
	 * The same 25px each side the intro, CTA and stats already take, so the
	 * heading lines up with the copy under it instead of running wider than
	 * everything else in the box. Stated as the same calc rather than as
	 * padding, because the width is what the text wraps to and these have to
	 * agree exactly. The rule keeps the full 600 - it is a divider, and
	 * spanning the box is the point of it.
	 */
	.about__headline {
		width: calc(100% - 50px);
		margin-top: 0;
		margin-inline: auto;
	}

	.about__intro,
	.about__stats,
	.about__cta,
	.career__intro,
	.career__cta {
		width: calc(100% - 50px);
	}

	.about__rule {
		width: 100%;
	}

	.about__intro,
	.career__intro {
		font-size: 16px;
	}

	.about__cta,
	.career__cta {
		font-size: 15px;
	}

	.about__stat dt {
		font-size: 34px;
	}

	.about__stat dd {
		font-size: 13px;
	}

	/* Three fixed 134-unit columns come to 35px each on a phone. */
	.about__stat {
		width: auto;
		flex: 1 1 0;
	}

	.about__stats {
		gap: 10px;
	}

	/*
	 * The comp's gaps are canvas units, so they shrink to 5px or so here.
	 * Give the flow real spacing to go with the bigger type.
	 */
	.about__intro,
	.career__intro {
		margin-top: 16px;
	}

	.about__cta,
	.career__cta {
		margin-top: 24px; /* the desktop step, in this block's own rhythm */
	}

	.about__rule {
		margin-top: 22px;
	}

	.about__stats {
		margin-top: 22px;
	}

	.about__panel {
		padding-bottom: 24px;
	}

	.career__panel {
		padding: 24px 0;
	}

	/*
	 * Slider copy, same as the panels: 14 canvas units is 3.6px on a 390
	 * screen, so this was sitting on the 12px floor.
	 */
	.about__card-copy p,
	.career__event-copy p {
		font-size: 15px;
	}

	.about__card-copy a,
	.career__event-copy a,
	.career__events-all {
		font-size: 14px;
	}

	.about__card-copy h3,
	.career__event-copy h3 {
		font-size: 19px;
	}

	/*
	 * "Experience HDCI" is a 33% column and "See All Events" starts at 29% of
	 * the same line, so on a phone the two sit on top of each other. Give the
	 * heading the row and send the link to the right-hand end of it. The
	 * timeline writes left inline for both - it is the one place a breakpoint
	 * has to out-specify it, since these two are the only layers that need
	 * their horizontal order changed rather than just their width.
	 */
	.career__events-title {
		left: 25px !important;
		width: auto !important;
	}

	.career__events-all {
		left: auto !important;
		right: 25px;
		width: auto !important;
		text-align: right;
	}
}

/* Links
--------------------------------------------- */

/*
 * Every link in the comp is drawn in a single colour: there is no hover,
 * visited or active treatment anywhere in the design. The parent theme
 * otherwise recolours :visited to purple and :hover to navy at a specificity
 * the section rules above cannot beat, so pin all five states here, grouped by
 * the colour each link is drawn in.
 */
:is(
	.mid__link,
	.about__cta,
	.about__card-copy a,
	.career__cta,
	.career__event-copy a
):is(:link, :visited, :hover, :focus, :active) {
	color: #3fb3fa; /* Button Color */
	text-decoration: none;
}

:is(
	.career__events-all,
	.career__footer-logo,
	.career__social a
):is(:link, :visited, :hover, :focus, :active) {
	color: #fff;
	text-decoration: none;
}

.top__give:is(:link, :visited, :hover, :focus, :active) {
	color: #000;
	text-decoration: none;
}

/* Image links carry no colour of their own. */
.top__logo:is(:link, :visited, :hover, :focus, :active) {
	text-decoration: none;
}

/*
 * Below 992 the three items no longer fit on one line without the address
 * crowding the logo, so it drops under them: order last, full width, and the
 * row above it wraps back to logo at one end and the icons at the other. The
 * auto margin goes, because on a line of its own there is no slack to take
 * up and it would have centred the text.
 */
@media (max-width: 991px) {
	.career__footer {
		flex-wrap: wrap;
	}

	.career__footer-address {
		order: 1;
		width: 100%;
		margin: max(12px, calc(14 * var(--u))) 0 0;
	}
}

/*
 * The logo at three quarters on a phone - both copies of it, the one in the
 * Top header and the one in the footer, so the mark stays one size wherever
 * it appears. Nothing else in either row changes: the social icons, the back
 * to top disc and the gaps keep the sizes they have everywhere else.
 *
 * Appended at the end of the file on purpose: .career__footer-logo is
 * declared later than the phone block further up, so putting this there
 * would lose to it.
 */
@media (max-width: 500px) {
	.top__logo,
	.career__footer-logo {
		min-width: min(133px, 32vw); /* 177 and 42vw, at 0.75 */
	}
}

/*
 * About's headline on a phone.
 *
 * 30px into the 210-240px measure the panel leaves below 575 put this heading
 * on six lines - "Heman Drummond Center of Innovation" has no good break in
 * it at that width - and carried the panel past the bottom of a 360x640
 * screen. 24px brings it back to four lines and the panel back inside the
 * stage, without touching the 25px alignment with the copy beneath it or the
 * tablet range, where 30px still sets in two lines.
 *
 * Appended after the max-width:1024 block rather than filed with the other
 * 575 rules near the top of the file: that block sets this font-size at the
 * same specificity, so an earlier rule would simply lose to it.
 *
 * Career's heading is left at 30px - "Find Your Path. Build Your Future."
 * breaks cleanly at its own punctuation and fits the measure at every size.
 */
@media (max-width: 575px) {
	.about__headline {
		font-size: 24px;
	}
}
