/*
Theme Name:        FitFold
Theme URI:         https://fitfold.in
Author:            The White Crab
Author URI:        https://www.instagram.com/thewhite.crab/
Description:       Custom theme for FitFold — modular kitchens, wardrobes and storage, measured to fit. Built to pair with the FitFold Core plugin (projects, services, testimonials and home-measurement bookings).
Version:           1.0.0
Requires at least: 6.2
Tested up to:      6.8
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       fitfold
Tags:              custom-logo, custom-menu, featured-images, one-column, two-columns, translation-ready
*/

/* Manrope (variable, SIL Open Font License — see assets/fonts/OFL.txt). Self-hosted: no Google request. */
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"), url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url("assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"), url("assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--ff-ink: #1a1a1a;
	--ff-ink-2: #2a2826;
	--ff-copper: #bf5521;
	--ff-copper-deep: #a3461a; /* copper for small text on light grounds (AA) */
	--ff-linen: #fbf7ef;
	--ff-sand: #f3ece0;
	--ff-teak: #d9b38c;
	--ff-stone: #6b6560;
	--ff-line: #e2d9cb;
	--ff-line-dark: #3a3734;
	--ff-white: #ffffff;
	--ff-on-dark: #f3ede3;
	--ff-on-dark-2: #bdb5aa;

	--ff-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--ff-wrap: 1320px;
	--ff-gutter: clamp(16px, 4vw, 40px);
	--ff-section: clamp(72px, 10vw, 140px);
	--ff-radius: 0px;
	--ff-ease: cubic-bezier(.2, .7, .2, 1);
	--ff-header-h: 84px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--ff-font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ff-ink);
	background: var(--ff-linen);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
body.ff-nav-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ff-copper-deep); }
:focus-visible { outline: 2px solid var(--ff-copper); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ff-font);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.025em;
	margin: 0 0 .5em;
	color: inherit;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.75rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--ff-line); margin: 2.5em 0; }
blockquote { margin: 1.5em 0; padding-left: 1.25em; border-left: 2px solid var(--ff-copper); font-size: 1.2rem; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto;
	left: 16px; top: 16px; z-index: 1000; padding: 12px 18px;
	background: var(--ff-ink); color: #fff; text-decoration: none;
}

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.ff-wrap { width: 100%; max-width: var(--ff-wrap); margin-inline: auto; padding-inline: var(--ff-gutter); }
.ff-wrap--narrow { max-width: 860px; }
.ff-section { padding-block: var(--ff-section); position: relative; }
.ff-section--sand { background: var(--ff-sand); }
.ff-section--ink { background: var(--ff-ink); color: var(--ff-on-dark); }
.ff-section--white { background: var(--ff-white); }

.ff-grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.ff-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ff-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ff-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) {
	.ff-grid--3, .ff-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.ff-grid--2, .ff-grid--3, .ff-grid--4 { grid-template-columns: 1fr; }
}

/* Eyebrow with the measuring-tick motif */
.ff-eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
	color: var(--ff-copper-deep);
	margin: 0 0 18px;
}
.ff-eyebrow::before {
	content: ""; width: 34px; height: 9px; flex: none;
	background:
		linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat,
		repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8.25px) left bottom / 100% 5px no-repeat,
		linear-gradient(currentColor, currentColor) left bottom / 1px 9px no-repeat,
		linear-gradient(currentColor, currentColor) right bottom / 1px 9px no-repeat;
}
.ff-section--ink .ff-eyebrow, .ff-on-dark .ff-eyebrow { color: var(--ff-teak); }

.ff-lead { font-size: clamp(1.0625rem, 1.3vw, 1.2rem); color: var(--ff-stone); max-width: 58ch; }
.ff-section--ink .ff-lead { color: var(--ff-on-dark-2); }

.ff-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.ff-head h2 { margin: 0; max-width: 16ch; }
.ff-head .ff-lead { margin: 0; }
.ff-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.ff-head--center h2 { max-width: 20ch; }
@media (max-width: 860px) { .ff-head { grid-template-columns: 1fr; } }

