/* ============================================================
   CASA SALITRE — Colors & Type
   Holiday house · Caleta de Famara, Lanzarote
   Relaxed, coastal, salt-breeze, whitewashed walls & blue shutters
   ============================================================ */

/* ---- Fonts -------------------------------------------------
   Headings: Caladea  (free metric-equivalent of "Caladea Pro")
   Body:     Mulish   (airy humanist sans — relaxed & coastal)
   Substitution flagged in README → swap in licensed Caladea Pro
   for production if available.
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Caladea:ital,wght@0,400;0,700;1,400;1,700&family=Mulish:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* ---------- BRAND PALETTE ---------- */
  /* drawn from the painted tile sign, the cobalt shutters & the sand */

  /* Ink — the navy of the hand-painted lettering */
  --salitre-ink:        #16224a;   /* primary text, logo */
  --salitre-ink-soft:   #2c3a63;   /* secondary headings */

  /* Cobalt — the blue of the shutters & doors */
  --salitre-cobalt:     #2a6ca6;   /* primary brand / interactive */
  --salitre-cobalt-deep:#1f547f;   /* pressed / hover-dark */
  --salitre-cobalt-tint:#dce8f1;   /* tinted fills, selected bg */

  /* Sea — the teal of the tile border & the Atlantic */
  --salitre-sea:        #2f8fb0;
  --salitre-sea-bright: #3aa6bf;

  /* ---------- SAND NEUTRALS ---------- */
  --salitre-paper:      #fbf8f1;   /* page background, warm white */
  --salitre-sand:       #f4eede;   /* card / panel sand */
  --salitre-sand-deep:  #ebe2cd;   /* borders, dividers on sand */
  --salitre-stone:      #b9ad96;   /* muted captions on sand */
  --salitre-driftwood:  #8a7e66;   /* tertiary text */
  --salitre-white:      #ffffff;

  /* ---------- FIESTA ACCENTS ---------- */
  /* the festive tile-border colors — use sparingly, as confetti */
  --salitre-terracotta: #e8731c;   /* orange */
  --salitre-sun:        #f3b724;   /* yellow */
  --salitre-leaf:       #4ba23c;   /* green */
  --salitre-coral:      #c7382c;   /* tile red */

  /* ---------- SEMANTIC ---------- */
  --salitre-success:    #4ba23c;
  --salitre-warning:    #f3b724;
  --salitre-danger:     #c7382c;
  --salitre-info:       #2f8fb0;

  /* ---------- FOREGROUND ROLES ---------- */
  --fg-1: var(--salitre-ink);        /* primary text */
  --fg-2: var(--salitre-ink-soft);   /* secondary text */
  --fg-3: var(--salitre-driftwood);  /* tertiary / captions */
  --fg-muted: var(--salitre-stone);  /* disabled / hints */
  --fg-on-color: #ffffff;            /* text on cobalt/ink */

  /* ---------- BACKGROUND ROLES ---------- */
  --bg-1: var(--salitre-paper);      /* app/page background */
  --bg-2: var(--salitre-sand);       /* raised surface / card */
  --bg-3: var(--salitre-white);      /* crisp card on sand */
  --bg-ink: var(--salitre-ink);      /* inverted sections */

  /* ---------- LINES ---------- */
  --line-1: var(--salitre-sand-deep);
  --line-2: rgba(22,34,74,0.12);
  --line-strong: rgba(22,34,74,0.24);

  /* ---------- TYPE FAMILIES ---------- */
  --font-display: 'Caladea', 'Caladea Pro', Cambria, 'Times New Roman', Georgia, serif;
  --font-body:    'Mulish', ui-sans-serif, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* ---------- TYPE SCALE (fluid-ish, rem) ---------- */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.375rem;  /* 22px */
  --text-2xl:  1.75rem;   /* 28px */
  --text-3xl:  2.25rem;   /* 36px */
  --text-4xl:  3rem;      /* 48px */
  --text-5xl:  4rem;      /* 64px */

  /* ---------- RADII ---------- */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 999px;

  /* ---------- SPACING (8pt-ish) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ---------- SHADOWS (soft, warm-neutral — no blue tint) ---------- */
  --shadow-sm: 0 1px 2px rgba(60,52,38,0.07), 0 1px 3px rgba(60,52,38,0.06);
  --shadow-md: 0 4px 14px rgba(60,52,38,0.09), 0 2px 6px rgba(60,52,38,0.06);
  --shadow-lg: 0 18px 48px rgba(60,52,38,0.14), 0 6px 16px rgba(60,52,38,0.08);
  --shadow-cobalt: 0 8px 20px rgba(60,52,38,0.16);
}

/* ============================================================
   SEMANTIC TYPE STYLES
   ============================================================ */
.salitre-h1, .salitre-h2, .salitre-h3, .salitre-h4 {
  font-family: var(--font-display);
  color: var(--fg-1);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
.salitre-h1 { font-size: var(--text-5xl); }
.salitre-h2 { font-size: var(--text-4xl); }
.salitre-h3 { font-size: var(--text-2xl); }
.salitre-h4 { font-size: var(--text-xl); }

/* eyebrow / kicker — small all-caps label */
.salitre-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--salitre-cobalt);
}

