/* =========================================================================
   MIRAN HILLS — Design System
   Editorial Monograph. Montserrat-only. Photo-led. Expressive scroll.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink:          #0A0A0A;
  --ink-80:       rgba(10,10,10,0.80);
  --ink-60:       rgba(10,10,10,0.60);
  --ink-40:       rgba(10,10,10,0.40);
  --ink-12:       rgba(10,10,10,0.12);
  --ink-06:       rgba(10,10,10,0.06);

  --linen:        #F4EFE4;
  --linen-deep:   #EDE6D6;
  --paper:        #FFFFFF;

  --mauve:        #9C7D96;
  --mauve-deep:   #7E5F7A;
  --mauve-soft:   #C8B2C4;

  --teal:         #3E5B5B;
  --teal-deep:    #2A4040;
  --teal-soft:    #6B8585;

  --grain:        url('../assets/grain.svg');

  --max:          1440px;
  --gutter:       clamp(24px, 4vw, 72px);
  --section-gap:  clamp(28px, 4vh, 56px);
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);    /* power2.out-ish */
  --ease-expo:    cubic-bezier(0.16, 1, 0.3, 1);     /* expo.out-ish */

  --radius:       0; /* deliberately sharp corners */
  --rule:         1px solid var(--ink-12);
}

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: fixed;
  top: -100%;
  left: var(--gutter);
  z-index: 10001;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--linen);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: top 0.2s var(--ease);
  outline: 2px solid var(--mauve);
  outline-offset: 2px;
}
.skip-link:focus { top: 12px; }

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: auto; /* Lenis handles it */ }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Base Type ---------- */
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--linen);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typographic voices */
.display-xxl {
  font-weight: 900;
  font-size: clamp(52px, 9vw, 148px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.display-l {
  font-weight: 300;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display-m {
  font-weight: 300;
  font-size: clamp(32px, 4.2vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.subhead {
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.body {
  font-weight: 400;
  font-size: clamp(16px, 1.15vw, 17px);
  line-height: 1.65;
  color: var(--ink-80);
}
.eyebrow {
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.marker {
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.accent { color: var(--mauve); }
.accent-black { font-weight: 900; }
.accent-light { font-weight: 300; }
.italicized { font-style: italic; font-weight: 300; letter-spacing: 0.02em; }

/* ---------- Grain overlay (the single biggest "not-AI" tell) ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  background-size: 300px 300px;
  background-repeat: repeat;
  opacity: 0.12;              /* the SVG is already low-alpha; 0.12 reads as paper */
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 9999;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 32px);
}
.section {
  padding-block: var(--section-gap);
  position: relative;
}
.section-marker {
  position: absolute;
  top: calc(var(--section-gap) * 0.35);
  left: var(--gutter);
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--ink-60);
}
.section-marker .num { font-weight: 300; letter-spacing: 0.1em; }
.section-marker .slash { color: var(--ink-40); }
.section-marker .of  { font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; font-size: 10px; }

/* ---------- Logo (mask-image stencil, picks up currentColor) ---------- */
.logo {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-image: url('../assets/logo.svg');
          mask-image: url('../assets/logo.svg');
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-position: left center;
          mask-position: left center;
  /* logo's native aspect ratio 640x290.85 = ~2.201 */
  aspect-ratio: 640 / 291;
  flex-shrink: 0;
  transition: opacity 0.3s var(--ease);
}
.logo:hover { opacity: 0.75; }
.logo--nav    { height: 44px; }
.logo--footer { height: 56px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  mix-blend-mode: difference;
  color: var(--linen);
  transition: backdrop-filter 0.4s var(--ease), background 0.4s var(--ease);
}
.nav a { color: currentColor; }
.nav__brand {
  display: flex; align-items: center;
}
.nav__links {
  display: flex; gap: 36px;
  justify-self: center;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav__links a { position: relative; padding-block: 6px; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta {
  justify-self: end;
  font-weight: 500; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid currentColor; padding: 11px 18px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav__cta:hover { background: currentColor; color: var(--ink); mix-blend-mode: normal; }

/* Brand mark: sized for the actual logo SVG (hills mark viewBox 178 0 285 145) */
.nav__brand img { height: 24px; width: auto; display: block; }

/* Burger for mobile */
.nav__burger { display: none; }

/* Scrolled: subtle backdrop. Color inversion handled by mix-blend-mode; this adds depth. */
.nav--scrolled {
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  color: var(--linen);
  background: var(--ink);
}
.hero__media {
  position: absolute; inset: 0;
  transform: scale(1.08);
  animation: kenburns 24s var(--ease) infinite alternate;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0.6) 100%);
}
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(-0.5%, -0.5%, 0); }
  to   { transform: scale(1.12) translate3d( 1%,   0.5%, 0); }
}
.hero__inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  /* bottom padding lifts the title clear of the absolute-positioned stats strip below */
  padding: clamp(88px, 12vh, 120px) var(--gutter) clamp(140px, 18vh, 180px);
}
.hero__eyebrow {
  grid-row: 1;
  align-self: start;
  justify-self: end;
  max-width: 360px;
  text-align: right;
  color: rgba(244, 239, 228, 0.72);
  font-weight: 500; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  line-height: 1.8;
}
.hero__title {
  grid-row: 2;
  justify-self: start;
  max-width: 14ch;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.hero__meta {
  grid-row: 2;
  justify-self: end;
  align-self: end;
  display: flex; flex-direction: column; gap: 6px;
  text-align: right;
  color: rgba(244,239,228,0.7);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
}
.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(20px, 4vh, 36px);
  display: flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 500;
  color: rgba(244,239,228,0.7);
}
.hero__scroll .line-decor {
  display: inline-block; width: 32px; height: 1px; background: currentColor; opacity: 0.5;
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleX(0.2); transform-origin: left; }
  50%  { transform: scaleX(1);   transform-origin: left; }
  50.1%{ transform: scaleX(1);   transform-origin: right; }
  100% { transform: scaleX(0.2); transform-origin: right; }
}

/* ---------- Philosophy — 2-column editorial spread ---------- */
/* Left: full-height tactile image. Right: eyebrow + headline + body + stats */
/* Explicit 2-column grid (not 12-col) so there's no dead column between blocks */
.philosophy .container {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
}
.philosophy__visual {
  position: relative;
  min-height: 0;
}
.philosophy__visual figure {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: clamp(420px, 56vh, 640px);
  background: var(--ink);
}
.philosophy__visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.6s var(--ease);
  transform: scale(1.02);
  filter: saturate(0.9);
}
.philosophy__visual:hover img { transform: scale(1.06); }
.philosophy__visual figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,10,10,0.55) 100%);
  pointer-events: none;
}
.philosophy__visual figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  color: var(--linen);
  display: flex; justify-content: space-between; align-items: end;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500;
  gap: 12px;
}
.philosophy__visual-corner {
  position: absolute; top: 16px; left: 16px;
  width: 22px; height: 22px;
  border-top: 1px solid rgba(244,239,228,0.5);
  border-left: 1px solid rgba(244,239,228,0.5);
  z-index: 2;
}

/* RIGHT column — stacked content */
.philosophy__right {
  display: flex; flex-direction: column;
  gap: clamp(20px, 3vh, 40px);
  justify-content: center;
  padding-block: clamp(8px, 2vh, 24px);
  min-width: 0;
}
.philosophy__head { display: flex; flex-direction: column; gap: clamp(14px, 2vh, 22px); }
.philosophy__head .rule { width: 48px; height: 1px; background: var(--mauve); display: block; }
.philosophy__title {
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
  color: var(--ink);
}

