/*
Theme Name:   Form & Field (studio concept)
Theme URI:    https://tideframedigital.com/work/
Description:  Fictional building and renovation business. A Tideframe Digital concept site built on GeneratePress.
Author:       Tideframe Digital
Template:     generatepress
Version:      1.0.0
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 8.1
Text Domain:  form-and-field
License:      GPL-2.0-or-later
*/

/* ---------------------------------------------------------------- Tokens */
:root {
	--ff-ink: #161616;
	--ff-chalk: #f4f1ea;
	--ff-concrete: #d9d4c7;
	--ff-ply: #e8dfc8;
	--ff-signal: #ff6b2c;
	--ff-rust: #c2410c;
	--ff-steel: #2b3a42;
	--ff-graphite: #5a5852;
	--ff-ash: #b9b4a8;
	--ff-shadow: 4px 4px 0 var(--ff-ink);
	--ff-shadow-hover: 8px 8px 0 var(--ff-ink);
	--ff-section: clamp(4rem, 9vw, 9rem);

	--tf-color-bg: var(--ff-chalk);
	--tf-color-surface: #fff;
	--tf-color-text: var(--ff-ink);
	--tf-color-muted: var(--ff-graphite);
	--tf-color-primary: var(--ff-signal);
	--tf-color-on-primary: var(--ff-ink);
	--tf-color-accent: var(--ff-rust);
	--tf-color-border: var(--ff-ink);
	--tf-color-focus: var(--ff-ink);
	--tf-color-bar-bg: var(--ff-signal);
	--tf-color-bar-text: var(--ff-ink);
	--tf-font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
	--tf-font-body: "Public Sans", Arial, sans-serif;
	--tf-font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
	--tf-radius-s: 4px;
	--tf-radius-m: 0;
	--tf-radius-l: 0;
	--tf-container: 1280px;
	--tf-header-height: 76px;
	--tf-ease-out: cubic-bezier(.2, .8, .2, 1);
	--tf-marquee-duration: 40s;
}

/* ---------------------------------------------------------------- Base */
body {
	background: var(--ff-chalk);
	color: var(--ff-ink);
	font-family: var(--tf-font-body);
	font-size: clamp(1.0625rem, .35vw + 1rem, 1.125rem);
	line-height: 1.6;
}
h1, h2, h3, h4, .ff-display {
	font-family: var(--tf-font-display);
	font-stretch: 125%;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: .98;
	color: inherit;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); text-transform: uppercase; }
