/*
 * Jinja Masters — editorial real-estate theme for Jinja Consolidated.
 * Palette and rhythm follow the "Masters" residential site: warm cream paper, deep brown ink,
 * terracotta accents, wide uppercase display type, generous spacing and slow scroll reveals.
 * Built on Flex Home: inner pages keep their markup and are restyled through the tokens below.
 */
:root {
    --jm-ink: #452d2a;
    --jm-ink-2: #372522;
    --jm-paper: #f2e6d6;
    --jm-paper-2: #fcf0e0;
    --jm-clay: #af522a;
    --jm-clay-2: #c06d30;
    --jm-olive: #6b6a44;
    --jm-line: rgba(69, 45, 42, .22);
    --jm-display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
    --jm-text: 'Inter', Arial, sans-serif;
    --jm-gutter: clamp(16px, 4vw, 64px);
    --jm-header: 84px;
}

/* ------------------------------------------------------------------ base */
body {
    background: var(--jm-paper);
    color: var(--jm-ink);
    font-family: var(--jm-text);
}
/* The Announcements strip stays in the page flow; the fixed header sits just under it (see --jm-top in the JS)
   and inner pages reserve the header's height below it. */
body:not(.jm-has-hero) #app { padding-top: var(--jm-header); }
a { color: var(--jm-ink); }
a:hover { color: var(--jm-clay); }
h1, h2, h3, h4, h5, .h1, .h2, .h3 {
    font-family: var(--jm-display);
    font-stretch: 125%;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: var(--jm-ink);
}
::selection { background: var(--jm-clay); color: var(--jm-paper); }
:focus-visible { outline: 2px solid var(--jm-clay); outline-offset: 3px; }
.jm-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jm-skip { position: fixed; left: 12px; top: -60px; z-index: 2000; background: var(--jm-ink); color: var(--jm-paper); padding: 10px 14px; }
.jm-skip:focus { top: 12px; color: var(--jm-paper); }
.jm-eyebrow {
    font: 500 12px/1.4 var(--jm-text);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0 0 18px;
}
.jm-lead { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6; text-transform: uppercase; letter-spacing: .02em; max-width: 46ch; }
.jm-display {
    font: 500 clamp(34px, 5.6vw, 92px)/.98 var(--jm-display);
    font-stretch: 125%;
    text-transform: uppercase;
    letter-spacing: -.01em;
    margin: 0 0 clamp(28px, 4vw, 56px);
}
.jm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 28px;
    border: 1px solid var(--jm-ink); border-radius: 999px;
    background: transparent; color: var(--jm-ink);
    font: 500 13px/1 var(--jm-text); letter-spacing: .12em; text-transform: uppercase;
    text-decoration: none; transition: background .3s, color .3s;
}
.jm-btn:hover { background: var(--jm-ink); color: var(--jm-paper); text-decoration: none; }
.jm-btn-light { border-color: var(--jm-paper); color: var(--jm-paper); }
.jm-btn-light:hover { background: var(--jm-paper); color: var(--jm-ink); }
.jm-link { font: 500 13px/1.4 var(--jm-text); letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 6px; }