/* Dimension line: |——— 2440 mm ———| */
.ff-dim {
	display: flex; align-items: center; gap: 14px;
	font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: currentColor; opacity: .75;
}
.ff-dim::before, .ff-dim::after {
	content: ""; flex: 1; height: 9px;
	background:
		linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.ff-dim::before { border-left: 1px solid currentColor; }
.ff-dim::after { border-right: 1px solid currentColor; }

/* ==========================================================================
   4. Buttons & links
   ========================================================================== */
.ff-btn, .wp-block-button__link, button.ff-btn, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 15px 28px;
	font-family: var(--ff-font); font-size: .9375rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
	border: 1px solid transparent; border-radius: var(--ff-radius);
	cursor: pointer; text-decoration: none;
	transition: background-color .25s var(--ff-ease), color .25s var(--ff-ease), border-color .25s var(--ff-ease);
}
.ff-btn--primary, .wp-block-button__link, input[type="submit"] { background: var(--ff-copper); color: var(--ff-white); }
.ff-btn--primary:hover, .wp-block-button__link:hover, input[type="submit"]:hover { background: var(--ff-ink); color: var(--ff-white); }
.ff-section--ink .ff-btn--primary:hover, .ff-on-dark .ff-btn--primary:hover { background: var(--ff-white); color: var(--ff-ink); }
.ff-btn--dark { background: var(--ff-ink); color: var(--ff-white); }
.ff-btn--dark:hover { background: var(--ff-copper); color: var(--ff-white); }
.ff-btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.ff-btn--ghost:hover { background: var(--ff-ink); border-color: var(--ff-ink); color: var(--ff-white); }
.ff-on-dark .ff-btn--ghost:hover, .ff-section--ink .ff-btn--ghost:hover { background: var(--ff-white); border-color: var(--ff-white); color: var(--ff-ink); }
.ff-btn .ff-icon { width: 18px; height: 18px; transition: transform .25s var(--ff-ease); }
.ff-btn:hover .ff-icon { transform: translateX(3px); }

.ff-link {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 700; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase;
	text-decoration: none; color: var(--ff-ink);
	padding-block: 6px; border-bottom: 1px solid currentColor;
}
.ff-link .ff-icon { width: 16px; height: 16px; transition: transform .25s var(--ff-ease); }
.ff-link:hover { color: var(--ff-copper-deep); }
.ff-link:hover .ff-icon { transform: translateX(3px); }
.ff-section--ink .ff-link { color: var(--ff-on-dark); }

.ff-icon { width: 24px; height: 24px; flex: none; }

/* ==========================================================================
   5. Header
   ========================================================================== */
.ff-topbar {
	background: var(--ff-ink); color: var(--ff-on-dark-2);
	font-size: .8125rem;
}
.ff-topbar .ff-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 42px; }
.ff-topbar__info { display: flex; gap: 28px; flex-wrap: wrap; }
.ff-topbar__info span, .ff-topbar__info a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.ff-topbar__info .ff-icon { width: 15px; height: 15px; color: var(--ff-teak); }
.ff-topbar a:hover { color: var(--ff-white); }
@media (max-width: 900px) { .ff-topbar { display: none; } }

.ff-social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ff-social a {
	display: grid; place-items: center; width: 34px; height: 34px;
	text-decoration: none; color: inherit; border-radius: 50%;
	transition: background .2s, color .2s;
}
.ff-social a:hover { color: var(--ff-white); background: rgba(255,255,255,.08); }
.ff-social svg { width: 16px; height: 16px; }

.ff-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--ff-linen);
	border-bottom: 1px solid transparent;
	transition: box-shadow .3s, border-color .3s, background .3s;
}
.admin-bar .ff-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ff-header { top: 0; } }
.ff-header.is-stuck { border-bottom-color: var(--ff-line); box-shadow: 0 10px 30px rgba(26, 26, 26, .06); }
.ff-header__inner { display: flex; align-items: center; gap: 32px; min-height: var(--ff-header-h); }

.ff-logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.ff-logo img { height: 40px; width: auto; }
.custom-logo-link img { height: 40px; width: auto; }

.ff-nav { margin-left: auto; }
.ff-nav ul { list-style: none; margin: 0; padding: 0; }
.ff-nav > ul { display: flex; align-items: center; gap: 4px; }
.ff-nav li { position: relative; }
.ff-nav a {
	display: block; padding: 10px 14px;
	font-size: .9375rem; font-weight: 600; text-decoration: none; color: var(--ff-ink);
	position: relative;
}
.ff-nav > ul > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
	background: var(--ff-copper); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ff-ease);
}
.ff-nav > ul > li:hover > a::after,
.ff-nav > ul > li.current-menu-item > a::after,
.ff-nav > ul > li.current-menu-ancestor > a::after,
.ff-nav > ul > li.current_page_item > a::after { transform: scaleX(1); }
.ff-nav .menu-item-has-children > a { padding-right: 28px; }
.ff-nav .menu-item-has-children > a::before {
	content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
}
.ff-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 230px;
	background: var(--ff-white); border: 1px solid var(--ff-line);
	padding: 10px 0; box-shadow: 0 20px 40px rgba(26,26,26,.08);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.ff-nav li:hover > .sub-menu, .ff-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ff-nav .sub-menu a { padding: 9px 20px; font-weight: 500; }
