/* ==========================================================================
   Together Global – site styles
   1. Tokens   2. Liquid Glass   3. Base   4. Header   5. Hero
   6. Sections & type   7. Components   8. Projects   9. News & forms
   10. Footer   11. Motion   12. Fallbacks & preferences
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--tg-navy: #0E3A5A;
	--tg-navy-rgb: 14 58 90;
	--tg-ink: #12283A;
	--tg-blue: #1E6FA6;
	--tg-amber: #EFA836;
	--tg-amber-dark: #CF8814;
	--tg-amber-ink: #3A2606;
	--tg-muted: #4B6072;
	--tg-grey: #F5F7F9;
	--tg-alice: #F0F8FF;
	--tg-line: #DCE6ED;

	--tg-r-s: 8px;
	--tg-r: 16px;
	--tg-r-l: 28px;

	--tg-ease: cubic-bezier(.2, .7, .2, 1);
	--tg-spring: cubic-bezier(.3, 1.45, .55, 1);

	--tg-header-h: 64px;
	--tg-header-top: 12px;
	--tg-head-space: calc(var(--tg-header-h) + var(--tg-header-top) * 2);
	--tg-section-y: clamp(4rem, 9vw, 8.5rem);
}

/* 2. Liquid Glass -----------------------------------------------------------
   A glass surface = translucent tint + backdrop blur & saturation +
   a rim of light (::after) + a soft specular highlight that can follow the
   pointer (::before). --tg-tint carries the colour of the photo behind it.  */
