/*
Theme Name: FTER
Theme URI: https://fter.co
Author: FTer Intention
Description: Business Growth & Digital Transformation Consulting theme for FTER. ใช้สีและฟอนต์ตาม Brand CI (Returnflow Green, Returnflow Navy, Prompt) พร้อมริบบิ้นโค้งเอกลักษณ์ของแบรนด์ แอนิเมชันระหว่าง section บริการ ลูกค้า พันธมิตร และแบบฟอร์มติดต่อ ปรับแต่งเนื้อหาได้จาก Customizer
Version: 3.0.0
Requires at least: 6.0
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: fter
*/

/* Brand CI: Returnflow Green #39A67F, Returnflow Navy #0D2538, Prompt. Neutral surfaces only (no rose). */
:root {
	--fter-green: #39a67f;
	--fter-green-dark: #2e8a69;
	--fter-green-light: #6cc3a0;
	--fter-navy: #0d2538;
	--fter-navy-2: #163650;
	--fter-mint: #e8f4ee;
	--fter-soft: #f4f7f6;
	--fter-text: #3d4f5e;
	--fter-muted: #7a8994;
	--fter-line: #e6eaed;
	--fter-dark: #07120f;
	--fter-glow: #3ff0b8;
	--fter-radius: 24px;
	--fter-container: 1200px;
	--fter-header: 80px;
	--fter-font: "Prompt", system-ui, sans-serif;
	--fter-ease: cubic-bezier(.2, .8, .2, 1);

	/* Default ribbon colours (overridden per section). */
	--rb1: #6cc3a0;
	--rb2: #39a67f;
	--rb3: #2e8a69;
	--rb4: #6cc3a0;
	--rb5: #0d2538;
	--rb-shadow: #0d2538;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--fter-font);
	font-size: 16px;
	font-weight: 300;
	color: var(--fter-text);
	background: #fff;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fter-green-dark); text-decoration: none; }
a:hover { color: var(--fter-green); }
h1, h2, h3, h4 { color: var(--fter-navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 500; letter-spacing: -.01em; }
strong { font-weight: 500; }

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

.container { width: 100%; max-width: var(--fter-container); margin: 0 auto; padding: 0 28px; }
.text-green { color: var(--fter-green); }

/* ---------- Buttons & links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
	font: 400 15px/1 var(--fter-font); cursor: pointer;
	transition: background .25s, color .25s, border-color .25s, transform .25s var(--fter-ease), box-shadow .25s;
}
.btn svg { transition: transform .25s var(--fter-ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--fter-green); color: #fff; }
.btn-primary:hover { background: var(--fter-green-dark); color: #fff; transform: translateY(-2px); }
.btn-navy { background: var(--fter-navy); color: #fff; }
.btn-navy:hover { background: var(--fter-navy-2); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(13, 37, 56, .7); }
.btn-outline { background: transparent; color: var(--fter-navy); border-color: rgba(13, 37, 56, .35); }
.btn-outline:hover { background: var(--fter-navy); border-color: var(--fter-navy); color: #fff; }
.btn-light { background: #fff; color: var(--fter-navy); }
.btn-light:hover { background: var(--fter-mint); color: var(--fter-navy); }
.btn-sm { padding: 12px 20px; font-size: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; color: var(--fter-navy); }
.link-arrow svg { transition: transform .25s var(--fter-ease); }
.link-arrow:hover { color: var(--fter-green-dark); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Plain numbered section label: "01 —— ABOUT US". */
.section-label {
	display: flex; align-items: center; gap: 14px; margin: 0 0 28px;
	font-size: 13px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--fter-muted);
}
.section-label span { color: var(--fter-green); font-weight: 500; }
.section-label::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .5; }
.section-label span::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 14px; vertical-align: middle; background: currentColor; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50; height: var(--fter-header);
	background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid transparent;
	transition: background .35s, border-color .35s;
}
.site-header.is-scrolled { border-bottom-color: var(--fter-line); }
.admin-bar .site-header { top: 32px; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.site-logo { display: inline-flex; }
.site-logo img, .custom-logo { height: 34px; width: auto; transition: filter .35s; }
.site-logo .logo-white { display: none; }

.main-nav ul { list-style: none; display: flex; gap: 36px; margin: 0; padding: 0; }
.main-nav a { position: relative; color: var(--fter-navy); font-size: 15px; font-weight: 400; }
.main-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: right; transition: transform .4s var(--fter-ease);
}
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--fter-navy); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Transparent over the green hero; solid white once the page scrolls. */
.site-header.is-overlay { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; }
.site-header.is-overlay:not(.is-scrolled) .logo-color,
.footer-brand .logo-color { display: none; }
.site-header.is-overlay:not(.is-scrolled) .logo-white,
.footer-brand .logo-white { display: block; }
.site-header.is-overlay:not(.is-scrolled) .custom-logo { filter: brightness(0) invert(1); }
.site-header.is-overlay:not(.is-scrolled) .main-nav a,
.site-header.is-overlay:not(.is-scrolled) .nav-toggle { color: #fff; }
.site-header.is-overlay:not(.is-scrolled) .header-cta { background: #fff; color: var(--fter-navy); }
.site-header.is-overlay.is-scrolled { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.6) blur(14px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero--dark {
	--rb1: #17b98f; --rb2: #12d8b6; --rb3: #0d8f79; --rb4: #1bbccf; --rb5: #11637a; --rb-shadow: #032a2a;
	display: flex; align-items: flex-end;
	min-height: clamp(660px, 100vh, 940px);
	padding: calc(var(--fter-header) + 80px) 0 96px;
	background-color: var(--fter-dark);
	background-image:
		radial-gradient(60% 55% at 50% 110%, rgba(31, 214, 160, .5), transparent 70%),
		radial-gradient(45% 45% at 90% 10%, rgba(18, 196, 139, .22), transparent 70%),
		linear-gradient(180deg, #06100e 0%, #08201b 100%);
	background-size: cover; background-position: center;
}
.hero--dark::after {
	/* Scrim for the text + fine film grain. */
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background:
		linear-gradient(0deg, rgba(5, 16, 13, .9) 0%, rgba(5, 16, 13, .35) 45%, rgba(5, 16, 13, 0) 75%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .32; will-change: translate; }
.hero-art__piece {
	stroke-dasharray: 1; stroke-dashoffset: 1;
	animation: fter-art-draw 1.3s cubic-bezier(.6, 0, .3, 1) forwards;
	animation-delay: calc(var(--i) * .85s + .2s);
}
.hero-art__shadow { opacity: 0; animation: fter-fade-in .6s ease forwards; animation-delay: calc(var(--i) * .85s + .9s); }
@keyframes fter-art-draw { to { stroke-dashoffset: 0; } }
@keyframes fter-fade-in { to { opacity: 1; } }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end; }
.hero-title { margin: 0; color: #fff; font-size: clamp(44px, 6vw, 92px); font-weight: 500; line-height: 1.02; letter-spacing: -.03em; }
.hero-side p { margin: 0 0 28px; font-size: 17px; font-weight: 300; line-height: 1.8; color: var(--fter-navy); }
.hero--dark .hero-side p { color: rgba(255, 255, 255, .75); }
.hero--dark .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero--dark .btn-outline:hover { background: #fff; border-color: #fff; color: var(--fter-navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero--light { padding: 140px 0 110px; }
.hero--light .hero-title { color: var(--fter-navy); }

.scroll-cue {
	position: absolute; z-index: 1; left: 50%; bottom: 24px; translate: -50% 0;
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.scroll-cue i { position: relative; width: 1px; height: 40px; overflow: hidden; background: rgba(255, 255, 255, .35); }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: fter-cue 1.8s var(--fter-ease) infinite; }
@keyframes fter-cue { to { top: 100%; } }

/* ---------- Split-line headings ---------- */
.ln { display: block; overflow: hidden; padding: .16em 0 .08em; margin: -.16em 0 -.08em; }
.split-words .ln { display: inline-block; vertical-align: top; }
.ln-i { display: inline-block; transform: translateY(115%); transition: transform 1s var(--fter-ease); transition-delay: calc(var(--li) * .07s); }
[data-split].is-visible .ln-i { transform: none; }

/* ---------- Sections & bands ---------- */
.section { position: relative; padding: 130px 0; }
#main > section { overflow-x: clip; }
.band { position: relative; overflow: hidden; }
.band--soft { background: var(--fter-soft); }
.band--dark {
	--rb1: #17b98f; --rb2: #12d8b6; --rb3: #0d8f79; --rb4: #1bbccf; --rb5: #11637a; --rb-shadow: #032a2a;
	color: rgba(255, 255, 255, .7);
	background-color: var(--fter-dark);
	background-image:
		radial-gradient(50% 60% at 0% 100%, rgba(18, 196, 139, .25), transparent 70%),
		radial-gradient(40% 50% at 100% 0%, rgba(31, 214, 160, .18), transparent 70%);
}
.band--dark h2 { color: #fff; }
.band--dark .text-green { color: #3fe6bd; }
.band--dark .section-label { color: rgba(255, 255, 255, .55); }
.band--dark .section-label span { color: var(--fter-glow); }
.band--dark .ribbon--band { opacity: .28; }
.display { font-size: clamp(42px, 5.4vw, 80px); line-height: 1.05; letter-spacing: -.03em; margin: 0; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: end; }
.lead { margin: 0 0 28px; font-size: 18px; line-height: 1.9; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 100px; border-top: 1px solid var(--fter-line); }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 36px 32px 0; border-left: 1px solid var(--fter-line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat strong { font-size: clamp(34px, 3.6vw, 52px); font-weight: 400; line-height: 1.1; letter-spacing: -.03em; color: var(--fter-green); white-space: nowrap; }
.stat span { font-size: 16px; font-weight: 500; color: var(--fter-navy); }
.stat small { font-size: 14px; line-height: 1.7; color: var(--fter-muted); }
.stat.reveal { transition-delay: calc(var(--d, 0) * .08s); }

/* ---------- Services (expanding numbered cards) ---------- */
.services-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.services-head h2 { margin: 0; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.1; }
.services-intro { margin: 0; font-size: 17px; line-height: 1.85; color: var(--fter-text); }
.svc-row { display: flex; gap: 16px; height: 480px; }
.svc {
	position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer;
	display: flex; flex-direction: column; padding: 24px; border-radius: var(--fter-radius); background: #fff;
	transition: flex-grow .8s var(--fter-ease), box-shadow .5s, opacity .7s ease, translate .7s var(--fter-ease);
	outline: none;
}
.svc:focus-visible { box-shadow: 0 0 0 3px var(--fter-green); }
.svc.is-active { flex-grow: 2.6; box-shadow: 0 30px 60px -34px rgba(13, 37, 56, .35); }
.svc-num { font-size: clamp(48px, 4.6vw, 68px); font-weight: 300; line-height: 1; letter-spacing: -.04em; color: rgba(13, 37, 56, .16); transition: opacity .4s, max-height .6s var(--fter-ease); max-height: 90px; }
.svc.is-active .svc-num { opacity: 0; max-height: 0; }
.svc-art img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 14px; object-fit: contain; mix-blend-mode: multiply; transition: transform .8s var(--fter-ease); }
.svc.is-active .svc-art img { transform: scale(1.04); }
.svc-art {
	--rb1: #6cc3a0; --rb2: #39a67f; --rb3: #1f7a5a; --rb4: #6cc3a0; --rb5: #0d2538; --rb-shadow: #0d2538;
	position: relative; height: 0; overflow: hidden; border-radius: 16px;
	background: radial-gradient(80% 90% at 30% 20%, #ffffff, var(--fter-soft) 70%);
	transition: height .8s var(--fter-ease);
}
.svc.is-active .svc-art { height: 220px; }
.svc-body { margin-top: auto; padding-top: 20px; }
.svc-icon {
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	background: var(--fter-mint); color: var(--fter-green-dark); transition: background .4s, color .4s;
}
.svc-icon svg { width: 20px; height: 20px; }
.svc-icon img { width: 26px; height: 26px; object-fit: contain; }
.svc.is-active .svc-icon { background: var(--fter-green); color: #fff; }
.svc h3 { margin: 16px 0 0; font-size: 21px; font-weight: 500; line-height: 1.3; }
.svc-more { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .7s var(--fter-ease), opacity .4s; }
.svc.is-active .svc-more { max-height: 220px; opacity: 1; transition-delay: .15s; }
.svc-more p { margin: 10px 0 16px; font-size: 15px; line-height: 1.75; }
.svc-more .link-arrow { font-size: 14px; }

/* Staggered entrance (kept separate from other transforms). */
.reveal-card { opacity: 0; translate: 0 40px; transition-delay: 0s, 0s, calc(var(--d, 0) * .1s), calc(var(--d, 0) * .1s); }
.reveal-card.is-visible { opacity: 1; translate: 0 0; }

/* ---------- Clients (dark band) ---------- */
.clients .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: center; }
.clients-head h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.12; margin-bottom: 22px; }
.clients-head p { margin: 0; font-size: 16px; line-height: 1.85; color: rgba(255, 255, 255, .62); }
.client-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.client-card {
	display: flex; flex-direction: column; min-height: 320px; padding: 26px;
	border-radius: var(--fter-radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
	backdrop-filter: blur(6px);
	transition: border-color .35s, background .35s, transform .5s var(--fter-ease), opacity .7s ease, translate .7s var(--fter-ease);
}
.client-card:hover, .client-card.is-featured { border-color: rgba(63, 240, 184, .45); background: rgba(57, 166, 127, .14); }
.client-card:hover { transform: translateY(-8px); }
.client-logo { width: 80px; height: 80px; margin-bottom: 32px; padding: 8px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; }
.client-logo img { max-height: 56px; width: auto; }
.client-card p { flex: 1; margin: 0 0 20px; font-size: 15px; line-height: 1.75; color: rgba(255, 255, 255, .68); }
.client-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--fter-glow); }
.client-link:hover { color: #fff; }

/* ---------- Steps (dark panel + numbered list) ---------- */
.steps-wrap {
	display: grid; grid-template-columns: 1fr 1.35fr; overflow: hidden;
	border-radius: 28px; border: 1px solid var(--fter-line); background: #fff;
}
.steps-panel {
	--rb1: #17b98f; --rb2: #12d8b6; --rb3: #0d8f79; --rb4: #1bbccf; --rb5: #11637a; --rb-shadow: #032a2a;
	position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 540px; padding: 48px;
	background:
		radial-gradient(70% 60% at 100% 0%, rgba(31, 214, 160, .35), transparent 65%),
		linear-gradient(165deg, #0d3d33 0%, var(--fter-dark) 75%);
}
.steps-panel > :not(.ribbon) { position: relative; z-index: 1; }
.steps-panel .section-label { color: rgba(255, 255, 255, .55); }
.steps-panel .section-label span { color: var(--fter-glow); }
.steps-panel h2 { color: #fff; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.15; margin: 0; }
.steps-panel .text-green { color: #3fe6bd; }
.ribbon--steps { --rw: 380px; right: -70px; top: -50px; opacity: .28; }
.step-list { list-style: none; margin: 0; padding: 16px 48px; display: flex; flex-direction: column; justify-content: center; }
.step-list li {
	display: flex; justify-content: space-between; align-items: center; gap: 24px;
	padding: 26px 0; border-bottom: 1px solid var(--fter-line);
}
.step-list li:last-child { border-bottom: 0; }
.step-body small { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fter-muted); }
.step-body strong { display: block; font-size: 21px; font-weight: 500; color: var(--fter-navy); }
.step-body p { margin: 4px 0 0; font-size: 14px; line-height: 1.7; color: var(--fter-muted); }
.step-num { flex: none; font-size: clamp(38px, 3.6vw, 52px); font-weight: 300; letter-spacing: -.04em; color: #c9d3d0; transition: color .3s, transform .4s var(--fter-ease); }
.step-list li:hover .step-num { color: var(--fter-green); transform: translateX(-6px); }

/* ---------- Partners (marquee) ---------- */
.partners { padding-bottom: 110px; }
.partners-head { text-align: center; }
.partners-head .section-label { justify-content: center; }
.partners-head h2 { font-size: clamp(32px, 3.8vw, 52px); margin-bottom: 14px; }
.partners-head p { max-width: 620px; margin: 0 auto 56px; font-size: 17px; line-height: 1.85; }
.marquee { overflow: hidden; border-top: 1px solid var(--fter-line); border-bottom: 1px solid var(--fter-line); padding: 36px 0; }
.marquee-track { display: flex; width: max-content; animation: fter-marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; gap: 96px; padding-right: 96px; }
.marquee-item img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.marquee-item:hover img { filter: none; opacity: 1; }
@keyframes fter-marquee { to { transform: translateX(-50%); } }

/* ---------- Contact ---------- */
.contact .container { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: start; }
.contact h2 { font-size: clamp(38px, 4.6vw, 64px); margin: 0 0 20px; }
.contact-lead { max-width: 420px; margin: 0 0 40px; font-size: 17px; line-height: 1.85; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--fter-line); color: var(--fter-navy); }
.contact-item svg { width: 44px; height: 44px; flex: none; padding: 11px; border-radius: 50%; background: var(--fter-mint); color: var(--fter-green-dark); }
.contact-item .label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fter-muted); }
.contact-item .value { display: block; font-size: 18px; color: var(--fter-navy); }
.contact-item .note { font-size: 14px; color: var(--fter-muted); }
.contact-form { padding: 44px; border-radius: 28px; background: var(--fter-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 400; color: var(--fter-navy); }
.form-field input,
.form-field textarea {
	width: 100%; padding: 15px 18px; border-radius: 16px; border: 1px solid var(--fter-line); background: #fff;
	font: 300 16px var(--fter-font); color: var(--fter-navy); transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--fter-green); box-shadow: 0 0 0 4px rgba(57, 166, 127, .18); }
.form-hp { position: absolute; left: -9999px; }
.form-notice { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; }
.form-notice.success { background: #e3f4ec; color: #1f6f53; }
.form-notice.error { background: #fdecec; color: #a12626; }

.social-links { list-style: none; display: flex; gap: 10px; margin: 28px 0 0; padding: 0; }
.social-links a {
	width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
	background: var(--fter-mint); color: var(--fter-green-dark); transition: background .25s, color .25s, transform .25s var(--fter-ease);
}
.social-links a:hover { background: var(--fter-green); color: #fff; transform: translateY(-2px); }
.social-links svg { width: 20px; height: 20px; }
.site-footer .social-links { margin-top: 18px; }
.site-footer .social-links a { background: rgba(255, 255, 255, .08); color: #fff; }
.site-footer .social-links a:hover { background: var(--fter-green); }

/* ---------- Footer (dark) ---------- */
.site-footer { padding: 120px 0 0; color: rgba(255, 255, 255, .62); }
.site-footer .container { position: relative; z-index: 1; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 64px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-top h2 { max-width: 680px; margin: 0; color: #fff; font-size: clamp(40px, 5.6vw, 80px); line-height: 1.05; letter-spacing: -.03em; }
.site-footer .footer-top .btn-light { background: #fff; color: var(--fter-navy); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding: 56px 0; }
.footer-brand .custom-logo { filter: brightness(0) invert(1); }
.footer-brand p { max-width: 340px; margin: 18px 0 0; font-size: 15px; line-height: 1.8; }
.footer-col h3 { margin-bottom: 16px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .copy { margin: 0; font-size: 13px; }
.footer-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; font-size: 13px; }
.footer-wordmark {
	position: relative; z-index: 1; margin: 8px 0 -0.16em; text-align: center; user-select: none;
	font-size: clamp(120px, 26vw, 400px); font-weight: 600; line-height: .9; letter-spacing: -.04em;
	background: linear-gradient(180deg, rgba(63, 240, 184, .85) 0%, rgba(57, 166, 127, .25) 55%, rgba(57, 166, 127, 0) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Brand ribbons ---------- */
/* Drawn by main.js; the ribbon runs off the edges of its section/card (no fades). */
.ribbon { position: absolute; z-index: 0; pointer-events: none; width: var(--rw, 280px); aspect-ratio: 1; }
.ribbon svg { display: block; width: 100%; height: 100%; }
.ribbon .rb-piece { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ribbon .rb-shadow { opacity: 0; }
.ribbon.is-visible .rb-piece { animation: fter-art-draw 1.1s cubic-bezier(.6, 0, .3, 1) forwards; animation-delay: calc(var(--i) * .6s); }
.ribbon.is-visible .rb-shadow { animation: fter-fade-in .6s ease forwards; animation-delay: calc(var(--i) * .6s + .5s); }
.ribbon--band, .ribbon--svc { inset: 0; width: auto; aspect-ratio: auto; }
.ribbon--hero { --rw: clamp(240px, 26vw, 380px); right: 0; top: 50%; margin-top: calc(var(--rw) * -.5); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s var(--fter-ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Blog / generic pages ---------- */
.page-header { padding: 80px 0 32px; text-align: center; }
.page-header h1 { font-size: clamp(32px, 4.4vw, 56px); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding-bottom: 96px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--fter-radius); background: var(--fter-soft); transition: transform .4s var(--fter-ease); }
.post-card:hover { transform: translateY(-4px); }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card .post-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.post-card h2 { font-size: 21px; }
.post-card h2 a { color: var(--fter-navy); }
.post-card .meta { margin-bottom: 8px; font-size: 13px; color: var(--fter-muted); }
.post-card .post-body p { flex: 1; }
.entry { max-width: 760px; margin: 0 auto; padding-bottom: 96px; font-size: 17px; line-height: 1.9; }
.entry .featured { margin-bottom: 32px; border-radius: var(--fter-radius); }
.entry .meta { margin: -8px 0 32px; text-align: center; color: var(--fter-muted); }
.pagination { display: flex; justify-content: center; gap: 8px; padding-bottom: 96px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--fter-line); color: var(--fter-navy); }
.pagination .current { background: var(--fter-green); border-color: var(--fter-green); color: #fff; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal, .reveal-card { opacity: 1; transform: none; translate: none; transition: none; }
	.ln-i { transform: none; transition: none; }
	.hero-art__piece, .ribbon .rb-piece { stroke-dashoffset: 0; animation: none !important; }
	.hero-art__shadow, .ribbon .rb-shadow { opacity: 1; animation: none !important; }
	.marquee-track, .scroll-cue i::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(3) { padding-left: 0; border-left: 0; }
	.clients .container { grid-template-columns: 1fr; }
	.steps-wrap { grid-template-columns: 1fr; }
	.steps-panel { min-height: 340px; }
}

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.main-nav {
		position: absolute; top: var(--fter-header); left: 12px; right: 12px; display: none;
		padding: 8px 20px; border-radius: 20px; background: #fff; box-shadow: 0 20px 40px -20px rgba(13, 37, 56, .35);
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav a, .site-header.is-overlay:not(.is-scrolled) .main-nav a { display: block; padding: 12px 0; color: var(--fter-navy); }
	.main-nav a::after { display: none; }
	.header-cta { display: none; }

	.hero-inner, .split, .contact .container, .services-head { grid-template-columns: 1fr; gap: 28px; }
	.section { padding: 96px 0; }
	.svc-row { flex-direction: column; height: auto; }
	.svc { flex: none; }
	.svc-num { max-height: 90px; }
	.svc.is-active .svc-art { height: 170px; }
	.client-list { grid-template-columns: 1fr; }
	.client-card { min-height: 0; }
	.step-list { padding: 8px 28px; }
	.steps-panel { padding: 36px 28px; }
	.footer-top { flex-direction: column; align-items: flex-start; }
	.footer-cols { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
	.scroll-cue { display: none; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
	.container { padding: 0 20px; }
	.stats { grid-template-columns: 1fr; }
	.stat { padding: 28px 0 0; border-left: 0; }
	.hero-actions .btn { flex: 1 1 100%; }
	.form-row { grid-template-columns: 1fr; gap: 0; }
	.contact-form { padding: 26px; }
	.marquee-set { gap: 56px; padding-right: 56px; }
}
