/*
 * Trellis Digital: inner page components.
 * Loaded after theme.css on the front end and in the editor.
 */

/* Groups inside inner-page sections space their children with `gap`. */
.trellis-inner .wp-block-group > *,
.trellis-inner .wp-block-details > * {
	margin-block: 0;
}

/* ---------------------------------------------------------------------------
   Shared layout helpers
--------------------------------------------------------------------------- */
.trellis-col {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.trellis-col.is-gap-56 {
	gap: 56px;
}

.trellis-col.is-gap-40 {
	gap: 40px;
}

.trellis-split {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(40px, 6vw, 96px);
	align-items: center;
}

.trellis-split.is-top {
	align-items: flex-start;
}

.trellis-split__main {
	flex: 1.2 1 440px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.trellis-split__main > p {
	font-size: 19px;
	line-height: 1.65;
	max-width: 58ch;
	text-wrap: pretty;
}

.trellis-split__side {
	flex: 1 1 340px;
	max-width: 460px;
	min-width: 0;
}

.trellis-section.is-flush-top {
	padding-top: 0;
}

.trellis-section.is-flush-bottom {
	padding-bottom: 0;
}

.trellis-section.is-bordered {
	border-top: 1px solid rgba(30, 39, 49, 0.08);
	border-bottom: 1px solid rgba(30, 39, 49, 0.08);
}

/* Inner pages use a slightly smaller section heading than the homepage. */
.trellis-inner h2 {
	font-size: clamp(34px, 4.2vw, 52px);
	line-height: 1.08;
	text-wrap: balance;
}

.trellis-inner h2.is-large {
	font-size: clamp(36px, 4.4vw, 58px);
	line-height: 1.06;
}

.trellis-inner .trellis-stack h2 {
	max-width: 22ch;
}

.has-navy-background-color :is(h2, h3, h4) {
	color: var(--t-paper);
}

.trellis-split-head > p {
	flex: 0 1 460px;
	font-size: 19px;
	max-width: 40ch;
}

.trellis-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 20px;
}

/* ---------------------------------------------------------------------------
   Page hero variants
--------------------------------------------------------------------------- */
.trellis-page-hero__copy {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.trellis-page-hero__card h1 {
	max-width: 16ch;
}

.trellis-page-hero__card.is-split {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 56px;
}

.trellis-page-hero__card.is-split .trellis-page-hero__copy {
	flex: 1 1 520px;
}

.trellis-page-hero__card.is-split h1 {
	max-width: none;
}

.trellis-page-hero__card.is-split .trellis-page-hero__lead {
	font-size: 21px;
	max-width: 40ch;
}

.trellis-page-hero__card .wp-block-buttons {
	gap: 14px;
}

.trellis-page-hero__card.is-split > .wp-block-buttons .wp-block-button__link {
	padding: 19px 30px;
}

/*
 * Service pages: the card keeps its width, but its side padding is smaller
 * and the text column takes the larger share, so long titles such as
 * "ProPresenter" never run under the image.
 */
.trellis-page-hero__card.is-media {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(32px, 4vw, 56px);
	padding: clamp(48px, 6vw, 88px) clamp(24px, 4vw, 64px);
}

.trellis-page-hero__card.is-media .trellis-page-hero__copy {
	flex: 1.35 1 480px;
	gap: 24px;
}

.trellis-page-hero__card.is-media h1 {
	overflow-wrap: break-word;
}

.trellis-page-hero__card.is-media h1 {
	font-size: clamp(44px, 5.6vw, 80px);
	max-width: none;
}

.trellis-page-hero__card .trellis-page-hero__lead.is-serif {
	font-family: var(--t-serif);
	font-size: clamp(20px, 2vw, 26px);
	line-height: 1.35;
	max-width: 30ch;
}

.trellis-page-hero__media {
	flex: 1 1 360px;
	max-width: 560px;
	min-width: 0;
	margin: 0;
	aspect-ratio: 16 / 10;
	border-radius: 24px;
	overflow: hidden;
	background: var(--t-navy-500);
}

.trellis-page-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.trellis-page-hero__card .trellis-backlink {
	font-size: 15px;
	font-weight: 600;
	max-width: none;
}

.trellis-page-hero__card .trellis-backlink a {
	color: var(--t-sage-light);
	text-decoration: none;
}

.trellis-page-hero__card .trellis-backlink a:hover {
	color: var(--t-paper);
}

.is-style-tag.trellis-tag-sage {
	border-radius: 6px;
	background: var(--t-sage);
	color: var(--t-ink);
}

.trellis-page-hero__card .trellis-chip {
	align-self: flex-start;
	width: fit-content;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--t-ink);
	background: var(--t-sage-light);
	border-radius: 8px;
	padding: 8px 14px;
}

/* Four-square page marker: the light square shows which nav item you are on. */
.trellis-navmark {
	display: flex;
	align-items: center;
	gap: 10px;
	letter-spacing: 0.16em;
}

.trellis-navmark::before {
	content: "";
	flex: none;
	width: 63px;
	height: 12px;
	border-radius: 2px;
	background:
		linear-gradient(var(--t-paper), var(--t-paper)) var(--t-navmark-x, -20px) 0 / 12px 12px no-repeat,
		repeating-linear-gradient(90deg, var(--t-sage) 0 12px, transparent 12px 17px);
}

.trellis-navmark.is-pos-1 { --t-navmark-x: 0; }
.trellis-navmark.is-pos-2 { --t-navmark-x: 17px; }
.trellis-navmark.is-pos-3 { --t-navmark-x: 34px; }
.trellis-navmark.is-pos-4 { --t-navmark-x: 51px; }

/* Case study hero: screenshot runs off the bottom of the card. */
.trellis-page-hero__card.is-case {
	gap: 24px;
	padding-bottom: 0;
}

.trellis-page-hero__card.is-case h1 {
	font-size: clamp(44px, 5.6vw, 80px);
}

.trellis-page-hero__card.is-case .is-style-browser {
	margin-top: 24px;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
}

/* Privacy hero: outlined trellis in the corner. */
.trellis-page-hero__card.has-grid-deco {
	position: relative;
	overflow: hidden;
	gap: 24px;
}

.trellis-page-hero__card.has-grid-deco::after {
	content: "";
	position: absolute;
	right: -40px;
	bottom: -60px;
	width: 294px;
	height: 294px;
	opacity: 0.3;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='294' height='294' fill='none' stroke='%235B6F87'%3E%3Crect x='.5' y='.5' width='89' height='89' rx='16'/%3E%3Crect x='102.5' y='.5' width='89' height='89' rx='16'/%3E%3Crect x='204.5' y='.5' width='89' height='89' rx='16'/%3E%3Crect x='102.5' y='102.5' width='89' height='89' rx='16'/%3E%3Crect x='102.5' y='204.5' width='89' height='89' rx='16'/%3E%3C/svg%3E") no-repeat;
}

.trellis-page-hero__card.has-grid-deco > * {
	position: relative;
	z-index: 1;
}

/* ---------------------------------------------------------------------------
   Pull quotes, answers, hints
--------------------------------------------------------------------------- */
.trellis-split__main > p.trellis-pullquote,
.trellis-pullquote {
	margin-top: 8px;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var(--t-sage);
	font-family: var(--t-serif);
	font-size: clamp(22px, 2.2vw, 27px);
	line-height: 1.35;
	max-width: 34ch;
	color: var(--t-navy);
	text-wrap: pretty;
}

.trellis-split__main > p.trellis-answer,
.trellis-answer {
	padding-left: 20px;
	border-left: 3px solid var(--t-sage);
	font-size: 19px;
	line-height: 1.6;
	font-weight: 600;
	color: var(--t-navy);
	max-width: 54ch;
}

.trellis-hint {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 12px;
	width: fit-content;
	padding: 14px 22px;
	border-radius: 999px;
	background: var(--t-sage);
	color: var(--t-ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	box-shadow: 0 8px 20px rgba(139, 158, 126, 0.35);
}

.trellis-hint::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	background: currentColor;
	-webkit-mask: var(--t-icon) center / contain no-repeat;
	mask: var(--t-icon) center / contain no-repeat;
}

/* ---------------------------------------------------------------------------
   "Under a minute" card with countdown ring
--------------------------------------------------------------------------- */
.trellis-minute {
	flex: 1 1 380px;
	max-width: 500px;
	min-width: 0;
	border-radius: 28px;
	padding: clamp(28px, 4vw, 44px);
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.trellis-minute__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
}

.trellis-minute__top > .wp-block-group:last-child {
	flex: 1 1 180px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.trellis-minute__top h3 {
	font-size: clamp(26px, 2.6vw, 32px);
	line-height: 1.15;
}

.trellis-minute__top p {
	font-size: 17px;
	line-height: 1.5;
	color: var(--t-mist);
}

.trellis-countdown {
	position: relative;
	flex: none;
	width: 180px;
	height: 180px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 9px var(--t-navy-500);
}

.trellis-countdown.has-ring {
	box-shadow: none;
}

.trellis-countdown svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.trellis-countdown svg circle:last-child {
	transition: stroke-dashoffset 1s linear;
}

.trellis-countdown p {
	position: relative;
	text-align: center;
}

.trellis-countdown p:first-of-type {
	font-family: var(--t-serif);
	font-size: 52px;
	line-height: 1.05;
	color: var(--t-paper);
	font-variant-numeric: tabular-nums;
}

.trellis-countdown p:last-of-type {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--t-sage-light);
}

.trellis-minute__who {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.trellis-minute__who .is-style-eyebrow {
	font-size: 13px;
}

.trellis-iconrow {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--t-navy-600);
	font-size: 16px;
	line-height: 1.4;
}

.trellis-iconrow::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	background: var(--t-sage-light);
	-webkit-mask: var(--t-icon) center / contain no-repeat;
	mask: var(--t-icon) center / contain no-repeat;
}

