/* ==========================================================================
   KEMET — "Fabric" editorial redesign
   Light, serif-display, generous whitespace, calm blue/teal palette.
   Self-contained: this file is the only stylesheet the new pages load.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

:root {
  --bg: #ffffff;
  --ink: #0b0b0c;          /* headings — near-black, like Fabric */
  --body: #4a4a4a;         /* warm grey body copy */
  --muted: #7c7c82;
  --line: #e4e2de;         /* warm hairline */
  --brand: #1863dc;        /* link / accent blue (Fabric) */
  --brand-deep: #1247a8;

  --periwinkle: #b8d4ff;   /* Fabric signature block + primary button */
  --periwinkle-hi: #a6c8ff;
  --periwinkle-soft: #eaf1ff;
  --coral: #ffb39d;
  --coral-soft: #ffe7de;
  --sage: #59836a;
  --sage-soft: #e7ede9;
  --deepnavy: #002237;     /* dark cards / CTA / footer accents */
  --paper: #f4f2ef;        /* warm off-white — footer + quiet sections */

  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 52px);

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Tajawal", "Cairo", -apple-system, sans-serif;

  --shadow-sm: 0 2px 10px rgba(11, 11, 12, 0.05);
  --shadow-md: 0 16px 44px rgba(11, 11, 12, 0.09);
  --shadow-lg: 0 40px 90px rgba(11, 11, 12, 0.14);

  /* legacy aliases used further down */
  --navy: var(--deepnavy);
  --sky: var(--periwinkle);
  --sky-soft: var(--periwinkle-soft);
  --peach-soft: var(--coral-soft);
  --peach-ink: #b0502e;
  --mint-soft: var(--sage-soft);
  --mint-ink: var(--sage);
  --teal: var(--sage);
  --cream: var(--paper);
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[dir="rtl"] body { font-family: var(--font-ar); }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 400; line-height: 1.05; }
h1, h2, h3 { font-family: var(--font-serif); font-optical-sizing: auto; letter-spacing: -0.005em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: var(--font-ar); font-weight: 700; letter-spacing: 0; line-height: 1.2; }

/* ---------- Layout primitives ---------- */
.fb-wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.fb-section { padding: clamp(64px, 10vw, 130px) 0; }
.fb-section--tight { padding: clamp(44px, 7vw, 84px) 0; }

.fb-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brand);
  display: inline-block;
}
.fb-h2 { font-size: clamp(2rem, 4.4vw, 3.35rem); line-height: 1.05; max-width: 22ch; }
.fb-lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--body); max-width: 56ch; }
.fb-kicker-gap { margin-top: 14px; }

/* ---------- Buttons ---------- */
.fb-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem;
  padding: 13px 24px; border-radius: var(--radius-pill);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}
.fb-btn svg { width: 16px; height: 16px; }
html[dir="rtl"] .fb-btn svg { transform: scaleX(-1); }
.fb-btn--primary { background: var(--periwinkle); color: var(--ink); }
.fb-btn--primary:hover { background: var(--periwinkle-hi); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(184, 212, 255, 0.55); }
.fb-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #cfcdc8; }
.fb-btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-2px); }
.fb-btn--light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.fb-btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.fb-btn--dark { background: var(--ink); color: #fff; }
.fb-btn--dark:hover { background: #26262a; transform: translateY(-2px); }

.fb-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.92rem;
  color: var(--brand);
}
.fb-link svg { width: 15px; height: 15px; transition: transform .2s ease; }
html[dir="rtl"] .fb-link svg { transform: scaleX(-1); }
.fb-link:hover svg { transform: translateX(4px); }
html[dir="rtl"] .fb-link:hover svg { transform: scaleX(-1) translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.fb-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}
.fb-header.is-stuck {
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(11,11,12,0.06);
}
.fb-header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: relative;
}
.fb-logo { display: inline-flex; align-items: baseline; gap: 0; flex: none; }
.fb-logo svg { display: none; }
.fb-logo span { font-family: var(--font-serif); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.01em; color: var(--ink); text-transform: lowercase; }
html[dir="rtl"] .fb-logo span { font-family: var(--font-ar); font-weight: 800; text-transform: none; }
.fb-nav {
  display: flex; align-items: center; gap: 34px;
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.fb-nav > a, .fb-nav-drop-trigger {
  font-family: var(--font-sans); font-weight: 500; font-size: 1rem; color: var(--ink);
  transition: color .18s ease; display: inline-flex; align-items: center; gap: 5px;
}
.fb-nav > a:hover, .fb-nav-drop:hover .fb-nav-drop-trigger, .fb-nav-drop-trigger:focus-visible { color: var(--brand); }
.fb-nav-drop-trigger svg { width: 12px; height: 12px; transition: transform .25s ease; }
.fb-nav-drop.is-open .fb-nav-drop-trigger svg { transform: rotate(180deg); }

/* ---- Full-width mega dropdown (Fabric navbar---dropdown) ---- */
.fb-nav-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff;
  box-shadow: 0 28px 34px rgba(11,11,12,0.10);
  border-top: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .28s ease, transform .28s cubic-bezier(.16,1,.3,1), visibility .28s;
  z-index: 90;
}
.fb-nav-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.fb-header.nav-open { background: #fff; box-shadow: none; }
.fb-nav-panel-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 40px var(--pad) 48px;
  display: flex; gap: 40px;
}
.fb-nav-tabs { flex: 0 0 300px; display: flex; flex-direction: column; }
.fb-nav-tab {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 4px 15px 14px; text-align: left;
  font-family: var(--font-serif); font-weight: 400; font-size: 1.28rem; color: var(--muted);
  border-left: 2px solid transparent; transition: color .18s ease, border-color .18s ease;
}
html[dir="rtl"] .fb-nav-tab { text-align: right; padding: 15px 14px 15px 4px; border-left: 0; border-right: 2px solid transparent; }
.fb-nav-tab svg { width: 15px; height: 15px; opacity: 0; transform: translateX(-4px); transition: opacity .18s ease, transform .18s ease; flex: none; }
.fb-nav-tab.is-active { color: var(--ink); border-color: var(--brand); }
.fb-nav-tab.is-active svg { opacity: 1; transform: none; }
html[dir="rtl"] .fb-nav-tab svg { transform: scaleX(-1) translateX(-4px); }

