/* ==========================================================================
   FREQNCY Studio: components, editorial grid, motion
   Tokens mirror theme.json so this file also drives the static prototype.
   ========================================================================== */

:root {
	--fq-forest: #1E3D2F;
	--fq-cream: #F7F5F0;
	--fq-sand: #E8E1D6;
	--fq-sage: #8FA38E;
	--fq-taupe: #8B7D6B;
	--fq-charcoal: #1F1F1F;

	--fq-font-heading: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
	--fq-font-body: Lato, system-ui, -apple-system, "Segoe UI", sans-serif;

	--fq-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--fq-ease-pulse: cubic-bezier(0.65, 0, 0.35, 1);
	--fq-dur-fast: 200ms;
	--fq-dur-base: 600ms;
	--fq-dur-slow: 900ms;

	--fq-radius-sm: 2px;
	--fq-radius-md: 4px;

	--fq-pad: clamp(20px, 5vw, 64px);
	--fq-section: clamp(72px, 10vw, 160px);
	--fq-wide: 1280px;
	--fq-prose: 38rem;
	--fq-gutter: 16px;
	--fq-header-h: 76px;
	/* Distance from the content edge to the viewport edge (for bleeds). */
	--fq-bleed: max(var(--fq-pad), calc((100vw - var(--fq-wide)) / 2));

	--fq-rule: rgb(139 125 107 / 0.4);
	--fq-rule-dark: rgb(247 245 240 / 0.18);
}

@media (min-width: 768px) {
	:root { --fq-gutter: 24px; }
}