.philosophy__body {
  display: flex; flex-direction: column; gap: clamp(14px, 1.8vh, 20px);
}
.philosophy__body .body {
  font-size: 15px; line-height: 1.65; color: var(--ink-80);
  max-width: 54ch;
}
.philosophy__body .link-arrow { margin-top: 4px; }

/* Stats strip within the right column */
.philosophy__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink-12);
  padding-top: clamp(20px, 2.6vh, 32px);
  margin-top: clamp(4px, 1vh, 12px);
  gap: 0;
}
.philosophy__stat {
  display: flex; flex-direction: column; gap: 10px;
  padding-right: clamp(14px, 2vw, 28px);
}
.philosophy__stat + .philosophy__stat {
  border-left: 1px solid var(--ink-12);
  padding-left: clamp(14px, 2vw, 28px);
}
.philosophy__stat .num {
  font-weight: 300;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--teal-deep);
}
.philosophy__stat .num sup {
  font-size: 0.42em;
  font-weight: 500;
  vertical-align: 0.85em;
  margin-left: 3px;
  color: var(--mauve);
  letter-spacing: 0.04em;
}
.philosophy__stat .label {
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
  max-width: 18ch;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .philosophy .container {
    grid-template-columns: 1fr;     /* stack on tablet and below */
    row-gap: clamp(24px, 4vh, 40px);
  }
  .philosophy__visual figure { min-height: 0; aspect-ratio: 4 / 3; }
  .philosophy__right { padding-block: 0; }
  .philosophy__stats { grid-template-columns: 1fr; }
  .philosophy__stat + .philosophy__stat {
    border-left: 0;
    border-top: 1px solid var(--ink-12);
    padding-left: 0;
    padding-top: 18px;
    margin-top: 6px;
  }
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mauve);
  padding-block: 8px;
  border-bottom: 1px solid var(--mauve);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
  align-self: flex-start;
}
.link-arrow:hover { color: var(--mauve-deep); border-color: var(--mauve-deep); gap: 16px; }

/* ---------- Photo break ---------- */
.photo-break {
  position: relative;
  width: 100%;
  height: clamp(420px, 70vh, 780px);
  overflow: hidden;
  background: var(--ink);
}
.photo-break img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  will-change: transform;
}
.photo-break__caption {
  position: absolute;
  left: var(--gutter); bottom: clamp(20px, 3vh, 32px);
  color: var(--linen);
  font-weight: 500; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  display: flex; gap: 16px; align-items: center;
}
.photo-break__caption .dot { width: 4px; height: 4px; background: var(--mauve); border-radius: 50%; }

/* ---------- Principles (horizontal scroll) ---------- */
.principles { background: var(--linen); }
.principles__head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 32px);
  padding-inline: var(--gutter);
  margin-bottom: clamp(28px, 4vh, 52px);
}
.principles__head .col-a { grid-column: 2 / span 6; display: flex; flex-direction: column; gap: 20px; }
.principles__head .col-b { grid-column: 9 / span 3; align-self: end; }
.principles__track-wrap {
  position: relative;
  padding-block-end: clamp(40px, 6vh, 72px);
}
.principles__track {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  padding-inline: var(--gutter);
  will-change: transform;
}
.principle {
  flex: 0 0 clamp(280px, 38vw, 520px);
  min-height: clamp(360px, 54vh, 520px);
  background: var(--paper);
  padding: clamp(32px, 4vw, 56px);
  display: flex; flex-direction: column; gap: clamp(20px, 3vh, 36px);
  position: relative;
  border: 1px solid var(--ink-06);
  transition: transform 0.6s var(--ease);
}
.principle:hover { transform: translateY(-6px); }
.principle__num {
  display: flex; align-items: baseline; gap: 10px;
  font-weight: 300;
  font-size: clamp(60px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--mauve);
  -webkit-text-stroke: 1px var(--mauve);
  color: transparent;
}
.principle__num .of {
  -webkit-text-stroke: 0;
  color: var(--ink-40);
  font-weight: 500;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}
.principle__title {
  font-weight: 900;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: auto;
}
.principle__body { color: var(--ink-80); max-width: 38ch; }
.principles__hint {
  padding-inline: var(--gutter);
  display: flex; gap: 12px; align-items: center;
  color: var(--ink-40); font-weight: 500; font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  margin-top: clamp(32px, 4vh, 48px);
}
.principles__hint .line-decor { display:inline-block; width: 36px; height: 1px; background: var(--ink-40); }

/* ---------- Network (dark panel) ---------- */
.network {
  background: var(--ink);
  color: var(--linen);
  padding-block: clamp(44px, 6vh, 80px);
}
.network .section-marker { color: rgba(244,239,228,0.55); }
.network .section-marker .slash { color: rgba(244,239,228,0.3); }
.network__head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px,2vw,32px);
  padding-inline: var(--gutter);
  margin-bottom: clamp(28px, 4vh, 52px);
}
.network__head .col-a { grid-column: 2 / span 7; display: flex; flex-direction: column; gap: 24px; }
.network__head .col-b { grid-column: 10 / span 2; align-self: end; text-align: right; }
.network__head .col-a .body { color: rgba(244,239,228,0.72); max-width: 54ch; }
.network__count {
  font-weight: 300;
  font-size: clamp(80px, 10vw, 160px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--mauve);
}
.network__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(220px, 30vh, 320px);
  gap: 1px;
  padding-inline: var(--gutter);
  background: rgba(244,239,228,0.08);
  border: 1px solid rgba(244,239,228,0.08);
}
.network__item {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  cursor: default; /* presentational, not interactive — don't show pointer */
}
.network__item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: opacity 0.8s var(--ease), transform 1.2s var(--ease); }
.network__item:hover img { opacity: 0.95; transform: scale(1.04); }
.network__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.7) 100%);
}
.network__label {
  position: absolute; left: 18px; bottom: 16px; right: 18px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
}
.network__label .num { font-weight: 300; font-size: 12px; letter-spacing: 0.2em; color: rgba(244,239,228,0.55); }
.network__label .name { font-weight: 700; font-size: clamp(16px, 1.3vw, 20px); letter-spacing: 0.02em; }

/* ---------- CTA ---------- */
.cta-block {
  background: var(--teal);
  color: var(--linen);
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 5vh, 68px);
}
.cta-block::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(110% 80% at 15% 20%, rgba(244,239,228,0.12), transparent 60%),
              radial-gradient(90% 70% at 90% 90%, rgba(10,10,10,0.35), transparent 60%);
  pointer-events: none;
}
.cta-block__inner {
  position: relative;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px,2vw,32px);
  padding-inline: var(--gutter);
  align-items: end;
  gap: clamp(40px, 6vh, 64px) 0;
}
.cta-block__head { grid-column: 2 / span 7; display: flex; flex-direction: column; gap: clamp(20px, 3vh, 32px); }
.cta-block__aside { grid-column: 10 / span 2; display: flex; flex-direction: column; gap: 20px; justify-self: end; max-width: 320px; text-align: right; }
.cta-block__aside .body { color: rgba(244,239,228,0.8); }
.cta-block__aside .eyebrow { color: rgba(244,239,228,0.55); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 26px;
  background: var(--linen);
  color: var(--ink);
  font-weight: 500; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), gap 0.3s var(--ease);
  align-self: flex-start;
}
.btn-primary:hover { background: var(--mauve); color: var(--linen); gap: 20px; }
.btn-primary .arrow { transition: transform 0.3s var(--ease); display: inline-block; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 0;
  font-weight: 500; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.btn-ghost:hover { color: var(--mauve-deep); border-color: var(--mauve-deep); gap: 18px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--linen-deep);
  padding: clamp(80px, 10vh, 120px) var(--gutter) 32px;
  border-top: 1px solid var(--ink-12);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  margin-bottom: clamp(64px, 8vh, 96px);
}
.footer__brand { display: flex; flex-direction: column; gap: 24px; max-width: 40ch; color: var(--ink); }
.footer__brand .logo { color: var(--ink); }
.footer__col h4 { font-weight: 500; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-60); margin-bottom: 20px; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-weight: 400; font-size: 15px; color: var(--ink); transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--mauve); }
.footer__rule { height: 1px; background: var(--ink-12); margin-bottom: 24px; }
.footer__base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 12px; color: var(--ink-60); letter-spacing: 0.04em;
}
.footer__base .top-link { color: var(--mauve); display: inline-flex; align-items: center; gap: 8px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; font-size: 11px; }
.footer__base .top-link:hover { color: var(--mauve-deep); }