/* ---------------------------------------------------------------------------
   Tabs (pills, cards, rows)
--------------------------------------------------------------------------- */
.trellis-tabs {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.trellis-tabs__item {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.trellis-tabs__item > h3 {
	font-size: 26px;
}

.trellis-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.trellis-tabs__tab {
	font: inherit;
	text-align: left;
	border: 0;
	cursor: pointer;
	color: inherit;
	transition: background 0.25s ease, color 0.25s ease, transform 0.35s cubic-bezier(0.3, 1.3, 0.5, 1);
}

.trellis-tabs__panels {
	display: grid;
}

.trellis-js .trellis-tabs.is-ready .trellis-tabs__item {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s;
}

.trellis-js .trellis-tabs.is-ready .trellis-tabs__item.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.trellis-js .trellis-tabs.is-ready .trellis-tabs__short {
	display: none;
}

/* Pills */
.trellis-tabs.is-pills .trellis-tabs__list {
	align-self: flex-start;
}

.trellis-tabs.is-pills .trellis-tabs__tab {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	background: var(--t-sage-tint);
	color: var(--t-navy);
}

.trellis-tabs.is-pills .trellis-tabs__tab[aria-selected="true"] {
	background: var(--t-navy);
	color: var(--t-paper);
}

.trellis-tabs.is-pills .trellis-tabs__num,
.trellis-tabs.is-pills .trellis-tabs__kicker,
.trellis-tabs.is-pills .trellis-tabs__desc {
	display: none;
}

.trellis-tabs.is-pills.is-numbered .trellis-tabs__num {
	display: inline;
	font-family: var(--t-serif);
	font-size: 14px;
	opacity: 0.7;
}

.trellis-js .trellis-tabs.is-pills.is-ready .trellis-tabs__item > h3 {
	display: none;
}

.trellis-tabs.is-pills .trellis-tabs__item p {
	font-size: 19px;
	line-height: 1.6;
	max-width: 40ch;
}

/* Pills on a tinted section sit in a paper capsule. */
.has-sage-tint-background-color .trellis-tabs.is-pills .trellis-tabs__list {
	gap: 4px;
	padding: 5px;
	border-radius: 999px;
	background: var(--t-paper);
}

.has-sage-tint-background-color .trellis-tabs.is-pills .trellis-tabs__tab {
	padding: 10px 18px;
	background: transparent;
}

.has-sage-tint-background-color .trellis-tabs.is-pills .trellis-tabs__tab[aria-selected="true"] {
	background: var(--t-navy);
}

/* Quote panels */
.trellis-tabs.is-quotes {
	gap: 32px;
}

.trellis-tabs.is-quotes .trellis-tabs__panels,
.trellis-tabs.is-quotes:not(.is-ready) {
	padding-left: clamp(24px, 3vw, 40px);
	border-left: 4px solid var(--t-sage);
}

.trellis-tabs.is-quotes .trellis-tabs__item {
	gap: 20px;
}

.trellis-tabs.is-quotes .trellis-tabs__item p.trellis-quote {
	font-family: var(--t-serif);
	font-size: clamp(22px, 2.3vw, 30px);
	line-height: 1.35;
	color: var(--t-navy);
	max-width: none;
	text-wrap: pretty;
}

.trellis-tabs.is-quotes .trellis-tabs__item p:not(.trellis-quote) {
	font-size: 18px;
	color: var(--t-sage-deep);
	max-width: 52ch;
}

.trellis-tabs.is-quotes .trellis-tabs__item strong {
	color: var(--t-navy);
}

/* Cards (process phases) */
.trellis-tabs.is-cards {
	gap: 48px;
}

.trellis-tabs.is-cards .trellis-tabs__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 16px;
}

.trellis-tabs.is-cards .trellis-tabs__tab {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 14px;
	align-content: start;
	padding: 28px;
	border-radius: 22px;
	background: var(--t-sage-tint);
	color: var(--t-ink);
}

.trellis-tabs.is-cards .trellis-tabs__num {
	width: 48px;
	height: 48px;
	border-radius: 18%;
	display: grid;
	place-items: center;
	font-family: var(--t-serif);
	font-size: 21px;
	background: var(--t-navy);
	color: var(--t-paper);
}

.trellis-tabs.is-cards .trellis-tabs__kicker {
	justify-self: end;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.75;
}

.trellis-tabs.is-cards .trellis-tabs__label {
	grid-column: 1 / -1;
	font-family: var(--t-serif);
	font-size: 26px;
	line-height: 1.15;
}

.trellis-tabs.is-cards .trellis-tabs__desc {
	grid-column: 1 / -1;
	font-size: 16px;
	line-height: 1.5;
	opacity: 0.85;
}

.trellis-tabs.is-cards .trellis-tabs__tab[aria-selected="true"] {
	background: var(--t-navy);
	color: var(--t-paper);
}

.trellis-tabs.is-cards .trellis-tabs__tab[aria-selected="true"] .trellis-tabs__num {
	background: var(--t-sage);
	color: var(--t-ink);
}

.trellis-tabs.is-cards .trellis-tabs__panels {
	padding: clamp(24px, 4vw, 40px);
	border-radius: 22px;
	border-left: 6px solid var(--t-navy);
	background: var(--t-sage-tint);
}

.trellis-tabs.is-cards .trellis-tabs__item {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 24px 48px;
	align-items: flex-start;
}

.trellis-tabs.is-cards .trellis-tabs__item > h3 {
	flex: 0 1 280px;
	font-size: 30px;
	line-height: 1.15;
}

.trellis-tabs.is-cards .trellis-tabs__item > p:not(.trellis-tabs__short) {
	flex: 1 1 420px;
	font-size: 18px;
	line-height: 1.65;
}

/* Rows (why work with us) */
.trellis-tabs.is-rows.is-ready {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 24px;
	align-items: stretch;
}

.trellis-tabs.is-rows .trellis-tabs__list {
	flex: 1 1 340px;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 12px;
}

.trellis-tabs.is-rows .trellis-tabs__tab {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 26px 28px;
	border-radius: 20px;
	background: #fff;
	color: var(--t-navy);
}

.trellis-tabs.is-rows .trellis-tabs__num {
	font-family: var(--t-serif);
	font-size: 44px;
	line-height: 1;
	color: var(--t-sage-pale);
	transition: color 0.35s ease;
}

.trellis-tabs.is-rows .trellis-tabs__label {
	flex: 1;
	font-family: var(--t-serif);
	font-size: clamp(22px, 2.2vw, 28px);
	line-height: 1.15;
}

.trellis-tabs.is-rows .trellis-tabs__tab::after {
	content: "→";
	font-size: 22px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.trellis-tabs.is-rows .trellis-tabs__kicker,
.trellis-tabs.is-rows .trellis-tabs__desc {
	display: none;
}

.trellis-tabs.is-rows .trellis-tabs__tab[aria-selected="true"] {
	background: var(--t-navy);
	color: var(--t-paper);
	transform: translateX(8px);
}

.trellis-tabs.is-rows .trellis-tabs__tab[aria-selected="true"] .trellis-tabs__num {
	color: var(--t-sage-light);
}

.trellis-tabs.is-rows .trellis-tabs__tab[aria-selected="true"]::after {
	opacity: 1;
}

.trellis-tabs.is-rows .trellis-tabs__stage {
	flex: 1.4 1 460px;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
	padding: clamp(32px, 4vw, 56px);
	border-radius: 28px;
	background: var(--t-navy);
	color: var(--t-mist);
}

.trellis-tabs.is-rows .trellis-tabs__panels {
	flex: 1 1 280px;
}

.trellis-tabs.is-rows.is-ready .trellis-tabs__item > h3 {
	font-size: clamp(28px, 3vw, 38px);
	line-height: 1.1;
	color: var(--t-paper);
}

.trellis-tabs.is-rows.is-ready .trellis-tabs__item > p {
	font-size: 18px;
	line-height: 1.65;
	text-wrap: pretty;
}

.trellis-tabs__count {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--t-sage-light);
}

.trellis-buildmark {
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 48px);
	gap: 8px;
}

