/* Definitive Fontemaggi site: header, menu and footer from the preview reference,
   new home sections and the 404 page, on top of the Home 4 editorial system. */
@font-face {
    font-family: FontemaggiDisplay;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/bebas-neue-latin.woff2') format('woff2');
}
@font-face {
    font-family: Oswald;
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url('../fonts/oswald-latin-variable.woff2') format('woff2');
}

:root {
    --fm-primary: #086e8a;
    --fm-primary-dark: #075870;
    --fm-secondary: #89b5be;
    --fm-dark: #073753;
    --fm-footer: #083753;
    --fm-head: Oswald, 'Arial Narrow', sans-serif;
    --fm-display: FontemaggiDisplay, Impact, 'Arial Narrow', sans-serif;
    --fm-ease: cubic-bezier(.22, .61, .36, 1);
}

/* In-page jumps stop right under the solid header (76px, 68px on phones). */
html:has(body.fm-site) { scroll-padding-top: 76px; }
@media (max-width: 767.98px) {
    html:has(body.fm-site) { scroll-padding-top: 68px; }
}

/* Buttons ---------------------------------------------------------------- */
.fm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 50px;
    padding: 13px 24px;
    border: 1px solid var(--fm-primary);
    border-radius: 0;
    background: var(--fm-primary);
    color: #fff;
    font-family: var(--fm-display);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: .1em;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: background-color .25s var(--fm-ease), border-color .25s var(--fm-ease), color .25s var(--fm-ease);
}
.fm-btn:hover { background: var(--fm-dark); border-color: var(--fm-dark); color: #fff; }
.fm-btn--outline { background: transparent; color: var(--fm-primary); }
.fm-btn--outline:hover { background: var(--fm-primary); border-color: var(--fm-primary); }
.fm-btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .8); color: #fff; }
.fm-btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--fm-dark); }
.fm-btn svg { flex-shrink: 0; }

/* Header ----------------------------------------------------------------- */
.fm-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1030;
    height: 96px;
    color: #fff;
    transition: background-color .35s var(--fm-ease), height .35s var(--fm-ease), box-shadow .35s var(--fm-ease), color .35s var(--fm-ease);
}
.fm-header::before {
    content: '';
    position: absolute;
    inset: 0 0 -48px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 55, 83, .62) 0%, rgba(7, 55, 83, .28) 55%, rgba(7, 55, 83, 0) 100%);
    transition: opacity .35s var(--fm-ease);
}
.fm-header__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 48px;
}
.fm-header__left { justify-self: start; }
.fm-burger {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    padding: 6px 4px 6px 0;
    border: 0;
    background: none;
    color: inherit;
    font-family: var(--fm-head);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    cursor: pointer;
}
.fm-burger__lines { display: grid; gap: 6px; width: 26px; }
.fm-burger__lines span { display: block; height: 2px; background: currentColor; transition: width .3s var(--fm-ease); }
.fm-burger__lines span:nth-child(2) { width: 70%; }
.fm-burger:hover .fm-burger__lines span:nth-child(2) { width: 100%; }

.fm-brand { display: flex; align-items: center; color: inherit; }
.fm-brand__logo {
    width: auto;
    height: 62px;
    filter: brightness(0) invert(1);
    transition: height .35s var(--fm-ease), filter .35s var(--fm-ease);
}
.fm-brand__divider,
.fm-brand__partner {
    max-width: 140px;
    overflow: hidden;
    transition: opacity .3s var(--fm-ease), max-width .35s var(--fm-ease), margin .35s var(--fm-ease);
}
.fm-brand__divider { width: 1px; height: 44px; margin: 0 18px; background: rgba(255, 255, 255, .6); }
.fm-brand__partner span {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, .85);
    font-family: Inter, Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.fm-brand__partner img { width: auto; height: 30px; }

.fm-header__right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.fm-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: inherit;
    font-family: var(--fm-head);
    font-size: 14px;
    letter-spacing: .12em;
    white-space: nowrap;
}
.fm-header__phone:hover { color: var(--fm-secondary); }
.fm-header .fm-header__cta {
    min-height: 40px;
    padding: 9px 18px;
    font-family: var(--fm-head);
    font-size: 12.5px;
    letter-spacing: .14em;
    white-space: nowrap;
}