/* ------------------------------------------------------------------ header */
.jm-announcement { position: relative; z-index: 1031; }
.jm-header {
    position: fixed; inset: 0 0 auto; z-index: 1030;
    top: var(--jm-top, 0px);
    height: var(--jm-header);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding: 0 var(--jm-gutter);
    background: var(--jm-paper); color: var(--jm-ink);
    border-bottom: 1px solid var(--jm-line);
    transition: background .4s, color .4s, border-color .4s, transform .4s;
}
.jm-has-hero .jm-header:not(.is-solid) { background: transparent; color: var(--jm-paper); border-color: rgba(242, 230, 214, .3); }
.jm-header.is-hidden { transform: translateY(-100%); }
.jm-header-side { display: flex; gap: 28px; align-items: center; }
.jm-header-right { justify-content: flex-end; }
.jm-header-link, .jm-menu-button, .jm-menu-close {
    color: inherit; font: 500 12px/1 var(--jm-text); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
.jm-header-link:hover { color: inherit; text-decoration: underline; text-underline-offset: 6px; }
.jm-logo { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.jm-logo:hover { color: inherit; text-decoration: none; }
.jm-logo img { height: 44px; width: auto; border-radius: 50%; background: var(--jm-paper); }
.jm-logo-text { display: flex; flex-direction: column; line-height: 1; text-transform: uppercase; }
.jm-logo-text b { font: 600 24px/1 var(--jm-display); font-stretch: 125%; letter-spacing: .06em; }
.jm-logo-text small { font: 500 9px/1.6 var(--jm-text); letter-spacing: .42em; }
/* Menu button: an outlined pill. Hover fills it, press gives a small push, open turns the lines into an X. */
.jm-menu-button, .jm-menu-close {
    --mb-line: currentColor;
    position: relative; display: inline-flex; align-items: center; gap: 12px;
    min-height: 44px; padding: 0 16px 0 20px;
    border: 1px solid color-mix(in srgb, currentColor 45%, transparent); border-radius: 999px;
    background: transparent; cursor: pointer; overflow: hidden; isolation: isolate;
    transition: color .35s ease, border-color .35s ease, transform .2s ease;
}
/* the fill grows from the right on hover */
.jm-menu-button::before, .jm-menu-close::before {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: currentColor; transform: scaleX(0); transform-origin: right center;
    transition: transform .45s cubic-bezier(.7, 0, .2, 1);
}
.jm-menu-label { position: relative; transition: color .35s ease; }
.jm-menu-lines { position: relative; display: block; width: 22px; height: 12px; }
.jm-menu-lines b { position: absolute; right: 0; height: 1.5px; border-radius: 2px; background: var(--mb-line); transition: width .35s cubic-bezier(.7, 0, .2, 1), transform .45s cubic-bezier(.7, 0, .2, 1), top .35s ease, background .35s ease; }
.jm-menu-lines b:first-child { top: 2px; width: 22px; }
.jm-menu-lines b:last-child { top: 9px; width: 14px; }

/* hover / keyboard focus: fill with the text colour, text turns to the background colour */
.jm-header .jm-menu-button:hover::before, .jm-header .jm-menu-button:focus-visible::before,
.jm-menu-close:hover::before, .jm-menu-close:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.jm-header .jm-menu-button:hover .jm-menu-label, .jm-header .jm-menu-button:focus-visible .jm-menu-label { color: var(--jm-paper); }
.jm-header .jm-menu-button:hover, .jm-header .jm-menu-button:focus-visible { border-color: currentColor; }
.jm-header .jm-menu-button:hover .jm-menu-lines b, .jm-header .jm-menu-button:focus-visible .jm-menu-lines b { --mb-line: var(--jm-paper); }
.jm-header .jm-menu-button:hover .jm-menu-lines b:last-child { width: 22px; }
/* over the hero photo the header is cream-on-photo: fill cream, text brown */
.jm-has-hero .jm-header:not(.is-solid) .jm-menu-button:hover .jm-menu-label,
.jm-has-hero .jm-header:not(.is-solid) .jm-menu-button:focus-visible .jm-menu-label { color: var(--jm-ink); }
.jm-has-hero .jm-header:not(.is-solid) .jm-menu-button:hover .jm-menu-lines b,
.jm-has-hero .jm-header:not(.is-solid) .jm-menu-button:focus-visible .jm-menu-lines b { --mb-line: var(--jm-ink); }
.jm-menu-button:focus-visible, .jm-menu-close:focus-visible { outline: 2px solid var(--jm-clay-2); outline-offset: 3px; }
.jm-menu-button:active, .jm-menu-close:active { transform: scale(.96); }

/* open: the two lines cross into an X and the label reads "Close" */
.jm-menu-button[aria-expanded="true"] .jm-menu-lines b, .jm-menu-lines.is-x b { top: 5px; width: 20px; }
.jm-menu-button[aria-expanded="true"] .jm-menu-lines b:first-child, .jm-menu-lines.is-x b:first-child { transform: rotate(45deg); }
.jm-menu-button[aria-expanded="true"] .jm-menu-lines b:last-child, .jm-menu-lines.is-x b:last-child { transform: rotate(-45deg); }
.jm-menu-button[aria-expanded="true"] .jm-menu-label { font-size: 0; }
.jm-menu-button[aria-expanded="true"] .jm-menu-label::after { content: attr(data-close); font-size: 12px; }

/* the Close pill inside the menu: cream outline; hover fills cream and spins the X a quarter turn */
.jm-menu-close { color: var(--jm-paper); }
.jm-menu-close:hover span, .jm-menu-close:focus-visible span { color: var(--jm-ink); }
.jm-menu-close:hover .jm-menu-lines b, .jm-menu-close:focus-visible .jm-menu-lines b { --mb-line: var(--jm-ink); }
.jm-menu-close .jm-menu-lines { transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.jm-menu-close:hover .jm-menu-lines { transform: rotate(90deg); }
@media (max-width: 575px) {
    .jm-menu-button { padding: 0 12px 0 14px; gap: 10px; }
}

/* full-screen menu */
.jm-menu {
    position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
    border: 0; background: var(--jm-ink); color: var(--jm-paper); overflow-y: auto;
}
.jm-menu[open] { display: flex; flex-direction: column; animation: jm-fade .35s ease; }
.jm-menu::backdrop { background: rgba(55, 37, 34, .6); }
.jm-menu a { color: var(--jm-paper); }
.jm-menu-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--jm-header); padding: 0 var(--jm-gutter); border-bottom: 1px solid rgba(242, 230, 214, .2); }
.jm-menu-close { justify-self: end; }
.jm-menu-body { flex: 1; display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--jm-gutter); padding: clamp(28px, 5vw, 72px) var(--jm-gutter); }
.jm-menu-list, .jm-menu-sub { list-style: none; margin: 0; padding: 0; }
.jm-menu-list > li > a {
    display: block; padding: 6px 0;
    font: 500 clamp(26px, 3.6vw, 54px)/1.1 var(--jm-display); font-stretch: 125%; text-transform: uppercase; text-decoration: none;
}
.jm-menu-list > li > a:hover, .jm-menu-list > li.is-active > a { color: var(--jm-clay-2); }
.jm-menu-sub { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 0 0 12px 2px; }
.jm-menu-sub a { font: 400 13px/1.8 var(--jm-text); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.jm-menu-aside { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; font: 400 13px/1.6 var(--jm-text); letter-spacing: .06em; text-transform: uppercase; }
.jm-currencies { display: flex; gap: 14px; }
.jm-currencies a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.jm-menu-contact { margin-top: auto; display: flex; flex-direction: column; gap: 6px; opacity: .85; }
body.jm-menu-open { overflow: hidden; }
/* menu items rise in one after another when the menu opens */
.jm-menu[open] .jm-menu-list > li { animation: jm-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.jm-menu[open] .jm-menu-list > li:nth-child(2) { animation-delay: .04s; }
.jm-menu[open] .jm-menu-list > li:nth-child(3) { animation-delay: .08s; }
.jm-menu[open] .jm-menu-list > li:nth-child(4) { animation-delay: .12s; }
.jm-menu[open] .jm-menu-list > li:nth-child(5) { animation-delay: .16s; }
.jm-menu[open] .jm-menu-list > li:nth-child(6) { animation-delay: .2s; }
.jm-menu[open] .jm-menu-list > li:nth-child(n+7) { animation-delay: .24s; }
.jm-menu-list > li > a { transition: color .3s ease, padding-left .35s cubic-bezier(.2, .7, .2, 1); }
.jm-menu-list > li > a:hover, .jm-menu-list > li > a:focus-visible { padding-left: 14px; outline: none; }
@keyframes jm-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ "What would you like to do?" actions */
.jm-actions { margin-top: clamp(16px, 3vh, 28px); }
.jm-actions-label { margin: 0 0 10px; font: 500 11px/1.3 var(--jm-text); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.jm-actions-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jm-action {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px;
    border: 1px solid rgba(242, 230, 214, .38); border-radius: 999px;
    background: rgba(20, 12, 10, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: var(--jm-paper); font: 500 12px/1 var(--jm-text); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
    transition: background .3s ease, color .3s ease, border-color .3s ease, transform .2s ease;
}
.jm-action svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.jm-action .jm-action-arrow { width: 0; margin-left: -8px; opacity: 0; transform: translateX(-6px); transition: width .3s ease, margin .3s ease, opacity .3s ease, transform .3s ease; }
.jm-action:hover, .jm-action:focus-visible { background: var(--jm-paper); border-color: var(--jm-paper); color: var(--jm-ink); text-decoration: none; outline: none; }
.jm-action:hover .jm-action-arrow, .jm-action:focus-visible .jm-action-arrow { width: 14px; margin-left: 0; opacity: 1; transform: none; }
.jm-action:focus-visible { box-shadow: 0 0 0 3px rgba(192, 109, 48, .7); }
.jm-action:active { transform: scale(.97); }
.jm-action-all { background: var(--jm-clay); border-color: var(--jm-clay); }
.jm-action-all .jm-action-arrow { width: 14px; margin-left: 0; opacity: 1; transform: none; }
.jm-action-all:hover, .jm-action-all:focus-visible { background: var(--jm-paper); border-color: var(--jm-paper); }

/* hero: compact buttons in one row on laptops (wraps only on tall screens), rising in after the title */
.jm-actions-hero .jm-action { min-height: 38px; padding: 0 12px 0 10px; gap: 7px; font-size: 11px; letter-spacing: .07em; }
.jm-actions-hero .jm-actions-list { padding: 3px 0 4px; }
@media (max-height: 760px) and (min-width: 768px) {
    .jm-actions-hero .jm-actions-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .jm-actions-hero .jm-actions-list::-webkit-scrollbar { display: none; }
    /* shorter screens: tighten the hero so title, search and actions fit under the header */
    .jm-hero-title { font-size: clamp(30px, min(6.6vw, 9vh), 112px) !important; margin-bottom: 14px !important; }
    .jm-hero .jm-eyebrow { margin-bottom: 8px; }
    .jm-hero-search input, .jm-hero-search select, .jm-hero-search button { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
    .jm-actions { margin-top: 12px; }
    .jm-actions-label { margin-bottom: 6px; }
    .jm-hero .jm-hero-body { padding-bottom: clamp(96px, 16vh, 150px); }
}
.jm-actions-hero .jm-actions-list > li { animation: jm-rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.9s + var(--n, 0) * 55ms); }
.jm-actions-hero .jm-actions-label { animation: jm-rise .7s cubic-bezier(.2, .7, .2, 1) .8s both; }

/* menu: a tidy two-column grid of the same actions */
.jm-actions-menu { width: 100%; margin: 0 0 8px; }
.jm-actions-menu .jm-actions-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.jm-actions-menu .jm-action { width: 100%; background: transparent; border-color: rgba(242, 230, 214, .25); white-space: normal; line-height: 1.25; padding: 8px 12px; }
.jm-actions-menu .jm-action-all { background: var(--jm-clay); border-color: var(--jm-clay); }

/* phones: one swipeable row with a soft fade at the edge, so the hero stays clean */
@media (max-width: 767px) {
    .jm-actions-hero { margin-left: calc(var(--jm-gutter) * -1); margin-right: calc(var(--jm-gutter) * -1); }
    .jm-actions-hero .jm-actions-label { padding: 0 var(--jm-gutter); }
    .jm-actions-hero .jm-actions-list {
        flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
        padding: 2px var(--jm-gutter) 6px; scroll-padding: 0 var(--jm-gutter);
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
    }
    .jm-actions-hero .jm-actions-list::-webkit-scrollbar { display: none; }
    .jm-actions-hero .jm-actions-list > li { scroll-snap-align: start; }
    .jm-action { min-height: 44px; }
    .jm-actions-menu .jm-actions-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .jm-actions-hero .jm-actions-list > li, .jm-actions-hero .jm-actions-label, .jm-menu[open] .jm-menu-list > li { animation: none; }
    .jm-menu-button, .jm-menu-close, .jm-menu-button::before, .jm-menu-close::before, .jm-menu-lines b, .jm-action, .jm-action .jm-action-arrow { transition: none; }
}

/* ------------------------------------------------------------------ hero */
.jm-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--jm-paper); overflow: hidden; }
.jm-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: jm-hero-in 2.4s cubic-bezier(.2, .7, .2, 1) forwards; }
.jm-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(55, 37, 34, .55) 0%, rgba(55, 37, 34, .1) 35%, rgba(55, 37, 34, .7) 100%); }
.jm-hero-body { position: relative; width: 100%; padding: 0 var(--jm-gutter) clamp(48px, 9vh, 110px); }
.jm-hero-title { font: 500 clamp(38px, 7.2vw, 128px)/.95 var(--jm-display); font-stretch: 125%; text-transform: uppercase; color: var(--jm-paper); margin: 0 0 clamp(28px, 4vw, 52px); max-width: 15ch; }
.jm-hero-search { display: flex; max-width: 760px; border-bottom: 1px solid rgba(242, 230, 214, .6); }
.jm-hero-search input, .jm-hero-search select, .jm-hero-search button {
    background: transparent; border: 0; color: var(--jm-paper); font: 400 15px/1 var(--jm-text); letter-spacing: .04em; padding: 16px 0; min-height: 54px;
}
.jm-hero-search input { flex: 1; min-width: 0; }
.jm-hero-search input::placeholder { color: rgba(242, 230, 214, .7); }
.jm-hero-search select { padding: 0 16px; text-transform: uppercase; font-size: 12px; letter-spacing: .12em; }
.jm-hero-search select option { color: var(--jm-ink); }
.jm-hero-search button { padding: 0 0 0 16px; text-transform: uppercase; font-size: 12px; letter-spacing: .14em; font-weight: 600; cursor: pointer; }
.jm-scroll { position: absolute; right: var(--jm-gutter); bottom: clamp(48px, 9vh, 110px); width: 1px; height: 80px; background: rgba(242, 230, 214, .35); overflow: hidden; }
.jm-scroll span { position: absolute; left: 0; top: 0; width: 1px; height: 30px; background: var(--jm-paper); animation: jm-scroll 2s ease-in-out infinite; }

