/**
 * Rooted Dev Studio About and Contact system (WP08).
 * Scoped to the page templates introduced in this work package.
 */

.rds-about,
.rds-contact {
	overflow: clip;
}

:where(.rds-about, .rds-contact) h2 {
	font-size: clamp(2.4rem, 4.7vw, 4.35rem);
	margin: .55rem 0 0;
}

:where(.rds-about, .rds-contact) h3 {
	font-size: clamp(1.35rem, 2vw, 1.8rem);
}

:where(.rds-about, .rds-contact) p {
	color: var(--rds-color-charcoal-600);
}

.rds-wp08-hero {
	background: var(--rds-color-cream-50);
	border-bottom: 1px solid var(--rds-color-line);
	overflow: hidden;
	padding: clamp(4.5rem, 8vw, 7.4rem) 0 clamp(5rem, 8vw, 7rem);
	position: relative;
}

.rds-wp08-hero::before {
	background-image: linear-gradient(rgba(21, 33, 28, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 33, 28, .045) 1px, transparent 1px);
	background-size: 42px 42px;
	content: "";
	inset: 0;
	mask-image: linear-gradient(90deg, transparent, #000 43%, #000);
	opacity: .78;
	pointer-events: none;
	position: absolute;
}

.rds-wp08-hero::after {
	border: 1px solid rgba(23, 96, 63, .12);
	border-radius: 50%;
	box-shadow: 0 0 0 68px rgba(23, 96, 63, .026), 0 0 0 136px rgba(23, 96, 63, .018);
	content: "";
	height: 410px;
	pointer-events: none;
	position: absolute;
	right: -165px;
	top: -185px;
	width: 410px;
}

.rds-wp08-hero-grid {
	align-items: center;
	display: grid;
	gap: clamp(3rem, 8vw, 7rem);
	grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
	position: relative;
	z-index: 1;
}

.rds-wp08-hero-copy {
	max-width: 760px;
}

.rds-wp08-hero h1 {
	font-size: clamp(3.65rem, 6.6vw, 6.55rem);
	letter-spacing: -.058em;
	line-height: .9;
	margin: 1.1rem 0 1.5rem;
}

.rds-wp08-hero-copy > p {
	font-size: var(--rds-text-lg);
	line-height: 1.65;
	max-width: 690px;
}

.rds-wp08-hero-copy > p strong {
	color: var(--rds-color-charcoal-800);
	font-weight: 650;
}

.rds-wp08-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .8rem;
	margin-top: 2rem;
}

.rds-about-hero-board,
.rds-contact-hero-note {
	background: var(--rds-color-forest-950);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--rds-radius-lg);
	box-shadow: var(--rds-shadow-lg);
	color: var(--rds-color-white);
	padding: clamp(1.75rem, 4vw, 2.8rem);
	position: relative;
}

.rds-about-hero-board::before,
.rds-contact-hero-note::before {
	border-left: 1px solid var(--rds-color-earth-500);
	border-top: 1px solid var(--rds-color-earth-500);
	content: "";
	height: 46px;
	left: -10px;
	position: absolute;
	top: -10px;
	width: 46px;
}

.rds-about-hero-board .rds-tech-label,
.rds-contact-hero-note .rds-tech-label {
	color: #d7c58f;
}

.rds-about-hero-board > div {
	align-items: flex-end;
	display: flex;
	gap: 1rem;
	margin: 2rem 0 1.8rem;
}

.rds-about-hero-board > div strong {
	color: var(--rds-color-white);
	font: 650 clamp(4.6rem, 8vw, 7.4rem)/.72 var(--rds-font-display);
	letter-spacing: -.06em;
}

.rds-about-hero-board > div small {
	color: rgba(255, 255, 255, .68);
	font-size: .78rem;
	line-height: 1.4;
	max-width: 120px;
}