.ff-nav .sub-menu a:hover { color: var(--ff-copper-deep); background: var(--ff-linen); }
.ff-nav .sub-menu .sub-menu { top: -11px; left: 100%; }

.ff-header__cta { flex: none; }
.ff-header__cta .ff-btn { min-height: 48px; padding: 12px 22px; }

.ff-burger {
	display: none; margin-left: auto;
	width: 48px; height: 48px; border: 1px solid var(--ff-line); background: transparent; cursor: pointer;
	align-items: center; justify-content: center; flex-direction: column; gap: 6px; padding: 0;
	color: var(--ff-ink);
}
.ff-burger span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .3s; }

@media (max-width: 1100px) {
	.ff-nav, .ff-header__cta { display: none; }
	.ff-burger { display: inline-flex; }
	.ff-header__inner { min-height: 72px; }
	.ff-logo img, .custom-logo-link img { height: 34px; }
}

/* Off-canvas */
.ff-drawer {
	position: fixed; inset: 0; z-index: 200;
	background: var(--ff-ink); color: var(--ff-on-dark);
	display: flex; flex-direction: column;
	padding: 20px var(--ff-gutter) 32px;
	transform: translateX(100%); visibility: hidden;
	transition: transform .45s var(--ff-ease), visibility .45s;
	overflow-y: auto;
}
.ff-drawer.is-open { transform: none; visibility: visible; }
.ff-drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: 32px; }
.ff-drawer__top img { height: 34px; width: auto; }
.ff-drawer__close {
	width: 48px; height: 48px; border: 1px solid var(--ff-line-dark); background: transparent; color: inherit; cursor: pointer;
	display: grid; place-items: center;
}
.ff-drawer__close svg { width: 20px; height: 20px; }
.ff-drawer nav ul { list-style: none; margin: 0; padding: 0; }
.ff-drawer nav a {
	display: block; padding: 14px 0; text-decoration: none;
	font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 600; letter-spacing: -0.02em;
	border-bottom: 1px solid var(--ff-line-dark);
}
.ff-drawer nav a:hover { color: var(--ff-teak); }
.ff-drawer nav .sub-menu a { font-size: 1.125rem; font-weight: 500; padding-left: 18px; color: var(--ff-on-dark-2); }
.ff-drawer__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 14px; font-size: .9375rem; color: var(--ff-on-dark-2); }
.ff-drawer__foot a { text-decoration: none; }
.ff-drawer__foot .ff-btn { width: 100%; }

/* ==========================================================================
   6. Hero slider
   ========================================================================== */
.ff-hero {
	position: relative; overflow: hidden;
	background: var(--ff-ink); color: var(--ff-white);
	min-height: clamp(600px, 88vh, 860px);
	display: grid;
}
.ff-hero__slide {
	grid-area: 1 / 1; position: relative;
	display: flex; align-items: center;
	opacity: 0; visibility: hidden;
	transition: opacity 1s var(--ff-ease), visibility 1s;
}
.ff-hero__slide.is-active { opacity: 1; visibility: visible; }
.ff-hero__media { position: absolute; inset: 0; }
.ff-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.ff-hero__slide.is-active .ff-hero__media img { transform: scale(1); }
.ff-hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(20,19,18,.82) 0%, rgba(20,19,18,.55) 45%, rgba(20,19,18,.15) 100%);
}
/* No photo yet: drawn fallback */
.ff-hero__media--empty { background: var(--ff-ink-2); }
.ff-hero__media--empty::after { display: none; }
.ff-hero__plan { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: min(58vw, 760px); color: rgba(243,237,227,.10); }
.ff-hero__plan svg { width: 100%; height: auto; }
@media (max-width: 860px) { .ff-hero__plan { width: 120vw; right: -40vw; opacity: .7; } }

.ff-hero__content { position: relative; z-index: 2; width: 100%; padding-block: 140px 200px; }
.ff-hero__content .ff-eyebrow { color: var(--ff-teak); }
.ff-hero h1, .ff-hero .ff-hero__title { max-width: 14ch; margin-bottom: 24px; font-size: clamp(2.5rem, 5.4vw, 4.75rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; }
.ff-hero__text { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); max-width: 46ch; color: rgba(255,255,255,.82); margin-bottom: 36px; }
.ff-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ff-hero__actions .ff-btn--ghost { color: var(--ff-white); border-color: rgba(255,255,255,.5); }
.ff-hero__actions .ff-btn--ghost:hover { background: var(--ff-white); color: var(--ff-ink); border-color: var(--ff-white); }