h3 { font-size: clamp(1.375rem, 1.6vw, 1.875rem); line-height: 1.1; }
a { color: var(--ff-rust); text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { color: var(--ff-ink); }
::selection { background: var(--ff-signal); color: var(--ff-ink); }
.ff-mono, .ff-chip, .ff-label, .ff-spec dt, .breadcrumb {
	font-family: var(--tf-font-mono);
	font-size: .8125rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* GeneratePress containers: let sections run full width. */
.site.grid-container { max-width: none; }
.ff-archive .ff-page-hero, .ff-archive .ff-section { width: 100%; }
/* The project archive has no content-area wrapper: its main is a flex child of #content and must take the row. */
.site-content > .ff-archive { flex: 1 1 100%; width: 100%; max-width: none; }
.ff-districts + * , .ff-map { margin-inline: auto; display: block; }
.site-content .content-area { width: 100%; }
.separate-containers .inside-article, .one-container .site-content { padding: 0; background: transparent; }
.entry-content > * { margin-block: 0; }
.entry-content > .alignfull, .entry-content > .wp-block-group.alignfull { margin-inline: 0; }
.site-main, .inside-article, .entry-content { margin: 0 !important; }
.ff-wrap { max-width: var(--tf-container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.ff-section { padding-block: var(--ff-section); }
.ff-section--ink { background: var(--ff-ink); color: var(--ff-chalk); }
.ff-section--ink a { color: var(--ff-signal); }
.ff-section--steel { background: var(--ff-steel); color: #fff; }
.ff-section--ply { background: var(--ff-ply); }
.ff-section--concrete { background: var(--ff-concrete); }
.ff-grid-bg {
	background-image:
		linear-gradient(to right, rgb(22 22 22 / 6%) 1px, transparent 1px),
		linear-gradient(to bottom, rgb(22 22 22 / 6%) 1px, transparent 1px);
	background-size: 32px 32px;
}

/* ---------------------------------------------------------------- Header */
.site-header {
	background: color-mix(in srgb, var(--ff-chalk) 94%, transparent);
	backdrop-filter: saturate(1.2) blur(10px);
	border-bottom: 2px solid transparent;
	transition: border-color var(--tf-dur-base, .3s);
}
.site-header.is-scrolled { border-bottom-color: var(--ff-ink); }
.inside-header { padding-block: 14px; }
.ff-logo a { color: var(--ff-ink); display: inline-flex; }
.ff-logo__svg { width: clamp(170px, 18vw, 220px); height: auto; transition: transform .3s var(--tf-ease-out); transform-origin: left center; }
.site-header.is-scrolled .ff-logo__svg { transform: scale(.88); }
.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a {
	font-family: var(--tf-font-mono);
	font-size: .8125rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ff-ink);
	line-height: 48px;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--ff-rust); background: transparent; }
.main-navigation .main-nav ul ul { background: var(--ff-chalk); border: 2px solid var(--ff-ink); box-shadow: var(--ff-shadow); }
.main-navigation .main-nav ul li.ff-nav-cta > a {
	background: var(--ff-signal);
	color: var(--ff-ink);
	border: 2px solid var(--ff-ink);
	box-shadow: var(--ff-shadow);
	line-height: 40px;
	margin-left: 12px;
	padding-inline: 18px;
	transition: transform .15s, box-shadow .15s;
}
.main-navigation .main-nav ul li.ff-nav-cta > a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ff-ink); color: var(--ff-ink); }
.menu-toggle { font-family: var(--tf-font-mono); text-transform: uppercase; color: var(--ff-ink); }
@media (max-width: 768px) {
	.main-navigation.toggled .main-nav > ul { background: var(--ff-chalk); padding-block: 1rem; }
	.main-navigation.toggled .main-nav ul li a { font-family: var(--tf-font-display); font-stretch: 125%; font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0; }
	.main-navigation .main-nav ul li.ff-nav-cta > a { margin: 1rem; display: inline-block; }
}

/* ---------------------------------------------------------------- Buttons & chips */
.ff-btn, .wp-block-button.is-style-ff-signal .wp-block-button__link, .wp-block-button.is-style-ff-outline .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font-family: var(--tf-font-mono);
	font-size: .875rem;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	padding: .95em 1.4em;
	border: 2px solid var(--ff-ink);
	border-radius: var(--tf-radius-s);
	cursor: pointer;
	transition: transform .15s var(--tf-ease-out), box-shadow .15s var(--tf-ease-out), background .2s;
}
.ff-btn--signal, .wp-block-button.is-style-ff-signal .wp-block-button__link { background: var(--ff-signal); color: var(--ff-ink); box-shadow: var(--ff-shadow); }
.ff-btn--signal:hover, .wp-block-button.is-style-ff-signal .wp-block-button__link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ff-ink); color: var(--ff-ink); }
.ff-btn--signal:active, .wp-block-button.is-style-ff-signal .wp-block-button__link:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ff-ink); }
.ff-btn--ghost, .wp-block-button.is-style-ff-outline .wp-block-button__link { background: transparent; color: var(--ff-ink); }
.ff-btn--ghost:hover, .wp-block-button.is-style-ff-outline .wp-block-button__link:hover { background: var(--ff-ink); color: var(--ff-chalk); }
.ff-section--ink .wp-block-button.is-style-ff-outline .wp-block-button__link { color: var(--ff-chalk); border-color: var(--ff-chalk); }
.ff-section--ink .wp-block-button.is-style-ff-signal .wp-block-button__link { box-shadow: 4px 4px 0 var(--ff-chalk); }
.ff-btn--icon { padding: .6em .9em; background: var(--ff-chalk); color: var(--ff-ink); box-shadow: var(--ff-shadow); }
.ff-chip { display: inline-block; padding: .35em .8em; border: 2px solid var(--ff-ink); border-radius: 999px; background: var(--ff-chalk); color: var(--ff-ink); }
.ff-chip--concept { background: var(--ff-signal); }
.ff-label { color: var(--ff-graphite); display: block; margin-bottom: .75rem; }
.ff-section--ink .ff-label, .ff-section--steel .ff-label { color: var(--ff-ash); }

