/* ==========================================================================
   FE Portfolio — design system
   Works with Blocksy (free) + Elementor (free).
   Apply the helper classes below via Elementor → Advanced → CSS Classes.
   ========================================================================== */

:root {
	--fe-bg: #FFFFFF;
	--fe-bg-2: #F5F5F7;
	--fe-text: #1D1D1F;
	--fe-text-2: #6E6E73;
	--fe-accent: #0071E3;
	--fe-accent-hover: #0062C4;
	--fe-border: #D2D2D7;
	--fe-dark: #111111;
	--fe-success: #1D7A3A;
	--fe-error: #C4262E;

	--fe-font-display: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
	--fe-font-body: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;

	--fe-radius-sm: 12px;
	--fe-radius: 20px;
	--fe-radius-lg: 28px;
	--fe-pill: 980px;

	--fe-max: 1200px;
	--fe-gutter: clamp(16px, 4vw, 40px);
	--fe-section-y: clamp(80px, 11vw, 160px);
	--fe-ease: cubic-bezier(.22, .61, .36, 1);
	--fe-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
}

/* --------------------------------------------------------------------------
   Base (scoped to the site via body.fe-site)
   ----------------------------------------------------------------------- */

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body.fe-site {
	background: var(--fe-bg);
	color: var(--fe-text);
	font-family: var(--fe-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body.fe-site h1, body.fe-site h2, body.fe-site h3, body.fe-site h4,
body.fe-site .elementor-heading-title {
	font-family: var(--fe-font-display);
	color: inherit;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

body.fe-site a { color: var(--fe-accent); text-decoration: none; }
body.fe-site a:hover { color: var(--fe-accent-hover); }

body.fe-site :focus-visible {
	outline: 2px solid var(--fe-accent);
	outline-offset: 3px;
	border-radius: 6px;
}

body.fe-site ::selection { background: rgba(0, 113, 227, .16); }

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

/* --------------------------------------------------------------------------
   Blocksy header: sticky, translucent, blurred once scrolled
   ----------------------------------------------------------------------- */

.fe-site #header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 60;
	background: rgba(255, 255, 255, .78);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s var(--fe-ease), background-color .3s var(--fe-ease);
}
.fe-site #header [data-row] { background: transparent !important; }
.fe-site #header [data-row*="middle"] { --height: 72px; }
@media (max-width: 999px) { .fe-site #header [data-row*="middle"] { --height: 64px; } }
.fe-site.fe-scrolled #header { border-bottom-color: rgba(0, 0, 0, .08); background: rgba(255, 255, 255, .86); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.fe-site #header { background: rgba(255, 255, 255, .97); }
}

.fe-site #header .ct-menu-link { font-size: 14px; font-weight: 500; color: var(--fe-text); text-transform: none; letter-spacing: 0; }
.fe-site #header .ct-button { color: #fff !important; }
.fe-site #header .ct-menu-link:hover,
.fe-site #header .current-menu-item > .ct-menu-link { color: var(--fe-accent); }

.fe-site #header .ct-header-cta .ct-button,
.fe-site #header [data-id="button"] .ct-button {
	border-radius: var(--fe-pill);
	padding: 0 18px;
	min-height: 36px;
	font-size: 14px;
	font-weight: 500;
	background: var(--fe-accent);
	border: 0;
}

/* Blocksy site-title logo gets the FE monogram */
.fe-site .site-title a {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--fe-font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--fe-text);
}
.fe-site .site-title a::before {
	content: "FE"; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
	background: var(--fe-dark); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em;
}