.ff-hero__slide .ff-hero__content > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ff-ease), transform .8s var(--ff-ease); }
.ff-hero__slide.is-active .ff-hero__content > * { opacity: 1; transform: none; }
.ff-hero__slide.is-active .ff-hero__content > *:nth-child(2) { transition-delay: .1s; }
.ff-hero__slide.is-active .ff-hero__content > *:nth-child(3) { transition-delay: .2s; }
.ff-hero__slide.is-active .ff-hero__content > *:nth-child(4) { transition-delay: .3s; }

.ff-hero__controls {
	position: absolute; z-index: 3; right: var(--ff-gutter); bottom: 150px;
	display: flex; align-items: center; gap: 18px; color: var(--ff-white);
}
.ff-hero__count { font-size: .875rem; font-weight: 600; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.ff-hero__count b { font-size: 1.5rem; letter-spacing: 0; }
.ff-hero__bar { width: 120px; height: 1px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.ff-hero__bar i { position: absolute; inset: 0; background: var(--ff-white); transform-origin: left; transform: scaleX(0); }
.ff-arrow {
	width: 52px; height: 52px; display: grid; place-items: center;
	border: 1px solid rgba(255,255,255,.4); background: transparent; color: inherit; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.ff-arrow:hover { background: var(--ff-white); color: var(--ff-ink); border-color: var(--ff-white); }
.ff-arrow svg { width: 18px; height: 18px; }
.ff-arrow--prev svg { transform: rotate(180deg); }
.ff-arrow--dark { border-color: var(--ff-line); color: var(--ff-ink); }
.ff-arrow--dark:hover { background: var(--ff-ink); color: var(--ff-white); border-color: var(--ff-ink); }
@media (max-width: 860px) {
	.ff-hero__media::after { background: linear-gradient(180deg, rgba(20,19,18,.55) 0%, rgba(20,19,18,.78) 100%); }
	.ff-hero__controls { bottom: auto; top: 24px; right: var(--ff-gutter); }
	.ff-hero__bar { display: none; }
	.ff-hero__content { padding-block: 120px 160px; }
	.ff-arrow { width: 44px; height: 44px; }
}

/* ==========================================================================
   7. Process strip (overlaps hero)
   ========================================================================== */
.ff-process { position: relative; z-index: 5; margin-top: -110px; }
.ff-process__list {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	background: var(--ff-white);
	box-shadow: 0 30px 60px rgba(26,26,26,.08);
}
.ff-process__item { padding: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 36px); position: relative; }
.ff-process__item + .ff-process__item { border-left: 1px solid var(--ff-line); }
.ff-process__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.ff-process__num { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; color: var(--ff-copper-deep); }
.ff-process__item .ff-icon { width: 34px; height: 34px; color: var(--ff-ink); }
.ff-process__item h3 { font-size: 1.25rem; margin-bottom: 8px; }
.ff-process__item p { margin: 0; color: var(--ff-stone); font-size: .9375rem; line-height: 1.6; }
.ff-process__item::after {
	content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
	background: var(--ff-copper); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ff-ease);
}
.ff-process__item:hover::after { transform: scaleX(1); }
@media (max-width: 1024px) {
	.ff-process__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ff-process__item:nth-child(3) { border-left: 0; }
	.ff-process__item:nth-child(n+3) { border-top: 1px solid var(--ff-line); }
}
@media (max-width: 560px) {
	.ff-process { margin-top: -80px; }
	.ff-process__list { grid-template-columns: 1fr; }
	.ff-process__item + .ff-process__item { border-left: 0; border-top: 1px solid var(--ff-line); }
}

/* ==========================================================================
   8. About
   ========================================================================== */
.ff-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 110px); align-items: center; }
.ff-about__media { position: relative; padding: 0 12% 14% 0; }
.ff-about__img1 { aspect-ratio: 4 / 5; overflow: hidden; }
.ff-about__img2 {
	position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1;
	border: 10px solid var(--ff-linen); overflow: hidden;
}
.ff-about__media img { width: 100%; height: 100%; object-fit: cover; }
.ff-about__badge {
	position: absolute; left: -1px; bottom: 6%;
	background: var(--ff-copper); color: var(--ff-white);
	padding: 22px 26px; max-width: 220px;
}
.ff-about__badge b { display: block; font-size: 3rem; line-height: 1; letter-spacing: -0.04em; margin-bottom: 6px; }
.ff-about__badge span { font-size: .875rem; line-height: 1.4; display: block; }
.ff-about__copy h2 { max-width: 14ch; }
.ff-checks { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 14px; }
.ff-checks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.ff-checks .ff-icon { width: 22px; height: 22px; color: var(--ff-copper); margin-top: 2px; }
.ff-checks small { display: block; font-weight: 400; color: var(--ff-stone); font-size: .9375rem; }
.ff-about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
@media (max-width: 900px) { .ff-about { grid-template-columns: 1fr; } }

