/*
Theme Name: Fiveten Lens
Author: Quishara Williams
Description: Hand-coded, self-contained classic WordPress theme for Fiveten Lens. Photography-first editorial design system with accessible navigation, portfolio taxonomy, journal, services, and an inquiry flow. No page builders, no external frameworks, no bundled tracking. All business copy is owner-supplied through the Customizer and WordPress content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fiveten-lens
Tags: photography, portfolio, custom-menu, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   Editorial, photography-first. Warm neutral paper, deep ink, brass accent.
   System font stacks only: no external font requests, no third-party origin.
   ========================================================================== */
:root {
	/* Surfaces */
	--fl-ink: #1C1B19;
	--fl-ink-2: #241f1b;
	--fl-paper: #F6F1EA;
	--fl-paper-2: #f1ece5;
	--fl-paper-3: #fbf8f3;
	--fl-line: #ddd4c8;

	/* Interactive-control boundary — 4.4:1 on white, meets WCAG 2.2 SC 1.4.11 */
	--fl-line-strong: #7a7166;

	/* Text */
	--fl-text: #1C1B19;
	--fl-text-soft: #5b5148;
	--fl-text-invert: #F6F1EA;
	--fl-text-invert-soft: #d9d1c7;

	/* Brand colors (below AA contrast for small text on --fl-paper, kept for decorative highlights) */
	--fl-brand-gold: #B08D57;
	--fl-brand-rose: #C97B63;
	--fl-shadow: 0 1.5rem 5rem rgba(28, 27, 25, 0.12);

	/* Accent — warm brass (accessible deep gold at 4.9:1 contrast on --fl-paper) */
	--fl-accent: #8a5a25;
	/* Accent hover — accessible terracotta (6.15:1 contrast on --fl-paper and --fl-text-invert) */
	--fl-accent-hover: #814c3f;
	--fl-focus: #8a5a25;
	--fl-focus-invert: #f0c48a;

	/* Type */
	--fl-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--fl-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	/* Modular scale (rem only — no viewport units on font-size) */
	--fl-fs-xs: 0.8125rem;
	--fl-fs-sm: 0.9375rem;
	--fl-fs-base: 1.0625rem;
	--fl-fs-md: 1.1875rem;
	--fl-fs-lg: 1.4375rem;
	--fl-fs-xl: 1.75rem;
	--fl-fs-2xl: 2.125rem;
	--fl-fs-3xl: 2.625rem;

	/* Space */
	--fl-space-1: 0.25rem;
	--fl-space-2: 0.5rem;
	--fl-space-3: 0.75rem;
	--fl-space-4: 1rem;
	--fl-space-5: 1.5rem;
	--fl-space-6: 2rem;
	--fl-space-7: 3rem;
	--fl-space-8: 4rem;
	--fl-space-9: 6rem;

	/* Layout */
	--fl-measure: 68ch;
	--fl-container: 78rem;
	--fl-container-narrow: 46rem;
	--fl-gutter: clamp(1.25rem, 5vw, 3rem);
	--fl-radius: 2px;

	/* Motion */
	--fl-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
	--fl-dur: 320ms;
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background-color: var(--fl-paper);
	color: var(--fl-text);
	font-family: var(--fl-sans);
	font-size: var(--fl-fs-base);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
	font-family: var(--fl-serif);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: 0.005em;
	margin: 0 0 var(--fl-space-4);
	text-wrap: balance;
}

h1 { font-size: var(--fl-fs-2xl); }
h2 { font-size: var(--fl-fs-xl); }
h3 { font-size: var(--fl-fs-lg); }
h4 { font-size: var(--fl-fs-md); }

p {
	margin: 0 0 var(--fl-space-4);
	text-wrap: pretty;
}

a {
	color: var(--fl-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--fl-accent-hover);
}

/*
 * Images always declare width/height in markup; this pair keeps them fluid
 * without reintroducing layout shift.
 */
img,
picture,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

