/* ==========================================================================
   LEAD FOUNDATION THEME: design system
   Tokens come from theme.json (--wp--preset--*). Short aliases below keep this file readable.
   Sections: 1 tokens, 2 base, 3 type, 4 buttons, 5 header, 6 hero, 7 home sections, 8 inner pages,
   9 templates, 10 footer, 11 motion, 12 responsive, 13 editor.
   ========================================================================== */

/* The ampersand in Fraunces is ornate and reads like a registered-trademark sign, so headings borrow Public Sans for "&" only. */
@font-face { font-family: "LF Ampersand"; src: url("../fonts/public-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0026; }

/* 1. Tokens ----------------------------------------------------------------- */
:root {
	--lf-green: var(--wp--preset--color--deep-green, #174d38);
	--lf-leaf: var(--wp--preset--color--leaf-green, #27684b);
	--lf-lime: var(--wp--preset--color--soft-lime, #d5e7a4);
	--lf-gold: var(--wp--preset--color--warm-gold, #e9b949);
	--lf-cream: var(--wp--preset--color--cream, #f7f7f0);
	--lf-forest: var(--wp--preset--color--forest, #0e3426);
	--lf-tint: var(--wp--preset--color--lime-tint, #eef4db);
	--lf-ink: var(--wp--preset--color--ink, #15281f);
	--lf-ink-soft: var(--wp--preset--color--ink-soft, #3f5247);
	--lf-white: #fff;
	--lf-on-dark: #f7f7f0;
	--lf-on-dark-soft: rgba(247, 247, 240, 0.84);
	--lf-line: rgba(23, 77, 56, 0.18);
	--lf-line-strong: rgba(23, 77, 56, 0.42);
	--lf-line-inv: rgba(247, 247, 240, 0.24);

	--lf-display: "LF Ampersand", var(--wp--preset--font-family--display, Georgia, serif);
	--lf-body: var(--wp--preset--font-family--body, system-ui, sans-serif);

	--lf-container: 1240px;
	--lf-gutter: clamp(1.25rem, 4vw, 3rem);
	--lf-gap: clamp(1.5rem, 3vw, 3rem);
	--lf-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);

	--lf-r-img: 28px;
	--lf-r-img-sm: 20px;
	--lf-r-ui: 14px;
	--lf-r-sheet: clamp(28px, 4vw, 56px);

	--lf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--lf-dur: 240ms;
	--lf-bar-h: 76px;
	--lf-shadow: 0 1px 2px rgba(14, 52, 38, 0.08), 0 14px 36px rgba(14, 52, 38, 0.12);
}

/* 2. Base ------------------------------------------------------------------- */
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; }
:where(ul, ol) { padding: 0; list-style: none; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
:target { scroll-margin-top: 7rem; }
a { text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--lf-green); outline-offset: 3px; border-radius: 4px; }
.lf-dark :focus-visible, .lf-footer :focus-visible, .lf-cta :focus-visible, .lf-topbar :focus-visible { outline-color: var(--lf-lime); }
img { max-width: 100%; height: auto; }
.screen-reader-text, .visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.lf-container { width: 100%; max-width: calc(var(--lf-container) + var(--lf-gutter) * 2); margin-inline: auto; padding-inline: var(--lf-gutter); box-sizing: border-box; }
.lf-section { padding-block: var(--lf-section); position: relative; }
.lf-tint { background: var(--lf-tint); }
.lf-white { background: var(--lf-white); }
.lf-stack > * + * { margin-top: 1.25rem; }

/* dark rounded panels: inset from the viewport so their corners always sit on cream */
.lf-sheet { margin: clamp(0.5rem, 1.6vw, 1.5rem); margin-block: clamp(1rem, 2.5vw, 2.5rem); border-radius: var(--lf-r-sheet); overflow: clip; width: auto; max-width: none; }
.lf-dark { background: var(--lf-green); color: var(--lf-on-dark); }
.lf-dark :where(h1, h2, h3, h4) { color: var(--lf-on-dark); }
.lf-dark a { color: inherit; }

/* Photographs: one radius system, one grade. Logos are never rounded. */
.wp-block-image { margin: 0; overflow: hidden; border-radius: var(--lf-r-img); line-height: 0; background: var(--lf-tint); }
.wp-block-image img { display: block; width: 100%; height: auto; border-radius: var(--lf-r-img); }
.wp-block-image.is-style-lf-sharp, .wp-block-image.is-style-lf-sharp img { border-radius: 4px; }
.wp-block-image.is-style-lf-soft, .wp-block-image.is-style-lf-soft img { border-radius: 44px; }
.wp-block-site-logo img { border-radius: 0; height: auto; }
.lf-stage__img, .lf-stage__img img, .lf-theme__img, .lf-theme__img img, .lf-role__img, .lf-role__img img,
.lf-expertise__img, .lf-expertise__img img, .lf-project__img, .lf-project__img img { border-radius: var(--lf-r-img-sm); }
.lf-pos-left img { object-position: 20% 50%; }
.lf-pos-right img { object-position: 80% 50%; }
.lf-pos-top img { object-position: 50% 15%; }
.lf-pos-low img { object-position: 50% 70%; }
.lf-pos-bottom img { object-position: 50% 85%; }
.lf-pos-center img { object-position: 50% 50%; }

/* headings use the display stack (with the plain ampersand) */
:is(h1, h2, h3, h4, h5, h6).wp-block-heading, .wp-block-post-title, .wp-site-blocks :is(h1, h2, h3, h4, h5, h6), .editor-styles-wrapper :is(h1, h2, h3, h4, h5, h6) { font-family: var(--lf-display); }

/* 3. Type ------------------------------------------------------------------- */
.lf-h1 { font-size: var(--wp--preset--font-size--title); }
.lf-h2 { font-size: var(--wp--preset--font-size--heading); line-height: 1.06; text-wrap: balance; }
.lf-h2--md { font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.75rem); }
.lf-lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.55; color: var(--lf-ink-soft); max-width: 36rem; text-wrap: pretty; }
.lf-lead--ink { color: var(--lf-ink); }
.lf-dark .lf-lead { color: var(--lf-on-dark-soft); }
.lf-text { color: var(--lf-ink-soft); max-width: 38rem; text-wrap: pretty; }
.lf-dark .lf-text { color: var(--lf-on-dark-soft); }
.lf-statement { font-family: var(--lf-display); font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.05rem); line-height: 1.28; color: var(--lf-green); text-wrap: pretty; letter-spacing: -0.01em; }
.lf-eyebrow { display: flex; align-items: center; gap: 0.8rem; font-size: 0.9375rem; font-weight: 600; color: var(--lf-leaf); }
.lf-eyebrow::before { content: ""; flex: none; width: 2.25rem; height: 2px; background: var(--lf-gold); }
.lf-dark .lf-eyebrow { color: var(--lf-lime); }
.lf-label { font-family: var(--lf-body); font-size: 0.9375rem; font-weight: 600; color: var(--lf-leaf); letter-spacing: 0; }
.lf-more a { font-weight: 600; color: var(--lf-green); text-decoration: none; background: linear-gradient(var(--lf-gold), var(--lf-gold)) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; transition: background-size var(--lf-dur) var(--lf-ease); }
.lf-more a:hover { background-size: 100% 100%; }
.lf-dark .lf-more a { color: var(--lf-on-dark); }
.lf-head { display: grid; gap: 1.25rem 3rem; margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 4.5rem); }
.lf-head .lf-lead { margin: 0; }
.lf-crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.875rem; color: var(--lf-ink-soft); margin-bottom: 1.5rem; }
.lf-crumbs a { color: inherit; text-decoration: none; }
.lf-crumbs a:hover { text-decoration: underline; }
.lf-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem !important; }
.lf-chips li { padding: 0.35rem 0.85rem; border: 1px solid var(--lf-line-strong); border-radius: 999px; font-size: 0.875rem; font-weight: 500; color: var(--lf-green); background: var(--lf-white); }
.lf-chips--dark li { background: transparent; color: var(--lf-on-dark); border-color: var(--lf-line-inv); }

/* 4. Buttons ---------------------------------------------------------------- */
.lf-btns.lf-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.lf-btn .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.25rem;
	padding: 0.8rem 1.7rem; border: 2px solid transparent; border-radius: 999px; font-family: var(--lf-body);
	font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none;
	transition: background-color var(--lf-dur) var(--lf-ease), color var(--lf-dur) var(--lf-ease), border-color var(--lf-dur) var(--lf-ease), transform var(--lf-dur) var(--lf-ease), box-shadow var(--lf-dur) var(--lf-ease);
}
.lf-btn--primary .wp-block-button__link { background: var(--lf-green); color: var(--lf-cream); }
.lf-btn--primary .wp-block-button__link:hover { background: var(--lf-leaf); color: #fff; box-shadow: 0 10px 24px rgba(23, 77, 56, 0.28); transform: translateY(-1px); }
.lf-btn--secondary .wp-block-button__link { background: transparent; border-color: var(--lf-green); color: var(--lf-green); }
.lf-btn--secondary .wp-block-button__link:hover { background: var(--lf-green); color: var(--lf-cream); }
.lf-btn--gold .wp-block-button__link { background: var(--lf-gold); color: var(--lf-forest); }
.lf-btn--gold .wp-block-button__link:hover { background: #f3c868; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22); transform: translateY(-1px); }
.lf-btn--ghost .wp-block-button__link { background: transparent; border-color: rgba(247, 247, 240, 0.7); color: var(--lf-on-dark); }
.lf-btn--ghost .wp-block-button__link:hover { background: var(--lf-on-dark); color: var(--lf-green); }
.lf-btn--arrow .wp-block-button__link::after {
	content: ""; flex: none; width: 1.05em; height: 1.05em; background: currentColor; transition: transform var(--lf-dur) var(--lf-ease);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lf-btn--arrow .wp-block-button__link:hover::after { transform: translateX(4px); }

/* 5. Header -----------------------------------------------------------------
   The header never changes height while scrolling (that caused the jump near the top of the page).
   The template-part wrappers use display:contents so the bar can stick to the whole page. */
.lf-site-header, .lf-header { display: contents; }
.lf-topbar { position: relative; z-index: 101; background: var(--lf-forest); color: var(--lf-on-dark-soft); font-size: 0.8125rem; }
.lf-topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.25rem; }
.lf-topbar__contact { display: flex; gap: 1.5rem; white-space: nowrap; }
.lf-topbar__contact p { margin: 0; }
.lf-topbar__link--last { padding-right: 1.5rem; border-right: 1px solid var(--lf-line-inv); }
.lf-topbar__link a { font-weight: 600; }
.lf-topbar a { color: inherit; text-decoration: none; transition: color var(--lf-dur) var(--lf-ease); }
.lf-topbar a:hover { color: #fff; text-decoration: underline; }
.lf-bar { position: sticky; top: 0; z-index: 100; background: var(--lf-white); border-bottom: 1px solid var(--lf-line); transition: box-shadow 350ms var(--lf-ease), border-color 350ms var(--lf-ease); }
.admin-bar .lf-bar { top: var(--wp-admin--admin-bar--height, 0px); }
.lf-site-header.is-scrolled .lf-bar { box-shadow: 0 10px 30px rgba(14, 52, 38, 0.1); border-bottom-color: transparent; }
.lf-bar__in { display: flex; align-items: center; gap: 1.5rem; min-height: var(--lf-bar-h); }
.lf-logo { flex: none; margin: 0; }
.lf-logo img { width: 132px; }
.lf-bar .wp-block-buttons { margin: 0; flex: none; }
.lf-bar .lf-btn .wp-block-button__link { min-height: 2.75rem; padding: 0.55rem 1.3rem; font-size: 0.9375rem; }

.lf-nav { margin-left: auto; }
.lf-nav .wp-block-navigation__container { gap: 0.25rem 1.6rem; }
.lf-nav .wp-block-navigation-item__content { padding: 0.45rem 0; font-size: 0.9375rem; font-weight: 500; color: var(--lf-ink); text-decoration: none; background: linear-gradient(var(--lf-gold), var(--lf-gold)) 0 100% / 0 2px no-repeat; transition: background-size 320ms var(--lf-ease), color var(--lf-dur) var(--lf-ease); }
.lf-nav .wp-block-navigation-item__content:hover, .lf-nav .wp-block-navigation-item__content:focus-visible, .lf-nav .current-menu-item > .wp-block-navigation-item__content, .lf-nav [aria-current="page"] { background-size: 100% 2px; color: var(--lf-green); }
.lf-nav .wp-block-navigation__submenu-icon { margin-left: 0.3rem; }
.lf-nav .wp-block-navigation__submenu-icon svg { transition: transform var(--lf-dur) var(--lf-ease); }
.lf-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.7rem 0.95rem; border-radius: 10px; background: none; transition: background-color var(--lf-dur) var(--lf-ease), color var(--lf-dur) var(--lf-ease); }
.lf-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover, .lf-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible { background: var(--lf-tint); }
.lf-nav .wp-block-navigation__responsive-container-open, .lf-nav .wp-block-navigation__responsive-container-close { color: var(--lf-green); }

/* Dropdown (desktop): fades in at once, stays open a moment after the pointer leaves, and a transparent
   bridge fills the gap so the pointer can travel down to the items without the menu closing. */
@media (min-width: 1180px) {
	.lf-nav .has-child > .wp-block-navigation__submenu-container {
		display: block; height: auto !important; overflow: visible !important; position: absolute; top: 100%; left: -0.6rem;
		min-width: 15rem; padding: 0.6rem; margin: 0.65rem 0 0 !important; border: 1px solid var(--lf-line); border-radius: var(--lf-r-ui);
		background: var(--lf-white); box-shadow: var(--lf-shadow);
		opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px);
		transition: opacity 220ms var(--lf-ease) 320ms, transform 260ms var(--lf-ease) 320ms, visibility 0s linear 580ms;
	}
	.lf-nav .has-child > .wp-block-navigation__submenu-container::before { content: ""; position: absolute; left: 0; right: 0; top: -1.1rem; height: 1.1rem; }
	.lf-nav .has-child:hover > .wp-block-navigation__submenu-container,
	.lf-nav .has-child:focus-within > .wp-block-navigation__submenu-container,
	.lf-nav .has-child > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
		opacity: 1; visibility: visible; pointer-events: auto; transform: none;
		transition: opacity 200ms var(--lf-ease), transform 260ms var(--lf-ease), visibility 0s;
	}
	.lf-nav .has-child:hover > .wp-block-navigation__submenu-icon svg, .lf-nav .has-child:focus-within > .wp-block-navigation__submenu-icon svg { transform: rotate(180deg); }
}

/* 6. Home hero -------------------------------------------------------------- */
.lf-hero { position: relative; overflow: clip; padding: clamp(1.75rem, 1rem + 2.4vw, 3.5rem) 0 clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.lf-hero::before, .lf-page-hero::before, .lf-cta__body::before, .lf-footer::before {
	content: ""; position: absolute; pointer-events: none; z-index: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 520' fill='none' stroke='%23D5E7A4' stroke-width='2'%3E%3Cpath d='M-40 470C130 380 270 520 470 400S720 340 860 250'/%3E%3Cpath d='M-40 430C130 340 270 480 470 360S720 300 860 210'/%3E%3Cpath d='M-40 390C130 300 270 440 470 320S720 260 860 170'/%3E%3Cpath d='M-40 350C130 260 270 400 470 280S720 220 860 130'/%3E%3Cpath d='M-40 310C130 220 270 360 470 240S720 180 860 90'/%3E%3Cpath d='M-40 270C130 180 270 320 470 200S720 140 860 50'/%3E%3Cpath d='M-40 230C130 140 270 280 470 160S720 100 860 10'/%3E%3C/svg%3E") right top / contain no-repeat;
	opacity: 0.7;
}
.lf-hero::before { left: 30%; bottom: -14%; top: auto; width: 46%; height: 52%; opacity: 0.4; transform: scaleX(-1); }
.lf-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6.3fr) minmax(0, 5.7fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.lf-hero__h1 { margin-top: 1.1rem; font-size: clamp(2.7rem, 1.2rem + 3.6vw, 4.5rem); line-height: 1.03; letter-spacing: -0.03em; text-wrap: balance; }
.lf-hero__lead { margin-top: 1.4rem; max-width: 33rem; }
.lf-hero .lf-btns { margin-top: 1.9rem; }
.lf-hero__media { position: relative; padding: 0 0 3.25rem 3.25rem; }
.lf-hero__img { margin: 0; }
.lf-hero__img--main { box-shadow: 0 2px 4px rgba(14, 52, 38, 0.08), 0 30px 60px rgba(14, 52, 38, 0.18); }
.lf-hero__img--inset { position: absolute; left: 0; bottom: 0; width: 50%; border: 8px solid var(--lf-cream); border-radius: calc(var(--lf-r-img) + 8px); box-shadow: 0 2px 4px rgba(14, 52, 38, 0.1), 0 20px 44px rgba(14, 52, 38, 0.2); }
.lf-hero__img--inset img { border-radius: var(--lf-r-img-sm); }

/* 7. Home sections ---------------------------------------------------------- */
.lf-audience { border-block: 1px solid var(--lf-line-strong); }
.lf-audience .lf-container { padding-block: 2.25rem 0.5rem; }
.lf-audience__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lf-audience__item { position: relative; padding: 1.25rem 1.5rem 2rem; border-left: 1px solid var(--lf-line); }
.lf-audience__item:first-child { border-left: 0; padding-left: 0; }
.lf-audience__name { font-family: var(--lf-body); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--lf-green); }
.lf-audience__name a { color: inherit; text-decoration: none; }
.lf-audience__name a::after { content: ""; position: absolute; inset: 0; }
.lf-audience__item:hover .lf-audience__name a { text-decoration: underline; text-decoration-color: var(--lf-gold); text-decoration-thickness: 2px; }
.lf-audience__desc { margin-top: 0.35rem; font-size: 0.9375rem; color: var(--lf-ink-soft); }

.lf-chain { padding-block: calc(var(--lf-section) * 0.85); }
.lf-chain .lf-head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; }
.lf-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(0.75rem, 1.4vw, 1.25rem); align-items: end; }
.lf-stage__img { margin: 0 0 1rem; }
.lf-stage__meta { display: flex; align-items: baseline; gap: 0.7rem; padding-top: 0.8rem; border-top: 2px solid var(--lf-gold); }
.lf-stage__n { font: 600 0.8125rem/1 var(--lf-body); letter-spacing: 0.06em; color: var(--lf-gold); }
.lf-stage__name { font-family: var(--lf-display); font-weight: 500; font-size: clamp(1.05rem, 0.8rem + 0.8vw, 1.4rem); line-height: 1.15; color: var(--lf-on-dark); }