.rds-about-hero-board ul,
.rds-contact-hero-note ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rds-about-hero-board li,
.rds-contact-hero-note li {
	border-top: 1px solid rgba(255, 255, 255, .13);
	color: rgba(255, 255, 255, .84);
	font-size: .82rem;
	font-weight: 600;
	padding: .75rem 0;
}

.rds-contact-hero-note > p {
	color: rgba(255, 255, 255, .76);
	font-family: var(--rds-font-display);
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	line-height: 1.35;
	margin: 1.4rem 0 1.7rem;
}

.rds-about-founder-grid {
	align-items: center;
	display: grid;
	gap: clamp(3rem, 8vw, 7rem);
	grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
}

.rds-about-founder-image {
	margin: 0;
	position: relative;
}

.rds-about-founder-image::before {
	background: var(--rds-color-forest-100);
	content: "";
	inset: -18px 18px 18px -18px;
	position: absolute;
	z-index: -1;
}

.rds-about-founder-image img {
	aspect-ratio: 4 / 5;
	display: block;
	object-fit: cover;
	width: 100%;
}

.rds-about-founder-image figcaption {
	background: var(--rds-color-forest-950);
	bottom: 0;
	color: var(--rds-color-white);
	font: 700 .68rem/1.2 var(--rds-font-mono);
	left: 0;
	letter-spacing: .11em;
	padding: .9rem 1.1rem;
	position: absolute;
}

.rds-about-founder-copy {
	max-width: 690px;
}

.rds-about-founder-copy > p {
	font-size: 1.04rem;
}

.rds-about-founder-copy blockquote {
	margin-bottom: 0;
}

.rds-about-timeline {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 3.4rem 0 0;
	padding: 0;
	position: relative;
}

.rds-about-timeline::before {
	background: var(--rds-color-line-strong);
	content: "";
	height: 1px;
	left: 5%;
	position: absolute;
	right: 5%;
	top: 23px;
}

.rds-about-timeline li {
	padding-right: clamp(1rem, 3vw, 2.5rem);
	position: relative;
}

.rds-about-timeline li > span {
	align-items: center;
	background: var(--rds-color-forest-950);
	border: 5px solid var(--rds-color-cream-50);
	border-radius: 50%;
	color: var(--rds-color-white);
	display: flex;
	font: 700 .65rem/1 var(--rds-font-mono);
	height: 46px;
	justify-content: center;
	position: relative;
	width: 46px;
	z-index: 1;
}

.rds-about-timeline h3 {
	font-size: 1.45rem;
	margin: 1.3rem 0 .6rem;
}

.rds-about-timeline p {
	font-size: .92rem;
	margin: 0;
}

.rds-wp08-section-head {
	align-items: end;
	display: grid;
	gap: 3rem;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
}

.rds-wp08-section-head > p {
	margin: 0 0 .45rem;
}

.rds-about-principles-grid {
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-top: 3.5rem;
}

.rds-about-principles-grid article {
	border: 1px solid var(--rds-color-line);
	margin-right: -1px;
	padding: clamp(1.35rem, 3vw, 2rem);
}

.rds-about-principles-grid article > span,
.rds-contact-trust-grid article > span {
	color: var(--rds-color-earth-600);
	font: 700 .72rem/1 var(--rds-font-mono);
}

.rds-about-principles-grid h3,
.rds-contact-trust-grid h3 {
	font-size: 1.42rem;
	margin: 2.1rem 0 .6rem;
}

.rds-about-principles-grid p,
.rds-contact-trust-grid p {
	font-size: .9rem;
	margin: 0;
}

.rds-about-expertise .rds-wp08-section-head > p,
.rds-about-expertise-grid a > p {
	color: rgba(255, 255, 255, .68);
}

.rds-about-expertise .rds-kicker {
	color: #d7c58f;
}

.rds-about-expertise-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 3.5rem;
}

.rds-about-expertise-grid a {
	background: rgba(255, 255, 255, .045);
	border: 1px solid rgba(255, 255, 255, .14);
	color: var(--rds-color-white);
	display: block;
	min-height: 285px;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	text-decoration: none;
	transition: background var(--rds-transition-base), border-color var(--rds-transition-base), transform var(--rds-transition-base);
}