.salitre-lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 1.5;
  color: var(--fg-2);
}

.salitre-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--fg-2);
  text-wrap: pretty;
}

.salitre-small {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--fg-3);
}

.salitre-caption {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}

/* a relaxed serif italic for pull-quotes / atmospheric copy */
.salitre-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  line-height: 1.35;
  color: var(--fg-1);
}


/* ============================================================
   CASA SALITRE — Website styles
   Built on the Casa Salitre design system (tokens inlined below)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* uniform interaction timing across the site */
*, *::before, *::after { transition-duration: 0.25s !important; }
/* parallax images are transformed every scroll frame — no transition, or they lag */
.parallax-img { transition: none !important; }

/* ---- shared rhythm ---------------------------------------- */
.wrap { width: min(1200px, 92vw); margin-inline: auto; }
.wrap-narrow { width: min(760px, 90vw); margin-inline: auto; }
.section { padding-block: clamp(64px, 11vw, 140px); position: relative; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--salitre-cobalt);
  margin: 0 0 var(--space-4);
}
.eyebrow.on-dark { color: var(--salitre-sea-bright); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
  color: var(--fg-1);
  margin: 0;
}
.h-xl  { font-size: clamp(2.5rem, 6vw, 4rem); }      /* section titles */
.h-lg  { font-size: clamp(2rem, 4vw, 3rem); }
.lead {
  font-size: var(--text-xl);
  line-height: 1.5;
  color: var(--fg-2);
  font-weight: 400;
  text-wrap: pretty;
}
p { text-wrap: pretty; }

/* a "claim" = display type ~2x an H1 */
.claim {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-size: clamp(3.25rem, 9vw, 8.5rem);
  text-wrap: balance;
}
.claim em { font-style: italic; font-weight: 400; }

/* ---- buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--text-base);
  padding: 15px 26px; border-radius: var(--radius-md);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary {
  background: var(--salitre-cobalt); color: #fff;
  box-shadow: var(--shadow-cobalt);
}
.btn-primary:hover { background: var(--salitre-cobalt-deep); transform: translateY(-2px); }
.btn-primary:active { transform: scale(.98); }
.btn-ghost {
  background: transparent; color: var(--fg-1);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--salitre-cobalt); color: var(--salitre-cobalt); transform: translateY(-2px); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,.12); border-color:#fff; color:#fff; }

/* link with arrow, Brando-style */
.link-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: var(--text-sm); letter-spacing: .18em;
  text-transform: uppercase; color: var(--salitre-cobalt);
}
.link-cta svg { width: 17px; height: 17px; transition: transform .25s ease; }
.link-cta:hover svg { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: min(1320px, 94vw); margin-inline: auto;
  padding-block: clamp(14px, 2vw, 26px);
  transition: padding .25s ease;
}
.nav-group { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav-group.left  { justify-content: flex-end; padding-right: clamp(22px, 3.5vw, 64px); }
.nav-group.right { justify-content: flex-start; padding-left: clamp(22px, 3.5vw, 64px); }
.nav-link {
  font-size: calc(var(--text-sm) * 1.3); font-weight: 600; letter-spacing: .02em;
  color: var(--salitre-ink); position: relative; padding-block: 4px;
  white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--salitre-cobalt); transition: width .25s ease;
}
.nav-link:hover { color: var(--salitre-cobalt); }
.nav-link:hover::after { width: 100%; }
.mobile-menu { display: none; }

.brand-logo {
  display: block; height: clamp(96px, 11vw, 148px);
  transition: height .25s ease;
}
/* two-layer logo: mosaic banner stays colourful, wordmark flips white/navy */
.logo-stack { position: relative; display: block; height: 100%; aspect-ratio: 812 / 548; }
.logo-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.logo-word { transition: filter .25s ease; }