/* Placeholder used when a photo is missing */
.ff-ph {
	width: 100%; height: 100%; min-height: 160px;
	background:
		repeating-linear-gradient(90deg, rgba(26,26,26,.035) 0 1px, transparent 1px 48px),
		repeating-linear-gradient(0deg, rgba(26,26,26,.035) 0 1px, transparent 1px 48px),
		var(--ff-sand);
	display: grid; place-items: center; color: rgba(26,26,26,.18);
}
.ff-ph svg { width: 26%; max-width: 120px; height: auto; }
.ff-section--sand .ff-ph { background-color: #ebe2d3; }

/* ==========================================================================
   9. Service cards
   ========================================================================== */
.ff-service {
	position: relative; display: flex; flex-direction: column;
	background: var(--ff-white); padding: clamp(28px, 3vw, 44px);
	min-height: 100%;
	transition: transform .4s var(--ff-ease), box-shadow .4s var(--ff-ease);
}
.ff-service::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
	background: var(--ff-copper); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ff-ease);
}
.ff-service:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(26,26,26,.08); }
.ff-service:hover::before { transform: scaleX(1); }
.ff-service__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.ff-service__num { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; color: var(--ff-stone); }
.ff-service__icon { width: 64px; height: 64px; border: 1px solid var(--ff-line); display: grid; place-items: center; color: var(--ff-copper); transition: background .3s, color .3s, border-color .3s; }
.ff-service__icon .ff-icon { width: 30px; height: 30px; }
.ff-service:hover .ff-service__icon { background: var(--ff-copper); color: var(--ff-white); border-color: var(--ff-copper); }
.ff-service h3 { font-size: 1.5rem; }
.ff-service h3 a { text-decoration: none; }
.ff-service h3 a::after { content: ""; position: absolute; inset: 0; }
.ff-service p { color: var(--ff-stone); font-size: .9375rem; }
.ff-service ul { list-style: none; padding: 0; margin: 4px 0 28px; display: grid; gap: 8px; border-top: 1px solid var(--ff-line); padding-top: 20px; }
.ff-service li { display: flex; gap: 10px; font-size: .9375rem; }
.ff-service li .ff-icon { width: 18px; height: 18px; color: var(--ff-copper); margin-top: 3px; }
.ff-service__more { margin-top: auto; align-self: flex-start; }
.ff-service__price { font-size: .875rem; font-weight: 600; color: var(--ff-copper-deep); margin: -12px 0 20px; }

/* ==========================================================================
   10. Featured project
   ========================================================================== */
.ff-feature { position: relative; }
.ff-feature__track { display: grid; }
.ff-feature__slide {
	grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	opacity: 0; visibility: hidden; transition: opacity .7s var(--ff-ease), visibility .7s;
}
.ff-feature__slide.is-active { opacity: 1; visibility: visible; }
.ff-feature__media { aspect-ratio: 16 / 11; overflow: hidden; position: relative; }
.ff-feature__slide .ff-feature__media { aspect-ratio: auto; min-height: 460px; }
.ff-feature__media img, .ff-feature__media .ff-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ff-feature__card {
	background: var(--ff-ink); color: var(--ff-on-dark);
	padding: clamp(32px, 4vw, 60px);
	display: flex; flex-direction: column;
}
.ff-feature__card h3 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); letter-spacing: -0.03em; margin-bottom: 16px; }
.ff-feature__card p { color: var(--ff-on-dark-2); }
.ff-specs { list-style: none; padding: 0; margin: 12px 0 32px; }
.ff-specs li {
	display: flex; justify-content: space-between; gap: 16px;
	padding: 12px 0; border-bottom: 1px solid var(--ff-line-dark); font-size: .9375rem;
}
.ff-specs li span:first-child { color: var(--ff-on-dark-2); }
.ff-specs li span:last-child { font-weight: 600; text-align: right; }
.ff-feature__actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ff-feature__nav { display: flex; gap: 8px; color: var(--ff-on-dark); }
@media (max-width: 960px) {
	.ff-feature__slide { grid-template-columns: 1fr; }
	.ff-feature__slide .ff-feature__media { aspect-ratio: 16 / 11; min-height: 0; }
}

/* Light-grounded spec list (single project) */
.ff-specs--light li { border-bottom-color: var(--ff-line); }
.ff-specs--light li span:first-child { color: var(--ff-stone); }