.rds-about-expertise-grid a:hover {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .28);
	transform: translateY(-3px);
}

.rds-about-expertise-grid a > span {
	color: #d7c58f;
	font: 700 .68rem/1 var(--rds-font-mono);
	letter-spacing: .1em;
}

.rds-about-expertise-grid h3 {
	color: var(--rds-color-white);
	margin: 2rem 0 .75rem;
}

.rds-about-expertise-grid strong {
	display: block;
	font-size: .78rem;
	margin-top: 1.5rem;
	text-transform: uppercase;
}

.rds-about-expertise-grid i {
	font-style: normal;
}

.rds-about-software-grid {
	align-items: center;
	display: grid;
	gap: clamp(3rem, 8vw, 7rem);
	grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
}

.rds-about-software-grid > div:first-child > p {
	font-size: 1.03rem;
	max-width: 700px;
}

.rds-about-software-grid .rds-button {
	margin-top: 1rem;
}

.rds-about-software-panel {
	background: var(--rds-color-cream-50);
	border: 1px solid var(--rds-color-line);
	box-shadow: var(--rds-shadow-md);
	display: grid;
	gap: 0;
	padding: 1rem clamp(1.5rem, 4vw, 2.5rem);
}

.rds-about-software-panel > span {
	color: var(--rds-color-earth-600);
	font: 700 .68rem/1 var(--rds-font-mono);
	letter-spacing: .1em;
	padding: 1rem 0 1.5rem;
}

.rds-about-software-panel strong {
	border-top: 1px solid var(--rds-color-line);
	color: var(--rds-color-charcoal-800);
	font: 600 1.25rem/1.3 var(--rds-font-display);
	padding: 1.2rem 0;
}

.rds-wp08-final {
	background: var(--rds-color-forest-100);
	border-top: 1px solid var(--rds-color-line-strong);
	padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.rds-wp08-final-inner {
	align-items: center;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
}

.rds-wp08-final h2 {
	font-size: clamp(2.2rem, 4vw, 3.55rem);
}

.rds-wp08-final p {
	margin-bottom: 0;
}

/* Contact page and Rooted Forms integration. */
.rds-contact .rds-wp08-hero h1 {
	max-width: 730px;
}

.rds-contact-inquiry {
	background: var(--rds-color-white);
}

.rds-contact-inquiry-grid {
	align-items: start;
	display: grid;
	gap: clamp(3rem, 8vw, 7rem);
	grid-template-columns: minmax(280px, .78fr) minmax(480px, 1.22fr);
}

.rds-contact-intro {
	position: sticky;
	top: 7rem;
}

.rds-contact-intro h2 {
	font-size: clamp(2.3rem, 4vw, 3.65rem);
}

.rds-contact-next {
	border-top: 1px solid var(--rds-color-line-strong);
	margin-top: 2.5rem;
	padding-top: 1.5rem;
}

.rds-contact-next > span {
	color: var(--rds-color-earth-600);
	font: 700 .68rem/1 var(--rds-font-mono);
	letter-spacing: .1em;
}

.rds-contact-next ol {
	list-style: none;
	margin: 1.4rem 0 0;
	padding: 0;
}

.rds-contact-next li {
	border-left: 1px solid var(--rds-color-line-strong);
	padding: 0 0 1.4rem 1.2rem;
	position: relative;
}

.rds-contact-next li::before {
	background: var(--rds-color-forest-700);
	border: 4px solid var(--rds-color-white);
	border-radius: 50%;
	content: "";
	height: 13px;
	left: -7px;
	position: absolute;
	top: .35rem;
	width: 13px;
}

.rds-contact-next strong {
	color: var(--rds-color-charcoal-800);
	font-size: .9rem;
}

.rds-contact-next p {
	font-size: .82rem;
	line-height: 1.55;
	margin: .25rem 0 0;
}

.rds-contact-form-shell {
	background: var(--rds-color-cream-50);
	border: 1px solid var(--rds-color-line-strong);
	box-shadow: var(--rds-shadow-md);
	padding: clamp(1.25rem, 4vw, 2.5rem);
}

.rds-contact-form-shell .rooted-forms-form-wrap {
	margin: 0;
}

.rds-contact-form-shell .rooted-forms-form {
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--rds-color-charcoal-950);
	display: grid;
	gap: 0 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	max-width: none;
	padding: 0;
}