/* =========================================================================
   PAGE HEROES (About, Contact) — type-only variants
   ========================================================================= */
.page-hero {
  padding: clamp(180px, 22vh, 260px) var(--gutter) clamp(80px, 12vh, 140px);
  background: var(--linen);
  position: relative;
}
.page-hero__inner {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px,2vw,32px);
  align-items: end;
}
.page-hero__eyebrow { grid-column: 2 / span 4; display: flex; flex-direction: column; gap: 20px; }
.page-hero__eyebrow .rule { width: 64px; height: 1px; background: var(--mauve); }
.page-hero__title { grid-column: 2 / span 10; margin-top: clamp(32px, 5vh, 56px); }
.page-hero__title .line { display: block; overflow: hidden; }
.page-hero__title .line > span { display: inline-block; }

/* =========================================================================
   ABOUT — specific
   ========================================================================= */
.about-body .col-a { grid-column: 2 / span 4; display: flex; flex-direction: column; gap: 20px; }
.about-body .col-b { grid-column: 7 / span 5; display: flex; flex-direction: column; gap: 24px; align-self: start; }

.pull-quote {
  background: var(--ink);
  color: var(--linen);
  padding-block: clamp(36px, 5vh, 68px);
}
.pull-quote__inner {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px,2vw,32px);
  padding-inline: var(--gutter);
}
.pull-quote blockquote {
  grid-column: 2 / span 10;
  font-weight: 300;
  font-size: clamp(32px, 4.2vw, 64px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.pull-quote .mark {
  color: var(--mauve);
  font-weight: 900;
  display: inline-block;
  transform: translateY(0.15em);
  margin-right: 0.15em;
}
.pull-quote cite {
  grid-column: 2 / span 10;
  margin-top: clamp(32px, 5vh, 56px);
  font-style: normal;
  font-weight: 500;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(244,239,228,0.55);
}

/* =========================================================================
   CONTACT — specific
   ========================================================================= */
.contact-section { padding-block: clamp(80px, 12vh, 160px); }
.contact-section .grid-12 { align-items: start; }
.contact-aside { grid-column: 2 / span 4; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 120px; }
.contact-aside .rule { width: 64px; height: 1px; background: var(--mauve); }
.contact-aside .email a { font-weight: 500; border-bottom: 1px solid var(--ink-40); padding-bottom: 2px; transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.contact-aside .email a:hover { color: var(--mauve); border-color: var(--mauve); }
.contact-aside .channel-label { font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-60); margin-bottom: 8px; }

.form { grid-column: 6 / span 7; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.form__field { position: relative; padding: 22px 0 18px; border-bottom: 1px solid var(--ink-12); grid-column: span 1; transition: border-color 0.3s var(--ease); }
.form__field--full { grid-column: span 2; }
.form__field:focus-within { border-bottom-color: var(--mauve); }
.form__label {
  display: block;
  font-weight: 500; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-60); margin-bottom: 10px;
}
.form__label .req { color: var(--mauve); margin-left: 4px; }
.form__input, .form__select, .form__textarea {
  width: 100%;
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink);
  background: transparent;
  outline: none;
  padding: 4px 0;
  letter-spacing: -0.005em;
}
.form__textarea { min-height: 120px; resize: vertical; font-size: 17px; line-height: 1.5; }
.form__input::placeholder, .form__textarea::placeholder { color: var(--ink-40); font-weight: 300; }
.form__select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-60) 50%),
                    linear-gradient(135deg, var(--ink-60) 50%, transparent 50%);
  background-position: calc(100% - 18px) 16px, calc(100% - 12px) 16px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
  color: var(--ink-40);
}
.form__select:valid { color: var(--ink); }
.form__submit-row {
  grid-column: span 2;
  display: flex; justify-content: space-between; align-items: center;
  margin-top: clamp(32px, 5vh, 56px);
  flex-wrap: wrap; gap: 20px;
}
.form__submit-row .fine {
  font-size: 12px; color: var(--ink-60); max-width: 44ch; line-height: 1.55;
}
.form__submit {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  background: var(--ink);
  color: var(--linen);
  font-weight: 500; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  transition: background 0.3s var(--ease), gap 0.3s var(--ease);
}
.form__submit:hover { background: var(--mauve-deep); gap: 20px; }

.form__success {
  grid-column: 1 / -1;
  display: none;
  padding: clamp(40px, 8vh, 80px) 0;
  text-align: left;
}
.form__success .display-m { margin-bottom: 24px; }
.form.is-submitted .form__field,
.form.is-submitted .form__submit-row { display: none; }
.form.is-submitted .form__success { display: block; }

/* =========================================================================
   REVEAL helpers (JS toggles .is-in)
   ========================================================================= */
/* Reveal animations — only gate visibility when JS has confirmed it's running.
   Without the .js class on <html>, elements are visible by default (progressive
   enhancement). This prevents permanently-invisible content if JS breaks. */