.trellis-buildmark i {
	aspect-ratio: 1;
	border-radius: 22%;
	background: rgba(244, 243, 239, 0.08);
	transform: scale(0.82);
	transition: background 0.4s ease, transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.trellis-buildmark i:nth-child(3n + 2) { transition-delay: 0.08s; }
.trellis-buildmark i:nth-child(3n) { transition-delay: 0.16s; }

.trellis-tabs[data-active="1"] .trellis-buildmark i:nth-child(-n + 3),
.trellis-tabs[data-active="2"] .trellis-buildmark i:nth-child(-n + 6),
.trellis-tabs[data-active="3"] .trellis-buildmark i {
	background: var(--t-paper);
	transform: scale(1);
}

.trellis-tabs[data-active] .trellis-buildmark i:nth-child(-n + 3),
.trellis-tabs[data-active="2"] .trellis-buildmark i:nth-child(5),
.trellis-tabs[data-active="3"] .trellis-buildmark i:is(:nth-child(5), :nth-child(8)) {
	background: var(--t-sage);
}

.trellis-buildhint {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--t-serif);
	font-size: clamp(20px, 1.8vw, 24px);
	line-height: 1.3;
	color: var(--t-navy);
}

.trellis-split-head > p.trellis-buildhint {
	flex: 0 1 auto;
	max-width: none;
	font-size: clamp(20px, 1.8vw, 24px);
}