/* ---------- Base ---------------------------------------------------------- */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--fq-header-h) + 16px); }
body {
	margin: 0;
	background: var(--fq-cream);
	color: var(--fq-charcoal);
	font-family: var(--fq-font-body);
	font-size: clamp(16px, 0.95rem + 0.15vw, 17px);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
::selection { background: var(--fq-forest); color: var(--fq-cream); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
	font-family: var(--fq-font-heading);
	font-weight: 600;
	color: var(--fq-forest);
	margin: 0;
	text-wrap: balance;
}
h1 { font-size: clamp(34px, 1.5rem + 2.6vw, 56px); line-height: 1.1; letter-spacing: -0.015em; }
h2 { font-size: clamp(28px, 1.3rem + 1.4vw, 40px); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: clamp(20px, 1.1rem + 0.35vw, 24px); line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
strong { font-weight: 700; }

:where(a) {
	color: var(--fq-forest);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

:focus-visible {
	outline: 2px solid var(--fq-forest);
	outline-offset: 2px;
	border-radius: var(--fq-radius-sm);
}
.is-style-section-forest :focus-visible,
.fq-menu :focus-visible,
.fq-footer :focus-visible { outline-color: var(--fq-cream); }

.fq-skip {
	position: absolute; left: 16px; top: -100px; z-index: 100;
	background: var(--fq-forest); color: var(--fq-cream);
	padding: 12px 20px; font-family: var(--fq-font-heading); font-weight: 600;
	border-radius: var(--fq-radius-sm); text-decoration: none;
}
.fq-skip:focus { top: 16px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------- Layout -------------------------------------------------------- */

.fq-main { margin: 0; }
.fq-main > * { margin-block: 0; }

.fq-section {
	position: relative;
	padding: var(--fq-section) var(--fq-pad);
	margin: 0 !important;
}
.fq-section.is-tight { padding-block: clamp(48px, 6vw, 96px); }

.fq-wrap {
	max-width: var(--fq-wide);
	margin-inline: auto !important;
	width: 100%;
}
.fq-prose { max-width: var(--fq-prose); }

.fq-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: var(--fq-gutter);
	row-gap: clamp(32px, 4vw, 48px);
}
.fq-grid > * { grid-column: 1 / -1; margin-block: 0 !important; min-width: 0; }

@media (min-width: 1024px) {
	.fq-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.fq-col-1-7   { grid-column: 1 / span 7; }
	.fq-col-1-6   { grid-column: 1 / span 6; }
	.fq-col-1-8   { grid-column: 1 / span 8; }
	.fq-col-1-5   { grid-column: 1 / span 5; }
	.fq-col-1-3   { grid-column: 1 / span 4; }
	.fq-signal .fq-col-5-12 { grid-column: 6 / -1; }
	.fq-col-7-12  { grid-column: 7 / -1; }
	.fq-col-8-12  { grid-column: 8 / -1; }
	.fq-col-9-12  { grid-column: 9 / -1; }
	.fq-col-2-6   { grid-column: 2 / span 5; }
	.fq-col-3-10  { grid-column: 3 / span 8; }
	.fq-col-6-12  { grid-column: 6 / -1; }
	.fq-col-5-12  { grid-column: 5 / -1; }
	.fq-align-end { align-self: end; }
	.fq-align-center { align-self: center; }
}

/* Stack: vertical rhythm inside a column (overrides WP flow gaps). */
.fq-stack { display: flex; flex-direction: column; gap: 24px; }
.fq-stack > * { margin: 0 !important; }
.fq-stack.is-lg { gap: clamp(28px, 3vw, 40px); }
.fq-stack.is-sm { gap: 12px; }

/* ---------- Section colours (also selectable as block styles) ------------- */

.is-style-section-cream { background: var(--fq-cream); color: var(--fq-charcoal); }
.is-style-section-sand  { background: var(--fq-sand);  color: var(--fq-charcoal); }
.is-style-section-forest {
	background: var(--fq-forest);
	color: var(--fq-cream);
	--fq-rule: var(--fq-rule-dark);
}
.is-style-section-forest :is(h1, h2, h3, h4) { color: var(--fq-cream); }
.is-style-section-forest a:not(.wp-block-button__link) { color: var(--fq-cream); }
.is-style-section-forest p { color: rgb(247 245 240 / 0.86); }

/* ---------- Type ---------------------------------------------------------- */

.fq-eyebrow,
.is-style-eyebrow {
	font-family: var(--fq-font-heading);
	font-weight: 500;
	font-size: clamp(12px, 0.7rem + 0.1vw, 13px);
	line-height: 1.4;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--fq-forest);
}
.is-style-section-forest :is(.fq-eyebrow, .is-style-eyebrow) { color: rgb(247 245 240 / 0.75); }

.fq-display,
.is-style-display {
	font-size: clamp(40px, 1.6rem + 4.2vw, 76px) !important;
	line-height: 1.05 !important;
	letter-spacing: -0.02em !important;
}
.fq-h1 { font-size: clamp(34px, 1.5rem + 2.6vw, 56px); line-height: 1.1; letter-spacing: -0.015em; }
.fq-h2 { font-size: clamp(28px, 1.3rem + 1.4vw, 40px); line-height: 1.15; letter-spacing: -0.01em; }
.fq-h3 { font-size: clamp(20px, 1.1rem + 0.35vw, 24px); line-height: 1.3; }

.fq-lead,
.is-style-lead {
	font-size: clamp(18px, 1rem + 0.25vw, 20px);
	line-height: 1.6;
	max-width: var(--fq-prose);
}
.fq-small { font-size: 14px; line-height: 1.5; }
.fq-meta { font-size: 14px; color: var(--fq-taupe); font-weight: 700; letter-spacing: 0.02em; }

/* Big index numerals (decorative; taupe passes as large text). */
.fq-num {
	font-family: var(--fq-font-heading);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.08em;
	color: var(--fq-taupe);
	font-variant-numeric: tabular-nums;
}
.fq-num.is-xl {
	font-size: clamp(56px, 2rem + 5vw, 120px);
	line-height: 0.9;
	letter-spacing: -0.03em;
	font-weight: 500;
}
.is-style-section-forest .fq-num { color: var(--fq-sage); }

.fq-rule {
	border: 0;
	border-top: 1px solid var(--fq-rule);
	margin: 0;
	height: 0;
	width: 100%;
}

/* ---------- Buttons & links ----------------------------------------------- */

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 0; }
.wp-block-button { margin: 0; }

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	box-sizing: border-box;
	text-decoration: none;
	cursor: pointer;
	background: var(--fq-forest);
	color: var(--fq-cream);
	border: 1px solid var(--fq-forest);
	border-radius: var(--fq-radius-sm);
	padding: 16px 28px;
	font-family: var(--fq-font-heading);
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 0.02em;
	line-height: 1;
	transition: background-color var(--fq-dur-fast) ease, color var(--fq-dur-fast) ease, border-color var(--fq-dur-fast) ease;
}
.wp-block-button__link::after {
	content: "\2192";
	font-weight: 500;
	transition: transform var(--fq-dur-fast) var(--fq-ease-out);
}
/* "Slight darken" = forest mixed toward charcoal: stays inside the palette. */
.wp-block-button__link:hover {
	background: color-mix(in srgb, var(--fq-forest) 82%, var(--fq-charcoal));
	border-color: color-mix(in srgb, var(--fq-forest) 82%, var(--fq-charcoal));
	color: var(--fq-cream);
}
.wp-block-button__link:hover::after { transform: translateX(4px); }

.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--fq-forest);
	border-color: var(--fq-forest);
}
/* The arrow belongs to the primary action only. */
.is-style-outline > .wp-block-button__link::after,
.fq-header__cta .wp-block-button__link::after { content: none; }
.is-style-outline > .wp-block-button__link:hover {
	background: var(--fq-forest);
	color: var(--fq-cream);
}

/* Buttons on dark sections invert. */
.is-style-section-forest .wp-block-button__link,
.fq-menu .wp-block-button__link {
	background: var(--fq-cream);
	color: var(--fq-forest);
	border-color: var(--fq-cream);
}
.is-style-section-forest .wp-block-button__link:hover,
.fq-menu .wp-block-button__link:hover { background: var(--fq-sand); border-color: var(--fq-sand); color: var(--fq-forest); }
.is-style-section-forest .is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--fq-cream); border-color: rgb(247 245 240 / 0.6);
}
.is-style-section-forest .is-style-outline > .wp-block-button__link:hover {
	background: var(--fq-cream); color: var(--fq-forest);
}