html.js .r-fade   { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.js .r-fade.is-in { opacity: 1; transform: translate3d(0, 0, 0); }
html.js .r-rise   { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
html.js .r-rise.is-in { opacity: 1; transform: translate3d(0, 0, 0); }
html.js .r-wipe   { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-expo); }
html.js .r-wipe.is-in { clip-path: inset(0 0 0 0); }
.r-delay-1 { transition-delay: 0.08s; }
.r-delay-2 { transition-delay: 0.16s; }
.r-delay-3 { transition-delay: 0.24s; }
.r-delay-4 { transition-delay: 0.32s; }
.r-delay-5 { transition-delay: 0.40s; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1100px) {
  .network__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(220px, 28vw, 280px); }
}
@media (max-width: 900px) {
  /* NAV — mobile: disable mix-blend (causes ghost-text bleed on iOS Safari),
     use a solid semi-transparent linen backdrop instead. Swap to 2-col grid
     so burger sits at right edge, not middle of the bar. */
  .nav {
    grid-template-columns: 1fr auto;
    padding: 14px var(--gutter);
    mix-blend-mode: normal;                                  /* defeat ghost text */
    background: rgba(244, 239, 228, 0.88);                   /* linen, translucent */
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid var(--ink-12);
    color: var(--ink);                                       /* text visible on linen */
  }
  .nav a { color: var(--ink); }
  .nav__links { display: none !important; }
  .nav__cta { display: none !important; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 5px;
    justify-self: end;
    width: 26px; cursor: pointer;
    background: transparent; border: 0; padding: 8px 0;
    color: var(--ink);
  }
  .nav__burger span { display: block; width: 100%; height: 1px; background: currentColor; }
  .logo--nav { height: 32px; }   /* slightly smaller on phones */

  .philosophy .eyebrow-row,
  .philosophy .body-col,
  .principles__head .col-a,
  .principles__head .col-b,
  .network__head .col-a,
  .network__head .col-b,
  .cta-block__head,
  .cta-block__aside,
  .contact-aside,
  .form,
  .about-body .col-a,
  .about-body .col-b,
  .page-hero__eyebrow,
  .page-hero__title {
    grid-column: 1 / -1;
  }
  .cta-block__aside { text-align: left; justify-self: start; }
  .network__head .col-b { text-align: left; justify-self: start; margin-top: 24px; }
  .principles__head .col-b { margin-top: 16px; }

  /* PRINCIPLES — stack vertically on mobile, drop horizontal-scroll entirely.
     Defensive: !important on critical properties because the base rules use
     `will-change: transform` (compositing layer) which can make inline GSAP
     state sticky across viewport resizes. Also force-neutralize flex-basis
     from clamp(280px, 38vw, 520px) so panels aren't minimum-280px-wide. */
  .principles__track-wrap {
    padding-block-end: 0 !important;
    position: relative !important;    /* cancel any ScrollTrigger pin */
    transform: none !important;
  }
  .principles__track {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px;
    padding-inline: var(--gutter);
    transform: none !important;
    will-change: auto !important;     /* kill the compositing hint on mobile */
    width: 100% !important;
  }
  .principle {
    flex: 0 0 auto !important;        /* reset flex-basis from clamp(...) */
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: clamp(28px, 5vw, 40px);
    gap: 18px;
  }
  .principle:hover { transform: none; }        /* drop desktop lift */
  .principle__num { font-size: clamp(56px, 14vw, 88px); }
  .principle__title { font-size: clamp(22px, 4.4vw, 28px); }
  .principles__hint { display: none; }

  .hero__inner { padding: 100px var(--gutter) 48px; }
  .hero__eyebrow { max-width: 280px; font-size: 10px; letter-spacing: 0.22em; }
  .hero__title { max-width: unset; }

  .footer__grid { grid-template-columns: 1fr; }

  .contact-aside { position: static; top: auto; }
  .form { grid-template-columns: 1fr; }
  .form__field--full, .form__field { grid-column: span 1 !important; }
  .form__submit-row { grid-column: span 1; flex-direction: column; align-items: flex-start; }

  .pull-quote blockquote { grid-column: 1 / -1; }
  .pull-quote cite { grid-column: 1 / -1; }
  .pull-quote__inner, .cta-block__inner, .network__head, .principles__head {
    padding-inline: var(--gutter);
  }

  .section-marker { top: clamp(40px, 6vh, 72px); }

  .network__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .hero { min-height: 620px; }
  .network__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  /* .principle flex-basis now governed by the 900px block; no override needed at 600px */
}

/* =========================================================================
   DESTINATION — "The Rising Coastal Destination"
   Inspired by Range Developments: hand-drawn map + pin-list + stats + region toggle
   ========================================================================= */
.destination {
  background: var(--linen);
  padding-block: clamp(36px, 5vh, 68px);
  position: relative;
}
.destination__head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 32px);
  padding-inline: var(--gutter);
  margin-bottom: clamp(48px, 6vh, 72px);
  align-items: end;
}
.destination__eyebrow-row { grid-column: 2 / span 7; display: flex; flex-direction: column; gap: 20px; }
.destination__toggle { grid-column: 10 / span 3; justify-self: end; }

/* Region toggle (pill group) */
.region-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--ink-12);
  background: var(--paper);
  border-radius: 999px;
}
.region-toggle button {
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-60);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  white-space: nowrap;
}
.region-toggle button.is-active {
  background: var(--teal);
  color: var(--linen);
}
.region-toggle button:not(.is-active):hover { color: var(--ink); }

.destination__body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 32px);
  padding-inline: var(--gutter);
  align-items: start;
}
.destination__copy { grid-column: 2 / span 5; display: flex; flex-direction: column; gap: 32px; }
.destination__map-wrap {
  grid-column: 7 / span 6;
  position: relative;
  overflow: visible;            /* don't clip tooltips that escape the frame */
  /* Raise the entire map column into a higher stacking context so tooltips
     that extend beyond the map-frame can render above the pin-list, section
     marker, and any adjacent content. */
  z-index: 20;
}
/* Parents of map-wrap must also allow overflow to escape */
.destination__body,
.destination { overflow: visible; }

/* Pin list — exclusive accordion with persistent single-open state.
   JS maintains exactly one `.is-open` at a time, transferring it on interaction.
   `:hover` only handles subtle visual affordances (background, bullet tint).
   Only `.is-open` drives actual expansion. */
.pin-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--ink-12);
  list-style: none;
  padding: 0; margin: 0;
}
.pin-list li {
  display: block;
  position: relative;
  border-bottom: 1px solid var(--ink-12);
  cursor: pointer;
  padding-left: 0;
  transition: background 0.45s var(--ease), padding-left 0.45s var(--ease);
}
/* Left chapter-mark accent, only visible on open */
.pin-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 24px;
  width: 2px; height: 28px;
  background: var(--mauve);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}

.pin-list__head {
  display: flex; align-items: center; gap: 16px;
  padding: 26px 0;                         /* extra breathing room between items */
  font-weight: 500; font-size: 15px; letter-spacing: -0.005em;
  color: var(--ink-80);
  transition: color 0.3s var(--ease);
}
.pin-list__bullet {
  width: 15px; height: 15px;
  border: 1px solid var(--ink-40);
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pin-list__name {
  flex: 1;
  min-width: 0;
}
.pin-list__num {
  font-weight: 300; font-size: 11px; letter-spacing: 0.14em; color: var(--ink-40);
  transition: color 0.3s var(--ease);
}

/* +/− toggle, pure CSS, rotates-collapse when open */
.pin-list__toggle {
  position: relative;
  width: 14px; height: 14px;
  flex-shrink: 0;
  color: var(--ink-40);
  transition: color 0.35s var(--ease);
}
.pin-list__toggle::before,
.pin-list__toggle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px;
  height: 1.2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.4s var(--ease), opacity 0.35s var(--ease);
}
.pin-list__toggle::before { transform: translate(-50%, -50%); }
.pin-list__toggle::after  { transform: translate(-50%, -50%) rotate(90deg); }

/* Accordion body — only expanded when .is-open */
.pin-list__desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 0 0 31px;                     /* align with text (past the bullet) */
  max-width: 48ch;
  color: var(--ink-60);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease), padding 0.5s var(--ease);
}

/* --- Hover / focus / data-target highlight: SUBTLE affordances only --- */
.pin-list li:hover,
.pin-list li:focus-within,
.pin-list li.is-active:not(.is-open) {
  background: linear-gradient(90deg, rgba(156,125,150,0.04), transparent 70%);
}
.pin-list li:hover .pin-list__head,
.pin-list li:focus-within .pin-list__head,
.pin-list li.is-active .pin-list__head {
  color: var(--ink);
}
.pin-list li:hover .pin-list__bullet,
.pin-list li:focus-within .pin-list__bullet,
.pin-list li.is-active .pin-list__bullet {
  border-color: var(--mauve);
  transform: scale(1.1);
}
.pin-list li:hover .pin-list__toggle,
.pin-list li:focus-within .pin-list__toggle,
.pin-list li.is-active .pin-list__toggle {
  color: var(--mauve);
}

