/*
Theme Name:   Turner-Riggs
Theme URI:    https://www.turner-riggs.com
Description:  Child theme for Turner-Riggs (Kadence parent). Light grey paper, ink type, orange accent; EB Garamond and Hanken Grotesk. Ships the Home, Work, Services and About page patterns, a custom header and footer, and a full-width page template.
Author:       Turner-Riggs
Author URI:   https://www.turner-riggs.com
Template:     kadence
Version:      2.1.2
Requires at least: 6.4
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  turner-riggs
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--tr-paper: #F3F3F1;
	--tr-ink: #18191B;
	--tr-muted: #5C5E63;
	--tr-body-soft: #3A3B3F;
	--tr-tile: #E4E4E0;
	--tr-line: #D4D4CF;
	--accent: #E06A3A;          /* change the accent here (and in the two SVG data URIs below) */
	--on-accent: #18191B;       /* text on the accent: ink for light accents, #F3F3F1 for dark ones */

	--tr-serif: 'EB Garamond', Garamond, Georgia, serif;
	--tr-sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;

	--tr-side: clamp(20px, 5.5vw, 80px);      /* page side padding */
	--tr-gap: clamp(24px, 4vw, 64px);         /* gutter between the 30% column and the content */
	--tr-space: clamp(96px, 11vw, 168px);     /* space between major sections */
	--tr-ease: cubic-bezier(.22, 1, .36, 1);

	--tr-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg fill='none' stroke='%23E06A3A' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M4.6 0H11.2M4.25 1.76L7.76 3.21M3.25 3.25L7.92 7.92M1.76 4.25L3.21 7.76M0 4.6V11.2M-1.76 4.25L-3.21 7.76M-3.25 3.25L-7.92 7.92M-4.25 1.76L-7.76 3.21M-4.6 0H-11.2M-4.25 -1.76L-7.76 -3.21M-3.25 -3.25L-7.92 -7.92M-1.76 -4.25L-3.21 -7.76M0 -4.6V-11.2M1.76 -4.25L3.21 -7.76M3.25 -3.25L7.92 -7.92M4.25 -1.76L7.76 -3.21'/%3E%3C/g%3E%3Ccircle r='2.6' fill='%23E06A3A'/%3E%3C/svg%3E");
	--tr-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4.5 12 8l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

	/* Kadence's own palette, remapped so any Kadence screen (blog, 404, search) matches */
	--global-palette1: #E06A3A;
	--global-palette2: #C4552A;
	--global-palette3: #18191B;
	--global-palette4: #18191B;
	--global-palette5: #3A3B3F;
	--global-palette6: #5C5E63;
	--global-palette7: #E4E4E0;
	--global-palette8: #F3F3F1;
	--global-palette9: #FFFFFF;
	--global-body-font-family: var(--tr-sans);
	--global-heading-font-family: var(--tr-serif);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
body.tr-site,
.editor-styles-wrapper {
	background: var(--tr-paper);
	color: var(--tr-ink);
	font-family: var(--tr-sans);
	font-size: 17px;
	line-height: 1.5;
	letter-spacing: -0.005em;
	-webkit-font-smoothing: antialiased;
}
body.tr-site #wrapper,
body.tr-site #inner-wrap { background: var(--tr-paper); }
body.tr-site { overflow-x: hidden; }
.tr-site a { color: var(--tr-ink); }
.tr-site a:hover { color: #4A4B4F; }

.tr-page { width: 100%; min-width: 0; }
:is(.tr-page, .is-root-container) *, .tr-header *, .tr-footer * { box-sizing: border-box; }

/* Neutralise default block spacing inside our layouts: every margin below is explicit */
:is(.tr-page, .is-root-container) :where(.wp-block-group, .wp-block-heading, p, .wp-block-buttons, .wp-block-list) { margin: 0; }
:is(.tr-page, .is-root-container) .wp-block-image { margin: 0; }
:is(.tr-page, .is-root-container) :where(.is-layout-flow) > * { margin-block-start: 0; margin-block-end: 0; }

/* In the block editor, let the page sections run full width like the front end */
.is-root-container > .wp-block-group:is(.tr-hero, .tr-section, .tr-contact) { max-width: none; }
.is-root-container > .wp-block-group.tr-contact { margin-left: clamp(8px, 1vw, 16px) !important; margin-right: clamp(8px, 1vw, 16px) !important; }

/* ==========================================================================
   3. Header
   ========================================================================== */
.tr-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px clamp(18px, 2.8vw, 44px);
	padding: 22px var(--tr-side);
	background: var(--tr-paper);
	font-family: var(--tr-sans);
}
.tr-header .tr-logo { margin-right: auto; }
.tr-logo { display: inline-flex; align-items: center; text-decoration: none; transition: opacity 180ms ease; }
.tr-logo:hover { opacity: .75; }
.tr-logo img { display: block; height: clamp(38px, 3.4vw, 48px); width: auto; }
.tr-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(18px, 2.8vw, 44px); }