/* split headings: letters rise in, one after another */
.jm-split .jm-word { display: inline-block; white-space: nowrap; }
.jm-split .jm-ch { display: inline-block; }
.jm-js .jm-split .jm-ch { opacity: 0; transform: translateY(.45em); transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 28ms); }
.jm-js .jm-split.is-in .jm-ch { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ sections */
.jm-home section { padding: clamp(64px, 10vw, 150px) var(--jm-gutter); }
.jm-intro-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.5vw, 36px); align-items: start; }
.jm-intro-lead { grid-column: 1 / 6; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.6; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.jm-intro-img { margin: 0; overflow: hidden; }
.jm-intro-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jm-intro-grid > .jm-intro-img:not(.jm-intro-img-2) { grid-column: 7 / 13; aspect-ratio: 4 / 3; }
.jm-intro-img-2 { grid-column: 2 / 6; aspect-ratio: 3 / 4; margin-top: clamp(-120px, -8vw, -40px); }
.jm-intro-text { grid-column: 7 / 12; font-size: 15px; line-height: 1.75; letter-spacing: .02em; text-transform: uppercase; }
.jm-intro-text p { margin: 0 0 1.2em; }

.jm-marquee { overflow: hidden; display: flex; border-top: 1px solid var(--jm-line); border-bottom: 1px solid var(--jm-line); padding: 18px 0; }
.jm-marquee-track { display: flex; flex-shrink: 0; animation: jm-marquee 38s linear infinite; }
.jm-marquee span { font: 500 clamp(28px, 4.5vw, 64px)/1 var(--jm-display); font-stretch: 125%; text-transform: uppercase; padding-right: .8em; white-space: nowrap; color: var(--jm-clay); }

.jm-location { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 6vw, 96px); }
.jm-distances { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--jm-line); }
.jm-distances li { display: grid; grid-template-columns: 1fr auto 34px; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--jm-line); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.jm-distances b { font: 500 clamp(24px, 2.6vw, 38px)/1 var(--jm-display); font-stretch: 125%; color: var(--jm-clay); }
.jm-distances small { font-size: 11px; letter-spacing: .12em; }
.jm-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.jm-chips a { border: 1px solid var(--jm-line); border-radius: 999px; padding: 10px 18px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.jm-chips a span { color: var(--jm-clay); margin-left: 6px; }
.jm-chips a:hover { background: var(--jm-ink); color: var(--jm-paper); }

.jm-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--jm-ink); color: var(--jm-paper); gap: 0; }
.jm-home .jm-stats { padding-top: clamp(48px, 7vw, 100px); padding-bottom: clamp(48px, 7vw, 100px); }
.jm-stat { padding: clamp(18px, 2.5vw, 36px); border-left: 1px solid rgba(242, 230, 214, .2); }
.jm-stat:nth-child(3n + 1) { border-left: 0; }
.jm-stat:nth-child(n + 4) { border-top: 1px solid rgba(242, 230, 214, .2); }
.jm-stat b { display: block; font: 500 clamp(48px, 6vw, 100px)/1 var(--jm-display); font-stretch: 125%; color: var(--jm-clay-2); }
.jm-stat span { display: block; margin: 12px 0 8px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.jm-stat p { margin: 0; font-size: 13px; line-height: 1.6; opacity: .75; text-transform: uppercase; letter-spacing: .03em; }

.jm-props-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.jm-tabs { display: flex; gap: 8px; margin-bottom: clamp(28px, 4vw, 56px); }
.jm-tabs button { border: 1px solid var(--jm-line); background: none; border-radius: 999px; padding: 10px 18px; font: 500 12px/1 var(--jm-text); letter-spacing: .12em; text-transform: uppercase; color: var(--jm-ink); cursor: pointer; }
.jm-tabs button span { color: var(--jm-clay); margin-left: 4px; }
.jm-tabs button[aria-selected="true"] { background: var(--jm-ink); color: var(--jm-paper); border-color: var(--jm-ink); }
.jm-tabs button:disabled { opacity: .4; cursor: default; }
.jm-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 2 * 28px) / 3)); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.jm-track::-webkit-scrollbar { display: none; }
.jm-track[data-count="1"] { grid-auto-columns: minmax(280px, 100%); }
.jm-track[data-count="1"] .jm-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 4vw, 64px); align-items: end; }
.jm-track[data-count="1"] .jm-card-img { aspect-ratio: 16 / 10; }
.jm-track[data-count="1"] .jm-card h3 { font-size: clamp(24px, 3vw, 48px); }
.jm-card { scroll-snap-align: start; }
.jm-card[hidden] { display: none !important; }
.jm-card-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.jm-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.jm-card:hover .jm-card-img img { transform: scale(1.05); }
.jm-card-tag { position: absolute; left: 16px; top: 16px; background: var(--jm-paper); padding: 8px 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.jm-card-body { padding-top: 18px; }
.jm-card-meta, .jm-card-facts { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; opacity: .8; }
.jm-card-facts span + span::before { content: ' · '; }
.jm-card h3 { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.15; margin: 0 0 12px; }
.jm-card h3 a { text-decoration: none; }
.jm-card-price { font: 500 clamp(18px, 1.6vw, 24px)/1 var(--jm-display); font-stretch: 125%; color: var(--jm-clay); margin: 0; }
.jm-track-nav { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.jm-track-count { font: 500 22px/1 var(--jm-display); font-stretch: 125%; margin-right: auto; }
.jm-track-count i { font-style: normal; opacity: .5; }
.jm-track-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--jm-ink); background: none; color: var(--jm-ink); font-size: 18px; cursor: pointer; }
.jm-track-nav button:hover { background: var(--jm-ink); color: var(--jm-paper); }