.trellis-buildhint::before {
	content: "";
	flex: none;
	width: 30px;
	height: 19px;
	background:
		repeating-linear-gradient(90deg, var(--t-sage) 0 8px, transparent 8px 11px) 0 0 / 30px 8px no-repeat,
		repeating-linear-gradient(90deg, var(--t-sage-pale) 0 8px, transparent 8px 11px) 0 11px / 30px 8px no-repeat;
}

/* ---------------------------------------------------------------------------
   Reach map
--------------------------------------------------------------------------- */
.trellis-reachwrap {
	display: flex;
	flex-wrap: wrap;
	gap: 64px;
	align-items: center;
}

.trellis-reachwrap__copy {
	flex: 1 1 340px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.trellis-reachwrap__copy h2 {
	max-width: 14ch;
}

.trellis-reach {
	position: relative;
	flex: 1.3 1 460px;
	min-width: 0;
	aspect-ratio: 16 / 11;
	border-radius: 22px;
	overflow: hidden;
	background: #f1f4ee;
	box-shadow: 0 30px 60px rgba(30, 39, 49, 0.18);
}

.trellis-reach i {
	position: absolute;
	display: block;
}

.trellis-reach__road {
	background: #fff;
}

.trellis-reach__road.r1 { left: 0; right: 0; top: 38%; height: 18px; }
.trellis-reach__road.r2 { left: 0; right: 0; top: 74%; height: 12px; }
.trellis-reach__road.r3 { top: 0; bottom: 0; left: 30%; width: 14px; }
.trellis-reach__road.r4 { top: 0; bottom: 0; left: 68%; width: 20px; }
.trellis-reach__road.r5 { left: -10%; width: 130%; top: 12%; height: 10px; transform: rotate(14deg); }

.trellis-reach__house {
	width: 3.2%;
	aspect-ratio: 1;
	border-radius: 3px;
	background: #b4c0ce;
	transform: translate(-50%, -50%);
	transition: background 0.4s ease;
}

.trellis-reach__ring {
	left: 50%;
	top: 56%;
	width: 14%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgba(139, 158, 126, 0.28);
	border: 3px solid var(--t-sage);
	transform: translate(-50%, -50%);
	transition: width 0.9s cubic-bezier(0.3, 1.2, 0.5, 1);
}

.trellis-reach__pin {
	left: 50%;
	top: 56%;
	width: 36px;
	height: 36px;
	border-radius: 50% 50% 50% 0;
	background: var(--t-navy);
	border: 3px solid var(--t-paper);
	transform: translate(-50%, -100%);
	rotate: -45deg;
}

.trellis-switcher-scope[data-active="2"] .trellis-reach__ring { width: 42%; }
.trellis-switcher-scope[data-active="3"] .trellis-reach__ring { width: 190%; }

.trellis-reach__house.lit-1,
.trellis-switcher-scope[data-active="2"] .trellis-reach__house.lit-2,
.trellis-switcher-scope[data-active="3"] .trellis-reach__house:is(.lit-2, .lit-3) {
	background: var(--t-navy);
}

/* ---------------------------------------------------------------------------
   Portrait with name badge
--------------------------------------------------------------------------- */
.trellis-portrait {
	position: relative;
	flex: 0 1 420px;
	min-width: 260px;
	margin-inline: auto;
}

.trellis-portrait .wp-block-image {
	margin: 0;
	aspect-ratio: 4 / 5;
	border-radius: 28px;
	overflow: hidden;
	background: var(--t-sage-pale);
	box-shadow: 0 30px 60px rgba(30, 39, 49, 0.18);
}

.trellis-portrait .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 45% 30%;
}

.trellis-portrait__badge {
	position: absolute;
	left: -20px;
	bottom: 32px;
	padding: 16px 20px;
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	box-shadow: 0 18px 40px rgba(30, 39, 49, 0.3);
}

.trellis-portrait__badge p:first-child {
	font-family: var(--t-serif);
	font-size: 20px;
	line-height: 1.3;
}

.trellis-portrait__badge p:last-child {
	font-size: 14px;
	color: #c9d1db;
}

@media (max-width: 480px) {
	.trellis-portrait__badge {
		left: 12px;
	}
}

.trellis-stories {
	flex: 1 1 480px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.trellis-stories h2 {
	max-width: 18ch;
}

/* ---------------------------------------------------------------------------
   Flip cards (every size church)
--------------------------------------------------------------------------- */
.trellis-flipgrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 18px;
}

.trellis-flipcard {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 30px 28px;
	border-radius: 22px;
	background: rgba(244, 243, 239, 0.05);
	box-shadow: 0 0 0 1px rgba(244, 243, 239, 0.12);
	transition: background 0.35s ease, transform 0.2s ease;
}

.trellis-flipcard h3 {
	font-size: 28px;
	line-height: 1.15;
	text-wrap: balance;
}

.trellis-flipcard h4 {
	font-size: 23px;
	line-height: 1.2;
}

.trellis-flipcard p {
	font-size: 16px;
	line-height: 1.55;
}

.trellis-flipcard.is-ready {
	display: grid;
	cursor: pointer;
}

.trellis-flipcard.is-ready:hover {
	transform: translateY(-3px);
}

.trellis-flipcard__front,
.trellis-flipcard__back {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.trellis-flipcard__front {
	gap: 18px;
}

.trellis-flipcard__front::before {
	content: "\201C";
	height: 28px;
	font-family: var(--t-serif);
	font-size: 64px;
	line-height: 0.6;
	color: var(--t-sage);
}

.trellis-flipcard__more {
	margin-top: auto;
	font-size: 15px;
	font-weight: 600;
	color: var(--t-sage-light);
}

.trellis-flipcard__back {
	gap: 14px;
	opacity: 0;
	transform: translateY(10px);
	color: var(--t-ink);
}

.trellis-flipcard__back :is(h4, p) {
	color: var(--t-ink);
}

.trellis-flipcard__label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--t-navy);
}

.trellis-flipcard__less {
	margin-top: auto;
	font-size: 14px;
	font-weight: 600;
	color: var(--t-navy);
}

.trellis-flipcard.is-flipped {
	background: var(--t-sage-light);
}