/* ==========================================================================
   11. Stats
   ========================================================================== */
.ff-stats { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.ff-stats h2 { max-width: 13ch; }
.ff-stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ff-line-dark); border-left: 1px solid var(--ff-line-dark); }
.ff-stat { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--ff-line-dark); border-bottom: 1px solid var(--ff-line-dark); }
.ff-stat__num { display: block; font-size: clamp(2.75rem, 5vw, 4.25rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--ff-white); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.ff-stat__num em { font-style: normal; color: var(--ff-copper); }
.ff-stat__label { color: var(--ff-on-dark-2); font-size: .9375rem; line-height: 1.5; }
@media (max-width: 900px) { .ff-stats { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .ff-stats__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   12. Testimonials
   ========================================================================== */
.ff-quotes { position: relative; }
.ff-quotes__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 2);
	gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding-bottom: 4px;
}
.ff-quotes__track::-webkit-scrollbar { display: none; }
@media (max-width: 860px) { .ff-quotes__track { grid-auto-columns: 88%; gap: 16px; } }
.ff-quote {
	scroll-snap-align: start;
	background: var(--ff-white); padding: clamp(28px, 3.5vw, 48px);
	display: flex; flex-direction: column; gap: 24px; margin: 0;
}
.ff-quote__mark { width: 40px; height: 32px; color: var(--ff-copper); }
.ff-quote blockquote { margin: 0; padding: 0; border: 0; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.6; font-weight: 500; }
.ff-quote blockquote p:last-child { margin: 0; }
.ff-quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--ff-line); }
.ff-quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.ff-quote__name { font-weight: 700; display: block; }
.ff-quote__where { color: var(--ff-stone); font-size: .875rem; }
.ff-stars { margin-left: auto; color: var(--ff-copper); letter-spacing: 2px; font-size: .9375rem; }
.ff-quotes__nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 32px; }

/* ==========================================================================
   13. Portfolio grid
   ========================================================================== */
.ff-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.ff-filters button, .ff-filters a {
	display: inline-flex; align-items: center; text-decoration: none;
	min-height: 44px; padding: 10px 20px; cursor: pointer;
	font: inherit; font-size: .875rem; font-weight: 600;
	background: transparent; border: 1px solid var(--ff-line); color: var(--ff-ink);
	transition: background .2s, color .2s, border-color .2s;
}
.ff-filters button:hover, .ff-filters a:hover { border-color: var(--ff-ink); color: var(--ff-ink); }
.ff-filters button[aria-pressed="true"], .ff-filters a[aria-current="page"] { background: var(--ff-ink); border-color: var(--ff-ink); color: var(--ff-white); }

.ff-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.ff-works--home .ff-work:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 960px) { .ff-works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ff-works { grid-template-columns: 1fr; } .ff-works--home .ff-work:first-child { grid-column: auto; grid-row: auto; } }

.ff-work { position: relative; overflow: hidden; background: var(--ff-sand); min-height: 300px; }
.ff-work[hidden] { display: none; }
.ff-work a { position: absolute; inset: 0; display: block; color: var(--ff-white); text-decoration: none; }
.ff-work img, .ff-work .ff-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ff-ease); }
.ff-work:hover img { transform: scale(1.05); }
.ff-work__info {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 28px;
	background: linear-gradient(0deg, rgba(20,19,18,.82), rgba(20,19,18,0));
	display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.ff-work__tag { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ff-teak); margin-bottom: 6px; }
.ff-work__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; display: block; }
.ff-work__where { font-size: .875rem; opacity: .8; }
.ff-work__go {
	width: 48px; height: 48px; flex: none; display: grid; place-items: center;
	background: var(--ff-copper); color: var(--ff-white);
	transform: translateY(12px); opacity: 0; transition: transform .4s var(--ff-ease), opacity .4s;
}
.ff-work__go .ff-icon { width: 20px; height: 20px; }
.ff-work:hover .ff-work__go, .ff-work a:focus-visible .ff-work__go { transform: none; opacity: 1; }
.ff-work .ff-ph + .ff-work__info { background: none; color: var(--ff-ink); }
.ff-work .ff-ph + .ff-work__info .ff-work__tag { color: var(--ff-copper-deep); }
.ff-works__foot { margin-top: 48px; text-align: center; }

/* ==========================================================================
   14. Booking section
   ========================================================================== */
