/*
 * TIS Hero. Desktop: Figma frame 1672 x 625 (starting 7px under the header).
 * Values are Figma px x --tis-u; tablet (<=1024) and mobile (<=767) stack the layout.
 */

.tis-hero {
	position: relative;
	z-index: 1;
	margin-top: calc(-7 * var(--tis-u));
	background: var(--tis-white);
	overflow: clip;
}

.tis-hero__inner {
	position: relative;
	display: flex;
	align-items: flex-start;
	min-height: calc(625 * var(--tis-u));
	padding-right: 0;
	padding-left: calc(66 * var(--tis-u));
}

/* Text column */
.tis-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: calc(780 * var(--tis-u));
}

.tis-hero__eyebrow {
	margin-bottom: calc(4.6 * var(--tis-u));
	margin-left: calc(1 * var(--tis-u));
}

.tis-hero__title {
	margin: 0;
	font-family: var(--tis-font-display);
	font-weight: 900;
	text-transform: none;
}

.tis-hero__title-1 {
	display: block;
	font-size: max(34px, calc(70 * var(--tis-u)));
	line-height: 1.03;
	color: var(--tis-primary);
}

.tis-hero__title-2 {
	display: block;
	margin-top: calc(-4 * var(--tis-u));
	margin-left: calc(1 * var(--tis-u));
	font-size: max(26px, calc(55 * var(--tis-u)));
	line-height: 1.1;
	color: var(--tis-ink);
}

.tis-hero__text {
	max-width: calc(700 * var(--tis-u));
	margin-top: calc(14.5 * var(--tis-u));
	margin-left: calc(3 * var(--tis-u));
	font-size: max(15px, calc(19 * var(--tis-u)));
	font-weight: 400;
	line-height: 1.4;
	color: var(--tis-ink);
}

.tis-hero__text p { margin: 0 0 0.6em; }
.tis-hero__text p:last-child { margin-bottom: 0; }

.tis-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: calc(20 * var(--tis-u));
	margin-top: var(--tis-gap);
	margin-left: calc(3 * var(--tis-u));
}

.tis-hero__btn--primary {
	min-width: calc(331 * var(--tis-u));
	min-height: calc(58 * var(--tis-u));
	font-size: max(15px, calc(20 * var(--tis-u)));
}

.tis-hero__btn--secondary {
	min-width: calc(234 * var(--tis-u));
	min-height: calc(58 * var(--tis-u));
	font-size: max(15px, calc(20 * var(--tis-u)));
}

/* Benefit badges */
.tis-hero__benefits {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: calc(32 * var(--tis-u));
	row-gap: calc(16 * var(--tis-u));
	margin-top: var(--tis-gap);
	margin-left: calc(3 * var(--tis-u));
}

.tis-hero__benefit {
	display: flex;
	align-items: center;
	gap: calc(8 * var(--tis-u));
}

.tis-hero__benefit-icon {
	width: max(36px, calc(46 * var(--tis-u)));
	height: max(36px, calc(46 * var(--tis-u)));
	color: var(--tis-primary);
}

.tis-hero__benefit-icon svg {
	width: max(20px, calc(27 * var(--tis-u)));
	height: max(20px, calc(27 * var(--tis-u)));
}

.tis-hero__benefit-text {
	font-size: max(11px, calc(12 * var(--tis-u)));
	font-weight: 500;
	line-height: 1.4;
	color: var(--tis-ink);
}

/* Photograph: bleeds off the right edge and dissolves into the page on its left and bottom (soft-edge mask). */
.tis-hero__media {
	--fl: 38%;
	--fb: 8%;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	width: calc(1000 * var(--tis-u));
	overflow: hidden;
}

.tis-hero__media .tis-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Fade from the page colour into the photo (Figma: 290 x 565, white -> transparent) */
.tis-hero__fade {
	--tis-fade: #ffffff;
	position: absolute;
	top: 0;
	left: calc(620 * var(--tis-u));
	z-index: 1;
	width: calc(290 * var(--tis-u));
	height: calc(565 * var(--tis-u));
	background: linear-gradient(90deg, var(--tis-fade) 0%, transparent 100%);
	pointer-events: none;
}

/* ---------------------------------------------------------------------
 * Tablet
 * ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.tis-hero { margin-top: 0; }

	.tis-hero__inner {
		flex-direction: column;
		min-height: 0;
		padding-left: var(--tis-gutter); padding-right: var(--tis-gutter);
	}

	.tis-hero__content { max-width: 100%; padding: 8px 0 36px; }
	.tis-hero__eyebrow { margin: 0 0 12px; }
	.tis-hero__title-1 { font-size: 54px; line-height: 1.05; }
	.tis-hero__title-2 { margin: 0; font-size: 42px; line-height: 1.12; }
	.tis-hero__text { max-width: 640px; margin: 22px 0 0; font-size: 18px; }
	.tis-hero__actions { margin: var(--tis-gap) 0 0; gap: 16px; }
	.tis-hero__btn--primary,
	.tis-hero__btn--secondary { min-width: 0; min-height: 54px; font-size: 17px; }
	.tis-hero__btn--primary { padding: 0 34px; }
	.tis-hero__btn--secondary { padding: 0 34px; }

	.tis-hero__benefits {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 20px;
		row-gap: 18px;
		margin: var(--tis-gap) 0 0;
	}

	.tis-hero__benefit-icon { width: 46px; height: 46px; }
	.tis-hero__benefit-icon svg { width: 26px; height: 26px; }
	.tis-hero__benefit-text { font-size: 13px; }

	.tis-hero__media {
		--fl: 0%;
		--ft: 26%;
		--fb: 0%;
		position: relative;
		width: calc(100% + 2 * var(--tis-gutter));
		height: clamp(300px, 52vw, 460px);
		margin: 0 calc(-1 * var(--tis-gutter));
	}

	.tis-hero__fade { display: none; }
}

/* ---------------------------------------------------------------------
 * Mobile
 * ------------------------------------------------------------------ */
@media (max-width: 767px) {
	.tis-hero__content { padding-bottom: 28px; }
	.tis-hero__title-1 { font-size: 35px; }
	.tis-hero__title-2 { font-size: 26px; }
	.tis-hero__text { margin-top: 18px; font-size: 16px; }
	.tis-hero__actions { flex-direction: column; align-items: stretch; margin-top: var(--tis-gap); gap: 12px; }
	.tis-hero__btn--primary,
	.tis-hero__btn--secondary { width: 100%; min-height: 50px; font-size: 16px; }
	.tis-hero__benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--tis-gap); }
	.tis-hero__benefit-text { font-size: 12.5px; }
	.tis-hero__media { height: clamp(220px, 62vw, 320px); }
}