.trellis-flipcard.is-flipped .trellis-flipcard__front {
	opacity: 0;
	transform: translateY(-10px);
}

.trellis-flipcard.is-flipped .trellis-flipcard__back {
	opacity: 1;
	transform: none;
}

.trellis-closing {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	padding-top: 40px;
	border-top: 1px solid rgba(244, 243, 239, 0.16);
}

.trellis-closing > p {
	font-family: var(--t-serif);
	font-size: clamp(26px, 2.8vw, 36px);
	line-height: 1.2;
	color: var(--t-paper);
	max-width: 28ch;
	text-wrap: balance;
}

.trellis-closing .wp-block-buttons {
	gap: 14px;
}

.trellis-closing .wp-block-button .wp-block-button__link {
	padding: 17px 26px;
	font-size: 16px;
}

/* ---------------------------------------------------------------------------
   Icon cards
--------------------------------------------------------------------------- */
.trellis-icon-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px;
	border-radius: 22px;
	background: var(--t-paper);
	transition: background 0.25s ease;
	--tile: var(--t-navy);
	--tile-fg: var(--t-paper);
	--tile-size: 56px;
	--icon-size: 28px;
}

.trellis-icon-card:hover {
	background: var(--t-sage-tint);
}

.trellis-icon-card::before {
	content: "";
	width: var(--tile-size);
	height: var(--tile-size);
	border-radius: 18%;
	background: var(--tile);
}

.trellis-icon-card::after {
	content: "";
	position: absolute;
	top: 32px;
	left: 32px;
	width: var(--tile-size);
	height: var(--tile-size);
	background: var(--tile-fg);
	-webkit-mask: var(--t-icon) center / var(--icon-size) no-repeat;
	mask: var(--t-icon) center / var(--icon-size) no-repeat;
}

.trellis-icon-card:nth-child(even) {
	--tile: var(--t-sage);
	--tile-fg: var(--t-ink);
}

.trellis-icon-card h3 {
	font-size: 25px;
	line-height: 1.2;
}

.trellis-icon-card p {
	font-size: 17px;
	line-height: 1.6;
}

.trellis-card-grid.is-care {
	gap: 16px;
	grid-auto-rows: 1fr;
}

.trellis-card-grid.is-care .trellis-icon-card {
	gap: 14px;
	padding: 28px;
	border-radius: 20px;
	background: var(--t-sage-tint);
	--tile: var(--t-navy);
	--tile-fg: var(--t-paper);
	--tile-size: 48px;
	--icon-size: 24px;
}

.trellis-card-grid.is-care .trellis-icon-card::after {
	top: 28px;
	left: 28px;
}

.trellis-card-grid.is-care .trellis-icon-card h3 {
	font-size: 22px;
}

.trellis-card-grid.is-care .trellis-icon-card p {
	font-size: 16px;
	line-height: 1.55;
}

/* ---------------------------------------------------------------------------
   Cost comparison
--------------------------------------------------------------------------- */
.trellis-compare {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 20px;
	align-items: stretch;
}

.trellis-compare__col {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 32px;
	border-radius: 22px;
	background: var(--t-navy-600);
	color: var(--t-paper);
}

.trellis-compare__col h3 {
	font-size: 26px;
	line-height: 1.3;
}

.trellis-checks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.trellis-checks li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	font-size: 17px;
	line-height: 1.5;
}

.trellis-checks li::before {
	content: "✕";
	flex: none;
	width: 24px;
	height: 24px;
	margin-top: 1px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 700;
	background: #46586e;
	color: var(--t-paper);
}

.trellis-checks li.is-yes::before {
	content: "✓";
	background: var(--t-sage);
	color: var(--t-ink);
}

.trellis-compare__col.is-featured {
	background: var(--t-paper);
	color: var(--t-ink);
	box-shadow: 0 0 0 4px var(--t-sage), 0 24px 48px rgba(0, 0, 0, 0.25);
}

.trellis-compare__col.is-featured h3 {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	color: var(--t-navy);
}

.trellis-compare__col.is-featured h3::after {
	content: "";
	flex: none;
	width: 75px;
	height: 22px;
	background: url(../images/trellis-logo.png) right center / contain no-repeat;
}

.trellis-compare__col.is-featured .trellis-checks li.is-yes::before {
	background: var(--t-navy);
	color: var(--t-paper);
}

.trellis-compare__badge {
	position: absolute;
	top: -14px;
	left: 28px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--t-sage);
	color: var(--t-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.trellis-compare__col .wp-block-buttons {
	margin-top: auto;
}

.trellis-compare__col .wp-block-button,
.trellis-compare__col .wp-block-button__link {
	display: block;
	width: 100%;
	text-align: center;
}

.trellis-compare__col .wp-block-button .wp-block-button__link {
	padding: 16px 24px;
	font-size: 16px;
}

/* ---------------------------------------------------------------------------
   Sage band (packages) and mark variants
--------------------------------------------------------------------------- */
.trellis-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px 64px;
	padding: clamp(32px, 5vw, 64px);
	border-radius: 28px;
}