/* Phones: logo, then the page links; Say Hello is hidden (the hero's
   "Ask us anything" and the contact panel cover it) */
@media (max-width: 640px) {
	.tr-header { padding-top: 16px; padding-bottom: 8px; row-gap: 6px; }
	.tr-logo img { height: 36px; }
	body.tr-site a.tr-cta.tr-cta-lg { display: none; }
	.tr-menu { flex: 0 0 100%; gap: 4px 28px; }
	body.tr-site a.tr-nav { font-size: 18px; padding: 8px 0; }
}

.tr-site a.tr-nav {
	color: var(--tr-ink);
	font-size: 20px;
	line-height: 1.5;
	padding: 10px 0;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 7px;
	text-decoration-color: transparent;
	transition: text-decoration-color 180ms ease, text-underline-offset 180ms ease;
}
.tr-site a.tr-nav:hover { color: var(--tr-ink); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.tr-site a.tr-nav[aria-current="page"] { text-decoration-color: var(--tr-ink); text-underline-offset: 4px; }

/* ==========================================================================
   4. Buttons
   Dark pill with an accent sweep on hover (.tr-cta), soft grey pill (.tr-soft)
   ========================================================================== */
.tr-site a.tr-cta,
.wp-block-button.tr-cta > .wp-block-button__link {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--tr-ink);
	color: var(--tr-paper);
	box-shadow: none;
	font-family: var(--tr-sans);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.005em;
	text-decoration: none;
	transition: color 260ms ease, transform 140ms var(--tr-ease);
}
.tr-site a.tr-cta::before,
.wp-block-button.tr-cta > .wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 420ms var(--tr-ease);
}
.wp-block-button.tr-cta > .wp-block-button__link::after,
.wp-block-button.tr-arrow > .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 17px;
	height: 17px;
	background: currentColor;
	-webkit-mask: var(--tr-arrow) center / contain no-repeat;
	mask: var(--tr-arrow) center / contain no-repeat;
	transition: transform 260ms var(--tr-ease);
}
.tr-cta-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; color: currentColor; }
.tr-cta-ico svg { width: 17px; height: 17px; transition: transform 260ms var(--tr-ease); }

.tr-site a.tr-cta:hover,
.wp-block-button.tr-cta > .wp-block-button__link:hover { color: var(--on-accent); background: var(--tr-ink); }
.tr-site a.tr-cta:hover::before,
.wp-block-button.tr-cta > .wp-block-button__link:hover::before { transform: scaleX(1); }
.tr-site a.tr-cta:hover .tr-cta-ico svg,
.wp-block-button.tr-cta > .wp-block-button__link:hover::after { transform: translateX(3px); }
.tr-site a.tr-cta:active,
.wp-block-button.tr-cta > .wp-block-button__link:active { transform: scale(.97); }

.tr-site a.tr-cta.tr-cta-lg { min-height: 52px; padding: 0 24px 0 26px; font-size: 19px; }

/* Dark pill on the orange panel sweeps to paper */
.wp-block-button.tr-cta-panel > .wp-block-button__link::before { background: var(--tr-paper); }
.wp-block-button.tr-cta-panel > .wp-block-button__link:hover { color: var(--tr-ink); }

.wp-block-button.tr-soft > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--tr-tile);
	color: var(--tr-ink);
	box-shadow: inset 0 0 0 1.5px var(--tr-tile);
	font-family: var(--tr-sans);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.005em;
	text-decoration: none;
	transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 140ms var(--tr-ease);
}
.wp-block-button.tr-soft.tr-arrow > .wp-block-button__link { padding: 0 22px 0 24px; }
.wp-block-button.tr-soft.tr-arrow > .wp-block-button__link::after { width: 16px; height: 16px; }
.wp-block-button.tr-soft > .wp-block-button__link:hover { background: transparent; color: var(--tr-ink); box-shadow: inset 0 0 0 1.5px var(--tr-ink); }
.wp-block-button.tr-soft > .wp-block-button__link:active { transform: scale(.97); background-color: rgba(24, 25, 27, .08); }

.tr-site a.tr-cta:focus-visible,
.wp-block-button.tr-cta > .wp-block-button__link:focus-visible,
.wp-block-button.tr-soft > .wp-block-button__link:focus-visible,
.tr-site a.tr-nav:focus-visible,
.tr-logo:focus-visible,
.tr-site a.tr-foot:focus-visible { outline: 2px solid var(--tr-ink); outline-offset: 3px; border-radius: 999px; }
.wp-block-button.tr-cta-panel > .wp-block-button__link:focus-visible { outline-color: var(--on-accent); }