.glass {
	--g-blur: 20px;
	--g-sat: 180%;
	--g-bg: rgb(255 255 255 / .62);
	--g-rim: rgb(255 255 255 / .7);
	--g-shadow: 0 1px 1px rgb(var(--tg-navy-rgb) / .06), 0 12px 32px -14px rgb(var(--tg-navy-rgb) / .35);
	--mx: 30%;
	--my: 0%;
	position: relative;
	isolation: isolate;
	background: var(--g-bg);
	-webkit-backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat));
	backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat));
	box-shadow: var(--g-shadow);
}
.glass::before,
.glass::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
}
/* Specular highlight */
.glass::before {
	z-index: -1;
	background:
		radial-gradient(120% 90% at var(--mx) var(--my), rgb(255 255 255 / .38), transparent 55%),
		linear-gradient(180deg, rgb(255 255 255 / .16), transparent 42%);
	opacity: .9;
	transition: opacity .4s var(--tg-ease);
}
/* Rim of light: bright top edge, fading down the sides */
.glass::after {
	padding: 1px;
	background: linear-gradient(170deg, var(--g-rim), rgb(255 255 255 / .12) 38%, rgb(255 255 255 / .05) 62%, rgb(255 255 255 / .28));
	-webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.glass--nav {
	--g-blur: 22px;
	--g-bg: rgb(255 255 255 / .64);
	border-radius: 999px;
}
.glass--panel {
	--g-blur: 26px;
	--g-sat: 160%;
	--g-bg: color-mix(in oklab, var(--tg-tint, var(--tg-navy)) 22%, rgb(var(--tg-navy-rgb) / .5));
	--g-rim: rgb(255 255 255 / .55);
	--g-shadow: 0 30px 60px -30px rgb(0 0 0 / .55);
	border-radius: var(--tg-r-l);
	color: #fff;
}
.glass--button {
	--g-blur: 14px;
	--g-bg: rgb(255 255 255 / .16);
	--g-rim: rgb(255 255 255 / .6);
	--g-shadow: 0 8px 20px -12px rgb(0 0 0 / .45);
}
.glass--chip {
	--g-blur: 10px;
	--g-bg: rgb(255 255 255 / .72);
	--g-shadow: 0 4px 12px -6px rgb(var(--tg-navy-rgb) / .35);
}
.glass--sheet {
	--g-blur: 30px;
	--g-bg: rgb(255 255 255 / .76);
	--g-shadow: 0 1px 1px rgb(var(--tg-navy-rgb) / .05), 0 30px 60px -20px rgb(var(--tg-navy-rgb) / .4);
	border-radius: 22px;
}

/* 3. Base ------------------------------------------------------------------ */
html { scroll-padding-top: calc(var(--tg-head-space) + 1rem); -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { max-width: 100%; height: auto; }
::selection { background: rgb(239 168 54 / .35); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--tg-blue);
	outline-offset: 3px;
	border-radius: 6px;
}
.tg-dark :focus-visible, .tg-hero :focus-visible, .tg-footer :focus-visible { outline-color: #fff; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}
.tg-skip {
	position: fixed;
	z-index: 1000;
	top: .75rem; left: .75rem;
	padding: .75rem 1.25rem;
	background: var(--tg-navy);
	color: #fff;
	border-radius: 999px;
	transform: translateY(-200%);
	transition: transform .2s var(--tg-ease);
}
.tg-skip:focus { transform: none; }

.wp-site-blocks > * { margin-block: 0 !important; }
.tg-main { display: block; }
.tg-main .wp-block-post-content > * { margin-block: 0; }
.tg-icon { width: 1.25em; height: 1.25em; flex: none; }

/* 4. Header ---------------------------------------------------------------- */
.tg-header-part { position: relative; z-index: 100; }
.tg-header {
	position: fixed;
	z-index: 100;
	inset: var(--tg-header-top) 0 auto;
	padding-inline: clamp(.75rem, 2.5vw, 1.5rem);
	padding-top: env(safe-area-inset-top, 0px);
	pointer-events: none;
}
.admin-bar .tg-header { top: calc(32px + var(--tg-header-top)); }
@media (max-width: 782px) { .admin-bar .tg-header { top: calc(46px + var(--tg-header-top)); } }

.tg-nav {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: 1280px;
	height: var(--tg-header-h);
	margin-inline: auto;
	padding-inline: .5rem .5rem;
	color: var(--tg-navy);
	transition: height .45s var(--tg-ease), background-color .45s var(--tg-ease), color .3s var(--tg-ease), max-width .45s var(--tg-ease), box-shadow .45s var(--tg-ease);
}
.tg-header.is-scrolled .tg-nav { height: 56px; max-width: 1180px; --g-bg: rgb(255 255 255 / .74); }
.tg-header.is-dark .tg-nav {
	--g-bg: rgb(var(--tg-navy-rgb) / .38);
	--g-rim: rgb(255 255 255 / .45);
	color: #fff;
}
.tg-header.is-dark.is-scrolled .tg-nav { --g-bg: rgb(var(--tg-navy-rgb) / .55); }

.tg-nav__brand { display: inline-flex; flex: none; border-radius: 50%; }
.tg-logo { display: block; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgb(var(--tg-navy-rgb) / .08); transition: width .45s var(--tg-ease), height .45s var(--tg-ease); }
.tg-header.is-scrolled .tg-logo { width: 40px; height: 40px; }

.tg-nav__menu { flex: 1; display: flex; justify-content: center; }
.tg-nav__list { display: flex; gap: .125rem; margin: 0; padding: 0; list-style: none; }
.tg-nav__item { position: relative; }
.tg-nav__link,
.tg-nav__trigger {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	min-height: 44px;
	padding: 0 .9rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: .9375rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .25s var(--tg-ease);
}
.tg-nav__link:hover, .tg-nav__trigger:hover, .tg-nav__trigger[aria-expanded="true"] { background: rgb(var(--tg-navy-rgb) / .07); }
.tg-header.is-dark .tg-nav__link:hover, .tg-header.is-dark .tg-nav__trigger:hover, .tg-header.is-dark .tg-nav__trigger[aria-expanded="true"] { background: rgb(255 255 255 / .14); }
.tg-nav__item.is-current > .tg-nav__link,
.tg-nav__item.is-current > .tg-nav__trigger { font-weight: 650; }
.tg-nav__item.is-current > .tg-nav__link::after,
.tg-nav__item.is-current > .tg-nav__trigger::after {
	content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--tg-amber);
}
.tg-nav__trigger .tg-icon { width: 1rem; height: 1rem; transition: transform .3s var(--tg-ease); }
.tg-nav__trigger[aria-expanded="true"] .tg-icon { transform: rotate(180deg); }

.tg-nav__panel {
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	min-width: 15rem;
	padding: .5rem;
	color: var(--tg-navy);
	transform: translateX(-50%);
	transform-origin: top center;
	animation: tg-pop .32s var(--tg-spring);
}
.tg-nav__panel[hidden] { display: none; }
.tg-nav__panel ul { margin: 0; padding: 0; list-style: none; }
.tg-nav__panel a {
	display: block;
	padding: .65rem .9rem;
	border-radius: 12px;
	color: var(--tg-navy);
	font-size: .9375rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.tg-nav__panel a:hover { background: rgb(var(--tg-navy-rgb) / .07); }
.tg-nav__panel a[aria-current="page"] { background: var(--tg-alice); font-weight: 650; }

.tg-nav .tg-join.wp-element-button { height: 44px; min-height: 44px; padding-block: 0; }
.tg-nav__actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.tg-lang { display: flex; margin: 0; padding: 3px; list-style: none; border-radius: 999px; background: rgb(var(--tg-navy-rgb) / .06); }
.tg-header.is-dark .tg-lang--bar { background: rgb(255 255 255 / .12); }
.tg-lang a {
	display: grid;
	place-items: center;
	min-width: 36px;
	height: 32px;
	padding-inline: .5rem;
	border-radius: 999px;
	color: inherit;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .02em;
	text-decoration: none;
	opacity: .72;
}
.tg-lang a[aria-current="true"] { background: #fff; color: var(--tg-navy); opacity: 1; box-shadow: 0 1px 3px rgb(var(--tg-navy-rgb) / .18); }
.tg-join.wp-element-button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: .5rem 1.15rem;
	font-size: .9375rem;
	text-decoration: none;
	transition: background-color .25s var(--tg-ease), transform .35s var(--tg-spring);
}
.tg-join.wp-element-button:active { transform: scale(.96); }
.tg-nav__toggle {
	display: none;
	place-items: center;
	width: 44px; height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgb(var(--tg-navy-rgb) / .07);
	color: inherit;
	cursor: pointer;
}
.tg-header.is-dark .tg-nav__toggle { background: rgb(255 255 255 / .16); }

/* Mobile sheet */
.tg-sheet { position: fixed; z-index: 200; inset: 0; }
.tg-sheet[hidden] { display: none; }
.tg-sheet__scrim { position: absolute; inset: 0; background: rgb(var(--tg-navy-rgb) / .28); animation: tg-fade .3s var(--tg-ease); }
.tg-sheet__panel {
	position: absolute;
	inset: calc(env(safe-area-inset-top, 0px) + 10px) 10px auto;
	max-height: calc(100dvh - 20px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: .75rem 1rem 1.25rem;
	border-radius: 28px;
	color: var(--tg-navy);
	animation: tg-sheet-in .45s var(--tg-spring);
}
.tg-sheet.is-closing .tg-sheet__panel { animation: tg-sheet-out .25s var(--tg-ease) forwards; }
.tg-sheet.is-closing .tg-sheet__scrim { animation: tg-fade .25s var(--tg-ease) reverse forwards; }
.tg-sheet__top { display: flex; align-items: center; justify-content: space-between; padding: .25rem 0 .75rem; }
.tg-sheet__close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(var(--tg-navy-rgb) / .08); color: var(--tg-navy); cursor: pointer; }
.tg-sheet__group { padding: .5rem 0; border-top: 1px solid rgb(var(--tg-navy-rgb) / .08); }
.tg-sheet__heading { margin: .25rem .75rem .25rem; color: var(--tg-muted); font-size: .8125rem; font-weight: 600; }
.tg-sheet ul { margin: 0; padding: 0; list-style: none; }
.tg-sheet nav a {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0 .75rem;
	border-radius: 14px;
	color: var(--tg-navy);
	font-size: 1.0625rem;
	font-weight: 500;
	text-decoration: none;
}
.tg-sheet nav a:active { background: rgb(var(--tg-navy-rgb) / .08); }
.tg-sheet nav .tg-sheet__solo { font-weight: 600; }
.tg-sheet nav a[aria-current="page"] { background: var(--tg-alice); font-weight: 650; }
.tg-sheet__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid rgb(var(--tg-navy-rgb) / .08); }
.tg-sheet__bottom .tg-join.wp-element-button { flex: 1; justify-content: center; min-height: 52px; }

@media (max-width: 1080px) {
	.tg-nav__menu, .tg-nav__actions .tg-lang--bar { display: none; }
	.tg-nav__toggle { display: grid; }
	.tg-nav { justify-content: space-between; padding-inline: .375rem; }
}
@media (max-width: 420px) {
	.tg-nav__actions .tg-join { padding-inline: .9rem; font-size: .875rem; }
}

/* 5. Hero ------------------------------------------------------------------ */
.tg-hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: max(36rem, 92svh);
	margin-top: 0 !important;
	overflow: hidden;
	background: var(--tg-navy);
	color: #fff;
}
.tg-hero__media, .tg-hero__scrim { position: absolute; inset: 0; }
.tg-hero__media picture, .tg-hero__img, .tg-hero__video {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
.tg-hero__img { transform: scale(1.04); }
.tg-hero__video { opacity: 0; transition: opacity 1.2s var(--tg-ease); }
.tg-hero__video.is-playing { opacity: 1; }
.tg-hero__scrim {
	background:
		linear-gradient(90deg, rgb(var(--tg-navy-rgb) / .62), rgb(var(--tg-navy-rgb) / .12) 62%),
		linear-gradient(0deg, rgb(var(--tg-navy-rgb) / .7), transparent 55%);
}
.tg-hero__inner {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding: calc(var(--tg-head-space) + 2rem) clamp(1rem, 4vw, 2.5rem) clamp(1.25rem, 5vw, 4rem);
}
.tg-hero__panel {
	max-width: 40rem;
	padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
.tg-hero__panel > * + * { margin-block-start: 1rem; }
.tg-hero__panel h1 {
	margin-block: .75rem 0;
	color: #fff;
	font-size: var(--wp--preset--font-size--display);
	line-height: .98;
	letter-spacing: -.035em;
	text-wrap: balance;
}
.tg-hero__panel .tg-label { color: rgb(255 255 255 / .86); }
.tg-hero__panel .tg-hero__lead,
.tg-hero__panel p { color: rgb(255 255 255 / .92); font-size: var(--wp--preset--font-size--lead); line-height: 1.45; }
.tg-hero__panel .tg-label { font-size: .9375rem; line-height: 1.4; }
.tg-hero__panel .wp-block-buttons { margin-block-start: 1.75rem; }
.tg-hero__pause {
	position: absolute;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
}
.tg-hero__pause[hidden] { display: none; }
.tg-hero__pause .tg-icon { grid-area: 1 / 1; }
.tg-hero__pause .tg-icon:last-of-type, .tg-hero__pause[aria-pressed="true"] .tg-icon:first-of-type { display: none; }
.tg-hero__pause[aria-pressed="true"] .tg-icon:last-of-type { display: block; }

/* 6. Sections & type ------------------------------------------------------- */
.tg-section { padding-block: var(--tg-section-y); }
.tg-section--tight { padding-block: clamp(1.75rem, 4vw, 3rem); }
.tg-section--flush { padding-top: 0; }
.tg-section > * + * { margin-block-start: 1.25rem; }
.tg-section > .wp-block-heading + * { margin-block-start: clamp(2rem, 4vw, 3.25rem); }
.tg-section > .tg-label + .wp-block-heading { margin-block-start: .5rem; }
.tg-section > .wp-block-heading { box-sizing: border-box; padding-inline-end: max(0px, calc(100% - 20ch)); text-wrap: balance; }
.tg-section > .wp-block-buttons { margin-block-start: 2.5rem; }

.tg-label {
	color: var(--tg-blue);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -.005em;
}
.tg-lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.45; }
.tg-note { color: var(--tg-muted); font-size: .9375rem; font-style: italic; }
.tg-prose { box-sizing: border-box; padding-inline-end: max(0px, calc(100% - 46rem)); }
.tg-prose > * + * { margin-block-start: 1.1em; }
.tg-prose > .wp-block-heading:not(:first-child) { margin-block-start: 2.5rem; }
.tg-prose p { text-wrap: pretty; }

.tg-pagehead {
	padding-top: calc(var(--tg-head-space) + clamp(3rem, 8vw, 6.5rem));
	padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.tg-pagehead > * + * { margin-block-start: 1rem; }
.tg-pagehead .tg-pagehead__title, .tg-pagehead h1 {
	box-sizing: border-box;
	padding-inline-end: max(0px, calc(100% - 17ch));
	margin-block-start: .5rem;
	font-size: var(--wp--preset--font-size--display);
	line-height: .98;
	letter-spacing: -.035em;
	text-wrap: balance;
}
.tg-pagehead__intro { box-sizing: border-box; padding-inline-end: max(0px, calc(100% - 42rem)); color: var(--tg-muted); font-size: var(--wp--preset--font-size--lead); line-height: 1.45; }
.tg-pagehead--news { max-width: 1200px; margin-inline: auto; padding-inline: var(--wp--style--root--padding-left); }

/* Dark sections */
.tg-dark { color: rgb(255 255 255 / .9); }
.tg-dark :where(h1, h2, h3, h4) { color: #fff; }
.tg-dark .tg-label { color: #F6C76E; }
.tg-dark a:where(:not(.wp-element-button)) { color: #fff; }

/* Media */
.tg-media img { width: 100%; border-radius: var(--tg-r-l); object-fit: cover; }
.tg-media--wide img { aspect-ratio: 16 / 8; max-height: 72vh; }
.tg-section > .tg-media--wide + * { margin-block-start: clamp(2.5rem, 5vw, 4rem); }
.tg-media figcaption { margin-top: .75rem; text-align: left; }

/* Layout helpers: grids fill the row (auto-fit) so three cards never leave a gap */
.tg-grid { gap: clamp(1rem, 2vw, 1.5rem) !important; grid-template-columns: repeat(auto-fit, minmax(min(15.5rem, 100%), 1fr)) !important; }
.tg-grid.tg-stats { grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)) !important; column-gap: clamp(1.5rem, 3vw, 3rem) !important; }
.tg-grid.tg-grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr)) !important; }
@media (min-width: 1000px) { .tg-grid.tg-stats { grid-template-columns: repeat(3, 1fr) !important; } }
.tg-split {
	display: grid;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}
