/*
 * Home — "Home" frame #1075:1038 (1920 x 3375).
 * Vertical spacing is the comp's gap between the visible edges of adjacent sections;
 * frames in the file overlap their own padding, so a frame's padding is not the gap.
 */

/* ------------------------------------------------------------------- hero */
/* #1097:1859: 1880 wide at x 20, two 930x558 cards 20px apart, y 144 (6px under the header) */
.rd-hero {
	width: calc(100% - 40px);
	max-width: 1880px;
	margin: 6px auto 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.rd-hero__card {
	position: relative;
	min-height: 558px;
	border-radius: 30px;
	overflow: hidden;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
}
/*
 * The card is a flat colour with the photograph laid on it — no blend mode. The comp's
 * treatment (the photo modulating the lightness of a saturated blue) is measured off the
 * 2x render and baked into the exported JPEG by scripts/export_home_hero.py, so the
 * browser composites nothing and a highlight cannot brighten the card under the text.
 * The two card colours are sampled from the comp beside the photograph.
 */
.rd-hero__card--hire { background-color: rgb(15, 30, 157); }
.rd-hero__card--owner { background-color: rgb(37, 40, 41); }
/*
 * #1075:1113 cropTransform [[1.159,0,-0.171],[0,1,0]]: the region is wider than the
 * source, so the photograph covers only the right 86% of the card and the fill shows
 * through beside it. Confirmed against the render: best fit x 138, 800 wide, full height.
 */
.rd-hero__photo {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 14.84%;
	width: 86.02% !important;
	height: 100% !important;
	/* cover, not fill: at the design width the box already has the photo's own proportions,
	   so nothing changes there; at every other width fill squashed the people in it */
	object-fit: cover;
	object-position: 60% 50%;
	z-index: 0;
}
/* #1075:1121: its region sits wholly inside the source, so the photo covers the card */
.rd-hero__card--owner .rd-hero__photo { left: 0; width: 100% !important; object-position: 75% 50%; }
/* #1075:1121's gradient, rgba(47,57,56) solid to 13% and gone by 43%: the dark field behind the text */
.rd-hero__card--owner::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(68deg, rgba(47, 57, 56, 1) 0%, rgba(47, 57, 56, 1) 13%, rgba(47, 57, 56, 0) 43%);
}

/* #1098:2075 / #1098:2074: the faceted overlay, flush with the card's right edge */
.rd-hero__facets {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 96.1%; /* 894 of 930 */
	z-index: 1;
	pointer-events: none;
}
.rd-hero__facets svg { width: 100%; height: 100%; }
/* #1075:1114: 640 wide, padding 50px 50px 100px, bottom-aligned, gap 30px, backdrop blur 8.55px */
.rd-hero__copy {
	position: relative;
	z-index: 2;
	width: 640px;
	max-width: 100%;
	padding: 50px 50px 100px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 30px;
	/* #1075:1114 carries backdropFilter blur(8.55px), but the frame has no fill and the
	   exported render shows the photo sharp behind the heading (faces in focus). A CSS
	   backdrop blur draws a visible frosted rectangle the comp does not have, so none. */
}
/* #1075:1115: Roboto 600 50px white */
.rd-hero__title {
	font-size: clamp(30px, 1.1rem + 2vw, 50px);
	line-height: 1.172;
	font-weight: 600;
	color: #fff;
	text-wrap: pretty;
}

/* -------------------------------------------------------------- GE banner */
/* #1075:1072: hero bottom 703 → banner 721; padding 20px 50px, gap 22px, 1px #E3E3E3 rule */
.rd-gebanner {
	margin-top: 18px;
	padding: 20px 50px;
	border-bottom: 1px solid var(--rd-rule);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
}
.rd-gebanner__mark { flex: none; }
.rd-gebanner__mark svg { width: 80px; height: 80px; }
/* #1075:1080: Roboto 600 30px #212121 */
.rd-gebanner__text {
	font-size: clamp(18px, .8rem + 1vw, 30px);
	line-height: 1.172;
	font-weight: 600;
	color: var(--rd-ink);
}