figure {
	margin: 0;
}

ul,
ol {
	padding-left: 1.25em;
}

hr {
	border: 0;
	border-top: 1px solid var(--fl-line);
	margin: var(--fl-space-7) 0;
}

blockquote {
	margin: var(--fl-space-6) 0;
	padding-left: var(--fl-space-5);
	border-left: 2px solid var(--fl-accent);
	font-family: var(--fl-serif);
	font-size: var(--fl-fs-md);
	color: var(--fl-text-soft);
}

/* ==========================================================================
   3. Accessibility primitives
   ========================================================================== */
.fl-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	padding: var(--fl-space-3) var(--fl-space-5);
	background: var(--fl-ink);
	color: var(--fl-text-invert);
	text-decoration: none;
}

.fl-skip-link:focus {
	left: 0;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.screen-reader-text:focus {
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	padding: var(--fl-space-3) var(--fl-space-4);
	background: var(--fl-ink);
	color: var(--fl-text-invert);
	z-index: 200;
}

:focus-visible {
	outline: 3px solid var(--fl-focus);
	outline-offset: 3px;
}

.fl-section--dark :focus-visible,
.fl-site-header--overlay :focus-visible {
	outline-color: var(--fl-focus-invert);
}

/* ==========================================================================
   4. Layout primitives
   ========================================================================== */
.fl-container {
	width: 100%;
	max-width: var(--fl-container);
	margin-inline: auto;
	padding-inline: var(--fl-gutter);
}

.fl-container--narrow {
	max-width: var(--fl-container-narrow);
}

.fl-section {
	padding-block: var(--fl-space-8);
}

.fl-section--tight {
	padding-block: var(--fl-space-7);
}

.fl-section--dark {
	background-color: var(--fl-ink);
	color: var(--fl-text-invert);
}

.fl-section--dark h1,
.fl-section--dark h2,
.fl-section--dark h3 {
	color: var(--fl-text-invert);
}

.fl-section--dark p {
	color: var(--fl-text-invert-soft);
}

.fl-section--alt {
	background-color: var(--fl-paper-2);
}

.fl-prose {
	max-width: var(--fl-measure);
}

/*
 * Every image emitted by fl_the_image() carries .fl-img. Inside a ratio box
 * (.fl-card__media, .fl-hero__media) the parent rule wins; this is the
 * baseline for images rendered anywhere else.
 */
.fl-img {
	width: 100%;
	height: auto;
}

/*
 * Owner text entered in a Customizer textarea is escaped, not run through
 * wpautop, so its line breaks would otherwise collapse into one run-on block.
 * Scoped to this class so the_content() output is never affected.
 */
.fl-owner-text {
	white-space: pre-line;
}

.fl-stack > * + * {
	margin-top: var(--fl-space-4);
}

/* Section heading with eyebrow + rule */
.fl-section-head {
	margin-bottom: var(--fl-space-6);
	max-width: var(--fl-measure);
}

.fl-section-head--split {
	max-width: none;
	display: grid;
	gap: var(--fl-space-5);
	align-items: end;
	grid-template-columns: 1fr;
}

.fl-section-head--split > p {
	max-width: 38rem;
	color: var(--fl-text-soft);
	margin-bottom: 0;
}

@media (min-width: 64em) {
	.fl-section-head--split {
		grid-template-columns: minmax(0, 1.2fr) minmax(22rem, 0.8fr);
	}
}

.fl-eyebrow {
	display: block;
	margin-bottom: var(--fl-space-3);
	font-family: var(--fl-sans);
	font-size: var(--fl-fs-xs);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fl-accent);
}

.fl-section--dark .fl-eyebrow {
	color: var(--fl-focus-invert);
}

/* ==========================================================================
   5. Buttons and links
   ========================================================================== */