.lf-split { display: grid; gap: var(--lf-gap); align-items: center; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(2.5rem, 6vw, 6.5rem); }
.lf-split--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.lf-split--flip > :first-child { order: 2; }
.lf-split--top { align-items: start; }
.lf-split__img { margin: 0; }
.lf-about__media { position: relative; padding-bottom: 3.5rem; }
.lf-about__img1 { margin: 0; width: 82%; }
.lf-about__img2 { position: absolute; right: 0; bottom: 0; width: 56%; margin: 0; border: 8px solid var(--lf-cream); border-radius: calc(var(--lf-r-img) + 8px); box-shadow: var(--lf-shadow); }
.lf-about__img2, .lf-about__img2 img { }
.lf-about__img2 img { border-radius: var(--lf-r-img-sm); }

.lf-vision { padding-block: calc(var(--lf-section) * 0.85); }
.lf-visiongrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6.5rem); align-items: center; }
.lf-visiongrid__img { margin: 0; }
.lf-aims { display: grid; gap: clamp(1.75rem, 1rem + 2vw, 3rem); }
.lf-aim { padding-top: 1.5rem; border-top: 1px solid var(--lf-line-strong); }
.lf-aim .lf-statement { margin-top: 1rem; }

.lf-expertise .lf-head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; }
.lf-expertise__layout { display: block; }
.lf-expertise__row { display: grid; gap: 1.25rem; padding-block: 2rem; border-top: 1px solid var(--lf-line-strong); }
.lf-expertise__row:last-child { border-bottom: 1px solid var(--lf-line-strong); }
.lf-expertise__img { margin: 0; }
.lf-expertise__name { font-size: var(--wp--preset--font-size--subheading); line-height: 1.15; text-wrap: balance; }
.lf-expertise__desc { margin-top: 0.7rem; color: var(--lf-ink-soft); max-width: 34rem; text-wrap: pretty; }
.lf-expertise__text .lf-more { margin-top: 1rem; }
/* with JavaScript on wide screens: a sticky photograph that always fits the window and follows the active row */
.lf-expertise__frame { display: none; }
@media (min-width: 1000px) {
	.lf-js .lf-expertise__layout.has-frame { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(3rem, 7vw, 7rem); align-items: start; }
	.lf-js .has-frame .lf-expertise__frame { display: block; position: sticky; top: 7.25rem; height: min(calc(100vh - 10rem), 640px); min-height: 340px; border-radius: var(--lf-r-img); overflow: hidden; background: var(--lf-tint); grid-column: 1; grid-row: 1; box-shadow: var(--lf-shadow); }
	.lf-js .has-frame .lf-expertise__list { grid-column: 2; grid-row: 1; position: relative; border-left: 2px solid var(--lf-line); padding-bottom: 14vh; }
	.lf-frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 650ms var(--lf-ease), transform 1000ms var(--lf-ease); }
	.lf-frame__img.is-active { opacity: 1; transform: none; }
	.lf-frame__cap { position: absolute; left: 1rem; bottom: 1rem; max-width: calc(100% - 2rem); padding: 0.55rem 1rem; border-radius: 999px; background: rgba(14, 52, 38, 0.86); color: var(--lf-on-dark); font-size: 0.875rem; font-weight: 600; line-height: 1.2; z-index: 2; transition: opacity 250ms var(--lf-ease); }
	.lf-frame__cap.is-swapping { opacity: 0; }
	.lf-js .has-frame .lf-expertise__img { display: none; }
	.lf-js .has-frame .lf-expertise__row { position: relative; padding-block: clamp(2.5rem, 2rem + 5vh, 5rem); padding-left: 2.25rem; border-top: 0; border-bottom: 0; }
	.lf-js .has-frame .lf-expertise__row:last-child { border-bottom: 0; }
	.lf-js .has-frame .lf-expertise__row::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--lf-gold); transform: scaleY(0); transform-origin: top; transition: transform 500ms var(--lf-ease); }
	.lf-js .has-frame .lf-expertise__row.is-active::before { transform: scaleY(1); }
	.lf-js .has-frame .lf-expertise__row .lf-expertise__name { color: var(--lf-ink-soft); transition: color var(--lf-dur) var(--lf-ease); }
	.lf-js .has-frame .lf-expertise__row .lf-expertise__desc { color: #4a5c52; transition: color var(--lf-dur) var(--lf-ease); }
	.lf-js .has-frame .lf-expertise__row.is-active .lf-expertise__name { color: var(--lf-green); }
	.lf-js .has-frame .lf-expertise__row.is-active .lf-expertise__desc { color: var(--lf-ink); }
}

