/* ============================================================================
   Caribbean — Suisse Group · Website layer
   Builds on the design-system tokens (imported below). Adds the luxury
   execution layer: layout, header/footer, buttons, property cards,
   search, map, and a harmonised motion system.
   ========================================================================== */

@import url("../styles.css");

/* ----------------------------------------------------------------------------
   0 · Page foundations
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--surface-page);
  color: var(--text-body);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.u-container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: clamp(24px, 5vw, 48px); }
.u-narrow { max-width: var(--container-narrow); }
.u-section { padding-block: clamp(72px, 11vw, 128px); }
.u-section--sm { padding-block: clamp(56px, 8vw, 88px); }
.u-dark { background: var(--surface-inverse); color: var(--text-on-dark); }
.u-darker { background: var(--surface-inverse-2); color: var(--text-on-dark); }
.u-sunken { background: var(--surface-sunken); }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy-900); color: var(--paper-100);
  padding: 12px 18px; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.04em;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* ----------------------------------------------------------------------------
   1 · Typographic roles
   -------------------------------------------------------------------------- */
.t-display { font-family: var(--font-display); font-weight: 500; line-height: 1.02; letter-spacing: -0.012em; }
.t-display em, .t-italic { font-style: italic; font-weight: 400; }
.t-serif { font-family: var(--font-serif); font-weight: 400; line-height: 1.6; }
.t-h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -0.01em; color: var(--text-strong); margin: 0; }
.u-dark .t-h2, .u-darker .t-h2 { color: var(--paper-100); }
.t-h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; color: var(--text-strong); margin: 0; }
.t-lead { font-family: var(--font-serif); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.65; color: var(--text-body); }
.u-dark .t-lead { color: var(--navy-200); }
.t-gold { color: var(--text-accent); }
.u-dark .t-gold, .u-darker .t-gold { color: var(--gold-400); }

/* Eyebrow — the brand signature: a short gold rule that GROWS on reveal,
   followed by uppercase tracked label. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-sans); font-weight: 500; font-size: 12px;
  letter-spacing: var(--ls-overline); text-transform: uppercase;
  color: var(--gold-800); margin: 0; /* darker gold meets WCAG AA on ivory */
}
.u-dark .eyebrow, .u-darker .eyebrow, .eyebrow--on-dark { color: var(--gold-400); }
.eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--gold-500);
  flex: none; transform-origin: left center;
  transition: width var(--dur-slow) var(--ease-out);
}
.eyebrow--center { justify-content: center; }
.is-visible .eyebrow::before, .eyebrow.is-visible::before { width: 44px; }

/* ----------------------------------------------------------------------------
   2 · Buttons
   -------------------------------------------------------------------------- */
.btn {
  --_bg: var(--gold-500); --_fg: var(--navy-900); --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 500; font-size: 13px;
  letter-spacing: var(--ls-button); text-transform: uppercase;
  padding: 15px 28px; border-radius: var(--radius-md);
  background: var(--_bg); color: var(--_fg); border: 1px solid var(--_bd);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 11px 18px; font-size: 12px; }
.btn--lg { padding: 17px 34px; font-size: 13.5px; }
.btn--full { width: 100%; }
.btn--outline { --_bg: transparent; --_fg: var(--navy-800); --_bd: var(--border-strong); }
.btn--outline:hover { background: var(--navy-800); color: var(--paper-100); }
.btn--on-dark { --_bg: transparent; --_fg: var(--paper-100); --_bd: rgba(244,241,234,0.45); }
.btn--on-dark:hover { background: var(--paper-100); color: var(--navy-900); border-color: var(--paper-100); }
.btn--ghost { --_bg: transparent; --_fg: var(--text-body); --_bd: transparent; padding-inline: 4px; }
.btn--ghost:hover { background: transparent; color: var(--text-accent); }