/* Animated underline link. */
.fq-link,
.fq-prose a,
.fq-footer a {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 100% 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	padding-bottom: 2px;
}
@media (hover: hover) {
	.fq-link,
	.fq-prose a,
	.fq-footer a { background-size: 0 1px; transition: background-size 250ms var(--fq-ease-out); }
	.fq-link:hover,
	.fq-prose a:hover,
	.fq-footer a:hover { background-size: 100% 1px; }
}

/* ---------- Header -------------------------------------------------------- */

/* Template-part wrappers step aside so the header can stick to the page. */
.fq-part { display: contents; }

.fq-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--fq-header-h);
	padding-inline: var(--fq-pad);
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: transform 250ms var(--fq-ease-out), background-color 250ms ease, border-color 250ms ease;
}
.fq-header.is-scrolled {
	background: var(--fq-cream);
	border-bottom-color: var(--fq-rule);
}
.fq-header.is-hidden { transform: translateY(-100%); }
/* Signed-in editors: keep the sticky header below the WordPress admin bar. */
.admin-bar .fq-header { top: 32px; }
.admin-bar .fq-header.is-hidden { transform: translateY(calc(-100% - 32px)); }
@media (max-width: 782px) {
	.admin-bar .fq-header { top: 46px; }
	.admin-bar .fq-header.is-hidden { transform: translateY(calc(-100% - 46px)); }
}
@media (max-width: 600px) {
	/* The admin bar scrolls away on small screens. */
	.admin-bar .fq-header { top: 0; }
	.admin-bar .fq-header.is-hidden { transform: translateY(-100%); }
}
.fq-header__inner {
	max-width: var(--fq-wide);
	margin-inline: auto;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}
.fq-header__brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
/* Official logo files: sized by their visible artwork (--fq-logo-h); the
   files' built-in transparent padding is cancelled by inline negative margins. */
.fq-brand-img { display: block; max-width: none !important; }
.fq-header { --fq-logo-h: 34px; }
@media (min-width: 1024px) { .fq-header { --fq-logo-h: 44px; } }

.fq-logo-fallback {
	font-family: var(--fq-font-heading);
	font-weight: 600;
	font-size: 20px;
	letter-spacing: 0.14em;
	color: var(--fq-forest);
	display: inline-flex; align-items: baseline; gap: 10px;
}
.fq-logo-fallback small { font-size: 10px; font-weight: 500; letter-spacing: 0.4em; text-transform: uppercase; }
.fq-footer .fq-logo-fallback { color: var(--fq-cream); }

.fq-nav { display: none; }
.fq-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 2.4vw, 36px); }
.fq-nav a {
	font-family: var(--fq-font-heading);
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0.02em;
	color: var(--fq-forest);
	text-decoration: none;
	padding-block: 12px;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px; background-position: 0 calc(100% - 8px); background-repeat: no-repeat;
	transition: background-size 250ms var(--fq-ease-out);
}
.fq-nav a:hover,
.fq-nav a[aria-current="page"] { background-size: 100% 1px; }
.fq-header__cta { display: none; }
.fq-header__cta .wp-block-button__link { min-height: 44px; padding: 12px 20px; font-size: 15px; }

@media (min-width: 1024px) {
	.fq-nav { display: block; margin-left: auto; }
	.fq-header__cta { display: block; }
	.fq-menu-toggle { display: none !important; }
}

.fq-menu-toggle {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 44px; min-width: 44px; padding: 0 4px;
	background: none; border: 0; cursor: pointer;
	font-family: var(--fq-font-heading); font-weight: 500; font-size: 13px;
	letter-spacing: 0.2em; text-transform: uppercase; color: var(--fq-forest);
	position: relative; z-index: 61;
}
.fq-menu-toggle__bars { width: 22px; height: 10px; position: relative; }
.fq-menu-toggle__bars::before,
.fq-menu-toggle__bars::after {
	content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
	transition: transform 250ms var(--fq-ease-out), top 250ms var(--fq-ease-out);
}
.fq-menu-toggle__bars::before { top: 0; }
.fq-menu-toggle__bars::after { top: calc(100% - 1.5px); }
.is-menu-open .fq-menu-toggle { color: var(--fq-cream); }
.is-menu-open .fq-menu-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.is-menu-open .fq-menu-toggle__bars::after { top: 4px; transform: rotate(-45deg); }
.is-menu-open .fq-header { background: transparent; border-color: transparent; transform: none; z-index: 70; }
.fq-header .fq-logo.is-on-dark { display: none; }
.is-menu-open .fq-header .fq-logo.is-on-dark { display: block; }
.is-menu-open .fq-header .fq-logo:not(.is-on-dark) { display: none; }
.is-menu-open .fq-header__cta { visibility: hidden; }
.is-menu-open .fq-header .fq-logo-fallback { color: var(--fq-cream); }