.trellis-band__lead {
	flex: 1 1 360px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.trellis-band__lead h2 {
	font-size: clamp(32px, 3.8vw, 48px);
	line-height: 1.1;
	color: var(--t-ink);
	max-width: 18ch;
}

.trellis-band__body {
	flex: 1.2 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.trellis-band__body p {
	font-size: 18px;
	line-height: 1.65;
}

.trellis-band__body .wp-block-buttons {
	margin-top: 6px;
}

.trellis-band .wp-block-button .wp-block-button__link,
.trellis-unsure .wp-block-button .wp-block-button__link,
.trellis-factbox .wp-block-button .wp-block-button__link {
	padding: 16px 24px;
	font-size: 16px;
}

/* Mark on sage or tint: light vine on navy posts. */
.has-trellis-mark.is-mark-light::before {
	width: 62px;
	height: 62px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='62' height='62'%3E%3Cg fill='%23F4F3EF'%3E%3Crect width='18' height='18' rx='3.2'/%3E%3Crect x='22' width='18' height='18' rx='3.2'/%3E%3Crect x='44' width='18' height='18' rx='3.2'/%3E%3Crect x='22' y='22' width='18' height='18' rx='3.2'/%3E%3Crect x='22' y='44' width='18' height='18' rx='3.2'/%3E%3C/g%3E%3Cg fill='%23233243'%3E%3Crect y='22' width='18' height='18' rx='3.2'/%3E%3Crect x='44' y='22' width='18' height='18' rx='3.2'/%3E%3Crect y='44' width='18' height='18' rx='3.2'/%3E%3Crect x='44' y='44' width='18' height='18' rx='3.2'/%3E%3C/g%3E%3C/svg%3E");
}

.has-trellis-mark.is-mark-sage::before {
	width: 76px;
	height: 76px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='76'%3E%3Cg fill='%238B9E7E'%3E%3Crect width='22' height='22' rx='4'/%3E%3Crect x='27' width='22' height='22' rx='4'/%3E%3Crect x='54' width='22' height='22' rx='4'/%3E%3Crect x='27' y='27' width='22' height='22' rx='4'/%3E%3Crect x='27' y='54' width='22' height='22' rx='4'/%3E%3C/g%3E%3Cg fill='%23233243'%3E%3Crect y='27' width='22' height='22' rx='4'/%3E%3Crect x='54' y='27' width='22' height='22' rx='4'/%3E%3Crect y='54' width='22' height='22' rx='4'/%3E%3Crect x='54' y='54' width='22' height='22' rx='4'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------------------------------------------------------------------------
   FAQ
--------------------------------------------------------------------------- */
.trellis-faq {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: clamp(40px, 6vw, 96px);
}

.trellis-faq__intro {
	flex: 1 1 300px;
	max-width: 400px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.trellis-faq__intro > p:not(.is-style-eyebrow-mark) {
	font-size: 17px;
	color: var(--t-sage-deep);
}

.trellis-faq__intro a {
	font-weight: 600;
}

.trellis-faq__list {
	flex: 2 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.trellis-faq__list .wp-block-details {
	border-top: 1px solid var(--t-hairline);
}

.trellis-faq__list .wp-block-details summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 24px 4px;
	cursor: pointer;
	list-style: none;
	font-family: var(--t-serif);
	font-size: 22px;
	line-height: 1.3;
	color: var(--t-navy);
}

.trellis-faq__list .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.trellis-faq__list .wp-block-details summary::after {
	content: "+";
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--body);
	font-size: 20px;
	line-height: 1;
	background: var(--t-sage-tint);
	color: var(--t-navy);
	transition: transform 250ms ease, background 250ms ease, color 250ms ease;
}

.trellis-faq__list .wp-block-details[open] summary::after {
	transform: rotate(45deg);
	background: var(--t-navy);
	color: var(--t-paper);
}

.trellis-faq__list .wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 56px 28px 4px;
	font-size: 17px;
	line-height: 1.65;
}

/* ---------------------------------------------------------------------------
   CTA variants
--------------------------------------------------------------------------- */
.trellis-cta.is-padded {
	padding-top: var(--t-section);
}

.trellis-cta.is-tint {
	background: var(--t-sage-tint);
}

.trellis-cta.is-plain .trellis-cta__band::before {
	display: none;
}

/* ---------------------------------------------------------------------------
   Our Work
--------------------------------------------------------------------------- */
.trellis-ruled {
	margin-top: 40px !important;
	padding-top: 56px;
	border-top: 1px solid var(--t-hairline);
}

.trellis-work-feature.is-inset .trellis-work-feature__media {
	padding: 0 40px 36px 0;
}

.trellis-work-feature.is-inset .trellis-work-feature__media .is-style-phone {
	right: 0;
	bottom: 0;
	border-radius: 24px;
}

.trellis-work-feature.is-inset .is-style-tag {
	border-radius: 6px;
}

.trellis-work-feature.is-inset .trellis-work-feature__body {
	gap: 18px;
}

.trellis-work-feature.is-inset .trellis-work-feature__body p:not([class]) {
	font-size: 18px;
}

.trellis-work-grid.is-large {
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 32px;
}

.trellis-work-grid.is-large .trellis-work-card h3 {
	font-size: 26px;
}

.trellis-work-grid.is-large .trellis-work-card p:not([class]) {
	font-size: 17px;
}

.trellis-work-card .is-style-arrow-link a {
	font-size: 16px;
	text-underline-offset: 5px;
}

.trellis-work-card .is-style-arrow-link a::after,
.trellis-service-card .is-style-arrow-link a::after,
.trellis-other-card a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

/* ---------------------------------------------------------------------------
   Beyond Websites + service pages
--------------------------------------------------------------------------- */
.trellis-service-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	gap: 24px;
}

.trellis-service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: 24px;
	overflow: hidden;
	background: var(--t-off-white);
	box-shadow: 0 1px 2px rgba(30, 39, 49, 0.06);
	transition: box-shadow 0.25s ease;
}

.trellis-service-card:hover {
	box-shadow: 0 18px 40px rgba(30, 39, 49, 0.14);
}

.trellis-service-card .wp-block-image {
	margin: 0;
}

.trellis-service-card .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--t-sage-tint);
}

.trellis-service-card__body {
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.trellis-service-card__body h3 {
	font-size: 26px;
	line-height: 1.2;
}

.trellis-service-card__body p {
	font-size: 17px;
	line-height: 1.6;
}

.trellis-service-card__body .is-style-arrow-link {
	margin-top: 4px !important;
}

.trellis-service-card__body .is-style-arrow-link a {
	font-size: 16px;
	text-underline-offset: 5px;
}

.trellis-unsure {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	padding: 36px;
	border-radius: 24px;
}

.trellis-unsure > .wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.trellis-unsure h3 {
	font-size: 30px;
	line-height: 1.15;
}

.trellis-unsure p {
	font-size: 17px;
	line-height: 1.6;
}

.trellis-tallimg {
	margin: 0;
	aspect-ratio: 4 / 5;
	border-radius: 28px;
	overflow: hidden;
	background: var(--t-sage-pale);
}

.trellis-tallimg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.trellis-sidequote {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 40px;
	border-radius: 28px;
}

.trellis-sidequote p {
	font-family: var(--t-serif);
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.2;
	color: var(--t-navy);
}

.trellis-num-grid {
	counter-reset: trellis-num;
}

.trellis-num-card {
	counter-increment: trellis-num;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 30px;
	border-radius: 22px;
	overflow: hidden;
	background: var(--t-paper);
	transition: background 0.25s ease;
}

.trellis-num-card:hover {
	background: var(--t-off-white);
}

.trellis-num-card > .wp-block-image {
	margin: -30px -30px 8px;
}

.trellis-num-card > .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	background: var(--t-sage-pale);
}