/* hero is dark → header text starts white, flips on scroll */
.site-header[data-over-hero="true"] .nav-link { color: #fff; }
.site-header[data-over-hero="true"] .nav-link::after { background: #fff; }
/* over the dark hero, before the bar appears: wordmark white, mosaic stays colourful */
.site-header[data-over-hero="true"]:not(.scrolled) .logo-word {
  filter: brightness(0) invert(1);
}
.site-header[data-over-hero="true"] .hamburger span { background:#fff; }

.site-header.scrolled {
  background: color-mix(in srgb, var(--salitre-paper) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 1px 0 var(--line-2), var(--shadow-sm);
}
.site-header.scrolled .header-inner { padding-block: 10px; }
.site-header.scrolled .brand-logo { height: clamp(56px, 6vw, 70px); }
/* once the header shrinks into the bar, the wordmark returns to navy — white is only over the video */
/* once the header shrinks, the menu turns dark regardless of the hero */
.site-header.scrolled .nav-link { color: var(--salitre-ink); }
.site-header.scrolled .nav-link::after { background: var(--salitre-cobalt); }
.site-header.scrolled .hamburger span { background: var(--salitre-ink); }

/* hamburger (mobile) */
.hamburger {
  display: none; width: 44px; height: 44px; border: 0; background: none;
  cursor: pointer; padding: 10px; margin-left: auto;
}
.hamburger span {
  display: block; height: 2px; width: 100%; background: var(--salitre-ink);
  border-radius: 2px; transition: transform .25s ease, opacity .25s ease;
}
.hamburger span + span { margin-top: 5px; }
.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: grid; align-items: safe center;
        overflow: hidden; isolation: isolate; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
/* subtle gradient so white type reads — never a flat tint across the whole frame */
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(13,20,40,.72) 0%, rgba(13,20,40,.30) 34%, rgba(13,20,40,0) 62%),
    linear-gradient(to bottom, rgba(13,20,40,.34) 0%, rgba(13,20,40,0) 30%);
}
.hero-content {
  position: relative; width: min(1200px, 92vw); margin-inline: auto;
  padding-top: clamp(150px, 17vw, 224px); padding-bottom: clamp(96px, 8vw, 112px); color: #fff;
}
.hero .eyebrow { color: #fff; opacity: .92; }
.hero .claim { color: #fff; max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,.28); }
.hero-sub {
  margin: var(--space-5) 0 var(--space-6); max-width: 46ch;
  font-size: var(--text-xl); line-height: 1.5; color: rgba(255,255,255,.92);
  font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.scroll-cue {
  position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 2; color: #fff; opacity: .8; display: grid; justify-items: center; gap: 6px;
  font-size: var(--text-xs); letter-spacing: .2em; text-transform: uppercase;
}
.scroll-cue svg { width: 22px; height: 22px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

/* ============================================================
   GIANT WATERMARK WORDMARK
   ============================================================ */
.watermark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(8rem, 30vw, 32rem); line-height: .8;
  color: var(--salitre-ink); opacity: .045; white-space: nowrap;
  letter-spacing: -.03em;
}

/* ============================================================
   CLAIM / INTRO SECTION
   ============================================================ */
.claim-section { background: var(--bg-1); text-align: center; overflow: hidden; }
.claim-section .claim { max-width: 18ch; margin-inline: auto; color: var(--salitre-ink);
  font-size: clamp(1.8rem, 4.95vw, 4.65rem); }
.claim-section .claim em { color: var(--salitre-cobalt); }
.claim-section .lead { margin-top: var(--space-7); }
.claim-section .lead { max-width: 60ch; margin: var(--space-6) auto 0; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5); margin-top: clamp(48px, 7vw, 88px);
  position: relative;
}
.fact { text-align: center; }
.fact .n {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.25rem); color: var(--salitre-cobalt);
  line-height: 1;
}
.fact .l {
  margin-top: 10px; font-size: var(--text-sm); color: var(--fg-3);
  letter-spacing: .02em;
}

/* tile ribbon divider — real mosaic, navy contours, aspect kept, tiled horizontally.
   SVG has a STRAIGHT navy edge at top and a WAVY navy edge at bottom. The wavy edge
   leaves transparent notches, so the ribbon's own background-color must match the
   section the waves face — otherwise a foreign section colour shows through. */
.ribbon {
  height: 54px; width: 100%; border: 0; padding: 0; display: block;
  background-image: url("tile-ribbon-v2.svg");
  background-repeat: repeat-x;
  background-position: left top;
  background-size: auto 100%;
  background-color: var(--bg-1); /* default: notches read as page sand */
}
/* flip so the WAVY edge points UP toward the section above (straight edge faces down) */
.ribbon.ribbon--flip { transform: scaleY(-1); }
/* fill the wavy-side notches with the neighbouring section's colour */
.ribbon--on-white { background-color: var(--salitre-white); }
.ribbon--on-sand  { background-color: var(--salitre-sand); }
.ribbon--on-ink   { background-color: var(--bg-ink); }

/* ============================================================
   GALLERY (masonry)
   ============================================================ */
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--space-5); margin-bottom: clamp(46px, 5.5vw, 84px); flex-wrap: wrap; }
.gallery-head .lead { max-width: 42ch; }

#gallery { background: var(--salitre-white); }
#gallery .wrap { width: min(1780px, 96vw); }
.gallery-head { max-width: min(1200px, 92vw); margin-inline: auto; }
.masonry { columns: 4; column-gap: 20px; }
.tile {
  break-inside: avoid; margin: 0 0 20px; position: relative;
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  isolation: isolate; /* Safari: keep scaled imgs clipped to the rounded corners */
  background: var(--salitre-sand); box-shadow: var(--shadow-md);
  transition: box-shadow .25s ease, transform .25s ease;
}
.tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tile img, .tile video { width: 100%; height: auto; display: block; transition: transform .25s cubic-bezier(.22,.61,.36,1);
  transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.tile:hover img, .tile:hover video { transform: scale(1.06) translateZ(0); }
.tile-video { cursor: pointer; aspect-ratio: 9 / 16; }
.tile-video video { width: 100%; height: 100%; object-fit: cover; }
/* click-to-play button, in the spirit of the magnifier on photo tiles */
.tile-play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0;
  background: rgba(22,34,74,.14); cursor: pointer; transition: background .25s ease, opacity .25s ease;
}
.tile-play .mag {
  width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--salitre-ink);
  transform: scale(1); opacity: 1; box-shadow: var(--shadow-md); transition: transform .2s ease, background .2s ease;
}
.tile-play .mag svg { width: 28px; height: 28px; }
.tile-video:hover .tile-play { background: rgba(22,34,74,.24); }
.tile-video:hover .tile-play .mag { transform: scale(1.08); }
.tile-video.playing .tile-play { opacity: 0; pointer-events: none; }