/* --- Open state: the ONE expanded row --- */
.pin-list li.is-open {
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(156,125,150,0.08), transparent 80%);
}
.pin-list li.is-open::before { transform: scaleY(1); }
.pin-list li.is-open .pin-list__head {
  color: var(--teal-deep);
}
.pin-list li.is-open .pin-list__bullet {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  transform: scale(1.2);
}
.pin-list li.is-open .pin-list__num {
  color: var(--teal);
}
.pin-list li.is-open .pin-list__toggle {
  color: var(--mauve-deep);
}
/* Plus → minus morph */
.pin-list li.is-open .pin-list__toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}
.pin-list li.is-open .pin-list__desc {
  max-height: 220px;
  opacity: 1;
  padding: 0 0 18px 31px;
}

/* Stats grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-12);
  padding-top: 36px;
  margin-top: 8px;
}
.stat { display: flex; flex-direction: column; gap: 10px; padding-right: 20px; position: relative; }
.stat + .stat { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--ink-12); }
.stat__num {
  font-weight: 300;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--teal-deep);
}
.stat__num sup { font-size: 0.5em; font-weight: 500; vertical-align: 0.7em; margin-left: 2px; color: var(--mauve); }
.stat__label {
  font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-60);
  max-width: 18ch;
  line-height: 1.45;
}

/* SVG map */
.rel-map {
  display: block;
  width: 100%;
  height: auto;
  color: var(--teal-deep);
}
.rel-map .sea       { stroke: currentColor; stroke-width: 1; fill: none; opacity: 0.3; }
.rel-map .coastline { stroke: currentColor; stroke-width: 1.4; fill: rgba(62,91,91,0.05); stroke-linecap: round; stroke-linejoin: round; }
.rel-map .coastline-inner { stroke: currentColor; stroke-width: 0.8; fill: none; stroke-dasharray: 1 4; opacity: 0.5; }
.rel-map .zone      { stroke: currentColor; stroke-width: 1; stroke-dasharray: 3 5; fill: rgba(156,125,150,0.06); opacity: 0.65; }
.rel-map .decor     { stroke: currentColor; fill: none; stroke-width: 0.9; opacity: 0.55; stroke-linecap: round; stroke-linejoin: round; }
.rel-map .arch      { stroke: currentColor; fill: none; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.rel-map .arch .dim { stroke-width: 0.5; opacity: 0.35; }
.rel-map .arch .faint { opacity: 0.6; }
.rel-map .compass   { stroke: currentColor; fill: none; stroke-width: 0.9; opacity: 0.7; }
.rel-map .compass-fill { fill: currentColor; stroke: none; opacity: 0.55; }
.rel-map .label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  fill: currentColor;
  text-transform: uppercase;
  opacity: 0.55;
}
.rel-map .label--lg { font-size: 10.5px; letter-spacing: 0.34em; opacity: 0.85; }
.rel-map .label--script {
  font-size: 11px; letter-spacing: 0.08em;
  font-weight: 500; font-style: italic;
  opacity: 0.7;
  text-transform: none;
}

/* Map pin */
.rel-map .pin {
  cursor: pointer;
  transition: transform 0.45s var(--ease);
  transform-origin: center;
  transform-box: fill-box;
}
.rel-map .pin-ring {
  stroke: var(--teal-deep);
  stroke-width: 1.3;
  fill: var(--linen);
  transition: stroke-width 0.3s var(--ease), fill 0.3s var(--ease), stroke 0.3s var(--ease);
}
.rel-map .pin-dot {
  fill: var(--teal-deep);
  transition: fill 0.3s var(--ease);
}
.rel-map .pin-num {
  fill: var(--linen);
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  letter-spacing: 0;
}
.rel-map .pin-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  font-weight: 600;
  fill: var(--mauve-deep);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.rel-map .pin.is-active .pin-ring { stroke-width: 2; stroke: var(--mauve-deep); }
.rel-map .pin.is-active .pin-dot { fill: var(--mauve); }
.rel-map .pin.is-active .pin-label { opacity: 1; }
.rel-map .pin.is-active { transform: scale(1.12); }

/* pulse ring animation for active pin */
.rel-map .pin-pulse {
  fill: none;
  stroke: var(--mauve);
  stroke-width: 1;
  opacity: 0;
}
.rel-map .pin.is-active .pin-pulse {
  animation: pinPulse 1.8s var(--ease) infinite;
}
@keyframes pinPulse {
  0%   { r: 12; opacity: 0.6; }
  100% { r: 28; opacity: 0; }
}

.rel-map-caption {
  margin-top: 20px;
  font-weight: 500; font-size: 10px; letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-40);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}

/* =========================================================================
   MAP IMAGE + HTML PIN OVERLAY
   Uses the attached illustrated SVG as a flat background; pins are HTML
   elements absolutely positioned by percentage so responsive scaling keeps
   them on target, and CSS transforms compose cleanly without SVG coord math.
   ========================================================================= */
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1800 / 1521;        /* match new hand-drawn map */
  overflow: hidden;
  background: var(--linen);          /* linen shows through where the map is "white" */
  /* Establish a new stacking context so mix-blend-mode on the <img> can't
     push siblings (the pins) into unpredictable z-order on mobile Safari. */
  isolation: isolate;
}
.map-frame__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;                        /* explicit: image is the base layer */
  /* The illustration is black line-art on white — multiply erases the white
     and lets the linen page color flood through, keeping the ink crisp. */
  mix-blend-mode: multiply;
  /* Gently shift the black to our teal-deep without losing contrast */
  filter: contrast(1.05) sepia(0.1) hue-rotate(140deg) saturate(0.6);
}

/* Pin (HTML button) */
.map-pin {
  position: absolute;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;                       /* explicitly above the image */
  display: block;
  color: var(--linen);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
}
/* Raise z-index while active/hovered so tooltip doesn't get clipped by neighboring pins */
.map-pin:hover,
.map-pin:focus-visible,
.map-pin.is-active { z-index: 30; }

/* The square icon bezel */
.map-pin__square {
  position: absolute;
  inset: 0;
  background: var(--teal-deep);
  border: 2px solid var(--linen);
  display: flex; align-items: center; justify-content: center;
  color: var(--linen);
  box-shadow: 0 2px 10px rgba(10,10,10,0.28);
  transition: background 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s var(--ease);
}
.map-pin__square svg { width: 16px; height: 16px; display: block; }

.map-pin:hover .map-pin__square,
.map-pin:focus-visible .map-pin__square,
.map-pin.is-active .map-pin__square {
  background: var(--mauve-deep);
  transform: scale(1.14);
  box-shadow: 0 6px 18px rgba(126,95,122,0.45);
}