.trellis-num-card h3 {
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: 23px;
	line-height: 1.2;
}

.trellis-num-card h3::before {
	content: counter(trellis-num);
	width: 44px;
	height: 44px;
	border-radius: 18%;
	display: grid;
	place-items: center;
	font-size: 19px;
	background: var(--t-navy);
	color: var(--t-paper);
}

.trellis-num-card:nth-child(even) h3::before {
	background: var(--t-sage);
	color: var(--t-ink);
}

.trellis-num-card p {
	font-size: 17px;
	line-height: 1.6;
}

.trellis-step-grid {
	counter-reset: trellis-num;
}

.trellis-step {
	counter-increment: trellis-num;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 24px;
	border-top: 2px solid var(--t-navy);
}

.trellis-step::before {
	content: counter(trellis-num);
	font-family: var(--t-serif);
	font-size: 48px;
	line-height: 1;
	color: var(--t-sage);
}

.trellis-step h3 {
	font-size: 24px;
	line-height: 1.3;
}

.trellis-step p {
	font-size: 17px;
	line-height: 1.6;
}

.trellis-note {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px 64px;
	padding: clamp(32px, 5vw, 64px);
	border-radius: 28px;
}

.trellis-inner .trellis-note h2 {
	flex: 1 1 300px;
	font-size: clamp(30px, 3.4vw, 44px);
	line-height: 1.1;
}

.trellis-note > .wp-block-group {
	flex: 1.4 1 400px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.trellis-note p {
	font-size: 18px;
	line-height: 1.65;
	color: var(--t-mist);
}

.trellis-others {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.trellis-others__title {
	font-family: var(--t-serif);
	font-size: 28px;
	line-height: 1.3;
	color: var(--t-navy);
}

.trellis-others__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 16px;
}

.trellis-other-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	overflow: hidden;
	background: var(--t-off-white);
	transition: background 0.25s ease;
}

.trellis-other-card:hover {
	background: var(--t-sage-tint);
}

.trellis-other-card .wp-block-image {
	margin: 0;
}

.trellis-other-card .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--t-sage-tint);
}

.trellis-other-card p {
	padding: 16px 18px;
	font-family: var(--t-serif);
	font-size: 18px;
	line-height: 1.25;
}

.trellis-other-card a {
	color: var(--t-navy);
	text-decoration: none;
}

/* ---------------------------------------------------------------------------
   About
--------------------------------------------------------------------------- */
.trellis-story {
	position: relative;
	overflow: hidden;
	padding-block: clamp(96px, 14vw, 200px) var(--t-section);
}

.trellis-story .trellis-split__main {
	flex: 1.3 1 420px;
	gap: 32px;
}

.trellis-inner .trellis-story h2 {
	font-size: clamp(36px, 4.6vw, 60px);
	line-height: 1.08;
	letter-spacing: -0.01em;
	max-width: 22ch;
}

.trellis-story .trellis-split__main > p {
	font-size: 20px;
	line-height: 1.6;
	max-width: 52ch;
}

.trellis-story .trellis-split__main > p.trellis-verse {
	font-family: var(--t-serif);
	color: var(--t-sage-text);
}

.trellis-vine {
	position: relative;
	flex: 1 1 320px;
	max-width: 460px;
	aspect-ratio: 823 / 1068;
}

.trellis-vine .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0;
}

.trellis-vine .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.trellis-vine .wp-block-image:last-child {
	transition: clip-path 0.12s linear;
	will-change: clip-path;
}

.trellis-jon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(40px, 6vw, 96px);
}

.trellis-jon__photo {
	position: relative;
	flex: 1 1 360px;
	max-width: 500px;
}

.trellis-jon__photo .wp-block-image {
	margin: 0;
	aspect-ratio: 4 / 5;
	border-radius: 28px;
	overflow: hidden;
	background: var(--t-sage-pale);
}

.trellis-jon__photo .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 45% 30%;
}

.trellis-jon__photo::after {
	content: "";
	position: absolute;
	right: -24px;
	bottom: 40px;
	width: 82px;
	height: 82px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='82' height='82'%3E%3Cg fill='%238B9E7E'%3E%3Crect width='24' height='24' rx='4.3'/%3E%3Crect x='29' width='24' height='24' rx='4.3'/%3E%3Crect x='58' width='24' height='24' rx='4.3'/%3E%3Crect x='29' y='29' width='24' height='24' rx='4.3'/%3E%3Crect x='29' y='58' width='24' height='24' rx='4.3'/%3E%3C/g%3E%3Cg fill='%235B6F87'%3E%3Crect y='29' width='24' height='24' rx='4.3'/%3E%3Crect x='58' y='29' width='24' height='24' rx='4.3'/%3E%3Crect y='58' width='24' height='24' rx='4.3'/%3E%3Crect x='58' y='58' width='24' height='24' rx='4.3'/%3E%3C/g%3E%3C/svg%3E") no-repeat;
}

@media (max-width: 600px) {
	.trellis-jon__photo::after {
		right: -8px;
	}
}

.trellis-jon__copy {
	flex: 1 1 440px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.trellis-jon__copy h2 {
	max-width: 18ch;
}

.trellis-jon__copy > p:not(.is-style-eyebrow-mark) {
	font-size: 18px;
	line-height: 1.65;
	max-width: 56ch;
}

.trellis-stats {
	flex: 1 1 100%;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 20px;
}

.trellis-stat {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 28px 30px;
	border-radius: 20px;
	background: rgba(244, 243, 239, 0.06);
}

.trellis-stat p:first-child {
	font-family: var(--t-serif);
	font-size: 44px;
	line-height: 1.3;
	color: var(--t-sage-light);
}

.trellis-stat p:last-child {
	font-size: 16px;
	line-height: 1.45;
	color: #c9d1db;
}

.trellis-fact-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 20px;
}

.trellis-fact-card {
	display: flex;
	flex-direction: column;
	border-radius: 22px;
	overflow: hidden;
	background: var(--t-paper);
}

.trellis-fact-card .wp-block-image {
	margin: 0;
}

.trellis-fact-card .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.trellis-fact-card__body {
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.trellis-fact-card__body h3 {
	font-size: 21px;
	line-height: 1.3;
}

.trellis-fact-card__body p {
	font-size: 16px;
	line-height: 1.55;
}

/* ---------------------------------------------------------------------------
   Privacy Policy
--------------------------------------------------------------------------- */
.trellis-policy {
	padding-block: 96px var(--t-section);
}

.trellis-policy__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 48px clamp(48px, 6vw, 96px);
}