.wp-block-buttons.tr-actions { display: flex; flex-wrap: wrap; gap: 12px; }
:is(.tr-page, .is-root-container) .wp-block-buttons.tr-actions { margin-top: 32px; }
:is(.tr-page, .is-root-container) .wp-block-buttons.tr-actions > .wp-block-button { margin: 0; }

/* ==========================================================================
   5. Layout: the 30% column
   A row reserves a 30% left column (an empty pseudo element) and puts the
   content beside it; on narrow screens the column collapses.
   ========================================================================== */
.tr-row {
	display: flex;
	flex-wrap: wrap;
	row-gap: 20px;
	align-items: flex-start;
}
.tr-row::before {
	content: "";
	flex: 1 1 200px;
	max-width: 30%;
	margin-right: var(--tr-gap);
}
.tr-col { flex: 999 1 560px; min-width: 0; }

.tr-hero { padding: clamp(56px, 8vw, 128px) var(--tr-side) 0; }
.tr-hero-home .tr-row { row-gap: 16px; }

.tr-section { padding: 0 var(--tr-side); }
:is(.tr-page, .is-root-container) .tr-section-first { padding-top: clamp(80px, 9vw, 144px); }
:is(.tr-page, .is-root-container) .tr-section-pad { padding-top: var(--tr-space); }
:is(.tr-page, .is-root-container) .tr-mt-section { margin-top: var(--tr-space); }

/* ==========================================================================
   6. Type
   ========================================================================== */
:is(.tr-page, .is-root-container) .tr-h1 {
	max-width: 15em;
	font-family: var(--tr-serif);
	font-weight: 400;
	font-size: clamp(36px, 4.6vw, 82px);
	line-height: 1;
	letter-spacing: -0.025em;
	text-wrap: balance;
	color: var(--tr-ink);
}
:is(.tr-page, .is-root-container) .tr-intro {
	margin-top: clamp(24px, 3vw, 40px);
	max-width: 34ch;
	font-family: var(--tr-serif);
	font-size: clamp(21px, 1.2rem + 0.5vw, 26px);
	line-height: 1.3;
}
:is(.tr-page, .is-root-container) .tr-aside { margin-top: 20px; font-size: 17px; color: var(--tr-muted); }
:is(.tr-page, .is-root-container) .tr-note {
	margin-top: 24px;
	max-width: 52ch;
	font-family: var(--tr-serif);
	font-size: clamp(19px, 1.05rem + 0.3vw, 22px);
	line-height: 1.45;
	color: var(--tr-body-soft);
}
:is(.tr-page, .is-root-container) .tr-note a {
	color: var(--tr-ink);
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* Section heading with the accent rule and sunburst */
.tr-sechead {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}
.tr-sechead::before {
	content: "";
	flex: 1 1 calc(200px + var(--tr-gap));
	max-width: calc(30% + var(--tr-gap));
	font-size: clamp(30px, 1.2rem + 2vw, 48px);
	height: 1.05em;
	background:
		var(--tr-sun) right 17px top calc(.555em - 13px) / 26px 26px no-repeat,
		linear-gradient(var(--accent), var(--accent)) left 0 top calc(.555em - 1.5px) / calc(100% - 30px) 3px no-repeat;
}
:is(.tr-page, .is-root-container) .tr-h2 {
	flex: 999 1 560px;
	min-width: 0;
	max-width: 24ch;
	font-family: var(--tr-serif);
	font-weight: 400;
	font-size: clamp(30px, 1.2rem + 2vw, 48px);
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--tr-ink);
}
:is(.tr-page, .is-root-container) .tr-sechead-wide .tr-h2 { max-width: 26ch; }
:is(.tr-page, .is-root-container) .tr-sechead-xwide .tr-h2 { max-width: 30ch; }

:is(.tr-page, .is-root-container) .tr-name {
	font-family: var(--tr-sans);
	font-size: clamp(22px, 1rem + 0.8vw, 28px);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -0.02em;
	color: var(--tr-ink);
}
:is(.tr-page, .is-root-container) .tr-blurb {
	max-width: 46ch;
	font-family: var(--tr-serif);
	font-size: clamp(20px, 1.1rem + 0.4vw, 24px);
	line-height: 1.35;
}
:is(.tr-page, .is-root-container) .tr-lead {
	max-width: 38ch;
	font-family: var(--tr-serif);
	font-size: clamp(21px, 1.1rem + 0.6vw, 27px);
	line-height: 1.32;
}
:is(.tr-page, .is-root-container) .tr-body {
	max-width: 58ch;
	font-family: var(--tr-serif);
	font-size: clamp(19px, 1.05rem + 0.3vw, 22px);
	line-height: 1.45;
}
:is(.tr-page, .is-root-container) .tr-col > .tr-body,
:is(.tr-page, .is-root-container) .tr-col > .tr-lead + .tr-body,
:is(.tr-page, .is-root-container) .tr-col > .tr-body + .tr-body { margin-top: 18px; }
:is(.tr-page, .is-root-container) .tr-col > .tr-lead:first-child { margin-top: 0; }
:is(.tr-page, .is-root-container) .tr-case-text .tr-col > .wp-block-buttons.tr-actions { margin-top: 28px; }