.fl-btn {
	display: inline-block;
	padding: 0.8125rem 1.75rem;
	border: 1px solid var(--fl-ink);
	border-radius: var(--fl-radius);
	background-color: var(--fl-ink);
	color: var(--fl-text-invert);
	font-size: var(--fl-fs-sm);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--fl-dur) var(--fl-ease), color var(--fl-dur) var(--fl-ease);
}

.fl-btn:hover {
	background-color: var(--fl-accent-hover);
	border-color: var(--fl-accent-hover);
	color: var(--fl-text-invert);
}

.fl-btn--ghost {
	background-color: transparent;
	color: var(--fl-ink);
}

.fl-btn--ghost:hover {
	background-color: var(--fl-ink);
	color: var(--fl-text-invert);
}

.fl-btn--invert {
	background-color: transparent;
	border-color: var(--fl-text-invert);
	color: var(--fl-text-invert);
}

.fl-btn--invert:hover {
	background-color: var(--fl-text-invert);
	color: var(--fl-ink);
	border-color: var(--fl-text-invert);
}

.fl-link-arrow {
	display: inline-block;
	font-size: var(--fl-fs-sm);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

.fl-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fl-space-3);
	margin-top: var(--fl-space-5);
}

/* ==========================================================================
   6. Site header + navigation
   ========================================================================== */
.fl-site-header {
	position: relative;
	z-index: 100;
	background-color: var(--fl-paper);
	border-bottom: 1px solid var(--fl-line);
}

.fl-site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--fl-space-5);
	min-height: 4.5rem;
}

.fl-brand {
	font-family: var(--fl-serif);
	font-size: var(--fl-fs-lg);
	line-height: 1.1;
	text-decoration: none;
	color: inherit;
	letter-spacing: 0.02em;
}

.fl-brand__mark {
	display: block;
}

.fl-brand__sub {
	display: block;
	margin-top: 2px;
	font-family: var(--fl-sans);
	font-size: var(--fl-fs-xs);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fl-text-soft);
}

/*
 * The toggle ships with the `hidden` attribute and is only revealed by
 * navigation.js. `display: inline-flex` below would otherwise override the UA
 * `[hidden]` rule, so with JavaScript off the button would render and do
 * nothing. This guard keeps the no-JS result a plain, always-visible nav.
 */
.fl-nav-toggle[hidden] {
	display: none;
}

.fl-nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--fl-space-2);
	padding: 0.625rem 0.875rem;
	min-height: 44px;
	background: transparent;
	border: 1px solid var(--fl-line);
	border-radius: var(--fl-radius);
	color: inherit;
	font: inherit;
	font-size: var(--fl-fs-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
}

.fl-nav-toggle__bars {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	position: relative;
}

.fl-nav-toggle__bars::before,
.fl-nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: currentColor;
}

.fl-nav-toggle__bars::before { top: -6px; }
.fl-nav-toggle__bars::after { top: 6px; }

.fl-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: var(--fl-space-5);
}

.fl-nav__list a {
	display: inline-block;
	padding: var(--fl-space-2) 0;
	color: inherit;
	font-size: var(--fl-fs-sm);
	letter-spacing: 0.06em;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.fl-nav__list a:hover,
.fl-nav__list .current-menu-item > a,
.fl-nav__list .current_page_item > a {
	border-bottom-color: currentColor;
}

.fl-header__actions {
	display: flex;
	align-items: center;
	gap: var(--fl-space-4);
}

/* Mobile navigation: JS toggles [hidden]; no-JS keeps the menu visible. */
@media (max-width: 60em) {
	.fl-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--fl-paper);
		border-bottom: 1px solid var(--fl-line);
		padding: var(--fl-space-5) 0;
	}

	.fl-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--fl-space-2);
		padding-inline: var(--fl-gutter);
	}

	.fl-nav__list a {
		display: block;
		width: 100%;
		padding: var(--fl-space-3) 0;
		font-size: var(--fl-fs-md);
	}

	.fl-header__cta {
		display: none;
	}
}