/* Monogram logo, for a Text or HTML logo element: <span class="fe-wordmark"><b>FE</b> Fortunate Esom</span> */
.fe-wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fe-font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--fe-text); }
.fe-wordmark b {
	display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
	background: var(--fe-dark); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   Sections & layout helpers (add to Elementor containers)
   ----------------------------------------------------------------------- */

.fe-section:not(.e-con) { padding-block: var(--fe-section-y); padding-inline: var(--fe-gutter); }
.fe-section--tight:not(.e-con) { padding-block: clamp(56px, 7vw, 96px); }
/* Elementor containers read padding from these variables */
.e-con.fe-section { --padding-top: var(--fe-section-y); --padding-bottom: var(--fe-section-y); --padding-left: var(--fe-gutter); --padding-right: var(--fe-gutter); }
.e-con.fe-section--tight { --padding-top: clamp(56px, 7vw, 96px); --padding-bottom: clamp(56px, 7vw, 96px); }
.e-con.fe-hero { --padding-top: clamp(32px, 5vw, 72px); --padding-bottom: clamp(56px, 8vw, 112px); }
.fe-section .e-con.e-child { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; }
.e-con.fe-flush-top { --padding-top: 0px; }
.e-con.fe-flush-bottom { --padding-bottom: 0px; }
.fe-section--alt { background: var(--fe-bg-2); }
.fe-section--dark { background: var(--fe-dark); color: #F5F5F7; }
.fe-section--dark .fe-lead, .fe-section--dark .fe-lead p,
.fe-section--dark .elementor-widget-text-editor { color: rgba(245, 245, 247, .72); }
.fe-section--dark .fe-eyebrow, .fe-section--dark .fe-eyebrow .elementor-heading-title { color: rgba(245, 245, 247, .6); }

.fe-container { width: 100%; max-width: var(--fe-max); margin-inline: auto; }
.fe-narrow { max-width: 760px; margin-inline: auto; }
.fe-center { text-align: center; }
.fe-center .fe-lead { margin-inline: auto; }
.fe-center-x { margin-inline: auto !important; text-align: center; }
.fe-center-x.fe-lead, .fe-center-x .fe-lead { max-width: 680px; }
.fe-mt { margin-top: clamp(24px, 4vw, 48px) !important; }
.fe-hero .fe-display .elementor-heading-title, .fe-hero h1.fe-display { font-size: clamp(40px, 5.4vw, 68px) !important; }
@media (max-width: 767px) { .fe-hero .fe-hero-visual { margin-top: 8px; } .fe-site .fe-scroll-cue { display: none; } }

/* --------------------------------------------------------------------------
   Typography helpers (work on plain elements and on Elementor Heading/Text widgets)
   ----------------------------------------------------------------------- */

.fe-eyebrow, .fe-eyebrow .elementor-heading-title {
	font-family: var(--fe-font-body) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: .14em !important;
	text-transform: uppercase;
	color: var(--fe-text-2);
	margin: 0 0 18px;
	line-height: 1.4 !important;
}

.fe-display, .fe-display .elementor-heading-title {
	font-family: var(--fe-font-display);
	font-weight: 700;
	font-size: clamp(42px, 7.2vw, 88px) !important;
	line-height: 1.02 !important;
	letter-spacing: -0.035em !important;
	margin: 0;
	text-wrap: balance;
}

.fe-h2, .fe-h2 .elementor-heading-title {
	font-family: var(--fe-font-display);
	font-weight: 700;
	font-size: clamp(34px, 5vw, 64px) !important;
	line-height: 1.05 !important;
	letter-spacing: -0.03em !important;
	margin: 0;
	text-wrap: balance;
}

.fe-h3, .fe-h3 .elementor-heading-title {
	font-weight: 600;
	font-size: clamp(22px, 2.4vw, 28px) !important;
	line-height: 1.2 !important;
}

.fe-lead, .fe-lead p {
	font-size: clamp(18px, 1.7vw, 22px);
	line-height: 1.55;
	color: var(--fe-text-2);
	max-width: 680px;
	margin: 0;
	text-wrap: pretty;
}

.fe-quote, .fe-quote p {
	font-family: var(--fe-font-display);
	font-size: clamp(24px, 3vw, 38px);
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.015em;
	max-width: 900px;
	text-wrap: pretty;
}

.fe-prose p { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; max-width: 640px; margin: 0 0 1em; }
.fe-prose p:first-child { color: var(--fe-text); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; }
.fe-prose p:not(:first-child) { color: var(--fe-text-2); }

.fe-fineprint { font-size: 13px; color: var(--fe-text-2); margin-top: 24px; }

/* --------------------------------------------------------------------------
   Buttons — plain .fe-btn, or add fe-btn-primary / fe-btn-secondary / fe-btn-link
   to an Elementor Button widget.
   ----------------------------------------------------------------------- */

.fe-btn,
.fe-btn-primary .elementor-button,
.fe-btn-secondary .elementor-button,
.fe-btn-dark .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 26px;
	border-radius: var(--fe-pill) !important;
	font-family: var(--fe-font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color .2s var(--fe-ease), color .2s var(--fe-ease), border-color .2s var(--fe-ease), transform .2s var(--fe-ease);
	text-decoration: none;
}

.fe-btn--primary,
.fe-btn-primary .elementor-button { background: var(--fe-accent) !important; color: #fff !important; }
.fe-btn--primary:hover,
.fe-btn-primary .elementor-button:hover { background: var(--fe-accent-hover) !important; color: #fff !important; }

.fe-btn--secondary,
.fe-btn-secondary .elementor-button { background: transparent !important; color: var(--fe-accent) !important; border-color: var(--fe-accent) !important; }
.fe-btn--secondary:hover,
.fe-btn-secondary .elementor-button:hover { background: rgba(0, 113, 227, .06) !important; }

.fe-btn-dark .elementor-button { background: #F5F5F7 !important; color: var(--fe-dark) !important; }
.fe-btn-dark .elementor-button:hover { background: #fff !important; }

.fe-btn:active, .elementor-button:active { transform: scale(.98); }

.fe-btn-link .elementor-button {
	background: transparent !important; color: var(--fe-accent) !important; padding: 0 !important;
	font-size: 17px; font-weight: 500;
}
.fe-btn-link .elementor-button-text::after { content: "\00a0›"; }
.fe-btn-link .elementor-button:hover .elementor-button-text { text-decoration: underline; }

.fe-link {
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 500; font-size: 16px; color: var(--fe-accent);
}
.fe-link .fe-icon { transition: transform .2s var(--fe-ease); }
.fe-link:hover .fe-icon { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------- */

.fe-hero { overflow: hidden; }
.fe-hero:not(.e-con) { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(56px, 8vw, 112px); }

.fe-hero-visual {
	position: relative;
	width: 100%;
	max-width: 640px;
	margin-inline: auto;
	border-radius: var(--fe-radius-lg);
	box-shadow: var(--fe-shadow);
	animation: fe-float 9s ease-in-out infinite;
}
.fe-hero-visual__svg { display: block; width: 100%; height: auto; border-radius: var(--fe-radius-lg); font-family: var(--fe-font-body); }

.fe-hv-node rect { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .05)); }
.fe-hv-node { opacity: 0; animation: fe-node-in .7s var(--fe-ease) forwards; }
.fe-hv-n1 { animation-delay: .1s; } .fe-hv-n2 { animation-delay: .2s; } .fe-hv-n3 { animation-delay: .35s; }
.fe-hv-n4 { animation-delay: .5s; } .fe-hv-n5 { animation-delay: .65s; } .fe-hv-n6 { animation-delay: .75s; } .fe-hv-n7 { animation-delay: .85s; }
.fe-hv-chat { opacity: 0; animation: fe-node-in .8s var(--fe-ease) 1s forwards; }

.fe-hv-flow path {
	stroke-dasharray: 6 10;
	animation: fe-dash 2.4s linear infinite;
	animation-delay: calc(var(--i) * -.3s);
	opacity: .9;
}
.fe-art-flow path { stroke-dasharray: 6 10; animation: fe-dash 2.4s linear infinite; }
.fe-hv-line { animation: fe-pulse 2.2s ease-in-out infinite; }

@keyframes fe-dash { to { stroke-dashoffset: -64; } }
@keyframes fe-node-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fe-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fe-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.fe-scroll-cue {
	display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
	color: var(--fe-text-2) !important; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.fe-scroll-cue__line { position: relative; width: 1px; height: 44px; background: var(--fe-border); overflow: hidden; }
.fe-scroll-cue__line::after {
	content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
	background: var(--fe-text); animation: fe-scroll 2s var(--fe-ease) infinite;
}
@keyframes fe-scroll { to { top: 100%; } }

/* --------------------------------------------------------------------------
   Pillars
   ----------------------------------------------------------------------- */

.fe-pillars { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .fe-pillars { grid-template-columns: repeat(3, 1fr); } }

.fe-pillar {
	background: var(--fe-bg);
	border: 1px solid var(--fe-border);
	border-radius: var(--fe-radius);
	padding: clamp(28px, 3vw, 40px);
	transition: transform .35s var(--fe-ease), box-shadow .35s var(--fe-ease), border-color .35s var(--fe-ease);
}
.fe-section--alt .fe-pillar { border-color: transparent; }
.fe-pillar:hover { transform: translateY(-4px); box-shadow: var(--fe-shadow); }
.fe-pillar__icon {
	display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
	background: var(--fe-bg-2); color: var(--fe-text); margin-bottom: 28px;
}
.fe-section--alt .fe-pillar__icon { background: var(--fe-bg-2); }
.fe-pillar__title { font-size: 22px; font-weight: 600; margin: 0 0 10px; }
.fe-pillar__text { color: var(--fe-text-2); margin: 0; font-size: 16px; }

/* --------------------------------------------------------------------------
   Projects
   ----------------------------------------------------------------------- */

.fe-filters {
	display: flex; gap: 8px; margin-bottom: 40px;
	overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	padding-bottom: 4px;
}
.fe-filters::-webkit-scrollbar { display: none; }
.fe-filter {
	flex: 0 0 auto;
	min-height: 40px; padding: 0 18px;
	border-radius: var(--fe-pill);
	border: 1px solid var(--fe-border);
	background: var(--fe-bg);
	color: var(--fe-text);
	font: 500 14px/1 var(--fe-font-body);
	cursor: pointer;
	transition: background-color .2s var(--fe-ease), color .2s var(--fe-ease), border-color .2s var(--fe-ease);
}
.fe-filter:hover { border-color: var(--fe-text); }
.fe-filter.is-active { background: var(--fe-text); border-color: var(--fe-text); color: #fff; }

.fe-projects { display: grid; gap: clamp(20px, 2.5vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 768px) {
	.fe-projects { grid-template-columns: repeat(2, 1fr); }
	.fe-projects--editorial .fe-card:first-child:not([hidden]) { grid-column: 1 / -1; }
	.fe-projects--editorial .fe-card:first-child .fe-card__media { aspect-ratio: 21 / 9; }
}

.fe-card {
	display: flex; flex-direction: column;
	background: var(--fe-bg);
	border-radius: var(--fe-radius-lg);
	overflow: hidden;
	border: 1px solid var(--fe-border);
	transition: box-shadow .4s var(--fe-ease), transform .4s var(--fe-ease);
}
.fe-section--alt .fe-card { border-color: transparent; }
.fe-card:hover { box-shadow: var(--fe-shadow); transform: translateY(-3px); }
.fe-card[hidden] { display: none; }
.fe-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--fe-bg-2); }
.fe-card__media .fe-art, .fe-card__img {
	display: block; width: 100%; height: 100%; object-fit: cover;
	transition: transform .8s var(--fe-ease);
}
.fe-card:hover .fe-card__media .fe-art, .fe-card:hover .fe-card__img { transform: scale(1.035); }
.fe-card__body { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 32px); flex: 1; }
.fe-card__body .fe-link { margin-top: auto; padding-top: 8px; }
.fe-card__cat { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fe-text-2); margin: 0; }
.fe-card__title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; margin: 0; }
.fe-card__title a { color: var(--fe-text) !important; }
.fe-card__title a:hover { color: var(--fe-accent) !important; }
.fe-card__text { margin: 0; color: var(--fe-text-2); font-size: 16px; }

.fe-badge {
	position: absolute; top: 16px; left: 16px;
	padding: 6px 12px; border-radius: var(--fe-pill);
	background: rgba(255, 255, 255, .92); color: var(--fe-text);
	font-size: 12px; font-weight: 600; letter-spacing: .02em;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border: 1px solid rgba(0, 0, 0, .06);
}
.fe-badge--inline { position: static; display: inline-block; margin-right: 6px; background: var(--fe-bg-2); }

.fe-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 0; padding: 0; }
.fe-chips li {
	padding: 5px 11px; border-radius: var(--fe-pill);
	background: var(--fe-bg-2); color: var(--fe-text);
	font-size: 13px; font-weight: 500; line-height: 1.3;
}
.fe-chips--lg li { padding: 9px 16px; font-size: 15px; background: var(--fe-bg); border: 1px solid var(--fe-border); }

.fe-empty, .fe-filter-empty { color: var(--fe-text-2); text-align: center; padding: 48px 0; }

/* --------------------------------------------------------------------------
   Case study (single project)
   ----------------------------------------------------------------------- */

.single-fe_project .entry-content, .fe-case-body { max-width: 760px; margin-inline: auto; }
.single-fe_project .hero-section .entry-header { max-width: 760px; margin-inline: auto; }
.single-fe_project .hero-section .entry-meta,
.single-fe_project .hero-section .page-description { display: none; }
.single-fe_project .hero-section .page-title {
	font-family: var(--fe-font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
	font-size: clamp(36px, 5vw, 60px);
}
.single-fe_project .hero-section { margin-top: clamp(32px, 5vw, 72px); }
.fe-case-head { margin-bottom: 56px; padding-bottom: 40px; border-bottom: 1px solid var(--fe-border); }
.fe-case-note { font-size: 15px; color: var(--fe-text-2); background: var(--fe-bg-2); border-radius: var(--fe-radius-sm); padding: 14px 16px; margin: 0 0 24px; }
.fe-case-head .fe-lead { margin-bottom: 32px; }
.fe-case-meta { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0; }
.fe-case-meta dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fe-text-2); margin-bottom: 6px; }
.fe-case-meta dd { margin: 0; font-size: 16px; }
.fe-case-meta dd .fe-link { margin-right: 16px; }
.fe-case-body h2 { font-size: clamp(26px, 3vw, 34px); margin: 56px 0 16px; }
.fe-case-body p, .fe-case-body li { font-size: 18px; line-height: 1.7; }
.fe-case-body ol, .fe-case-body ul { padding-left: 1.3em; }
.fe-case-body ol li { padding-left: 4px; margin-bottom: 8px; }
.fe-case-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--fe-border); }
.fe-case-next { display: flex; flex-direction: column; text-align: right; }
.fe-case-next span { font-size: 13px; color: var(--fe-text-2); }
.fe-case-next strong { font-family: var(--fe-font-display); font-size: 22px; color: var(--fe-text); }