/* ------------------------------------------------ practice-area card row */
/* banner bottom 841 → heading 943; heading → cards 50px */
.rd-hpa { padding-top: 102px; }
.rd-hpa__title { margin-bottom: 50px; }
/* #1163:218: 530x327 on #3454D1, radius 20px, 20px apart */
.rd-slider--pa .rd-slider__slide { width: 530px; margin-right: 20px; }
.rd-hpacard__link {
	position: relative;
	display: block;
	height: 327px;
	border-radius: 20px;
	background: var(--rd-blue);
	overflow: hidden;
	text-decoration: none;
}
/* #1163:256: the photograph is 530x230 across the top of the card */
.rd-hpacard__photo {
	width: 100% !important;
	height: 230px !important;
	object-fit: cover;
	border-radius: 20px 20px 0 0;
}
/* #1165:288: the label row is 470 wide, 30px in from the card's edges, pinned to the bottom */
.rd-hpacard__foot {
	position: absolute;
	left: 30px;
	right: 30px;
	bottom: 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
/* #1163:219: Roboto 600 26px white */
.rd-hpacard__name { font-size: 26px; line-height: 1.172; font-weight: 600; color: #fff; }
.rd-hpacard__arrow { flex: none; width: 40px; height: 40px; transition: transform .2s; }
.rd-hpacard__arrow svg { width: 40px; height: 40px; }
.rd-hpacard__link:hover .rd-hpacard__arrow { transform: translateX(4px); }
.rd-hpacard__link:hover .rd-hpacard__photo { opacity: .9; }
.rd-hpacard__link:focus-visible { outline: 3px solid var(--rd-sky); outline-offset: 3px; }

/* ------------------------------------------------------------------ logos */
/* slider controls bottom 1469 → section top 1569 → heading 1669; the rows' bottom IS the
   testimonial section's top, which brings its own 100px, so no padding below the rows */
.rd-home .rd-logos { margin-top: 100px; padding: 100px 0 0; }
.rd-home .rd-logos__item { height: 138px; }
.rd-home .rd-logos__rows { position: relative; gap: 30px; }
/* #1075:1225: a full-bleed 1.5px white→#E3E3E3→white hairline 13px above the rows */
.rd-home .rd-logos__rows::before {
	content: "";
	position: absolute;
	top: -13px;
	left: 50%;
	width: 100vw;
	height: 1.5px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, #fff 0%, #E3E3E3 50%, #fff 100%);
	pointer-events: none;
}

/* ----------------------------------------------------------- testimonials */
.rd-home .rd-testimonials { padding: 100px 0; }

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1199px) {
	.rd-hero__card { min-height: 460px; }
	.rd-hero__copy { padding: 40px 40px 70px; }
}
@media (max-width: 899px) {
	.rd-hero { grid-template-columns: 1fr; }
	.rd-hero__card { min-height: 380px; }
	.rd-hero__copy { width: 100%; }
}

/* ----------------------------------------------------------------- phone */
@media (max-width: 767px) {
	.rd-hero { width: calc(100% - 20px); gap: 10px; }
	.rd-hero__card { min-height: 340px; border-radius: 20px; }
	.rd-hero__copy { padding: 28px 24px 40px; gap: 20px; }
	/* logo above the line and both centred: beside centred text the logo sat off to the left */
	.rd-gebanner { margin-top: 12px; padding: 16px 20px 20px; gap: 10px; text-align: center; flex-direction: column; }
	.rd-gebanner__text { text-wrap: balance; }
	.rd-gebanner__mark svg { width: 52px; height: 52px; }
	.rd-hpa { padding-top: 60px; }
	.rd-hpa__title { margin-bottom: 30px; }
	.rd-slider--pa .rd-slider__slide { width: min(84vw, 530px); margin-right: 14px; }
	/* every card as tall as the tallest: two-line names made some 9px taller */
	.rd-slider--pa .rd-slider__slide { display: flex; }
	.rd-hpacard__link { height: auto; flex: 1; display: flex; flex-direction: column; }
	.rd-hpacard__foot { flex: 1; }
	.rd-hpacard__photo { height: auto !important; aspect-ratio: 53 / 23; }
	.rd-hpacard__foot { position: static; padding: 20px; left: auto; right: auto; bottom: auto; }
	.rd-hpacard__name { font-size: 21px; }
	.rd-home .rd-logos { margin-top: 60px; padding: 50px 0 0; }
	.rd-home .rd-logos__item { height: 96px; }
	.rd-home .rd-testimonials { padding: 60px 0; }
}