/* ==========================================================================
   7. Image tiles
   ========================================================================== */
.tr-tiles { display: flex; flex-wrap: wrap; gap: 12px; }
:is(.tr-page, .is-root-container) .wp-block-image.tr-tile {
	position: relative;
	min-width: 0;
	border-radius: 12px;
	overflow: hidden;
}
:is(.tr-page, .is-root-container) .wp-block-image.tr-tile img { display: block; }

:is(.tr-page, .is-root-container) .tr-dark { background: var(--tr-ink); }
:is(.tr-page, .is-root-container) .tr-grey { background: var(--tr-tile); }
:is(.tr-page, .is-root-container) .tr-white { background: #FFFFFF; }

/* flex shares */
:is(.tr-page, .is-root-container) .tr-w3 { flex: 3 1 520px; }
:is(.tr-page, .is-root-container) .tr-w2 { flex: 2 1 300px; }
:is(.tr-page, .is-root-container) .tr-c1 { flex: 1 1 420px; }
:is(.tr-page, .is-root-container) .tr-c2 { flex: 2 1 420px; }
:is(.tr-page, .is-root-container) .tr-c1s { flex: 1 1 220px; }

/* fits */
:is(.tr-page, .is-root-container) .wp-block-image.tr-fit-cover img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
:is(.tr-page, .is-root-container) .wp-block-image.tr-fit-contain { display: flex; align-items: center; justify-content: center; padding: clamp(20px, 2.6vw, 40px); }
:is(.tr-page, .is-root-container) .wp-block-image.tr-fit-contain img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
:is(.tr-page, .is-root-container) .wp-block-image.tr-fit-natural { display: flex; align-items: center; }
:is(.tr-page, .is-root-container) .wp-block-image.tr-fit-natural img { width: 100%; height: auto; border-radius: 4px; }
:is(.tr-page, .is-root-container) .wp-block-image.tr-radius-6 img { border-radius: 6px; }
:is(.tr-page, .is-root-container) .wp-block-image.tr-pad { padding: clamp(20px, 3vw, 48px); }
:is(.tr-page, .is-root-container) .wp-block-image.tr-pad-sm { padding: clamp(16px, 2.2vw, 32px); }
:is(.tr-page, .is-root-container) .wp-block-image.tr-pad-xs { padding: clamp(16px, 2vw, 32px); }
.tr-feature .wp-block-image.tr-pad { padding: clamp(20px, 2.6vw, 40px); justify-content: center; }

/* positions */
:is(.tr-page, .is-root-container) .wp-block-image.tr-pos-0-0 img { object-position: 0% 0%; }
:is(.tr-page, .is-root-container) .wp-block-image.tr-pos-50-30 img { object-position: 50% 30%; }
:is(.tr-page, .is-root-container) .wp-block-image.tr-pos-50-40 img { object-position: 50% 40%; }
:is(.tr-page, .is-root-container) .wp-block-image.tr-pos-50-55 img { object-position: 50% 55%; }
:is(.tr-page, .is-root-container) .wp-block-image.tr-pos-70-50 img { object-position: 70% 50%; }

/* heights */
:is(.tr-page, .is-root-container) .tr-h-lg { height: clamp(380px, 34vw, 540px); }
:is(.tr-page, .is-root-container) .tr-minh { min-height: clamp(280px, 26vw, 460px); }
:is(.tr-page, .is-root-container) .tr-ratio { aspect-ratio: 16 / 10; }

/* Hero collage */
.tr-collage { display: flex; flex-direction: column; gap: 12px; }
:is(.tr-page, .is-root-container) .tr-collage { margin-top: clamp(56px, 7vw, 112px); }
.tr-crow { display: flex; flex-wrap: wrap; gap: 12px; }
:is(.tr-page, .is-root-container) .tr-crow-1 > .tr-tile { height: clamp(260px, 32vw, 520px); }
:is(.tr-page, .is-root-container) .tr-crow-2 > .tr-tile { height: clamp(260px, 30vw, 460px); }
:is(.tr-page, .is-root-container) .tr-crow-3 > .tr-tile { height: clamp(200px, 20vw, 300px); }

/* ==========================================================================
   8. Project blocks (homepage)
   ========================================================================== */
:is(.tr-page, .is-root-container) .tr-project { margin-top: clamp(48px, 6vw, 88px); }
:is(.tr-page, .is-root-container) .tr-project.tr-project-next { margin-top: clamp(64px, 7vw, 104px); }
.tr-cap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px var(--tr-gap);
	align-items: baseline;
}
:is(.tr-page, .is-root-container) .tr-cap { margin-top: 20px; }
:is(.tr-page, .is-root-container) .tr-cap > .tr-name { flex: 1 1 260px; min-width: 0; text-align: right; }
:is(.tr-page, .is-root-container) .tr-cap > .tr-cap-text { flex: 2 1 420px; min-width: 0; }