/* Full-screen mobile menu */
.fq-menu {
	position: fixed; inset: 0; z-index: 60;
	background: var(--fq-forest); color: var(--fq-cream);
	padding: calc(var(--fq-header-h) + 32px) var(--fq-pad) 40px;
	display: flex; flex-direction: column; justify-content: space-between;
	opacity: 0; visibility: hidden;
	transition: opacity 300ms ease, visibility 0s linear 300ms;
	overflow-y: auto;
}
.fq-menu.is-open { opacity: 1; visibility: visible; transition: opacity 300ms ease; }
.fq-menu ul { list-style: none; margin: 0; padding: 0; }
.fq-menu li { border-top: 1px solid var(--fq-rule-dark); }
.fq-menu li:last-child { border-bottom: 1px solid var(--fq-rule-dark); }
.fq-menu a.fq-menu__link {
	display: flex; justify-content: space-between; align-items: baseline;
	padding: 18px 0;
	font-family: var(--fq-font-heading); font-weight: 600;
	font-size: clamp(32px, 9vw, 48px); letter-spacing: -0.015em; line-height: 1.1;
	color: var(--fq-cream); text-decoration: none;
}
.fq-menu a.fq-menu__link span { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--fq-sage); }
.fq-menu li, .fq-menu__foot { opacity: 0; transform: translateY(12px); }
.fq-menu.is-open li,
.fq-menu.is-open .fq-menu__foot {
	opacity: 1; transform: none;
	transition: opacity 500ms var(--fq-ease-out), transform 500ms var(--fq-ease-out);
	transition-delay: calc(80ms + var(--i, 0) * 60ms);
}
.fq-menu__foot { display: grid; gap: 24px; margin-top: 40px; }
.fq-menu__foot p { color: rgb(247 245 240 / 0.75); font-size: 14px; }
html.fq-lock, html.fq-lock body { overflow: hidden; }

/* ---------- Hero (home) --------------------------------------------------- */

.fq-hero { padding-top: clamp(32px, 6vw, 72px); padding-bottom: var(--fq-section); }
.fq-hero .fq-grid { align-items: end; row-gap: 48px; }
.fq-hero__copy { padding-bottom: clamp(0px, 2vw, 24px); }
.fq-hero__copy .fq-display { margin-top: 8px; }
.fq-hero__mark { display: flex; align-items: center; gap: 16px; }
.fq-hero__mark { --fq-logo-h: 22px; }
.fq-hero__mark:not(:has(img)) { display: none; }
.fq-hero__media { margin: 0; position: relative; }
.fq-hero__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--fq-radius-md);
}
@media (max-width: 1023px) {
	/* Headline first on small screens: the 5-second "who is this" test wins over image-first. */
	.fq-hero .fq-grid { display: flex; flex-direction: column; align-items: stretch; }
	.fq-hero__media { margin-right: calc(-1 * var(--fq-pad)) !important; }
	.fq-hero__media img { aspect-ratio: 4 / 3; border-radius: var(--fq-radius-md) 0 0 var(--fq-radius-md); }
}
@media (min-width: 1024px) {
	.fq-hero__media { margin-right: calc(-1 * var(--fq-bleed)) !important; }
	.fq-hero__media img { border-radius: var(--fq-radius-md) 0 0 var(--fq-radius-md); max-height: min(calc(100vh - var(--fq-header-h) - 112px), 760px); min-height: 480px; }
}
.fq-hero__caption {
	margin-top: 12px !important;
	font-size: 13px; color: var(--fq-taupe);
}

/* Page hero (inner pages) */
.fq-page-hero { padding-top: clamp(48px, 8vw, 120px); padding-bottom: clamp(56px, 7vw, 112px); }
.fq-page-hero .fq-jump { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--fq-rule); }
.fq-page-hero .fq-jump a { font-family: var(--fq-font-heading); font-weight: 500; font-size: 15px; text-decoration: none; display: inline-flex; gap: 10px; min-height: 44px; align-items: center; }
.fq-page-hero .fq-jump a span { color: var(--fq-taupe); font-size: 13px; }

/* ---------- Signal statement (the one signature moment) ------------------- */

.fq-signal__kicker {
	font-size: clamp(18px, 1rem + 0.35vw, 22px);
	line-height: 1.35;
	letter-spacing: 0;
	max-width: 22ch;
}
.fq-signal__text {
	font-family: var(--fq-font-heading);
	font-weight: 500;
	font-size: clamp(26px, 1.05rem + 1.75vw, 46px);
	line-height: 1.22;
	letter-spacing: -0.015em;
	color: var(--fq-forest);
}
/* Words start as taupe "noise" (≥3:1 at this size) and tune in to forest. */
.fq-tune.is-split .fq-w { color: var(--fq-taupe); transition: color 350ms ease; }
.fq-tune.is-split .fq-w.is-lit { color: var(--fq-forest); }

/* ---------- Statement ----------------------------------------------------- */

.fq-statement { border-top: 1px solid var(--fq-rule); padding-top: clamp(32px, 4vw, 56px); }
.fq-statement-text { font-family: var(--fq-font-heading); font-weight: 500; color: var(--fq-forest); }

/* ---------- Services index ------------------------------------------------ */