.fm-lang__toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: inherit;
    font-family: var(--fm-head);
    font-size: 14px;
    letter-spacing: .12em;
    cursor: pointer;
}
.fm-lang__toggle svg { transition: transform .25s var(--fm-ease); }
.fm-lang__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.fm-lang__menu {
    --bs-dropdown-min-width: 190px;
    --bs-dropdown-padding-y: 8px;
    --bs-dropdown-border-radius: 0;
    --bs-dropdown-border-width: 0;
    --bs-dropdown-link-active-bg: var(--fm-dark);
    box-shadow: 0 18px 40px rgba(7, 55, 83, .18);
}
.fm-lang__menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    padding: 8px 20px;
    color: #1e3a48;
    font-size: 14px;
}
.fm-lang__menu .dropdown-item:hover,
.fm-lang__menu .dropdown-item:focus { background: #eef3f4; color: var(--fm-dark); }
.fm-lang__menu .dropdown-item[aria-current] { font-weight: 600; box-shadow: inset 3px 0 0 var(--fm-primary); }
.fm-lang__code { width: 22px; color: var(--fm-primary); font-family: var(--fm-head); font-size: 12px; letter-spacing: .12em; }

.fm-header.is-scrolled {
    height: 76px;
    background: #fff;
    color: var(--fm-dark);
    box-shadow: 0 6px 24px rgba(7, 55, 83, .08);
}
.fm-header.is-scrolled::before { opacity: 0; }
.fm-header.is-scrolled .fm-brand__logo { height: 50px; filter: none; }
.fm-header.is-scrolled .fm-brand__divider,
.fm-header.is-scrolled .fm-brand__partner { max-width: 0; margin: 0; opacity: 0; }
.fm-header.is-scrolled .fm-header__phone:hover { color: var(--fm-primary); }

.fm-header :is(a, button):focus-visible { outline: 2px solid var(--fm-secondary); outline-offset: 3px; }
.fm-header.is-scrolled :is(a, button):focus-visible { outline-color: var(--fm-primary); }

/* Menu ------------------------------------------------------------------- */
.fm-menu.offcanvas {
    --bs-offcanvas-width: min(440px, 100vw);
    border: 0;
    background: var(--fm-dark);
    color: #fff;
}
.fm-menu__head {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 26px 32px 18px;
}
.fm-menu__brand img { width: auto; height: 52px; filter: brightness(0) invert(1); }
.fm-menu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    border: 0;
    background: none;
    color: #fff;
    opacity: .85;
    transition: opacity .25s, transform .35s var(--fm-ease);
}
.fm-menu__close:hover { opacity: 1; transform: rotate(90deg); }
.fm-menu__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 32px 30px;
    /* Items fade under the logo instead of being cut when the panel scrolls. */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 100%);
}
.fm-menu__nav ul { list-style: none; margin: 0; padding: 0; }
.fm-menu__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fm-menu__row > a {
    position: relative;
    display: block;
    flex: 1;
    padding: 7px 0;
    color: #fff;
    font-family: var(--fm-head);
    font-size: 23px;
    font-weight: 300;
    letter-spacing: .12em;
    line-height: 1.25;
    text-transform: uppercase;
    transition: color .25s, padding-left .3s var(--fm-ease);
}
.fm-menu__row > a:hover,
.fm-menu__row > a[aria-current="page"] { color: var(--fm-secondary); padding-left: 6px; }
.fm-menu__toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -12px;
    border: 0;
    background: none;
    color: #fff;
}
.fm-menu__plus { position: relative; width: 14px; height: 14px; }
.fm-menu__plus::before,
.fm-menu__plus::after {
    content: '';
    position: absolute;
    left: 0;
    top: 6.5px;
    width: 14px;
    height: 1.5px;
    background: currentColor;
    transition: transform .3s var(--fm-ease);
}
.fm-menu__plus::after { transform: rotate(90deg); }
.fm-menu__toggle[aria-expanded="true"] .fm-menu__plus::after { transform: rotate(0deg); }
.fm-menu__toggle:hover { color: var(--fm-secondary); }
.fm-menu__tagline {
    display: block;
    margin: -5px 0 6px;
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.fm-menu__nav .fm-menu__sub {
    margin: 2px 0 10px 2px;
    padding: 2px 0 2px 18px;
    border-left: 1px solid rgba(255, 255, 255, .18);
}
.fm-menu__sub a {
    display: block;
    padding: 5px 0;
    color: rgba(255, 255, 255, .72);
    font-family: var(--fm-head);
    font-size: 15px;
    font-weight: 300;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .25s, padding-left .3s var(--fm-ease);
}
.fm-menu__sub a:hover { color: #fff; padding-left: 5px; }
.fm-menu.show .fm-menu__item { animation: fm-menu-in .55s var(--fm-ease) both; animation-delay: calc(var(--i) * 35ms + 90ms); }
@keyframes fm-menu-in {
    from { opacity: 0; transform: translateX(-14px); }
    to { opacity: 1; transform: none; }
}
.fm-menu__footer {
    margin-top: auto;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}
.fm-menu__nav + .fm-menu__footer { margin-top: 28px; }
.fm-menu .fm-menu__cta {
    width: 100%;
    min-height: 48px;
    margin-bottom: 24px;
    font-family: var(--fm-head);
    font-size: 13px;
    letter-spacing: .16em;
}
.fm-menu :is(a, button):focus-visible { outline: 2px solid var(--fm-secondary); outline-offset: 3px; }

/* Contacts and social, shared by menu and footer --------------------------- */
.fm-contact-list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.fm-contact-list li { display: flex; align-items: flex-start; gap: 12px; padding: 5px 0; color: #fff; }
.fm-contact-list svg { flex-shrink: 0; margin-top: 3px; color: var(--fm-secondary); }
.fm-contact-list a,
.fm-contact-list address { margin: 0; color: #fff; font-style: normal; line-height: 1.6; overflow-wrap: anywhere; }
.fm-contact-list a:hover { color: var(--fm-secondary); }
.fm-social { display: flex; justify-content: center; gap: 14px; list-style: none; margin: 0; padding: 0; }
.fm-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    transition: background-color .25s, color .25s, border-color .25s;
}
.fm-social a:hover { background: #fff; border-color: #fff; color: var(--fm-dark); }
.fm-menu .fm-social { justify-content: flex-start; margin-top: 20px; }

/* Footer ----------------------------------------------------------------- */
.fm-footer { background: var(--fm-footer); color: #fff; padding: 76px 0 0; }
.fm-footer__logo { display: block; width: max-content; margin: 0 auto 58px; }
.fm-footer__logo img { width: 186px; height: auto; filter: brightness(0) invert(1); }
.fm-footer__grid { --bs-gutter-x: 32px; --bs-gutter-y: 42px; }
body.reference-home4 .fm-footer__title {
    margin: 0 0 20px;
    color: #fff;
    font-family: var(--fm-head);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .2em;
    line-height: 1.3;
    text-transform: uppercase;
}
.fm-footer__links { list-style: none; margin: 0; padding: 0; }
.fm-footer__links a,
.fm-footer__links button {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    text-align: left;
    transition: color .2s;
}
.fm-footer__links a:hover,
.fm-footer__links button:hover { color: var(--fm-secondary); }
.fm-footer__links--columns { columns: 2; column-gap: 24px; }
.fm-footer__fimaa { display: flex; align-items: center; gap: 14px; margin-top: 24px; color: rgba(255, 255, 255, .66); font-size: 13px; }
.fm-footer__fimaa img { width: auto; height: 42px; }
.fm-footer .fm-social { margin-top: 58px; }
.fm-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    margin-top: 40px;
    padding: 26px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
}
.fm-footer__bottom a { color: #fff; }
.fm-footer__bottom a:hover { color: var(--fm-secondary); }
.fm-footer :is(a, button):focus-visible { outline: 2px solid var(--fm-secondary); outline-offset: 3px; }

/* Home: video hero ----------------------------------------------------------- */
.fm-hero {
    position: relative;
    display: flex;
    align-items: center;
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    background: #0b2a3a;
    color: #fff;
}
.fm-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fm-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 37, 55, .62) 0%, rgba(7, 37, 55, .3) 46%, rgba(7, 37, 55, 0) 76%),
        linear-gradient(180deg, rgba(7, 31, 51, .38) 0%, rgba(7, 31, 51, 0) 30%, rgba(7, 31, 51, 0) 62%, rgba(6, 28, 44, .5) 100%);
}
.fm-hero__inner { position: relative; padding-top: 96px; padding-bottom: 72px; }
.fm-hero__content { max-width: 900px; text-shadow: 0 2px 12px rgba(6, 28, 44, .5), 0 6px 36px rgba(6, 28, 44, .25); }
body.reference-home4 .fm-hero__title {
    margin: 0 0 26px;
    color: #fff;
    font-family: var(--fm-display);
    font-size: clamp(72px, 8.6vw, 134px);
    font-weight: 400;
    letter-spacing: .008em;
    line-height: .96;
    text-transform: uppercase;
}
.fm-hero__kicker {
    display: block;
    margin-bottom: 22px;
    font-family: var(--fm-head);
    font-size: 14px;
    letter-spacing: .26em;
    line-height: 1.4;
}
.fm-hero__line { display: block; }
.fm-hero__lead { max-width: 580px; margin: 0; color: #fff; font-size: 17px; line-height: 1.65; }
.fm-hero__actions { display: flex; margin-top: 30px; }
.fm-hero__content > * { animation: fm-rise .9s var(--fm-ease) both; }
.fm-hero__content > :nth-child(2) { animation-delay: .12s; }
.fm-hero__content > :nth-child(3) { animation-delay: .24s; }
@keyframes fm-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}
.fm-hero__cue,
.fm-hero__toggle { position: absolute; bottom: max(28px, env(safe-area-inset-bottom)); }
.fm-hero__cue {
    left: max(24px, calc((100% - 1256px) / 2));
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    color: #fff;
    font-family: var(--fm-head);
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px #061c2c;
}
.fm-hero__cue:hover { color: var(--fm-secondary); }
.fm-hero__cue svg { animation: fm-cue 2.4s ease-in-out infinite; }
@keyframes fm-cue {
    0%, 100% { transform: none; }
    50% { transform: translateY(4px); }
}
.fm-hero__toggle {
    right: max(24px, calc((100% - 1256px) / 2));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(7, 55, 83, .3);
    color: #fff;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background-color .2s, border-color .2s;
}
.fm-hero__toggle:hover { background: rgba(7, 55, 83, .6); border-color: #fff; }
.fm-hero__toggle:focus-visible,
.fm-hero__cue:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.fm-hero__icon-play,
.fm-hero__toggle.is-paused .fm-hero__icon-pause { display: none; }
.fm-hero__toggle.is-paused .fm-hero__icon-play { display: block; }

/* Home: listings ---------------------------------------------------------- */
body.reference-home4 .property-meta {
    display: block;
    margin-bottom: 10px;
    color: var(--fm-primary);
    font-family: var(--fm-head);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.fm-more { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 56px; }

/* Home: featured and per-category previews ---------------------------------- */
.fm-js [data-fm-results]:not(.is-active) { display: none; }
.fm-preview + .fm-preview { margin-top: 72px; padding-top: 60px; border-top: 1px solid var(--line); }
.fm-preview__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
.fm-preview__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--fm-primary);
    font-family: var(--fm-head);
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
}
body.reference-home4 .fm-preview__title {
    margin: 0 0 8px;
    color: var(--ink);
    font-family: var(--fm-display);
    font-size: clamp(42px, 4.4vw, 64px);
    font-weight: 400;
    letter-spacing: .01em;
    line-height: 1;
    text-transform: uppercase;
}
.fm-preview__summary { margin: 0; color: var(--muted); font-size: 13px; }
.fm-preview__actions { display: flex; flex-shrink: 0; align-items: center; gap: 26px; }
.fm-preview__favorites {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 12px;
}
.fm-preview__favorites:hover { color: var(--fm-primary); }
body.reference-home4 .fm-preview__secondary { min-height: 50px; padding: 0; border-bottom: 1px solid #8b9c98; color: var(--ink); font-size: 13px; }
.fm-preview__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
/* Positioned so screen-reader-only text inside a card stays clipped by the
   swipeable row on phones instead of widening the layout viewport. */
.fm-preview__item { position: relative; min-width: 0; }
body.reference-home4 .fm-preview .property-card { display: flex; flex-direction: column; height: 100%; }
body.reference-home4 .fm-preview .property-body { display: flex; flex: 1; flex-direction: column; }
body.reference-home4 .fm-preview .property-bottom { margin-top: auto; }
body.reference-home4 .fm-preview .property-body h3 { font-size: 28px; }
.fm-results__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-bottom: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fm-primary);
    font-family: var(--fm-head);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.fm-results__back:hover { color: var(--ink); }
.fm-more__status { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .04em; }

/* Category multi-select inside the search ------------------------------------ */
body.reference-home4 .fm-multiselect__toggle {
    display: block;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fm-multiselect__menu {
    --bs-dropdown-border-radius: 0;
    --bs-dropdown-border-color: var(--line);
    min-width: max(100%, 260px);
    margin: 0;
    padding: 10px;
    box-shadow: 0 18px 40px rgba(25, 54, 60, .14);
}
.fm-check {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 4px 10px;
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
}
.fm-check:hover { background: #f1f4f2; }
.fm-check input { position: absolute; opacity: 0; pointer-events: none; }
.fm-check__box {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid #8b9c98;
    background: #fff;
    transition: background-color .15s, border-color .15s;
}
.fm-check__box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .15s;
}
.fm-check input:checked + .fm-check__box { background: var(--fm-primary); border-color: var(--fm-primary); }
.fm-check input:checked + .fm-check__box::after { transform: rotate(45deg) scale(1); }
.fm-check input:focus-visible + .fm-check__box { outline: 2px solid var(--fm-primary); outline-offset: 2px; }
.fm-multiselect__clear {
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    border: 0;
    border-top: 1px solid var(--line);
    background: none;
    color: var(--fm-primary);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    padding: 6px 10px 0;
}

/* Home: team -------------------------------------------------------------- */
.fm-team { padding: 112px 0 120px; background: #ebe6dc; }
.fm-team__intro { margin-bottom: 56px; --bs-gutter-y: 28px; }
body.reference-home4 .fm-team h2 {
    margin: 0;
    font-family: var(--fm-display);
    font-size: clamp(50px, 5.6vw, 82px);
    font-weight: 400;
    letter-spacing: .005em;
    line-height: .99;
    text-transform: uppercase;
}
.fm-team__intro p { margin-bottom: 26px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.fm-team__intro strong { color: var(--ink); font-weight: 600; }
.fm-team__photo { position: relative; margin: 0; overflow: hidden; aspect-ratio: 2000 / 1301; background: #d7ded7; }
.fm-team__photo img { width: 100%; height: 100%; object-fit: cover; }
.fm-team__photo figcaption {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 18px 26px 20px;
    background: rgba(7, 55, 83, .9);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}
.fm-team__photo figcaption span {
    display: block;
    margin-bottom: 4px;
    color: var(--fm-secondary);
    font-family: var(--fm-head);
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.fm-team__photo.is-reveal-ready img { clip-path: inset(7% 5% 7% 5%); transform: scale(1.06); transition: clip-path 1.25s var(--fm-ease), transform 1.6s var(--fm-ease); }
.fm-team__photo.is-reveal-ready figcaption { opacity: 0; transform: translateY(12px); transition: opacity .6s .7s var(--fm-ease), transform .6s .7s var(--fm-ease); }
.fm-team__photo.is-revealed img { clip-path: inset(0); transform: none; }
.fm-team__photo.is-revealed figcaption { opacity: 1; transform: none; }

/* Home: network ------------------------------------------------------------ */
.fm-network { position: relative; overflow: hidden; padding: 104px 0 100px; background: var(--fm-dark); color: #fff; text-align: center; }
.fm-network::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(60% 80% at 50% 0%, rgba(137, 181, 190, .16), transparent 70%);
}
.fm-network .container-xl { position: relative; }
.fm-network__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 36px 64px; list-style: none; margin: 0 0 48px; padding: 0; }
.fm-network__logos img { width: auto; height: 54px; opacity: .92; transition: opacity .25s; }
.fm-network__logos li:nth-child(2) img { height: 62px; }
.fm-network__logos li:nth-child(3) img { height: 44px; }
.fm-network__logos li:nth-child(4) img { height: 66px; }
.fm-network__logos img:hover { opacity: 1; }
.fm-network__lead { max-width: 760px; margin: 0 auto 50px; color: rgba(255, 255, 255, .86); font-size: 17px; line-height: 1.85; }
.fm-network__lead strong { color: #fff; font-weight: 600; }
body.reference-home4 .fm-network__title {
    margin: 0 0 58px;
    color: #fff;
    font-family: var(--fm-head);
    font-size: clamp(30px, 3.4vw, 48px);
    font-weight: 400;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}
.fm-network__title span { color: var(--fm-secondary); }
.fm-network__stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 56px; }
.fm-network__stats > div { padding: 6px 12px; }
.fm-network__stats > div + div { border-left: 1px solid rgba(255, 255, 255, .12); }
.fm-network__stats dt { margin-bottom: 8px; color: rgba(255, 255, 255, .82); font-size: 15px; font-weight: 400; }
.fm-network__stats dd {
    margin: 0;
    color: #fff;
    font-family: var(--fm-head);
    font-size: clamp(52px, 5vw, 72px);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.fm-network__stats sup { top: -1em; margin-left: 2px; color: var(--fm-secondary); font-size: .38em; }
.fm-network .fm-network__link { font-size: 18px; }

/* 404 -------------------------------------------------------------------- */
.fm-error {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    padding: 150px 0 120px;
    background: var(--fm-dark);
    color: #fff;
}
.fm-error__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fm-error-zoom 18s ease-out both; }
@keyframes fm-error-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.fm-error__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 37, 55, .92) 0%, rgba(7, 45, 66, .78) 46%, rgba(7, 55, 83, .35) 100%),
        linear-gradient(0deg, rgba(7, 37, 55, .55), transparent 40%);
}
.fm-error__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
.fm-error__content { max-width: 690px; }
.fm-error__roofs { display: block; margin-bottom: 26px; color: var(--fm-secondary); }
.fm-error__roofs path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: fm-draw 1.6s .2s var(--fm-ease) forwards; }
@keyframes fm-draw { to { stroke-dashoffset: 0; } }
.fm-error__kicker {
    margin: 0 0 18px;
    color: var(--fm-secondary);
    font-family: var(--fm-head);
    font-size: 14px;
    letter-spacing: .24em;
    text-transform: uppercase;
}
body.reference-home4 .fm-error__title {
    margin: 0 0 26px;
    color: #fff;
    font-family: var(--fm-display);
    font-size: clamp(60px, 8vw, 124px);
    font-weight: 400;
    letter-spacing: .01em;
    line-height: .95;
    text-transform: uppercase;
    text-shadow: 0 2px 30px rgba(0, 17, 25, .25);
}
.fm-error__title span { display: block; }
.fm-error__lead { max-width: 560px; margin: 0 0 26px; color: rgba(255, 255, 255, .9); font-size: 18px; line-height: 1.75; }
.fm-error__lead strong { color: #fff; font-weight: 600; }
.fm-error__note { margin: -10px 0 26px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.fm-error__planned {
    max-width: 560px;
    margin: 0 0 34px;
    padding: 18px 22px 20px;
    border-left: 2px solid var(--fm-secondary);
    background: rgba(7, 55, 83, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.fm-error__planned-label {
    display: block;
    margin-bottom: 6px;
    color: var(--fm-secondary);
    font-family: var(--fm-head);
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.fm-error__planned p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 15px; line-height: 1.7; }
.fm-error__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fm-error__code {
    margin: 0;
    color: transparent;
    font-family: var(--fm-display);
    font-size: clamp(160px, 24vw, 380px);
    line-height: .8;
    letter-spacing: .02em;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .5);
    user-select: none;
}
.fm-error__path {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    max-width: 1304px;
    margin: 0 auto;
    padding: 0 24px;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    letter-spacing: .04em;
}
.fm-error__path span { margin-right: 8px; font-family: var(--fm-head); letter-spacing: .18em; text-transform: uppercase; }
.fm-error__path code { color: #fff; font-size: 12px; overflow-wrap: anywhere; }

.fm-error-next { padding: 96px 0 110px; background: var(--paper); }
body.reference-home4 .fm-error-next__title {
    margin: 0 0 44px;
    font-family: var(--fm-display);
    font-size: clamp(46px, 5vw, 76px);
    font-weight: 400;
    letter-spacing: .01em;
    line-height: 1;
    text-transform: uppercase;
}
.fm-error-next__title span { color: var(--fm-primary); }
.fm-error-next__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fm-error-next__grid li + li { border-left: 1px solid var(--line); }
.fm-error-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 230px;
    padding: 28px 26px 30px;
    border: 0;
    background: none;
    color: var(--ink);
    text-align: left;
    transition: background-color .3s var(--fm-ease), color .3s var(--fm-ease);
}
.fm-error-card__index { color: var(--fm-primary); font-family: var(--fm-head); font-size: 13px; letter-spacing: .2em; }
.fm-error-card__title { margin: 64px 0 8px; font-family: var(--fm-display); font-size: 32px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.fm-error-card__text { color: var(--muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; transition: color .3s; }
.fm-error-card__arrow { position: absolute; top: 24px; right: 24px; font-size: 20px; transition: transform .3s var(--fm-ease); }
.fm-error-card:hover { background: var(--fm-dark); color: #fff; }
.fm-error-card:hover .fm-error-card__index { color: var(--fm-secondary); }
.fm-error-card:hover .fm-error-card__text { color: rgba(255, 255, 255, .78); }
.fm-error-card:hover .fm-error-card__arrow { transform: translate(3px, -3px); }
.fm-error-card:focus-visible { outline: 2px solid var(--fm-primary); outline-offset: -2px; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .fm-preview__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
    .fm-header__inner { padding: 0 32px; }
    .fm-header__right { gap: 16px; }
    .fm-header__phone span { display: none; }
    .fm-error-next__grid { grid-template-columns: repeat(2, 1fr); }
    .fm-error-next__grid li:nth-child(3) { border-left: 0; }
    .fm-error-next__grid li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 991.98px) {
    .fm-preview__head { flex-direction: column; align-items: flex-start; gap: 18px; }
    .fm-header .fm-header__cta,
    .fm-header__phone,
    .fm-brand__divider,
    .fm-brand__partner { display: none; }
    .fm-brand__logo { height: 50px; }
    .fm-network__stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .fm-network__stats > div:nth-child(3) { border-left: 0; }
    .fm-error__inner { grid-template-columns: 1fr; }
    .fm-error__code { position: absolute; right: 12px; top: -40px; font-size: 200px; opacity: .45; }
}
@media (max-width: 767.98px) {
    .fm-preview + .fm-preview { margin-top: 52px; padding-top: 44px; }
    .fm-preview__head { margin-bottom: 24px; }
    .fm-preview__actions { flex-wrap: wrap; gap: 10px 22px; }
    .fm-preview__grid {
        grid-auto-columns: 84%;
        grid-auto-flow: column;
        grid-template-columns: none;
        gap: 16px;
        margin-right: -22px;
        padding-right: 22px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-padding-right: 22px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .fm-preview__grid::-webkit-scrollbar { display: none; }
    .fm-preview__item { scroll-snap-align: start; }
    .fm-header { height: 78px; }
    .fm-header.is-scrolled { height: 68px; }
    .fm-header__inner { gap: 10px; padding: 0 16px; }
    .fm-burger__label { display: none; }
    .fm-brand__logo { height: 44px; }
    .fm-header.is-scrolled .fm-brand__logo { height: 40px; }
    .fm-menu__head { padding: 18px 22px 12px; }
    .fm-menu__brand img { height: 44px; }
    .fm-menu__body { padding: 12px 22px 26px; }
    .fm-menu__row > a { font-size: 21px; }
    .fm-hero { min-height: 560px; }
    .fm-hero__shade { background: linear-gradient(180deg, rgba(7, 43, 66, .3) 0%, rgba(7, 37, 56, .2) 28%, rgba(7, 31, 54, .5) 66%, rgba(7, 31, 54, .62) 100%); }
    .fm-hero__inner { padding-top: 90px; padding-bottom: 84px; }
    body.reference-home4 .fm-hero__title { font-size: clamp(48px, 14vw, 90px); line-height: 1; margin-bottom: 20px; }
    .fm-hero__kicker { margin-bottom: 16px; font-size: 11px; letter-spacing: .2em; }
    .fm-hero__lead { font-size: 14px; }
    .fm-hero__lead br { display: none; }
    .fm-hero__actions { margin-top: 24px; }
    .fm-hero__cue { font-size: 10px; letter-spacing: .14em; }
    .fm-footer { padding-top: 60px; }
    .fm-footer__logo { margin-bottom: 44px; }
    .fm-team { padding: 80px 0 84px; }
    .fm-team__intro { margin-bottom: 36px; }
    .fm-team__photo { aspect-ratio: 4 / 3; }
    .fm-team__photo figcaption { padding: 12px 16px 14px; font-size: 13px; }
    .fm-network { padding: 78px 0 76px; }
    .fm-network__logos { gap: 28px 40px; }
    .fm-network__logos img { height: 40px; }
    .fm-network__logos li:nth-child(2) img { height: 46px; }
    .fm-network__logos li:nth-child(3) img { height: 32px; }
    .fm-network__logos li:nth-child(4) img { height: 50px; }
    .fm-network__lead { font-size: 16px; }
    body.reference-home4 .fm-network__title { letter-spacing: .08em; }
    .fm-error { padding: 120px 0 96px; }
    .fm-error__lead { font-size: 16px; }
    .fm-error__code { top: -18px; font-size: 140px; }
    .fm-error__actions .fm-btn { flex: 1 1 100%; }
    .fm-error__path { bottom: 18px; padding: 0 22px; }
    .fm-error-next { padding: 72px 0 80px; }
    .fm-error-next__grid { grid-template-columns: 1fr; }
    .fm-error-next__grid li + li { border-left: 0; border-top: 1px solid var(--line); }
    .fm-error-card { min-height: 0; padding: 22px 20px 24px; }
    .fm-error-card__title { margin-top: 18px; font-size: 28px; }
}
@media (max-width: 359.98px) {
    .fm-brand__logo { height: 38px; }
    .fm-menu__row > a { font-size: 19px; letter-spacing: .1em; }
    .fm-network__stats { grid-template-columns: 1fr; }
    .fm-network__stats > div + div { border-left: 0; }
}
@media (max-height: 560px) and (orientation: landscape) {
    .fm-hero { min-height: 420px; }
    .fm-hero__inner { padding-top: 76px; padding-bottom: 60px; }
    body.reference-home4 .fm-hero__title { font-size: clamp(40px, 9vh, 64px); margin-bottom: 12px; }
    .fm-hero__kicker { margin-bottom: 10px; }
    .fm-hero__actions { margin-top: 16px; }
    .fm-hero__cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .fm-hero__content > *,
    .fm-hero__cue svg { animation: none; }
    .fm-error__photo { animation: none; }
    .fm-error__roofs path { stroke-dashoffset: 0; animation: none; }
}