/* ---------------------------------------------------------------- Hero */
.ff-hero { position: relative; padding-block: clamp(3rem, 6vw, 6rem) clamp(4rem, 8vw, 8rem); overflow: clip; }
.ff-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ff-hero h1 { font-size: clamp(2.5rem, 5.2vw, 5.25rem); line-height: .92; margin-bottom: 1.5rem; }
@media (max-width: 860px) { .ff-hero h1 { font-size: clamp(2.25rem, 10vw, 4rem); } }
.ff-hero h1 em { font-style: normal; color: var(--ff-rust); }
.ff-hero__lede { font-size: clamp(1.125rem, 1vw + 1rem, 1.375rem); max-width: 34ch; margin-bottom: 2rem; color: var(--ff-graphite); }
.ff-hero__media { position: relative; }
.ff-frame { position: relative; border: 2px solid var(--ff-ink); box-shadow: 10px 10px 0 var(--ff-ink); background: var(--ff-ink); }
.ff-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ff-hero__media .ff-frame { aspect-ratio: 4 / 5; }
.ff-dims { position: absolute; inset: -34px -10px auto -10px; width: calc(100% + 20px); height: 24px; color: var(--ff-ink); pointer-events: none; }
/* An svg sizes from its own ratio, not the inset box: both lines get explicit lengths so they span the photo. */
.ff-dims--side { inset: -10px auto -10px -36px; width: 24px; height: calc(100% + 20px); }
.ff-dims line, .ff-dims path { stroke: currentColor; stroke-width: 1.5; fill: none; }
.ff-dims text { font-family: var(--tf-font-mono); font-size: 11px; fill: currentColor; }
@media (prefers-reduced-motion: no-preference) {
	.ff-rise { animation: ff-rise .9s var(--tf-ease-out) both; }
	.ff-rise--2 { animation-delay: .12s; }
	.ff-rise--3 { animation-delay: .24s; }
	.ff-dims line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: ff-draw 1.2s .4s var(--tf-ease-out) forwards; }
	.ff-wipe::after { content: ""; position: absolute; inset: 0; background: var(--ff-chalk); transform-origin: right; animation: ff-wipe 1s .1s var(--tf-ease-out) forwards; }
}
@keyframes ff-rise { from { opacity: 0; transform: translateY(.4em); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -10% 0); } }
@keyframes ff-draw { to { stroke-dashoffset: 0; } }
@keyframes ff-wipe { to { transform: scaleX(0); } }
@media (max-width: 860px) {
	.ff-hero__grid { grid-template-columns: 1fr; }
	.ff-hero__media .ff-frame { aspect-ratio: 4 / 3; }
	.ff-dims--side { display: none; }
}

