/* Homepage rebuild: About, richer service rows, partner strip and the partner hub.
   Everything is readable at rest. The hub's resting state (no JS, reduced motion)
   is the finished picture: every platform lit and ticked. */

/* ── About Falmera: illustrated cards on a warm glow, facts on a navy ribbon ── */
.fm-home-about { position: relative; isolation: isolate; }
.fm-home .fm-home-about { padding-top: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.fm-home-about::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 12% 70%, rgb(var(--fm-sand-rgb) / 0.55), transparent 70%),
    radial-gradient(35% 45% at 88% 35%, rgb(var(--fm-violet-rgb) / 0.10), transparent 70%),
    radial-gradient(30% 40% at 60% 95%, rgb(var(--fm-magenta-rgb) / 0.08), transparent 70%);
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}
.fm-home-about__grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.fm-home-about__pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.fm-about-card {
  position: relative; display: grid; gap: 0.65rem; align-content: start;
  padding: 0.75rem 0.75rem 1.75rem; border-radius: 26px;
  background: rgb(255 255 255 / 0.72); border: 1px solid rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.8) inset, 0 30px 60px -36px rgb(var(--fm-navy-rgb) / 0.35);
  transition: transform 500ms var(--fm-ease), box-shadow 500ms var(--fm-ease);
}
.fm-about-card:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgb(255 255 255 / 0.8) inset, 0 40px 70px -34px rgb(var(--fm-violet-rgb) / 0.45); }
.fm-about-card > :not(.fm-about-card__art) { margin-inline: 1rem; }
.fm-about-card__art {
  position: relative; margin: 0 0 0.6rem; aspect-ratio: 240 / 110; overflow: hidden; border-radius: 18px;
  background:
    radial-gradient(70% 90% at 15% 0%, rgb(var(--fm-blue-rgb) / 0.35), transparent 60%),
    radial-gradient(70% 90% at 100% 100%, rgb(var(--fm-magenta-rgb) / 0.32), transparent 60%),
    linear-gradient(160deg, #141B36, var(--fm-navy));
}
.fm-about-card__art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgb(var(--fm-cream-rgb) / 0.12) 1px, transparent 1.3px); background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent); mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
}
.fm-about-card__art svg { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.fm-about-art__rail { fill: none; stroke: rgb(var(--fm-cream-rgb) / 0.18); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 3 5; }
.fm-about-art__runner { filter: drop-shadow(0 0 5px rgb(var(--fm-cream-rgb) / 0.9)); }
.fm-about-art__labels text, .fm-about-art__rows text {
  font: 500 9px/1 var(--fm-font-label); letter-spacing: 0.08em; text-transform: uppercase; fill: rgb(var(--fm-cream-rgb) / 0.72); text-anchor: middle;
}
.fm-about-art__rows text { font: 600 11px/1 var(--fm-font-body); letter-spacing: 0; text-transform: none; fill: var(--fm-cream); text-anchor: start; }
.fm-about-art__tile rect { fill: rgb(var(--fm-cream-rgb) / 0.08); stroke: rgb(var(--fm-cream-rgb) / 0.28); stroke-width: 1; }
.fm-about-art__ico { fill: none; stroke: var(--fm-cream); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fm-about-art__sheet { fill: rgb(var(--fm-cream-rgb) / 0.07); stroke: rgb(var(--fm-cream-rgb) / 0.22); }
.fm-about-art__box { stroke: rgb(var(--fm-cream-rgb) / 0.35); stroke-width: 1.4; }
.fm-about-art__stamp text { font: 700 10px/1 var(--fm-font-label); letter-spacing: 0.08em; text-transform: uppercase; fill: #fff; text-anchor: middle; }
.fm-home-about__num {
  font: 500 var(--fm-text-xs)/1 var(--fm-font-label); letter-spacing: 0.1em;
  background: var(--fm-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; width: max-content;
}
.fm-about-card h3 { margin-top: 0; margin-bottom: 0; font-size: var(--fm-text-xl); line-height: 1.2; letter-spacing: -0.02em; }
.fm-about-card p { margin-top: 0; margin-bottom: 0; color: var(--fm-text-muted); line-height: 1.65; }

.fm-home-about__facts {
  margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  padding: 0.5rem; border-radius: 26px; overflow: hidden;
  background: radial-gradient(60% 140% at 0% 0%, rgb(var(--fm-blue-rgb) / 0.35), transparent 60%),
              radial-gradient(60% 140% at 100% 100%, rgb(var(--fm-red-rgb) / 0.28), transparent 60%), var(--fm-navy);
  box-shadow: 0 30px 60px -34px rgb(var(--fm-navy-rgb) / 0.6);
}
.fm-home-about__facts > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.9rem; align-content: center; padding: 1.15rem 1.35rem; position: relative; }
.fm-home-about__facts dt { align-self: end; }
.fm-home-about__facts dd { align-self: start; }
.fm-home-about__facts svg {
  grid-row: 1 / span 2; align-self: center; width: 42px; height: 42px; padding: 9px; border-radius: 12px;
  fill: none; stroke: var(--fm-cream); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  background: rgb(var(--fm-cream-rgb) / 0.08); border: 1px solid rgb(var(--fm-cream-rgb) / 0.14);
}
.fm-home-about__facts dt { font: 500 var(--fm-text-xs)/1.4 var(--fm-font-label); letter-spacing: 0.08em; text-transform: uppercase; color: #8FB8FF; }
.fm-home-about__facts dd { margin: 0.15rem 0 0; font-family: var(--fm-font-display); font-weight: 600; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--fm-cream); }
@media (min-width: 900px) {
  .fm-home-about__pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
  .fm-home-about__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fm-home-about__facts > div + div::before {
    content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px;
    background: linear-gradient(transparent, rgb(var(--fm-cream-rgb) / 0.25), transparent);
  }
}

/* ── From the founder: a signed note, lit word by word ───────────────── */
.fm-founder { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(4.5rem, 3rem + 7vw, 10rem); }
.fm-founder__scene { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.fm-founder__scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; animation: fm-founder-drift 36s ease-in-out infinite alternate; }
.fm-founder__scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(var(--fm-cream-rgb) / 0.35), rgb(var(--fm-cream-rgb) / 0) 40%, rgb(var(--fm-cream-rgb) / 0.15)); }
@keyframes fm-founder-drift { from { transform: scale(1.08) translateX(-1.5%); } to { transform: scale(1.02) translateX(1.5%); } }
.fm-founder .fm-rail__label { color: var(--fm-navy); }
.fm-founder__card {
  position: relative; display: grid; gap: clamp(1.75rem, 1rem + 3vw, 3.5rem); align-items: center;
  padding: clamp(1.75rem, 1rem + 4vw, 4rem); border-radius: 32px; isolation: isolate; overflow: hidden;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.9), rgb(var(--fm-cream-soft-rgb) / 0.84));
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 50px 100px -50px rgb(var(--fm-navy-rgb) / 0.6);
}
.fm-founder__card::before {   /* gradient hairline border */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(120deg, rgb(var(--fm-blue-rgb) / 0.6), rgb(var(--fm-violet-rgb) / 0.35), rgb(var(--fm-magenta-rgb) / 0.35), rgb(var(--fm-red-rgb) / 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.fm-founder__card::after {    /* warm glow behind the portrait */
  content: ""; position: absolute; z-index: -2; left: -10%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--fm-sand-rgb) / 0.75), transparent 65%); pointer-events: none;
}
.fm-founder__who { display: grid; justify-items: center; text-align: center; gap: 0.2rem; }
.fm-founder__portrait { position: relative; display: grid; place-items: center; width: clamp(132px, 10vw + 80px, 184px); aspect-ratio: 1; margin-bottom: 1rem; }
.fm-founder__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--fm-blue), var(--fm-violet), var(--fm-magenta), var(--fm-red), var(--fm-sand), var(--fm-blue));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: fm-orbit-spin 14s linear infinite;
}
.fm-founder__portrait img {
  width: 78%; height: 78%; padding: 18%; border-radius: 50%; object-fit: contain;
  background: radial-gradient(circle at 30% 25%, #fff, var(--fm-cream)); box-shadow: 0 20px 40px -20px rgb(var(--fm-navy-rgb) / 0.45);
}
.fm-founder__name { margin: 0; font-family: var(--fm-font-display); font-weight: 600; font-size: var(--fm-text-xl); letter-spacing: -0.02em; color: var(--fm-navy); }
.fm-founder__role { margin: 0; font: 500 var(--fm-text-xs)/1.5 var(--fm-font-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fm-blue); }
.fm-founder__place { margin: 0; font-size: var(--fm-text-sm); color: var(--fm-text-muted); }
.fm-founder__quote { margin: 0; display: grid; gap: 1.25rem; }
.fm-founder__mark { width: clamp(44px, 3vw + 24px, 64px); height: auto; }
.fm-founder__quote blockquote { margin: 0; display: grid; gap: 1.25rem; }
.fm-founder__lead {
  margin: 0; font-family: var(--fm-font-display); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.75rem); color: var(--fm-navy); text-wrap: balance;
}
.fm-founder__lead .fm-word { transition: opacity 600ms var(--fm-ease), color 600ms var(--fm-ease); }
.fm-founder__lead.is-armed .fm-word { opacity: 0.18; }
.fm-founder__lead .fm-word.is-accent { background: var(--fm-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fm-founder__body { margin: 0; max-width: 58ch; font-size: var(--fm-text-lg); line-height: 1.7; color: var(--fm-text-muted); }
.fm-founder__sign { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 0.5rem; }
.fm-founder__signature {
  font-family: var(--fm-font-display); font-style: italic; font-weight: 500; font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  letter-spacing: -0.04em; line-height: 1.15; padding: 0.05em 0.2em 0.1em 0.02em; transform: rotate(-4deg);
  background: var(--fm-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (min-width: 900px) {
  .fm-founder__card { grid-template-columns: minmax(200px, 3fr) minmax(0, 8fr); }
  .fm-founder__who { justify-items: start; text-align: left; }
}

/* ── Service rows: what's included, and a "good fit" note on the preview ─ */
.fm-service-row__includes { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }
.fm-service-row__includes span {
  padding: 0.28rem 0.65rem; border-radius: var(--fm-radius-pill);
  background: rgb(var(--fm-navy-rgb) / 0.05); color: var(--fm-navy);
  font-size: 0.75rem; font-weight: 500; line-height: 1.3;
}
.fm-service-preview__fit { display: none; }
@media (max-width: 1023px) {
  .fm-service-row__includes { display: block; margin-top: 0.3rem; font-size: 0.78rem; line-height: 1.5; color: var(--fm-text-muted); }
  .fm-service-row__includes span { display: inline; padding: 0; background: none; color: inherit; font-size: inherit; }
  .fm-service-row__includes span + span::before { content: " · "; }
}
@media (min-width: 1024px) {
  .fm-service-preview__fit {
    display: block; position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1; margin: 0;
    padding: 0.9rem 1.1rem; border-radius: var(--fm-radius-md);
    background: rgb(var(--fm-cream-soft-rgb) / 0.95); box-shadow: var(--fm-shadow-md);
    color: var(--fm-navy); font-size: 0.9rem; line-height: 1.5;
    opacity: 0; transform: translateY(8px);
    transition: opacity var(--fm-dur-slow) var(--fm-ease), transform var(--fm-dur-slow) var(--fm-ease);
  }
  .fm-service-preview__fit.is-active { opacity: 1; transform: none; }
  .fm-service-preview__fit b { display: block; margin-bottom: 0.2rem; font: 500 var(--fm-text-xs)/1.4 var(--fm-font-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fm-blue); }
}

/* ── Partners: Falmera at the centre, partner logos in orbit ───────────── */
.fm-partners { overflow: clip; }
.fm-orbit { position: relative; margin-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
/* The receptionist follows straight on (How it works now lives only on process.html), and the orbit
   already ends in open sky, so the shared seam needs the tight section rhythm, not two full paddings. */
.fm-home #partners { padding-bottom: calc(var(--fm-section-y) * 0.6); }
.fm-orbit__stage {
  --spin: 70s;
  position: relative; width: min(100%, 640px); aspect-ratio: 1; margin-inline: auto;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 700ms var(--fm-ease);
}

/* Warm brand glow behind the core, slowly breathing. */
.fm-orbit__glow {
  position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; filter: blur(48px); opacity: 0.55;
  background: conic-gradient(from 0deg, var(--fm-blue), var(--fm-violet), var(--fm-magenta), var(--fm-red), var(--fm-sand), var(--fm-blue));
  animation: fm-orbit-breathe 9s ease-in-out infinite, fm-orbit-spin 40s linear infinite;
}

/* Thin ring lines, each with small satellites gliding along it. */
.fm-orbit__track {
  position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgb(var(--fm-cream-rgb) / 0.12); transform: translate(-50%, -50%);
}
.fm-orbit__track--outer { width: 84%; animation: fm-orbit-spin-c 26s linear infinite; }
.fm-orbit__track--inner { width: 48%; border-style: dashed; border-color: rgb(var(--fm-cream-rgb) / 0.16); animation: fm-orbit-spin-c 18s linear infinite reverse; }
.fm-orbit__track i {
  position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--fm-sand); box-shadow: 0 0 12px 2px rgb(var(--fm-sand-rgb) / 0.8);
}
.fm-orbit__track--outer i + i { top: auto; bottom: -3px; background: var(--fm-magenta); box-shadow: 0 0 12px 2px rgb(var(--fm-magenta-rgb) / 0.8); }
.fm-orbit__track--inner i { background: #8FB8FF; box-shadow: 0 0 12px 2px rgb(143 184 255 / 0.8); }

/* The rings turn; each logo turns back the other way so it stays upright. */
.fm-orbit__ring {
  position: absolute; left: 50%; top: 50%; aspect-ratio: 1; margin: 0; padding: 0; list-style: none;
  transform: translate(-50%, -50%); animation: fm-orbit-spin-c var(--spin) linear infinite;
}
.fm-orbit__ring--outer { width: 84%; }
.fm-orbit__ring--inner { width: 48%; animation-direction: reverse; --spin: 50s; }
.fm-orbit__item { position: absolute; left: var(--x); top: var(--y); width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.fm-orbit__ring--outer .fm-orbit__item { width: 14.5%; }
.fm-orbit__ring--inner .fm-orbit__item { width: 27%; }
.fm-orbit__logo {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: rgb(var(--fm-cream-rgb) / 0.06); border: 1px solid rgb(var(--fm-cream-rgb) / 0.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: rgb(var(--fm-cream-rgb) / 0.78);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 18px 40px -18px rgb(0 0 0 / 0.6);
  animation: fm-orbit-spin var(--spin) linear infinite reverse;
  transition: color 500ms var(--fm-ease), border-color 500ms var(--fm-ease), box-shadow 500ms var(--fm-ease), transform 500ms var(--fm-ease);
}
.fm-orbit__ring--inner .fm-orbit__logo { animation-direction: normal; }
.fm-orbit__logo .fm-plogo { width: 44%; height: 44%; }
.fm-orbit__logo .fm-plogo--wide { width: 72%; height: 72%; }
.fm-orbit__word { font-family: var(--fm-font-display); font-weight: 700; font-size: clamp(0.7rem, 0.5rem + 0.6vw, 0.95rem); letter-spacing: -0.02em; }
.fm-orbit__logo:hover, .fm-orbit__item.is-lit .fm-orbit__logo {
  color: var(--lit); border-color: color-mix(in srgb, var(--lit) 55%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--lit) 10%, transparent), 0 0 36px -4px color-mix(in srgb, var(--lit) 60%, transparent);
}

/* Falmera core, with a wave that rolls outwards and lights each logo it reaches. */
.fm-orbit__core {
  position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 32%;
  background: linear-gradient(160deg, #fff, var(--fm-cream));
  box-shadow: 0 0 0 10px rgb(var(--fm-cream-rgb) / 0.06), 0 0 0 22px rgb(var(--fm-cream-rgb) / 0.03), 0 30px 60px -20px rgb(0 0 0 / 0.6);
}
.fm-orbit__core img { width: 60%; height: auto; }
.fm-orbit__wave {
  position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(1);
  border-radius: 50%; border: 2px solid rgb(var(--fm-sand-rgb) / 0.7); opacity: 0; pointer-events: none;
}
.fm-orbit.is-wave .fm-orbit__wave { animation: fm-orbit-wave 2.4s cubic-bezier(0.2, 0.7, 0.3, 1); }


/* Offscreen or paused: every moving part rests. */
.fm-orbit.is-paused *, .fm-orbit.is-paused *::before { animation-play-state: paused !important; }

@keyframes fm-orbit-spin { to { transform: rotate(360deg); } }
@keyframes fm-orbit-spin-c { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes fm-orbit-breathe { 0%, 100% { opacity: 0.42; } 50% { opacity: 0.7; } }
@keyframes fm-orbit-wave {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(4.4); }
}

@media (max-width: 559px) {
  .fm-orbit__stage { width: 100%; }
  .fm-orbit__ring--outer .fm-orbit__item { width: 17%; }
  .fm-orbit__ring--inner .fm-orbit__item { width: 30%; }
}

@media (prefers-reduced-motion: reduce) {
  .fm-orbit__glow, .fm-orbit__track, .fm-orbit__ring, .fm-orbit__logo { animation: none !important; }
  .fm-orbit__stage { transform: none; }
  .fm-about-card, .fm-about-card:hover { transform: none; transition: none; }
  .fm-founder__ring, .fm-founder__scene img { animation: none; }
}
