/* Home page sections. Loaded after ib-base.css, which carries the tokens,
   buttons, nav and footer this shares with the other redesigned pages. */

/* HERO */
.ib-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #fff;
	overflow: hidden;
}

.ib-hero__media {
	position: absolute;
	top: clamp(10px, 1.4vw, 20px);
	bottom: clamp(10px, 1.4vw, 20px);
	left: 0;
	right: 0;
	width: min(100% - clamp(20px, 2.8vw, 40px), 1400px);
	margin: 0 auto;
	border-radius: var(--ib-radius-lg);
	overflow: hidden;
	/* Stands in for the backdrop until a header image is uploaded. */
	background: radial-gradient(120% 90% at 50% 100%, #bfe4f2 0%, #dceef6 55%, #eef7fb 100%);
	z-index: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Bleed past the edges so the blur has pixels to sample instead of fading out. */
.ib-hero__backdrop {
	position: absolute;
	inset: -14px;
	width: calc(100% + 28px);
	height: calc(100% + 28px);
	max-width: none;
	object-fit: cover;
	filter: blur(5px);
	transform: scale(1.03);
}

.ib-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom,
		#ffffff 0%,
		#ffffff 16%,
		rgba(255, 255, 255, 0.94) 28%,
		rgba(255, 255, 255, 0.7) 42%,
		rgba(255, 255, 255, 0.34) 56%,
		rgba(255, 255, 255, 0) 74%);
}

.ib-hero__globe {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(60vh, 56vw);
	max-width: 660px;
}

.ib-hero__spacer {
	height: 1px;
}

.ib-hero__body {
	position: relative;
	z-index: 30;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 110px var(--ib-gutter) clamp(28px, 3vw, 44px);
	background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0.86) 46%, rgba(255, 255, 255, 0) 100%);
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	/* Lets drags land on the globe behind the fade; children opt back in. */
	pointer-events: none;
}

.ib-hero__copy {
	flex: 1 1 520px;
	max-width: 860px;
}

.ib-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	font-size: 13px;
	color: var(--ib-muted);
}

.ib-hero__eyebrow span:first-child {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--ib-ink);
	display: block;
	flex: none;
}

.ib-hero__heading {
	position: relative;
	z-index: 1;
	font-weight: 300;
	font-size: clamp(2rem, 6vw, 4.5rem);
	letter-spacing: -0.03em;
	line-height: 1;
	margin: 0 0 26px;
	text-wrap: balance;
}

.ib-hero__actions,
.ib-hero__chips {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	pointer-events: auto;
}

.ib-hero__chips {
	gap: 8px;
}

.ib-chip {
	background: #fff;
	border: 1px solid var(--ib-line);
	border-radius: var(--ib-radius);
	padding: 8px 15px;
	font-size: 11px;
	font-weight: 500;
}

.ib-chip--muted {
	background: var(--ib-surface);
	border-color: transparent;
	color: rgba(10, 10, 10, 0.5);
}

/* PLATFORM */
.ib-platform {
	background: #fff;
}

.ib-platform .ib-shell {
	padding-top: clamp(64px, 8vw, 116px);
	padding-bottom: clamp(64px, 8vw, 116px);
}

.ib-platform__intro {
	max-width: 680px;
	margin-bottom: 44px;
}

.ib-platform__intro p {
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--ib-muted);
	margin: 16px 0 0;
	max-width: 560px;
	text-wrap: pretty;
}

.ib-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 14px;
	counter-reset: ib-feature;
}

.ib-feature {
	background: var(--ib-surface);
	border-radius: var(--ib-radius-lg);
	padding: 26px;
	counter-increment: ib-feature;
}

/* Numbered by the cascade, so reordering blocks in the CMS renumbers them. */
.ib-feature__num {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.4px;
	color: var(--ib-faint);
	margin-bottom: 44px;
}

.ib-feature__num::before {
	content: counter(ib-feature, decimal-leading-zero);
}

.ib-feature h3 {
	font-size: 16px;
	font-weight: 500;
	margin: 0 0 8px;
}

.ib-feature p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ib-muted);
	margin: 0;
}

/* DESTINATIONS */
.ib-destinations {
	background: #fff;
}

.ib-destinations__head {
	display: flex;
	gap: 30px;
	align-items: flex-end;
	flex-wrap: wrap;
	margin-bottom: 26px;
}

.ib-destinations__head > div {
	flex: 1 1 420px;
}

.ib-destinations__head p {
	flex: 0 1 340px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--ib-muted);
	margin: 0;
}

.ib-destinations__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
	gap: 14px;
	padding-top: 18px;
	padding-bottom: clamp(64px, 8vw, 110px);
}

/* Cards land in a diagonal rather than a wall. Tied to a row of three, which
   is what the grid settles on at the common desktop widths. */
.ib-destinations__grid > :nth-child(3n + 2) { --ib-delay: .05s; }
.ib-destinations__grid > :nth-child(3n + 3) { --ib-delay: .1s; }

/* Set by the globe when a pin sends you here. */
.ib-card.is-flagged {
	box-shadow: 0 0 0 2px #29ABE2, 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* ABOUT */
.ib-about .ib-shell {
	padding-bottom: clamp(64px, 8vw, 110px);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 40px;
	align-items: start;
}

.ib-about__body {
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--ib-muted);
	text-wrap: pretty;
	margin: 22px 0 26px;
}

.ib-about__body p {
	margin: 0 0 14px;
}

.ib-about__body p:last-child {
	margin-bottom: 0;
}

.ib-about__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.ib-about__aside {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ib-about__figure {
	border-radius: var(--ib-radius-lg);
	overflow: hidden;
	background: #eaf2f6;
}

.ib-about__figure img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}

.ib-highlight {
	background: #eaf6fc;
	color: #333;
	border-radius: var(--ib-radius-lg);
	padding: 30px;
}

.ib-highlight h3 {
	font-size: 22px;
	font-weight: 400;
	letter-spacing: -0.02em;
	margin: 0 0 10px;
	color: #333;
}

.ib-highlight__text {
	font-size: 14.5px;
	line-height: 1.65;
	color: rgba(51, 51, 51, 0.7);
	margin: 0 0 20px;
}

.ib-highlight__text p {
	margin: 0 0 10px;
}

.ib-highlight__text p:last-child {
	margin-bottom: 0;
}

.ib-highlight .ib-btn {
	padding: 11px 20px;
	font-size: 12.5px;
}

@media (max-width: 640px) {
	.ib-hero__body {
		padding-top: 92px;
	}

	.ib-hero__chips {
		display: none;
	}
}