/* ----------------------------------------------------------------------------
   3 · Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px clamp(24px, 5vw, 48px);
  background: rgba(244,241,234,0.86);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border-hairline);
  transition: background var(--dur-base), border-color var(--dur-base), padding var(--dur-base);
}
/* Transparent variant for pages with a full-bleed hero */
.site-header[data-variant="transparent"] {
  position: fixed; left: 0; right: 0;
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.site-header[data-variant="transparent"].is-scrolled {
  position: fixed; background: rgba(15,28,46,0.82);
  backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom-color: var(--border-on-dark);
}
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: var(--navy-900); }
.site-header[data-variant="transparent"] .brand,
.site-header[data-variant="transparent"] .nav-link,
.site-header[data-variant="transparent"] .lang-btn { color: var(--paper-100); }
.brand__mark { height: 30px; width: auto; display: block; color: inherit; }
.brand__divider { width: 1px; height: 30px; background: var(--border-soft); flex: none; }
.site-header[data-variant="transparent"] .brand__divider { background: rgba(244,241,234,0.3); }
.brand__name { display: inline-flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand__name b { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: 3.6px; color: inherit; }
.brand__name span { font-family: var(--font-sans); font-weight: 400; font-size: 7.5px; letter-spacing: 3px; color: var(--navy-500); }
.site-header[data-variant="transparent"] .brand__name span { color: var(--gold-400); }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 34px); }
.nav-link {
  position: relative; font-family: var(--font-sans); font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: var(--navy-800); padding-block: 6px;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold-500); transition: right var(--dur-base) var(--ease-out);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { right: 0; }
.nav-tools { display: flex; align-items: center; gap: 16px; padding-left: 22px; border-left: 1px solid var(--border-hairline); }
.site-header[data-variant="transparent"] .nav-tools { border-left-color: rgba(244,241,234,0.24); }
.lang { display: flex; gap: 9px; }
.lang-btn {
  background: none; border: none; cursor: pointer; padding: 4px 2px;
  font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-muted); text-transform: uppercase;
}
.lang-btn[aria-pressed="true"] { color: var(--text-accent); font-weight: 500; }
.site-header[data-variant="transparent"] .lang-btn[aria-pressed="true"] { color: var(--gold-400); }

/* header CTA adapts to header variant */
.btn.nav-cta { --_bg: transparent; --_fg: var(--navy-800); --_bd: var(--border-strong); }
.btn.nav-cta:hover { background: var(--navy-800); color: var(--paper-100); }
.site-header[data-variant="transparent"] .btn.nav-cta { --_fg: var(--paper-100); --_bd: rgba(244,241,234,0.5); }
.site-header[data-variant="transparent"] .btn.nav-cta:hover { background: var(--paper-100); color: var(--navy-900); border-color: var(--paper-100); }