.fb-nav-panes { flex: 1; border-left: 1px solid var(--line); padding-left: 40px; min-width: 0; }
html[dir="rtl"] .fb-nav-panes { border-left: 0; border-right: 1px solid var(--line); padding-left: 0; padding-right: 40px; }
.fb-nav-pane { display: none; gap: 36px; }
.fb-nav-pane.is-active { display: flex; animation: fb-rise .35s ease both; }
.fb-nav-links { flex: 1; }
.fb-nav-links a {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 18px 8px; border-bottom: 1px solid var(--line);
}
.fb-nav-links a:last-child { border-bottom: 0; }
.fb-nav-links .ico {
  flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--paper);
  display: grid; place-items: center; color: var(--brand); transition: background .18s ease;
}
.fb-nav-links .ico svg { width: 19px; height: 19px; }
.fb-nav-links a:hover .ico { background: var(--periwinkle-soft); }
.fb-nav-links b { font-family: var(--font-sans); font-weight: 600; font-size: 0.98rem; color: var(--ink); display: block; }
.fb-nav-links p { font-size: 0.84rem; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.fb-nav-promo { flex: 0 0 300px; }
.fb-nav-promo img { width: 100%; aspect-ratio: 341 / 360; object-fit: cover; border-radius: 10px; }
.fb-nav-promo p { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }
.fb-header-cta { display: flex; align-items: center; gap: 16px; flex: none; }
.fb-lang { font-family: var(--font-sans); font-weight: 500; font-size: 0.92rem; color: var(--ink); transition: color .18s ease; }
.fb-lang:hover { color: var(--brand); }
.fb-burger { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; box-shadow: inset 0 0 0 1px #cfcdc8; }
.fb-burger svg { width: 20px; height: 20px; }

.fb-mobile { position: fixed; inset: 0; z-index: 200; background: var(--bg); padding: 20px var(--pad); display: flex; flex-direction: column; transform: translateY(-100%); transition: transform .4s cubic-bezier(.16,1,.3,1); overflow-y: auto; }
.fb-mobile.is-open { transform: translateY(0); }
.fb-mobile-top { display: flex; align-items: center; justify-content: space-between; }
.fb-mobile-close { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.fb-mobile-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 36px; }
.fb-mobile-nav > a { font-family: var(--font-serif); font-size: 1.9rem; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
html[dir="rtl"] .fb-mobile-nav > a { font-family: var(--font-ar); font-weight: 700; }
.fb-mobile-drop { border-bottom: 1px solid var(--line); }
.fb-mobile-drop > button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-serif); font-size: 1.9rem; color: var(--ink); padding: 14px 0; text-align: left;
}
html[dir="rtl"] .fb-mobile-drop > button { font-family: var(--font-ar); font-weight: 700; text-align: right; }
.fb-mobile-drop > button svg { width: 18px; height: 18px; transition: transform .25s ease; flex: none; }
.fb-mobile-drop.is-open > button svg { transform: rotate(180deg); }
.fb-mobile-drop-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.fb-mobile-drop.is-open .fb-mobile-drop-body { max-height: 1400px; }
.fb-mobile-drop-body h5 { font-family: var(--font-sans); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.fb-mobile-drop-body a { display: block; font-family: var(--font-sans); font-size: 1.02rem; color: var(--body); padding: 9px 0; }
.fb-mobile-actions { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 12px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.fb-hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: start;
  overflow: hidden;
  padding-bottom: clamp(90px, 11vw, 172px);
}
.fb-hero-text {
  padding: clamp(18px,2.6vw,40px) clamp(32px,4vw,64px) 36px max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
}
html[dir="rtl"] .fb-hero-text { padding: clamp(18px,2.6vw,40px) max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad))) 36px clamp(32px,4vw,64px); }
.fb-hero h1 { font-size: clamp(2.3rem, 4.7vw, 3.6rem); line-height: 1.03; letter-spacing: -0.015em; font-weight: 400; }
.fb-hero .fb-lede { margin-top: 22px; font-size: 1.25rem; line-height: 1.35; max-width: 24rem; }
.fb-hero-actions { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
html[dir="rtl"] .fb-hero-actions { align-items: flex-end; }
.fb-hero-actions .fb-btn { width: auto; }

/* Fabric's .header---wrapper: an 808x730 rounded gradient panel, inset from the top,
   bleeding off the right. Child offsets are Fabric's exact px as % of that panel. */
.fb-hero-visual {
  position: relative; overflow: visible;
  margin-top: clamp(18px, 2.6vw, 40px);
  min-height: 700px;
}
.fb-hero-panel {
  position: absolute; inset: 0;
  border-radius: 12px 0 0 12px; overflow: hidden;
  background: linear-gradient(to top, #fff8ec 0%, #ffe1d4 62%, #ffbcac 100%);
}
html[dir="rtl"] .fb-hero-panel { border-radius: 0 12px 12px 0; }

/* grid layer — Fabric .header---grid: top 0, left -116/808, 708 wide, very faint */
.fb-hero-grid {
  position: absolute; top: 0; left: -14.4%;
  width: 87.6%; max-width: 708px; height: auto;
  z-index: 0; pointer-events: none; user-select: none;
}
html[dir="rtl"] .fb-hero-grid { left: auto; right: -14.4%; transform: scaleX(-1); }

/* big product screenshot — Fabric .header---tablet: top 123, left 62, ~826 wide */
.fb-hero-shot {
  position: absolute; top: 15%; left: 8%; right: auto;
  width: 100%; max-width: 820px; z-index: 1;
  border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid rgba(11,11,12,0.05);
  box-shadow: 0 40px 80px rgba(28,38,66,0.13), 0 8px 22px rgba(28,38,66,0.07);
  animation: fb-hero-shot-in 1.1s cubic-bezier(.2,.7,.2,1) both .15s;
}
html[dir="rtl"] .fb-hero-shot { left: auto; right: 8%; }
.fb-hero-shot img { display: block; width: 100%; height: auto; }
@keyframes fb-hero-shot-in { from { transform: translateY(80px); opacity: 0; } to { transform: none; opacity: 1; } }

/* floating placeholder UI cards — Fabric .header---ui-1/2/3 (265 wide) + .card-shadow.
   They sit in the whitespace left of the panel, overlapping its edge. */
.fb-hero-ui {
  position: absolute; width: 33%; max-width: 262px; height: auto;
  border-radius: 8px; z-index: 2;
  box-shadow: 0 29.73px 29.73px rgba(0,0,0,0.09), 0 7.65px 16.14px rgba(0,0,0,0.10);
}
.fb-hero-ui.u1 { top: 40%; left: -25%; animation: fb-hf1 7s ease-in-out infinite; }
.fb-hero-ui.u2 { top: 65%; left: -25%; animation: fb-hf2 8s ease-in-out infinite .5s; }
.fb-hero-ui.u3 { top: 80%; left: 13%; z-index: 3; animation: fb-hf3 6.5s ease-in-out infinite .3s; }
html[dir="rtl"] .fb-hero-ui.u1 { left: auto; right: -25%; }
html[dir="rtl"] .fb-hero-ui.u2 { left: auto; right: -25%; }
html[dir="rtl"] .fb-hero-ui.u3 { left: auto; right: 13%; }
@keyframes fb-hf1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes fb-hf2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(9px); } }
@keyframes fb-hf3 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .fb-hero-ui, .fb-hero-shot { animation: none !important; } }