@media (min-width: 60.0625em) {
	.fl-nav-toggle {
		display: none;
	}

	.fl-nav[hidden] {
		display: block;
	}
}

/* ==========================================================================
   7. Hero
   Aspect-ratio box reserves space before the image loads (CLS control).
   ========================================================================== */
.fl-hero {
	position: relative;
	background-color: var(--fl-ink);
	color: var(--fl-text-invert);
	overflow: hidden;
}

.fl-hero__media {
	position: absolute;
	inset: 0;
	margin: 0;
}

.fl-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * The scrim is what guarantees AA contrast for the hero headline and lede over
 * an arbitrary owner-supplied photograph. A flat 52% could not be relied on
 * over a bright frame. A gradient keeps the image readable at the top while
 * going dense enough behind the text block to hold contrast on any image.
 */
.fl-hero__scrim {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(
		to bottom,
		rgba(14, 13, 12, 0.42) 0%,
		rgba(14, 13, 12, 0.58) 45%,
		rgba(14, 13, 12, 0.76) 100%
	);
	pointer-events: none;
}

.fl-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 62vh;
	padding-block: var(--fl-space-9);
}

.fl-hero--tall .fl-hero__inner {
	min-height: 78vh;
}

.fl-hero__title {
	font-size: var(--fl-fs-3xl);
	margin-bottom: var(--fl-space-4);
	color: var(--fl-text-invert);
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
	max-width: 12ch;
}

.fl-hero__lede {
	max-width: 46ch;
	font-size: var(--fl-fs-md);
	color: var(--fl-text-invert-soft);
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.fl-hero__kicker {
	margin-bottom: var(--fl-space-3);
	font-size: var(--fl-fs-xs);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fl-focus-invert);
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.fl-hero__signals {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fl-space-2);
	list-style: none;
	padding: 0;
	margin: var(--fl-space-5) 0 0;
	max-width: 42rem;
}

.fl-hero__signals li {
	border: 1px solid rgba(246, 241, 234, 0.34);
	background: rgba(28, 27, 25, 0.34);
	color: var(--fl-text-invert);
	padding: 0.5rem 0.75rem;
	font-size: var(--fl-fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	backdrop-filter: blur(10px);
}

.fl-hero__note {
	font-size: var(--fl-fs-sm);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--fl-text-invert);
	margin-top: var(--fl-space-4);
	margin-bottom: 0;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.fl-hero__proof {
	margin-top: var(--fl-space-6);
	max-width: 58rem;
	border-left: 2px solid var(--fl-focus-invert);
	padding-left: var(--fl-space-4);
}

.fl-hero__proof p {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fl-space-2) var(--fl-space-4);
	margin: 0;
	font-size: var(--fl-fs-sm);
	color: var(--fl-text-invert-soft);
}

.fl-hero__proof span + span::before {
	content: "/";
	margin-right: var(--fl-space-4);
	color: rgba(246, 241, 234, 0.4);
}

@media (max-width: 38em) {
	.fl-hero__proof span + span::before {
		content: none;
	}

	.fl-hero__proof p {
		display: grid;
	}
}

/* ==========================================================================
   7a. High-end homepage panels
   ========================================================================== */
.fl-section--editorial {
	background:
		linear-gradient(90deg, rgba(176, 141, 87, 0.16) 0 1px, transparent 1px) 0 0 / 7rem 100%,
		var(--fl-paper-3);
}

.fl-pathway-grid {
	display: grid;
	gap: var(--fl-space-4);
	grid-template-columns: 1fr;
}

