/**
 * Our Story — remaster.
 *
 * Same identity as Home (tlm-vibrant.css tokens, ridge edges, buttons):
 * one colour chapter per section, each separated by the volcano ridge in the
 * colour of the section below it. Photos always keep their own proportions
 * (no object-fit: cover, no zoom), so faces and scenes are never cropped.
 * Loaded only on the Our Story page, after tlm-vibrant.
 */
/* Blocksy pads its content wrapper by 60px; the closing band should meet the footer. */
body:has(.tls) main.site-main > .ct-container-full { padding-block: 0 !important; }

/* The footer keeps a 96px top margin for its ridge; drop it so the closing band shows through the ridge. */
body:has(.tls) .tlm-footer { margin-top: 0; }

.tls {
	--tls-edge: clamp(64px, 9vw, 130px);
	--tls-pad: clamp(3.5rem, 7vw, 6rem);
	--tls-ink: var(--vb-ink, #1B1230);
	color: var(--tls-ink);
}

.tls > section {
	position: relative;
	padding-block: var(--tls-pad) calc(var(--tls-edge) + clamp(2rem, 4vw, 3rem));
}

.tls > section.vb-edge { --vb-edge-h: var(--tls-edge); }

.tls-wrap {
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: var(--tlm-section-px, 1.5rem);
}

.tls-wrap--text { max-width: 52rem; }

.tls h1,
.tls h2,
.tls h3 {
	font-family: var(--tlm-font-display);
	font-variation-settings: "SOFT" 100, "WONK" 1;
	font-weight: 750;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.tls p { text-wrap: pretty; }

.tls figure { margin: 0; }
.tls img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------------
 * Hero: the founders' photograph, shown whole, with the title on it.
 * (Phones show the photo whole, then the text below it.)
 * ------------------------------------------------------------------ */
.tls-hero {
	display: flex;
	align-items: flex-end;
	min-height: clamp(640px, 100svh, 960px);
	background: var(--vb-night);
	color: #fff;
	padding-block: calc(var(--tlm-v3-header-h, 72px) + 2rem) calc(var(--tls-edge) + 1.5rem) !important;
	overflow: hidden;
	isolation: isolate;
}

.tls-hero__photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

/* The same photo, blurred, fills whatever the whole photo does not reach. */
.tls-hero__photo::before {
	content: "";
	position: absolute;
	inset: -40px;
	background: var(--tls-photo) center / cover;
	filter: blur(36px) saturate(1.1);
	opacity: 0.85;
	z-index: 0;
}

/* The photo itself is never cropped or zoomed: it is shown whole, at its own proportions. */
.tls-hero__photo img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: 50% 50%;
}

.tls-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(27, 36, 64, 0.8) 0%, rgba(27, 36, 64, 0) 24%),
		linear-gradient(0deg, rgba(27, 36, 64, 0.92) 0%, rgba(27, 36, 64, 0.55) 34%, rgba(27, 36, 64, 0) 62%),
		linear-gradient(90deg, rgba(27, 36, 64, 0.45) 0%, rgba(27, 36, 64, 0) 50%);
}

.tls-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	width: 100%;
	max-width: var(--tlm-content-box, 1280px);
	margin-inline: auto;
	padding-inline: var(--tlm-section-px, 1.5rem);
}

.tls-hero__badge { margin-bottom: 1rem; }

.tls-hero h1 {
	margin: 0 0 0.5rem;
	font-size: clamp(3.8rem, 9vw, 7rem);
	line-height: 0.88;
	letter-spacing: -0.035em;
	color: #fff;
	text-shadow: 0 6px 40px rgba(27, 36, 64, 0.5);
}

.tls-hero__lede {
	max-width: 24ch;
	margin: 0;
	font-family: var(--tlm-font-display);
	font-variation-settings: "SOFT" 100, "WONK" 1;
	font-size: clamp(1.3rem, 2.4vw, 1.9rem);
	line-height: 1.25;
	color: #fff;
}

.tls-hero__text {
	max-width: 54ch;
	margin: 0.9rem 0 0;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.96);
}

.tls-hero__meta { display: grid; justify-items: start; gap: 1.1rem; max-width: 32rem; padding-bottom: 0.5rem; }

.tls-hero__who {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin: 0;
	padding-left: 1rem;
	border-left: 4px solid var(--vb-sun);
	line-height: 1.25;
}