.rds-contact-form-shell .rooted-forms-heading {
	font-family: var(--rds-font-display);
	font-size: clamp(1.8rem, 3vw, 2.35rem);
	grid-column: 1 / -1;
	margin: 0 0 1.5rem;
}

.rds-contact-form-shell .rooted-forms-label {
	color: var(--rds-color-charcoal-800);
	font-family: var(--rds-font-body);
	font-size: .78rem;
	font-weight: 650;
	letter-spacing: .02em;
	margin: 0 0 1.15rem;
}

.rds-contact-form-shell .rooted-forms-label:nth-of-type(7) {
	grid-column: 1 / -1;
}

.rds-contact-form-shell :where(.rooted-forms-label input, .rooted-forms-label textarea, .rooted-forms-label select) {
	background: var(--rds-color-white);
	border: 1px solid var(--rds-color-line-strong);
	border-radius: var(--rds-radius-sm);
	color: var(--rds-color-charcoal-950);
	font: 400 1rem/1.4 var(--rds-font-body);
	margin-top: .42rem;
	min-height: 50px;
	padding: .78rem .85rem;
	width: 100%;
}

.rds-contact-form-shell .rooted-forms-label textarea {
	min-height: 150px;
	resize: vertical;
}

.rds-contact-form-shell :where(.rooted-forms-label input, .rooted-forms-label textarea, .rooted-forms-label select):focus {
	border-color: var(--rds-color-forest-700);
	box-shadow: 0 0 0 3px rgba(23, 96, 63, .13);
}

.rds-contact-form-shell .rooted-forms-btn {
	background: var(--rds-color-forest-700);
	border: 1px solid var(--rds-color-forest-700);
	border-radius: var(--rds-radius-sm);
	color: var(--rds-color-white);
	cursor: pointer;
	font: 700 .78rem/1 var(--rds-font-body);
	grid-column: 1 / -1;
	justify-self: start;
	letter-spacing: .03em;
	margin-top: .25rem;
	min-height: 48px;
	padding: .95rem 1.35rem;
	transition: background var(--rds-transition-fast), border-color var(--rds-transition-fast), transform var(--rds-transition-fast);
}

.rds-contact-form-shell .rooted-forms-btn:hover {
	background: var(--rds-color-forest-900);
	border-color: var(--rds-color-forest-900);
	transform: translateY(-1px);
}

.rds-contact-form-shell .rooted-forms-btn:disabled {
	cursor: wait;
	opacity: .68;
}

.rds-contact-form-shell .rooted-forms-message {
	font-size: .9rem;
	font-weight: 600;
	grid-column: 1 / -1;
	margin: 1rem 0 0;
}

.rds-contact-form-shell .rooted-forms-message.success {
	color: var(--rds-color-success);
}

.rds-contact-form-shell .rooted-forms-message.error {
	color: var(--rds-color-danger);
}

.rds-contact-privacy {
	border-top: 1px solid var(--rds-color-line);
	font-size: .75rem;
	line-height: 1.55;
	margin: 1.4rem 0 0;
	padding-top: 1.15rem;
}

.rds-contact-form-unavailable {
	border-left: 3px solid var(--rds-color-warning);
	padding-left: 1.25rem;
}

.rds-contact-trust-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 3.5rem;
}

.rds-contact-trust-grid article {
	background: var(--rds-color-white);
	border: 1px solid var(--rds-color-line);
	min-height: 250px;
	padding: clamp(1.35rem, 3vw, 2rem);
}