/* gallery photos: staggered fly-in from varied directions, replays on re-entry */
@media (prefers-reduced-motion: no-preference) {
  #masonry .tile.tile-pre { opacity: 0; }
  #masonry .tile.tile-in {
    animation: tileFly 0.85s cubic-bezier(.22,.61,.36,1) var(--tile-delay, 0s) backwards;
    will-change: transform, opacity;
  }
  @keyframes tileFly {
    from { opacity: 0; transform: translate(var(--tile-dx, 0), var(--tile-dy, 30px)); }
    to   { opacity: 1; transform: translate(0, 0); }
  }
}
.tile-zoom {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(22,34,74,0); transition: background .25s ease; pointer-events: none;
}
.tile:hover .tile-zoom { background: rgba(22,34,74,.18); }
.tile-zoom .mag {
  width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--salitre-ink);
  transform: scale(.7); opacity: 0; transition: transform .25s ease, opacity .25s ease;
  box-shadow: var(--shadow-md);
}
.tile:hover .mag { transform: scale(1); opacity: 1; }
.mag svg { width: 24px; height: 24px; }
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 14px;
  color: #fff; font-size: var(--text-sm); font-weight: 600; letter-spacing: .01em;
  background: linear-gradient(to top, rgba(13,20,40,.66), rgba(13,20,40,0));
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease;
}
.tile:hover .tile-cap { opacity: 1; transform: translateY(0); }
/* desktop-only single-room tile: cropped so the first column ends flush with the others */
@media (min-width: 1025px) {
  .masonry .tile-desktop-only { aspect-ratio: 1.13; }
  .masonry .tile-desktop-only img { height: 100%; object-fit: cover; object-position: 50% 55%; }
}

/* placeholder tile (no photo yet) */
.tile.placeholder { cursor: default; background:
  repeating-linear-gradient(135deg, var(--salitre-sand) 0 14px, #efe7d4 14px 28px); }
.tile.placeholder:hover { transform: none; box-shadow: var(--shadow-md); }
.ph-inner {
  display: grid; place-items: center; gap: 12px; text-align: center;
  padding: 26px 20px; color: var(--salitre-driftwood);
}
.ph-inner svg { width: 30px; height: 30px; opacity: .7; }
.ph-inner .ph-label { font-size: var(--text-sm); font-weight: 700; color: var(--salitre-ink-soft); }
.ph-inner .ph-note { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--salitre-stone); }

/* ============================================================
   PARALLAX BAND
   ============================================================ */
.parallax {
  position: relative; height: clamp(420px, 70vh, 680px); overflow: hidden;
  display: grid; place-items: center; isolation: isolate;
}
.parallax-img {
  position: absolute; inset: -55% 0; width: 100%; height: 210%;
  object-fit: cover; z-index: -2; will-change: transform;
}
.parallax-scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(13,20,40,.42), rgba(13,20,40,.42)); }
.parallax-quote {
  color: #fff; text-align: center; width: min(900px, 88vw);
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(2.08rem, 4.7vw, 3.9rem); line-height: 1.3; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.parallax-quote .by { display: block; font-style: normal; font-family: var(--font-body);
  font-size: var(--text-sm); letter-spacing: .22em; text-transform: uppercase;
  margin-top: var(--space-5); opacity: .85; }

/* ============================================================
   FLOORS
   ============================================================ */
#floors { position: relative; overflow: hidden; }
#floors .wrap { position: relative; z-index: 1; }
.floors-deco { position: absolute; top: clamp(-50px, -3vw, -10px); right: clamp(-40px, -1.5vw, 24px);
  width: min(1200px, 86vw); opacity: .075; z-index: 0; pointer-events: none; user-select: none; }
.floors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
  margin-top: clamp(36px, 5vw, 60px); }
.floor-card {
  background: var(--salitre-white); border: 1px solid var(--line-1);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}
.floor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.floor-plan { background: #fbfaf5; padding: var(--space-4); }
.floor-plan img { width: 100%; height: auto; }
.floor-meta { padding: var(--space-5) var(--space-5) var(--space-6); }
.floor-meta .fnum { font-size: var(--text-xs); letter-spacing: .22em; text-transform: uppercase;
  color: var(--salitre-cobalt); font-weight: 700; }
.floor-meta h3 { font-size: var(--text-2xl); margin: 8px 0 10px; }
.floor-meta p { margin: 0; color: var(--fg-2); font-size: var(--text-base); }
.floor-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-4); }
.tag {
  font-size: var(--text-xs); font-weight: 600; color: var(--salitre-ink-soft);
  background: var(--salitre-sand); border: 1px solid var(--line-1);
  padding: 5px 11px; border-radius: var(--radius-pill);
}