/* footer brand uses inverse colours */
.site-footer .brand { color: var(--paper-100); }
.site-footer .brand__name span { color: var(--gold-400); }
.site-footer .brand__divider { background: rgba(244,241,234,0.3); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: var(--navy-800); margin: 5px 0; transition: transform var(--dur-base), opacity var(--dur-base); }
.site-header[data-variant="transparent"] .nav-toggle span { background: var(--paper-100); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(7,14,24,0.5); opacity: 0; transition: opacity var(--dur-base) var(--ease-standard); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 380px);
  background: var(--surface-inverse); box-shadow: var(--shadow-xl);
  transform: translateX(100%); transition: transform var(--dur-slow) var(--ease-out);
  display: flex; flex-direction: column; padding: 24px 28px 32px;
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__close { align-self: flex-end; background: none; border: none; color: var(--paper-100); font-size: 30px; line-height: 1; cursor: pointer; font-family: var(--font-sans); }
.drawer nav { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.drawer nav a { font-family: var(--font-display); font-weight: 400; font-size: 30px; text-decoration: none; color: var(--paper-100); padding: 6px 0; }
.drawer nav a[aria-current="page"] { color: var(--gold-400); }
.drawer__foot { margin-top: auto; padding-top: 28px; }
.drawer__foot .lang { gap: 16px; margin-bottom: 22px; }
.drawer__foot .lang-btn { color: var(--navy-300); font-size: 13px; }
.drawer__foot .lang-btn[aria-pressed="true"] { color: var(--gold-400); }

/* ----------------------------------------------------------------------------
   4 · Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--surface-inverse-2); color: var(--text-on-dark-muted); padding: clamp(56px,8vw,80px) clamp(24px,5vw,48px) 40px; }
.site-footer__grid { max-width: var(--container-max); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.site-footer h4 { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-400); margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.site-footer a { font-family: var(--font-sans); font-size: 13.5px; color: var(--navy-200); text-decoration: none; transition: color var(--dur-fast); }
.site-footer a:hover { color: var(--gold-400); }
.site-footer__lede { font-family: var(--font-serif); font-size: 17px; line-height: 1.6; color: var(--navy-200); margin: 22px 0 0; max-width: 290px; }
.site-footer__base { max-width: var(--container-max); margin: 52px auto 0; padding-top: 24px; border-top: 1px solid var(--border-on-dark); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-family: var(--font-sans); font-size: 11.5px; letter-spacing: 0.04em; color: var(--navy-300); }

/* ----------------------------------------------------------------------------
   5 · Hero (cinematic, full-bleed, layered cross-fade)
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__layer { position: absolute; inset: 0; background-size: cover; background-position: center; will-change: transform, opacity; }
.hero__layer { backface-visibility: hidden; transform-origin: center; }
.hero__layer--a { animation: kenA 24s ease-in-out infinite; }
.hero__layer--b { animation: kenB 24s ease-in-out infinite; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7,14,24,0.84) 0%, rgba(7,14,24,0.5) 36%, rgba(7,14,24,0.12) 66%, rgba(7,14,24,0.04) 100%); }
.hero__scrim--v { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,14,24,0.72) 0%, rgba(7,14,24,0.08) 40%, rgba(7,14,24,0.4) 100%); }
.hero__side { position: absolute; right: 26px; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(244,241,234,0.6); }
.hero__inner { position: relative; z-index: 3; padding: 132px clamp(24px,5vw,64px) 110px; max-width: 720px; }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(42px, 6vw, 88px); line-height: 1.0; letter-spacing: -0.015em; color: var(--paper-100); margin: 22px 0 0; text-wrap: balance; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--gold-400); }
.hero__lead { font-family: var(--font-serif); font-size: clamp(18px,1.7vw,22px); line-height: 1.55; color: var(--navy-100); max-width: 520px; margin: 22px 0 0; }
.hero__draw { width: 300px; height: 14px; margin: 16px 0 0; display: block; overflow: visible; }
.hero__draw path { stroke: var(--gold-500); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-dasharray: 360; stroke-dashoffset: 360; animation: drawLine 1.7s var(--ease-out) 0.5s forwards; }
.hero__cta { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(244,241,234,0.7); font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; }
.hero__scroll svg { animation: bob 2.4s ease-in-out infinite; }

/* ----------------------------------------------------------------------------
   6 · Search panel
   -------------------------------------------------------------------------- */
.search {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)) auto; gap: 16px; align-items: end;
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-lg); border-radius: var(--radius-md); padding: 22px 24px;
}
.search--on-dark { background: rgba(15,28,46,0.5); border-color: rgba(244,241,234,0.2); box-shadow: none; backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label { font-family: var(--font-sans); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.search--on-dark .field > label { color: var(--gold-400); }
.field select, .field input {
  font-family: var(--font-sans); font-size: 14px; color: var(--text-strong);
  background: transparent; border: none; border-bottom: 1px solid var(--border-soft);
  padding: 8px 24px 8px 0; border-radius: 0; appearance: none; cursor: pointer; width: 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A8270' stroke-width='1.5'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 2px center;
  transition: border-color var(--dur-base);
}
.search--on-dark .field select, .search--on-dark .field input { color: var(--paper-100); border-bottom-color: rgba(244,241,234,0.4); }
.search--on-dark .field select option { color: var(--navy-900); }
.field input { cursor: text; background-image: none; padding-right: 0; }
.field select:focus, .field input:focus { outline: none; border-bottom-color: var(--gold-500); }

/* ----------------------------------------------------------------------------
   7 · Property cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: flex; flex-direction: column; background: var(--surface-card);
  border: 1px solid var(--border-hairline); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-xs); text-decoration: none; color: inherit;
  transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.card:hover .card__media img { transform: scale(1.06); }
.card__badge { position: absolute; top: 14px; left: 14px; font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; background: var(--gold-500); color: var(--navy-900); padding: 6px 11px; border-radius: var(--radius-sm); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__loc { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.card__title { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--text-strong); margin: 2px 0 0; }
.card__meta { font-family: var(--font-sans); font-size: 13px; color: var(--text-body); margin-top: 2px; }
.card__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border-hairline); }
.card__price { font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--text-strong); }
.card__cta { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-800); }

/* ----------------------------------------------------------------------------
   8 · Stats band
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; max-width: 1100px; margin: 0 auto; }
.stat__n { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 4vw, 52px); color: var(--navy-800); line-height: 1; }
.stat__l { font-family: var(--font-sans); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-top: 14px; }

/* ----------------------------------------------------------------------------
   9 · Listings page (search + map)
   -------------------------------------------------------------------------- */
.listings-head { background: var(--surface-inverse); color: var(--text-on-dark); padding: clamp(96px,12vw,150px) clamp(24px,5vw,48px) clamp(40px,6vw,64px); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border-hairline); position: sticky; top: 64px; background: rgba(244,241,234,0.92); backdrop-filter: blur(8px); z-index: 40; }
.toolbar__count { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.04em; color: var(--text-muted); }
.toolbar__count b { color: var(--text-strong); font-weight: 500; }
.toolbar__right { display: flex; align-items: center; gap: 18px; }
.seg { display: inline-flex; border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow: hidden; }
.seg button { background: none; border: none; cursor: pointer; padding: 9px 16px; font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.seg button[aria-pressed="true"] { background: var(--navy-800); color: var(--paper-100); }

.listings-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; align-items: start; }
.listings-layout.is-list { grid-template-columns: 1fr; }
.listings-results { padding: 32px clamp(24px,5vw,48px) 96px; }
.listings-results .grid--2 { grid-template-columns: repeat(2, 1fr); }
.is-list .listings-results .grid--2 { grid-template-columns: repeat(3, 1fr); }
.map-wrap { position: sticky; top: 116px; height: calc(100svh - 116px); }
#map { width: 100%; height: 100%; background: var(--navy-100); }
.is-list .map-wrap { display: none; }

.empty { text-align: center; padding: 80px 24px; }
.empty h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--text-strong); margin: 0 0 10px; }
.empty p { font-family: var(--font-sans); font-size: 14px; color: var(--text-muted); }