/* Inner page hero */
.ff-page-hero { padding-block: clamp(3rem, 7vw, 6.5rem) clamp(2.5rem, 5vw, 4.5rem); border-bottom: 2px solid var(--ff-ink); }
.ff-page-hero h1 { max-width: 18ch; margin-bottom: 1.25rem; font-size: clamp(2.25rem, 4.4vw, 4.25rem); }
.ff-page-hero p { max-width: 58ch; font-size: 1.1875rem; color: var(--ff-graphite); }
.ff-page-hero .ff-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.ff-page-hero .ff-frame { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .ff-page-hero .ff-split { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Marquee */
.ff-marquee-band { background: var(--ff-ink); color: var(--ff-chalk); padding-block: 1.4rem; border-block: 2px solid var(--ff-ink); }
.ff-marquee-band .tf-marquee__track li {
	font-family: var(--tf-font-display);
	font-stretch: 125%;
	font-weight: 800;
	font-size: clamp(1.75rem, 4vw, 3.25rem);
	text-transform: uppercase;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--ff-chalk);
	padding-inline: .6em;
}
.ff-marquee-band .tf-marquee__track li::after { content: "✕"; -webkit-text-stroke: 0; color: var(--ff-signal); margin-left: 1.2em; font-size: .6em; vertical-align: middle; }

/* ---------------------------------------------------------------- Cards */
.ff-card { list-style: none; border: 2px solid var(--ff-ink); background: #fff; box-shadow: var(--ff-shadow); transition: transform .2s var(--tf-ease-out), box-shadow .2s var(--tf-ease-out); }
.ff-card:hover { transform: translate(-4px, -4px); box-shadow: var(--ff-shadow-hover); }
.ff-card a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.ff-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; padding: 0; margin: 0; }
.ff-service-card__link { position: relative; }
.ff-service-card__num { position: absolute; z-index: 2; top: 0; left: 0; background: var(--ff-ink); color: var(--ff-signal); font-family: var(--tf-font-display); font-stretch: 125%; font-weight: 800; font-size: 2rem; padding: .3em .5em; line-height: 1; }
.ff-service-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 2px solid var(--ff-ink); }
.ff-service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--tf-ease-out); }
.ff-card:hover .ff-service-card__media img { transform: scale(1.05); }
.ff-service-card__body { display: grid; gap: .5rem; padding: 1.5rem 1.5rem 1.75rem; }
.ff-service-card__title { font-family: var(--tf-font-display); font-stretch: 125%; font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1.05; }
.ff-service-card__summary { color: var(--ff-graphite); }
.ff-service-card__more { font-family: var(--tf-font-mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ff-rust); }
.ff-card:hover .ff-service-card__more span { display: inline-block; transform: translateX(4px); transition: transform .2s; }
@media (max-width: 700px) { .ff-services { grid-template-columns: 1fr; } }

.ff-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 0; margin: 0; }
.ff-project-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 2px solid var(--ff-ink); }
.ff-project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--tf-ease-out); }
.ff-card:hover .ff-project-card__media img { transform: scale(1.05); }
.ff-project-card__media .ff-chip { position: absolute; left: 12px; top: 12px; font-size: .6875rem; }
.ff-project-card__meta { padding: 1.1rem 1.25rem 0; font-family: var(--tf-font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ff-graphite); }
.ff-project-card__title { padding: .35rem 1.25rem 1.4rem; font-family: var(--tf-font-display); font-stretch: 112%; font-weight: 800; font-size: 1.3rem; line-height: 1.1; }
.ff-projects--strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 12px 16px 4px; }
.ff-projects--strip::-webkit-scrollbar { display: none; }
.ff-projects--strip > li { flex: 0 0 min(380px, 82vw); scroll-snap-align: start; }
.ff-strip { position: relative; }
.ff-strip__controls { display: flex; justify-content: flex-end; gap: .75rem; margin-bottom: 1.25rem; }
@media (max-width: 900px) { .ff-projects:not(.ff-projects--strip) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ff-projects:not(.ff-projects--strip) { grid-template-columns: 1fr; } }

/* Numbered rows (service page "what's included") */
.ff-rows { counter-reset: ffrow; display: grid; gap: 0; padding: 0; margin: 0; border-top: 2px solid var(--ff-ink); }
.ff-rows > li { counter-increment: ffrow; list-style: none; display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--ff-concrete); }
.ff-rows > li::before { content: counter(ffrow, decimal-leading-zero); font-family: var(--tf-font-mono); color: var(--ff-rust); }