/* --------------------------------------------------------------------------
   Tools & technology
   ----------------------------------------------------------------------- */

.fe-tech { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .fe-tech { grid-template-columns: repeat(2, 1fr); } }
.fe-tech-card {
	background: var(--fe-bg); border: 1px solid var(--fe-border); border-radius: var(--fe-radius-lg);
	padding: clamp(28px, 4vw, 48px);
}
.fe-section--alt .fe-tech-card { border-color: transparent; }
.fe-section--dark .fe-tech-card { background: #1C1C1E; border-color: #2C2C2E; color: #F5F5F7; }
.fe-section--dark .fe-tech-card__text { color: rgba(245, 245, 247, .7); }
.fe-tech-card__mark {
	display: inline-grid; place-items: center; min-width: 64px; height: 64px; padding: 0 16px; border-radius: 18px;
	background: var(--fe-dark); color: #fff; font-family: var(--fe-font-display); font-weight: 800; font-size: 18px;
	margin-bottom: 36px;
}
.fe-section--dark .fe-tech-card__mark { background: #F5F5F7; color: var(--fe-dark); }
.fe-tech-card__cat { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fe-text-2); margin: 0 0 8px; }
.fe-tech-card__name { font-size: clamp(28px, 3vw, 36px); font-weight: 700; margin: 0 0 12px; }
.fe-tech-card__text { color: var(--fe-text-2); margin: 0; }

.fe-stack { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 640px) { .fe-stack { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fe-stack { grid-template-columns: repeat(3, 1fr); } }
.fe-stack__group { border: 1px solid var(--fe-border); border-radius: var(--fe-radius); padding: 24px; background: var(--fe-bg); }
.fe-stack__title { font-size: 13px !important; font-family: var(--fe-font-body) !important; font-weight: 600; letter-spacing: .12em !important; text-transform: uppercase; color: var(--fe-text-2); margin: 0 0 16px; }
.fe-stack__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fe-stack__list strong { display: block; font-weight: 600; }
.fe-stack__list span { display: block; font-size: 14px; color: var(--fe-text-2); }

.fe-details { margin-top: 32px; }
.fe-details > summary {
	cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px;
	color: var(--fe-accent); font-weight: 500;
}
.fe-details > summary::-webkit-details-marker { display: none; }
.fe-details > summary::after { content: "+"; font-size: 20px; line-height: 1; transition: transform .25s var(--fe-ease); }
.fe-details[open] > summary::after { transform: rotate(45deg); }

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

.fe-process { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; counter-reset: none; }
.fe-process__step { position: relative; padding: 0 0 40px 56px; }
.fe-process__step::before {
	content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 1px; background: var(--fe-border);
}
.fe-process__step:last-child { padding-bottom: 0; }
.fe-process__step:last-child::before { display: none; }
.fe-process__num {
	position: absolute; left: 0; top: 0;
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--fe-border); background: var(--fe-bg);
	font: 600 13px/1 var(--fe-font-body); color: var(--fe-text);
}
.fe-process__title { font-size: 24px; font-weight: 700; margin: 6px 0 8px; }
.fe-process__text { color: var(--fe-text-2); margin: 0; font-size: 16px; max-width: 420px; }
.fe-section--dark .fe-process__num { background: var(--fe-dark); border-color: #3A3A3C; color: #F5F5F7; }
.fe-section--dark .fe-process__step::before { background: #3A3A3C; }
.fe-section--dark .fe-process__text { color: rgba(245, 245, 247, .66); }

@media (min-width: 900px) {
	.fe-process { grid-template-columns: repeat(4, 1fr); gap: 32px; }
	.fe-process__step { padding: 72px 0 0 0; }
	.fe-process__step::before { left: 48px; right: -32px; top: 20px; bottom: auto; width: auto; height: 1px; }
	.fe-process__step:last-child::before { display: none; }
}

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

.fe-services { display: grid; gap: clamp(80px, 10vw, 140px); }
.fe-service { display: grid; gap: 40px; align-items: center; scroll-margin-top: 100px; }
@media (min-width: 900px) {
	.fe-service { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px); }
	.fe-service--flip .fe-service__art { order: 2; }
}
.fe-service__art { border-radius: var(--fe-radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--fe-bg-2); }
.fe-service__art .fe-art { width: 100%; height: 100%; display: block; }
.fe-service__title { font-size: clamp(32px, 4vw, 48px); font-weight: 700; margin: 0 0 16px; }
.fe-service__desc { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; margin: 0 0 16px; }
.fe-service__value { color: var(--fe-text-2); margin: 0 0 28px; }
.fe-service__value strong { color: var(--fe-text); font-weight: 600; }
.fe-service__sub { font-family: var(--fe-font-body) !important; font-size: 12px; font-weight: 600; letter-spacing: .12em !important; text-transform: uppercase; color: var(--fe-text-2); margin: 24px 0 12px; }
.fe-service .fe-btn { margin-top: 32px; }

.fe-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fe-list li { position: relative; padding-left: 26px; }
.fe-list li::before {
	content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 6px;
	border-left: 1.6px solid var(--fe-accent); border-bottom: 1.6px solid var(--fe-accent); transform: rotate(-45deg) translateY(-3px);
}

.fe-svc-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fe-svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fe-svc-grid { grid-template-columns: repeat(3, 1fr); } }
.fe-svc-tile {
	display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--fe-radius);
	background: var(--fe-bg); border: 1px solid var(--fe-border); color: var(--fe-text) !important;
	transition: transform .3s var(--fe-ease), box-shadow .3s var(--fe-ease);
}
.fe-svc-tile:hover { transform: translateY(-3px); box-shadow: var(--fe-shadow); }
.fe-svc-tile__num { font-size: 13px; font-weight: 600; color: var(--fe-text-2); }
.fe-svc-tile__title { font-family: var(--fe-font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.fe-svc-tile__text { color: var(--fe-text-2); font-size: 15px; }
.fe-svc-tile .fe-link { margin-top: auto; padding-top: 8px; }

/* --------------------------------------------------------------------------
   About
   ----------------------------------------------------------------------- */

.fe-portrait { margin: 0; border-radius: var(--fe-radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--fe-bg-2); }
.fe-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fe-portrait--placeholder { display: grid; place-items: center; border: 1px solid var(--fe-border); }
.fe-portrait--placeholder span { font-family: var(--fe-font-display); font-size: clamp(64px, 10vw, 120px); font-weight: 800; color: var(--fe-border); letter-spacing: -0.04em; }

.fe-timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fe-border); }
.fe-timeline__item { display: grid; gap: 8px 40px; padding: 32px 0; border-bottom: 1px solid var(--fe-border); }
@media (min-width: 768px) { .fe-timeline__item { grid-template-columns: 200px 1fr; } }
.fe-timeline__period { margin: 0; color: var(--fe-text-2); font-size: 15px; font-weight: 500; }
.fe-timeline__role { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.fe-timeline__org { margin: 0 0 10px; color: var(--fe-text-2); font-size: 15px; }
.fe-timeline__text { margin: 0; }

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

.fe-form { background: var(--fe-bg); border: 1px solid var(--fe-border); border-radius: var(--fe-radius-lg); padding: clamp(24px, 4vw, 48px); }
.fe-section--alt .fe-form { border-color: transparent; }
.fe-form__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .fe-form__grid { grid-template-columns: 1fr 1fr; } .fe-field--full { grid-column: 1 / -1; } }
.fe-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--fe-text); }
.fe-optional { font-weight: 400; color: var(--fe-text-2); }
.fe-form input[type="text"], .fe-form input[type="email"], .fe-form select, .fe-form textarea {
	width: 100%; min-height: 52px; padding: 14px 16px;
	font: 400 16px/1.4 var(--fe-font-body); color: var(--fe-text);
	background: var(--fe-bg-2); border: 1px solid transparent; border-radius: var(--fe-radius-sm);
	transition: border-color .2s var(--fe-ease), background-color .2s var(--fe-ease), box-shadow .2s var(--fe-ease);
	-webkit-appearance: none; appearance: none;
}
.fe-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236E6E73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.fe-form textarea { min-height: 160px; resize: vertical; }
.fe-form input:focus, .fe-form select:focus, .fe-form textarea:focus {
	outline: none; background: var(--fe-bg); border-color: var(--fe-accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, .14);
}
.fe-field.has-error input, .fe-field.has-error select, .fe-field.has-error textarea { border-color: var(--fe-error); background: #FFF6F6; }
.fe-field__error { margin: 6px 0 0; color: var(--fe-error); font-size: 14px; }
.fe-field__hint { margin: 6px 0 0; color: var(--fe-text-2); font-size: 14px; }
.fe-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.fe-form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.fe-form__privacy { margin: 0; font-size: 14px; color: var(--fe-text-2); }
.fe-form__status { margin-top: 20px; padding: 16px 18px; border-radius: var(--fe-radius-sm); font-size: 15px; }
.fe-form__status.is-success { background: #EEF8F1; color: var(--fe-success); }
.fe-form__status.is-error { background: #FFF1F1; color: var(--fe-error); }
.fe-form.is-sent .fe-form__grid, .fe-form.is-sent .fe-form__footer { display: none; }

.fe-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: fe-spin .8s linear infinite; }
.fe-btn.is-loading .fe-spinner { display: inline-block; }
.fe-btn.is-loading { pointer-events: none; opacity: .85; }
.fe-btn[disabled] { opacity: .6; cursor: not-allowed; }
@keyframes fe-spin { to { transform: rotate(360deg); } }

.fe-contact-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fe-border); }
.fe-contact-links li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--fe-border); flex-wrap: wrap; }
.fe-contact-links__label { color: var(--fe-text-2); font-size: 15px; }
.fe-contact-links a { font-weight: 500; word-break: break-word; }

