/* ==========================================================================
   Leap Dynamics — home page
   Kylan Walters, 2026

   Only the home page loads this. It holds the sections that exist nowhere
   else: the hero carousel, the value tiles, the fleet tab panel, the cargo
   rail, the network band and the partner logo walls.

   Everything shared — tokens, header, drawer, footer, typography, buttons —
   lives in css/leap-core.css, which loads first. This file was split out of
   the original css/leap-landing.css when the rest of the site adopted the
   same chrome; structure and layout still follow the Atlas Air homepage, with
   Leap's palette and wordmark.
   ========================================================================== */

/* Home headings are the big centred UltraLight cut, distinct from the
   left-aligned interior-page .ld-h2 in the core sheet. */
.ld-home .ld-h2 {
	font-size: 40px;
	text-align: center;
	color: var(--ink);
	margin: 0 0 44px;
}
.ld-home .ld-section { padding: 78px 0; }
.ld-h2--sub { margin-top: 70px; font-size: 30px; }

/* ---- About band ---------------------------------------------------------- */

.ld-about-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 44px;
	max-width: 1060px;
	margin: 0 auto;
}
.ld-about-grid p {
	margin: 0;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.7;
	color: #4a5160;
}
.ld-about-grid strong { font-weight: 600; color: var(--navy); }
.ld-about-cta {
	display: flex;
	justify-content: center;
	gap: 44px;
	flex-wrap: wrap;
	margin: 40px 0 0;
	color: var(--navy);
}

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

.ld-hero {
	position: relative;
	height: 640px;
	overflow: hidden;
	background: var(--navy-deep);
}

.ld-slide {
	position: absolute;
	inset: 0;
	display: flex;
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s ease, visibility .8s;
}
.ld-slide.is-active { opacity: 1; visibility: visible; }

/* One full-bleed image per slide (was a 55/45 photo|render split, which read as
   "two images side by side"). The livery render half (.ld-slide-sky) is hidden;
   the liveries still headline the Fleet page. */
.ld-slide-photo {
	width: 100%;
	background-size: cover;
	background-position: center;
}
.ld-slide-sky {
	display: none;
}
/* The livery renders carry their own patch of sky. Feather the top and bottom
   edges so the render dissolves into the panel gradient instead of showing a
   hard seam where its sky meets ours. */
.ld-slide-sky img {
	width: 122%;
	max-width: none;
	transform: translateY(-6%);
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%, #000 74%, transparent 100%);
	        mask-image: linear-gradient(180deg, transparent 0, #000 26%, #000 74%, transparent 100%);
}

/* Staggered caption pair: light box over the photo, navy box over the sky. */
.ld-captions {
	position: absolute;
	left: 7%;
	right: auto;
	bottom: 80px;
	max-width: 780px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	pointer-events: none;
}
.ld-cap-light,
.ld-cap-dark {
	display: block;
	pointer-events: auto;
	font-weight: 200;
	line-height: 1.16;
	transition: color .2s ease;
}
.ld-captions:hover .ld-cap-dark { color: var(--red); }
.ld-cap-light {
	background: #fff;
	color: var(--navy);
	text-align: left;
	font-size: 38px;
	padding: 20px 40px;
}
.ld-cap-dark {
	background: var(--navy);
	color: #fff;
	font-size: 50px;
	padding: 16px 40px 20px;
}

.ld-dots {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 16px;
	z-index: 5;
}
.ld-dots button {
	width: 11px; height: 11px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid #fff;
	background: transparent;
	cursor: pointer;
	transition: background .2s ease;
}
.ld-dots button.is-active { background: #fff; }

.ld-hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 46px; height: 46px;
	border: none;
	background: rgba(16,30,64,.55);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background .2s ease;
}
.ld-hero-arrow:hover { background: var(--red); }
.ld-hero-arrow.prev { left: 46px; }
.ld-hero-arrow.next { right: 46px; }

/* ==========================================================================
   Value proposition tiles
   ========================================================================== */

.ld-value-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ld-value-tile {
	position: relative;
	min-height: 400px;
	overflow: hidden;
	background: var(--navy);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ld-value-tile .bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1);
	transition: transform .5s ease;
}
.ld-value-tile::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(16,30,64,.35) 0%, rgba(16,30,64,.72) 100%);
	transition: background .35s ease;
}
.ld-value-tile:hover .bg { transform: scale(1.06); }
.ld-value-tile:hover::after { background: rgba(16,30,64,.9); }

.ld-value-tile h3 {
	position: relative;
	z-index: 2;
	margin: 0;
	font-size: 30px;
	font-weight: 300;
	text-align: center;
	padding: 0 18px;
	transition: transform .35s ease;
}
.ld-value-tile:hover h3 { transform: translateY(-88px); }