/* Statement */
.ff-statement { font-family: var(--tf-font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.875rem, 4.4vw, 3.75rem); line-height: 1.05; max-width: 22ch; text-transform: none; }
.ff-statement mark { background: none; color: inherit; position: relative; white-space: nowrap; }
.ff-statement mark::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.08em; height: .22em; background: var(--ff-signal); z-index: -1; transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
	.tf-js .ff-statement mark::after { transform: scaleX(0); transition: transform 1s .3s var(--tf-ease-out); }
	.tf-js .is-in .ff-statement mark::after, .tf-js .ff-statement.is-in mark::after { transform: scaleX(1); }
	@supports (animation-timeline: view()) {
		.ff-statement .ff-word { animation: ff-word linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
	}
}
@keyframes ff-word { from { opacity: .25; } to { opacity: 1; } }

/* Process rail */
.ff-process { --progress: 0; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; padding: 3rem 0 0; margin: 0; counter-reset: ffstep; }
.ff-process::before { content: ""; position: absolute; top: 1rem; left: 0; right: 0; height: 4px; background: var(--ff-concrete); }
.ff-process::after { content: ""; position: absolute; top: 1rem; left: 0; height: 4px; width: calc(var(--progress) * 100%); background: var(--ff-signal); transition: width .6s var(--tf-ease-out); }
.ff-process > li { list-style: none; counter-increment: ffstep; }
.ff-process + .wp-block-buttons { margin-top: 3rem; }
.ff-process > li::before { content: counter(ffstep, decimal-leading-zero); display: block; font-family: var(--tf-font-display); font-stretch: 125%; font-weight: 800; font-size: 2.5rem; color: var(--ff-rust); margin-bottom: .5rem; }
.ff-process strong { display: block; font-family: var(--tf-font-display); font-stretch: 112%; text-transform: uppercase; font-size: 1.1rem; margin-bottom: .35rem; }
.ff-section--ink .ff-process::before { background: var(--ff-steel); }
.ff-section--ink .ff-process > li::before { color: var(--ff-signal); }
@media (max-width: 860px) {
	.ff-process { grid-template-columns: 1fr; padding: 0 0 0 2rem; }
	.ff-process::before { top: 0; bottom: 0; left: 0; width: 4px; height: auto; right: auto; }
	.ff-process::after { top: 0; left: 0; width: 4px; height: calc(var(--progress) * 100%); }
}

/* Brief teaser */
.ff-teaser { background: var(--ff-signal); border: 2px solid var(--ff-ink); box-shadow: 12px 12px 0 var(--ff-ink); padding: clamp(2rem, 5vw, 4rem); }
.ff-teaser__choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.ff-teaser__choices a { display: block; padding: 1.25rem; background: var(--ff-chalk); border: 2px solid var(--ff-ink); box-shadow: var(--ff-shadow); color: var(--ff-ink); text-decoration: none; font-family: var(--tf-font-display); font-stretch: 112%; font-weight: 800; text-transform: uppercase; transition: transform .12s, box-shadow .12s; }
.ff-teaser__choices a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ff-ink); }
.ff-teaser__choices a:active { transform: translate(2px, 2px); box-shadow: none; }
.ff-teaser .tf-demo-notice { margin-top: 1.25rem; background: var(--ff-chalk); }
@media (max-width: 700px) { .ff-teaser__choices { grid-template-columns: 1fr; } }