.jm-band { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: var(--jm-paper); overflow: hidden; }
.jm-band-img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.jm-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(55, 37, 34, .78), rgba(55, 37, 34, .05) 60%); z-index: 1; }
.jm-band-body { position: relative; z-index: 2; max-width: 680px; }
.jm-band-body .jm-display { color: var(--jm-paper); }
.jm-band-body p { text-transform: uppercase; letter-spacing: .03em; line-height: 1.6; }
.jm-band-fee { font: 500 22px/1 var(--jm-display); font-stretch: 125%; color: var(--jm-clay-2); margin: 20px 0 28px; }

.jm-accordion { border-top: 1px solid var(--jm-line); }
.jm-acc { border-bottom: 1px solid var(--jm-line); }
.jm-acc summary { list-style: none; display: grid; grid-template-columns: 60px 1fr 28px; align-items: center; padding: 22px 0; cursor: pointer; }
.jm-acc summary::-webkit-details-marker { display: none; }
.jm-acc-n { font-size: 12px; letter-spacing: .12em; color: var(--jm-clay); }
.jm-acc-t { font: 500 clamp(20px, 2.4vw, 36px)/1.1 var(--jm-display); font-stretch: 125%; text-transform: uppercase; }
.jm-acc summary i { width: 28px; height: 28px; position: relative; }
.jm-acc summary i::before, .jm-acc summary i::after { content: ''; position: absolute; left: 4px; right: 4px; top: 13px; height: 1px; background: currentColor; transition: transform .3s; }
.jm-acc summary i::after { transform: rotate(90deg); }
.jm-acc[open] summary i::after { transform: rotate(0); }
.jm-acc-body { padding: 0 0 26px 60px; max-width: 760px; }
.jm-acc-body p { text-transform: uppercase; letter-spacing: .03em; line-height: 1.6; }

.jm-finance { display: grid; grid-template-columns: 1fr 1fr; background: var(--jm-olive); color: var(--jm-paper); padding: 0 !important; }
.jm-finance-img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.jm-finance-body { padding: clamp(48px, 7vw, 110px) var(--jm-gutter); }
.jm-finance-body .jm-display { color: var(--jm-paper); font-size: clamp(30px, 4vw, 64px); }
.jm-finance-grid { border-top: 1px solid rgba(242, 230, 214, .3); margin-bottom: 28px; }
.jm-finance-item { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid rgba(242, 230, 214, .3); color: var(--jm-paper); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; text-decoration: none; }
.jm-finance-item:hover { color: var(--jm-paper-2); padding-left: 8px; transition: padding .3s; }
.jm-finance-body p { text-transform: uppercase; letter-spacing: .03em; line-height: 1.6; margin-bottom: 28px; }

.jm-journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.jm-post { text-decoration: none; display: block; }
.jm-post-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 16px; }
.jm-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.jm-post:hover img { transform: scale(1.05); }
.jm-post-date { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--jm-clay); margin-bottom: 8px; }
.jm-post-title { font: 500 clamp(17px, 1.5vw, 22px)/1.2 var(--jm-display); font-stretch: 125%; text-transform: uppercase; }

.jm-dev { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 96px); background: var(--jm-paper-2); }
.jm-dev-text { font-size: 15px; line-height: 1.75; }
.jm-dev-title { font: 500 clamp(22px, 2.6vw, 40px)/1.15 var(--jm-display); font-stretch: 125%; grid-row: 1; grid-column: 2; margin: 0; }
.jm-dev .jm-link { grid-column: 2; }

.jm-contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 6vw, 96px); }
.jm-contact-form input, .jm-contact-form textarea, .jm-contact-form select {
    background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--jm-ink) !important; border-radius: 0 !important;
    color: var(--jm-ink) !important; padding: 14px 0 !important; box-shadow: none !important; font-size: 15px;
}
.jm-contact-form label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.jm-contact-form button[type="submit"], .jm-contact-form .btn {
    background: var(--jm-ink) !important; border: 1px solid var(--jm-ink) !important; color: var(--jm-paper) !important;
    border-radius: 999px !important; padding: 0 34px !important; text-transform: uppercase; letter-spacing: .14em; font-size: 13px;
    /* Flex Home gives this button a fixed height; centre the label instead of padding it down. */
    display: inline-flex !important; align-items: center; justify-content: center; height: auto !important; min-height: 52px; line-height: 1.2 !important; white-space: nowrap;
}
.jm-contact-form button[type="submit"]:hover, .jm-contact-form .btn:hover { background: var(--jm-clay) !important; border-color: var(--jm-clay) !important; }

/* "Privacy choices" (cookie settings): bottom-left in the theme's style, clear of the call and back-to-top buttons */
body #jcp-consent-settings { right: auto !important; left: 16px !important; bottom: 16px !important; margin: 0 !important; padding: 8px 14px !important; border: 1px solid var(--jm-line) !important; border-radius: 999px !important; background: var(--jm-paper-2) !important; color: var(--jm-ink) !important; font: 500 12px/1.2 var(--jm-text) !important; letter-spacing: .04em; box-shadow: 0 6px 18px rgba(55, 37, 34, .15); z-index: 1019 !important; }
body #jcp-consent-settings:hover, body #jcp-consent-settings:focus-visible { background: var(--jm-ink) !important; color: var(--jm-paper) !important; }
/* Phones: a 44 px round cookie button (the "Privacy choices" text stays as its accessible name),
   level with the call and back-to-top buttons and clear of them. */