.ff-book { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.ff-book__intro {
	background: var(--ff-ink); color: var(--ff-on-dark);
	padding: clamp(40px, 5vw, 72px);
	display: flex; flex-direction: column;
}
.ff-book__intro h2 { font-size: clamp(2rem, 3.4vw, 3rem); max-width: 12ch; }
.ff-book__intro p { color: var(--ff-on-dark-2); }
.ff-steps { list-style: none; padding: 0; margin: 28px 0 40px; counter-reset: ffstep; display: grid; gap: 22px; }
.ff-steps li { counter-increment: ffstep; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.ff-steps li::before {
	content: counter(ffstep, decimal-leading-zero);
	width: 44px; height: 44px; display: grid; place-items: center;
	border: 1px solid var(--ff-line-dark); color: var(--ff-teak); font-weight: 700; font-size: .875rem;
}
.ff-steps b { display: block; color: var(--ff-white); font-size: 1.0625rem; }
.ff-steps span { color: var(--ff-on-dark-2); font-size: .9375rem; }
.ff-book__contact { margin-top: auto; display: grid; gap: 12px; padding-top: 28px; border-top: 1px solid var(--ff-line-dark); }
.ff-book__contact a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; color: var(--ff-white); }
.ff-book__contact .ff-icon { color: var(--ff-teak); width: 20px; height: 20px; }
.ff-book__form { background: var(--ff-white); padding: clamp(32px, 4.5vw, 64px); }
.ff-book__form h3 { font-size: 1.5rem; margin-bottom: 6px; }
.ff-book__form > p { color: var(--ff-stone); margin-bottom: 28px; }
@media (max-width: 960px) { .ff-book { grid-template-columns: 1fr; } }

/* ==========================================================================
   15. Post cards
   ========================================================================== */
.ff-post { display: flex; flex-direction: column; background: var(--ff-white); height: 100%; position: relative; }
.ff-post__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ff-sand); }
.ff-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ff-ease); }
.ff-post:hover .ff-post__media img { transform: scale(1.04); }
.ff-post__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.ff-post__meta { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ff-stone); margin-bottom: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.ff-post__meta a { text-decoration: none; color: var(--ff-copper-deep); }
.ff-post h3 { font-size: 1.3rem; }
.ff-post h3 a { text-decoration: none; }
.ff-post h3 a::after { content: ""; position: absolute; inset: 0; }
.ff-post p { color: var(--ff-stone); font-size: .9375rem; }
.ff-post .ff-link { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }

/* ==========================================================================
   16. Inner page header
   ========================================================================== */
.ff-pagehead { background: var(--ff-sand); padding-block: clamp(56px, 8vw, 110px) clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.ff-pagehead h1 { font-size: clamp(2.25rem, 4.6vw, 4rem); max-width: 18ch; margin-bottom: 16px; }
.ff-pagehead .ff-lead { margin: 0; }
.ff-crumbs { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ff-stone); margin-bottom: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.ff-crumbs a { text-decoration: none; }
.ff-crumbs a:hover { color: var(--ff-copper-deep); }
.ff-crumbs span[aria-hidden] { opacity: .5; }
.ff-pagehead__mark { position: absolute; right: -40px; bottom: -60px; width: 320px; color: rgba(26,26,26,.05); pointer-events: none; }
@media (max-width: 700px) { .ff-pagehead__mark { width: 200px; } }

/* ==========================================================================
   17. Content (pages, posts)
   ========================================================================== */
.ff-content { padding-block: clamp(56px, 7vw, 100px); }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1100px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content img { height: auto; }
.entry-content a { color: var(--ff-copper-deep); }
.entry-content .ff-booking, .entry-content .ff-grid { max-width: 1100px; }
.entry-content .ff-booking { background: var(--ff-white); padding: clamp(24px, 4vw, 48px); }
.wp-block-image figcaption, .wp-caption-text { font-size: .875rem; color: var(--ff-stone); }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }

.ff-single-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .875rem; color: var(--ff-stone); font-weight: 600; }
.ff-single-thumb { margin-top: -1px; }
.ff-single-thumb img { width: 100%; max-height: 640px; object-fit: cover; }
.ff-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--ff-line); padding-top: 32px; margin-top: 64px; }
.ff-post-nav a { text-decoration: none; font-weight: 700; }
.ff-post-nav small { display: block; color: var(--ff-stone); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; margin-bottom: 6px; }
.ff-post-nav div:last-child { text-align: right; }

/* Single project */
.ff-project { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.ff-project__aside { position: sticky; top: calc(var(--ff-header-h) + 32px); background: var(--ff-white); padding: 36px; }
.ff-project__aside .ff-btn { width: 100%; margin-top: 8px; }
.ff-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.ff-gallery-grid a { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.ff-gallery-grid a:first-child,
.ff-gallery-grid a:last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 16 / 9; }
.ff-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ff-ease); }
.ff-gallery-grid a:hover img { transform: scale(1.04); }
@media (max-width: 960px) { .ff-project { grid-template-columns: 1fr; } .ff-project__aside { position: static; } }