.lf-programmes { padding-block: calc(var(--lf-section) * 0.85); }
.lf-programmes .lf-head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem); }
.lf-tablist { display: flex; flex-wrap: wrap; gap: 0.25rem 2.25rem; margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem); border-bottom: 1px solid var(--lf-line-inv); }
.lf-tab { position: relative; padding: 0.9rem 0; background: none; border: 0; cursor: pointer; font-family: var(--lf-display); font-weight: 500; font-size: clamp(1.2rem, 1rem + 0.9vw, 1.75rem); line-height: 1.2; color: rgba(247, 247, 240, 0.62); text-align: left; transition: color var(--lf-dur) var(--lf-ease); }
.lf-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--lf-gold); transform: scaleX(0); transform-origin: left; transition: transform 360ms var(--lf-ease); }
.lf-tab:hover { color: #fff; }
.lf-tab[aria-selected="true"] { color: var(--lf-on-dark); }
.lf-tab[aria-selected="true"]::after { transform: scaleX(1); }
.lf-tabpanel { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: 1.5rem; }
.lf-tabpanel__img { margin: 0; }
.lf-tabpanel__title { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); line-height: 1.06; text-wrap: balance; }
.lf-tabpanel__desc { margin-top: 1rem; max-width: 32rem; font-size: var(--wp--preset--font-size--lead); line-height: 1.55; color: var(--lf-on-dark-soft); text-wrap: pretty; }
.lf-js .lf-tabpanel + .lf-tabpanel { border-top: 0; }
.lf-tabpanel[hidden] { display: none; }
.lf-tabpanel.is-entering { animation: lf-panel-in 560ms var(--lf-ease) both; }
.lf-programmes .lf-btns { margin-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
.lf-tabpanel__body, .lf-model__body { container-type: inline-size; }
.lf-flow { display: flex; flex-wrap: nowrap; align-items: stretch; margin-top: 2.25rem !important; padding: 0; width: 100%; }
.lf-flow li { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0.8rem 0.85rem; border: 1px solid rgba(213, 231, 164, 0.55); border-radius: 16px; background: rgba(213, 231, 164, 0.07); font-size: 0.875rem; font-weight: 500; line-height: 1.3; color: var(--lf-lime); margin-left: 1.9rem; overflow-wrap: anywhere; }
.lf-flow li:first-child { margin-left: 0; }
.lf-flow li.is-core { flex-grow: 1.45; background: var(--lf-gold); border-color: var(--lf-gold); color: var(--lf-forest); font-weight: 600; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22); }
.lf-flow li + li::before { content: ""; position: absolute; right: 100%; top: 50%; width: 1.9rem; height: 1px; background: rgba(213, 231, 164, 0.55); }
.lf-flow li + li::after { content: ""; position: absolute; right: calc(100% + 0.1rem); top: 50%; width: 8px; height: 8px; border-top: 1.5px solid rgba(213, 231, 164, 0.9); border-right: 1.5px solid rgba(213, 231, 164, 0.9); transform: translateY(-50%) rotate(45deg); }
.lf-flow li.is-join::before { content: "+"; width: 1.9rem; height: auto; background: none; transform: translateY(-50%); text-align: center; font-size: 1.2rem; font-weight: 600; line-height: 1; color: var(--lf-lime); }
.lf-flow li.is-join::after { display: none; }
/* only on very narrow columns (small phones) does the flow stack vertically */
@container (max-width: 22rem) {
	.lf-flow { flex-direction: column; align-items: stretch; gap: 1.7rem; }
	.lf-flow li, .lf-flow li:first-child { margin-left: 0; justify-content: flex-start; text-align: left; }
	.lf-flow li + li::before { right: auto; left: 1.4rem; top: auto; bottom: 100%; width: 1px; height: 1.7rem; }
	.lf-flow li + li::after { right: auto; left: calc(1.4rem - 4px); top: auto; bottom: calc(100% + 0.05rem); transform: rotate(135deg); }
	.lf-flow li.is-join::before { left: 0; right: auto; width: 2.8rem; height: 1.7rem; bottom: 100%; top: auto; transform: none; display: flex; align-items: center; justify-content: center; background: none; }
}