/* ============================================================
   LOCATION — graphic map + google map
   ============================================================ */
.location { background: var(--salitre-sand); overflow: hidden; position: relative; }
.location > .wrap { position: relative; z-index: 1; }
.location-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 15% 52%;
  z-index: 0; pointer-events: none; user-select: none; opacity: .2;
}
@media (max-width: 900px) {
  .location-bg { object-position: 16% 50%; opacity: .18; }
}
.map-graphic { position: relative; }
.map-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.map-svg-wrap { position: relative; }
.map-svg-wrap svg { width: 100%; height: auto; overflow: visible; }
.map-copy h2 { margin-bottom: var(--space-4); }
.map-copy .lead { margin-bottom: var(--space-4); }
.map-copy .quiet { color: var(--fg-2); margin: 0 0 var(--space-5); }
.coord {
  writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: .12em;
  font-size: var(--text-xs); color: var(--salitre-stone); font-weight: 600;
}

/* google map */
.gmap-wrap { margin-top: clamp(48px, 7vw, 96px); }
.gmap-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--line-1); background: var(--salitre-paper);
}
.gmap-frame iframe { width: 100%; height: clamp(340px, 46vh, 480px); border: 0; display: block; filter: saturate(.92); }
.gmap-bar { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6);
  align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.gmap-bar .addr { display: flex; align-items: center; gap: 12px; color: var(--fg-1); font-weight: 600; }
.gmap-bar .addr svg { width: 22px; height: 22px; color: var(--salitre-cobalt); }

/* ============================================================
   TESTIMONIALS CAROUSEL
   ============================================================ */
.reviews { background: var(--bg-ink); color: #fff; overflow: hidden; position: relative; isolation: isolate; }
.reviews-scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(16,23,48,.80), rgba(16,23,48,.88)); }
.reviews .eyebrow { color: var(--salitre-sea-bright); }
.reviews h2 { color: #fff; }
.carousel { position: relative; z-index: 1; margin-top: clamp(32px, 5vw, 56px); }
.reviews .carousel { width: min(990px, 92vw); }
.carousel-track { position: relative; min-height: 280px; }
.review {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .5s ease, transform .5s ease; transform: translateY(10px);
  display: grid; gap: var(--space-5); max-width: 73ch; margin-inline: auto; text-align: center;
}
.review.active { opacity: 1; visibility: visible; transform: none; position: relative; }
.review .stars { display: flex; gap: 4px; justify-content: center; color: var(--salitre-sun); }
.review .stars svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.review blockquote {
  margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.34; font-style: italic; color: #fff; text-wrap: balance;
}
.review .who { font-size: var(--text-sm); color: rgba(255,255,255,.78); letter-spacing: .04em; }
.review .who strong { color: #fff; font-weight: 700; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: var(--space-5);
  margin-top: var(--space-7); }
.cbtn {
  width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.32);
  background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.cbtn:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.cbtn:active { transform: scale(.94); }
.cbtn svg { width: 20px; height: 20px; }
.dots { display: flex; gap: 9px; }
.dot { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.32);
  border: 0; cursor: pointer; padding: 0; transition: background .25s ease, transform .25s ease; }
.dot.active { background: var(--salitre-sea-bright); transform: scale(1.25); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-1); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px);
  align-items: stretch; }
.contact h2 { margin-bottom: var(--space-4); }
.contact .lead { margin-bottom: var(--space-6); max-width: 42ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.contact-card {
  background: var(--salitre-white); border: 1px solid var(--line-1);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column;
}
.contact-card .cline { flex: 1; }
.cline { display: flex; align-items: flex-start; gap: 14px; padding-block: 12px; border-bottom: 1px solid var(--line-1); }
.cline:last-child { border-bottom: 0; }
.cline svg { width: 22px; height: 22px; color: var(--salitre-cobalt); flex: none; }
.cline .ct { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.cline .cv { font-size: calc(var(--text-base) * 1.3); font-weight: 600; color: var(--fg-1); overflow-wrap: anywhere; }
/* long unbreakable values (e-mail) must not widen the grid column's min-content */
.contact-grid > * { min-width: 0; }
.cline > div { min-width: 0; }
.cline .cv:hover { color: var(--salitre-cobalt); }
/* rates list inside the contact card */
.cline-prices { align-items: flex-start; }
.cprices { width: 100%; }
.price-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.price-list .pl-label { font-size: var(--text-sm); color: var(--fg-2); }
.price-list .pl-val { font-family: var(--font-display); font-size: calc(var(--text-base) * 1.15);
  font-weight: 700; color: var(--salitre-ink); white-space: nowrap; }
.price-list .pl-val small { font-family: var(--font-body); font-weight: 500; font-size: var(--text-xs);
  color: var(--fg-3); margin-left: 3px; }
.price-note { margin: 14px 0 0; font-size: var(--text-xs); color: var(--fg-3);
  letter-spacing: 0.04em; text-transform: uppercase; }

/* availability calendar (full width, bottom of contact section) */
.availability { margin-top: clamp(48px, 7vw, 88px); }
.avail-head { margin-bottom: var(--space-5); }
.gcal-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--line-1); background: var(--salitre-white); }
.gcal-frame iframe { width: 100%; height: clamp(480px, 62vh, 680px); border: 0; display: block; }
.socials { display: flex; gap: 12px; margin-top: var(--space-5); }
.socials a { width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line-1);
  display: grid; place-items: center; color: var(--salitre-ink);
  transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s; }