@media (min-width: 44em) {
	.fl-pathway-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 70em) {
	.fl-pathway-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

.fl-pathway,
.fl-investment-card,
.fl-founder-panel__notes {
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid var(--fl-line);
	box-shadow: var(--fl-shadow);
}

.fl-pathway {
	min-height: 17rem;
	padding: var(--fl-space-5);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background:
		linear-gradient(180deg, rgba(28, 27, 25, 0.02), rgba(28, 27, 25, 0.08)),
		var(--fl-paper);
}

.fl-pathway__label {
	font-family: var(--fl-serif);
	font-size: var(--fl-fs-lg);
	color: var(--fl-ink);
	margin-bottom: var(--fl-space-3);
}

.fl-pathway p:last-child {
	font-size: var(--fl-fs-sm);
	color: var(--fl-text-soft);
	margin-bottom: 0;
}

.fl-founder-panel {
	display: grid;
	gap: var(--fl-space-5);
	align-items: start;
	grid-template-columns: 1fr;
}

@media (min-width: 56em) {
	.fl-founder-panel {
		grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr);
	}
}

.fl-founder-panel__notes {
	padding: var(--fl-space-5);
	background-color: var(--fl-paper-3);
}

.fl-founder-panel__notes p:last-child {
	margin-bottom: 0;
}

.fl-section--process {
	position: relative;
	overflow: hidden;
}

.fl-section--process::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 12% 10%, rgba(176, 141, 87, 0.24), transparent 28rem),
		linear-gradient(135deg, transparent 0 62%, rgba(246, 241, 234, 0.08) 62% 63%, transparent 63%);
	pointer-events: none;
}

.fl-section--process > .fl-container {
	position: relative;
}

.fl-process-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--fl-space-5);
	grid-template-columns: 1fr;
}

@media (min-width: 58em) {
	.fl-process-list {
		grid-template-columns: repeat(3, 1fr);
	}
}

.fl-process-list li {
	border-top: 1px solid rgba(246, 241, 234, 0.25);
	padding-top: var(--fl-space-5);
}

.fl-process-list span {
	display: block;
	margin-bottom: var(--fl-space-4);
	font-family: var(--fl-serif);
	font-size: var(--fl-fs-2xl);
	color: var(--fl-focus-invert);
}

.fl-process-list p {
	color: var(--fl-text-invert-soft);
	margin-bottom: 0;
}

.fl-section--investment {
	background-color: var(--fl-paper);
}

.fl-investment-grid {
	display: grid;
	gap: var(--fl-space-4);
	grid-template-columns: 1fr;
}

@media (min-width: 58em) {
	.fl-investment-grid {
		grid-template-columns: repeat(3, 1fr);
		align-items: stretch;
	}
}

.fl-investment-card {
	padding: var(--fl-space-6);
	background: var(--fl-paper-3);
}

.fl-investment-card--featured {
	background: var(--fl-ink);
	color: var(--fl-text-invert);
}

.fl-investment-card--featured p {
	color: var(--fl-text-invert-soft);
}

.fl-location-panel {
	display: grid;
	gap: var(--fl-space-5);
	align-items: center;
	grid-template-columns: 1fr;
}

@media (min-width: 60em) {
	.fl-location-panel {
		grid-template-columns: 0.9fr 1.1fr;
	}
}

.fl-location-panel p {
	margin-bottom: 0;
	color: var(--fl-text-soft);
}

/* Page header used where no hero image is configured */
.fl-page-head {
	padding-block: var(--fl-space-8) var(--fl-space-6);
	border-bottom: 1px solid var(--fl-line);
}

.fl-page-head__title {
	font-size: var(--fl-fs-2xl);
	margin-bottom: var(--fl-space-3);
}

.fl-page-head__lede {
	max-width: var(--fl-measure);
	font-size: var(--fl-fs-md);
	color: var(--fl-text-soft);
	margin-bottom: 0;
}

/* ==========================================================================
   8. Grids: portfolio, journal, services
   ========================================================================== */
.fl-grid {
	display: grid;
	gap: var(--fl-space-5);
	grid-template-columns: 1fr;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 40em) {
	.fl-grid--2,
	.fl-grid--3,
	.fl-grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 64em) {
	.fl-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.fl-grid--4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Card */
.fl-card {
	display: flex;
	flex-direction: column;
	background: transparent;
}

.fl-card__media {
	position: relative;
	overflow: hidden;
	background-color: var(--fl-paper-2);
	aspect-ratio: 4 / 5;
	margin-bottom: var(--fl-space-4);
}

.fl-card__media--wide {
	aspect-ratio: 3 / 2;
}

.fl-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--fl-dur) var(--fl-ease);
}