.lf-impact .lf-head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; }
.lf-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--lf-gap); align-items: start; }
.lf-theme:nth-child(even) { margin-top: 3.5rem; }
.lf-theme__img { margin: 0 0 1.1rem; }
.lf-theme__name { font-size: var(--wp--preset--font-size--subheading); line-height: 1.15; text-wrap: balance; }
.lf-theme__desc { margin-top: 0.6rem; color: var(--lf-ink-soft); text-wrap: pretty; }
.lf-evidence { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; align-items: center; gap: var(--lf-gap); margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1.5rem, 1rem + 3vw, 3rem); background: var(--lf-tint); border-left: 4px solid var(--lf-gold); border-radius: 0 var(--lf-r-ui) var(--lf-r-ui) 0; }
.lf-evidence__title { font-size: var(--wp--preset--font-size--subheading); }

.lf-ctaband { padding-block: 0 calc(var(--lf-section) * 0.9); }
.lf-ctaband .lf-container { padding-top: 0; }
.lf-cta { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); border-radius: var(--lf-r-sheet); overflow: hidden; background: var(--lf-green); color: var(--lf-on-dark); }
.lf-cta__body { position: relative; isolation: isolate; padding: clamp(2rem, 1rem + 5vw, 5.5rem); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.lf-cta__body::before { right: -18%; bottom: -30%; top: auto; width: 80%; height: 120%; opacity: 0.2; z-index: -1; transform: scaleY(-1); }
.lf-cta__title { font-size: clamp(2.1rem, 1.3rem + 3vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--lf-on-dark); text-wrap: balance; }
.lf-cta__text { margin-top: 1.25rem; max-width: 30rem; font-size: var(--wp--preset--font-size--lead); line-height: 1.55; color: var(--lf-on-dark-soft); text-wrap: pretty; }
.lf-cta .lf-btns { margin-top: 2rem; }
.lf-cta__img { position: relative; margin: 0; border-radius: 0; background: var(--lf-forest); min-height: 22rem; }
.lf-cta__img img { position: absolute; inset: 0; width: 100%; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; border-radius: 0; }

/* 8. Inner pages ------------------------------------------------------------ */
.lf-page-hero { position: relative; overflow: clip; padding: clamp(2rem, 1rem + 3vw, 4rem) 0 clamp(3rem, 2rem + 4vw, 6rem); }
.lf-page-hero::before { right: -8%; top: -10%; width: 60%; height: 120%; }
.lf-page-hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.lf-page-hero__in--solo { grid-template-columns: minmax(0, 1fr); }
.lf-page-hero__h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.75rem); line-height: 1.04; letter-spacing: -0.024em; text-wrap: balance; }
.lf-page-hero .lf-lead { margin-top: 1.5rem; }
.lf-page-hero__img { margin: 0; box-shadow: var(--lf-shadow); }
.lf-project__status { margin-bottom: 0.75rem; }
.lf-page-hero:has(.lf-page-hero__in--solo) { padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.lf-page-hero:has(.lf-page-hero__in--solo)::before { right: -4%; top: -30%; width: 55%; height: 170%; opacity: 0.6; }
.lf-page-hero:has(.lf-page-hero__in--solo) + .lf-section { padding-top: clamp(1rem, 0.5rem + 2vw, 2.5rem); }
.lf-page-hero + .lf-section { padding-top: calc(var(--lf-section) * 0.55); }

.lf-rows { border-top: 2px solid var(--lf-green); }
.lf-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--lf-gap); align-items: baseline; padding-block: 1.75rem; border-bottom: 1px solid var(--lf-line-strong); }
.lf-row__name { font-size: var(--wp--preset--font-size--subheading); line-height: 1.2; }
.lf-row__text { color: var(--lf-ink-soft); max-width: 36rem; text-wrap: pretty; }
.lf-principles .lf-head, .lf-where .lf-head, .lf-gov .lf-head, .lf-policies .lf-head, .lf-roles .lf-head, .lf-who .lf-head, .lf-areas .lf-head, .lf-models .lf-head, .lf-projectsec .lf-head, .lf-outputs .lf-head, .lf-libsec .lf-head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; }
.lf-offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--lf-gap); }
.lf-office { padding-top: 1rem; border-top: 2px solid var(--lf-green); }
.lf-office__name { font-size: var(--wp--preset--font-size--subheading); }
.lf-office__text { margin-top: 0.5rem; color: var(--lf-ink-soft); }
.lf-gov { padding-block: calc(var(--lf-section) * 0.6); }
.lf-gov .lf-head { margin-bottom: 0; }
.lf-library { border-top: 2px solid var(--lf-green); }
.lf-library__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: var(--lf-gap); align-items: center; padding-block: 1.25rem; border-bottom: 1px solid var(--lf-line-strong); }
.lf-library__name { font-size: var(--wp--preset--font-size--subheading); line-height: 1.2; }
.lf-library__status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--lf-ink-soft); }
.lf-library__status::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; border: 2px solid var(--lf-line-strong); }
.lf-libsec .lf-btns { margin-top: 2.5rem; }

.lf-arealist { display: block; }
.lf-area { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; padding-block: clamp(2.25rem, 1.5rem + 3vw, 4.5rem); border-top: 1px solid var(--lf-line-strong); }
.lf-area:last-child { border-bottom: 1px solid var(--lf-line-strong); }
.lf-area--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.lf-area--flip > :first-child { order: 2; }
.lf-area__img { margin: 0; }

.lf-modellist { display: block; }
.lf-model { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem); border-top: 1px solid var(--lf-line-inv); }
.lf-model:last-child { border-bottom: 1px solid var(--lf-line-inv); }
.lf-model--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.lf-model--flip > :first-child { order: 2; }
.lf-model__img { margin: 0; }
.lf-model__name { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); line-height: 1.06; text-wrap: balance; }
.lf-model__desc { max-width: 32rem; font-size: var(--wp--preset--font-size--lead); line-height: 1.55; color: var(--lf-on-dark-soft); text-wrap: pretty; }