.tls-hero__who strong { font-weight: 800; color: #fff; }
.tls-hero__who span { font-size: 0.95rem; color: rgba(255, 255, 255, 0.95); }

/* ------------------------------------------------------------------
 * Intro: one sentence, set large on paper
 * ------------------------------------------------------------------ */
.tls-intro { background: var(--vb-cream); }

.tls-intro__text {
	margin: 0 0 2rem;
	font-family: var(--tlm-font-display);
	font-variation-settings: "SOFT" 100, "WONK" 1;
	font-size: clamp(1.6rem, 3.3vw, 2.5rem);
	font-weight: 600;
	line-height: 1.28;
	color: var(--vb-night);
}

.tls-intro__cta { margin: 0; }

/* ------------------------------------------------------------------
 * Mission: sun band, three values as a hairline-divided list
 * ------------------------------------------------------------------ */
.tls-mission { background: linear-gradient(175deg, var(--vb-sun) 0%, #FBB547 45%, var(--vb-tangerine) 100%); }

.tls-mission__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }

.tls-mission__head h2 {
	margin: 0 0 1.25rem;
	font-size: clamp(2.2rem, 5vw, 4rem);
	line-height: 1.02;
	color: var(--vb-night);
}

.tls-mission__head p { margin: 0; font-size: 1.15rem; line-height: 1.7; }

.tls-values { margin: 0; padding: 0; list-style: none; }

.tls-values__row {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 0.5rem clamp(1.5rem, 5vw, 4rem);
	align-items: baseline;
	margin: 0;
	padding: 1.6rem 0;
	border-top: 1.5px solid rgba(27, 18, 48, 0.32);
}

.tls-values__row:last-child { border-bottom: 1.5px solid rgba(27, 18, 48, 0.32); }

.tls-values__row h3 {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	line-height: 1.1;
	color: var(--vb-night);
}

.tls-values__row h3::before {
	content: "";
	flex: none;
	width: 0.9rem;
	height: 0.9rem;
	border-radius: 50%;
	background: var(--tls-dot, var(--vb-coral));
}

.tls-values__row--coral { --tls-dot: var(--vb-coral); }
.tls-values__row--lagoon { --tls-dot: var(--vb-lagoon); }
.tls-values__row--leaf { --tls-dot: var(--vb-leaf); }

.tls-values__row p { margin: 0; max-width: 46ch; font-size: 1.15rem; line-height: 1.65; }

/* ------------------------------------------------------------------
 * Hosts: the long story on white, two photos beside it on colour mats
 * ------------------------------------------------------------------ */
.tls-hosts { background: #fff; }

.tls-hosts__head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

.tls-hosts__head h2 {
	margin: 0 0 1rem;
	font-size: clamp(2.4rem, 5.6vw, 4.4rem);
	line-height: 1;
	color: var(--vb-plum);
}

.tls-hosts__hello {
	margin: 0;
	font-family: var(--tlm-font-display);
	font-variation-settings: "SOFT" 100, "WONK" 1;
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	font-weight: 600;
	line-height: 1.25;
	color: var(--vb-berry);
}

.tls-hosts__body { display: block; }

.tls-hosts__row {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
	margin-bottom: clamp(1rem, 3vw, 2rem);
}

.tls-hosts__text { max-width: 38rem; }

.tls-hosts__text p {
	margin: 0 0 1.35em;
	font-size: 1.15rem;
	line-height: 1.75;
}

.tls-hosts__text .tls-hosts__lead {
	font-family: var(--tlm-font-display);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--vb-night);
}

.tls-hosts__text .tls-hosts__beat {
	margin-block: 1.6em;
	padding-left: 1.1rem;
	border-left: 5px solid var(--vb-coral);
	font-family: var(--tlm-font-display);
	font-variation-settings: "SOFT" 100, "WONK" 1;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--vb-plum);
}

.tls-hosts__text .tls-hosts__close {
	margin: 1.6em 0 0;
	font-family: var(--tlm-font-display);
	font-variation-settings: "SOFT" 100, "WONK" 1;
	font-size: clamp(1.35rem, 2.3vw, 1.7rem);
	font-weight: 600;
	line-height: 1.35;
	color: var(--vb-lagoon);
}

.tls-photo {
	padding: clamp(0.5rem, 1vw, 0.8rem) clamp(0.5rem, 1vw, 0.8rem) 0;
	border-radius: 22px;
	background: var(--vb-sun);
}

.tls-photo--aqua { background: var(--vb-aqua); }

.tls-photo img { border-radius: 14px; }

.tls-photo figcaption {
	padding: 0.75rem 0.4rem 0.9rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--vb-night);
}

/* ------------------------------------------------------------------
 * Early days: four photos in one row, no captions, none cropped.
 * ------------------------------------------------------------------ */
.tls-early {
	background: linear-gradient(175deg, var(--vb-night) 0%, #16365A 100%);
	color: #fff;
}

.tls-early__head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

.tls-early__head h2 {
	margin: 0 0 0.9rem;
	font-size: clamp(2.2rem, 5vw, 4rem);
	line-height: 1.02;
	color: #fff;
}

.tls-early__head p { margin: 0; font-size: 1.15rem; line-height: 1.6; color: rgba(255, 255, 255, 0.9); }

/* One row across the whole width. Each photo's share of the row equals its
   own width-to-height ratio, so all four come out the same height. */
.tls-early__strip {
	display: flex;
	gap: clamp(14px, 2vw, 28px);
	padding-block: 14px;
	width: 100%;
}

.tls-early__item {
	flex: var(--tls-grow, 1.5) 1 0;
	min-width: 0;
	margin: 0;
}

.tls-early__item img { border-radius: 14px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.55); }