/* Leaflet marker — gold pin with pulse */
.pin { position: relative; }
.pin__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--gold-500); border: 2px solid var(--paper-100); box-shadow: 0 2px 6px rgba(7,14,24,0.4); }
.pin__pulse { position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--gold-500); animation: pulse 2.4s ease-out infinite; }
.pin--active .pin__dot { background: var(--navy-800); }
.leaflet-popup-content-wrapper { border-radius: var(--radius-md) !important; padding: 0 !important; overflow: hidden; box-shadow: var(--shadow-lg) !important; }
.leaflet-popup-content { margin: 0 !important; width: 210px !important; }
.map-pop { text-decoration: none; color: inherit; display: block; }
.map-pop img { width: 100%; height: 116px; object-fit: cover; }
.map-pop__b { padding: 12px 14px 14px; }
.map-pop__loc { font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.map-pop__t { font-family: var(--font-display); font-size: 18px; color: var(--text-strong); margin: 3px 0 6px; }
.map-pop__p { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--text-accent); }

/* ----------------------------------------------------------------------------
   10 · Property detail
   -------------------------------------------------------------------------- */
.detail-gallery { padding: 32px clamp(24px,5vw,48px) 0; }
.detail-hero { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/8; background: var(--navy-100); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 14px; }
.detail-thumbs button { padding: 0; border: none; cursor: pointer; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/10; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color var(--dur-fast), opacity var(--dur-fast); opacity: 0.78; }
.detail-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs button[aria-current="true"] { outline-color: var(--gold-500); opacity: 1; }
.detail-body { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(40px,5vw,72px); align-items: start; }
.facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border-hairline); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); overflow: hidden; }
.fact { background: var(--surface-card); padding: 22px 24px; }
.fact dt { font-family: var(--font-sans); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin: 0; }
.fact dd { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--text-strong); margin: 8px 0 0; }
.features { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.features li { display: flex; gap: 12px; align-items: baseline; font-family: var(--font-sans); font-size: 15px; color: var(--text-body); padding-bottom: 14px; border-bottom: 1px solid var(--border-hairline); }
.features li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); flex: none; transform: translateY(-2px); }
.enquiry { position: sticky; top: 96px; background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 30px; }
.agent { display: flex; align-items: center; gap: 14px; margin: 22px 0; padding-bottom: 22px; border-bottom: 1px solid var(--border-hairline); }
.agent__av { width: 52px; height: 52px; border-radius: 50%; background: var(--navy-700); color: var(--gold-400); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 21px; flex: none; object-fit: cover; object-position: center top; }
.agent__n { font-family: var(--font-sans); font-size: 14.5px; font-weight: 500; color: var(--text-strong); }
.agent__r { font-family: var(--font-sans); font-size: 12.5px; color: var(--text-muted); }
.detail-map { height: 320px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-hairline); }