.lf-projects__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--lf-gap); padding: 0; list-style: none; }
.lf-projects__grid > li, .lf-posts__grid > li { margin: 0; }
.lf-posts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--lf-gap); padding: 0; list-style: none; }
.lf-project__img { margin: 0 0 1rem; }
.lf-project__status a, .lf-project__status { display: inline-block; font-size: 0.8125rem; font-weight: 600; color: var(--lf-leaf); text-decoration: none; }
.lf-project__title { font-size: var(--wp--preset--font-size--subheading); line-height: 1.2; margin-top: 0.4rem; }
.lf-project__title a { color: var(--lf-green); text-decoration: none; }
.lf-project__title a:hover { text-decoration: underline; text-decoration-color: var(--lf-gold); text-decoration-thickness: 2px; }
.lf-project__excerpt { margin-top: 0.6rem; color: var(--lf-ink-soft); }
.lf-empty { padding: 2rem; border: 1.5px dashed var(--lf-line-strong); border-radius: var(--lf-r-ui); color: var(--lf-ink-soft); background: var(--lf-white); }
.lf-pagination { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.lf-docs .lf-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.lf-fields { border-top: 2px solid var(--lf-green); }
.lf-field { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--lf-gap); padding-block: 0.95rem; border-bottom: 1px solid var(--lf-line); }
.lf-field__name { font-weight: 600; color: var(--lf-green); }
.lf-field__hint { color: var(--lf-ink-soft); font-size: 0.9375rem; }

.lf-twocol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--lf-gap); }
.lf-panel { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--lf-white); border-radius: var(--lf-r-img-sm); border-top: 4px solid var(--lf-gold); box-shadow: var(--lf-shadow); }
.lf-panel__title { font-size: var(--wp--preset--font-size--subheading); }
.lf-panel .lf-text { margin-top: 0.7rem; }
.lf-panel__eg { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--lf-line); font-size: 0.9375rem; color: var(--lf-ink-soft); }
.lf-note-block { margin-top: 2rem; }

.lf-rolelist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--lf-gap); align-items: start; }
.lf-role:nth-child(2) { margin-top: 3rem; }
.lf-role__img { margin: 0 0 1.1rem; }
.lf-role__name { font-size: var(--wp--preset--font-size--subheading); line-height: 1.15; }
.lf-role__text { margin-top: 0.6rem; color: var(--lf-ink-soft); text-wrap: pretty; }
.lf-pathways { border-top: 2px solid var(--lf-green); }
.lf-pathway { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: var(--lf-gap); align-items: center; padding-block: 1.75rem; border-bottom: 1px solid var(--lf-line-strong); }
.lf-pathway .lf-btns { margin: 0; }
.lf-pathway__name { font-size: var(--wp--preset--font-size--subheading); line-height: 1.2; text-wrap: balance; }
.lf-pathway__text { color: var(--lf-ink-soft); }
.lf-brief .lf-split { align-items: center; }

.lf-contactgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.lf-contactform { padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); background: var(--lf-white); border-radius: var(--lf-r-img); box-shadow: 0 1px 2px rgba(14, 52, 38, 0.06), 0 24px 56px rgba(14, 52, 38, 0.1); }
.lf-contactform > * + * { margin-top: 1rem; }
.lf-contactform .lf-lead { margin-bottom: 1.25rem; }
.lf-contactinfo__img { margin: 0 0 2rem; }
.lf-infolist { display: grid; gap: 0; }
.lf-info { padding: 1rem 0 1rem 2.6rem; border-top: 1px solid var(--lf-line-strong); }
.lf-info:last-child { border-bottom: 1px solid var(--lf-line-strong); }
.lf-info__label { font-size: 0.875rem; font-weight: 600; color: var(--lf-leaf); }
.lf-info__value { margin-top: 0.25rem; font-weight: 600; font-size: 1.1rem; line-height: 1.45; color: var(--lf-green); overflow-wrap: anywhere; }
.lf-info__value a { text-decoration: none; color: inherit; background: linear-gradient(var(--lf-gold), var(--lf-gold)) 0 100% / 0 2px no-repeat; transition: background-size 320ms var(--lf-ease); }
.lf-info__value a:hover { background-size: 100% 2px; }

/* small line icons (CSS masks, so they take the text colour) */
.lf-ico { position: relative; --lf-ico-c: var(--lf-leaf); }
.lf-ico::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 1.4rem; height: 1.4rem; background: var(--lf-ico-c); -webkit-mask: var(--lf-ico-img) center / contain no-repeat; mask: var(--lf-ico-img) center / contain no-repeat; }
.lf-ico--mail { --lf-ico-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='M3.5 7.5l8.5 6 8.5-6'/%3E%3C/svg%3E"); }
.lf-ico--phone { --lf-ico-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 4h3.2l1.7 4.4-2.1 1.4a11 11 0 0 0 5.4 5.4l1.4-2.1 4.4 1.7v3.2a2 2 0 0 1-2.2 2A16 16 0 0 1 3.5 6.2 2 2 0 0 1 5.5 4z'/%3E%3C/svg%3E"); }
.lf-ico--pin { --lf-ico-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.1 7-11.2a7 7 0 1 0-14 0C5 14.9 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.8' r='2.4'/%3E%3C/svg%3E"); }

/* 9. Generic templates ------------------------------------------------------ */
.lf-main { display: block; }
.lf-page__head { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) 1.5rem; }
.lf-prose { padding-bottom: var(--lf-section); }
.lf-prose .is-layout-constrained > * { margin-inline-start: 0 !important; margin-inline-end: auto !important; max-width: 46rem; }
.lf-prose :where(h2) { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); margin-top: 2.5rem; }
.lf-prose :where(h3) { margin-top: 2rem; }
.lf-prose :where(p, ul, ol) { margin-top: 1rem; }
.lf-prose :where(ul) { list-style: disc; padding-left: 1.25rem; }
.lf-prose--project h2 { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--lf-line-strong); }
.lf-listing .lf-container { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem); }
.lf-listing--projects .lf-listing__body { padding-top: 0; }
.lf-single__img { margin-bottom: 2rem; }
.lf-meta { color: var(--lf-ink-soft); font-size: 0.875rem; margin-bottom: 0.5rem; }
.lf-search .wp-block-search__inside-wrapper { gap: 0.5rem; }
.lf-search input { min-height: 3.25rem; padding: 0.7rem 1rem; border: 1.5px solid var(--lf-line-strong); border-radius: var(--lf-r-ui); font: inherit; background: var(--lf-white); }
.lf-search .wp-block-search__button { min-height: 3.25rem; border-radius: 999px; padding: 0 1.5rem; background: var(--lf-green); color: var(--lf-cream); border: 0; font-weight: 600; cursor: pointer; }
.lf-404__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 2rem + 5vw, 7rem); }
.lf-404__img { margin: 0; max-width: 26rem; justify-self: center; width: 100%; }
.lf-404__img svg { display: block; width: 100%; height: auto; border-radius: var(--lf-r-img-sm); }
.lf-404__text .lf-search { margin-top: 2rem; }