.socials a:hover { background: var(--salitre-cobalt); color: #fff; border-color: var(--salitre-cobalt); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.placeholder-pill { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--salitre-terracotta); font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: linear-gradient(to bottom, #3c2a1c 0%, #2a1d13 60%, #221710 100%); color: rgba(255,255,255,.72); position: relative; overflow: hidden; }
.footer .ribbon { height: 42px; position: relative; z-index: 2; background-color: transparent; }
/* sunset backdrop: cropped from top, flattened strip, lower edge melts into the footer */
.footer-bg {
  position: absolute; top: 0; left: 0; right: 0; z-index: 0; pointer-events: none;
  height: clamp(280px, 34vw, 520px);
  background: url("photos/footer-sunset-v2.jpg") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgba(0,0,0,0) 100%);
}
.footer .wrap { position: relative; z-index: 1; }
.footer-logo { display: block; height: clamp(96px, 11vw, 148px); margin-bottom: clamp(28px, 4vw, 48px); }
.footer-inner { padding-top: clamp(280px, 34vw, 520px); padding-bottom: clamp(40px, 5vw, 64px); display: grid;
  grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6); align-items: start; }
.footer-logo .logo-word { filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,.7); font-size: calc(var(--text-sm) * 1.2); max-width: 34ch; margin: 0; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: calc(var(--text-xs) * 1.2);
  letter-spacing: .2em; text-transform: uppercase; margin: 0 0 var(--space-4); font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { color: rgba(255,255,255,.72); font-size: calc(var(--text-sm) * 1.2); }
.footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); justify-content: space-between;
  font-size: calc(var(--text-xs) * 1.2); color: rgba(255,255,255,.5); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(13,16,28,.92);
  display: grid; place-items: center; opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { width: 92vw; height: 88vh; object-fit: contain; }
.lightbox video { width: 92vw; height: 88vh; object-fit: contain; }
.lightbox img[hidden], .lightbox video[hidden] { display: none; }
@media (max-width: 720px) {
  .lightbox video { width: 100vw; height: 100dvh; object-fit: cover; }
}
.lb-cap { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.86); font-size: var(--text-sm); letter-spacing: .04em; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px;
  border-radius: 999px; border: 1.5px solid rgba(255,255,255,.3); background: rgba(0,0,0,.25);
  color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .25s, border-color .25s; }