.ld-value-hover {
	position: absolute;
	z-index: 3;
	left: 0; right: 0;
	bottom: 34px;
	padding: 0 28px;
	text-align: center;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .35s ease, transform .35s ease;
}
.ld-value-tile:hover .ld-value-hover { opacity: 1; transform: translateY(0); }
.ld-value-hover p {
	margin: 0 0 20px;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
	color: rgba(255,255,255,.92);
}
.ld-value-hover .links {
	display: flex;
	justify-content: center;
	gap: 26px;
	flex-wrap: wrap;
}
.ld-value-hover .ld-arrowlink { color: #fff; }

/* ==========================================================================
   Fleet
   ========================================================================== */

.ld-fleet-tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin: 0 0 34px;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--line);
}
.ld-fleet-tabs button {
	font: inherit;
	font-size: 17px;
	font-weight: 300;
	letter-spacing: .5px;
	color: var(--muted);
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	padding: 12px 26px;
	margin-bottom: -1px;
	cursor: pointer;
	transition: color .2s ease, border-color .2s ease;
}
.ld-fleet-tabs button:hover { color: var(--ink); }
.ld-fleet-tabs button.is-active {
	color: var(--navy);
	border-bottom-color: var(--red);
}

.ld-fleet-panel { display: none; }
.ld-fleet-panel.is-active { display: grid; }
.ld-fleet-panel {
	grid-template-columns: 1fr 320px;
	gap: 50px;
	align-items: center;
}
.ld-fleet-art {
	background: linear-gradient(180deg, #eef3f8 0%, #dde7f1 100%);
	padding: 40px;
	display: grid;
	place-items: center;
	min-height: 300px;
}
/* The livery art is small source PNG line work — cap it so it stays crisp.
   These PNGs ship with an opaque white background rather than transparency,
   so multiply it away against the tinted panel. */
.ld-fleet-art img {
	width: 100%;
	max-width: 620px;
	mix-blend-mode: multiply;
}
.ld-fleet-meta h3 {
	margin: 0 0 6px;
	font-size: 34px;
	font-weight: 200;
	color: var(--navy);
}
.ld-fleet-meta .type {
	font-size: 14px;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--red);
	margin: 0 0 20px;
}
.ld-fleet-meta p { margin: 0 0 22px; color: var(--muted); font-weight: 300; }
.ld-fleet-specs {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	border-top: 1px solid var(--line);
}
.ld-fleet-specs li {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
}
.ld-fleet-specs .k { color: var(--muted); font-weight: 300; }
.ld-fleet-specs .v { font-weight: 500; color: var(--navy); }

/* ==========================================================================
   Cargo / industries rail
   ========================================================================== */

.ld-rail-wrap { position: relative; }
.ld-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 26px) / 4);
	gap: 26px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 8px;
	scrollbar-width: none;
}
.ld-rail::-webkit-scrollbar { display: none; }

.ld-card { scroll-snap-align: start; background: #fff; }
/* Most of these are white-background product cutouts rather than photography,
   so contain-and-centre keeps the item whole instead of cropping into it. */
.ld-card .shot {
	height: 240px;
	background-color: #fff;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	border: 1px solid var(--line);
	position: relative;
	overflow: hidden;
	transition: border-color .25s ease;
}
.ld-card:hover .shot { border-color: var(--red); }
.ld-card h3 {
	margin: 20px 0 8px;
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--navy);
}
.ld-card p {
	margin: 0;
	font-size: 15px;
	font-weight: 300;
	color: var(--muted);
	line-height: 1.55;
}

.ld-rail-arrow {
	position: absolute;
	top: 120px;
	transform: translateY(-50%);
	width: 44px; height: 44px;
	border: none;
	background: var(--navy);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	z-index: 4;
	transition: background .2s ease;
}
.ld-rail-arrow:hover { background: var(--red); }
.ld-rail-arrow.prev { left: -22px; }
.ld-rail-arrow.next { right: -22px; }

/* ==========================================================================
   Network band
   ========================================================================== */

.ld-network {
	background: var(--navy);
	color: #fff;
	padding: 78px 0 86px;
	position: relative;
	overflow: hidden;
}
.ld-home .ld-network .ld-h2 { color: #fff; }
.ld-network-arcs {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: .22;
	pointer-events: none;
}
.ld-network .ld-shell { position: relative; z-index: 2; }

.ld-network-lede {
	text-align: center;
	max-width: 720px;
	margin: -26px auto 46px;
	font-weight: 300;
	color: rgba(255,255,255,.75);
}

.ld-regions {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 34px;
}
.ld-region h3 {
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255,255,255,.28);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--red);
}
.ld-codes {
	font-family: 'Barlow Semi Condensed', 'Barlow', sans-serif;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2px 10px;
	font-size: 15px;
	letter-spacing: .6px;
	color: rgba(255,255,255,.82);
}
.ld-codes span { white-space: nowrap; }