/* 10. Footer ---------------------------------------------------------------- */
.lf-site-footer { margin-top: 0; }
.lf-footer { background: var(--lf-forest); color: var(--lf-on-dark); border-radius: var(--lf-r-sheet) var(--lf-r-sheet) 0 0; padding-top: clamp(3.5rem, 3rem + 4vw, 6.5rem); position: relative; overflow: clip; }
.lf-footer::before { right: -10%; top: -6%; width: 60%; height: 90%; opacity: 0.1; }
.lf-footer > .lf-container { position: relative; z-index: 1; }
.lf-footer a { color: inherit; text-decoration: none; }
.lf-footer p a:hover, .lf-footnav a:hover { text-decoration: underline; text-decoration-color: var(--lf-gold); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.lf-footer__grid { display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 2.2fr) minmax(0, 3fr) minmax(0, 3.6fr); gap: clamp(2rem, 4vw, 4.5rem); }
.lf-footer__plate { display: inline-block; padding: 0.9rem 1.1rem; background: var(--lf-white); border-radius: var(--lf-r-ui); line-height: 0; }
.lf-footer__plate .wp-block-site-logo { margin: 0; }
.lf-footer__mission { margin-top: 1.5rem; max-width: 24rem; color: var(--lf-on-dark-soft); text-wrap: pretty; }
.lf-footer__brand .lf-btns { margin-top: 1.5rem; }
.lf-footer__h { font-family: var(--lf-body); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em; color: var(--lf-lime); margin-bottom: 1.1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--lf-line-inv); }
.lf-footnav .wp-block-navigation__container { gap: 0.65rem; }
.lf-footnav .wp-block-navigation-item__content { padding: 0; color: var(--lf-on-dark); transition: color var(--lf-dur) var(--lf-ease), transform var(--lf-dur) var(--lf-ease); }
.lf-footnav .wp-block-navigation-item__content:hover { color: var(--lf-lime); transform: translateX(3px); text-decoration: none; }
.lf-footer__contact .lf-ico { --lf-ico-c: var(--lf-lime); padding-left: 2rem; margin-top: 1rem; color: var(--lf-on-dark-soft); }
.lf-footer__contact .lf-ico::before { top: 0.15rem; width: 1.2rem; height: 1.2rem; }
.lf-footer__contact p strong { color: var(--lf-on-dark); font-weight: 600; }
.lf-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-block: 1.5rem 1.75rem; border-top: 1px solid var(--lf-line-inv); font-size: 0.875rem; color: var(--lf-on-dark-soft); }
.lf-footer__legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-right: auto; }
.lf-footer__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.25em; }
.lf-footer__top a { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1.1rem; border: 1px solid var(--lf-line-inv); border-radius: 999px; color: var(--lf-on-dark); transition: background-color var(--lf-dur) var(--lf-ease), color var(--lf-dur) var(--lf-ease), border-color var(--lf-dur) var(--lf-ease); }
.lf-footer__top a::after { content: ""; width: 0.9em; height: 0.9em; background: currentColor; transition: transform var(--lf-dur) var(--lf-ease); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.lf-footer__top a:hover { background: var(--lf-lime); color: var(--lf-forest); border-color: var(--lf-lime); text-decoration: none; }
.lf-footer__top a:hover::after { transform: translateY(-2px); }

/* 11. Motion ---------------------------------------------------------------- */
@keyframes lf-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lf-img-in { from { opacity: 0; transform: translateY(34px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes lf-reveal { from { opacity: 0; clip-path: inset(10% 6% 10% 6% round 36px); transform: translateY(18px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 28px); transform: none; } }
@keyframes lf-settle { from { transform: scale(1.14); } to { transform: none; } }
@keyframes lf-menu-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes lf-panel-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px); } }
@keyframes lf-panel-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* hero entrance: one short sequence, then nothing moves on its own */
.lf-js .lf-hero__text > *, .lf-js .lf-page-hero__text > * { animation: lf-rise 900ms var(--lf-ease) both; }
.lf-js .lf-hero__text > :nth-child(2), .lf-js .lf-page-hero__text > :nth-child(2) { animation-delay: 90ms; }
.lf-js .lf-hero__text > :nth-child(3), .lf-js .lf-page-hero__text > :nth-child(3) { animation-delay: 180ms; }
.lf-js .lf-hero__text > :nth-child(4) { animation-delay: 270ms; }
.lf-js .lf-hero__img--main { animation: lf-reveal 1200ms var(--lf-ease) 120ms both; }
.lf-js .lf-hero__img--main img { animation: lf-settle 1800ms var(--lf-ease) 120ms both; }
.lf-js .lf-hero__img--inset { animation: lf-img-in 1000ms var(--lf-ease) 520ms both; }
.lf-js .lf-page-hero__img { animation: lf-img-in 900ms var(--lf-ease) 200ms both; }
/* scroll reveals: classes are added by theme.js, so without JavaScript everything is visible */
.lf-js .lf-rv { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--lf-ease), transform 700ms var(--lf-ease); transition-delay: var(--lf-d, 0ms); }
.lf-js .lf-rv.is-in { opacity: 1; transform: none; }
.lf-js .lf-rvi { opacity: 0; transform: translateY(26px); transition: opacity 800ms var(--lf-ease), transform 800ms var(--lf-ease); transition-delay: var(--lf-d, 0ms); }
.lf-js .lf-rvi img { transform: scale(1.09); transition: transform 1300ms var(--lf-ease); transition-delay: var(--lf-d, 0ms); }
.lf-js .lf-rvi.is-in { opacity: 1; transform: none; }
.lf-js .lf-rvi.is-in img { transform: none; }
/* quiet hover: photographs settle slightly */
@media (hover: hover) {
	.lf-theme__img img, .lf-role__img img, .lf-project__img img { transition: transform 700ms var(--lf-ease); }
	.lf-theme:hover .lf-theme__img img, .lf-role:hover .lf-role__img img, .lf-project__img:hover img { transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
	.lf-js .lf-rv, .lf-js .lf-rvi, .lf-js .lf-rvi img { opacity: 1 !important; transform: none !important; }
}

/* 12. Responsive ------------------------------------------------------------ */
/* navigation collapses to the overlay menu below 1180px (core switches at 600px only) */
@media (max-width: 1179px) {
	.lf-js .lf-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.lf-js .lf-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.lf-bar__in { gap: 1rem; }
	.lf-nav { margin-left: auto; }
	.lf-bar .wp-block-buttons { display: none; }
}
.lf-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--lf-cream) !important; color: var(--lf-ink) !important; padding: 1.5rem var(--lf-gutter) 2.5rem; }
.lf-nav .is-menu-open .wp-block-navigation__container { gap: 0; align-items: stretch; width: 100%; }
.lf-nav .is-menu-open .wp-block-navigation-item { width: 100%; }
.lf-nav .is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; padding: 1rem 0; font-family: var(--lf-display); font-size: 1.6rem; font-weight: 500; border-bottom: 1px solid var(--lf-line); background: none; }
.lf-nav .is-menu-open .wp-block-navigation__submenu-container { position: static; border: 0; box-shadow: none; padding: 0 !important; margin: 0 !important; background: none; visibility: visible; opacity: 1; width: 100% !important; min-width: 0; align-items: stretch !important; }
.lf-nav .is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch; }
.lf-nav .wp-block-navigation-item.lf-nav-cta { display: none; }
.lf-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding-left: 1rem; }
.lf-nav .is-menu-open .lf-nav-cta { align-self: flex-start; }
.lf-nav .is-menu-open .wp-block-navigation-item.lf-nav-cta { display: block; margin-top: 1.5rem; }
.lf-nav .is-menu-open .lf-nav-cta .wp-block-navigation-item__content { display: inline-flex; width: auto; padding: 0.85rem 1.7rem; border: 0; border-radius: 999px; background: var(--lf-green); color: var(--lf-cream); font-family: var(--lf-body); font-size: 1rem; font-weight: 600; }
.lf-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-family: var(--lf-body); font-size: 1.05rem; padding: 0.75rem 0; border-radius: 0; }