/* ==========================================================================
   Logo strip — auto-scrolling marquee with faded ends (Fabric)
   ========================================================================== */
.fb-logos { padding: clamp(40px, 6vw, 70px) 0; }
.fb-logos-label { text-align: center; font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: 30px; }
.fb-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.fb-marquee-track {
  display: flex; align-items: center; gap: clamp(48px, 7vw, 90px);
  width: max-content;
  animation: fb-marq var(--marq-dur, 34s) linear infinite;
}
.fb-marquee:hover .fb-marquee-track { animation-play-state: paused; }
html[dir="rtl"] .fb-marquee-track { animation-direction: reverse; }
@keyframes fb-marq { to { transform: translateX(-50%); } }
.fb-marquee-track span {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  font-family: var(--font-sans); font-weight: 600; font-size: 1.02rem; color: #85868b;
  white-space: nowrap;
}
.fb-marquee-track svg { width: 22px; height: 22px; opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .fb-marquee-track { animation: none; } .fb-marquee { -webkit-mask-image: none; mask-image: none; } .fb-marquee-track { flex-wrap: wrap; justify-content: center; } }

/* ==========================================================================
   Pastel statement block
   ========================================================================== */
.fb-statement-inner {
  background: var(--sky); border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 76px);
  display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.fb-statement h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--ink); max-width: 16ch; }
.fb-statement-list { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.fb-statement-list li { list-style: none; }
.fb-statement-list h4 { font-family: var(--font-sans); font-weight: 700; font-size: 1rem; color: var(--ink); }
html[dir="rtl"] .fb-statement-list h4 { font-family: var(--font-ar); }
.fb-statement-list p { font-size: 0.92rem; margin-top: 3px; }
.fb-statement-graphic { aspect-ratio: 1; position: relative; display: grid; place-items: center; margin: 0 auto; max-width: 380px; width: 100%; }
.fb-rings { width: 96%; height: 96%; position: absolute; top: 2%; left: 2%; }
.fb-rings circle { fill: none; stroke: rgba(21,35,60,0.16); }
.fb-statement-graphic .core {
  position: relative; z-index: 1; background: #fff; border-radius: 16px; box-shadow: var(--shadow-md);
  padding: 16px 18px; font-family: var(--font-sans); font-size: 0.78rem; color: var(--muted); text-align: center; max-width: 74%; line-height: 1.4;
}
.fb-statement-graphic .core strong { display: block; font-family: var(--font-serif); font-size: 1.35rem; color: var(--ink); line-height: 1.15; margin-top: 4px; }
html[dir="rtl"] .fb-statement-graphic .core strong { font-family: var(--font-ar); }

/* ==========================================================================
   3 colour cards
   ========================================================================== */
/* ---- Horizontal service slider (image cards, caption expands on hover) ---- */
.fb-svc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 40px 0 34px; }
.fb-svc-arrows { display: flex; gap: 14px; flex: none; }
.fb-svc-arrow { width: 54px; height: 54px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink); display: grid; place-items: center; color: var(--ink); transition: background .2s ease, color .2s ease, opacity .2s ease; }
.fb-svc-arrow:hover { background: var(--ink); color: #fff; }
.fb-svc-arrow:disabled { opacity: 0.25; cursor: default; }
.fb-svc-arrow svg { width: 19px; height: 19px; }
html[dir="rtl"] .fb-svc-arrow svg { transform: scaleX(-1); }
.fb-svc-slider { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fb-svc-slider::-webkit-scrollbar { display: none; }
.fb-svc-card {
  position: relative; flex: 0 0 clamp(270px, 30vw, 396px); scroll-snap-align: start;
  aspect-ratio: 429 / 462; border-radius: 10px; overflow: hidden;
  border: 1.5px solid var(--c, var(--line));
  background: var(--img, var(--paper)) center / cover no-repeat;
}
.fb-svc-cap {
  position: absolute; inset: auto 0 0 0;
  background: var(--c, var(--periwinkle)); color: var(--ci, var(--ink));
  padding: 22px 24px; height: 74px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: height .34s cubic-bezier(.16,1,.3,1), justify-content .34s;
}
.fb-svc-card:hover .fb-svc-cap, .fb-svc-card.is-open .fb-svc-cap { height: 100%; justify-content: center; }
.fb-svc-cap h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.42rem; color: inherit; }
html[dir="rtl"] .fb-svc-cap h3 { font-family: var(--font-ar); font-weight: 700; }
.fb-svc-links { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .34s ease, opacity .3s ease, margin .34s ease; }
.fb-svc-card:hover .fb-svc-links, .fb-svc-card.is-open .fb-svc-links { max-height: 320px; opacity: 1; margin-top: 14px; }
.fb-svc-links p { font-family: var(--font-sans); font-size: 0.88rem; line-height: 1.55; color: inherit; opacity: 0.82; margin-bottom: 16px; }
.fb-svc-links a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-weight: 600; font-size: 0.92rem; color: inherit; }
.fb-svc-links a svg { width: 14px; height: 14px; flex: none; transition: transform .2s ease; }
.fb-svc-links a:hover svg { transform: translateX(3px); }
html[dir="rtl"] .fb-svc-links a svg { transform: scaleX(-1); }
@media (max-width: 640px) { .fb-svc-arrows { display: none; } .fb-svc-card { flex-basis: 76vw; } }