/* Form fields (underline-forward) */
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row label { font-family: var(--font-sans); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.form-row input, .form-row textarea, .form-row select {
  font-family: var(--font-sans); font-size: 15px; color: var(--text-strong);
  background: transparent; border: none; border-bottom: 1px solid var(--border-soft);
  padding: 9px 0; border-radius: 0; transition: border-color var(--dur-base);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-bottom-color: var(--gold-500); }
.form-note { font-family: var(--font-sans); font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.form-ok { font-family: var(--font-sans); font-size: 14px; color: var(--success-600); display: none; }
.is-sent .form-ok { display: block; }

/* mobile sticky enquire bar */
.enquire-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; background: var(--surface-inverse); border-top: 1px solid var(--border-on-dark); }
.enquire-bar__p { font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--paper-100); }
.enquire-bar__m { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.04em; color: var(--navy-300); margin-top: 2px; }

/* ----------------------------------------------------------------------------
   11 · Editorial split + process timeline
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split__media { position: relative; min-height: 520px; background-size: cover; background-position: center; }
.img-credit { position: absolute; bottom: 8px; right: 10px; font-family: var(--font-sans); font-size: 9px; letter-spacing: 0.04em; color: rgba(244,241,234,0.72); background: rgba(7,14,24,0.34); padding: 3px 7px; border-radius: 3px; text-decoration: none; }
.img-credit:hover { color: #fff; }
.split__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px,6vw,110px); }
.split--reverse .split__media { order: 2; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { padding-top: 28px; border-top: 1px solid var(--border-on-dark); }
.step__n { font-family: var(--font-display); font-weight: 400; font-size: 16px; color: var(--gold-400); letter-spacing: 0.1em; }
.step__t { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--paper-100); margin: 14px 0 10px; }
.step__d { font-family: var(--font-sans); font-size: 14px; line-height: 1.6; color: var(--navy-200); }

/* ----------------------------------------------------------------------------
   12 · Reveal-on-scroll motion (harmonised)
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-reveal="fade"] { transform: none; }
.reveal[data-reveal="scale"] { transform: scale(1.04); }
.reveal[data-reveal="scale"].is-visible { transform: none; }

/* Single synced ken-burns + crossfade per layer (no desync flicker) */
@keyframes kenA {
  0%   { opacity: 1; transform: scale(1.045); }
  40%  { opacity: 1; transform: scale(1.10); }
  50%  { opacity: 0; transform: scale(1.11); }
  90%  { opacity: 0; transform: scale(1.045); }
  100% { opacity: 1; transform: scale(1.045); }
}
@keyframes kenB {
  0%   { opacity: 0; transform: scale(1.11); }
  40%  { opacity: 0; transform: scale(1.045); }
  50%  { opacity: 1; transform: scale(1.05); }
  90%  { opacity: 1; transform: scale(1.11); }
  100% { opacity: 0; transform: scale(1.11); }
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes pulse { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(2.1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero__layer--a, .hero__layer--b, .hero__draw path, .hero__scroll svg, .pin__pulse { animation: none !important; }
  .hero__layer--b { opacity: 1; }
  .hero__draw path { stroke-dashoffset: 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ----------------------------------------------------------------------------
   14 · Video (cinematic film band + detail tour) — added in v2
   -------------------------------------------------------------------------- */
.film { background: var(--surface-inverse-2); color: var(--text-on-dark); overflow: hidden; }
.film__grid { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(32px,5vw,72px); }
.film__copy { padding: clamp(48px,7vw,110px); }
.vframe { position: relative; background: #000; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.vframe video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vframe--portrait { padding: 24px; }
.vframe--portrait video { width: auto; max-width: 100%; max-height: 70vh; object-fit: contain; border-radius: var(--radius-md); }

.detail-video { background: var(--surface-inverse); padding: clamp(32px,5vw,56px) clamp(24px,5vw,48px); }
.detail-video__inner { max-width: var(--container-max); margin: 0 auto; }
.detail-video__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.video-shell { position: relative; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.video-shell--land { aspect-ratio: 16/9; }
.video-shell--port { display: flex; justify-content: center; background: var(--surface-inverse-2); padding: 16px; }
.video-shell--land video { width: 100%; height: 100%; object-fit: cover; }
.video-shell--port video { height: min(74vh, 760px); width: auto; max-width: 100%; border-radius: var(--radius-sm); }

/* Investment band */
.invest { background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); padding: 28px; }
.invest__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border-hairline); border: 1px solid var(--border-hairline); border-radius: var(--radius-sm); overflow: hidden; }
.invest__cell { background: var(--surface-card); padding: 18px 18px; }
.invest__k { font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-600); }
.invest__v { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--text-strong); margin-top: 8px; }
.invest__note { display: flex; gap: 10px; align-items: baseline; margin-top: 18px; font-family: var(--font-sans); font-size: 13.5px; color: var(--text-body); }
.invest__note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); flex: none; transform: translateY(-2px); }
.invest__disc { font-family: var(--font-sans); font-size: 11.5px; color: var(--text-muted); margin-top: 12px; line-height: 1.5; }