.fq-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fq-rule); }
.fq-index__row {
	position: relative;
	display: grid;
	grid-template-columns: 48px 1fr 28px;
	column-gap: var(--fq-gutter);
	row-gap: 8px;
	align-items: baseline;
	padding: 28px 0;
	border-bottom: 1px solid var(--fq-rule);
	margin: 0 !important;
	transition: background-color 300ms ease;
}
.fq-index__row > * { margin: 0 !important; }
.fq-index__row .fq-num { grid-column: 1; grid-row: 1; }
.fq-index__row h3 { grid-column: 2; grid-row: 1; }
.fq-index__row h3 a { color: inherit; text-decoration: none; }
.fq-index__row h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.fq-index__row .fq-index__text { grid-column: 2 / -1; color: var(--fq-charcoal); }
.fq-index__arrow {
	grid-column: 3; grid-row: 1; justify-self: end;
	font-family: var(--fq-font-heading); color: var(--fq-forest); font-size: 20px;
	transition: transform 300ms var(--fq-ease-out);
}
.fq-index__media { display: none !important; }
/* Keyboard parity with hover. */
.fq-index__row:focus-within { background: var(--fq-cream); }
.is-style-section-cream .fq-index__row:focus-within { background: var(--fq-sand); }
.fq-index__row:focus-within .fq-index__arrow { transform: translateX(6px); }

@media (min-width: 1024px) {
	.fq-index__row {
		grid-template-columns: 1fr 5fr 4fr 0.6fr;
		padding: 36px 24px 36px 0;
		align-items: center;
	}
	.fq-index__row .fq-num { grid-column: 1; }
	.fq-index__row h3 { grid-column: 2; font-size: clamp(22px, 1rem + 0.9vw, 30px); letter-spacing: -0.01em; }
	.fq-index__row .fq-index__text { grid-column: 3; grid-row: 1; max-width: 34ch; }
	.fq-index__arrow { grid-column: 4; }
}

@media (hover: hover) and (min-width: 1024px) {
	.fq-index__row:hover { background: var(--fq-cream); }
	.is-style-section-cream .fq-index__row:hover { background: var(--fq-sand); }
	.fq-index__row:hover .fq-index__arrow { transform: translateX(6px); }
	.fq-index__media {
		display: block !important;
		position: absolute;
		right: 9%;
		top: 50%;
		width: 132px;
		aspect-ratio: 4 / 5;
		margin: 0 !important;
		transform: translateY(-50%) translateX(12px);
		opacity: 0;
		clip-path: inset(100% 0 0 0);
		transition: opacity 400ms var(--fq-ease-out), transform 500ms var(--fq-ease-out), clip-path 500ms var(--fq-ease-out);
		pointer-events: none;
		z-index: 2;
	}
	.fq-index__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--fq-radius-md); }
	.fq-index__row:hover .fq-index__media {
		opacity: 1;
		transform: translateY(-50%) translateX(0);
		clip-path: inset(0 0 0 0);
	}
	/* Make room so the image never sits on top of the summary text. */
	.fq-index.has-media .fq-index__row .fq-index__text { transition: opacity 300ms ease; }
	.fq-index.has-media .fq-index__row:hover .fq-index__text { opacity: 0.25; }
}

/* ---------- Values / pillars --------------------------------------------- */

.fq-pillars {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px var(--fq-gutter);
}
.fq-pillars > * { margin: 0 !important; border-top: 1px solid var(--fq-rule); padding-top: 24px; }
.fq-pillars h3 { margin-bottom: 12px !important; }
@media (min-width: 768px) { .fq-pillars { grid-template-columns: repeat(3, 1fr); } }
.fq-pillar__num { display: block; margin-bottom: 40px !important; }

/* ---------- Process ------------------------------------------------------- */