/* FAQs (shortcode and core/details) */
.ff-faq, .entry-content .wp-block-details { border-top: 2px solid var(--ff-ink); padding-block: 1.1rem; }
.ff-faqs .ff-faq:last-child, .entry-content .wp-block-details:last-of-type { border-bottom: 2px solid var(--ff-ink); }
.ff-faq summary, .entry-content .wp-block-details summary { cursor: pointer; font-family: var(--tf-font-display); font-stretch: 112%; font-weight: 800; font-size: 1.25rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ff-faq summary::-webkit-details-marker, .wp-block-details summary::-webkit-details-marker { display: none; }
.ff-faq summary::after, .entry-content .wp-block-details summary::after { content: "+"; font-family: var(--tf-font-mono); transition: transform .2s; }
.ff-faq[open] summary::after, .entry-content .wp-block-details[open] summary::after { transform: rotate(45deg); }
.ff-faq__answer { padding-top: .75rem; max-width: 70ch; color: var(--ff-graphite); }

/* CTA band */
.ff-cta { position: relative; isolation: isolate; color: var(--ff-chalk); padding-block: clamp(6rem, 12vw, 10rem); overflow: clip; }
.ff-cta__bg { position: absolute; inset: -10% 0; z-index: -2; }
.ff-cta__bg, .ff-cta__bg .wp-block-image { height: 100%; margin: 0; }
.ff-cta__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ff-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(22 22 22 / 88%), rgb(22 22 22 / 55%)); }
.ff-cta h2 { max-width: 14ch; margin-bottom: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.ff-cta__bg { animation: ff-parallax linear both; animation-timeline: view(); }
	}
}
@keyframes ff-parallax { from { transform: translateY(-6%); } to { transform: translateY(6%); } }

/* Spec table */
.ff-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border: 2px solid var(--ff-ink); background: var(--ff-ply); margin: 2rem 0; }
.ff-spec > div { padding: 1rem 1.25rem; border-right: 1px solid var(--ff-ink); }
.ff-spec > div:last-child { border-right: 0; }
.ff-spec dt { color: var(--ff-graphite); margin-bottom: .25rem; }
.ff-spec dd { margin: 0; font-weight: 600; }