/* ----------------------------------------------------------------------------
   15 · Compare table
   -------------------------------------------------------------------------- */
.cmp-table-wrap { overflow-x: auto; border: 1px solid var(--border-hairline); border-radius: var(--radius-md); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 720px; font-family: var(--font-sans); }
.cmp-table th, .cmp-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border-hairline); vertical-align: top; font-size: 14px; }
.cmp-table thead th { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone-600); background: var(--surface-sunken); position: sticky; top: 0; }
.cmp-table thead th.is-rd { color: var(--navy-900); background: var(--gold-100); }
.cmp-table tbody th { font-weight: 500; color: var(--text-strong); width: 240px; }
.cmp-table td.is-rd { background: rgba(200,162,90,0.08); color: var(--text-strong); font-weight: 500; }
.cmp-table .pos { color: var(--success-600); font-weight: 500; }
.cmp-table .neg { color: var(--danger-600); }
.cmp-col { font-family: var(--font-display); font-size: 17px; }

/* ----------------------------------------------------------------------------
   16 · Team
   -------------------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.member { background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-xs); }
.member__av { width: 82px; height: 82px; border-radius: 50%; background: var(--navy-700); color: var(--gold-400); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 28px; }
.member__ph { width: 82px; height: 82px; border-radius: 50%; object-fit: cover; object-position: center top; box-shadow: var(--shadow-sm); }
.member__n { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--text-strong); margin: 18px 0 4px; }
.member__r { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-800); }
.member__b { font-family: var(--font-sans); font-size: 14px; line-height: 1.6; color: var(--text-body); margin-top: 14px; }
.member__l { display: inline-flex; gap: 14px; margin-top: 16px; }
.member__l a { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-accent); text-decoration: none; }

/* ----------------------------------------------------------------------------
   17 · Blog / Journal
   -------------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.post { display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-xs); transition: box-shadow var(--dur-base), transform var(--dur-base); }
.post:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post__media { aspect-ratio: 16/10; overflow: hidden; background: var(--navy-100); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.post:hover .post__media img { transform: scale(1.05); }
.post__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__meta { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-600); display: flex; gap: 10px; }
.post__cat { color: var(--gold-800); }
.post__t { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.18; color: var(--text-strong); }
.post__x { font-family: var(--font-serif); font-size: 16px; line-height: 1.5; color: var(--text-body); }
.post__more { margin-top: auto; padding-top: 12px; font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-800); }
.badge-soft { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-400); }
.badge-soft::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }

@media (max-width: 920px) {
  .film__grid { grid-template-columns: 1fr; }
  .vframe { order: -1; }
  .team-grid, .post-grid { grid-template-columns: repeat(2,1fr); }
  .invest__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .team-grid, .post-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------------------
   18 · Trust strip · services · offices (added in v3)
   -------------------------------------------------------------------------- */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 0; }