@media (max-width: 1099px) {
	.lf-hero__grid, .lf-visiongrid, .lf-page-hero__in, .lf-split, .lf-split--flip, .lf-docs .lf-split, .lf-tabpanel, .lf-area, .lf-area--flip, .lf-model, .lf-model--flip, .lf-contactgrid, .lf-404__in, .lf-cta { grid-template-columns: minmax(0, 1fr); }
	.lf-split--flip > :first-child, .lf-area--flip > :first-child, .lf-model--flip > :first-child { order: 0; }
	.lf-chain .lf-head, .lf-expertise .lf-head, .lf-programmes .lf-head, .lf-impact .lf-head, .lf-principles .lf-head, .lf-where .lf-head, .lf-gov .lf-head, .lf-policies .lf-head, .lf-roles .lf-head, .lf-who .lf-head, .lf-areas .lf-head, .lf-models .lf-head, .lf-projectsec .lf-head, .lf-outputs .lf-head, .lf-libsec .lf-head { grid-template-columns: minmax(0, 1fr); }
	.lf-stages { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin-right: calc(var(--lf-gutter) * -1); padding-right: var(--lf-gutter); }
	.lf-stage { flex: 0 0 min(62vw, 15rem); scroll-snap-align: start; align-self: flex-end; }
	.lf-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lf-theme:nth-child(even) { margin-top: 2rem; }
	.lf-audience__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lf-audience__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--lf-line); }
	.lf-audience__item:nth-child(-n+2) { border-top: 0; }
	.lf-projects__grid, .lf-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lf-rolelist { grid-template-columns: minmax(0, 1fr); }
	.lf-role:nth-child(2) { margin-top: 0; }
	.lf-pathway { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
	.lf-evidence { grid-template-columns: minmax(0, 1fr); }
	.lf-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lf-footer__brand { grid-column: 1 / -1; }
	.lf-cta__img { order: -1; }
	.lf-cta__img { aspect-ratio: 16 / 9; min-height: 0; }
	.lf-page-hero__img { order: -1; }
	.lf-hero__media { max-width: 34rem; }
}
@media (max-width: 1099px) {
	.lf-topbar__tag { display: none; }
	.lf-topbar__in { justify-content: center; }
	.lf-topbar__contact { flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; }
}
@media (max-width: 720px) {
	.lf-topbar__link { display: none; }
	.lf-topbar__tag { display: none; }
	.lf-topbar__in { justify-content: center; }
	.lf-hero__media { padding: 0 0 2.5rem 1.75rem; max-width: none; }
	.lf-hero__img--inset { width: 54%; border-width: 6px; }
	.lf-twocol, .lf-offices { grid-template-columns: minmax(0, 1fr); }
	.lf-row, .lf-field, .lf-library__row { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
	.lf-themes, .lf-projects__grid, .lf-posts__grid { grid-template-columns: minmax(0, 1fr); }
	.lf-theme:nth-child(even) { margin-top: 0; }
	.lf-about__img1 { width: 86%; }
	.lf-about__img2 { width: 58%; }
	.lf-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.lf-footer__legal { margin-right: 0; }
	.lf-btns.lf-btns .lf-btn, .lf-btns.lf-btns .wp-block-button__link { width: 100%; }
	.lf-tablist { flex-direction: column; gap: 0; border-bottom: 0; }
	.lf-tab { padding: 0.8rem 0; border-bottom: 1px solid var(--lf-line-inv); width: 100%; }
	.lf-tab::after { bottom: -1px; }
}
/* 13. Editor ---------------------------------------------------------------- */
.editor-styles-wrapper .lf-hero__img, .editor-styles-wrapper .lf-hero__img img, .editor-styles-wrapper .lf-hero__text > * { animation: none; }
.editor-styles-wrapper .lf-sheet { margin-inline: 0; }


/* 14. Polish: scrolling, transitions between states, page transitions ---------- */
html { scroll-padding-top: 6rem; }
html.lf-smooth { scroll-behavior: auto !important; }
.lf-page-hero__in--solo .lf-page-hero__text { max-width: 46rem; }
.lf-page-hero__in--solo .lf-lead { max-width: 34rem; }

/* mobile menu eases in instead of snapping open */
.lf-nav .wp-block-navigation__responsive-container.is-menu-open { animation: lf-menu-in 320ms var(--lf-ease) both; }
.lf-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { animation: lf-rise 520ms var(--lf-ease) both; }
.lf-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(2) { animation-delay: 40ms; }
.lf-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(3) { animation-delay: 80ms; }
.lf-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) { animation-delay: 120ms; }
.lf-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(5) { animation-delay: 160ms; }
.lf-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(6) { animation-delay: 200ms; }
.lf-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(7) { animation-delay: 240ms; }
.lf-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(8) { animation-delay: 280ms; }

/* programme tabs cross-fade */
.lf-tabpanel.is-leaving { animation: lf-panel-out 190ms var(--lf-ease) both; pointer-events: none; }
.lf-tabpanel.is-entering { animation: lf-panel-in 520ms var(--lf-ease) both; }
.lf-tabpanel.is-entering .lf-tabpanel__img img { animation: lf-settle 1100ms var(--lf-ease) both; }

/* anything interactive eases rather than snaps */
.lf-footer a, .lf-crumbs a, .lf-more a, .lf-project__title a { transition: color var(--lf-dur) var(--lf-ease), background-color var(--lf-dur) var(--lf-ease), text-decoration-color var(--lf-dur) var(--lf-ease); }
.lf-chips li, .lf-flow li { transition: background-color var(--lf-dur) var(--lf-ease), border-color var(--lf-dur) var(--lf-ease), color var(--lf-dur) var(--lf-ease); }
.lf-audience__name a { transition: color var(--lf-dur) var(--lf-ease); }
.lf-audience__item { transition: background-color 300ms var(--lf-ease); }
.lf-btn .wp-block-button__link:active { transform: translateY(0) scale(0.985); }


/* 15. Fit to the window: the first screen of every page must show its text and buttons ------------------ */
/* Home hero: type and photograph scale with the window height, so the headline, text and both buttons are visible on load */
.lf-hero__h1 { font-size: clamp(2.5rem, min(1.2rem + 3.6vw, 0.6rem + 7.4vh), 4.5rem); }
.lf-hero__img--main img { width: 100%; height: clamp(340px, calc(100vh - 14rem), 640px) !important; aspect-ratio: auto !important; object-fit: cover; }
.lf-hero__img--inset img { aspect-ratio: 4 / 3 !important; }
@media (max-height: 780px) and (min-width: 1100px) {
	.lf-hero { padding-top: 1.25rem; }
	.lf-hero__lead { margin-top: 1rem; font-size: 1.05rem; line-height: 1.5; }
	.lf-hero .lf-btns { margin-top: 1.4rem; }
	.lf-hero .lf-eyebrow { font-size: 0.875rem; }
	.lf-hero__media { padding: 0 0 2.4rem 2.4rem; }
	.lf-hero__img--inset { width: 46%; border-width: 6px; }
}
@media (max-width: 1099px) {
	.lf-hero__img--main img { height: auto !important; aspect-ratio: 5 / 4 !important; }
}

/* Other large photographs never grow taller than most of the window */
.lf-page-hero__img img { width: 100%; height: min(26rem, calc(100vh - 18rem)) !important; min-height: 15rem; aspect-ratio: auto !important; object-fit: cover; }
.lf-visiongrid__img img, .lf-split__img img, .lf-area__img img, .lf-model__img img, .lf-tabpanel__img img, .lf-about__img1 img, .lf-contactinfo__img img { max-height: min(72vh, 36rem); }
.lf-visiongrid__img img { height: clamp(18rem, 62vh, 34rem) !important; aspect-ratio: auto !important; width: 100%; object-fit: cover; }
@media (max-width: 1099px) {
	.lf-page-hero__img img { height: auto !important; aspect-ratio: 16 / 10 !important; min-height: 0; }
	.lf-visiongrid__img img { height: auto !important; aspect-ratio: 4 / 3 !important; }
}

/* Contact: a smaller supporting photograph so the contact details stay in view */
.lf-contactinfo__img { width: min(100%, 20rem); margin: 0 0 1.75rem; }
.lf-contactinfo__img img { width: 100%; height: auto !important; aspect-ratio: 4 / 3 !important; max-height: none; object-fit: cover; }
@media (max-width: 1099px) { .lf-contactinfo__img { width: min(100%, 24rem); } }


/* 16. Home tiles, Careers list, albums ------------------------------------------------- */
.lf-explore { padding-block: calc(var(--lf-section) * 0.75); }
.lf-explore .lf-head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; }
.lf-explore__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--lf-gap); }
.lf-tile { display: flex; flex-direction: column; background: var(--lf-white); border-radius: var(--lf-r-img); overflow: hidden; box-shadow: 0 1px 2px rgba(14, 52, 38, 0.06), 0 18px 44px rgba(14, 52, 38, 0.1); transition: transform 350ms var(--lf-ease), box-shadow 350ms var(--lf-ease); }
.lf-tile__img { margin: 0; border-radius: 0; }
.lf-tile__img img { border-radius: 0; }
.lf-tile__body { padding: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); }
.lf-tile__title { font-size: var(--wp--preset--font-size--subheading); }
.lf-tile__text { margin-top: 0.5rem; color: var(--lf-ink-soft); }
.lf-tile .lf-btns { margin-top: 1.25rem; }
@media (hover: hover) { .lf-tile:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(14, 52, 38, 0.08), 0 26px 56px rgba(14, 52, 38, 0.16); } }