.fb-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.fb-card3 { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.fb-card3:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.fb-card3-media { aspect-ratio: 4 / 3; background: var(--sky-soft); display: grid; place-items: center; }
.fb-card3-media svg { width: 46px; height: 46px; color: var(--brand); }
.fb-card3:nth-child(1) .fb-card3-media { background: var(--peach-soft); }
.fb-card3:nth-child(1) .fb-card3-media svg { color: var(--peach-ink); }
.fb-card3:nth-child(2) .fb-card3-media { background: var(--sky-soft); }
.fb-card3:nth-child(3) .fb-card3-media { background: var(--mint-soft); }
.fb-card3:nth-child(3) .fb-card3-media svg { color: var(--mint-ink); }
.fb-card3-body { padding: 22px 22px 26px; }
.fb-card3-body h3 { font-family: var(--font-sans); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
html[dir="rtl"] .fb-card3-body h3 { font-family: var(--font-ar); }
.fb-card3-body p { font-size: 0.92rem; margin-top: 8px; }
.fb-card3-body .fb-link { margin-top: 14px; }

/* ==========================================================================
   Intelligence / radial graphic section
   ========================================================================== */
.fb-intel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.fb-intel h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 16ch; }
.fb-intel-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.fb-intel-list li { list-style: none; padding-left: 26px; position: relative; font-size: 0.98rem; }
html[dir="rtl"] .fb-intel-list li { padding-left: 0; padding-right: 26px; }
.fb-intel-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); opacity: 0.85; }
html[dir="rtl"] .fb-intel-list li::before { left: auto; right: 0; }
.fb-radial { aspect-ratio: 1; border-radius: 24px; background: #f4f2f0; display: grid; place-items: center; position: relative; overflow: hidden; }
.fb-radial::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ff8a5b 0%, #f6c56b 30%, rgba(255,220,180,0.25) 55%, rgba(255,255,255,0) 72%); filter: blur(2px); }
.fb-radial .rings2 { position: absolute; width: 92%; height: 92%; }
.fb-radial .rings2 circle { fill: none; stroke: rgba(21,35,60,0.10); }
.fb-radial .badge { position: relative; z-index: 1; background: #fff; border-radius: var(--radius-pill); padding: 8px 16px; font-family: var(--font-sans); font-weight: 600; font-size: 0.8rem; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   Colour-morphing "how it works" section (Fabric continuum builder)
   ========================================================================== */
.fb-morph {
  --morph: var(--periwinkle-soft);
  background-color: var(--morph);
  transition: background-color .7s cubic-bezier(.4,0,.2,1);
  padding: clamp(64px, 9vw, 120px) 0;
}
.fb-morph[data-active="0"] { --morph: #cadcff; }
.fb-morph[data-active="1"] { --morph: #c2d5c8; }
.fb-morph[data-active="2"] { --morph: #ffd2c0; }
.fb-morph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.fb-morph-visual { aspect-ratio: 1 / 0.92; width: min(100%, 500px); margin: 0 auto; position: relative; perspective: 1100px; }

/* 3D concentric dome — nested rings stacked in Z, tilted toward the camera */
.fb-morph-stage {
  position: absolute; inset: 8% 6% 2%;
  transform-style: preserve-3d;
  transform: rotateX(58deg);
  animation: fb-dome-spin 42s linear infinite;
}
@keyframes fb-dome-spin { to { transform: rotateX(58deg) rotateZ(360deg); } }
/* grid "floor" that the dome sits on */
.fb-morph-stage::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 150%; height: 150%;
  transform: translate(-50%, -50%);
  background-image:
    linear-gradient(rgba(30,60,140,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,60,140,0.16) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 78%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 78%);
}
.fb-morph-stage i {
  position: absolute; left: 50%; top: 50%;
  width: var(--w); aspect-ratio: 1;
  transform: translate(-50%, -50%) translateZ(var(--z));
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,0.92), rgba(214,228,255,0.55) 72%, rgba(150,180,240,0.35) 100%);
  box-shadow: 0 -8px 22px rgba(28,54,130,0.10), 0 10px 18px rgba(28,54,130,0.10);
  border: 1px solid rgba(255,255,255,0.55);
}
.fb-morph-stage i:nth-child(1){ --w:100%; --z:0px;   opacity:.5; }
.fb-morph-stage i:nth-child(2){ --w:84%;  --z:16px;  opacity:.66; }
.fb-morph-stage i:nth-child(3){ --w:68%;  --z:34px;  opacity:.8; }
.fb-morph-stage i:nth-child(4){ --w:53%;  --z:54px;  opacity:.9; }
.fb-morph-stage i:nth-child(5){ --w:39%;  --z:76px; }
.fb-morph-stage i:nth-child(6){ --w:26%;  --z:100px; }
/* the orb sits on the crown of the dome, facing the camera */
.fb-morph-orb {
  position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1;
  transform: translate(-50%, -50%) translateZ(128px) rotateX(-58deg);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #ffffff, #cfe0ff 62%, #a9c4f5 100%);
  box-shadow: 0 26px 44px rgba(20,40,110,0.28), inset 0 3px 6px rgba(255,255,255,0.85);
  transition: border-radius .55s cubic-bezier(.4,0,.2,1);
}
.fb-morph[data-active="1"] .fb-morph-orb { border-radius: 30% 70% 62% 38% / 40% 38% 62% 60%; }
.fb-morph[data-active="2"] .fb-morph-orb { border-radius: 22px; }
@media (prefers-reduced-motion: reduce) { .fb-morph-stage { animation: none; } }

/* floating status cards */
.fb-morph-card {
  position: absolute; z-index: 3; width: clamp(150px, 42%, 210px);
  background: #fff; border-radius: 12px; padding: 13px 15px;
  box-shadow: 0 26px 32px rgba(11,11,12,0.10), 0 8px 16px rgba(11,11,12,0.07);
}
.fb-morph-card.c1 { top: 6%; right: -2%; animation: fb-mc1 6.5s ease-in-out infinite; }
.fb-morph-card.c2 { top: 40%; right: 4%; animation: fb-mc2 6.5s ease-in-out infinite .4s; }
html[dir="rtl"] .fb-morph-card.c1 { right: auto; left: -2%; }
html[dir="rtl"] .fb-morph-card.c2 { right: auto; left: 4%; }
.fb-morph-card .t { display: flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-weight: 600; font-size: 0.82rem; color: var(--ink); }
.fb-morph-card .t svg { width: 15px; height: 15px; color: var(--sage); flex: none; }
.fb-morph-card .ln { height: 6px; border-radius: 3px; background: rgba(11,11,12,0.09); margin-top: 9px; }
.fb-morph-card .ln.s { width: 58%; }
.fb-morph-card.c1 { opacity: 0.55; }
@keyframes fb-mc1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fb-mc2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(9px); } }
@media (prefers-reduced-motion: reduce) {
  .fb-morph-dome, .fb-morph-card.c1, .fb-morph-card.c2 { animation: none; }
}
@media (max-width: 960px) { .fb-morph-card { display: none; } }
.fb-morph-items { display: flex; flex-direction: column; }
.fb-morph-item { border-top: 1px solid rgba(11,11,12,0.16); }
.fb-morph-item:last-child { border-bottom: 1px solid rgba(11,11,12,0.16); }
.fb-morph-item > button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 0; font-family: var(--font-sans); font-weight: 600; font-size: 1.18rem; color: var(--ink); text-align: left;
}
html[dir="rtl"] .fb-morph-item > button { text-align: right; }
.fb-morph-item .pm { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; font-size: 1.15rem; line-height: 1; color: var(--ink); transition: transform .3s ease; }
.fb-morph-item.open .pm { transform: rotate(45deg); }
.fb-morph-body { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.fb-morph-item.open .fb-morph-body { max-height: 260px; }
.fb-morph-body p { padding-bottom: 24px; max-width: 46ch; }

/* ==========================================================================
   Industries (Clinics / Real Estate / Startups) — tabbed vertical proof
   ========================================================================== */
.fb-vert-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 5vw, 46px); }
.fb-vert-tab {
  font-family: var(--font-sans); font-weight: 600; font-size: 0.9rem; padding: 11px 22px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted);
  cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.fb-vert-tab:hover { border-color: var(--ink); color: var(--ink); }