.tr-duo { display: flex; flex-wrap: wrap; gap: 40px 12px; align-items: flex-start; }
.tr-duo-a { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; }
.tr-duo-b { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; }
:is(.tr-page, .is-root-container) .tr-duo .tr-name,
:is(.tr-page, .is-root-container) .tr-pair-item .tr-name { margin-top: 20px; }
:is(.tr-page, .is-root-container) .tr-duo .tr-blurb { margin-top: 12px; }

.tr-pair { display: flex; flex-wrap: wrap; gap: 56px 12px; align-items: flex-start; }
:is(.tr-page, .is-root-container) .tr-sechead + .tr-pair { margin-top: clamp(48px, 6vw, 88px); }
.tr-pair-item { flex: 1 1 420px; min-width: 0; }
:is(.tr-page, .is-root-container) .tr-pair-item .tr-blurb { margin-top: 10px; }
:is(.tr-page, .is-root-container) .tr-blurb.tr-blurb-narrow { max-width: 42ch; }

/* ==========================================================================
   9. Contact panel
   ========================================================================== */
:is(.tr-page, .is-root-container) .tr-contact {
	margin: var(--tr-space) clamp(8px, 1vw, 16px) 0;
	border-radius: 16px;
	background: var(--accent);
	color: var(--on-accent);
	padding: clamp(56px, 8vw, 112px) clamp(12px, 4.5vw, 64px);
}
.tr-contact .tr-row { row-gap: 0; }
:is(.tr-page, .is-root-container) .tr-contact-title {
	max-width: 26ch;
	font-family: var(--tr-serif);
	font-weight: 400;
	font-size: clamp(32px, 1.2rem + 2.4vw, 56px);
	line-height: 1.04;
	letter-spacing: -0.02em;
	color: var(--on-accent);
}
:is(.tr-page, .is-root-container) .tr-contact .wp-block-buttons.tr-actions { margin-top: 36px; }

/* ==========================================================================
   10. About
   ========================================================================== */
.tr-seven {
	counter-reset: tr-seven;
	border-bottom: 1px solid var(--tr-line);
}
:is(.tr-page, .is-root-container) .tr-seven { margin-top: clamp(40px, 5vw, 72px); }
.tr-seven-item {
	counter-increment: tr-seven;
	display: flex;
	flex-wrap: wrap;
	column-gap: var(--tr-gap);
	row-gap: 8px;
	align-items: baseline;
	padding: clamp(24px, 2.6vw, 36px) 0;
	border-top: 1px solid var(--tr-line);
}
.tr-seven-item::before {
	content: counter(tr-seven, decimal-leading-zero);
	flex: 1 1 200px;
	max-width: 30%;
	text-align: right;
	font-family: var(--tr-serif);
	font-size: clamp(30px, 1.2rem + 2vw, 48px);
	line-height: 1;
	color: var(--accent);
}
.tr-seven-body {
	flex: 999 1 560px;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px clamp(24px, 3vw, 48px);
	align-items: baseline;
}
:is(.tr-page, .is-root-container) .tr-seven-title {
	flex: 1 1 240px;
	font-family: var(--tr-sans);
	font-size: clamp(21px, 1rem + 0.6vw, 26px);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--tr-ink);
}
:is(.tr-page, .is-root-container) .tr-seven-text {
	flex: 1.4 1 320px;
	max-width: 46ch;
	font-family: var(--tr-serif);
	font-size: clamp(19px, 1.05rem + 0.3vw, 22px);
	line-height: 1.4;
}

:is(.tr-page, .is-root-container) .tr-row-principals { row-gap: 56px; margin-top: clamp(40px, 5vw, 72px); }
.tr-people { display: flex; flex-wrap: wrap; gap: 56px var(--tr-gap); }
.tr-person { flex: 1 1 340px; min-width: 0; padding-top: 24px; border-top: 3px solid var(--accent); }
:is(.tr-page, .is-root-container) .tr-person-name {
	font-family: var(--tr-sans);
	font-size: clamp(24px, 1rem + 1vw, 32px);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -0.02em;
	color: var(--tr-ink);
}
:is(.tr-page, .is-root-container) .tr-person .tr-body { max-width: 46ch; line-height: 1.45; margin-top: 14px; }
:is(.tr-page, .is-root-container) .tr-person .tr-person-name + .tr-body { margin-top: 16px; }

