/* Original SIL OFL brand fonts, served locally to avoid font loading shifts. */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-mono-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-mono-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(../assets/fonts/instrument-sans-variable.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../assets/fonts/plus-jakarta-sans-variable.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Figma refresh: shared floating navigation and focused homepage refinements.
   Uses the existing media, native scrolling and one-time motion implementation. */
/* --fm-header-h and the whole header live in css/falmera-nav.css. */
.fm .fm-btn { min-height: 44px; max-width: 100%; white-space: normal; text-align: center; }
/* Reserve progressive-enhancement controls before their script enables them. */
.fm-work-page .fm-work-window__expand[hidden] { display: block !important; visibility: hidden; }
.fm-work-page .fm-work-demo__play[hidden] { display: inline-flex !important; visibility: hidden; }
/* Keep the quote form below the first screen while catalog cards load. */
.fm-pricing__status[data-pricing-status]:not(.is-error) { min-height: max(24rem, calc(100svh - 30rem)); }
.fm-home .fm-hero__copy { gap: 0.75rem; }
.fm-home .fm-hero__title { font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1.15; }
.fm-home .fm-hero__accent { color: var(--fm-navy); }
.fm-home .fm-hero__lead { font-size: 1rem; line-height: 1.65; }
.fm-home .fm-hero__ctas { padding-top: 0; }
.fm-home #home-work { padding-top: 3rem; padding-bottom: 0; }
.fm-home #home-work + #services { padding-top: 2.5rem; } /* one short gap after the project list */
.fm-home #home-work .fm-rail { padding-top: 0; }
.fm-home .fm-home-project h3 a,
.fm-home :is(#home-work, #how) .fm-rail__aside {
  color: #fff; background: var(--fm-gradient-cta);
  border-radius: 8px; padding: 0.5rem 0.75rem;
  text-decoration: none; box-decoration-break: clone;
}
.fm-home .fm-home-project h3 a { font-size: clamp(1.125rem, 1.6vw, 1.375rem); }
.fm-home :is(#home-work, #how) .fm-rail__aside { font-size: 1rem; min-height: 44px; }
.fm-home :is(#home-work, #how) .fm-rail__aside::after { display: none; }
.fm-home #ai-receptionist .fm-cluster { align-items: flex-start; flex-direction: column; }
.fm-home .fm-steps-summary .fm-card { border-top-color: var(--fm-border); }
.fm-services-hero + #websites ~ :is(#ai-assistants, #automation) { background: var(--fm-sand); }
@media (min-width: 1024px) {
  .fm-home :is(#home-work, #how) .fm-rail { grid-template-columns: 240px minmax(0, 1fr); }
  .fm-home :is(#home-work, #how) .fm-rail__main { grid-column: 2; grid-row: 1; max-width: none; }
  .fm-home :is(#home-work, #how) .fm-rail__main .fm-lead { max-width: calc(100% - 175px); }
  .fm-home :is(#home-work, #how) .fm-rail__aside { grid-column: 2; grid-row: 1; align-self: end; justify-self: end; }
}
@media (max-width: 1023px) {
  .fm-home .fm-hero__title > span { white-space: normal; }
  .fm-home .fm-hero__title { width: auto; max-width: 100%; }
}
@media (max-width: 559px) {
  .fm .fm-page-hero { padding-top: 2rem; }
  .fm .fm-page-hero .fm-h1 { font-size: clamp(2rem, 8.8vw, 2.5rem); line-height: 1.12; }
  .fm .fm-hero-split .fm-h1 > .fm-gradient-text { display: block; }
  /* Keep the approved text-left / scene-right composition on phones. */
  .fm-home .fm-hero__title { font-size: clamp(1.75rem, 7.2vw, 2rem); line-height: 1.12; }
  .fm-home .fm-hero__lead { font-size: 0.9375rem; line-height: 1.45; }
  .fm-home #home-work { padding-top: 2.5rem; }
  .fm-home .fm-home-project h3 a { max-width: 100%; }
}