/* Hover / keyboard focus: the photo lifts and the others step back. Nothing is cropped or zoomed. */
@media (prefers-reduced-motion: no-preference) {
	.tls-early__item { transition: translate 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, filter 0.4s ease; }
	.tls-early__item img { transition: box-shadow 0.4s ease; }

	.tls-early__item:hover,
	.tls-early__item:focus-within { translate: 0 -12px; }

	.tls-early__item:hover img,
	.tls-early__item:focus-within img { box-shadow: 0 26px 40px -16px rgba(0, 0, 0, 0.7); }

	.tls-early__strip:hover .tls-early__item:not(:hover),
	.tls-early__strip:focus-within .tls-early__item:not(:focus-within) { opacity: 0.62; filter: saturate(0.8); }
}

/* ------------------------------------------------------------------
 * Close
 * ------------------------------------------------------------------ */
.tls-close {
	background: var(--vb-sunset);
	color: #fff;
	text-align: center;
	padding-bottom: calc(clamp(4rem, 8vw, 6rem) + 96px) !important;
}

.tls-close__text {
	margin: 0 0 2rem;
	font-family: var(--tlm-font-display);
	font-variation-settings: "SOFT" 100, "WONK" 1;
	font-size: clamp(1.8rem, 4.2vw, 3.2rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: #fff;
	text-wrap: balance;
}

.tls-close p:last-child { margin: 0; }

/* ------------------------------------------------------------------
 * Entrance (the shared .vb-anim class only exists without reduced motion)
 * ------------------------------------------------------------------ */
.vb-anim .tls-hero h1 .vb-word {
	display: inline-block;
	overflow: hidden;
	vertical-align: bottom;
	padding-bottom: 0.08em;
}

.vb-anim .tls-hero h1 .vb-word > span {
	display: inline-block;
	transform: translateY(110%);
	animation: vb-word-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	animation-delay: calc(var(--vb-w, 0) * 110ms + 250ms);
}

.vb-anim .tls-hero__badge,
.vb-anim .tls-hero__lede,
.vb-anim .tls-hero__meta {
	opacity: 0;
	transform: translateY(18px);
	animation: vb-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.vb-anim .tls-hero__badge { animation-delay: 0.05s; }
.vb-anim .tls-hero__lede { animation-delay: 0.8s; }
.vb-anim .tls-hero__meta { animation-delay: 1s; }

@media (prefers-reduced-motion: no-preference) {
	.vb-anim .tls-hero__photo img { animation: vb-drift 14s ease-out both; }
}

/* ------------------------------------------------------------------
 * Narrow screens
 * ------------------------------------------------------------------ */
@media (max-width: 900px) {
	.tls-hosts__row { grid-template-columns: minmax(0, 1fr); }

	.tls-hero { display: block; min-height: 0; background: var(--vb-lagoon-sky); padding-top: var(--tlm-v3-header-h, 72px) !important; }
	.tls-hero__photo { position: static; margin: 0 0 1.5rem; overflow: visible; }
	.tls-hero__photo::before { display: none; }
	.tls-hero__photo img { height: auto; object-fit: initial; }
	.tls-hero__shade { display: none; }
	.tls-hero__lede { max-width: 30ch; }
	.tls-hero__meta { margin-top: 1.5rem; }

		/* Phones: the same row, swiped sideways at a fixed height. */
	.tls-early__strip { overflow-x: auto; scroll-snap-type: x proximity; padding-inline: var(--tlm-section-px, 1.25rem); -webkit-overflow-scrolling: touch; }
	.tls-early__item { flex: none; height: clamp(200px, 55vw, 300px); scroll-snap-align: center; }
	.tls-early__item img { width: auto; height: 100%; }

}

@media (max-width: 700px) {
	.tls-values__row { grid-template-columns: minmax(0, 1fr); }
	.tls-hosts__text p { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
	.tls * { animation: none !important; transition: none !important; }
}

/* "Where it all began": the row sits inside the page margins, not against the screen edges */
.tls-early__strip {
	box-sizing: border-box;
	max-width: var(--tlm-content-box, 1280px);
	margin-inline: auto;
	padding-inline: var(--tlm-section-px, 1.5rem);
}

/* wider row: it keeps a clear margin (3vw each side) but uses most of the screen, so the photos stay large */
.tls-early__strip {
	max-width: min(1720px, 100%);
	padding-inline: max(1.25rem, 3vw);
}


/* phones: keep the floating WhatsApp button clear of the founders' captions */
@media (max-width: 700px) {
	.tls-hero__who { padding-right: 3.6rem; }
}