.fe-social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }
.fe-social a { color: var(--fe-text-2) !important; font-size: 14px; }
.fe-social a:hover { color: var(--fe-text) !important; }

.fe-admin-hint { display: block; margin-top: 10px; font-size: 12px; color: #8a5300; background: #FFF6E5; border-radius: 8px; padding: 6px 10px; }
.fe-admin-hint span { opacity: .7; }

/* --------------------------------------------------------------------------
   Ask Fortunate assistant
   ----------------------------------------------------------------------- */

.fe-assistant { position: fixed; right: 20px; bottom: 20px; z-index: 90; font-family: var(--fe-font-body); }
.fe-assistant__toggle {
	display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
	border-radius: var(--fe-pill); border: 1px solid rgba(0, 0, 0, .08);
	background: rgba(255, 255, 255, .9); color: var(--fe-text);
	-webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
	box-shadow: var(--fe-shadow); font: 500 15px/1 var(--fe-font-body); cursor: pointer;
	transition: transform .2s var(--fe-ease);
}
.fe-assistant__toggle:hover { transform: translateY(-2px); }
.fe-assistant__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fe-accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.fe-assistant.is-preview .fe-assistant__dot { background: var(--fe-text-2); box-shadow: none; }
.fe-assistant.is-open .fe-assistant__toggle { display: none; }

.fe-assistant__panel {
	position: absolute; right: 0; bottom: 0;
	width: min(380px, calc(100vw - 32px)); max-height: min(600px, calc(100vh - 120px));
	display: flex; flex-direction: column;
	background: var(--fe-bg); border: 1px solid rgba(0, 0, 0, .08); border-radius: 24px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .16); overflow: hidden;
	animation: fe-panel-in .3s var(--fe-ease);
}
.fe-assistant__panel[hidden] { display: none; }
@keyframes fe-panel-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.fe-assistant__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--fe-bg-2); }
.fe-assistant__title { font-size: 17px !important; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.fe-assistant__sub { font-size: 12px; color: var(--fe-text-2); margin: 2px 0 0; line-height: 1.4; }
.fe-assistant__close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--fe-bg-2); color: var(--fe-text); cursor: pointer; flex: 0 0 auto; }
.fe-assistant__log { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.fe-msg { margin: 0; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; max-width: 88%; white-space: pre-wrap; word-wrap: break-word; }
.fe-msg--bot { background: var(--fe-bg-2); color: var(--fe-text); align-self: flex-start; border-bottom-left-radius: 6px; }
.fe-msg--user { background: var(--fe-accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.fe-msg--error { background: #FFF1F1; color: var(--fe-error); align-self: flex-start; }
.fe-msg--typing { color: var(--fe-text-2); }
.fe-msg--typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: currentColor; animation: fe-pulse 1.2s infinite; }
.fe-msg--typing span:nth-child(2) { animation-delay: .2s; } .fe-msg--typing span:nth-child(3) { animation-delay: .4s; }
.fe-assistant__suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; }
.fe-chip-btn { border: 1px solid var(--fe-border); background: var(--fe-bg); color: var(--fe-text); border-radius: var(--fe-pill); padding: 7px 12px; font: 500 13px/1.2 var(--fe-font-body); cursor: pointer; }
.fe-chip-btn:hover:not([disabled]) { border-color: var(--fe-text); }
.fe-chip-btn[disabled] { opacity: .5; cursor: not-allowed; }
.fe-assistant__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--fe-bg-2); }
.fe-assistant__form input {
	flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border-radius: var(--fe-pill);
	border: 1px solid transparent; background: var(--fe-bg-2); font: 400 15px var(--fe-font-body); color: var(--fe-text);
}
.fe-assistant__form input:focus { outline: none; border-color: var(--fe-accent); background: var(--fe-bg); }
.fe-assistant__send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--fe-accent); color: #fff; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.fe-assistant__send[disabled], .fe-assistant__form input[disabled] { opacity: .55; cursor: not-allowed; }