.lf-careers .lf-head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; }
.lf-jobs { display: grid; gap: 0.9rem; max-width: 62rem; }
.lf-job { background: var(--lf-white); border: 1px solid var(--lf-line); border-radius: var(--lf-r-ui); transition: box-shadow 300ms var(--lf-ease), border-color 300ms var(--lf-ease); }
.lf-job[open] { border-color: var(--lf-line-strong); box-shadow: var(--lf-shadow); }
.lf-job__summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.25rem; padding: 1.15rem 3.4rem 1.15rem 1.4rem; cursor: pointer; list-style: none; position: relative; border-radius: var(--lf-r-ui); }
.lf-job__summary::-webkit-details-marker { display: none; }
.lf-job__summary::after { content: ""; position: absolute; right: 1.35rem; top: 50%; width: 0.7rem; height: 0.7rem; border-right: 2px solid var(--lf-green); border-bottom: 2px solid var(--lf-green); transform: translateY(-70%) rotate(45deg); transition: transform 280ms var(--lf-ease); }
.lf-job[open] > .lf-job__summary::after { transform: translateY(-30%) rotate(-135deg); }
.lf-job__summary:hover .lf-job__title { color: var(--lf-leaf); }
.lf-job__title { font-family: var(--lf-display); font-size: 1.3rem; line-height: 1.25; color: var(--lf-green); transition: color var(--lf-dur) var(--lf-ease); }
.lf-job__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lf-job__chip { padding: 0.25rem 0.7rem; border: 1px solid var(--lf-line-strong); border-radius: 999px; font-size: 0.8125rem; font-weight: 500; color: var(--lf-green); background: var(--lf-cream); }
.lf-job__chip--date { border-color: var(--lf-gold); }
.lf-job__body { padding: 0 1.4rem 1.5rem; animation: lf-panel-in 380ms var(--lf-ease) both; }
.lf-job__body > * + * { margin-top: 0.9rem; }
.lf-job__body h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.lf-job__body ul { list-style: disc; padding-left: 1.25rem; }
.lf-job__apply { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-top: 1.5rem !important; padding-top: 1.25rem; border-top: 1px solid var(--lf-line); }
.lf-job__btn { display: inline-flex; align-items: center; min-height: 3rem; padding: 0.7rem 1.6rem; border-radius: 999px; background: var(--lf-green); color: var(--lf-cream); font-weight: 600; text-decoration: none; transition: background-color var(--lf-dur) var(--lf-ease), transform var(--lf-dur) var(--lf-ease); }
.lf-job__btn:hover { background: var(--lf-leaf); color: #fff; transform: translateY(-1px); }
.lf-job__hint { font-size: 0.875rem; color: var(--lf-ink-soft); }

.lf-album { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) var(--lf-section); }
.lf-album > * + * { margin-top: 1.25rem; }
.lf-album .wp-block-gallery { gap: clamp(0.6rem, 1.4vw, 1rem); margin-top: 1.5rem; }
.lf-album .wp-block-gallery .wp-block-image { border-radius: var(--lf-r-img-sm); cursor: zoom-in; transition: transform 350ms var(--lf-ease), box-shadow 350ms var(--lf-ease); }
.lf-album .wp-block-gallery .wp-block-image img { border-radius: var(--lf-r-img-sm); }
.lf-album .wp-block-gallery .wp-block-image:focus-visible { outline: 3px solid var(--lf-green); outline-offset: 3px; }
@media (hover: hover) { .lf-album .wp-block-gallery .wp-block-image:hover { transform: translateY(-3px); box-shadow: var(--lf-shadow); } }
.lf-album .lf-btns { margin-top: 2.5rem; }

.lf-lightbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; color: #fff; }
.lf-lightbox::backdrop { background: rgba(8, 28, 20, 0.92); }
.lf-lightbox__stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 4.5rem 4.5rem 5rem; }
.lf-lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: var(--lf-r-img-sm); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); animation: lf-lb-in 320ms var(--lf-ease) both; }
@keyframes lf-lb-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.lf-lightbox__cap { position: absolute; left: 0; right: 0; bottom: 1.1rem; text-align: center; padding: 0 5rem; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.85); }
.lf-lightbox button { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background-color var(--lf-dur) var(--lf-ease); }
.lf-lightbox button:hover { background: rgba(255, 255, 255, 0.22); }
.lf-lightbox button:focus-visible { outline: 3px solid var(--lf-lime); outline-offset: 3px; }
.lf-lightbox__close { top: 1rem; right: 1rem; }
.lf-lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lf-lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 720px) { .lf-lightbox__stage { padding: 4rem 0.75rem 5rem; } .lf-lightbox__prev, .lf-lightbox__next { top: auto; bottom: 0.9rem; transform: none; } .lf-lightbox__cap { padding: 0 4.5rem 3.6rem; bottom: 0; } }
@media (max-width: 1099px) { .lf-explore .lf-head, .lf-careers .lf-head { grid-template-columns: minmax(0, 1fr); } .lf-explore__grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .lf-lightbox__img, .lf-job__body { animation: none; } }


/* Home previews: Media and Careers */
.lf-mediapreview, .lf-careerspreview { padding-block: calc(var(--lf-section) * 0.38); }
/* the section before already ends with its own bottom padding: pull Media up so the two do not stack into a white gap */
.lf-mediapreview { margin-top: calc(var(--lf-section) * -0.5); padding-top: calc(var(--lf-section) * 0.15); }
.lf-careerspreview .lf-head, .lf-mediapreview .lf-head { margin-bottom: clamp(1.25rem, 2.4vw, 2rem); }
.lf-careers { padding-block: calc(var(--lf-section) * 0.6); }
/* live count above Media albums and Careers lists */
.lf-count { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 1.4rem; padding: 0.4rem 1rem 0.4rem 0.85rem; border-radius: 999px; background: var(--lf-white); border: 1px solid var(--lf-line); color: var(--lf-green); font-size: 0.9rem; font-weight: 600; line-height: 1.2; }
.lf-count::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--lf-gold); flex: none; }
.lf-count strong { font-weight: 700; }
.lf-careers .lf-count, .lf-listing .lf-count { background: var(--lf-tint); border-color: transparent; }
.lf-head--cta { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; }
.lf-head--cta .lf-head__side .lf-btns { margin-top: 1.25rem; }
.lf-jobs-preview { display: grid; gap: 0.75rem; max-width: 62rem; }
.lf-jobs-preview__item a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.25rem; padding: 1.1rem 3.2rem 1.1rem 1.4rem; background: var(--lf-white); border: 1px solid var(--lf-line); border-radius: var(--lf-r-ui); text-decoration: none; position: relative; transition: border-color 250ms var(--lf-ease), box-shadow 300ms var(--lf-ease), transform 300ms var(--lf-ease); }
.lf-jobs-preview__item a::after { content: ""; position: absolute; right: 1.4rem; top: 50%; width: 0.65rem; height: 0.65rem; border-top: 2px solid var(--lf-green); border-right: 2px solid var(--lf-green); transform: translateY(-50%) rotate(45deg); transition: transform 250ms var(--lf-ease); }
.lf-jobs-preview__item a:hover { border-color: var(--lf-line-strong); box-shadow: var(--lf-shadow); transform: translateY(-2px); }
.lf-jobs-preview__item a:hover::after { transform: translateY(-50%) translateX(3px) rotate(45deg); }
.lf-jobs-preview__item a:focus-visible { outline: 3px solid var(--lf-green); outline-offset: 3px; }
@media (max-width: 1099px) { .lf-head--cta { grid-template-columns: minmax(0, 1fr); } }

/* Album gallery grid: set here so it never depends on which core block styles happen to load */
.lf-album .wp-block-gallery.has-nested-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.6rem, 1.4vw, 1rem); }
.lf-album .wp-block-gallery.columns-1 { grid-template-columns: minmax(0, 1fr); }
.lf-album .wp-block-gallery.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lf-album .wp-block-gallery.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lf-album .wp-block-gallery.columns-5, .lf-album .wp-block-gallery.columns-6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lf-album .wp-block-gallery.has-nested-images > figure.wp-block-image { width: auto !important; margin: 0; flex: none; aspect-ratio: 4 / 3; }
.lf-album .wp-block-gallery.has-nested-images > figure.wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; }
.lf-album .wp-block-gallery figcaption { display: none; }
@media (max-width: 899px) { .lf-album .wp-block-gallery.has-nested-images, .lf-album .wp-block-gallery.columns-4, .lf-album .wp-block-gallery.columns-5, .lf-album .wp-block-gallery.columns-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .lf-album .wp-block-gallery.has-nested-images { grid-template-columns: minmax(0, 1fr); } }
.lf-albumpage .lf-meta { margin-top: 0.9rem; }
.lf-album > .wp-block-paragraph, .lf-album > p { max-width: 46rem; margin-bottom: 1.5rem; }