.fb-vert-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.fb-vert-panel { display: none; }
.fb-vert-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; animation: fb-rise .45s ease both; }
.fb-vert-text h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.12; max-width: 16ch; }
.fb-vert-text .fb-checklist { margin-top: 22px; }
.fb-vert-visual { position: relative; }
.fb-vert-visual img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); display: block; }
.fb-vert-visual .fb-morph-card { position: absolute; z-index: 3; }
.fb-vert-visual .fb-morph-card.vc1 { top: auto; bottom: 15%; left: -7%; right: auto; opacity: 1; animation: fb-mc1 6.5s ease-in-out infinite; }
.fb-vert-visual .fb-morph-card.vc2 { top: auto; bottom: -6%; right: -5%; left: auto; animation: fb-mc2 6.5s ease-in-out infinite .4s; }
.fb-vert-visual .fb-morph-card .t svg { color: var(--vc, var(--sage)); }
html[dir="rtl"] .fb-vert-visual .fb-morph-card.vc1 { left: auto; right: -7%; }
html[dir="rtl"] .fb-vert-visual .fb-morph-card.vc2 { right: auto; left: -5%; }
@media (max-width: 960px) {
  .fb-vert-panel.active { grid-template-columns: 1fr; }
  .fb-vert-visual .fb-morph-card { display: none; }
}

/* ==========================================================================
   Split: For you / For your leads
   ========================================================================== */
.fb-split { display: flex; flex-direction: column; gap: clamp(40px, 7vw, 96px); }
.fb-split-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.fb-split-row:nth-child(even) .fb-split-visual { order: -1; }
html[dir="rtl"] .fb-split-row:nth-child(even) .fb-split-visual { order: 0; }
.fb-split h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.fb-checklist { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.fb-checklist li { list-style: none; display: flex; gap: 11px; font-size: 0.96rem; align-items: flex-start; }
.fb-checklist svg { flex: none; width: 20px; height: 20px; color: var(--teal); margin-top: 2px; }
.fb-split-visual { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); background: var(--cream); aspect-ratio: 4 / 3.4; display:grid; place-items:center; }
.fb-split-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Results cards (dark + pastel)
   ========================================================================== */