.fq-process { position: relative; }
.fq-process__steps {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.fq-process__line {
	position: absolute; left: 0; right: 0; top: 0; height: 1px;
	background: var(--fq-sage);
	transform-origin: left center;
}
.fq-process__step { padding-top: 32px; margin: 0 !important; position: relative; }
.fq-process__step::before {
	content: ""; position: absolute; top: -4px; left: 0;
	width: 9px; height: 9px; border-radius: 50%;
	background: var(--fq-cream); border: 1px solid var(--fq-sage);
}
.is-style-section-forest .fq-process__step::before { background: var(--fq-forest); }
.fq-process__step .fq-num.is-xl { display: block; margin-bottom: 24px; font-size: clamp(48px, 1.6rem + 3vw, 80px); }
/* Service index numbers: present, but the H2 leads. */
.fq-service .fq-num.is-xl { font-size: clamp(40px, 1.6rem + 2vw, 64px); margin-bottom: -8px !important; }
.fq-process__step h3 { margin-bottom: 8px !important; }
/* Below desktop the steps run down a vertical line (4 columns get cramped). */
@media (max-width: 1023px) {
	.fq-process__line { right: auto; bottom: 0; width: 1px; height: auto; transform-origin: top center; left: 4px; }
	.fq-process__steps { padding-left: 32px; }
	.fq-process__step { padding-top: 0; }
	.fq-process__step::before { left: -32px; top: 6px; }
	.fq-process__step .fq-num.is-xl { font-size: 40px; margin-bottom: 12px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.fq-process__steps { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
	.fq-process__line { display: none; }
	.fq-process__steps { padding-left: 0; }
	.fq-process__step { border-top: 1px solid var(--fq-sage); padding-top: 24px; }
	.fq-process__step::before { display: none; }
}
@media (min-width: 1024px) {
	.fq-process__steps { grid-template-columns: repeat(4, 1fr); gap: var(--fq-gutter); }
}

/* ---------- Service detail ------------------------------------------------ */

.fq-service .fq-grid { align-items: start; }
.fq-service__media { margin: 0; }
.fq-service__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--fq-radius-md); }
@media (min-width: 1024px) {
	.fq-service__media { position: sticky; top: calc(var(--fq-header-h) + 24px); }
	.fq-service.is-flipped .fq-service__copy { grid-column: 7 / -1; grid-row: 1; }
	.fq-service.is-flipped .fq-service__media { grid-column: 1 / span 5; grid-row: 1; }
	.fq-service:not(.is-flipped) .fq-service__copy { grid-column: 1 / span 6; }
	.fq-service:not(.is-flipped) .fq-service__media { grid-column: 8 / -1; }
}
@media (max-width: 1023px) {
	.fq-service__media { order: -1; }
	.fq-service__media img { aspect-ratio: 4 / 3; }
}
.fq-included { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fq-rule); }
.fq-included li {
	padding: 14px 0 14px 28px;
	border-bottom: 1px solid var(--fq-rule);
	position: relative;
}
.fq-included li::before {
	content: ""; position: absolute; left: 0; top: 50%;
	width: 12px; height: 1px; background: var(--fq-forest);
}
.fq-ideal { padding-left: 20px; border-left: 2px solid var(--fq-sage); font-style: italic; }

/* ---------- FAQ ----------------------------------------------------------- */

.fq-faq { border-top: 1px solid var(--fq-rule); }
.fq-faq details { border-bottom: 1px solid var(--fq-rule); margin: 0 !important; }
.fq-faq summary {
	list-style: none; cursor: pointer;
	display: flex; justify-content: space-between; gap: 24px; align-items: center;
	padding: 24px 0; min-height: 44px;
	font-family: var(--fq-font-heading); font-weight: 600; font-size: clamp(18px, 1rem + 0.3vw, 21px); color: var(--fq-forest);
}
.fq-faq summary::-webkit-details-marker { display: none; }
.fq-faq summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; transition: transform 250ms var(--fq-ease-out); }
.fq-faq details[open] summary::after { transform: rotate(45deg); }
.fq-faq details > :not(summary) { padding-bottom: 24px; max-width: var(--fq-prose); }

/* ---------- Editorial list (About values) -------------------------------- */

.fq-list { border-top: 1px solid var(--fq-rule); }
.fq-list__row {
	display: grid; grid-template-columns: 48px 1fr; gap: 8px var(--fq-gutter);
	padding: 28px 0; border-bottom: 1px solid var(--fq-rule); margin: 0 !important;
	align-items: baseline;
}
.fq-list__row > * { margin: 0 !important; }
.fq-list__row p:last-child { grid-column: 2; }
@media (min-width: 1024px) {
	.fq-list__row { grid-template-columns: 1fr 4fr 6fr; }
	.fq-list__row p:last-child { grid-column: 3; }
}

/* ---------- Quiet label heading (sentence case, replaces extra eyebrows) --- */

.fq-label {
	font-family: var(--fq-font-heading);
	font-weight: 600;
	font-size: 16px !important;
	line-height: 1.4 !important;
	letter-spacing: 0.01em !important;
	color: var(--fq-forest);
}
.is-style-section-forest .fq-label { color: rgb(247 245 240 / 0.75); }

/* ---------- Mission (About) ---------------------------------------------- */

.fq-mission .fq-grid { align-items: center; }
.fq-mission__brand { --fq-logo-h: clamp(110px, 12vw, 176px); }
.fq-mission__brand .fq-logo-fallback { font-size: clamp(28px, 1rem + 2vw, 44px); }
.fq-mission__text {
	font-family: var(--fq-font-heading);
	font-weight: 500;
	font-size: clamp(22px, 1rem + 1.1vw, 34px);
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--fq-cream) !important;
}
.is-style-section-forest .fq-logo-fallback { color: var(--fq-cream); }

/* ---------- Contact aside ------------------------------------------------- */