/* Pulse ring */
.map-pin__pulse {
  position: absolute;
  inset: -4px;
  border: 1.5px solid var(--mauve);
  opacity: 0;
  pointer-events: none;
}
.map-pin.is-active .map-pin__pulse,
.map-pin:hover .map-pin__pulse {
  animation: pinPulseHtml 1.8s var(--ease) infinite;
}
@keyframes pinPulseHtml {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* ============ TOOLTIP CARD (rich, appears on hover) ============ */
.map-pin__tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  width: 260px;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  box-shadow: 0 16px 40px rgba(10,10,10,0.18), 0 2px 6px rgba(10,10,10,0.08);
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  z-index: 100;            /* far above siblings within the pin's context */
  overflow: hidden;        /* keep tooltip's own rounded-edge clip on image */
  text-align: left;
}
/* If pin is in the lower half of the map, flip tooltip below */
.map-pin__tooltip[data-pos="top"] {
  bottom: auto;
  top: calc(100% + 14px);
  transform: translateX(-50%) translateY(-6px);
}
.map-pin:hover .map-pin__tooltip,
.map-pin:focus-visible .map-pin__tooltip,
.map-pin.is-active .map-pin__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.map-pin__tooltip img {
  width: 100%; height: 128px;
  object-fit: cover;
  display: block;
}
.map-pin__tooltip .tip-body { padding: 14px 16px 16px; }
.map-pin__tooltip .tip-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mauve);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.map-pin__tooltip .tip-num::before {
  content: ""; width: 14px; height: 1px; background: var(--mauve);
}
.map-pin__tooltip .tip-title {
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 6px;
}
.map-pin__tooltip .tip-body p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-60);
  margin: 0;
}

/* Tooltip notch/arrow */
.map-pin__tooltip::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border: 7px solid transparent;
  border-top-color: var(--paper);
  filter: drop-shadow(0 2px 2px rgba(10,10,10,0.08));
}
.map-pin__tooltip[data-pos="top"]::after {
  top: auto; bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--paper);
}

.map-pin:focus { outline: none; }
.map-pin:focus-visible .map-pin__square { outline: 2px dashed var(--mauve); outline-offset: 4px; }

@media (max-width: 900px) {
  /* Let tooltips extend beyond the frame bounds on mobile — they'd otherwise
     clip because the frame is narrow. The image fills the frame exactly via
     inset:0 + object-fit:cover, so it still can't overflow. */
  .map-frame { overflow: visible; }

  /* Larger tap target on mobile (36 px square — close to Apple HIG 44 px guide) */
  .map-pin { width: 36px; height: 36px; }
  .map-pin__square svg { width: 16px; height: 16px; }
  .map-pin__tooltip { width: 220px; }
  .map-pin__tooltip img { height: 110px; }
  .map-pin__tooltip .tip-title { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin.is-active .map-pin__pulse,
  .map-pin:hover .map-pin__pulse { animation: none; opacity: 0.4; transform: scale(1.7); }
}

/* =========================================================================
   RESIDENCES & AMENITIES GALLERY (landing page)
   Asymmetric 6-col grid: 1 featured tile (4x2) + 2 side tiles + 3 bottom tiles
   ========================================================================= */
.residences {
  background: var(--linen);
  padding-block: clamp(36px, 5vh, 68px);
  position: relative;
  overflow: hidden;
}
.residences__head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 32px);
  padding-inline: var(--gutter);
  margin-bottom: clamp(28px, 4vh, 52px);
  align-items: end;
}
.residences__head .col-a { grid-column: 2 / span 6; display: flex; flex-direction: column; gap: 20px; }
.residences__head .col-b { grid-column: 9 / span 3; align-self: end; }

.residences__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(200px, 26vw, 340px);
  gap: clamp(10px, 1vw, 18px);
  padding-inline: var(--gutter);
  grid-auto-flow: dense;
}
.residence {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  cursor: pointer;
  background: var(--ink);
  isolation: isolate;
}
.residence--featured { grid-column: span 4; grid-row: span 2; }
.residence img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
  filter: saturate(0.92);
}
.residence:hover img { transform: scale(1.05); filter: saturate(1.05); }
.residence::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,0) 35%, rgba(10,10,10,0.78) 100%);
  transition: background 0.6s var(--ease);
}
.residence:hover::after {
  background: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.85) 100%);
}
.residence__meta {
  position: absolute;
  left: clamp(20px, 2vw, 28px);
  bottom: clamp(20px, 2.5vh, 28px);
  right: clamp(20px, 2vw, 28px);
  z-index: 2;
  color: var(--linen);
  display: flex; flex-direction: column; gap: 8px;
}
.residence__tag {
  font-size: 10px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  opacity: 0.78;
  display: flex; align-items: center; gap: 10px;
}
.residence__tag .dot { width: 4px; height: 4px; background: var(--mauve-soft); border-radius: 50%; flex-shrink: 0; }
.residence__title {
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
}
.residence--featured .residence__title { font-size: clamp(28px, 2.8vw, 46px); }
.residence__link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  margin-top: 10px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), gap 0.3s var(--ease);
  width: fit-content;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.residence:hover .residence__link { opacity: 1; transform: translateY(0); }
.residence:hover .residence__link { gap: 14px; }

/* Tiny corner ornament — reinforces the editorial map-like feel */
.residence::before {
  content: "";
  position: absolute;
  top: 16px; right: 16px;
  width: 20px; height: 20px;
  border-top: 1px solid rgba(244,239,228,0.3);
  border-right: 1px solid rgba(244,239,228,0.3);
  z-index: 2;
  pointer-events: none;
}

/* =========================================================================
   CONTACT — quiet photo strip (above footer)
   ========================================================================= */
.contact-photo {
  position: relative;
  height: clamp(360px, 48vh, 560px);
  overflow: hidden;
  background: var(--ink);
}
.contact-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.contact-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.6) 100%);
}
.contact-photo__caption {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  bottom: clamp(32px, 5vh, 56px);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px,2vw,32px);
  color: var(--linen);
  align-items: end;
}
.contact-photo__caption .eyebrow { color: rgba(244,239,228,0.6); grid-column: 2 / span 4; }
.contact-photo__caption .headline {
  grid-column: 2 / span 7;
  font-weight: 300;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 14px;
  text-wrap: balance;
}
.contact-photo__caption .meta {
  grid-column: 10 / span 3;
  justify-self: end;
  text-align: right;
  font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(244,239,228,0.55);
}

/* Responsive gallery + contact photo */
@media (max-width: 1100px) {
  .residences__grid { grid-auto-rows: clamp(180px, 30vw, 300px); }
}
@media (max-width: 900px) {
  .residences__head .col-a, .residences__head .col-b { grid-column: 1 / -1; }
  .residences__head .col-b { margin-top: 20px; }
  .residences__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 42vw;
  }
  .residence, .residence--featured { grid-column: span 1; grid-row: span 1; }
  .residence--featured { grid-column: span 2; grid-row: span 1; }
  .contact-photo__caption .eyebrow,
  .contact-photo__caption .headline,
  .contact-photo__caption .meta { grid-column: 1 / -1; }
  .contact-photo__caption .meta { text-align: left; justify-self: start; margin-top: 16px; }
}
@media (max-width: 600px) {
  .residences__grid { grid-template-columns: 1fr; grid-auto-rows: 56vw; }
  .residence, .residence--featured { grid-column: span 1; grid-row: span 1; }
}

/* =========================================================================
   AMENITIES — 10 world-class amenities (editorial spec sheet)
   Left: sticky atmospheric photo. Right: numbered list with line-icon glyphs.
   ========================================================================= */
.amenities {
  background: var(--linen);
  padding-block: clamp(36px, 5vh, 68px);
}
.amenities__head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px,2vw,32px);
  padding-inline: var(--gutter); margin-bottom: clamp(28px, 4vh, 52px);
  align-items: end;
}
.amenities__head .col-a { grid-column: 2 / span 6; display: flex; flex-direction: column; gap: 20px; }
.amenities__head .col-b { grid-column: 9 / span 3; align-self: end; }