/* ==========================================================================
   11. Services
   ========================================================================== */
:is(.tr-page, .is-root-container) .tr-ruled { padding-top: 24px; border-top: 1px solid var(--tr-line); }
:is(.tr-page, .is-root-container) .tr-statement {
	max-width: 32ch;
	font-family: var(--tr-serif);
	font-size: clamp(26px, 1.2rem + 1.4vw, 40px);
	line-height: 1.18;
	letter-spacing: -0.015em;
}
.tr-twocol { display: flex; flex-wrap: wrap; gap: 24px var(--tr-gap); }
:is(.tr-page, .is-root-container) .tr-twocol { margin-top: clamp(32px, 4vw, 56px); }
:is(.tr-page, .is-root-container) .tr-twocol > .tr-body { flex: 1 1 280px; max-width: 40ch; margin: 0; }

:is(.tr-page, .is-root-container) .tr-row-list { margin-top: clamp(40px, 5vw, 72px); }
:is(.tr-page, .is-root-container) .wp-block-list.tr-index {
	list-style: none;
	padding: 0;
	border-bottom: 1px solid var(--tr-line);
}
:is(.tr-page, .is-root-container) .tr-index > li {
	margin: 0;
	padding: clamp(16px, 1.8vw, 22px) 0;
	border-top: 1px solid var(--tr-line);
	font-family: var(--tr-sans);
	font-size: clamp(24px, 1rem + 1.4vw, 36px);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.15;
}
:is(.tr-page, .is-root-container) .tr-index mark,
:is(.tr-page, .is-root-container) .tr-studies mark { background: transparent; color: var(--tr-muted); }
:is(.tr-page, .is-root-container) .tr-index mark { font-weight: 400; }

.tr-feature { display: flex; flex-wrap: wrap; gap: 32px 12px; align-items: stretch; }
:is(.tr-page, .is-root-container) .tr-feature { margin-top: clamp(48px, 6vw, 88px); }
.tr-feature-text {
	flex: 2 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 8px clamp(0px, 2vw, 32px) 8px 0;
	box-sizing: content-box;
}
:is(.tr-page, .is-root-container) .tr-blurb.tr-blurb-rb { max-width: 34ch; line-height: 1.38; }
:is(.tr-page, .is-root-container) .tr-feature-text .wp-block-buttons.tr-actions { margin-top: 28px; }