.ld-network-foot {
	margin-top: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 34px;
	flex-wrap: wrap;
	color: rgba(255,255,255,.7);
	font-weight: 300;
}
.ld-network-foot .ld-arrowlink { color: #fff; }

/* Stat strip. Also used on the public network page, which loads this sheet. */
.ld-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2px;
	background: rgba(255,255,255,.16);
	margin: 0 0 52px;
}
.ld-stat {
	background: var(--navy);
	padding: 26px 20px;
	text-align: center;
}
.ld-stat .n {
	font-size: 44px;
	font-weight: 200;
	line-height: 1;
	color: #fff;
}
.ld-stat .l {
	margin-top: 8px;
	font-size: 13px;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: rgba(255,255,255,.6);
}

/* ==========================================================================
   Partner logo walls
   ========================================================================== */

.ld-partners {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 40px 52px;
}
.ld-partners img {
	max-height: 46px;
	width: auto;
	filter: grayscale(1);
	opacity: .55;
	transition: filter .25s ease, opacity .25s ease;
}
.ld-partners img:hover { filter: grayscale(0); opacity: 1; }

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

@media (max-width: 1180px) {
	.ld-regions { grid-template-columns: repeat(3, 1fr); }
	.ld-rail { grid-auto-columns: calc((100% - 2 * 26px) / 3); }
	.ld-value-grid { grid-template-columns: repeat(2, 1fr); }
	.ld-cap-light { font-size: 30px; }
	.ld-cap-dark { font-size: 38px; }
}

@media (max-width: 1000px) {
	.ld-home .ld-h2 { font-size: 28px; margin-bottom: 30px; }
	.ld-home .ld-section { padding: 48px 0; }

	.ld-about-grid { grid-template-columns: 1fr; gap: 22px; }
	.ld-about-grid p { font-size: 16px; }
	.ld-about-cta { gap: 22px; }

	/* The hero stops being a two-panel composition and becomes a stack:
	   photo, livery, then the captions as full-width blocks. */
	.ld-hero { height: auto; }
	.ld-slide {
		position: relative;
		inset: auto;
		display: none;
		flex-direction: column;
		opacity: 1;
		visibility: visible;
	}
	.ld-slide.is-active { display: flex; }
	.ld-slide-photo { width: 100%; height: 230px; }
	.ld-slide-sky { width: 100%; height: 210px; }
	.ld-captions {
		position: static;
		flex-direction: column;
		align-items: stretch;
	}
	.ld-cap-light,
	.ld-cap-dark {
		width: 100%;
		margin: 0;
		text-align: left;
		padding: 18px 20px;
		font-size: 24px;
	}
	.ld-cap-dark { font-size: 28px; }
	/* Stack the controls over the photo panel rather than down the left edge,
	   where they collide with each other once the slide goes vertical. */
	.ld-dots {
		flex-direction: row;
		left: 50%;
		top: 198px;
		bottom: auto;
		transform: translateX(-50%);
		gap: 12px;
	}
	.ld-hero-arrow { top: 115px; width: 40px; height: 40px; }
	.ld-hero-arrow.prev { left: 0; }
	.ld-hero-arrow.next { right: 0; }

	/* Hover reveals don't exist on touch — show the tile copy outright. */
	.ld-value-tile { min-height: 290px; flex-direction: column; justify-content: center; padding: 24px 0; }
	.ld-value-tile h3 { font-size: 23px; transform: none !important; }
	.ld-value-hover { position: static; opacity: 1; transform: none; padding: 14px 20px 0; }
	.ld-value-tile::after { background: rgba(16,30,64,.78); }

	.ld-fleet-panel { grid-template-columns: 1fr; gap: 26px; }
	.ld-fleet-tabs button { padding: 11px 18px; font-size: 16px; }

	.ld-rail { grid-auto-columns: 76%; }
	.ld-rail-arrow.prev { left: 0; }
	.ld-rail-arrow.next { right: 0; }

	.ld-network { padding: 48px 0 54px; }
	.ld-network-lede { margin: -14px auto 32px; }
	.ld-regions { grid-template-columns: repeat(2, 1fr); gap: 24px; }
	.ld-stats { grid-template-columns: repeat(2, 1fr); margin-bottom: 34px; }
	.ld-stat { padding: 18px 14px; }
	.ld-stat .n { font-size: 34px; }

	.ld-partners { gap: 28px 34px; }
	.ld-partners img { max-height: 34px; }
}

@media (max-width: 620px) {
	.ld-value-grid { grid-template-columns: 1fr; }
	.ld-rail { grid-auto-columns: 86%; }
	.ld-regions { grid-template-columns: 1fr; }
	.ld-cap-light, .ld-cap-dark { font-size: 21px; }
	.ld-cap-dark { font-size: 24px; }
	.ld-h2--sub { margin-top: 44px; font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.ld-slide, .ld-value-tile .bg, .ld-value-tile h3, .ld-value-hover { transition: none; }
	.ld-rail { scroll-behavior: auto; }
}