@media (max-width: 480px) {
	.fe-assistant { right: 12px; bottom: 12px; }
	.fe-assistant__toggle { min-height: 44px; padding: 0 16px; font-size: 14px; }
	.fe-assistant__panel { position: fixed; right: 8px; left: 8px; bottom: 8px; width: auto; max-height: calc(100vh - 80px); }
}

/* --------------------------------------------------------------------------
   Reveal on scroll (JS adds .fe-js to <html>; content stays visible without JS)
   ----------------------------------------------------------------------- */

.fe-js .fe-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .8s var(--fe-ease), transform .8s var(--fe-ease);
	transition-delay: calc(var(--d, 0) * 80ms);
}
.fe-js .fe-reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Footer (Blocksy)
   ----------------------------------------------------------------------- */

.fe-site #footer { background: var(--fe-bg-2); color: var(--fe-text-2); font-size: 13px; }
.fe-site #footer a { color: var(--fe-text-2); }
.fe-site #footer a:hover { color: var(--fe-text); }

/* --------------------------------------------------------------------------
   Reduced motion
   ----------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.fe-site *, .fe-site *::before, .fe-site *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.fe-hero-visual { animation: none; }
	.fe-hv-node, .fe-hv-chat { opacity: 1; animation: none; }
	.fe-hv-flow path, .fe-art-flow path { animation: none; }
	.fe-js .fe-reveal { opacity: 1; transform: none; }
}