.trellis-policy__nav {
	flex: 1 1 260px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 28px 24px;
	border-radius: 22px;
}

@media (min-width: 1000px) {
	.trellis-policy__nav {
		position: sticky;
		top: 104px;
		max-width: 300px;
	}

	.admin-bar .trellis-policy__nav {
		top: 136px;
	}
}

.trellis-policy__nav .is-style-eyebrow {
	font-size: 13px;
	margin-bottom: 8px !important;
}

.trellis-policy__nav p:not(.is-style-eyebrow) {
	font-size: 15px;
	line-height: 1.35;
}

.trellis-policy__nav a {
	display: block;
	padding: 5px 0;
	text-decoration: none;
}

.trellis-policy__body {
	flex: 1 1 560px;
	min-width: 0;
	max-width: 760px;
	display: flex;
	flex-direction: column;
	gap: 64px;
	font-size: 18px;
	line-height: 1.7;
	counter-reset: trellis-policy;
}

.trellis-policy__section {
	display: flex;
	flex-direction: column;
	gap: 18px;
	scroll-margin-top: 104px;
}

.trellis-inner .trellis-policy__section h2 {
	font-size: 32px;
	line-height: 1.15;
	text-wrap: wrap;
}

.trellis-policy__section.is-numbered {
	counter-increment: trellis-policy;
}

.trellis-policy__section.is-numbered h2 {
	display: flex;
	align-items: baseline;
	gap: 16px;
}

.trellis-policy__section.is-numbered h2::before {
	content: counter(trellis-policy, decimal-leading-zero);
	font-size: 20px;
	color: var(--t-sage);
}

.trellis-policy__section h3 {
	margin-top: 8px !important;
	font-family: var(--wp--preset--font-family--body);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
}

.trellis-policy__section a {
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.trellis-policy__section strong {
	color: var(--t-navy);
}

.trellis-squares,
.trellis-chips,
.trellis-deflist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.trellis-squares {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.trellis-squares li {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin: 0;
}

.trellis-squares li::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--t-sage);
	transform: translateY(-2px);
}

.trellis-chips {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 10px;
}

.trellis-chips li {
	margin: 0;
	padding: 12px 16px;
	border-radius: 10px;
	background: #fff;
	font-size: 16px;
}

.trellis-deflist {
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
}

.trellis-deflist li {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	margin: 0;
	padding: 18px 22px;
	border-bottom: 1px solid var(--t-sage-tint);
}

.trellis-deflist li:last-child {
	border-bottom: 0;
}

.trellis-deflist li strong {
	flex: 0 0 200px;
}

.trellis-deflist li span {
	flex: 1 1 280px;
}

.trellis-paycards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 16px;
}

.trellis-paycards > .wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	border-radius: 18px;
	background: #fff;
	font-size: 16px;
	line-height: 1.6;
}

.trellis-paycards h3 {
	margin-top: 0 !important;
	font-family: var(--t-serif);
	font-size: 22px;
	font-weight: 400;
}

.trellis-contact-card {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 48px;
	padding: 32px;
	border-radius: 22px;
}

.trellis-contact-card > .wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.trellis-contact-card strong {
	font-family: var(--t-serif);
	font-size: 22px;
	font-weight: 400;
	color: var(--t-paper);
}

.trellis-contact-card a {
	color: var(--t-paper);
}

.trellis-contact-card .is-style-eyebrow {
	font-size: 13px;
	margin-top: 8px !important;
}

.trellis-contact-card .is-style-eyebrow:first-child {
	margin-top: 0 !important;
}

/* ---------------------------------------------------------------------------
   Case study
--------------------------------------------------------------------------- */
.trellis-factbox {
	flex: 0 1 300px;
	display: flex;
	flex-direction: column;
	padding: 28px;
	border-radius: 22px;
}

.trellis-factbox__row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 0;
	border-bottom: 1px solid rgba(30, 39, 49, 0.12);
	font-size: 17px;
}

.trellis-factbox__row:first-child {
	padding-top: 0;
}

.trellis-factbox__row .is-style-eyebrow {
	font-size: 13px;
	letter-spacing: 0.12em;
	color: var(--t-sage-deep);
}

.trellis-factbox .wp-block-buttons {
	margin-top: 20px;
}

.trellis-factbox .wp-block-button,
.trellis-factbox .wp-block-button__link {
	display: block;
	width: 100%;
	text-align: center;
}

.trellis-casestory {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.trellis-casestory > .wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.trellis-inner .trellis-casestory h2 {
	font-size: clamp(28px, 3vw, 38px);
}

.trellis-casestory p {
	font-size: 19px;
	line-height: 1.65;
}

.trellis-placeholder {
	padding: 20px;
	border: 2px dashed var(--t-sage-light);
	border-radius: 16px;
	font-family: var(--t-mono);
	font-size: 13px !important;
	line-height: 1.6 !important;
	color: var(--t-sage-deep);
}

.trellis-placeholder-tag {
	align-self: flex-start;
	width: fit-content;
	padding: 4px 8px;
	border: 1px dashed var(--t-sage-light);
	border-radius: 4px;
	font-family: var(--t-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--t-sage-light);
}

.trellis-ba {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 24px;
}

.trellis-ba .wp-block-image {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.trellis-ba .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: center top;
	border-radius: 16px;
}

.trellis-ba .wp-block-image:last-child img {
	box-shadow: 0 12px 30px rgba(30, 39, 49, 0.14);
}

.trellis-ba figcaption {
	margin: 0;
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--t-sage-text);
}

.trellis-quote-card {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: clamp(32px, 5vw, 64px);
	border-radius: 28px;
}

.trellis-quote-card p.trellis-quote {
	font-family: var(--t-serif);
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1.25;
	max-width: 28ch;
}

.trellis-quote-card p:last-child {
	font-size: 17px;
	color: var(--t-sage-pale);
}

.is-serif-lead .trellis-page-hero__lead {
	font-family: var(--t-serif);
	font-size: clamp(20px, 2vw, 26px);
	line-height: 1.35;
	max-width: 30ch;
}

.is-serif-lead .wp-block-buttons {
	margin-top: 6px;
}

.trellis-split-head > .trellis-stack {
	flex: 1 1 420px;
	min-width: 0;
}