.fl-card:hover .fl-card__media img {
	transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
	.fl-card__media img {
		transition: none;
	}

	.fl-card:hover .fl-card__media img {
		transform: none;
	}
}

/* Empty media slot: honest placeholder, never a stock image. */
.fl-card__media--empty::after,
.fl-media-empty::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--fl-paper-2);
	background-image: linear-gradient(135deg, transparent 47%, var(--fl-line) 47%, var(--fl-line) 53%, transparent 53%);
}

.fl-card__title {
	font-size: var(--fl-fs-md);
	margin-bottom: var(--fl-space-2);
}

.fl-card__title a {
	color: inherit;
	text-decoration: none;
}

/* Whole-card click target without nesting interactive elements. */
.fl-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.fl-card {
	position: relative;
}

.fl-card__meta {
	font-size: var(--fl-fs-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fl-text-soft);
	margin-bottom: var(--fl-space-2);
}

.fl-card__excerpt {
	font-size: var(--fl-fs-sm);
	color: var(--fl-text-soft);
	margin-bottom: 0;
}

/* Service card */
.fl-service {
	position: relative;
	padding: var(--fl-space-6);
	border: 1px solid var(--fl-line);
	background-color: var(--fl-paper);
	display: flex;
	flex-direction: column;
}

.fl-service__title {
	font-size: var(--fl-fs-lg);
	margin-bottom: var(--fl-space-3);
}

.fl-service__body {
	color: var(--fl-text-soft);
	font-size: var(--fl-fs-sm);
}

.fl-service__body > :last-child {
	margin-bottom: 0;
}

.fl-service__cta {
	margin-top: auto;
	padding-top: var(--fl-space-5);
}

/* Category tiles (home page pathways) */
.fl-category-list {
	display: grid;
	gap: var(--fl-space-4);
	grid-template-columns: 1fr;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 30em) {
	.fl-category-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 60em) {
	.fl-category-list {
		grid-template-columns: repeat(5, 1fr);
	}
}

.fl-category-tile {
	position: relative;
	padding: var(--fl-space-5);
	background-color: var(--fl-paper);
	border: 1px solid var(--fl-line);
	text-decoration: none;
	color: var(--fl-text);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--fl-serif);
	font-size: var(--fl-fs-md);
	font-weight: 500;
	transition: background-color var(--fl-dur) var(--fl-ease), border-color var(--fl-dur) var(--fl-ease), transform var(--fl-dur) var(--fl-ease);
}

.fl-category-tile:hover {
	background-color: var(--fl-paper-2);
	border-color: var(--fl-brand-gold);
	color: var(--fl-text);
}

.fl-category-tile__arrow {
	color: var(--fl-brand-gold);
	transition: transform var(--fl-dur) var(--fl-ease);
}

.fl-category-tile:hover .fl-category-tile__arrow {
	transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
	.fl-category-tile,
	.fl-category-tile__arrow {
		transition: none;
	}
	.fl-category-tile:hover .fl-category-tile__arrow {
		transform: none;
	}
}

/* Filter bar (portfolio taxonomy) */
.fl-filter {
	margin-bottom: var(--fl-space-6);
}

.fl-filter__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--fl-space-2) var(--fl-space-4);
}

.fl-filter__list a {
	display: inline-block;
	padding: var(--fl-space-2) 0;
	min-height: 44px;
	font-size: var(--fl-fs-sm);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--fl-text-soft);
	border-bottom: 1px solid transparent;
}

.fl-filter__list a:hover,
.fl-filter__list [aria-current="page"] {
	color: var(--fl-ink);
	border-bottom-color: var(--fl-accent);
}