@media (max-width: 767px) {
    body #jcp-consent-settings {
        left: 12px !important; bottom: max(12px, env(safe-area-inset-bottom)) !important;
        width: 44px; height: 44px; padding: 0 !important; border-radius: 50% !important;
        font-size: 0 !important; line-height: 0 !important; color: transparent !important; overflow: hidden;
        background: var(--jm-paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23452d2a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9 3 3 0 0 1-3.5-3A3 3 0 0 1 14 5.5 3 3 0 0 1 12 3Z'/%3E%3Ccircle cx='8.5' cy='10.5' r='.9' fill='%23452d2a'/%3E%3Ccircle cx='15' cy='15' r='.9' fill='%23452d2a'/%3E%3Ccircle cx='9.5' cy='15.5' r='.9' fill='%23452d2a'/%3E%3C/svg%3E") center / 22px no-repeat !important;
    }
    body #jcp-consent-settings:hover, body #jcp-consent-settings:focus-visible { background-color: var(--jm-paper) !important; outline: 2px solid var(--jm-clay-2); outline-offset: 2px; }
    /* keep the call / back-to-top group on the right, level with the cookie button */
    body .jm-action-footer { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------------ footer */
.jm-footer { background: var(--jm-ink); color: var(--jm-paper); padding: clamp(56px, 8vw, 110px) var(--jm-gutter) 32px; }
.jm-footer a { color: var(--jm-paper); }
.jm-footer a:hover { color: var(--jm-clay-2); }
.jm-footer-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 80px); }
.jm-footer-contacts { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }
.jm-footer-contacts p { margin: 0; }
.jm-footer-phone { font: 500 clamp(26px, 3.4vw, 52px)/1 var(--jm-display); font-stretch: 125%; margin-bottom: 8px; }
.jm-footer-social { display: flex; gap: 16px; flex-wrap: wrap; }
.jm-footer-contacts .jm-btn { margin-top: 18px; }
.jm-footer-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: sepia(.35) saturate(.75) contrast(.95); }
.jm-footer-links { display: flex; flex-wrap: wrap; margin: clamp(40px, 6vw, 80px) -12px 0; padding-top: 32px; border-top: 1px solid rgba(242, 230, 214, .2); }
.jm-footer-links > div { flex: 1 1 220px; padding: 0 12px; max-width: none; }
.jm-footer-links h4, .jm-footer-links .widget-title, .jm-footer-links .menufooter h4 { color: var(--jm-paper); font-size: 13px !important; letter-spacing: .16em; margin-bottom: 14px; }
.jm-footer-links ul { list-style: none; padding: 0; margin: 0; }
.jm-footer-links li { padding: 4px 0; font-size: 14px; }
/* Flex Home's widget menus colour their labels dark grey; on the ink footer they must stay light. */
.jm-footer .menu-title, .jm-footer-links a, .jm-footer-links li, .jm-footer-links p, .jm-footer-links span { color: var(--jm-paper) !important; }
.jm-footer-links a:hover .menu-title, .jm-footer-links a:hover { color: var(--jm-clay-2) !important; }
.jm-footer-links a:focus-visible, .jm-footer-bottom a:focus-visible { outline: 2px solid var(--jm-clay-2); outline-offset: 3px; }
.jm-footer-profiles, .jm-footer-lang { margin-top: 24px; }
.jm-footer-profiles *, .jm-footer-lang * { color: var(--jm-paper) !important; border-color: rgba(242, 230, 214, .25) !important; background: transparent !important; }
.jm-footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(242, 230, 214, .2); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.jm-footer-bottom span { margin-right: auto; }
.jm-footer-bottom p { margin: 0; }
.jm-footer-note { font-size: 11px; line-height: 1.6; opacity: .6; margin: 16px 0 0; max-width: 900px; }
.jm-action-footer { z-index: 1020; }