.amenities__body {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px,2vw,32px);
  padding-inline: var(--gutter);
  align-items: start;
}
.amenities__visual {
  grid-column: 2 / span 4;
  position: sticky; top: 120px;
}
.amenities__visual figure { position: relative; overflow: hidden; }
.amenities__visual img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform 12s linear;
  transform: scale(1.02);
}
.amenities:hover .amenities__visual img { transform: scale(1.08); }
.amenities__visual figcaption {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  color: var(--linen);
  font-weight: 500; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.amenities__visual figcaption::before {
  content: ""; position: absolute; inset: 0 -18px -18px; top: auto; height: 50%;
  background: linear-gradient(180deg, transparent, rgba(10,10,10,0.6));
  z-index: -1;
}

.amenities__list { grid-column: 7 / span 5; }
.amenities__list ol { list-style: none; }

.amenity {
  display: grid;
  grid-template-columns: 32px 44px 1fr 24px;
  gap: clamp(12px, 1.4vw, 20px);
  padding: clamp(20px, 2.5vh, 28px) 0;
  border-bottom: 1px solid var(--ink-12);
  align-items: start;
  transition: padding 0.45s var(--ease), background 0.45s var(--ease);
  cursor: pointer;
  position: relative;
}
.amenities__list ol > li:first-child .amenity { border-top: 1px solid var(--ink-12); }
.amenity__num {
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--mauve);
  padding-top: 4px;
}
.amenity__icon {
  width: 32px; height: 32px;
  color: var(--teal-deep);
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
}
.amenity__icon svg { width: 100%; height: 100%; display: block; }
.amenity__content { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.amenity__title {
  font-weight: 500;
  font-size: clamp(17px, 1.45vw, 21px);
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.3;
}
.amenity__body {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.55;
  max-width: 52ch;
}
.amenity__arrow {
  align-self: center;
  color: var(--ink-40);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.3s var(--ease);
  font-size: 14px;
}
.amenity:hover {
  padding-left: clamp(12px, 1.5vw, 20px);
  background: linear-gradient(90deg, rgba(156,125,150,0.05), transparent 85%);
}
.amenity:hover .amenity__icon { color: var(--mauve-deep); transform: rotate(-3deg) scale(1.06); }
.amenity:hover .amenity__arrow { opacity: 1; transform: translateX(0); color: var(--mauve); }

/* =========================================================================
   PARTNERSHIP CREDIT (Palm Hills)
   ========================================================================= */
.partnership {
  background: var(--linen-deep);
  padding: clamp(44px, 6vh, 72px) var(--gutter);
  border-block: 1px solid var(--ink-12);
}
.partnership__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.partnership__eyebrow {
  font-weight: 500; font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-60);
  display: flex; align-items: center; gap: 14px;
}
.partnership__eyebrow::before {
  content: ""; width: 36px; height: 1px; background: var(--mauve); display: inline-block;
}
.partnership__wordmark {
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: 0.04em;
  color: var(--teal-deep);
  text-transform: uppercase;
  line-height: 1;
  display: flex; flex-direction: column; gap: 6px;
  text-align: center;
}
.partnership__wordmark small {
  font-size: 10px; letter-spacing: 0.28em; color: var(--ink-60); font-weight: 500;
  text-transform: uppercase;
}
.partnership__body {
  text-align: right;
  color: var(--ink-60);
  font-size: 14px; line-height: 1.55;
  max-width: 44ch;
  justify-self: end;
}

/* =========================================================================
   SCROLL PROGRESS INDICATOR (hairline at top)
   ========================================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: var(--mauve);
  z-index: 10000;
  pointer-events: none;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(156,125,150,0.4);
}

/* Responsive for amenities + partnership */
@media (max-width: 900px) {
  .amenities__head .col-a, .amenities__head .col-b { grid-column: 1 / -1; }
  .amenities__head .col-b { margin-top: 20px; }
  .amenities__visual { grid-column: 1 / -1; position: static; top: auto; margin-bottom: 40px; }
  .amenities__visual img { aspect-ratio: 16 / 10; }
  .amenities__list { grid-column: 1 / -1; }
  .amenity { grid-template-columns: 28px 36px 1fr 20px; gap: 12px; }
  .amenity__body { font-size: 13px; }
  .partnership__inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .partnership__eyebrow { justify-content: center; }
  .partnership__body { text-align: center; justify-self: center; max-width: 52ch; }
}

/* =========================================================================
   TIMELINE — about.html milestones
   ========================================================================= */
.timeline-section {
  background: var(--linen);
  padding-block: clamp(36px, 5vh, 68px);
}
.timeline-head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px,2vw,32px);
  padding-inline: var(--gutter); margin-bottom: clamp(28px, 4vh, 52px);
  align-items: end;
}
.timeline-head .col-a { grid-column: 2 / span 6; display: flex; flex-direction: column; gap: 20px; }
.timeline-head .col-b { grid-column: 9 / span 3; align-self: end; }

.timeline { padding-inline: var(--gutter); position: relative; border-top: 1px solid var(--ink-12); }
.timeline__row {
  display: grid;
  grid-template-columns: 140px 200px 1fr;
  gap: clamp(16px, 3vw, 48px);
  padding: 36px 0;
  border-bottom: 1px solid var(--ink-12);
  align-items: start;
  transition: padding 0.5s var(--ease), background 0.5s var(--ease);
  position: relative;
}
.timeline__row::before {
  content: "";
  position: absolute;
  left: -4px; top: 42px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mauve);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.timeline__row:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, rgba(156,125,150,0.06), transparent 60%);
}
.timeline__row:hover::before { opacity: 1; transform: scale(1); }
.timeline__year {
  font-weight: 900;
  font-size: clamp(30px, 3.4vw, 48px);
  letter-spacing: -0.02em;
  color: var(--teal-deep);
  line-height: 1;
}
.timeline__title {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.4;
}
.timeline__body { color: var(--ink-60); max-width: 52ch; font-size: 15px; line-height: 1.6; }

/* =========================================================================
   RESPONSE PROMISE (contact.html) + VALUE STRIPS
   ========================================================================= */
.promise-strip {
  background: var(--linen-deep);
  padding: clamp(48px, 7vh, 80px) var(--gutter);
  border-block: 1px solid var(--ink-12);
}
.promise-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
}
.promise { display: flex; flex-direction: column; gap: 14px; padding-right: 20px; }
.promise + .promise { border-left: 1px solid var(--ink-12); padding-left: clamp(24px, 3vw, 48px); }
.promise__num { font-weight: 300; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mauve); }
.promise__title {
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.3;
}
.promise__body { color: var(--ink-60); font-size: 15px; line-height: 1.6; }

/* =========================================================================
   MOBILE OFF-CANVAS MENU — editorial takeover with circular clip-path reveal
   Only rendered on <=900px; hidden on desktop via display:none guard.
   Animation: circle clip-path expands from burger position (top-right),
   then menu items stagger-reveal up in sequence.
   ========================================================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--ink);
  color: var(--linen);
  display: flex;
  flex-direction: column;
  padding: clamp(80px, 11vh, 110px) var(--gutter) 32px;
  /* Start hidden: circle radius 0, centred on where the burger lives */
  clip-path: circle(0% at calc(100% - 33px) 32px);
  -webkit-clip-path: circle(0% at calc(100% - 33px) 32px);
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition:
    clip-path 0.75s cubic-bezier(0.76, 0, 0.24, 1),
    -webkit-clip-path 0.75s cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0s linear 0.75s;
}
.mobile-menu.is-open {
  clip-path: circle(160% at calc(100% - 33px) 32px);
  -webkit-clip-path: circle(160% at calc(100% - 33px) 32px);
  visibility: visible;
  pointer-events: auto;
  transition:
    clip-path 0.75s cubic-bezier(0.76, 0, 0.24, 1),
    -webkit-clip-path 0.75s cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0s linear 0s;
}