/* Captioned figures */
:is(.tr-page, .is-root-container) .wp-block-image.tr-fig { flex: 1 1 420px; min-width: 0; }
:is(.tr-page, .is-root-container) .wp-block-image.tr-fig img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 12px;
}
:is(.tr-page, .is-root-container) .tr-fig-grey img { background: var(--tr-tile); }
:is(.tr-page, .is-root-container) .tr-fig-white img { background: #FFFFFF; }
:is(.tr-page, .is-root-container) .wp-block-image.tr-fig figcaption {
	margin: 20px 0 0;
	max-width: 34ch;
	text-align: left;
	font-family: var(--tr-serif);
	font-size: clamp(22px, 1.1rem + 0.6vw, 28px);
	line-height: 1.25;
	color: var(--tr-ink);
}

/* ==========================================================================
   12. Work
   ========================================================================== */
:is(.tr-page, .is-root-container) .tr-mt-case { margin-top: clamp(112px, 12vw, 184px); }
:is(.tr-page, .is-root-container) .tr-case-tiles,
:is(.tr-page, .is-root-container) .tr-case .tr-diagram { margin-top: clamp(40px, 5vw, 72px); }
:is(.tr-page, .is-root-container) .tr-case-text { margin-top: clamp(32px, 3.5vw, 48px); }
:is(.tr-page, .is-root-container) .wp-block-image.tr-diagram { padding: clamp(20px, 4vw, 64px); }
:is(.tr-page, .is-root-container) .wp-block-image.tr-diagram img { display: block; width: 100%; max-width: 1200px; height: auto; margin: 0 auto; }

:is(.tr-page, .is-root-container) .wp-block-list.tr-studies {
	list-style: none;
	padding: 0;
	margin: clamp(24px, 3vw, 40px) 0 clamp(32px, 4vw, 56px);
	border-bottom: 1px solid var(--tr-line);
}
:is(.tr-page, .is-root-container) .tr-studies > li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 6px 32px;
	margin: 0;
	padding: clamp(16px, 1.8vw, 22px) 0;
	border-top: 1px solid var(--tr-line);
	font-family: var(--tr-sans);
}
:is(.tr-page, .is-root-container) .tr-studies strong {
	flex: 1 1 420px;
	min-width: 0;
	font-size: clamp(20px, 1rem + 0.7vw, 26px);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.2;
}
:is(.tr-page, .is-root-container) .tr-studies mark { flex: 0 1 auto; font-size: 15px; }
:is(.tr-page, .is-root-container) .tr-col > .tr-studies + .tr-lead { margin-top: 0; }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.tr-footer {
	padding: clamp(64px, 8vw, 112px) var(--tr-side) clamp(48px, 5vw, 72px);
	font-family: var(--tr-sans);
	font-size: 15px;
	line-height: 1.5;
	background: var(--tr-paper);
	color: var(--tr-ink);
}
.tr-footer-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 32px var(--tr-gap);
	align-items: flex-start;
	padding-top: 24px;
	border-top: 1px solid var(--tr-line);
}
.tr-footer-brand { flex: 1 1 200px; max-width: 30%; }
.tr-footer-brand img { display: block; height: 34px; width: auto; }
.tr-footer-cols {
	flex: 999 1 560px;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 24px;
}
.tr-footer h2 {
	margin: 0 0 8px;
	font-family: var(--tr-sans);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.005em;
	color: var(--tr-muted);
}
.tr-footer p { margin: 0; }
.tr-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tr-footer .tr-copy { color: var(--tr-muted); }
.tr-site a.tr-foot {
	color: var(--tr-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	text-decoration-color: transparent;
	transition: text-decoration-color 180ms ease;
}
.tr-site a.tr-foot:hover { color: var(--tr-ink); text-decoration-color: var(--accent); }

/* ==========================================================================
   14. Small screens and motion
   ========================================================================== */
@media (max-width: 840px) {
	:is(.tr-page, .is-root-container) .tr-cap > .tr-name { text-align: left; }
	.tr-seven-item::before { text-align: left; }
}
@media (max-width: 760px) {
	/* Screenshot tiles: on phones, let the tile hug the image instead of
	   floating a small capture in a tall grey box */
	:is(.tr-page, .is-root-container) .wp-block-image.tr-fit-contain.tr-h-lg {
		height: auto;
		padding: 14px;
	}
	:is(.tr-page, .is-root-container) .wp-block-image.tr-fit-contain.tr-h-lg img {
		width: 100%;
		height: auto;
		max-height: 560px;
		object-fit: contain;
		border-radius: 4px;
	}
	:is(.tr-page, .is-root-container) .wp-block-image.tr-fit-natural { min-height: 0; padding: 14px; }
	.tr-sechead::before {
		flex: 0 0 100%;
		max-width: none;
		height: 26px;
		margin: -11.5px 0 8.5px;
		background:
			var(--tr-sun) left 43px center / 26px 26px no-repeat,
			linear-gradient(var(--accent), var(--accent)) left 0 center / 56px 3px no-repeat;
	}
}
@media (prefers-reduced-motion: reduce) {
	.tr-site a.tr-cta, .tr-site a.tr-cta::before, .tr-cta-ico svg,
	.wp-block-button.tr-cta > .wp-block-button__link,
	.wp-block-button.tr-cta > .wp-block-button__link::before,
	.wp-block-button.tr-cta > .wp-block-button__link::after,
	.wp-block-button.tr-soft > .wp-block-button__link,
	.tr-site a.tr-nav, .tr-logo, .tr-site a.tr-foot { transition: none; }
	.tr-site a.tr-cta:active,
	.wp-block-button.tr-cta > .wp-block-button__link:active,
	.wp-block-button.tr-soft > .wp-block-button__link:active { transform: none; }
}

/* ==========================================================================
   15. Quote reel (homepage)
   Black-and-white project images with short quotes. The script pins the
   row while the page scrolls and slides it sideways one project at a time.
   Without the script (or with reduced motion, or in the editor) it is a
   row people can swipe through.
   Slide options (Block settings > Advanced > Additional CSS classes on the
   slide group): tr-quote-right, tr-quote-mid, tr-overlay-light.
   ========================================================================== */
.tr-reel {
	--tr-reel-n: 5;
	--tr-reel-step: 72svh;
	--tr-reel-w: calc(100vw - 2 * var(--tr-side));
	position: relative;
}
:is(.tr-page, .is-root-container) .tr-reel { margin-top: clamp(48px, 6vw, 96px); }

.tr-reel-track {
	display: flex;
	gap: 12px;
	padding: 0 var(--tr-side);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 var(--tr-side);
	scrollbar-width: none;
}
.tr-reel-track::-webkit-scrollbar { display: none; }

.tr-reel-slide {
	position: relative;
	flex: 0 0 var(--tr-reel-w);
	height: min(78svh, 820px, calc(var(--tr-reel-w) * 1.6));
	border-radius: 12px;
	overflow: hidden;
	background: var(--tr-ink);
	scroll-snap-align: start;
	isolation: isolate;
}
:is(.tr-page, .is-root-container) .tr-reel-slide > .wp-block-image.tr-reel-img {
	position: absolute;
	inset: 0;
	z-index: -2;
	margin: 0;
}
:is(.tr-page, .is-root-container) .wp-block-image.tr-reel-img img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	filter: grayscale(1);
}
.tr-reel-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: linear-gradient(to top, rgba(24, 25, 27, .9) 0%, rgba(24, 25, 27, .66) 42%, rgba(24, 25, 27, .38) 75%, rgba(24, 25, 27, .3) 100%);
}
.tr-reel-slide.tr-overlay-light::after {
	background: linear-gradient(to top, rgba(24, 25, 27, .82) 0%, rgba(24, 25, 27, .4) 38%, rgba(24, 25, 27, .1) 70%, rgba(24, 25, 27, 0) 100%);
}
.tr-reel-slide.tr-quote-mid::after {
	background: linear-gradient(to right, rgba(24, 25, 27, .6) 0%, rgba(24, 25, 27, .32) 45%, rgba(24, 25, 27, .12) 100%);
}