/* ------------------------------------------------------------------ inner pages (Flex Home markup) */
body .bgheadproject { background-size: cover !important; background-position: center !important; position: relative; min-height: 340px; display: flex; align-items: flex-end; }
body .bgheadproject::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(55, 37, 34, .78), rgba(55, 37, 34, .2)); }
body .bgheadproject .description { position: relative; width: 100%; background: none !important; padding: 0 0 40px; }
body .bgheadproject h1 { font: 500 clamp(30px, 5vw, 72px)/1 var(--jm-display) !important; font-stretch: 125% !important; text-align: left !important; color: var(--jm-paper) !important; text-transform: uppercase; }
body .bgheadproject .breadcrumb, body .bgheadproject .breadcrumb a { justify-content: flex-start; color: var(--jm-paper) !important; background: none; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
body .btn-primary, body .btn-primary:not(:disabled):not(.disabled):active { background: var(--jm-ink); border-color: var(--jm-ink); color: var(--jm-paper); border-radius: 999px; text-transform: uppercase; letter-spacing: .1em; }
body .btn-primary:hover, body .btn-primary:focus { background: var(--jm-clay); border-color: var(--jm-clay); color: var(--jm-paper); }
body .btn-outline-primary { color: var(--jm-ink); border-color: var(--jm-ink); border-radius: 999px; }
body .text-primary { color: var(--jm-clay) !important; }
body .bg-primary { background: var(--jm-ink) !important; }
body .item, body .card, body .boxright, body .form-control { border-radius: 0; }
body .item .blii, body .item { background: var(--jm-paper-2); }
body .item .description .price, body .price { color: var(--jm-clay) !important; font-family: var(--jm-display); font-stretch: 125%; }
body .item h5, body .item h3 { font-family: var(--jm-display); font-stretch: 125%; text-transform: uppercase; }
body .form-control { background: var(--jm-paper-2); border-color: var(--jm-line); }
body .form-control:focus { border-color: var(--jm-ink); box-shadow: 0 0 0 3px rgba(175, 82, 42, .15); }
body .scontent, body .ck-content { font-size: 16px; line-height: 1.75; }
body .page-link { color: var(--jm-ink); }
body .page-item.active .page-link { background: var(--jm-ink); border-color: var(--jm-ink); }
body .bravo_topbar, body header.topmenu { display: none !important; }

/* ------------------------------------------------------------------ whole-site layer
   Plugin pages (accounts, hardware shop, moving, construction, lending, rentals, viewings, legal, FAQs)
   draw their colours from --site-navy / --site-gold, so defining them here re-themes every one of them.
   Flex Home does not define these tokens, so those pages keep their original navy and gold there. */
:root {
    --site-navy: var(--jm-ink);
    --site-gold: var(--jm-clay);
    --site-paper: var(--jm-paper);
    --site-font-display: var(--jm-display);
    --site-font-text: var(--jm-text);
}
body, body p, body li, body td, body input, body select, body textarea, body button, body label { font-family: var(--jm-text); }
body #app h3, body #app h4, body #app h5 { font-stretch: 110%; overflow-wrap: anywhere; }
body #app .container, body #app .container-fluid { --bs-body-bg: transparent; }
body #app section, body #app .bg-white, body #app .bg-light, body .padtop30, body .padtop40, body .padtop70 { background-color: transparent !important; }
body hr { border-color: var(--jm-line); opacity: 1; }
::selection { background: var(--jm-clay); color: var(--jm-paper); }

/* Announcements plugin strip */
body .ae-anno-announcement-wrapper { background: var(--jm-ink-2) !important; color: var(--jm-paper) !important; }
body .ae-anno-announcement-wrapper * { color: inherit !important; font-family: var(--jm-text); letter-spacing: .02em; }
body .ae-anno-announcement-wrapper a { text-decoration: underline; text-underline-offset: 3px; }

/* page header photo */
body .bgheadproject { margin-top: 0; }
body .bgheadproject .container-fluid.w90 { padding-left: var(--jm-gutter); padding-right: var(--jm-gutter); }

/* buttons: one square-ish pill language everywhere */
body .btn { border-radius: 999px; font-family: var(--jm-text); font-weight: 500; letter-spacing: .06em; }
body .btn-orange, body .btn-warning, body .btn-success:not(.badge), body .btn-secondary.btn-search, body .btn-search, body button[type="submit"].btn:not(.btn-link):not(.btn-light):not(.btn-outline-secondary):not(.btn-danger) {
    background: var(--jm-ink); border-color: var(--jm-ink); color: var(--jm-paper);
}
body .btn-orange:hover, body .btn-warning:hover, body .btn-search:hover, body button[type="submit"].btn:not(.btn-link):not(.btn-light):not(.btn-danger):hover { background: var(--jm-clay); border-color: var(--jm-clay); color: var(--jm-paper); }
body .btn-outline-secondary, body .btn-light { border-color: var(--jm-line); background: transparent; color: var(--jm-ink); }
body .btn-outline-secondary:hover, body .btn-light:hover { background: var(--jm-ink); color: var(--jm-paper); }
body .text-orange, body .text-warning, body a.text-orange { color: var(--jm-clay) !important; }
body .badge.bg-primary, body .badge.bg-warning { background: var(--jm-clay) !important; color: var(--jm-paper) !important; }

/* forms */
body .form-control, body .form-select, body select.form-control, body .input-group-text, body .select2-container--default .select2-selection--single {
    background-color: var(--jm-paper-2); border-color: var(--jm-line); border-radius: 0; color: var(--jm-ink);
}
body .form-select:focus, body .form-control:focus { border-color: var(--jm-ink); box-shadow: 0 0 0 3px rgba(175, 82, 42, .15); }
body .form-check-input:checked { background-color: var(--jm-clay); border-color: var(--jm-clay); }
body label, body .form-label { color: var(--jm-ink); font-size: 13px; letter-spacing: .04em; }

/* property / project cards and listing chrome */
body .item, body .projecthome .item { border: 1px solid var(--jm-line); box-shadow: none !important; transition: transform .4s ease, border-color .4s ease; }
body .item:hover { border-color: var(--jm-ink); transform: translateY(-3px); }
body .item .status, body .item .h-type, body li.h-type, body .h-type { background: var(--jm-ink) !important; color: var(--jm-paper) !important; border-radius: 0; letter-spacing: .08em; text-transform: uppercase; }
body .item .price-label, body .item .label-price, body .item .blii .status, body .item .featured { border-radius: 0; }
body .add-to-wishlist, body .add-to-wishlist i, body .fa-heart { color: var(--jm-clay) !important; }
body .boxmarker, body .leaflet-marker-icon.boxmarker { background: var(--jm-ink) !important; color: var(--jm-paper) !important; border-radius: 0 !important; }
body .boxmarker::after { border-top-color: var(--jm-ink) !important; }
body .view-type-map.active, body .view-type-map:hover { background: var(--jm-ink) !important; border-color: var(--jm-ink) !important; color: var(--jm-paper) !important; }
body .toggle-filter-offcanvas, body .search-box, body .form-search-box { border-color: var(--jm-line) !important; background: transparent !important; }
body .nav-tabs { border-bottom-color: var(--jm-line); }
body .nav-tabs .nav-link { color: var(--jm-ink); border-radius: 0; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
body .nav-tabs .nav-link.active, body .nav-pills .nav-link.active { background: var(--jm-ink); color: var(--jm-paper); border-color: var(--jm-ink); }
body .breadcrumb-item + .breadcrumb-item::before { color: currentColor; }
body .pagination .page-link { border-radius: 0 !important; background: transparent; border-color: var(--jm-line); }

/* blog / pages */
body .post-item, body .blog-container .item, body .widget { border-color: var(--jm-line); }
body .widget .widget-title, body .widget h3 { font-size: 14px; letter-spacing: .14em; }
body blockquote { border-left: 3px solid var(--jm-clay); padding-left: 20px; font-family: var(--jm-display); font-stretch: 110%; }

/* tables and alerts used by plugin pages */
body #app table { border-color: var(--jm-line); }
body #app thead th { background: transparent; color: var(--jm-ink); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; border-bottom: 1px solid var(--jm-ink); }
body .alert { border-radius: 0; }

/* Services list (services plugin page): name | summary | link, without overlap */
body .jsv-row { display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto !important; gap: 12px 32px; align-items: baseline; border-top: 1px solid var(--jm-line); padding: 22px 0; }
body .jsv-row h3 { margin: 0; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.25; }
body .jsv-row h3 a { color: var(--jm-ink); }
body .jsv-row > a { color: var(--jm-clay); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
body .jsv-h { font-size: clamp(28px, 4vw, 52px); }
@media (max-width: 767px) { body .jsv-row { grid-template-columns: 1fr !important; } }

/* floating call + back-to-top */
/* Floating call + back-to-top: one row inside the screen (Flex Home hung back-to-top 40 px outside its box,
   which pushed it off the edge on phones). */
body .jm-action-footer {
    position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); left: auto;
    display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; width: auto;
}
body .jm-action-footer a { float: none !important; margin: 0 !important; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
body .jm-action-footer a.text-white { background: var(--jm-ink) !important; color: var(--jm-paper) !important; border-radius: 999px; min-height: 44px; padding: 0 18px !important; gap: 8px; font-size: 14px !important; letter-spacing: .06em; white-space: nowrap; box-shadow: 0 8px 24px rgba(55, 37, 34, .25); }
body .jm-action-footer a.text-white span { padding: 0 !important; }
body .jm-action-footer a.text-white:hover, body .jm-action-footer a.text-white:focus-visible { background: var(--jm-clay) !important; }
body .jm-action-footer .cd-top {
    position: static !important; right: auto !important; top: auto !important;
    width: 44px; height: 44px; padding: 0 !important; border-radius: 50%;
    background: var(--jm-clay) !important; color: var(--jm-paper) !important; box-shadow: 0 8px 24px rgba(55, 37, 34, .25);
}
body .jm-action-footer .cd-top:hover, body .jm-action-footer .cd-top:focus-visible { background: var(--jm-ink) !important; }
body .jm-action-footer a:focus-visible { outline: 2px solid var(--jm-clay-2); outline-offset: 2px; }
@media (max-width: 575px) {
    /* the number shortens to an icon-led pill so both buttons always fit */
    body .jm-action-footer a.text-white { padding: 0 14px !important; font-size: 13px !important; letter-spacing: .02em; }
}

/* Shared plugin components (.jp = jcp-platform pages, .hm = hardware market): neutral greys become the Jinja palette */
:root { --site-navy-2: var(--jm-ink-2); }
html body .jp { --ink: var(--jm-ink); --ink2: #5b4340; --muted: rgba(69, 45, 42, .72); --line: var(--jm-line); --soft: rgba(69, 45, 42, .05); --card: var(--jm-paper-2); }
html body .hm { --hm-ink: var(--jm-ink); --hm-ink2: #5b4340; --hm-muted: rgba(69, 45, 42, .72); --hm-line: var(--jm-line); --hm-soft: rgba(69, 45, 42, .05); }
html body .jp .jp-card, html body .hm .hm-card { background: var(--jm-paper-2); border-radius: 0; box-shadow: none; }
html body .jp .jp-input, html body .hm .hm-input { border-radius: 0; background: #fffaf3; }
html body .jp h2, html body .jp h3, html body .hm h2, html body .hm h3 { font-family: var(--jm-display); font-stretch: 115%; }

/* Signed-in shop account (/customer/*) renders inside the theme */
body .customer-page, body .bb-customer-page, body .profile__tab-content { color: var(--jm-ink); }
body .bb-customer-sidebar, body .customer-sidebar, body .profile__tab { background: var(--jm-paper-2) !important; border: 1px solid var(--jm-line) !important; border-radius: 0 !important; }
body .bb-customer-sidebar a.active, body .customer-sidebar a.active, body .profile__tab .nav-link.active { background: var(--jm-ink) !important; color: var(--jm-paper) !important; }

/* Site map (/site-map):editorial index instead of cards — numbered sections on hairlines */
body .jsm { --jsm-line: var(--jm-line); }
body .jsm-jump a { border-radius: 999px; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
body .jsm-jump a:hover, body .jsm-jump a:focus-visible { background: var(--jm-ink); color: var(--jm-paper); }
body .jsm-grid { gap: 0 clamp(24px, 4vw, 64px); }
body .jsm-sec { background: transparent; border: 0; border-top: 1px solid var(--jm-ink); border-radius: 0; padding: 28px 0 36px; }
body .jsm-head { gap: 16px; }
body .jsm-num { font: 500 13px/1 var(--jm-text); color: var(--jm-clay); }
body .jsm-sec h2 { font-size: clamp(24px, 2.6vw, 38px); font-stretch: 125%; }
body .jsm-intro { color: rgba(69, 45, 42, .8); max-width: 46ch; }
body .jsm-list a { font-size: 15px; padding: 11px 0; }
body .jsm-list small { color: rgba(69, 45, 42, .7); }
body .jsm-chips a { background: transparent; border: 1px solid var(--jm-line); }
body .jsm-chips a:hover { background: var(--jm-ink); color: var(--jm-paper); border-color: var(--jm-ink); }
body .jsm-label { color: rgba(69, 45, 42, .7); }

/* cookie banner (jcp consent) */
body #jcp-consent-banner { font-family: var(--jm-text); }
body #jcp-consent-banner button, body #jcp-consent-settings { border-radius: 999px; }

/* ------------------------------------------------------------------ motion */
.jm-js .jm-reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.jm-js .jm-reveal.is-in { opacity: 1; transform: none; }
@keyframes jm-hero-in { to { transform: scale(1); } }
@keyframes jm-marquee { to { transform: translateX(-100%); } }
@keyframes jm-scroll { 0% { transform: translateY(-30px); } 100% { transform: translateY(80px); } }
@keyframes jm-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .jm-hero-img, .jm-marquee-track, .jm-scroll span { animation: none !important; transform: none !important; }
    .jm-js .jm-reveal, .jm-js .jm-split .jm-ch { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 991px) {
    :root { --jm-header: 68px; }
    .jm-hide-md { display: none; }
    .jm-menu-body, .jm-location, .jm-finance, .jm-dev, .jm-contact-grid, .jm-footer-top { grid-template-columns: 1fr; }
    .jm-dev-title, .jm-dev .jm-link { grid-column: 1; grid-row: auto; }
    .jm-intro-lead, .jm-intro-text { grid-column: 1 / -1; }
    .jm-intro-grid > .jm-intro-img:not(.jm-intro-img-2) { grid-column: 1 / 10; }
    .jm-intro-img-2 { grid-column: 5 / 13; margin-top: 0; }
    .jm-stats { grid-template-columns: repeat(2, 1fr); }
    .jm-stat:nth-child(3n + 1) { border-left: 1px solid rgba(242, 230, 214, .2); }
    .jm-stat:nth-child(2n + 1) { border-left: 0; }
    .jm-stat:nth-child(n + 3) { border-top: 1px solid rgba(242, 230, 214, .2); }
    .jm-journal-grid { grid-template-columns: 1fr 1fr; }
    .jm-track { grid-auto-columns: minmax(260px, 70%); }
    .jm-track[data-count="1"] .jm-card { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .jm-hide-sm { display: none; }
    .jm-logo img { display: none; }
    .jm-logo-text b { font-size: 20px; }
    .jm-header { grid-template-columns: 1fr auto; }
    .jm-header > .jm-header-side:first-child { display: none; }
    .jm-logo { justify-self: start; }
    .jm-menu-head { grid-template-columns: 1fr auto; }
    .jm-menu-head > .jm-header-link { display: none; }
    .jm-hero-search { flex-wrap: wrap; }
    .jm-hero-search select { padding-left: 0; }
    .jm-stats, .jm-journal-grid { grid-template-columns: 1fr; }
    .jm-stat { border-left: 0 !important; }
    .jm-stat + .jm-stat { border-top: 1px solid rgba(242, 230, 214, .2); }
    .jm-acc summary { grid-template-columns: 40px 1fr 28px; }
    .jm-acc-body { padding-left: 40px; }
    .jm-track { grid-auto-columns: 86%; }
    .jm-footer-bottom span { width: 100%; }
}

/* ================================================================== homepage motion (jm-motion.js)
   Static, complete layout first; html.jm-motion (GSAP loaded, motion allowed) switches on the scroll-linked versions. */

/* hero — as in the Masters original: content scrolls away; the photo and the clay line stay fixed */
.jm-hero-title { font-size: clamp(32px, min(7.2vw, 10.5vh), 128px); margin-bottom: clamp(16px, 3vh, 52px) !important; }
.jm-hero .jm-hero-body { z-index: 2; padding-top: calc(var(--jm-header) + 24px); padding-bottom: clamp(104px, 18vh, 190px); }
.jm-hero-line { display: none; }

/* footer bar of the hero: dark gradient, brand left, scroll mouse centred, tagline right */
.jm-hero-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: clamp(120px, 26vh, 188px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; padding: 0 var(--jm-gutter) clamp(18px, 3.4vh, 30px); background: linear-gradient(0deg, rgba(20, 12, 10, .62) 0%, rgba(20, 12, 10, 0) 100%); color: var(--jm-paper); pointer-events: none; }
.jm-hero-foot > * { pointer-events: auto; }
.jm-hero-brand { font: 600 12px/1.2 var(--jm-display); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; }
.jm-hero-tag { justify-self: end; text-align: right; font: 500 14px/1.3 var(--jm-text); letter-spacing: .02em; text-transform: uppercase; }
.jm-mouse { position: relative; display: block; width: 15px; height: 27px; border: 1.8px solid var(--jm-paper); border-radius: 100px; }
.jm-mouse i { position: absolute; left: 50%; top: 5px; width: 2px; height: 7px; margin-left: -1px; background: var(--jm-paper); animation: jm-mouse 1.8s ease-in-out infinite; }
@keyframes jm-mouse { 0% { transform: translateY(0); } 100% { transform: translateY(7px); } }
.jm-scroll { display: none; }

/* At least one screen tall; grows on short screens so the content never runs under the header. */
.jm-motion .jm-hero { position: relative; z-index: 1; min-height: max(100vh, 560px); height: auto; overflow: visible; background: transparent; }
.jm-motion .jm-hero-img, .jm-motion .jm-hero-shade { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; }
.jm-motion .jm-hero-img { animation: none; transform: none; will-change: transform; }
/* The 10×1 px clay line, fixed 44 % down the screen like the original, scaled by jm-motion.js. */
.jm-motion .jm-hero-line { display: block; position: fixed; left: 50%; top: 44vh; width: 10px; height: 1px; margin-left: -5px; background: var(--jm-clay); transform-origin: 50% 50%; z-index: 3; pointer-events: none; will-change: transform; }
.jm-motion .jm-fx-off .jm-hero-img, .jm-motion .jm-fx-off .jm-hero-shade, .jm-motion .jm-fx-off .jm-hero-line { visibility: hidden; }

/* opening sequence: photos open from a point on the clay screen */
body #app .jm-dive, .jm-dive { background: var(--jm-clay) !important; padding: 0 !important; margin: 0; max-width: none; }
.jm-dive-stage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.jm-dive-item { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.jm-dive-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 440vh = 100vh on screen + 3.4 screens of drone climb (frames settle at 3.0, then a short hold). */
html.jm-motion body #app .jm-dive { position: relative; z-index: 2; height: 440vh; background: transparent !important; }
.jm-motion .jm-dive-stage { position: sticky; top: 0; height: 100vh; display: block; overflow: hidden; }
.jm-motion .jm-dive-item { position: absolute; inset: 0; aspect-ratio: auto; visibility: hidden; clip-path: inset(50%); z-index: calc(var(--i) + 1); }
.jm-motion .jm-dive-item img { position: absolute; left: 50%; top: 50%; max-width: none; object-fit: cover; transform-origin: 50% 50%; will-change: transform; }
/* Everything after the opening sequence slides over the fixed photo and clay screen. */
.jm-motion .jm-dive ~ * { position: relative; z-index: 3; }
html.jm-motion body #app .jm-intro { background-color: var(--jm-paper) !important; }

/* random rise: each word is a mask the letters rise out of */
.jm-motion .jm-split:not(.jm-hero-title) .jm-word { overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.jm-motion .jm-split:not(.jm-hero-title) .jm-ch { opacity: 1; transform: translateY(120%); transition: none; will-change: transform; }

/* location: map beside the distances */
.jm-home .jm-location { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 5vw, 80px); }
.jm-map-wrap { position: sticky; top: calc(var(--jm-header) + 24px); }
.jm-map { height: min(78vh, 680px); min-height: 380px; background: #e9dcc8; border: 1px solid var(--jm-line); }
.jm-map .leaflet-tile-pane { filter: grayscale(1) sepia(.5) saturate(1.15) brightness(1.03) contrast(.9); }
.jm-map .leaflet-control-zoom a { background: var(--jm-paper-2); color: var(--jm-ink); border-color: var(--jm-line); border-radius: 0 !important; }
.jm-map .leaflet-control-attribution { background: rgba(252, 240, 224, .85); color: var(--jm-ink); font-size: 10px; }
.jm-map-note { margin: 12px 0 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(69, 45, 42, .75); }
.jm-pin { background: none; border: 0; }
.jm-pin-office span { display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px; background: var(--jm-ink); color: var(--jm-paper); font: 600 13px/1 var(--jm-display); font-stretch: 125%; letter-spacing: .04em; box-shadow: 0 6px 18px rgba(55, 37, 34, .35); }
.jm-pin-place i { display: block; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--jm-clay); border: 3px solid var(--jm-paper-2); box-shadow: 0 3px 10px rgba(55, 37, 34, .35); transition: transform .3s ease; }
.jm-pin-place:hover i { transform: scale(1.25); }
.leaflet-tooltip.jm-tip { background: var(--jm-ink); color: var(--jm-paper); border: 0; border-radius: 0; font: 500 12px/1.3 var(--jm-text); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; box-shadow: none; }
.leaflet-tooltip.jm-tip::before { border-top-color: var(--jm-ink); }
.jm-location-body .jm-display { margin-bottom: 18px; }
.jm-home .jm-distances { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 24px; border-top: 0; margin-top: 12px; }
.jm-home .jm-distances li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: baseline; gap: 2px 8px; padding: 18px 0 16px; border-bottom: 1px solid var(--jm-line); border-top: 1px solid transparent; transition: border-color .3s ease, color .3s ease; }
.jm-home .jm-distances li[data-lat] { cursor: pointer; }
.jm-home .jm-distances li b { grid-row: 1; grid-column: 1; font-size: clamp(34px, 3.4vw, 54px); }
.jm-home .jm-distances li small { grid-row: 1; grid-column: 2; }
.jm-home .jm-distances li span { grid-row: 2; grid-column: 1 / -1; font-size: 12px; letter-spacing: .08em; }
.jm-home .jm-distances li[data-lat] span::after { content: ' ●'; color: var(--jm-clay); font-size: 9px; vertical-align: 2px; }
.jm-home .jm-distances li.is-on, .jm-home .jm-distances li[data-lat]:hover, .jm-home .jm-distances li[data-lat]:focus-visible { border-bottom-color: var(--jm-ink); outline: none; }

/* key figures — the original's "architecture" screen: the photo opens from a 430×320 window while two
   columns of cards move apart vertically (static layout when motion is off) */
body #app .jm-figures, .jm-figures { position: relative; padding: 0 !important; background-color: var(--jm-paper) !important; }
.jm-figures-stage { position: relative; min-height: 100vh; overflow: hidden; padding: clamp(80px, 14vh, 160px) var(--jm-gutter); }
.jm-figures-window { position: absolute; inset: 0; --win-w: 4000px; --win-h: 4000px; clip-path: inset(max(0px, calc(50% - var(--win-h) / 2)) max(0px, calc(50% - var(--win-w) / 2))); }
.jm-figures-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jm-figures-cols { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 34vw, 520px); max-width: 1240px; margin: 0 auto; }
.jm-figures-col { display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 32px); will-change: transform; }
.jm-figures-col[data-dir="1"] { padding-top: clamp(80px, 22vh, 240px); }
.jm-figures .jm-stat { background: var(--jm-ink); color: var(--jm-paper); border: 0; padding: clamp(18px, 2vw, 30px); max-width: 360px; }
.jm-figures-col[data-dir="1"] .jm-stat { margin-left: auto; }
.jm-figures .jm-stat b { color: var(--jm-paper); font-size: clamp(36px, 3.8vw, 64px); }
.jm-figures .jm-stat span { color: var(--jm-clay-2); }
.jm-figures .jm-stat p { opacity: .8; }
.jm-motion .jm-figures { height: 275vh; }
.jm-motion .jm-figures-stage { position: sticky; top: 0; height: 100vh; min-height: 0; }
.jm-motion .jm-figures-window { --win-w: 430px; --win-h: 320px; will-change: clip-path; }

/* gallery slideshow + preview */
.jm-gallery { padding: clamp(64px, 10vw, 140px) var(--jm-gutter); }
.jm-gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.jm-gallery-head .jm-display { margin: 0; }
.jm-gallery-nav { display: flex; align-items: center; gap: 10px; }
.jm-gallery-count { font-size: 13px; letter-spacing: .14em; margin-right: 12px; }
.jm-gallery-nav button, .jm-lightbox button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--jm-ink); background: transparent; color: var(--jm-ink); font-size: 18px; cursor: pointer; transition: background .3s, color .3s; }
.jm-gallery-nav button:hover, .jm-gallery-nav button:focus-visible { background: var(--jm-ink); color: var(--jm-paper); }
.jm-gallery-stage { position: relative; aspect-ratio: 16 / 8; min-height: 320px; overflow: hidden; background: var(--jm-ink-2); touch-action: pan-y; user-select: none; }
.jm-gallery-slide { position: absolute; inset: 0; margin: 0; visibility: hidden; clip-path: inset(0 0 0 100%); transition: clip-path 1.05s cubic-bezier(.7, 0, .2, 1), visibility 0s 1.05s; }
.jm-gallery-slide.from-left { clip-path: inset(0 100% 0 0); }
.jm-gallery-slide.is-active { visibility: visible; clip-path: inset(0 0 0 0); z-index: 2; transition: clip-path 1.05s cubic-bezier(.7, 0, .2, 1), visibility 0s; }
.jm-gallery-slide.is-leaving { visibility: visible; z-index: 1; }
.jm-gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.jm-gallery-slide.is-active img { transform: scale(1); }
.jm-gallery-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 60px clamp(16px, 2.5vw, 36px) clamp(16px, 2.5vw, 30px); background: linear-gradient(0deg, rgba(55, 37, 34, .7), transparent); color: var(--jm-paper); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.jm-gallery-slide figcaption small { font-size: 10px; opacity: .8; letter-spacing: .08em; }
.jm-gallery-open { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(252, 240, 224, .9); color: var(--jm-ink); font-size: 18px; cursor: zoom-in; z-index: 3; }
.jm-gallery-open:hover, .jm-gallery-open:focus-visible { background: var(--jm-ink); color: var(--jm-paper); }
.jm-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(32, 22, 20, .96); color: var(--jm-paper); }
.jm-lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.jm-lightbox::backdrop { background: rgba(32, 22, 20, .9); }
.jm-lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 92vh; }
.jm-lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.jm-lightbox figcaption { display: flex; flex-direction: column; align-items: center; gap: 4px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.jm-lightbox button { border-color: rgba(242, 230, 214, .5); color: var(--jm-paper); justify-self: center; }
.jm-lightbox button:hover, .jm-lightbox button:focus-visible { background: var(--jm-paper); color: var(--jm-ink); }
.jm-lightbox-close { position: absolute; top: 18px; right: 18px; }

@media (max-width: 991px) {
    .jm-home .jm-location { grid-template-columns: 1fr; }
    .jm-map-wrap { position: static; }
    .jm-map { height: 420px; }
    .jm-hero-foot { grid-template-columns: 1fr auto; }
    .jm-hero-brand { display: none; }
}
@media (max-width: 575px) {
    .jm-figures-cols { gap: 12px; }
    .jm-figures .jm-stat { padding: 14px; }
    .jm-figures .jm-stat b { font-size: 30px; }
    .jm-dive-stage { grid-template-columns: 1fr; }
    .jm-gallery-stage { aspect-ratio: 4 / 5; }
    .jm-gallery-nav button { width: 44px; height: 44px; }
    .jm-lightbox[open] { grid-template-columns: 52px 1fr 52px; }
    .jm-gallery-slide figcaption { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .jm-gallery-slide, .jm-gallery-slide img { transition: none !important; }
}