/* Top bar inside the menu — eyebrow + current location */
.mobile-menu__topline {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: clamp(18px, 3vh, 28px);
  border-bottom: 1px solid rgba(244,239,228,0.12);
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500;
  color: rgba(244,239,228,0.55);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s var(--ease) 0.25s, transform 0.5s var(--ease) 0.25s;
}
.mobile-menu.is-open .mobile-menu__topline {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu__topline .accent { color: var(--mauve); }

/* Menu items — large display type, numbered, staggered reveal */
.mobile-menu__nav {
  display: flex; flex-direction: column;
  flex: 1;
  padding-top: clamp(28px, 6vh, 48px);
  gap: 2px;
}
.mobile-menu__nav a {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: baseline;
  column-gap: 16px;
  padding: clamp(16px, 2.4vh, 22px) 0;
  border-bottom: 1px solid rgba(244,239,228,0.08);
  color: var(--linen);
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s var(--ease),
    padding 0.3s var(--ease);
  position: relative;
}
.mobile-menu.is-open .mobile-menu__nav a { opacity: 1; transform: translateY(0); }
/* stagger per item — starts after clip-path has mostly completed */
.mobile-menu.is-open .mobile-menu__nav a:nth-child(1) { transition-delay: 0.35s, 0.35s, 0s, 0s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: 0.42s, 0.42s, 0s, 0s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: 0.49s, 0.49s, 0s, 0s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { transition-delay: 0.56s, 0.56s, 0s, 0s; }

.mobile-menu__num {
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mauve);
  align-self: start;
  padding-top: 14px;
}
.mobile-menu__word {
  font-size: clamp(40px, 11vw, 72px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1;
  position: relative;
  display: inline-block;
}
.mobile-menu__word::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 3px;
  height: 1px;
  background: var(--mauve);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.mobile-menu__nav a:hover .mobile-menu__word::after,
.mobile-menu__nav a:active .mobile-menu__word::after,
.mobile-menu__nav a[aria-current="page"] .mobile-menu__word::after {
  transform: scaleX(1);
}
.mobile-menu__tag {
  font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(244,239,228,0.4);
  align-self: start;
  padding-top: 16px;
}
.mobile-menu__nav a[aria-current="page"] .mobile-menu__tag { color: var(--mauve); }

/* Bottom aside — email + tagline */
.mobile-menu__aside {
  display: flex; flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(244,239,228,0.12);
  margin-top: auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease) 0.62s, transform 0.6s var(--ease) 0.62s;
}
.mobile-menu.is-open .mobile-menu__aside {
  opacity: 1; transform: translateY(0);
}
.mobile-menu__aside .eyebrow {
  color: rgba(244,239,228,0.45);
  font-size: 10px;
}
.mobile-menu__aside .email {
  font-size: clamp(16px, 4.5vw, 22px);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--linen);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(244,239,228,0.3);
  align-self: flex-start;
  margin-top: 4px;
}
.mobile-menu__aside .tag {
  margin-top: 14px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500;
  color: rgba(244,239,228,0.35);
}

/* Burger → × morph when the body carries the .menu-open class */
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav__burger span { transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); transform-origin: center; }

/* Lock the body when the menu is open (no background scroll leak) */
body.menu-open { overflow: hidden; touch-action: none; }

/* Raise the burger above the menu so it stays interactive as the × toggle */
body.menu-open .nav {
  z-index: 2100;                        /* above the menu panel */
  mix-blend-mode: normal;
  background: transparent !important;   /* transparent so the ink menu shows through */
  border-bottom: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--linen);
}
body.menu-open .nav .logo--nav { filter: invert(1) brightness(1.6); }
body.menu-open .nav .nav__burger { color: var(--linen); }

/* Desktop: the menu is never needed */
@media (min-width: 901px) {
  .mobile-menu { display: none; }
}

/* Reduced motion: drop the clip-path sweep and just fade */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu {
    clip-path: none;
    -webkit-clip-path: none;
    opacity: 0;
    transition: opacity 0.25s linear, visibility 0s linear 0.25s;
  }
  .mobile-menu.is-open { opacity: 1; transition: opacity 0.25s linear; }
  .mobile-menu__nav a,
  .mobile-menu__topline,
  .mobile-menu__aside { transform: none; }
}

/* =========================================================================
   FLOATING INQUIRE BUTTON (appears after hero scroll)
   ========================================================================= */
.float-cta {
  position: fixed;
  right: clamp(20px, 3vw, 36px);
  bottom: clamp(20px, 3vw, 36px);
  z-index: 900;
  padding: 14px 22px 14px 24px;
  background: var(--ink);
  color: var(--linen);
  font-weight: 500; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.3s var(--ease), gap 0.3s var(--ease);
}
.float-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.float-cta:hover { background: var(--mauve-deep); gap: 16px; }
.float-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mauve);
  flex-shrink: 0;
  animation: availPulse 2.4s var(--ease) infinite;
}
@keyframes availPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* =========================================================================
   HERO STATS STRIP (small metadata beneath hero)
   ========================================================================= */
.hero__stats {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(60px, 8vh, 100px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  animation: heroStatsIn 1s var(--ease-expo) 2.6s forwards;
}
.hero__stat {
  display: flex; flex-direction: column; gap: 6px;
  color: rgba(244,239,228,0.85);
}
.hero__stat-num { font-weight: 300; font-size: clamp(22px, 2vw, 32px); letter-spacing: -0.02em; line-height: 1; }
.hero__stat-label { font-weight: 500; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.7; }
@keyframes heroStatsIn { to { opacity: 1; transform: translateY(0); } }

/* =========================================================================
   RESPONSIVE overrides for new components
   ========================================================================= */
@media (max-width: 900px) {
  .destination__eyebrow-row,
  .destination__toggle,
  .destination__copy,
  .destination__map-wrap,
  .timeline-head .col-a,
  .timeline-head .col-b {
    grid-column: 1 / -1;
  }
  .destination__toggle { justify-self: start; margin-top: 24px; }
  .destination__map-wrap { margin-top: 56px; }
  .timeline__row { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise + .promise { border-left: 0; border-top: 1px solid var(--ink-12); padding-left: 0; padding-top: clamp(24px, 3vh, 40px); }
  .stat-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--ink-12); padding-left: 0; padding-top: 24px; }
  .region-toggle button { padding: 10px 16px; font-size: 10px; letter-spacing: 0.18em; }
  .hero__stats { display: none; }
  .float-cta { right: 16px; bottom: 16px; padding: 12px 18px; font-size: 10px; }
}

/* =========================================================================
   REDUCED MOTION — strip everything, keep composition readable
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__media { animation: none; transform: scale(1.02); }
  .r-fade, .r-rise { opacity: 1 !important; transform: none !important; }
  .r-wipe { clip-path: none !important; }
  .hero__scroll .line-decor { animation: none; opacity: 0.6; }
  .hero__stats { animation: none; opacity: 1; transform: none; }
  .float-cta .dot { animation: none; }
  .rel-map .pin.is-active .pin-pulse { animation: none; opacity: 0.4; r: 18; }
}