.tg-split > * { margin: 0 !important; }
.tg-split__text > * + * { margin-block-start: 1.25rem; }
.tg-split__text > .tg-label + .wp-block-heading { margin-block-start: .5rem; }
@media (min-width: 900px) {
	.tg-split { grid-template-columns: 1fr 1fr; }
	.tg-split--contact { grid-template-columns: 5fr 7fr; align-items: start; }
}
@media (min-width: 1100px) {
	/* Seven cards: four on the first row, three wider ones on the second */
	.tg-grid--4-3 { grid-template-columns: repeat(12, 1fr) !important; }
	.tg-grid--4-3 > * { grid-column: span 3; }
	.tg-grid--4-3 > :nth-child(n+5) { grid-column: span 4; }
}

/* 7. Components ------------------------------------------------------------ */

/* Buttons */
.wp-element-button, .wp-block-button__link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color .25s var(--tg-ease), color .25s var(--tg-ease), box-shadow .25s var(--tg-ease), transform .4s var(--tg-spring);
}
.wp-block-button__link:active, .wp-element-button:active { transform: scale(.97); }
.wp-block-buttons { gap: .75rem; }

.wp-block-button.is-style-glass .wp-block-button__link {
	position: relative;
	isolation: isolate;
	background: rgb(255 255 255 / .55);
	color: var(--tg-navy);
	-webkit-backdrop-filter: blur(14px) saturate(170%);
	backdrop-filter: blur(14px) saturate(170%);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / .8), inset 0 0 0 1px rgb(var(--tg-navy-rgb) / .12), 0 8px 20px -14px rgb(var(--tg-navy-rgb) / .5);
}
.wp-block-button.is-style-glass .wp-block-button__link:hover { background: rgb(255 255 255 / .8); }
:where(.tg-hero, .tg-dark) .wp-block-button.is-style-glass .wp-block-button__link {
	background: rgb(255 255 255 / .14);
	color: #fff;
	box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), inset 0 0 0 1px rgb(255 255 255 / .28), 0 8px 20px -12px rgb(0 0 0 / .4);
}
:where(.tg-hero, .tg-dark) .wp-block-button.is-style-glass .wp-block-button__link:hover { background: rgb(255 255 255 / .26); }
.wp-block-button.is-style-glass .wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: radial-gradient(80% 120% at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .4), transparent 60%);
	opacity: 0;
	transition: opacity .3s var(--tg-ease);
}
.wp-block-button.is-style-glass .wp-block-button__link:hover::before { opacity: 1; }