/* ==========================================================================
   9. Gallery (single portfolio project)
   ========================================================================== */
.fl-gallery {
	display: grid;
	gap: var(--fl-space-4);
	grid-template-columns: 1fr;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 48em) {
	.fl-gallery {
		grid-template-columns: repeat(2, 1fr);
	}

	.fl-gallery__item--full {
		grid-column: 1 / -1;
	}
}

.fl-gallery figure {
	background-color: var(--fl-paper-2);
}

.fl-gallery figcaption {
	margin-top: var(--fl-space-2);
	font-size: var(--fl-fs-xs);
	color: var(--fl-text-soft);
}

/* ==========================================================================
   10. Entry / article content
   ========================================================================== */
.fl-entry__header {
	margin-bottom: var(--fl-space-6);
}

.fl-entry__meta {
	font-size: var(--fl-fs-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fl-text-soft);
	margin-bottom: var(--fl-space-3);
}

.fl-entry__content {
	max-width: var(--fl-measure);
}

.fl-entry__content h2 {
	margin-top: var(--fl-space-7);
}

.fl-entry__content h3 {
	margin-top: var(--fl-space-6);
}

.fl-entry__content img,
.fl-entry__content figure {
	margin-block: var(--fl-space-6);
}

.fl-entry__footer {
	margin-top: var(--fl-space-7);
	padding-top: var(--fl-space-5);
	border-top: 1px solid var(--fl-line);
	font-size: var(--fl-fs-sm);
	color: var(--fl-text-soft);
}

/* Pagination */
.fl-pagination {
	margin-top: var(--fl-space-8);
	padding-top: var(--fl-space-5);
	border-top: 1px solid var(--fl-line);
}

.fl-pagination .page-numbers {
	display: inline-block;
	min-width: 44px;
	min-height: 44px;
	padding: var(--fl-space-3);
	text-align: center;
	text-decoration: none;
	color: var(--fl-text-soft);
}

.fl-pagination .page-numbers.current {
	color: var(--fl-ink);
	border-bottom: 2px solid var(--fl-accent);
}

/* Breadcrumb */
.fl-breadcrumb {
	font-size: var(--fl-fs-xs);
	letter-spacing: 0.06em;
	color: var(--fl-text-soft);
	padding-block: var(--fl-space-4) 0;
}

.fl-breadcrumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--fl-space-2);
	margin: 0;
	padding: 0;
}

.fl-breadcrumb li + li::before {
	content: "/";
	margin-right: var(--fl-space-2);
	color: var(--fl-line);
}

/* ==========================================================================
   11. Inquiry form
   ========================================================================== */
.fl-form {
	max-width: 40rem;
}

.fl-field {
	margin-bottom: var(--fl-space-5);
}

.fl-field__label {
	display: block;
	margin-bottom: var(--fl-space-2);
	font-size: var(--fl-fs-sm);
	font-weight: 600;
	letter-spacing: 0.04em;
}

.fl-field__hint {
	display: block;
	margin-top: var(--fl-space-2);
	font-size: var(--fl-fs-xs);
	color: var(--fl-text-soft);
}

/*
 * Border uses --fl-line-strong, not --fl-line. WCAG 2.2 SC 1.4.11 requires a
 * 3:1 boundary for interactive controls; the decorative --fl-line (#ddd4c8)
 * only reaches ~1.5:1 on the white field and leaves the input edge invisible
 * to low-vision users.
 */
.fl-field input,
.fl-field select,
.fl-field textarea {
	width: 100%;
	min-height: 44px;
	padding: 0.75rem 0.875rem;
	border: 1px solid var(--fl-line-strong);
	border-radius: var(--fl-radius);
	background-color: #fff;
	color: var(--fl-text);
	font: inherit;
	font-size: var(--fl-fs-base);
}

.fl-field textarea {
	min-height: 9rem;
	resize: vertical;
}