:is(.tr-page, .is-root-container) .tr-reel .wp-block-quote.tr-reel-quote {
	position: absolute;
	left: clamp(24px, 5vw, 88px);
	right: clamp(24px, 5vw, 88px);
	bottom: clamp(28px, 5vw, 80px);
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font-style: normal;
	color: var(--tr-paper);
}
:is(.tr-page, .is-root-container) .tr-reel .tr-reel-quote p {
	position: relative;
	max-width: 15ch;
	margin: 0;
	font-family: var(--tr-serif);
	font-style: normal;
	font-weight: 400;
	font-size: clamp(36px, 1rem + 4.4vw, 96px);
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-wrap: balance;
	color: var(--tr-paper);
}
:is(.tr-page, .is-root-container) .tr-reel .tr-reel-quote p::before {
	content: "\201C";
	position: absolute;
	right: 100%;
	margin-right: .06em;
	color: var(--accent);
}
:is(.tr-page, .is-root-container) .tr-reel .tr-reel-quote cite {
	display: flex;
	align-items: center;
	gap: .35em;
	margin-top: clamp(20px, 2.4vw, 32px);
	font-family: var(--tr-sans);
	font-style: normal;
	font-size: clamp(15px, .9rem + .3vw, 19px);
	font-weight: 500;
	letter-spacing: -0.005em;
	text-transform: none;
	color: var(--tr-paper);
}
:is(.tr-page, .is-root-container) .tr-reel .tr-reel-quote cite::before {
	content: "re:";
	flex: none;
	color: var(--accent);
	font-weight: 500;
}
:is(.tr-page, .is-root-container) .tr-reel .tr-quote-mid .tr-reel-quote { top: 50%; bottom: auto; transform: translateY(-62%); }
@media (min-width: 761px) {
	:is(.tr-page, .is-root-container) .tr-reel .tr-quote-right .tr-reel-quote { left: 50%; }
}

.tr-reel-progress { display: flex; gap: 6px; padding: 18px var(--tr-side) 0; }
.tr-reel-progress span {
	width: 18px;
	height: 3px;
	border-radius: 2px;
	background: var(--tr-line);
	transition: width 300ms var(--tr-ease), background-color 300ms ease;
}
.tr-reel-progress span.is-active { width: 44px; background: var(--accent); }

/* Pinned mode, switched on by assets/js/reel.js */
.tr-reel.is-pinned { height: calc(100svh + (var(--tr-reel-n) - 1) * var(--tr-reel-step)); }
.tr-reel.is-pinned .tr-reel-pin {
	position: sticky;
	top: 0;
	height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}
.tr-reel.is-pinned .tr-reel-track { overflow: visible; scroll-snap-type: none; will-change: transform; }

/* Image focal points used by the reel */
:is(.tr-page, .is-root-container) .wp-block-image.tr-pos-62-30 img { object-position: 62% 30%; }
:is(.tr-page, .is-root-container) .wp-block-image.tr-pos-40-50 img { object-position: 40% 50%; }
:is(.tr-page, .is-root-container) .wp-block-image.tr-pos-50-45 img { object-position: 50% 45%; }
:is(.tr-page, .is-root-container) .wp-block-image.tr-pos-55-45 img { object-position: 55% 45%; }

@media (max-width: 760px) {
	.tr-reel { --tr-reel-step: 64svh; }
	.tr-reel-slide { height: min(72svh, 640px); }
	:is(.tr-page, .is-root-container) .tr-reel .tr-reel-quote p { max-width: 13ch; }
}
@media (prefers-reduced-motion: reduce) {
	.tr-reel-progress span { transition: none; }
}

/* Screen-reader text helper */
.tr-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