.wp-block-button.is-style-subtle .wp-block-button__link {
	background: transparent;
	color: var(--tg-navy);
	box-shadow: inset 0 0 0 1.5px rgb(var(--tg-navy-rgb) / .22);
}
.wp-block-button.is-style-subtle .wp-block-button__link:hover { background: rgb(var(--tg-navy-rgb) / .06); box-shadow: inset 0 0 0 1.5px rgb(var(--tg-navy-rgb) / .4); }
.tg-dark .wp-block-button.is-style-subtle .wp-block-button__link { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .4); }

/* Cards */
.tg-card {
	padding: clamp(1.5rem, 2.5vw, 2rem);
	border-radius: var(--tg-r);
	background: #fff;
}
.tg-section:not(.has-background) .tg-card { background: var(--tg-grey); }
.tg-card > * + * { margin-block-start: .75rem; }
.tg-card h3 { font-size: 1.3125rem; line-height: 1.25; }
.tg-card p { color: var(--tg-muted); }
.tg-card--statement { padding: clamp(2rem, 4vw, 3rem); }
.tg-card--statement h3 { color: var(--tg-blue); font-size: 1.0625rem; letter-spacing: 0; }
.tg-card--statement p { color: var(--tg-navy); font-size: var(--wp--preset--font-size--card); font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.tg-card--action { display: flex; flex-direction: column; }
.tg-card--action .wp-block-buttons { margin-top: auto; padding-top: 1rem; }
.tg-card--cta { background: #fff !important; padding: clamp(2rem, 4vw, 3rem); }
.tg-card--docs { background: #fff; box-shadow: inset 0 0 0 1px var(--tg-line); }

/* Stats */
.tg-stat { padding: 1.75rem 0 0; border-top: 1px solid rgb(var(--tg-navy-rgb) / .14); }
.tg-stat > * { margin: 0; }
.tg-stat__value {
	color: var(--tg-navy);
	font-size: clamp(1.75rem, 3.2vw, 2.75rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.03em;
}
.tg-stat__label { margin-top: .5rem !important; color: var(--tg-muted); }

/* Lists */
ul.is-style-check { margin: 0; padding: 0; list-style: none; }
ul.is-style-check li { position: relative; padding: .55rem 0 .55rem 2.25rem; }
ul.is-style-check li::before {
	content: "";
	position: absolute;
	left: 0; top: .7rem;
	width: 1.5rem; height: 1.5rem;
	border-radius: 50%;
	background: var(--tg-amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A2606' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.tg-dark ul.is-style-check li { border-bottom: 1px solid rgb(255 255 255 / .12); }
@media (min-width: 760px) { .tg-cols-2 { columns: 2; column-gap: 3rem; } .tg-cols-2 li { break-inside: avoid; } }

ul.is-style-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
ul.is-style-chips li {
	padding: .45rem 1rem;
	border-radius: 999px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--tg-line);
	color: var(--tg-navy);
	font-size: .9375rem;
	font-weight: 500;
}
.tg-section:not(.has-background) ul.is-style-chips li { background: var(--tg-alice); box-shadow: none; }

ul.is-style-docs { margin: 0; padding: 0; list-style: none; }
ul.is-style-docs li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--tg-line); }
ul.is-style-docs li:last-child { border-bottom: 0; }
ul.is-style-docs a { flex: none; font-size: .9375rem; font-weight: 600; }

/* Callout */
.tg-callout {
	max-width: 56rem;
	padding: clamp(2rem, 4vw, 3rem);
	border-radius: var(--tg-r-l);
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--tg-line), inset 0 4px 0 var(--tg-amber);
}
.tg-section:not(.has-background) .tg-callout { background: var(--tg-alice); box-shadow: inset 0 4px 0 var(--tg-amber); }
.tg-callout > * + * { margin-block-start: 1rem; }
.tg-callout h2 { font-size: var(--wp--preset--font-size--card); }

/* Closing band */
.tg-closing { text-align: center; }
.tg-closing > * { margin-inline: auto !important; }
.tg-section.tg-closing > .tg-closing__title { max-width: 20ch !important; padding-inline-end: 0; font-size: var(--wp--preset--font-size--title); }
.tg-closing ul.is-style-chips, .tg-closing .wp-block-buttons { justify-content: center; }

/* Partner strip */
.tg-strip { padding-block: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--tg-line); }
.tg-partners__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.tg-partners__list > li > a, .tg-partners__list > li > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	height: 100%;
	min-height: 9rem;
	padding: 1.5rem;
	border-radius: var(--tg-r);
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--tg-line);
	color: var(--tg-navy);
	text-align: center;
	text-decoration: none;
	transition: box-shadow .3s var(--tg-ease), transform .4s var(--tg-spring);
}
.tg-partners__list > li > a:hover { box-shadow: inset 0 0 0 1px var(--tg-line), 0 14px 30px -18px rgb(var(--tg-navy-rgb) / .45); transform: translateY(-2px); }
.tg-partners__logo { max-height: 56px; width: auto; object-fit: contain; }
.tg-partners__caption { color: var(--tg-muted); font-size: .875rem; }
.tg-partners__name { font-weight: 650; font-size: 1.0625rem; }
.tg-partners--compact { display: flex; align-items: center; gap: 1.5rem 2.5rem; flex-wrap: wrap; justify-content: center; }
.tg-partners--compact .tg-partners__label { margin: 0; color: var(--tg-muted); font-size: .9375rem; }
.tg-partners--compact .tg-partners__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem; }
.tg-partners--compact .tg-partners__list > li > a, .tg-partners--compact .tg-partners__list > li > div { min-height: 0; padding: .25rem; background: none; box-shadow: none; }
.tg-partners--compact .tg-partners__logo { max-height: 40px; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.tg-partners--compact a:hover .tg-partners__logo { filter: none; opacity: 1; }
.tg-partners--compact .tg-partners__name { color: var(--tg-muted); font-size: .9375rem; font-weight: 600; }

/* Gallery: editorial */
.wp-block-gallery.is-style-editorial {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-flow: dense;
	gap: clamp(.5rem, 1.2vw, 1rem) !important;
}
.wp-block-gallery.is-style-editorial > .wp-block-image {
	width: auto !important;
	margin: 0 !important;
	overflow: hidden;
	border-radius: var(--tg-r);
	aspect-ratio: 4 / 3;
}
.wp-block-gallery.is-style-editorial > .wp-block-image:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.wp-block-gallery.is-style-editorial > .wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .8s var(--tg-ease); }
.wp-block-gallery.is-style-editorial > .wp-block-image:hover img { transform: scale(1.03); }
@media (max-width: 760px) {
	.wp-block-gallery.is-style-editorial {
		display: flex !important;
		flex-wrap: nowrap !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin-inline: calc(-1 * var(--wp--style--root--padding-left));
		padding-inline: var(--wp--style--root--padding-left);
		scrollbar-width: none;
	}
	.wp-block-gallery.is-style-editorial > .wp-block-image,
	.wp-block-gallery.is-style-editorial > .wp-block-image:first-child { flex: 0 0 82%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
}

/* Lightbox (core) as glass */
.wp-lightbox-overlay .scrim { background-color: rgb(var(--tg-navy-rgb) / .9) !important; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.wp-lightbox-overlay .close-button {
	width: 44px; height: 44px; border-radius: 50%;
	background: rgb(255 255 255 / .16) !important;
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / .5);
}
.wp-lightbox-overlay .close-button svg { fill: #fff; }

/* Map */
.tg-map { overflow: hidden; border-radius: var(--tg-r); background: var(--tg-grey); }
.tg-map__placeholder { display: grid; justify-items: center; gap: .5rem; padding: 2.25rem 1.5rem; text-align: center; color: var(--tg-muted); }
.tg-map__placeholder .tg-icon { width: 2rem; height: 2rem; color: var(--tg-blue); }
.tg-map__address { margin: 0; color: var(--tg-navy); font-weight: 600; }
.tg-map__load.wp-element-button { margin-top: .5rem; background: var(--tg-navy); color: #fff; }
.tg-map__load.wp-element-button:hover { background: var(--tg-blue); color: #fff; }
.tg-map__note { max-width: 28rem; margin: .25rem 0 0; font-size: .875rem; }
.tg-map iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; }
.tg-split__text .tg-map { margin-top: 2rem; }

/* Contact details */
.tg-details { display: grid; gap: 1.25rem; margin: 0; }
.tg-details > div { padding-bottom: 1.25rem; border-bottom: 1px solid var(--tg-line); }
.tg-details dt { color: var(--tg-muted); font-size: .875rem; font-weight: 600; }
.tg-details dd { margin: .25rem 0 0; color: var(--tg-navy); font-size: 1.0625rem; }

/* 8. Projects -------------------------------------------------------------- */
.tg-projects__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}
.tg-projects__group + .tg-projects__group { margin-top: clamp(3rem, 6vw, 5rem); }
.tg-projects__heading { margin: 0 0 1.5rem; font-size: var(--wp--preset--font-size--card); }

.tg-projects--rail { position: relative; }
.tg-projects--rail .tg-projects__grid {
	display: flex;
	gap: 1.25rem;
	margin-inline: calc(-1 * var(--wp--style--root--padding-left));
	padding: .5rem var(--wp--style--root--padding-left) 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--wp--style--root--padding-left);
	scrollbar-width: none;
}
.tg-projects--rail .tg-projects__grid::-webkit-scrollbar { display: none; }
.tg-projects--rail .tg-pcard { flex: 0 0 min(84vw, 23rem); scroll-snap-align: start; }
.tg-rail-nav { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .25rem; }
.tg-rail-nav button {
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border: 0; border-radius: 50%;
	background: var(--tg-grey);
	box-shadow: inset 0 0 0 1px var(--tg-line);
	color: var(--tg-navy);
	cursor: pointer;
	transition: background-color .2s, transform .35s var(--tg-spring);
}
.tg-rail-nav button:hover { background: var(--tg-alice); }
.tg-rail-nav button:active { transform: scale(.92); }
.tg-rail-nav button:disabled { opacity: .35; cursor: default; }
.tg-rail-nav button:last-child .tg-icon { transform: rotate(180deg); }

.tg-pcard { height: 100%; }
.tg-pcard__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 22px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--tg-line);
	color: inherit;
	text-decoration: none;
	transition: box-shadow .35s var(--tg-ease), transform .5s var(--tg-spring);
}
.has-background .tg-pcard__link { box-shadow: none; }
.tg-pcard__link:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--tg-line), 0 22px 40px -26px rgb(var(--tg-navy-rgb) / .55); }
.tg-pcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tg-alice); }
.tg-pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--tg-ease); }
.tg-pcard__link:hover .tg-pcard__media img { transform: scale(1.03); }
.tg-pcard__brand { display: grid; place-items: center; width: 100%; height: 100%; color: var(--tg-blue); }
.tg-pcard__brand .tg-swallow { width: 46%; opacity: .2; transition: transform .9s var(--tg-ease), opacity .4s; }
.tg-pcard__brand svg { display: block; width: 100%; height: auto; }
.tg-pcard__link:hover .tg-swallow { transform: translate(4%, -4%) rotate(-3deg); opacity: .28; }
.tg-pcard--delivered .tg-pcard__brand { background: var(--tg-grey); color: var(--tg-navy); }
.tg-pcard--development .tg-pcard__brand { background: #FFF4E0; color: var(--tg-amber-dark); }
.tg-pcard--development .tg-pcard__brand .tg-swallow { opacity: .32; }
.tg-chip {
	position: absolute;
	top: .875rem; left: .875rem;
	max-width: calc(100% - 1.75rem);
	padding: .4rem .8rem;
	border-radius: 999px;
	color: var(--tg-navy);
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1.2;
}
.tg-chip--solid { position: static; display: inline-block; background: var(--tg-alice); }
.tg-pcard__body { display: flex; flex: 1; flex-direction: column; gap: .5rem; padding: 1.5rem; }
.tg-pcard__body > * { margin: 0; }
.tg-pcard__cat { color: var(--tg-blue); font-size: .875rem; font-weight: 600; }
.tg-pcard__title { font-size: 1.375rem; line-height: 1.2; }
.tg-pcard__sum { color: var(--tg-muted); font-size: 1rem; line-height: 1.5; }
.tg-tags { display: flex; flex-wrap: wrap; gap: .375rem; margin: .25rem 0 0 !important; padding: 0; list-style: none; }
.tg-tags li { padding: .2rem .6rem; border-radius: 999px; background: var(--tg-grey); color: var(--tg-muted); font-size: .8125rem; }
.tg-pcard__more { margin-top: auto !important; padding-top: .75rem; color: var(--tg-navy); font-weight: 600; font-size: .9375rem; }
.tg-pcard__link:hover .tg-pcard__more { color: var(--tg-blue); text-decoration: underline; }

/* Single project */
.tg-project { padding-bottom: var(--tg-section-y); }
.tg-phero {
	display: grid;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
	padding-top: calc(var(--tg-head-space) + clamp(2rem, 6vw, 4.5rem));
	padding-bottom: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 900px) { .tg-phero { grid-template-columns: 1.05fr 1fr; } }
.tg-phero__text > * { margin: 0; }
.tg-phero__text > * + * { margin-top: 1rem; }
.tg-back { display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; margin-left: -.35rem; padding-right: .5rem; color: var(--tg-muted); font-size: .9375rem; font-weight: 500; text-decoration: none; }
.tg-back:hover { color: var(--tg-navy); }
.tg-phero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.tg-phero__cat { color: var(--tg-blue); font-weight: 600; font-size: .9375rem; }
.tg-phero--development .tg-chip--solid { background: #FFF4E0; color: var(--tg-amber-ink); }
.tg-phero__title { font-size: var(--wp--preset--font-size--title); text-wrap: balance; }
.tg-phero__tagline { color: var(--tg-navy); font-size: var(--wp--preset--font-size--card); font-weight: 600; line-height: 1.25; }
.tg-phero__sum { color: var(--tg-muted); font-size: var(--wp--preset--font-size--lead); line-height: 1.45; max-width: 36rem; }
.tg-phero__media { overflow: hidden; border-radius: var(--tg-r-l); background: var(--tg-alice); aspect-ratio: 4 / 3; }
.tg-phero__media img, .tg-phero__media video { width: 100%; height: 100%; object-fit: cover; }
.tg-phero--development .tg-phero__brand { background: #FFF4E0; color: var(--tg-amber-dark); }
.tg-phero__brand .tg-swallow { width: 40%; }

.tg-facts { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--tg-r-l); background: var(--tg-alice); margin-bottom: clamp(1rem, 3vw, 2rem); }
.tg-facts__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.25rem 2rem; margin: 0; }
.tg-facts dt { color: var(--tg-blue); font-size: .875rem; font-weight: 600; }
.tg-facts dd { margin: .25rem 0 0; color: var(--tg-navy); font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.tg-facts .tg-map { margin-top: 1.5rem; background: #fff; }

.tg-project .wp-block-post-content > .tg-section { padding-inline: 0; }
.tg-project .wp-block-post-content .wp-block-video video { width: 100%; border-radius: var(--tg-r-l); }
.tg-section--cta { padding-top: 2rem; }
.tg-related { padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--tg-line); margin-top: clamp(2rem, 4vw, 3rem); }
.tg-related__title { margin-bottom: 1.5rem; font-size: var(--wp--preset--font-size--card); }

/* 9. News & forms ---------------------------------------------------------- */
.tg-news .wp-block-post-template { gap: clamp(1.25rem, 2.5vw, 2rem); }
.tg-news .wp-block-post { display: flex; flex-direction: column; gap: .5rem; }
.tg-news .wp-block-post > * { margin: 0; }
.tg-news .wp-block-post-featured-image { overflow: hidden; border-radius: var(--tg-r); margin-bottom: .75rem !important; }
.tg-news .wp-block-post-featured-image img { transition: transform .8s var(--tg-ease); }
.tg-news .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.tg-news .wp-block-post:not(:has(.wp-block-post-featured-image))::before {
	content: "";
	display: block;
	aspect-ratio: 4 / 3;
	margin-bottom: .75rem;
	border-radius: var(--tg-r);
	background: var(--tg-alice) url("../images/swallow-tint.svg") center / 40% no-repeat;
	opacity: .9;
}
.has-grey-background-color .tg-news .wp-block-post:not(:has(.wp-block-post-featured-image))::before { background-color: #fff; }
.tg-news .wp-block-post-date { color: var(--tg-muted); font-size: .875rem; }
.tg-news .wp-block-post-title { font-size: 1.3125rem; line-height: 1.25; }
.tg-news .wp-block-post-title a { color: var(--tg-navy); text-decoration: none; }
.tg-news .wp-block-post-title a:hover { color: var(--tg-blue); text-decoration: underline; }
.tg-news .wp-block-post-excerpt { color: var(--tg-muted); font-size: 1rem; }
.tg-news .wp-block-post-excerpt__more-text { display: none; }
.tg-news .wp-block-query-pagination { margin-top: 3rem; gap: .5rem; }
.tg-news .wp-block-query-pagination a, .tg-news .wp-block-query-pagination .current { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding-inline: .75rem; border-radius: 999px; }
.tg-news .wp-block-query-pagination .current { background: var(--tg-navy); color: #fff; }

.tg-article { padding-top: calc(var(--tg-head-space) + clamp(3rem, 7vw, 5.5rem)); padding-bottom: var(--tg-section-y); }
.tg-article__date { color: var(--tg-muted); }
.tg-article__title { font-size: var(--wp--preset--font-size--title); text-wrap: balance; }
.tg-article__image img { border-radius: var(--tg-r-l); }
.tg-article .wp-block-post-content > * + * { margin-block-start: 1.25rem; }

.tg-formcard { padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--tg-r-l); background: #fff; box-shadow: 0 30px 60px -40px rgb(var(--tg-navy-rgb) / .45); }
.tg-formcard > * + * { margin-block-start: 1.25rem; }
.wpcf7 form > p, .wpcf7 form > label { margin: 0 0 1.25rem; }
.wpcf7 label { display: block; color: var(--tg-navy); font-size: .9375rem; font-weight: 600; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: .4rem; }
.wpcf7 input:where([type="text"], [type="email"], [type="tel"]), .wpcf7 select, .wpcf7 textarea {
	width: 100%;
	min-height: 52px;
	padding: .8rem 1rem;
	border: 1px solid #C3D2DE;
	border-radius: 12px;
	background: #fff;
	color: var(--tg-ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color .2s, box-shadow .2s;
}
.wpcf7 textarea { min-height: 9rem; resize: vertical; }
.wpcf7 :where(input, select, textarea):focus { outline: none; border-color: var(--tg-blue); box-shadow: 0 0 0 4px rgb(30 111 166 / .18); }
.wpcf7 .wpcf7-acceptance label { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; color: var(--tg-ink); }
.wpcf7 .wpcf7-acceptance input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; flex: none; accent-color: var(--tg-navy); }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 input[type="submit"] {
	min-height: 52px;
	padding: .8rem 1.75rem;
	border: 0;
	border-radius: 999px;
	background: var(--tg-amber);
	color: var(--tg-amber-ink);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .25s, transform .4s var(--tg-spring);
}
.wpcf7 input[type="submit"]:hover { background: var(--tg-amber-dark); }
.wpcf7 input[type="submit"]:active { transform: scale(.97); }
.wpcf7 .wpcf7-not-valid-tip { margin-top: .4rem; color: #B42318; font-size: .875rem; font-weight: 500; }
.wpcf7 .wpcf7-not-valid { border-color: #B42318 !important; }
.wpcf7 form .wpcf7-response-output { margin: 1.25rem 0 0; padding: 1rem 1.25rem; border: 0; border-radius: 12px; background: var(--tg-alice); color: var(--tg-navy); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { background: #FEF3F2; color: #B42318; }
.wpcf7 form.sent .wpcf7-response-output { background: #ECFDF3; color: #05603A; }
.wpcf7-spinner { margin-left: .75rem; }

/* 10. Footer --------------------------------------------------------------- */
.tg-footer { background: var(--tg-navy); color: rgb(255 255 255 / .8); font-size: 1rem; }
.tg-footer a { color: #fff; text-decoration: none; }
.tg-footer a:hover { text-decoration: underline; }
.tg-footer__inner {
	display: grid;
	gap: 2.5rem;
	max-width: 1200px;
	margin-inline: auto;
	padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 4vw, 2.5rem) 3rem;
}
@media (min-width: 900px) { .tg-footer__inner { grid-template-columns: 1.4fr 1fr 1.2fr .8fr; } }
.tg-footer__brand .tg-logo { width: 72px; height: 72px; box-shadow: none; }
.tg-footer__tagline { margin: 1.25rem 0 .75rem; color: #fff; font-size: 1.375rem; font-weight: 650; line-height: 1.25; letter-spacing: -.015em; max-width: 16ch; }
.tg-footer p { margin: 0 0 .75rem; }
.tg-footer__title { margin: 0 0 1rem; color: rgb(255 255 255 / .6); font-size: .875rem; font-weight: 600; letter-spacing: 0; }
.tg-footer ul { margin: 0; padding: 0; list-style: none; }
.tg-footer__col li { margin-bottom: .6rem; }
.tg-footer address { font-style: normal; }
.tg-social a { display: inline-flex; align-items: center; gap: .5rem; min-height: 32px; }
.tg-footer__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	max-width: 1200px;
	margin-inline: auto;
	padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) calc(1.5rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid rgb(255 255 255 / .14);
	font-size: .875rem;
}
.tg-footer__bar p { margin: 0; }
.tg-footer__bar ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* 11. Motion --------------------------------------------------------------- */
@keyframes tg-pop { from { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(.96); } }
@keyframes tg-fade { from { opacity: 0; } }
@keyframes tg-sheet-in { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
@keyframes tg-sheet-out { to { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes tg-rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes tg-panel-in { from { opacity: 0; transform: translateY(24px) scale(.98); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); } }

/* The hero is the one orchestrated moment: the glass forms, then the words. */
.js .tg-hero__panel { animation: tg-panel-in 1s var(--tg-ease) both .1s; }
.js .tg-hero__panel > * { animation: tg-rise .9s var(--tg-ease) both; }
.js .tg-hero__panel > :nth-child(1) { animation-delay: .35s; }
.js .tg-hero__panel > :nth-child(2) { animation-delay: .45s; }
.js .tg-hero__panel > :nth-child(3) { animation-delay: .6s; }
.js .tg-hero__panel > :nth-child(4) { animation-delay: .72s; }

/* Gentle parallax on the hero photo, driven by scroll position */
@supports (animation-timeline: scroll()) {
	.tg-hero__media { animation: tg-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
	@keyframes tg-parallax { to { transform: translateY(12vh); } }
}

/* Gallery images reveal with a soft mask wipe */
.js .is-style-editorial > .wp-block-image { clip-path: inset(12% 0 0 0 round var(--tg-r)); opacity: 0; transition: clip-path 1s var(--tg-ease), opacity .8s var(--tg-ease); }
.js .is-style-editorial > .wp-block-image.is-in { clip-path: inset(0 0 0 0 round var(--tg-r)); opacity: 1; }
.js .is-style-editorial > .wp-block-image:nth-child(2) { transition-delay: .08s; }
.js .is-style-editorial > .wp-block-image:nth-child(3) { transition-delay: .16s; }
.js .is-style-editorial > .wp-block-image:nth-child(4) { transition-delay: .24s; }
.js .is-style-editorial > .wp-block-image:nth-child(5) { transition-delay: .32s; }

/* 12. Fallbacks & preferences --------------------------------------------- */

/* No backdrop blur: solid surfaces in the same colours */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.glass { --g-bg: rgb(255 255 255 / .96); }
	.glass--panel { --g-bg: rgb(var(--tg-navy-rgb) / .9); }
	.tg-header.is-dark .tg-nav { --g-bg: rgb(var(--tg-navy-rgb) / .94); }
	.glass--button { --g-bg: rgb(var(--tg-navy-rgb) / .7); }
}
@media (prefers-reduced-transparency: reduce) {
	.glass { -webkit-backdrop-filter: none; backdrop-filter: none; --g-bg: rgb(255 255 255 / .97); }
	.glass--panel, .tg-header.is-dark .tg-nav { --g-bg: rgb(var(--tg-navy-rgb) / .94); }
	.wp-block-button.is-style-glass .wp-block-button__link { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
	:where(.tg-hero, .tg-dark) .wp-block-button.is-style-glass .wp-block-button__link { background: rgb(var(--tg-navy-rgb) / .9); }
}
@media (prefers-contrast: more) {
	.glass--panel { --g-bg: rgb(var(--tg-navy-rgb) / .92); }
	.tg-card p, .tg-pcard__sum, .tg-stat__label { color: var(--tg-ink); }
}

/* Phones: lighter glass, fewer effects */
@media (max-width: 767px) {
	.glass { --g-blur: 14px; }
	.glass--panel { --g-blur: 16px; }
	.glass::before { background: linear-gradient(180deg, rgb(255 255 255 / .16), transparent 42%); }
	.tg-hero { min-height: max(34rem, 100svh); }
	.tg-hero__inner { padding-inline: .75rem; padding-bottom: .75rem; }
	.tg-hero__panel { padding: 1.5rem 1.25rem 1.25rem; border-radius: 24px; }
	.tg-hero__panel p, .tg-hero__panel .tg-hero__lead { font-size: 1.0625rem; }
	.tg-hero__panel .tg-label { font-size: .875rem; }
	.tg-hero__panel .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.tg-hero__panel .wp-block-button, .tg-hero__panel .wp-block-button__link { width: 100%; }
	.tg-hero__pause { top: calc(var(--tg-head-space) + .5rem); bottom: auto; }
	.tg-section > .wp-block-buttons .wp-block-button { flex: 1 1 auto; }
	.tg-rail-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.tg-hero__media { animation: none !important; }
	.js .is-style-editorial > .wp-block-image { clip-path: none; opacity: 1; }
}

/* Print */
@media print {
	.tg-header, .tg-sheet, .tg-hero__media, .tg-hero__pause, .tg-map { display: none !important; }
	.tg-hero { min-height: 0; background: none; color: #000; }
	.glass { background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
	.tg-hero__panel h1, .tg-hero__panel p { color: #000; }
}
.tg-pagehead + .tg-section { padding-top: 0; }