.fl-field input:focus-visible,
.fl-field select:focus-visible,
.fl-field textarea:focus-visible {
	border-color: var(--fl-accent);
}

.fl-field--required .fl-field__label::after {
	content: " *";
	color: var(--fl-accent);
}

/* Honeypot: removed from the accessibility tree and from view. */
.fl-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.fl-notice {
	padding: var(--fl-space-4) var(--fl-space-5);
	margin-bottom: var(--fl-space-6);
	border-left: 3px solid var(--fl-accent);
	background-color: var(--fl-paper-2);
	font-size: var(--fl-fs-sm);
}

.fl-notice--error {
	border-left-color: #a3261f;
}

.fl-notice__list {
	margin: var(--fl-space-2) 0 0;
}

.fl-field__error {
	display: block;
	margin-top: var(--fl-space-2);
	font-size: var(--fl-fs-xs);
	color: #8c211b;
	font-weight: 600;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.fl-site-footer {
	background-color: var(--fl-ink);
	color: var(--fl-text-invert-soft);
	padding-block: var(--fl-space-8) var(--fl-space-6);
	margin-top: var(--fl-space-9);
}

/*
 * When the page ends on the dark CTA, that 96px of margin renders as a pale
 * band trapped between two dark blocks — it reads as a layout bug rather than
 * breathing room. Collapse it so the CTA runs straight into the footer.
 */
main:has(> :last-child.fl-section--dark) + .fl-site-footer {
	margin-top: 0;
}

.fl-site-footer a {
	color: var(--fl-text-invert);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.fl-site-footer a:hover {
	border-bottom-color: currentColor;
}

.fl-footer__grid {
	display: grid;
	gap: var(--fl-space-6);
	grid-template-columns: 1fr;
}

@media (min-width: 48em) {
	.fl-footer__grid {
		grid-template-columns: 2fr 1fr 1fr;
	}
}

.fl-footer__heading {
	font-family: var(--fl-sans);
	font-size: var(--fl-fs-xs);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fl-text-invert);
	margin-bottom: var(--fl-space-3);
}

.fl-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fl-footer__list li + li {
	margin-top: var(--fl-space-2);
}

.fl-footer__list a {
	display: inline-block;
	padding: var(--fl-space-1) 0;
	font-size: var(--fl-fs-sm);
}

.fl-footer__bottom {
	margin-top: var(--fl-space-7);
	padding-top: var(--fl-space-5);
	border-top: 1px solid rgba(250, 247, 243, 0.16);
	font-size: var(--fl-fs-xs);
	display: flex;
	flex-wrap: wrap;
	gap: var(--fl-space-4);
	justify-content: space-between;
}

/* ==========================================================================
   13. Responsive type steps
   ========================================================================== */
@media (min-width: 48em) {
	:root {
		--fl-fs-2xl: 2.625rem;
		--fl-fs-3xl: 3.5rem;
	}
}

@media (min-width: 75em) {
	:root {
		--fl-fs-2xl: 3rem;
		--fl-fs-3xl: 4.25rem;
	}
}

/* ==========================================================================
   14. WordPress core alignment/caption classes
   ========================================================================== */
.alignleft {
	float: left;
	margin: 0 var(--fl-space-5) var(--fl-space-4) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--fl-space-4) var(--fl-space-5);
}

.aligncenter {
	margin-inline: auto;
}

.alignwide,
.alignfull {
	max-width: none;
}

.wp-caption-text,
.wp-block-image figcaption {
	font-size: var(--fl-fs-xs);
	color: var(--fl-text-soft);
	margin-top: var(--fl-space-2);
}

.sticky,
.gallery-caption,
.bypostauthor {
	/* Required by the WordPress theme review handbook. */
}

/* ==========================================================================
   15. Print
   ========================================================================== */
@media print {
	.fl-site-header,
	.fl-site-footer,
	.fl-btn-row,
	.fl-filter {
		display: none;
	}

	body {
		background: #fff;
		color: #000;
	}
}