.rds-contact-routing-grid {
	align-items: start;
	display: grid;
	gap: clamp(3rem, 8vw, 7rem);
	grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
}

.rds-contact-routing-grid > div p {
	max-width: 570px;
}

.rds-contact-routing nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rds-contact-routing nav a {
	border: 1px solid var(--rds-color-line);
	color: var(--rds-color-charcoal-950);
	display: grid;
	margin: 0 -1px -1px 0;
	min-height: 150px;
	padding: 1.35rem;
	position: relative;
	text-decoration: none;
	transition: background var(--rds-transition-fast), border-color var(--rds-transition-fast);
}

.rds-contact-routing nav a:hover {
	background: var(--rds-color-cream-50);
	border-color: var(--rds-color-line-strong);
}

.rds-contact-routing nav span {
	color: var(--rds-color-earth-600);
	font: 700 .62rem/1 var(--rds-font-mono);
	letter-spacing: .09em;
}

.rds-contact-routing nav strong {
	align-self: end;
	font: 600 1.15rem/1.3 var(--rds-font-display);
	padding-right: 1.5rem;
}

.rds-contact-routing nav i {
	bottom: 1.35rem;
	color: var(--rds-color-forest-700);
	font-style: normal;
	position: absolute;
	right: 1.35rem;
}

@media (max-width: 1024px) {
	.rds-wp08-hero-grid,
	.rds-about-software-grid {
		gap: 3rem;
		grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
	}

	.rds-about-founder-grid,
	.rds-contact-inquiry-grid,
	.rds-contact-routing-grid {
		gap: 3.5rem;
	}

	.rds-about-principles-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.rds-contact-trust-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 800px) {
	.rds-wp08-hero-grid,
	.rds-about-founder-grid,
	.rds-about-software-grid,
	.rds-contact-inquiry-grid,
	.rds-contact-routing-grid,
	.rds-wp08-section-head {
		grid-template-columns: 1fr;
	}

	.rds-about-hero-board,
	.rds-contact-hero-note {
		max-width: 540px;
	}

	.rds-about-founder-image {
		max-width: 480px;
	}

	.rds-about-timeline {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 2.25rem;
	}

	.rds-about-timeline::before {
		display: none;
	}

	.rds-about-timeline li {
		border-top: 1px solid var(--rds-color-line-strong);
		padding-top: 1rem;
	}

	.rds-about-timeline li > span {
		border-color: var(--rds-color-cream-50);
	}

	.rds-about-expertise-grid {
		grid-template-columns: 1fr;
	}

	.rds-about-expertise-grid a {
		min-height: 0;
	}

	.rds-contact-intro {
		position: static;
	}

	.rds-wp08-final-inner {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 560px) {
	.rds-wp08-hero {
		padding-block: 3.75rem 4.25rem;
	}

	.rds-wp08-hero h1 {
		font-size: clamp(3.1rem, 14vw, 4.4rem);
	}

	.rds-wp08-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.rds-wp08-actions .rds-button {
		justify-content: center;
		width: 100%;
	}

	.rds-about-timeline,
	.rds-about-principles-grid,
	.rds-contact-trust-grid,
	.rds-contact-routing nav {
		grid-template-columns: 1fr;
	}

	.rds-about-founder-image::before {
		inset: -10px 10px 10px -10px;
	}

	.rds-about-principles-grid article {
		margin-bottom: -1px;
		margin-right: 0;
	}

	.rds-contact-form-shell .rooted-forms-form {
		grid-template-columns: 1fr;
	}

	.rds-contact-form-shell .rooted-forms-label:nth-of-type(7),
	.rds-contact-form-shell .rooted-forms-heading,
	.rds-contact-form-shell .rooted-forms-btn,
	.rds-contact-form-shell .rooted-forms-message {
		grid-column: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rds-about-expertise-grid a,
	.rds-contact-form-shell .rooted-forms-btn,
	.rds-contact-routing nav a {
		transition: none;
	}
}