/* Project single */
.ff-project-head { padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.ff-project-head__title { font-size: clamp(2.25rem, 5vw, 4.25rem); margin: 1.25rem 0 2rem; max-width: 18ch; }
.ff-project-head__image { aspect-ratio: 16 / 9; }
.single-ff_project .entry-content { max-width: var(--tf-container); margin-inline: auto !important; padding-inline: clamp(1rem, 4vw, 2.5rem); padding-bottom: var(--ff-section); }
.single-ff_project .entry-content > p, .single-ff_project .entry-content > h2, .single-ff_project .entry-content > ul { max-width: 70ch; }
.single-ff_project .entry-content > h2 { margin-top: 3rem !important; margin-bottom: 1rem !important; font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
.single-ff_project .entry-content > p { margin-bottom: 1.1rem !important; }
.ff-section-title { margin: 4rem 0 2rem; }

/* Districts */
.ff-districts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 0; margin: 0; }
.ff-districts > li { list-style: none; border: 2px solid var(--ff-ink); padding: 1.75rem; background: #fff; box-shadow: var(--ff-shadow); }
.ff-districts h3 { text-transform: uppercase; margin-bottom: .75rem; }
.ff-map { width: 100%; max-width: 720px; height: auto; border: 2px solid var(--ff-ink); background: var(--ff-chalk); }
@media (max-width: 860px) { .ff-districts { grid-template-columns: 1fr; } }

/* Brief builder */
.ff-brief { max-width: 860px; margin-inline: auto; }
.ff-brief__progress { height: 8px; border: 2px solid var(--ff-ink); background: #fff; margin: 1.5rem 0 2rem; }
.ff-brief__progress span { display: block; height: 100%; width: calc(var(--ff-progress) * 100%); background: var(--ff-signal); transition: width .4s var(--tf-ease-out); }
.ff-brief__step { border: 2px solid var(--ff-ink); background: #fff; box-shadow: 10px 10px 0 var(--ff-ink); padding: clamp(1.5rem, 4vw, 2.75rem); margin: 0; }
.ff-brief__step[hidden] { display: none; }
.ff-brief__step legend { font-family: var(--tf-font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.1; padding: 0; margin-bottom: 1.5rem; float: left; width: 100%; }
.ff-brief__count { display: block; font-family: var(--tf-font-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .08em; color: var(--ff-rust); margin-bottom: .5rem; }
.ff-brief__options { clear: both; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.ff-option { display: flex; gap: .75rem; align-items: center; border: 2px solid var(--ff-ink); padding: 1rem 1.1rem; cursor: pointer; transition: background .15s, transform .15s; }
.ff-option:hover { background: var(--ff-ply); }
.ff-option:has(input:checked) { background: var(--ff-signal); transform: translate(-2px, -2px); box-shadow: var(--ff-shadow); }
.ff-option input { width: 1.2rem; height: 1.2rem; accent-color: var(--ff-ink); flex: none; }
.ff-brief__nav { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 2rem; }
.needs-answer .ff-brief__options { outline: 3px dashed var(--ff-rust); outline-offset: 6px; }
.ff-brief__summary { border: 2px solid var(--ff-ink); background: var(--ff-ply); box-shadow: 10px 10px 0 var(--ff-ink); padding: clamp(1.5rem, 4vw, 2.75rem); }
.ff-brief__summary dl { display: grid; gap: 0; margin: 1.5rem 0; border-top: 2px solid var(--ff-ink); }
.ff-brief__summary dl > div { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--ff-ink); }
.ff-brief__summary dt { color: var(--ff-graphite); }
.ff-brief__summary dd { margin: 0; font-weight: 600; }
@media (max-width: 640px) { .ff-brief__options, .ff-brief__summary dl > div { grid-template-columns: 1fr; } }
@media print {
	.site-header, .tf-concept-bar, .ff-footer, .site-footer, .ff-brief__nav, .ff-page-hero, .tf-demo-notice { display: none !important; }
	.ff-brief__summary { box-shadow: none; }
}

/* Demo notice (from the base) */
.tf-demo-notice { border: 2px solid var(--ff-ink); background: #fff; font-size: .9375rem; }
.tf-marquee__toggle { font-family: var(--tf-font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; background: var(--ff-chalk); color: var(--ff-ink); border: 2px solid var(--ff-chalk); padding: .4em .8em; border-radius: var(--tf-radius-s); }

/* Two-column text */
.ff-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(2rem, 5vw, 5rem); }
.ff-cols--1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 860px) { .ff-cols, .ff-cols--1-2 { grid-template-columns: 1fr; } }
.ff-prose p { margin-bottom: 1.1rem; max-width: 68ch; }
.ff-prose h2 { margin-bottom: 1.25rem; }
.ff-prose h3 { margin: 2rem 0 .75rem; }
.ff-prose ul { margin: 0 0 1.25rem 1.25rem; }
.ff-prose li { margin-bottom: .4rem; }
.ff-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); flex-wrap: wrap; }
.ff-heading-row h2 { margin: 0; }
.ff-heading-row p { max-width: 46ch; margin: 0; color: var(--ff-graphite); }
.ff-section--ink .ff-heading-row p { color: var(--ff-ash); }
.ff-tick-rule { height: 14px; border: 0; margin: 0; background: repeating-linear-gradient(90deg, var(--ff-ink) 0 2px, transparent 2px 16px) bottom / 100% 8px no-repeat, linear-gradient(var(--ff-ink), var(--ff-ink)) bottom / 100% 2px no-repeat; }

/* ---------------------------------------------------------------- Footer */
.ff-footer { background: var(--ff-steel); color: #fff; padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem; }
.ff-footer__inner { max-width: var(--tf-container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); display: grid; grid-template-columns: 1.1fr 2fr; gap: clamp(2rem, 5vw, 5rem); }
.ff-footer__brand .ff-logo__svg { width: 220px; color: #fff; margin-bottom: 1.25rem; }
.ff-footer__brand p { color: #e2e6e8; max-width: 38ch; margin-bottom: 1.5rem; }
.ff-footer__nav > ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.ff-footer__nav > ul > li > a { font-family: var(--tf-font-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ff-ash); text-decoration: none; display: block; margin-bottom: 1rem; pointer-events: none; }
.ff-footer__nav ul ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ff-footer__nav ul ul a { color: #fff; text-decoration: none; }
.ff-footer__nav ul ul a:hover { color: var(--ff-signal); }
.site-footer .site-info { background: var(--ff-ink); color: var(--ff-ash); font-family: var(--tf-font-mono); font-size: .75rem; letter-spacing: .06em; }
.site-footer .site-info a { color: var(--ff-chalk); }
.tf-concept-footer { color: var(--ff-chalk); }
@media (max-width: 860px) {
	.ff-footer__inner { grid-template-columns: 1fr; }
	.ff-footer__nav > ul { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- 404 */
.ff-404 { min-height: 60vh; display: grid; align-items: center; text-align: center; }
.ff-404 .ff-wrap { width: 100%; }
.ff-404 h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.ff-404 .ff-btn { margin: .5rem; }
.ff-404 .ff-big { font-family: var(--tf-font-display); font-stretch: 125%; font-weight: 900; font-size: clamp(6rem, 22vw, 16rem); line-height: .8; color: transparent; -webkit-text-stroke: 3px var(--ff-ink); }

/* Cross-document view transitions (opted in by the base) */
@media (prefers-reduced-motion: no-preference) {
	::view-transition-old(root) { animation: ff-vt-out .25s ease both; }
	::view-transition-new(root) { animation: ff-vt-in .35s var(--tf-ease-out) both; }
}
@keyframes ff-vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes ff-vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
	.ff-card, .ff-card:hover, .ff-option, .ff-teaser__choices a { transition: none; transform: none; }
	.ff-card:hover .ff-service-card__media img, .ff-card:hover .ff-project-card__media img { transform: none; }
}

/* ---------------------------------------------------------------- Dropdowns, menus and disclosures */
/* Nav hover stays rust on chalk (4.59:1). Sub-menu rows fill with signal and keep ink
   text (6.37:1); signal is never used as text. */
:root {
	--tf-nav-hover-color: var(--ff-rust);
	--tf-nav-sub-hover-bg: var(--ff-signal);
	--tf-nav-sub-hover-color: var(--ff-ink);
}
@media (min-width: 769px) {
	.main-navigation .main-nav ul ul { min-width: 16rem; padding: .5rem; border-radius: 0; }
	.main-navigation .main-nav ul ul li + li { border-top: 1px solid var(--ff-concrete); }
	.main-navigation .main-nav ul ul li a { font-size: .8125rem; line-height: 1.35; padding: .8rem .875rem; border-radius: 0; }
	.main-navigation .main-nav ul ul li[class*="current-menu-"] > a { box-shadow: inset 4px 0 0 var(--ff-signal); }
}
@media (max-width: 768px) {
	.main-navigation.toggled .main-nav ul ul { margin-left: .25rem; border-inline-start-color: var(--ff-ink); }
	.main-navigation.toggled .main-nav ul ul li a {
		font-family: var(--tf-font-mono);
		font-stretch: normal;
		font-weight: 500;
		font-size: .9375rem;
		letter-spacing: .08em;
		line-height: 1.3;
		padding-block: .7rem;
	}
	.main-navigation.toggled .dropdown-menu-toggle { padding-inline: 14px; }
}

/* FAQ marker: a square stamp that fills with signal on hover and when open. */
.ff-faq summary::after, .entry-content .wp-block-details summary::after {
	flex: none;
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border: 2px solid var(--ff-ink);
	background: var(--ff-chalk);
	color: var(--ff-ink);
	font-size: 1.125rem;
	line-height: 1;
	transition: background-color .15s, transform .15s var(--tf-ease-out), box-shadow .15s var(--tf-ease-out);
}
.ff-faq[open] summary::after, .entry-content .wp-block-details[open] summary::after { content: "\2212"; transform: none; background: var(--ff-signal); }
.ff-faq summary:hover::after, .entry-content .wp-block-details summary:hover::after { background: var(--ff-signal); box-shadow: 3px 3px 0 var(--ff-ink); transform: translate(-1px, -1px); }
@media (prefers-reduced-motion: reduce) {
	.ff-faq summary:hover::after, .entry-content .wp-block-details summary:hover::after { transform: none; }
}