.fq-aside {
	background: var(--fq-sand);
	border-radius: var(--fq-radius-md);
	padding: clamp(24px, 3vw, 40px);
	align-self: start;
}
@media (min-width: 1024px) { .fq-aside { position: sticky; top: calc(var(--fq-header-h) + 24px); } }
.fq-details:not(:has(*)) { display: none !important; }
.fq-next { list-style: none; margin: 0; padding: 0; counter-reset: fq-next; display: grid; gap: 0; }
.fq-next li {
	counter-increment: fq-next;
	position: relative;
	padding: 16px 0 16px 40px;
	border-top: 1px solid var(--fq-rule);
	font-size: 15px;
}
.fq-next li::before {
	content: counter(fq-next, decimal-leading-zero);
	position: absolute; left: 0; top: 18px;
	font-family: var(--fq-font-heading); font-weight: 500; font-size: 13px;
	color: var(--fq-forest); letter-spacing: 0.04em;
}
.fq-next strong { display: block; font-family: var(--fq-font-heading); font-weight: 600; color: var(--fq-forest); margin-bottom: 2px; }

/* ---------- CTA band ------------------------------------------------------ */

.fq-cta h2 { font-size: clamp(34px, 1.5rem + 3vw, 64px); line-height: 1.08; letter-spacing: -0.02em; }
.fq-cta .fq-grid { align-items: end; }

/* ---------- Contact ------------------------------------------------------- */

.fq-details dl { margin: 0; display: grid; gap: 24px; }
.fq-details dt { margin-bottom: 4px; }
.fq-details dd { margin: 0; font-family: var(--fq-font-heading); font-weight: 500; color: var(--fq-forest); }
.fq-steps-inline { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px var(--fq-gutter); counter-reset: s; }
.fq-steps-inline li { border-top: 1px solid var(--fq-rule); padding-top: 20px; }
.fq-steps-inline strong { font-family: var(--fq-font-heading); font-weight: 600; color: var(--fq-forest); display: inline-block; margin: 12px 0 4px; }
.fq-details p { max-width: 30ch; }
@media (min-width: 768px) { .fq-steps-inline { grid-template-columns: repeat(3, 1fr); } }

/* Jetpack form */
.wp-block-jetpack-contact-form { gap: 24px var(--fq-gutter) !important; }
.wp-block-jetpack-contact-form label,
.wp-block-jetpack-contact-form legend,
.contact-form label,
.contact-form legend {
	font-family: var(--fq-font-heading) !important;
	font-weight: 500 !important;
	font-size: 14px !important;
	letter-spacing: 0.02em;
	color: var(--fq-forest) !important;
	margin-bottom: 8px !important;
}
.wp-block-jetpack-contact-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea),
.contact-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea) {
	width: 100%;
	box-sizing: border-box;
	background: var(--fq-cream) !important;
	border: 1px solid var(--fq-taupe) !important;
	border-radius: var(--fq-radius-sm) !important;
	padding: 14px 16px !important;
	font: inherit !important;
	color: var(--fq-charcoal) !important;
	min-height: 52px;
	box-shadow: none !important;
}
.wp-block-jetpack-contact-form :is(input, select, textarea):focus-visible,
.contact-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--fq-forest) !important; outline-offset: 2px; }
.wp-block-jetpack-contact-form [aria-invalid="true"] { border-color: var(--fq-forest) !important; border-width: 2px !important; }
.wp-block-jetpack-contact-form .wp-block-button__link { margin-top: 8px; }
.fq-form-note { font-size: 14px; color: var(--fq-charcoal); }
.wp-block-jetpack-contact-form fieldset,
.contact-form fieldset { border: 0; padding: 0; margin: 0; }
.wp-block-jetpack-contact-form input[type="checkbox"],
.contact-form input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--fq-forest); margin: 0 10px 0 0; vertical-align: -4px; }
.wp-block-jetpack-contact-form label :is(span, .required),
.contact-form label .required { font-weight: 400; color: var(--fq-taupe); font-size: 13px; }

/* Prototype-only form layout (mirrors Jetpack's 50% field widths). */
.fq-proto-form { display: flex; flex-wrap: wrap; }
.fq-proto-field { flex: 1 1 100%; display: flex; flex-direction: column; }
.fq-proto-field.is-half { flex: 1 1 calc(50% - var(--fq-gutter)); min-width: 220px; }
.fq-proto-form .fq-check { display: flex !important; align-items: center; min-height: 40px; font-family: var(--fq-font-body) !important; font-size: 16px !important; color: var(--fq-charcoal) !important; margin: 0 !important; cursor: pointer; }

/* ---------- Footer -------------------------------------------------------- */

.fq-footer {
	background: var(--fq-forest);
	color: var(--fq-cream);
	padding: clamp(64px, 8vw, 112px) var(--fq-pad) 40px;
	--fq-rule: var(--fq-rule-dark);
}
.fq-footer__inner { max-width: var(--fq-wide); margin-inline: auto; }
.fq-footer__top { border-top: 1px solid var(--fq-rule); padding-top: clamp(40px, 5vw, 64px); }
.fq-footer__sign { font-family: var(--fq-font-heading); font-weight: 600; font-size: clamp(28px, 1.3rem + 1.6vw, 44px); line-height: 1.1; letter-spacing: -0.015em; color: var(--fq-cream); }
.fq-footer__brand { --fq-logo-h: 40px; }
.fq-footer h2 {
	font-family: var(--fq-font-heading); font-weight: 500; font-size: 12px; letter-spacing: 0.2em;
	text-transform: uppercase; color: rgb(247 245 240 / 0.7); margin: 0 0 16px;
}
.fq-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fq-footer a { color: var(--fq-cream); display: inline-flex; min-height: 40px; align-items: center; padding-bottom: 0; background-position: 0 calc(100% - 9px); }
.fq-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px var(--fq-gutter); }
@media (min-width: 768px) { .fq-footer__cols { grid-template-columns: repeat(3, 1fr); } }
/* When a page ends on the Forest CTA band, band + footer read as one closing
   composition instead of ~300px of empty green. */