.trust-strip__i { display: inline-flex; align-items: center; gap: 10px; padding: 4px 20px; font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-600); white-space: nowrap; }
.trust-strip__i::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); flex: none; }

.svc-norisk { display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; }
.svc-norisk span:last-child { font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2.2vw, 27px); color: var(--text-strong); }
.u-dark .svc-norisk span:last-child { color: var(--paper-100); }

.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.office { background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-xs); }
.office__addr { font-family: var(--font-serif); font-size: 18px; line-height: 1.55; color: var(--text-strong); margin: 14px 0 0; }
.office__rows { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-hairline); display: grid; gap: 14px; }
.office__rows a { font-family: var(--font-sans); font-size: 15px; color: var(--text-strong); text-decoration: none; }
.office__map { height: 190px; border-radius: var(--radius-sm); overflow: hidden; margin-top: 18px; border: 1px solid var(--border-hairline); }
@media (max-width: 720px) { .offices { grid-template-columns: 1fr; } }

/* Micro-labels: deepen muted to stone-600 so small uppercase text clears WCAG AA */
.card__loc, .fact dt, .map-pop__loc, .stat__l, .form-row label, .field > label { color: var(--stone-600); }
.search--on-dark .field > label { color: var(--gold-400); }

/* ----------------------------------------------------------------------------
   13 · Responsive — designed for phone, not shrunk
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .search { grid-template-columns: repeat(2, 1fr); }
  .search .btn { grid-column: 1 / -1; }
  .listings-layout { grid-template-columns: 1fr; }
  .map-wrap { position: relative; top: 0; height: 60vh; order: -1; }
  .is-list .listings-results .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .nav, .nav-tools { display: none; }
  .nav-toggle { display: block; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 300px; order: -1 !important; }
  .detail-body { grid-template-columns: 1fr; }
  .enquiry { position: static; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}
@media (max-width: 620px) {
  .grid--3, .grid--2, .listings-results .grid--2, .is-list .listings-results .grid--2 { grid-template-columns: 1fr; }
  .search { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .detail-thumbs { grid-template-columns: repeat(4, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero__side { display: none; }
  .enquire-bar { display: flex; }
  .detail-body { padding-bottom: 80px; }
}