/* Lightbox */
.ff-lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15,14,13,.94); display: none; align-items: center; justify-content: center; padding: 24px; }
.ff-lightbox.is-open { display: flex; }
.ff-lightbox img { max-height: 88vh; width: auto; }
.ff-lightbox button { position: absolute; top: 20px; right: 20px; }

/* Pagination */
.ff-pagination { margin-top: 64px; display: flex; justify-content: center; }
.ff-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ff-pagination .page-numbers {
	min-width: 48px; height: 48px; display: grid; place-items: center; padding: 0 14px;
	border: 1px solid var(--ff-line); text-decoration: none; font-weight: 600;
}
.ff-pagination .page-numbers.current, .ff-pagination .page-numbers:hover { background: var(--ff-ink); color: var(--ff-white); border-color: var(--ff-ink); }

/* Forms (generic) */
input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="tel"], textarea, select {
	font: inherit; color: var(--ff-ink); background: var(--ff-white);
	border: 1px solid var(--ff-line); border-radius: 0; padding: 12px 14px; min-height: 48px; max-width: 100%;
}
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; }

/* Comments */
.comments-area { max-width: 760px; margin: 64px auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--ff-line); }
.comment-form textarea { width: 100%; }

/* Admin-only hint for empty sections */
.ff-admin-hint {
	border: 1px dashed var(--ff-teak); padding: 24px 28px; background: rgba(217,179,140,.12);
	font-size: .9375rem; color: var(--ff-ink);
}
.ff-admin-hint a { color: var(--ff-copper-deep); font-weight: 700; }
.ff-section--ink .ff-admin-hint { color: var(--ff-on-dark); }

/* 404 */
.ff-404 { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.ff-404 .ff-404__num { font-size: clamp(6rem, 18vw, 12rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--ff-copper); }
.ff-404 .ff-lead { margin-inline: auto; }

/* ==========================================================================
   18. Footer
   ========================================================================== */
.ff-footer { background: var(--ff-ink); color: var(--ff-on-dark-2); font-size: .9375rem; }
.ff-footer a { text-decoration: none; }
.ff-footer a:hover { color: var(--ff-white); }
.ff-footer__cta { border-bottom: 1px solid var(--ff-line-dark); padding-block: clamp(56px, 7vw, 96px); }
.ff-footer__cta .ff-wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ff-footer__cta h2 { color: var(--ff-white); margin: 0; font-size: clamp(2rem, 4.4vw, 3.75rem); max-width: 16ch; }
.ff-footer__cta h2 em { font-style: normal; color: var(--ff-copper); }
.ff-footer__main { padding-block: clamp(56px, 6vw, 88px); }
.ff-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
@media (max-width: 1024px) { .ff-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ff-footer__grid { grid-template-columns: 1fr; gap: 40px; } }
.ff-footer__brand img { height: 40px; width: auto; margin-bottom: 24px; }
.ff-footer__brand p { max-width: 34ch; }
.ff-footer__brand .ff-social { display: flex; gap: 8px; margin-top: 20px; color: var(--ff-on-dark); }
.ff-footer__brand .ff-social a { border: 1px solid var(--ff-line-dark); border-radius: 50%; width: 42px; height: 42px; }
.ff-footer h2.ff-footer__title { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ff-white); margin: 6px 0 22px; }
.ff-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ff-footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.ff-footer__contact .ff-icon { width: 18px; height: 18px; color: var(--ff-teak); margin-top: 4px; }
.ff-footer__bottom { border-top: 1px solid var(--ff-line-dark); }
.ff-footer__bottom .ff-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 76px; font-size: .875rem; }
.ff-footer__bottom ul { display: flex; gap: 24px; }

.ff-totop {
	position: fixed; left: 20px; bottom: 20px; z-index: 80;
	width: 48px; height: 48px; display: grid; place-items: center;
	background: var(--ff-white); color: var(--ff-ink); border: 1px solid var(--ff-line); cursor: pointer;
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s;
}
.ff-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.ff-totop svg { width: 18px; height: 18px; transform: rotate(-90deg); }

/* ==========================================================================
   19. Motion
   ========================================================================== */
.ff-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ff-ease), transform .9s var(--ff-ease); }
.ff-reveal.is-in { opacity: 1; transform: none; }
.no-js .ff-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.ff-reveal { opacity: 1; transform: none; }
	.ff-hero__media img { transform: none !important; }
}