.fq-main > .fq-cta:last-child { padding-bottom: clamp(56px, 6vw, 96px); }
.fq-main:has(> .fq-cta:last-child) + .fq-footer,
.fq-main:has(> .fq-cta:last-child) ~ .fq-footer,
.fq-main:has(> .fq-cta:last-child) ~ .fq-part .fq-footer { padding-top: 0; }
@media (min-width: 1024px) {
	.fq-footer__top { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--fq-gutter); }
	.fq-footer__brand { grid-column: 1 / span 5; }
	.fq-footer__cols { grid-column: 7 / -1; grid-template-columns: repeat(3, 1fr); }
}
.fq-footer__brand { display: grid; gap: 24px; align-content: start; margin-bottom: 48px; }
.fq-footer__brand p { color: rgb(247 245 240 / 0.75); }
.fq-footer__brand .fq-footer__sign { color: var(--fq-cream); }
.fq-footer__bottom {
	margin-top: clamp(56px, 7vw, 96px);
	padding-top: 24px;
	border-top: 1px solid var(--fq-rule);
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
	font-size: 14px; color: rgb(247 245 240 / 0.75);
}
.fq-footer__bottom { --fq-logo-h: 14px; }
.fq-footer__pulse { display: inline-block; width: 56px; height: 1px; background: var(--fq-sage); vertical-align: middle; }

/* ---------- 404 ----------------------------------------------------------- */
.fq-404 { min-height: 60vh; display: grid; align-content: center; }

/* ==========================================================================
   Motion
   ========================================================================== */

.fq-js .fq-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity var(--fq-dur-base) var(--fq-ease-out), transform var(--fq-dur-base) var(--fq-ease-out);
	transition-delay: calc(var(--fq-i, 0) * 80ms);
}
.fq-js .fq-reveal.is-in { opacity: 1; transform: none; }

.fq-js .fq-reveal-img img {
	clip-path: inset(100% 0 0 0);
	transform: scale(1.04);
	transition: clip-path var(--fq-dur-slow) var(--fq-ease-out), transform 1400ms var(--fq-ease-out);
}
.fq-js .fq-reveal-img.is-in img { clip-path: inset(0 0 0 0); transform: none; }

.fq-js .fq-rule-draw { transform: scaleX(0); transform-origin: left; transition: transform 1100ms var(--fq-ease-pulse); }
.fq-js .fq-rule-draw.is-in { transform: none; }

.fq-js .fq-process__line { transform: scaleX(0); transition: transform 1600ms var(--fq-ease-pulse); }
.fq-js .fq-process.is-in .fq-process__line { transform: none; }
@media (max-width: 1023px) {
	.fq-js .fq-process__line { transform: scaleY(0); }
}
.fq-js .fq-process__step { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--fq-ease-out), transform 600ms var(--fq-ease-out); }
.fq-js .fq-process.is-in .fq-process__step { opacity: 1; transform: none; }
.fq-js .fq-process.is-in .fq-process__step:nth-child(2) { transition-delay: 250ms; }
.fq-js .fq-process.is-in .fq-process__step:nth-child(3) { transition-delay: 650ms; }
.fq-js .fq-process.is-in .fq-process__step:nth-child(4) { transition-delay: 1050ms; }
.fq-js .fq-process.is-in .fq-process__step:nth-child(5) { transition-delay: 1450ms; }

/* Hero pulse mark: fade + subtle scale once (PNG version: no SVG redraw). */
.fq-js .fq-hero__mark .fq-brand { opacity: 0; transform: scale(0.96); transform-origin: left center; }
.fq-js.fq-loaded .fq-hero__mark .fq-brand { opacity: 1; transform: none; transition: opacity 1200ms var(--fq-ease-pulse), transform 1200ms var(--fq-ease-pulse); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0ms !important; animation: none !important; }
	.fq-js .fq-reveal,
	.fq-js .fq-reveal-img img,
	.fq-js .fq-rule-draw,
	.fq-js .fq-process__line,
	.fq-js .fq-process__step,
	.fq-js .fq-hero__mark .fq-brand { opacity: 1 !important; transform: none !important; clip-path: none !important; }
	.fq-header.is-hidden { transform: none; }
}

/* Editor: never hide content while editing. */
.editor-styles-wrapper .fq-reveal,
.editor-styles-wrapper .fq-process__step,
.editor-styles-wrapper .fq-process__line { opacity: 1 !important; transform: none !important; }
.editor-styles-wrapper .fq-reveal-img img { clip-path: none !important; transform: none !important; }