.fb-results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.fb-result { border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; min-height: 280px; }
.fb-result--navy { background: var(--deepnavy); color: #a9c0cf; }
.fb-result--navy .fb-result-num { color: #fff; }
.fb-result--peach { background: var(--coral); color: #6b2b18; }
.fb-result--peach .fb-result-num { color: #3d1206; }
.fb-result--mint { background: var(--sage); color: #d3e0d7; }
.fb-result--mint .fb-result-num { color: #fff; }
.fb-result .fb-eyebrow { color: currentColor !important; opacity: 0.85; font-size: 0.82rem; }
.fb-result .fb-eyebrow::before { display: none; }
.fb-result-num { font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3.1rem); color: var(--ink); line-height: 1; margin: 14px 0 8px; }
html[dir="rtl"] .fb-result-num { font-family: var(--font-ar); font-weight: 700; }
.fb-result p { font-size: 0.9rem; }
.fb-result--navy p { color: #9fb0c6; }

/* ==========================================================================
   About pastel block
   ========================================================================== */
.fb-about-inner { background: var(--mint-soft); border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px); max-width: 720px; }
.fb-about-inner h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-top: 14px; }
.fb-about-inner p { margin-top: 16px; }
.fb-about-inner .fb-btn { margin-top: 26px; }

/* ==========================================================================
   Reviews
   ========================================================================== */
.fb-reviews-head { text-align: center; max-width: 640px; margin: 0 auto; }
.fb-reviews-rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--font-sans); }
.fb-reviews-rating .score { font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.fb-reviews-rating .stars { color: #f5a623; letter-spacing: 2px; }
.fb-reviews-rating .count { font-size: 0.85rem; color: var(--muted); }
.fb-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.fb-review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.fb-review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fb-review-top .name { font-family: var(--font-sans); font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.fb-review-top .stars { color: #f5a623; font-size: 0.85rem; }
.fb-review p { font-size: 0.94rem; }

/* ==========================================================================
   Trust badges
   ========================================================================== */
.fb-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.fb-trust span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 0.82rem; font-weight: 600; color: #6a7482; padding: 10px 16px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--line); }
.fb-trust svg { width: 16px; height: 16px; color: var(--teal); }

/* ==========================================================================
   Big CTA  (Fabric "See Fabric in action" — light periwinkle→grey gradient)
   ========================================================================== */
.fb-cta-inner {
  background: linear-gradient(103deg, var(--periwinkle) 0%, #dbe4f4 34%, var(--paper) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px) clamp(30px, 5vw, 68px);
  display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center;
}
html[dir="rtl"] .fb-cta-inner { background: linear-gradient(257deg, var(--periwinkle) 0%, #dbe4f4 34%, var(--paper) 100%); }
.fb-cta-inner h2 { color: var(--ink); font-size: clamp(1.9rem, 3.8vw, 2.9rem); max-width: 15ch; grid-column: 1; }
.fb-cta-inner p { color: var(--body); margin-top: 12px; max-width: 44ch; grid-column: 1; font-size: 0.98rem; }
.fb-cta-inner .fb-btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
@media (max-width: 720px) {
  .fb-cta-inner { grid-template-columns: 1fr; text-align: left; }
  .fb-cta-inner .fb-btn { grid-column: 1; grid-row: auto; margin-top: 8px; }
}

/* ==========================================================================
   Footer  (newsletter + columns + giant wordmark, all on the paper band)
   ========================================================================== */
.fb-footer {
  background-color: var(--paper);
  padding: clamp(60px, 8vw, 104px) 0 0;
  position: relative; overflow: hidden;
}
/* smooth white -> paper hand-off from the section above (no hard seam) */
.fb-footer::after {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: clamp(200px, 22vw, 340px);
  background: linear-gradient(180deg, #ffffff 0%, rgba(244,242,239,0.55) 55%, rgba(244,242,239,0) 100%);
  pointer-events: none; z-index: 1;
}
/* faint grid — drifts continuously on its own (no scroll needed), fades on every edge */
.fb-footer::before {
  content: ""; position: absolute; left: -60px; right: -60px; top: 0; bottom: -60px; pointer-events: none;
  background-image:
    linear-gradient(rgba(11,11,12,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,11,12,0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(92% 130% at 50% 4%, #000 26%, transparent 82%);
  mask-image: radial-gradient(92% 130% at 50% 4%, #000 26%, transparent 82%);
  animation: fb-grid-drift 16s linear infinite;
}
@keyframes fb-grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 56px 56px, 56px 56px; }
}
/* WebGL rippling grid "flag" — replaces the CSS grid once three.js is up.
   Edges fade the Fabric way: a paper-coloured radial overlay eats the sides + top. */
.fb-flag { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fb-flag::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 106%, transparent 0%, transparent 24%, var(--paper) 66%);
}
.fb-footer.has-flag::before { display: none; }
.fb-footer > .fb-wrap { position: relative; z-index: 2; }
.fb-footer-wordmark { z-index: 2; }

.fb-footer-news {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
  padding-bottom: clamp(44px, 6vw, 72px);
  border-bottom: 1px solid rgba(11,11,12,0.12);
}
.fb-footer-news h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); max-width: 13ch; line-height: 1.05; }
.fb-footer-news .col2 { align-self: center; }
.fb-footer-news p { font-size: 0.92rem; margin-bottom: 16px; max-width: 40ch; }
.fb-news-form {
  display: flex; align-items: center; max-width: 400px;
  background: #fff; border: 1px solid rgba(11,11,12,0.16); border-radius: var(--radius-pill);
  padding: 5px 5px 5px 22px; transition: border-color .2s ease;
}
.fb-news-form:focus-within { border-color: var(--ink); }
.fb-news-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; outline: none; color: var(--ink); }
.fb-news-form input::placeholder { color: var(--muted); }
.fb-news-form button { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.fb-news-form button svg { width: 17px; height: 17px; }
html[dir="rtl"] .fb-news-form { padding: 5px 22px 5px 5px; }
html[dir="rtl"] .fb-news-form button svg { transform: scaleX(-1); }
.fb-news-note { font-size: 0.82rem; margin-top: 12px; }
.fb-news-note.ok { color: var(--sage); }
.fb-news-note.err { color: #c0392b; }

.fb-footer-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px;
  padding: clamp(44px, 6vw, 72px) 0 0;
}
.fb-footer-col h4 { font-family: var(--font-sans); font-weight: 600; font-size: 0.94rem; letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: 20px; }
html[dir="rtl"] .fb-footer-col h4 { font-family: var(--font-ar); }
.fb-footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.fb-footer-col a { font-size: 0.94rem; color: var(--body); transition: color .18s ease; }
.fb-footer-col a:hover { color: var(--brand); }
.fb-footer-copy { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(11,11,12,0.12); }

.fb-footer-wordmark {
  position: relative; left: 50%;
  width: 100vw; text-align: center;
  font-family: var(--font-serif); font-weight: 500;
  font-size: 24.5vw; line-height: 0.8;                 /* "kemet" spans ~full viewport width, like Fabric's "fabric" */
  color: #e9e3d9;
  letter-spacing: -0.035em; text-transform: lowercase;
  margin: clamp(20px, 3vw, 44px) 0 -0.3em;
  white-space: nowrap; user-select: none; pointer-events: none; will-change: transform;
  /* subtle debossed look: thin dark stroke + a drop shadow to read against the paper */
  -webkit-text-stroke: 1.5px rgba(11, 11, 12, 0.2);
  text-shadow: 0 2px 2px rgba(11, 11, 12, 0.08), 0 -1px 0 rgba(255, 255, 255, 0.55);
  /* fades L + R + bottom, keeps the top of the letters */
  -webkit-mask-image: radial-gradient(80% 140% at 50% 14%, #000 22%, transparent 80%);
  mask-image: radial-gradient(80% 140% at 50% 14%, #000 22%, transparent 80%);
  animation: fb-wm-drift 11s ease-in-out infinite;
}
@media (max-width: 640px) { .fb-footer-wordmark { font-size: 30vw; } }
@keyframes fb-wm-drift {
  0%   { transform: translateX(-50%) translateY(0) scale(1); }
  50%  { transform: translateX(-50%) translateY(-18px) scale(1.012); }
  100% { transform: translateX(-50%) translateY(0) scale(1); }
}
html[dir="rtl"] .fb-footer-wordmark { font-family: var(--font-ar); font-weight: 800; text-transform: none; }

/* ==========================================================================
   Floating actions
   ========================================================================== */
.fb-floats { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 12px; z-index: 150; }
html[dir="rtl"] .fb-floats { right: auto; left: 18px; }
.fb-float { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-md); transition: transform .2s ease; }
.fb-float:hover { transform: translateY(-3px); }
.fb-float--wa { background: #25d366; color: #fff; }
.fb-float--wa svg { width: 27px; height: 27px; }
.fb-float--top { background: var(--ink); color: #fff; }
.fb-float--top svg { width: 19px; height: 19px; }
.fb-float--top[hidden] { display: none; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(46px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1), filter .9s ease;
  filter: blur(6px);
  will-change: opacity, transform, filter;
}
.reveal.in { opacity: 1; transform: none; filter: none; }
/* stagger direct children of grid-like reveals */
.fb-cards3.reveal.in > *,
.fb-results-grid.reveal.in > *,
.fb-reviews-grid.reveal.in > *,
.fb-marquee-track.reveal.in > * { animation: fb-rise .7s cubic-bezier(.16,1,.3,1) both; }
.fb-cards3.reveal.in > *:nth-child(2), .fb-results-grid.reveal.in > *:nth-child(2), .fb-reviews-grid.reveal.in > *:nth-child(2) { animation-delay: .1s; }
.fb-cards3.reveal.in > *:nth-child(3), .fb-results-grid.reveal.in > *:nth-child(3), .fb-reviews-grid.reveal.in > *:nth-child(3) { animation-delay: .2s; }
.fb-cards3.reveal.in > *:nth-child(4) { animation-delay: .3s; }
@keyframes fb-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* generic scroll parallax hook — JS sets --p (-1..1) */
[data-parallax] { will-change: transform; transform: translate3d(0, calc(var(--p, 0) * var(--p-amt, 40px)), 0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .fb-footer::before, .fb-footer-wordmark, .fb-marquee-track { animation: none !important; }
  .reveal.in > *, [data-parallax] { animation: none !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .fb-nav, .fb-header-cta .fb-lang, .fb-header-cta .fb-btn { display: none; }
  .fb-burger { display: flex; }
  .fb-hero { grid-template-columns: 1fr; padding-bottom: 0; }
  .fb-hero-text { padding: 80px var(--pad) 28px; }
  html[dir="rtl"] .fb-hero-text { padding: 80px var(--pad) 28px; }
  .fb-hero-visual { min-height: 480px; margin-top: 0; }
  .fb-hero-panel { border-radius: 0; }
  .fb-hero-shot { top: 13%; left: 8%; right: auto; width: 100%; max-width: 420px; }
  html[dir="rtl"] .fb-hero-shot { left: auto; right: 8%; }
  .fb-hero-grid { top: 3%; left: -30px; width: 92%; max-width: 420px; }
  html[dir="rtl"] .fb-hero-grid { left: auto; right: -30px; }
  .fb-hero-ui { width: 46%; max-width: 208px; }
  .fb-hero-ui.u1 { top: 6%; left: 3%; }
  .fb-hero-ui.u2 { display: none; }
  .fb-hero-ui.u3 { top: auto; bottom: 8%; left: auto; right: 3%; }
  html[dir="rtl"] .fb-hero-ui.u1 { left: auto; right: 3%; }
  html[dir="rtl"] .fb-hero-ui.u3 { right: auto; left: 3%; }
  .fb-statement-inner, .fb-intel-grid, .fb-split-row, .fb-footer-news, .fb-morph-grid { grid-template-columns: 1fr; }
  .fb-split-row:nth-child(even) .fb-split-visual { order: 0; }
  .fb-cards3, .fb-reviews-grid { grid-template-columns: 1fr 1fr; }
  .fb-results-grid { grid-template-columns: 1fr 1fr; }
  .fb-result--navy { grid-column: span 2; }
  .fb-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .fb-footer-news h2 { max-width: none; }
  .fb-statement-graphic { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 620px) {
  .fb-cards3, .fb-reviews-grid, .fb-results-grid, .fb-footer-grid { grid-template-columns: 1fr; }
  .fb-result--navy { grid-column: span 1; }
  .fb-hero-ui.u1 { max-width: 176px; }
  .fb-hero-actions { flex-direction: column; align-items: stretch; }
  .fb-hero-actions .fb-btn { justify-content: center; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.fb-faq { max-width: 780px; margin: 40px auto 0; }
.fb-faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.fb-faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-family: var(--font-sans); font-weight: 600; font-size: 1.02rem; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
html[dir="rtl"] .fb-faq summary { font-family: var(--font-ar); }
.fb-faq summary::-webkit-details-marker { display: none; }
.fb-faq summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); flex: none; transition: transform .2s ease; }
.fb-faq details[open] summary::after { transform: rotate(45deg); }
.fb-faq details p { padding: 0 0 20px; font-size: 0.96rem; max-width: 62ch; }

/* ==========================================================================
   Lead modal
   ========================================================================== */
.lead-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(20,30,55,0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lead-modal.is-open { display: flex; }
.lead-modal-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); position: relative; max-height: 92vh; overflow-y: auto; }
.lead-modal-close { position: absolute; top: 14px; right: 16px; font-size: 1.6rem; line-height: 1; color: var(--muted); }
html[dir="rtl"] .lead-modal-close { right: auto; left: 16px; }
.lead-modal-card h3 { font-size: 1.5rem; }
.lead-modal-card > p { font-size: 0.92rem; margin-top: 8px; margin-bottom: 20px; }
.lead-modal-card .fb-field { margin-bottom: 12px; }
.lead-modal-card input, .lead-modal-card select, .lead-modal-card textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); background: #fff; outline: none;
}
.lead-modal-card input:focus, .lead-modal-card select:focus, .lead-modal-card textarea:focus { border-color: var(--ink); }
.lead-modal-card .hint { font-size: 0.76rem; color: var(--muted); margin-top: 4px; }
.lead-modal-card button[type="submit"] { width: 100%; justify-content: center; margin-top: 6px; }
.lead-modal-card .reassure { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ==========================================================================
   Inner pages (About / Contact / …) — simple centered hero, prose,
   founder split, info-card grids, contact layout. Reuses fb-wrap/fb-section/
   fb-eyebrow/fb-h2/fb-lede/fb-btn/fb-checklist/fb-cta-inner/lead-modal-card.
   ========================================================================== */
.fb-page-hero { padding: clamp(150px, 20vw, 210px) 0 clamp(20px, 4vw, 40px); text-align: center; }
.fb-page-hero .fb-eyebrow { justify-content: center; }
.fb-page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 18ch; margin: 18px auto 0; }
.fb-page-hero .fb-lede { margin: 18px auto 0; }

.fb-prose { max-width: 70ch; margin: 0 auto; text-align: center; }
.fb-prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 20px; }
.fb-prose p { font-size: 1.05rem; }

.fb-founder { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.fb-founder img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.fb-founder h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.fb-founder .role { display: block; font-family: var(--font-sans); font-weight: 600; font-size: 0.88rem; color: var(--brand); margin-top: 4px; }
.fb-founder p { margin-top: 16px; font-size: 0.98rem; }
@media (max-width: 720px) { .fb-founder { grid-template-columns: 1fr; } .fb-founder img { max-width: 220px; } }

.fb-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fb-info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.fb-info-card .step-num { font-family: var(--font-serif); font-size: 1.5rem; color: var(--brand); margin-bottom: 10px; }
.fb-info-card h3 { font-size: 1.08rem; font-weight: 600; font-family: var(--font-sans); }
.fb-info-card p { margin-top: 8px; font-size: 0.92rem; }
@media (max-width: 960px) { .fb-info-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fb-info-grid { grid-template-columns: 1fr; } }
.fb-info-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .fb-info-grid--3 { grid-template-columns: 1fr; } }

.fb-strip { background: var(--periwinkle-soft); border-radius: var(--radius); padding: 20px 28px; text-align: center; }
.fb-strip p { font-size: 0.92rem; color: var(--ink); }

.fb-contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .fb-contact-grid { grid-template-columns: 1fr; } }

.fb-contact-info { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 36px); }
.fb-contact-info h3 { font-size: 1.2rem; margin-bottom: 20px; }
.fb-contact-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.fb-contact-list li { font-size: 0.95rem; }
.fb-contact-list strong { display: block; font-family: var(--font-sans); font-weight: 600; font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }
.fb-contact-list a { color: var(--brand); font-weight: 600; }
.fb-contact-list a:hover { text-decoration: underline; }
.fb-contact-list .sub { display: block; margin-top: 2px; color: var(--body); font-size: 0.88rem; }

.fb-embed-form.lead-modal-card { max-width: none; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