.lb-btn:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.lb-btn svg { width: 24px; height: 24px; }
.lb-prev { left: clamp(12px, 3vw, 40px); }
.lb-next { right: clamp(12px, 3vw, 40px); }
.lb-close { top: clamp(16px, 3vw, 30px); right: clamp(16px, 3vw, 30px); transform: none;
  width: 48px; height: 48px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile img, .parallax-img { transition: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .masonry { columns: 3; }
  .masonry .tile-desktop-only { display: none; }
  .map-grid { grid-template-columns: 1fr; }
  .map-svg-wrap { order: -1; }
}
@media (max-width: 1100px) and (min-width: 881px) {
  .nav-group { gap: 16px; }
  .nav-group.left { padding-right: 18px; }
  .nav-group.right { padding-left: 18px; }
  .nav-link { font-size: calc(var(--text-sm) * 1.12); }
}
@media (max-width: 880px) {
  /* collapse nav into hamburger; logo to the left, shorter bar */
  .header-inner { grid-template-columns: auto 1fr; gap: var(--space-3); padding-block: 8px; }
  /* on mobile the map is the last item — sit it flush against the mosaic ribbon below */
  #map { padding-bottom: 0; }
  .nav-group.left, .nav-group.right { display: none; }
  .hamburger { display: block; order: 3; }
  /* bigger, more confident mark at rest — capped by viewport height so short screens stay clear */
  .brand-logo { height: clamp(64px, min(19vw, 12.5vh), 96px) !important; }
  /* once the sticky bar appears it shrinks back out of the way */
  .site-header.scrolled .brand-logo { height: clamp(44px, 11vw, 58px) !important; }
  .header-inner > .brand-logo { justify-self: start; }

  /* full mobile menu — ALL sections in page order */
  .mobile-menu {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    gap: var(--space-5);
    position: fixed; inset: 0 0 auto 0; top: 0;
    /* never taller than the real (toolbar-aware) viewport; scroll only if it still cannot fit */
    max-height: 100svh; overflow-y: auto; overscroll-behavior: contain;
    padding: 88px var(--space-5) calc(var(--space-7) + env(safe-area-inset-bottom));
    background: var(--salitre-paper); transform: translateY(-100%);
    transition: transform .35s cubic-bezier(.22,.61,.36,1);
    box-shadow: var(--shadow-lg); z-index: -1;
  }
  .menu-open .mobile-menu { transform: translateY(0); }
  .mobile-menu .nav-link:first-child { margin-top: auto; }
  .mobile-menu .nav-link:last-child { margin-bottom: auto; }
  .mobile-menu .nav-link { font-size: var(--text-xl); color: var(--salitre-ink); }
  .mobile-menu .nav-link::after { background: var(--salitre-cobalt); }
  /* keep menu text navy even when opened over the hero (beats the white-over-hero rule) */
  .menu-open .site-header .mobile-menu .nav-link { color: var(--salitre-ink) !important; }

  /* when the menu is open the panel is light → logo & hamburger return to their real colours */
  .menu-open .site-header .brand-logo { filter: none !important; }
  .menu-open .site-header .logo-word { filter: none !important; }
  .menu-open .site-header .hamburger span { background: var(--salitre-ink) !important; }

  .floors-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .facts { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  /* mobile gallery: landscape shots run full width, portraits always sit two-up */
  .masonry { columns: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .masonry .tile { margin: 0; aspect-ratio: 3 / 4; }
  /* HTML order pairs portraits: 1L · 2+3 · 4L · 5+6 · 7L · 8+9 · 10L · 11+12 · 13+14 · 15+16 · 17+18 · 19L */
  .masonry .tile:nth-child(1), .masonry .tile:nth-child(4), .masonry .tile:nth-child(8), .masonry .tile:nth-child(11), .masonry .tile:nth-child(20) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .masonry .tile img, .masonry .tile video { height: 100%; object-fit: cover; }
}
@media (max-width: 560px) {
  .gallery-head { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
}
/* Mobile hero: fit the whole stack inside the small viewport so the scroll cue
   stays above Safari's floating toolbar instead of being pushed below the fold. */
@media (max-width: 560px) {
  .hero-content { padding-top: 126px; padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .hero .claim { font-size: clamp(2.35rem, 10.6vw, 3rem); max-width: 13ch; }
  .hero-sub { margin: var(--space-4) 0 var(--space-5); max-width: 32ch;
    font-size: var(--text-lg); line-height: 1.45; }
  .hero-actions { gap: var(--space-2); }
  .scroll-cue { bottom: calc(16px + env(safe-area-inset-bottom)); font-size: 10px; gap: 4px; }
  .scroll-cue svg { width: 18px; height: 18px; }
}
/* Short phones (small iPhones, landscape-ish): drop the cue rather than crowd the CTAs */
@media (max-height: 700px) {
  .hero-content { padding-top: clamp(100px, 15vh, 157px); padding-bottom: calc(clamp(56px, 11vh, 96px) + env(safe-area-inset-bottom)); }
  .hero .claim { font-size: clamp(2.1rem, 6.4vh, 4.4rem); }
  .hero-sub { margin-top: var(--space-3); margin-bottom: var(--space-4); }
}
@media (max-width: 560px) and (max-height: 660px) {
  .hero .claim { font-size: clamp(2.05rem, 9.4vw, 2.6rem); }
  .hero-content { padding-top: 100px; padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
  .hero-sub { font-size: var(--text-base); max-width: 30ch; margin: var(--space-3) 0 var(--space-4); }
}
@media (max-width: 880px) and (max-height: 660px) {
  .mobile-menu { gap: var(--space-3); padding-top: 76px; }
  .mobile-menu .nav-link { font-size: var(--text-lg); }
}
@media (max-width: 880px) and (max-height: 560px) {
  .mobile-menu { gap: 10px; padding-top: 66px; padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom)); }
  .mobile-menu .nav-link { font-size: var(--text-base); }
}
@media (max-width: 560px) and (max-height: 520px) {
  .scroll-cue { display: none; }
}

/* footer credit */
.footer-credit { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.62); transition: color .25s ease; }
.footer-credit:hover { color: #fff; }
.footer-credit strong { font-weight: 700; color: rgba(255,255,255,.82); }
.footer-credit img { width: 22px; height: 22px; flex: none; }

/* compact social row inside the contact card */
.cline-social { flex-direction: column; align-items: flex-start; gap: 12px; }
.cline-social .card-socials { margin-top: 0; gap: 12px; }

/* ============================================================
   FAMARA MAP — Brando-style composition
   ============================================================ */
.fmap { overflow: hidden; }

/* base (stacked, mobile-first) */
.fmap-wrap { position: relative; width: min(640px, 92vw); display: flex; flex-direction: column; gap: clamp(16px, 3vw, 24px); }
.fmap-coord { display: none; }

.fmap-visual { position: relative; width: 100%; aspect-ratio: 1 / 1.18; }
.fmap-emblem { position: absolute; left: 2%; bottom: -4%; width: clamp(200px, 50vw, 340px); height: auto;
  color: var(--salitre-ink); opacity: .07; pointer-events: none; }
.fmap-photo { position: absolute; overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); margin: 0; }
.fmap-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.fmap-photo:hover img { transform: scale(1.05); }
.fmap-photo-a { width: 64%; aspect-ratio: 3 / 4; left: 4%; top: 0; z-index: 1; }
.fmap-photo-b { width: 54%; aspect-ratio: 4 / 3; right: 1%; bottom: 0; z-index: 2; }

.fmap-h { font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1.05; margin-top: var(--space-3); }
.fmap-rule { display: block; width: 64px; height: 2px; background: var(--salitre-cobalt); margin: var(--space-5) 0; }
.fmap-lead { font-style: italic; font-family: var(--font-display); font-size: var(--text-xl);
  line-height: 1.4; color: var(--fg-1); margin: 0 0 var(--space-4); }
.fmap-body { color: var(--fg-2); margin: 0 0 var(--space-6); max-width: 46ch; }
.fmap-stats { display: grid; grid-template-columns: repeat(2, auto); gap: var(--space-4) clamp(24px, 4vw, 56px); margin-bottom: var(--space-6); }
.fmap-stats .n { font-family: var(--font-display); font-weight: 700; color: var(--salitre-cobalt);
  font-size: var(--text-xl); display: block; line-height: 1; }
.fmap-stats .l { font-size: var(--text-sm); color: var(--fg-3); }

.fmap-route { position: relative; width: 100%; }
.fmap-svg { width: 100%; height: auto; display: block; overflow: visible; }
.fmap-svg .twn { fill: var(--salitre-ink); font-family: var(--font-body); font-weight: 700; }
.fmap-svg .isl { fill: var(--salitre-driftwood); font-family: var(--font-body); font-weight: 600; font-style: italic; }
.fmap-svg .islc { fill: var(--salitre-ink); font-family: var(--font-display); font-weight: 700; letter-spacing: .18em; }
.fmap-img { width: 100%; height: auto; display: block; }
.fmap-pin { position: absolute; left: 71.3%; top: 40%; transform: translate(-50%, -100%); display: flex;
  flex-direction: column; align-items: center; gap: 6px; z-index: 3; }
.fmap-pin-label { font-family: var(--font-display); font-weight: 700; color: var(--salitre-ink);
  font-size: clamp(.95rem, 1.4vw, 1.2rem); white-space: nowrap;
  text-shadow: 0 1px 0 rgba(247,243,234,.95), 0 0 7px rgba(247,243,234,.85); }
.fmap-pin-marker { position: relative; width: 30px; height: 38px; }
.fmap-pin-marker svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 5px rgba(22,34,74,.32)); }
.fmap-pin-marker::before { content: ""; position: absolute; left: 50%; bottom: 4px; width: 13px; height: 13px;
  transform: translate(-50%, 50%); border-radius: 50%; background: var(--salitre-cobalt); opacity: .4; }
.fmap-mins { position: absolute; left: 10%; top: 60%; writing-mode: vertical-rl; text-orientation: mixed;
  letter-spacing: .22em; text-transform: uppercase; font-size: var(--text-xs); font-weight: 700;
  color: var(--salitre-cobalt); z-index: 2; }
.fpin { transform-box: fill-box; transform-origin: center bottom; }

@media (prefers-reduced-motion: no-preference) {
  .fmap-pin-marker::before { animation: pinPulse 2.6s ease-out infinite; }
  @keyframes pinPulse { 0% { transform: translate(-50%,50%) scale(.5); opacity: .5; } 70% { opacity: 0; } 100% { transform: translate(-50%,50%) scale(2.6); opacity: 0; } }
  .fmap-route.in .fpin { opacity: 0; animation: pinDrop .55s cubic-bezier(.22,.61,.36,1) .15s forwards; }
  .fmap-route.in .fpin-1 { animation-delay: .35s; }
  @keyframes pinDrop { from { opacity: 0; transform: translateY(-14px) scale(.6); } to { opacity: 1; transform: none; } }
}

/* desktop: photos (left) · the real-coastline island map with pin (centre) · text (right) */
@media (min-width: 1101px) {
  .fmap-wrap { width: min(1460px, 95vw); display: flex; flex-direction: row; align-items: center; justify-content: space-between;
    gap: 3%; min-height: clamp(560px, 44vw, 720px); }
  .fmap-coord { display: block; position: absolute; left: -4px; top: 36px; writing-mode: vertical-rl;
    text-orientation: mixed; letter-spacing: .2em; font-size: var(--text-xs); font-weight: 700;
    color: var(--salitre-stone); z-index: 5; }
  .fmap-visual { position: relative; width: 32%; top: auto; transform: none; aspect-ratio: auto;
    min-height: clamp(420px, 34vw, 560px); z-index: 3; }
  .fmap-text { position: relative; width: 38%; right: auto; top: auto; transform: none; z-index: 4; }
  /* map sits behind the photos, bleeds left, and its cropped bottom hugs the section's bottom edge */
  .fmap-route { position: absolute; left: 37%; bottom: calc(clamp(64px, 11vw, 140px) * -1);
    transform: translateX(-50%); width: clamp(620px, 66%, 980px); z-index: 1; }
  .fmap-photo-b { width: 58%; right: 10%; bottom: 14%; }
  .fmap-h { font-size: clamp(2.2rem, 2.9vw, 3.1rem); }
}
