/* ============================================================
   OWNEXT® — own what's next.
   Brand system: Manual de Identidad (Olivo Studio)
   Obsidian Black #171612 · Ivory Stone #EAE8DA · Aureum Gold #AB7944
   Olive Ash #756440 · Horizon Sage #8EA5A2
   Type: Playfair Display / Groteska / DM Sans / Andale Mono
   ============================================================ */

/* ---------- Fonts ---------- */
/* Fonts: WOFF2, split latin / cyrillic by unicode-range so EN/ES visitors
   never download the Cyrillic glyphs. TTF kept as a fallback for old browsers. */
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-VariableFont_wght.latin.woff2') format('woff2'),
       url('fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20A0-20BF,U+2122,U+2190-2193,U+2022,U+00B7,U+0100-024F;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-VariableFont_wght.cyrillic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF,U+0500-052F,U+2DE0-2DFF,U+A640-A69F;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-Italic-VariableFont_wght.latin.woff2') format('woff2'),
       url('fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20A0-20BF,U+2122,U+2190-2193,U+2022,U+00B7,U+0100-024F;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-Italic-VariableFont_wght.cyrillic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0400-04FF,U+0500-052F,U+2DE0-2DFF,U+A640-A69F;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Variable.latin.woff2') format('woff2'),
       url('fonts/DMSans-Variable.ttf') format('truetype');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20A0-20BF,U+2122,U+2190-2193,U+2022,U+00B7,U+0100-024F;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Variable.cyrillic.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF,U+0500-052F,U+2DE0-2DFF,U+A640-A69F;
}
@font-face {
  font-family: 'Groteska';
  src: url('fonts/Groteska-Light.latin.woff2') format('woff2'),
       url('fonts/Groteska-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20A0-20BF,U+2122,U+2190-2193,U+2022,U+00B7,U+0100-024F;
}
@font-face {
  font-family: 'Groteska';
  src: url('fonts/Groteska-Light.cyrillic.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
  unicode-range: U+0400-04FF,U+0500-052F,U+2DE0-2DFF,U+A640-A69F;
}
@font-face {
  font-family: 'Groteska';
  src: url('fonts/Groteska-Regular.latin.woff2') format('woff2'),
       url('fonts/Groteska-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20A0-20BF,U+2122,U+2190-2193,U+2022,U+00B7,U+0100-024F;
}
@font-face {
  font-family: 'Groteska';
  src: url('fonts/Groteska-Regular.cyrillic.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0400-04FF,U+0500-052F,U+2DE0-2DFF,U+A640-A69F;
}
@font-face {
  font-family: 'Groteska';
  src: url('fonts/Groteska-Medium.latin.woff2') format('woff2'),
       url('fonts/Groteska-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20A0-20BF,U+2122,U+2190-2193,U+2022,U+00B7,U+0100-024F;
}
@font-face {
  font-family: 'Groteska';
  src: url('fonts/Groteska-Medium.cyrillic.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0400-04FF,U+0500-052F,U+2DE0-2DFF,U+A640-A69F;
}
@font-face {
  font-family: 'Groteska';
  src: url('fonts/Groteska-Bold.latin.woff2') format('woff2'),
       url('fonts/Groteska-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20A0-20BF,U+2122,U+2190-2193,U+2022,U+00B7,U+0100-024F;
}
@font-face {
  font-family: 'Groteska';
  src: url('fonts/Groteska-Bold.cyrillic.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0400-04FF,U+0500-052F,U+2DE0-2DFF,U+A640-A69F;
}
@font-face {
  font-family: 'Andale Mono';
  src: url('fonts/AndaleMono.latin.woff2') format('woff2'),
       url('fonts/AndaleMono.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20A0-20BF,U+2122,U+2190-2193,U+2022,U+00B7,U+0100-024F;
}
@font-face {
  font-family: 'Andale Mono';
  src: url('fonts/AndaleMono.cyrillic.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0400-04FF,U+0500-052F,U+2DE0-2DFF,U+A640-A69F;
}

/* ---------- Tokens ---------- */
:root {
  --obsidian: #1C1A15;
  --obsidian-2: #23211A;
  --obsidian-3: #2A2820;
  --ivory: #EAE8DA;
  --ivory-dim: rgba(234, 232, 218, 0.92);
  --ivory-faint: rgba(234, 232, 218, 0.8);
  --gold: #AB7944;
  --gold-bright: #C99461;
  --olive: #756440;
  --sage: #8EA5A2;
  --sage-bright: #A9BEBA;
  --sage-sky: #C3D6D3;
  --sage-deep: #5E7873;
  --sage-wash: rgba(142, 165, 162, 0.12);
  --hairline-sage: rgba(142, 165, 162, 0.32);
  --hairline: rgba(171, 121, 68, 0.28);
  --hairline-ivory: rgba(23, 22, 18, 0.16);
  --serif: 'Playfair Display', Georgia, serif;
  --grot: 'Groteska', 'DM Sans', sans-serif;
  --sans: 'DM Sans', 'Helvetica Neue', sans-serif;
  --mono: 'Andale Mono', 'Courier New', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1280px;
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--sage); color: var(--obsidian); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

.section { padding: clamp(96px, 12vw, 176px) 0; position: relative; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 15.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.eyebrow__slash { color: var(--sage-bright); }
.section--ivory .eyebrow__slash { color: var(--sage-deep); }

.section--ivory .eyebrow { color: rgba(23, 22, 18, 0.88); }

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.section__title span, .section__title em { display: block; }
.section__title em { font-style: italic; font-weight: 400; color: var(--sage-sky); }
.section--ivory .section__title em { color: var(--sage-deep); }

.section__sub {
  margin-top: 28px;
  max-width: 52ch;
  font-size: clamp(19px, 1.6vw, 22px);
  color: var(--ivory-dim);
}
.section--ivory .section__sub { color: rgba(23, 22, 18, 0.78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 20px 38px;
  border: 1px solid var(--gold);
  transition: all 0.45s var(--ease);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn--gold { background: var(--gold); color: var(--ivory); }
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(171, 121, 68, 0.55); }
.btn--ghost { color: var(--ivory); border-color: rgba(142, 165, 162, 0.45); }
.btn--ghost:hover { border-color: var(--sage-sky); color: var(--sage-sky); background: var(--sage-wash); transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(142, 165, 162, 0.4); }
.btn--nav { padding: 13px 24px; font-size: 13.5px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--obsidian);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
/* `visibility` transitions discretely — it only flips to hidden once the 0.9s
   fade finishes, so without `pointer-events: none` the invisible overlay sits
   at z-index 3000 and swallows every click and tap for most of a second after
   the site looks ready. */
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__mark { width: 64px; animation: markIn 0.9s cubic-bezier(.16,1,.3,1) both, markGlow 2.6s ease-in-out 1.6s infinite; }
.preloader__tag { animation: preFadeUp 0.9s ease 1.1s both; }
.preloader__enter {
  margin-top: 6px; min-height: 44px; padding: 14px 34px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-bright); background: transparent; border: 1px solid rgba(201,148,97,0.55); cursor: pointer;
  animation: preFadeUp 0.8s ease both; transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.preloader__enter:hover, .preloader__enter:focus-visible { background: var(--gold); color: var(--obsidian); border-color: var(--gold); outline: none; }
.preloader.is-entering .preloader__mark { animation: markFlare 0.8s ease forwards; }
@keyframes markIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes markGlow { 0%, 100% { filter: drop-shadow(0 0 6px rgba(201,148,97,0.25)); } 50% { filter: drop-shadow(0 0 18px rgba(201,148,97,0.65)); } }
@keyframes markFlare { to { filter: drop-shadow(0 0 28px rgba(241,217,181,0.9)); transform: scale(1.04); } }
@keyframes preFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .preloader__mark, .preloader__tag, .preloader__enter { animation: none; } }
.preloader__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--sage-bright);
  letter-spacing: 0.04em;
}
@keyframes markPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.96); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.5s var(--ease);
  padding: 26px 0;
}
.nav.is-scrolled {
  background: rgba(21, 24, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--hairline-sage);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__wordmark { height: 20px; width: auto; }
.nav__links { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav__links a {
  font-family: var(--grot);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--ivory-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--sage-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover { color: var(--ivory); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__right { display: flex; align-items: center; gap: 24px; }

.lang { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 14.5px; letter-spacing: 0.1em; }
.lang__sep { color: var(--ivory-faint); }
.lang__btn { color: var(--ivory-faint); transition: color 0.3s; padding: 4px 2px; }
.lang__btn:hover { color: var(--ivory); }
.lang__btn.is-active { color: var(--sage-sky); }

.nav__burger { display: none; flex-direction: column; gap: 7px; padding: 8px 4px; }
.nav__burger span { width: 26px; height: 1px; background: var(--ivory); transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav__burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(23, 22, 18, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__links { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.menu__links a {
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 40px);
  color: var(--ivory);
  transition: color 0.3s;
}
.menu__links a:hover { color: var(--sage-sky); }
.menu__tag { font-family: var(--serif); font-style: italic; color: var(--sage); font-size: 17px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 82% 18%, rgba(142, 165, 162, 0.18), transparent 60%),
    radial-gradient(1100px 760px at 8% 88%, rgba(142, 165, 162, 0.38), transparent 58%),
    linear-gradient(to bottom, rgba(142, 165, 162, 0.12), transparent 30%),
    var(--obsidian);
  padding-top: 120px;
}
.hero__mark {
  position: absolute;
  right: -6vw;
  top: 50%;
  transform: translateY(-54%);
  width: clamp(320px, 42vw, 660px);
  opacity: 0.1;
  animation: heroMarkDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero__mark svg { width: 100%; height: auto; }
.hero__mark polygon { fill: var(--sage); }
@keyframes heroMarkDrift {
  from { transform: translateY(-56%) translateX(0); }
  to { transform: translateY(-50%) translateX(-18px); }
}

.hero__content { position: relative; z-index: 2; }
.hero__eyebrow { animation: riseIn 1.1s var(--ease) 0.25s both; }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(46px, 7.2vw, 104px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__line { display: block; animation: riseIn 1.2s var(--ease) 0.45s both; }
.hero__line--italic {
  font-style: italic;
  font-weight: 400;
  color: var(--sage-sky);
  animation-delay: 0.62s;
}
.hero__sub {
  margin-top: 36px;
  max-width: 52ch;
  font-size: clamp(19px, 1.7vw, 23px);
  color: var(--ivory-dim);
  animation: riseIn 1.2s var(--ease) 0.85s both;
}
.hero__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 52px;
  animation: riseIn 1.2s var(--ease) 1.05s both;
}

.hero__stats {
  display: flex;
  align-items: flex-end;
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(64px, 9vh, 120px);
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--hairline-sage);
  position: relative;
  z-index: 2;
  animation: fadeIn 1.4s var(--ease) 1.35s both;
}
.hero__stat { display: flex; flex-direction: column; gap: 8px; }
.hero__stat-value {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--sage-sky);
}
.hero__stat-label {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.hero__scroll {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  transition: color 0.3s;
}
.hero__scroll:hover { color: var(--sage-sky); }
.hero__scroll i {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--sage-bright), transparent);
  display: block;
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.55); opacity: 0.5; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }
.reveal[data-delay="7"] { transition-delay: 0.7s; }

/* ---------- Philosophy (ivory) ---------- */
.section--ivory {
  background:
    radial-gradient(1100px 680px at 88% 12%, rgba(142, 165, 162, 0.22), transparent 60%),
    var(--ivory);
  color: var(--obsidian);
}
.philosophy__quote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.16;
  max-width: 24ch;
}
.philosophy__quote span, .philosophy__quote em { display: block; }
.philosophy__quote em { font-style: italic; font-weight: 400; color: var(--sage-deep); }

.philosophy__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 120px);
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--hairline-ivory);
}
.philosophy__body {
  font-size: clamp(20px, 1.65vw, 23px);
  color: rgba(23, 22, 18, 0.88);
  max-width: 56ch;
}
.philosophy__words { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; align-content: start; }
.philosophy__words li { display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--hairline-ivory); padding-bottom: 14px; }
.philosophy__words span { font-family: var(--mono); font-size: 14px; color: var(--sage-deep); letter-spacing: 0.1em; }
.philosophy__words b { font-family: var(--grot); font-weight: 500; font-size: clamp(16px, 1.5vw, 20px); letter-spacing: 0.02em; }

/* ---------- Audiences ---------- */
.audiences {
  background:
    radial-gradient(1000px 620px at 92% 6%, rgba(142, 165, 162, 0.2), transparent 60%),
    radial-gradient(800px 500px at 2% 96%, rgba(142, 165, 162, 0.1), transparent 55%),
    var(--obsidian);
}
.audiences__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(56px, 7vw, 88px);
}
.card {
  border: 1px solid rgba(234, 232, 218, 0.1);
  background: linear-gradient(160deg, var(--obsidian-2), var(--obsidian));
  padding: clamp(36px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover {
  border-color: var(--sage);
  background: linear-gradient(160deg, #1c211f, var(--obsidian));
  transform: translateY(-6px);
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.8), 0 0 60px -24px rgba(142, 165, 162, 0.35);
}
.card__num { font-family: var(--mono); font-size: 13px; color: var(--sage); letter-spacing: 0.2em; }
.card__kicker {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-bright);
  margin-top: 34px;
}
.card__title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.18;
  margin-top: 14px;
  color: var(--ivory);
}
.card__body { margin-top: 20px; color: var(--ivory-dim); font-size: 19px; }
.card__list { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.card__list li {
  font-family: var(--grot);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--ivory-dim);
  padding-left: 26px;
  position: relative;
}
.card__list li::before {
  content: '/';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-family: var(--mono);
}
.card__cta {
  margin-top: auto;
  padding-top: 40px;
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.card__cta::after { content: '\2192'; transition: transform 0.4s var(--ease); }
.card__cta:hover::after { transform: translateX(6px); }

/* ---------- Destinations / Map ---------- */
.section--deep {
  background:
    radial-gradient(1200px 700px at 12% 0%, rgba(142, 165, 162, 0.18), transparent 55%),
    radial-gradient(900px 560px at 96% 88%, rgba(142, 165, 162, 0.09), transparent 60%),
    #1A1814;
}
.section--deep .section__title em { color: var(--sage-sky); }
.destinations__layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 0;
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--hairline-sage);
  border-bottom: 1px solid var(--hairline-sage);
}
.destinations__list-wrap {
  border-right: 1px solid var(--hairline-sage);
  max-height: 640px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--olive) transparent;
}
.destinations__hint {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  padding: 24px clamp(24px, 3vw, 40px);
  border-bottom: 1px solid rgba(234, 232, 218, 0.07);
}
.destinations__list { list-style: none; }
.dest-group {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage-bright);
  padding: 22px clamp(24px, 3vw, 40px) 12px;
  border-bottom: 1px solid rgba(234, 232, 218, 0.07);
  background: var(--sage-wash);
}
.dest-item__price {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}
.dest-item--prop .dest-item__tag { color: var(--ivory-dim); font-size: 15.5px; }
.dest-item__projects {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.dest-item {
  padding: 22px clamp(24px, 3vw, 40px);
  border-bottom: 1px solid rgba(234, 232, 218, 0.07);
  cursor: pointer;
  transition: background 0.4s var(--ease);
  position: relative;
}
.dest-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--sage-bright);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease);
}
.dest-item:hover, .dest-item.is-active { background: rgba(142, 165, 162, 0.08); }
.dest-item.is-active::before { transform: scaleY(1); }
.dest-item__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.dest-item__name { font-family: var(--serif); font-size: 24px; color: var(--ivory); }
.dest-item__country { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-faint); white-space: nowrap; }
.dest-item__tag { margin-top: 6px; font-family: var(--grot); font-weight: 300; font-size: 17px; color: var(--sage-bright); letter-spacing: 0.03em; }

.destinations__map-wrap { position: relative; min-height: 640px; }
.destinations__map { position: absolute; inset: 0; background: #1A1814; z-index: 1; }
.destinations__map-fallback[hidden] { display: none; }
/* Globe arrival — sits over the Leaflet map, then fades into it */
.globe-intro { position: absolute; inset: 0; z-index: 900; background: #0E0D0B; transition: opacity 0.9s var(--ease); }
.globe-intro.is-out { opacity: 0; pointer-events: none; }
.globe-intro .maplibregl-ctrl-attrib, .globe-intro .maplibregl-ctrl-logo { display: none; }
.globe-intro__skip { position: absolute; right: 18px; bottom: 18px; z-index: 901; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright); background: rgba(28,26,21,0.85); border: 1px solid var(--hairline); padding: 12px 18px; cursor: pointer; }
.globe-intro__skip:focus-visible { outline: 1px solid var(--ivory); }
@media (prefers-reduced-motion: reduce) { .globe-intro { transition: none; } }
.destinations__map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  z-index: 2;
  background: radial-gradient(600px 400px at 50% 50%, rgba(117, 100, 64, 0.12), transparent 70%);
  text-align: center;
  padding: 40px;
}

/* Two-finger hint — appears only when a single finger tries to drag the map.
   Sits above the tiles but ignores input, so it never eats a tap. */
.map-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
  background: rgba(28, 26, 21, 0.52);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  text-align: center;
  padding: 40px 32px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.map-hint.is-on { opacity: 1; }
html[data-theme="light"] .map-hint { background: rgba(24, 22, 18, 0.46); color: #F3F1E6; }

@media (prefers-reduced-motion: reduce) {
  .map-hint { transition: none; }
}

/* Leaflet theme */
.leaflet-container { background: #1A1814 !important; font-family: var(--sans) !important; }
/* OSM tiles turned into a warm dark map (dark theme is the default). */
.leaflet-tile { filter: invert(1) hue-rotate(180deg) grayscale(1) brightness(0.92) contrast(0.88) sepia(0.14); }
.leaflet-control-zoom a {
  background: var(--obsidian-2) !important;
  color: var(--ivory) !important;
  border: 1px solid rgba(234, 232, 218, 0.2) !important;
  border-radius: 0 !important;
  width: 42px !important;
  height: 42px !important;
  line-height: 42px !important;
  font-size: 21px !important;
}
.leaflet-control-zoom a:hover { background: var(--obsidian-3) !important; color: var(--gold-bright) !important; }
.leaflet-control-attribution {
  background: rgba(23, 22, 18, 0.75) !important;
  color: rgba(234, 232, 218, 0.78) !important;
  font-size: 12.5px !important;
}
.leaflet-control-attribution a { color: rgba(234, 232, 218, 0.72) !important; }

.ownext-pin { position: relative; }
.ownext-pin__dot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 11px; height: 11px;
  background: var(--sage-bright);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(142, 165, 162, 0.85);
}
.ownext-pin__ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 11px; height: 11px;
  border: 1px solid var(--sage-bright);
  border-radius: 50%;
  animation: pinPulse 2.4s ease-out infinite;
}
@keyframes pinPulse {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(4.2); opacity: 0; }
}

/* property markers — gold diamonds */
.ownext-pin__diamond {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px; height: 12px;
  background: var(--gold);
  border: 1px solid var(--ivory);
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(171, 121, 68, 0.9);
}
.ownext-pin__ring--prop {
  border-color: var(--gold-bright);
  animation-duration: 1.9s;
}

.leaflet-popup-content-wrapper {
  background: var(--obsidian-2) !important;
  color: var(--ivory) !important;
  border-radius: 0 !important;
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85) !important;
}
.leaflet-popup-tip { background: var(--obsidian-2) !important; border: 1px solid var(--hairline); }
.leaflet-popup-content { margin: 20px 24px !important; }
.leaflet-popup-close-button { color: var(--ivory-faint) !important; }
.map-pop__name { font-family: var(--serif); font-size: 24px; color: var(--ivory); }
.map-pop__country { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright); margin-top: 4px; }
.map-pop__desc { font-family: var(--sans); font-weight: 400; font-size: 17px; color: var(--ivory-dim); margin-top: 10px; line-height: 1.6; max-width: 260px; }
.map-pop__price { font-family: var(--mono); font-size: 16px; letter-spacing: 0.06em; color: var(--gold-bright); margin-top: 12px; }
.map-pop__meta { font-family: var(--grot); font-weight: 300; font-size: 15.5px; color: var(--sage-bright); margin-top: 6px; letter-spacing: 0.03em; }
.map-pop__cta {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright) !important;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 3px;
}
.map-pop__projects {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline-sage);
}
.map-pop__projects-label {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-bottom: 10px;
}
.map-pop__proj {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(234, 232, 218, 0.08);
  transition: color 0.3s;
}
.map-pop__proj:last-child { border-bottom: none; }
.map-pop__proj-name {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ivory) !important;
  transition: color 0.3s;
}
.map-pop__proj:hover .map-pop__proj-name { color: var(--gold-bright) !important; }
.map-pop__proj-price {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.05em;
  color: var(--gold-bright) !important;
  white-space: nowrap;
}

/* ---------- Property sheet modal ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 48px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.sheet.is-open { opacity: 1; visibility: visible; }
.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 20, 16, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sheet__panel {
  position: relative;
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  background: linear-gradient(165deg, var(--obsidian-2), var(--obsidian));
  border: 1px solid var(--hairline);
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.9);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--olive) transparent;
  transform: translateY(24px) scale(0.985);
  transition: transform 0.6s var(--ease);
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__close {
  position: absolute;
  top: 14px; right: 18px;
  z-index: 3;
  font-size: 36px;
  line-height: 1;
  color: var(--ivory-dim);
  transition: color 0.3s, transform 0.4s var(--ease);
  padding: 6px 10px;
}
.sheet__close:hover { color: var(--gold-bright); transform: rotate(90deg); }

.sheet__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.sheet__media {
  border-right: 1px solid var(--hairline);
  padding: clamp(24px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #1A1814;
}
.sheet__figure img {
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(234, 232, 218, 0.08);
}
.sheet__figure video {
  width: 100%;
  display: block;
  border: 1px solid rgba(234, 232, 218, 0.08);
  background: #000;
}
.sheet__figure--hero img { aspect-ratio: 4 / 3; }
.sheet__streetview iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(234, 232, 218, 0.08);
  display: block;
  background: #0d0c0a;
}
.sheet__streetview figcaption a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(171, 121, 68, 0.5);
}
.sheet__streetview figcaption a:hover { color: var(--ivory); }
.sheet__figure figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.sheet__placeholder {
  flex: 1;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  border: 1px solid rgba(234, 232, 218, 0.08);
}
.sheet__placeholder svg { width: 64px; opacity: 0.5; }
.sheet__placeholder svg polygon { fill: var(--gold); }
.sheet__placeholder span {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}

.sheet__info { padding: clamp(28px, 3.6vw, 56px); display: flex; flex-direction: column; }
.sheet__chip {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sage-bright);
  border: 1px solid var(--hairline-sage);
  padding: 9px 16px;
}
.sheet__location {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.sheet__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
  color: var(--ivory);
  margin-top: 12px;
}
.sheet__price {
  margin-top: 24px;
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.sheet__price span {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.sheet__price b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 27px);
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}
.sheet__highlight {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  border: 1px solid var(--hairline);
  background: rgba(171, 121, 68, 0.07);
  padding: 12px 16px;
}
.sheet__highlight span {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.sheet__highlight b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 19px; color: var(--sage); }

.sheet__specs {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  border-top: 1px solid rgba(234, 232, 218, 0.1);
  padding-top: 26px;
}
.sheet__spec dt {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-bright);
}
.sheet__spec dd { margin-top: 7px; font-family: var(--grot); font-weight: 300; font-size: 18px; color: var(--ivory); line-height: 1.55; }

.sheet__desc { margin-top: 26px; font-size: 18px; color: var(--ivory-dim); }

.sheet__advisor {
  margin-top: 30px;
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sheet__advisor-label {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.sheet__advisor-name { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--ivory); margin-top: 6px; }
.sheet__advisor-meta { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; color: var(--ivory-dim); }
.sheet__advisor-wa { color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid rgba(171,121,68,.5); }
.sheet__advisor-wa:hover { color: var(--ivory); }

.sheet__actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.sheet__tag { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--gold-bright); }

@media (max-width: 880px) {
  .sheet__body { grid-template-columns: 1fr; }
  .sheet__media { border-right: none; border-bottom: 1px solid var(--hairline); }
  .sheet__placeholder { min-height: 200px; }
}

/* ---------- Approach ---------- */
.approach__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 44px);
  margin-top: clamp(64px, 8vw, 104px);
}
.step { border-top: 1px solid rgba(23, 22, 18, 0.28); padding-top: 28px; }
.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(40px, 4vw, 58px);
  color: var(--sage-deep);
  line-height: 1;
}
.step__name {
  font-family: var(--grot);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 22px;
}
.step__body { margin-top: 14px; font-size: 18px; color: rgba(23, 22, 18, 0.85); }

/* ---------- Brand wallpaper (tiled isotipo) ---------- */
.hero::before, .contact::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 52%;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='350' height='512' viewBox='0 0 350 512'%3E%3Cg fill='%23756440'%3E%3Cg transform='translate(0,0)'%3E%3Cpolygon points='174.76 81.54 174.76 255.25 167.98 248.18 73.24 149.34 72.23 148.25 60.26 135.8 32.98 107.37 31.88 106.24 31.88 78.44 154.61 205.76 154.61 81.54 174.76 81.54'/%3E%3Cpolygon points='0 173.7 0 0 6.78 7.06 101.52 105.91 102.53 106.99 114.5 119.45 141.78 147.88 142.88 149.01 142.88 176.8 20.16 49.49 20.16 173.7 0 173.7'/%3E%3C/g%3E%3Cg transform='translate(0,256)'%3E%3Cpolygon points='174.76 81.54 174.76 255.25 167.98 248.18 73.24 149.34 72.23 148.25 60.26 135.8 32.98 107.37 31.88 106.24 31.88 78.44 154.61 205.76 154.61 81.54 174.76 81.54'/%3E%3Cpolygon points='0 173.7 0 0 6.78 7.06 101.52 105.91 102.53 106.99 114.5 119.45 141.78 147.88 142.88 149.01 142.88 176.8 20.16 49.49 20.16 173.7 0 173.7'/%3E%3C/g%3E%3Cg transform='translate(175,-128)'%3E%3Cpolygon points='174.76 81.54 174.76 255.25 167.98 248.18 73.24 149.34 72.23 148.25 60.26 135.8 32.98 107.37 31.88 106.24 31.88 78.44 154.61 205.76 154.61 81.54 174.76 81.54'/%3E%3Cpolygon points='0 173.7 0 0 6.78 7.06 101.52 105.91 102.53 106.99 114.5 119.45 141.78 147.88 142.88 149.01 142.88 176.8 20.16 49.49 20.16 173.7 0 173.7'/%3E%3C/g%3E%3Cg transform='translate(175,128)'%3E%3Cpolygon points='174.76 81.54 174.76 255.25 167.98 248.18 73.24 149.34 72.23 148.25 60.26 135.8 32.98 107.37 31.88 106.24 31.88 78.44 154.61 205.76 154.61 81.54 174.76 81.54'/%3E%3Cpolygon points='0 173.7 0 0 6.78 7.06 101.52 105.91 102.53 106.99 114.5 119.45 141.78 147.88 142.88 149.01 142.88 176.8 20.16 49.49 20.16 173.7 0 173.7'/%3E%3C/g%3E%3Cg transform='translate(175,384)'%3E%3Cpolygon points='174.76 81.54 174.76 255.25 167.98 248.18 73.24 149.34 72.23 148.25 60.26 135.8 32.98 107.37 31.88 106.24 31.88 78.44 154.61 205.76 154.61 81.54 174.76 81.54'/%3E%3Cpolygon points='0 173.7 0 0 6.78 7.06 101.52 105.91 102.53 106.99 114.5 119.45 141.78 147.88 142.88 149.01 142.88 176.8 20.16 49.49 20.16 173.7 0 173.7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 236px auto;
  background-position: bottom center;
  opacity: 0.34;
  -webkit-mask-image: linear-gradient(to top, black 30%, transparent 96%);
  mask-image: linear-gradient(to top, black 30%, transparent 96%);
}
.contact__grid { position: relative; z-index: 2; }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(1000px 640px at 4% 10%, rgba(142, 165, 162, 0.2), transparent 58%),
    radial-gradient(800px 520px at 98% 90%, rgba(142, 165, 162, 0.1), transparent 60%),
    var(--obsidian);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(56px, 7vw, 120px);
  align-items: start;
}
.contact__meta { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 26px; }
.contact__meta div { border-top: 1px solid rgba(234, 232, 218, 0.1); padding-top: 18px; }
.contact__meta dt {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.contact__meta dd { margin-top: 6px; font-family: var(--grot); font-weight: 300; font-size: 19.5px; }
.contact__meta a { color: var(--gold-bright); font-weight: 500; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.contact__meta a:hover { border-color: var(--gold-bright); }

.form { display: flex; flex-direction: column; gap: 26px; border: 1px solid var(--hairline-sage); padding: clamp(32px, 4vw, 56px); background: linear-gradient(165deg, #1c211f, var(--obsidian)); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field__label {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.field input, .field select, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(234, 232, 218, 0.22);
  color: var(--ivory);
  font-family: var(--grot);
  font-weight: 300;
  font-size: 19px;
  padding: 13px 2px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.4s;
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--obsidian-2); color: var(--ivory); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sage-bright); }
.form__submit { align-self: flex-start; margin-top: 8px; }
.form__success { font-family: var(--mono); font-size: 15px; letter-spacing: 0.12em; color: var(--sage-bright); line-height: 1.8; }

/* ---------- Footer ---------- */
.footer {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(142, 165, 162, 0.09), transparent 65%),
    #16140F;
  border-top: 1px solid var(--hairline-sage);
  padding: clamp(56px, 7vw, 96px) 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.footer__wordmark { height: 22px; width: auto; }
.footer__tag { font-family: var(--serif); font-style: italic; color: var(--sage-bright); margin-top: 18px; font-size: 17px; }
.footer__nav { display: flex; flex-direction: column; gap: 14px; }
.footer__nav a {
  font-family: var(--grot);
  font-weight: 300;
  font-size: 17px;
  color: var(--ivory-dim);
  transition: color 0.3s;
}
.footer__nav a:hover { color: var(--sage-bright); }
.footer__seal img { width: 92px; opacity: 0.85; }
.footer__legal {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 28px;
  border-top: 1px solid rgba(234, 232, 218, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(234, 232, 218, 0.88);
  line-height: 1.8;
}
.footer__legal span:last-child { max-width: 62ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .btn--nav { display: none; }
  .nav__burger { display: flex; }
  .destinations__layout { grid-template-columns: 1fr; }
  .destinations__list-wrap { border-right: none; border-bottom: 1px solid var(--hairline); max-height: 320px; }
  .destinations__map-wrap { min-height: 460px; }
  .approach__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .audiences__grid { grid-template-columns: 1fr; }
  .philosophy__grid { grid-template-columns: 1fr; }
  .philosophy__words { grid-template-columns: 1fr 1fr; }
  .approach__grid { grid-template-columns: 1fr; gap: 40px; }
  .form__row { grid-template-columns: 1fr; }
  .hero__stats { flex-wrap: wrap; gap: 28px; }
  .hero__scroll { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__seal { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Social sign-up (public contact) ---------- */
.signup { margin-bottom: 30px; }
.signup__label { display:block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-faint); margin-bottom: 12px; }
.signup__btns { display:flex; gap: 12px; flex-wrap: wrap; }
.btn--social { display:inline-flex; align-items:center; justify-content:center; gap:10px; flex:1 1 0; min-width:200px; padding:13px 18px; border-radius:3px; background: transparent; font-family: var(--grot); font-weight:500; font-size:14px; letter-spacing:0.02em; color: var(--ivory); cursor:pointer; border:1px solid var(--hairline); transition: background .25s var(--ease), border-color .25s var(--ease); }
.btn--social svg { display:block; flex:none; }
.btn--social span { color: var(--ivory); }
.btn--google { border-color: rgba(234,232,218,0.28); }
.btn--google:hover { background: rgba(234,232,218,0.06); border-color: rgba(234,232,218,0.5); }
.btn--facebook { color:#6d97d6; border-color: rgba(109,151,214,0.5); }
.btn--facebook:hover { background: rgba(109,151,214,0.12); border-color:#6d97d6; }
.signup__note { margin-top:14px; font-family: var(--grot); font-size:14.5px; color: var(--sage-bright); }
.signup__or { display:flex; align-items:center; gap:12px; margin:24px 0 4px; color: var(--ivory-faint); font-family: var(--mono); font-size:10px; letter-spacing:0.2em; text-transform:uppercase; }
.signup__or::before, .signup__or::after { content:""; flex:1; height:1px; background: rgba(234,232,218,.12); }
/* Stacking the sign-up buttons flips the flex main axis to vertical, so the
   `flex: 1 1 0` written for the row layout starts sizing their HEIGHT — it
   crushed both buttons to 28px and clipped their labels. Reset it. */
@media (max-width: 560px){
  .signup__btns { flex-direction: column; }
  .btn--social { width: 100%; flex: 0 0 auto; min-width: 0; }
}

/* ---------- Aligned lot listings (property sheet) ---------- */
.lotlist {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 20px;
  row-gap: 8px;
  align-items: baseline;
  margin-top: 2px;
}
.lotlist__name {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-bright);
  white-space: nowrap;
}
.lotlist__val {
  font-family: var(--grot);
  font-weight: 300;
  font-size: 18px;
  color: var(--ivory);
  line-height: 1.45;
}
@media (max-width: 560px) {
  .lotlist { grid-template-columns: 1fr; row-gap: 2px; }
  .lotlist__name { margin-top: 8px; }
}

html, body { transition: background-color .35s var(--ease), color .35s var(--ease); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-right: 4px;
  background: transparent; border: 1px solid var(--hairline); border-radius: 50%;
  color: var(--gold-bright); cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.theme-toggle:hover { background: rgba(171,121,68,.12); border-color: var(--gold-bright); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.theme-toggle__moon { fill: currentColor; stroke: none; }
/* show moon in dark (click -> go light), sun in light (click -> go dark) */
.theme-toggle__sun { display: none; }
@media (max-width: 900px) { .theme-toggle { margin-right: 2px; } }

/* ---------- Download-ad button (property sheet) ---------- */
.btn--flyer{display:inline-flex;align-items:center;gap:8px;background:transparent;border:1px solid var(--hairline);
  color:var(--gold-bright);font-family:var(--grot);font-weight:500;font-size:14px;letter-spacing:.02em;
  padding:13px 20px;border-radius:3px;cursor:pointer;transition:background .25s var(--ease),border-color .25s var(--ease);}
.btn--flyer::before{content:"\2193";font-size:15px;}
.btn--flyer:hover{background:rgba(171,121,68,.12);border-color:var(--gold-bright);color:var(--ivory);}
.btn--flyer:disabled{opacity:.5;cursor:default;}

/* ---------- Wordmark: ivory letters vanish on a light nav ---------- */
.nav__wordmark--light { display: none; }

/* ---------- Form fields overflowing their box ----------
   .form__row is a grid; grid children default to min-width:auto, so long
   values (emails, "Central & South America") push past the panel. */
.field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; min-width: 0; }
.form { overflow: hidden; }

/* ============================================================
   LIGHT THEME v6 — "Ivory Stone" (2026-10-10).
   Built only from the identity manual: Ivory Stone #EAE8DA as the
   light colour (the brand never uses white), Aureum Gold as a
   metallic gradient on buttons. The header, the Destinations map
   section, the contact form and the footer stay Obsidian (dark map),
   so light mode keeps the weight of the dark pages.
   Dark mode remains the default.
   ============================================================ */
html[data-theme="light"] {
  --chevron: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36'><path d='M0,18 L9,9 L18,18 L27,9 L36,18 M0,36 L9,27 L18,36 L27,27 L36,36' fill='none' stroke='%23AB7944' stroke-opacity='0.16' stroke-width='1'/></svg>");
  --obsidian: #EAE8DA;             /* Ivory Stone — page ground */
  --obsidian-2: #F1EFE5;           /* lighter ivory for panels and cards */
  --obsidian-3: #E2DFCF;
  --ivory: #171612;                /* Obsidian Black — text */
  --ivory-dim: rgba(23, 22, 18, 0.86);
  --ivory-faint: rgba(23, 22, 18, 0.62);
  --gold: #AB7944;                 /* Aureum Gold */
  --gold-bright: #7A5424;          /* deeper gold for text, readable on ivory */
  --olive: #756440;                /* Olive Ash */
  --sage: #5E7873;
  --sage-bright: #4E6661;
  --sage-sky: #4E6661;             /* italic lines: deep Horizon Sage */
  --sage-deep: #5E7873;
  --sage-wash: rgba(142, 165, 162, 0.16);
  --hairline-sage: rgba(94, 120, 115, 0.30);
  --hairline: rgba(171, 121, 68, 0.30);
  --hairline-ivory: rgba(23, 22, 18, 0.14);
}
html[data-theme="light"] body { background: #EAE8DA; }
html, body { transition: background-color .35s var(--ease), color .35s var(--ease); }
html[data-theme="light"] .hero {
  padding-top: 176px; /* clears the solid black header (v7) */
  justify-content: safe center; /* never push the eyebrow up under the header */
  background:
    radial-gradient(900px 560px at 82% 14%, rgba(171, 121, 68, 0.14), transparent 62%),
    radial-gradient(800px 520px at 6% 92%, rgba(142, 165, 162, 0.22), transparent 60%),
    #EAE8DA;
}

/* ---- sections: Ivory Stone with the chevron, alternating a touch lighter ---- */
html[data-theme="light"] .philosophy.section--ivory {
  --ivory: #F0EEE4;
  --obsidian: #171612;
  background: radial-gradient(1000px 600px at 88% 10%, rgba(171, 121, 68, 0.10), transparent 60%), #F0EEE4;
  color: #171612;
}
html[data-theme="light"] .audiences.section { background: #EAE8DA; }
html[data-theme="light"] .approach.section--ivory {
  --ivory: #F0EEE4;
  --obsidian: #171612;
  background: radial-gradient(1000px 600px at 12% 10%, rgba(142, 165, 162, 0.16), transparent 60%), #F0EEE4;
  color: #171612;
}
html[data-theme="light"] .contact.section { background: radial-gradient(1000px 620px at 10% 10%, rgba(171, 121, 68, 0.10), transparent 60%), #EAE8DA; }

/* ---- footer AND contact form stay Obsidian (brand anchor) ---- */
html[data-theme="light"] .footer,
html[data-theme="light"] .form {
  --ivory: #EAE8DA; --ivory-dim: rgba(234,232,218,.92); --ivory-faint: rgba(234,232,218,.8);
  --gold: #AB7944; --gold-bright: #C99461; --olive: #756440;
  --sage: #8EA5A2; --sage-bright: #A9BEBA; --sage-sky: #C3D6D3; --sage-deep: #5E7873;
  --obsidian: #1C1A15; --obsidian-2: #23211A; --obsidian-3: #2A2820;
  --hairline: rgba(171,121,68,.28); --hairline-sage: rgba(142,165,162,.32);
}
html[data-theme="light"] .form {
  background: linear-gradient(165deg, #1c211f, #16150F);
  border-color: rgba(142, 165, 162, 0.30);
  box-shadow: 0 60px 120px -60px rgba(20, 18, 12, 0.45);
  color: #EAE8DA;
}
html[data-theme="light"] .form .field input,
html[data-theme="light"] .form .field select,
html[data-theme="light"] .form .field textarea { color: #EAE8DA; }
html[data-theme="light"] .form .field select option { background: #23211A; color: #EAE8DA; }

/* ---- accents ---- */
html[data-theme="light"] .eyebrow { color: #7A5424; }
html[data-theme="light"] .section--ivory .section__sub { color: rgba(23, 22, 18, 0.74); }
html[data-theme="light"] .section--ivory .section__title em,
html[data-theme="light"] .section--deep .section__title em { color: var(--sage-sky); }
html[data-theme="light"] .eyebrow__slash { color: var(--gold); }

/* ---- nav / menu / wordmark ---- */
/* the header stays Obsidian in light mode */
html[data-theme="light"] .nav,
html[data-theme="light"] .menu {
  --ivory: #EAE8DA; --ivory-dim: rgba(234,232,218,.92); --ivory-faint: rgba(234,232,218,.8);
  --gold: #AB7944; --gold-bright: #C99461;
  --sage: #8EA5A2; --sage-bright: #A9BEBA; --sage-sky: #C3D6D3;
  --hairline: rgba(171,121,68,.28); --hairline-sage: rgba(142,165,162,.32);
  color: #EAE8DA;
}
html[data-theme="light"] .nav { background: #171612; box-shadow: 0 1px 0 rgba(171, 121, 68, 0.25); }
html[data-theme="light"] .nav.is-scrolled { background: rgba(23, 22, 18, 0.94); box-shadow: 0 1px 0 rgba(171, 121, 68, 0.28); }
html[data-theme="light"] .menu { background: rgba(23, 22, 18, 0.98); }
html[data-theme="light"] .nav__wordmark--dark { display: block; }
html[data-theme="light"] .nav__wordmark--light { display: none; }

/* ---- Aureum Gold as metal ---- */
html[data-theme="light"] .btn--gold {
  color: #F7EFE2;
  border-color: transparent;
  background: linear-gradient(135deg, #D9AE72 0%, #AB7944 50%, #8A6130 100%);
  box-shadow: 0 12px 26px -14px rgba(122, 84, 36, 0.7);
  text-shadow: 0 1px 1px rgba(80, 50, 15, 0.35);
}
html[data-theme="light"] .btn--gold:hover {
  background: linear-gradient(135deg, #E3BD84 0%, #B8874F 50%, #946A36 100%);
  border-color: transparent;
  box-shadow: 0 18px 36px -16px rgba(122, 84, 36, 0.75);
}
html[data-theme="light"] .btn--ghost { color: #171612; border-color: rgba(94, 120, 115, 0.5); }
html[data-theme="light"] .btn--ghost:hover { color: #4E6661; border-color: #4E6661; background: rgba(142, 165, 162, 0.16); }
html[data-theme="light"] .preloader { background: radial-gradient(600px 400px at 50% 40%, rgba(171, 121, 68, 0.16), transparent 70%), #EAE8DA; }
html[data-theme="light"] .preloader__enter { color: #7A5424; border-color: rgba(171, 121, 68, 0.55); }
html[data-theme="light"] .preloader__enter:hover,
html[data-theme="light"] .preloader__enter:focus-visible { background: linear-gradient(135deg, #D9AE72, #AB7944 50%, #8A6130); color: #F7EFE2; border-color: transparent; }

/* ---- the Destinations section stays Obsidian with the dark map ---- */
html[data-theme="light"] .destinations.section--deep {
  --ivory: #EAE8DA; --ivory-dim: rgba(234,232,218,.92); --ivory-faint: rgba(234,232,218,.8);
  --gold: #AB7944; --gold-bright: #C99461; --olive: #756440;
  --sage: #8EA5A2; --sage-bright: #A9BEBA; --sage-sky: #C3D6D3; --sage-deep: #5E7873; --sage-wash: rgba(142,165,162,.12);
  --obsidian: #1C1A15; --obsidian-2: #23211A; --obsidian-3: #2A2820;
  --hairline: rgba(171,121,68,.28); --hairline-sage: rgba(142,165,162,.32); --hairline-ivory: rgba(234,232,218,.12);
  color: #EAE8DA;
  background:
    radial-gradient(1200px 700px at 12% 0%, rgba(142, 165, 162, 0.18), transparent 55%),
    radial-gradient(900px 560px at 96% 88%, rgba(142, 165, 162, 0.09), transparent 60%),
    #1A1814;
}
html[data-theme="light"] .destinations .eyebrow { color: #C99461; }
/* straight edges with a fine gold hairline (v7) */
html[data-theme="light"] .destinations.section--deep {
  border-top: 1px solid rgba(171, 121, 68, 0.45);
  border-bottom: 1px solid rgba(171, 121, 68, 0.45);
}
/* listing name on its own line, location underneath (v7) */
.dest-item__top { flex-direction: column; align-items: flex-start; gap: 6px; }
.dest-item__country { white-space: normal; }
html[data-theme="light"] .destinations .dest-item:hover,
html[data-theme="light"] .destinations .dest-item.is-active { background: rgba(142, 165, 162, 0.08); }
html[data-theme="light"] .destinations .dest-item--prop::after { background-image: linear-gradient(110deg, transparent 35%, rgba(241, 217, 181, 0.9) 50%, transparent 65%); }
html[data-theme="light"] .destinations .fx-rule { background: linear-gradient(90deg, #C99461, rgba(201, 148, 97, 0)); }
html[data-theme="light"] .globe-intro { background: #0E0D0B; }

/* ---- audience cards: lighter ivory panels ---- */
/* stationery-style double border: a gold hairline frame inset inside a defined outer border */
html[data-theme="light"] .card {
  background: #F2F0E7;
  border: 1px solid rgba(117, 100, 64, 0.32);
  box-shadow:
    inset 0 0 0 7px #F2F0E7,
    inset 0 0 0 8px rgba(171, 121, 68, 0.38),
    0 14px 30px -20px rgba(117, 100, 64, 0.55);
}
html[data-theme="light"] .card:hover {
  background: #F5F3EB;
  border-color: rgba(171, 121, 68, 0.55);
  box-shadow:
    inset 0 0 0 7px #F5F3EB,
    inset 0 0 0 8px rgba(171, 121, 68, 0.6),
    0 30px 60px -36px rgba(23, 22, 18, 0.35);
}

/* ---- contact meta (outside the dark card) ---- */
html[data-theme="light"] .contact__meta a { color: #7A5424; }
html[data-theme="light"] .contact__meta dt { color: #4E6661; }

/* ---- property sheet backdrop ---- */
html[data-theme="light"] .sheet__backdrop { background: rgba(23, 22, 18, 0.45); }

/* ---- effects re-tuned for Ivory Stone ---- */
html[data-theme="light"] .fx-rule { background: linear-gradient(90deg, #AB7944, rgba(171, 121, 68, 0)); }
html[data-theme="light"] .fx-rule--center { background: linear-gradient(90deg, rgba(171, 121, 68, 0), #AB7944, rgba(171, 121, 68, 0)); }
html[data-theme="light"] .dest-item--prop::after { background-image: linear-gradient(110deg, transparent 35%, rgba(171, 121, 68, 0.85) 50%, transparent 65%); }
html[data-theme="light"] .btn--gold::after { background: linear-gradient(100deg, transparent, rgba(255, 245, 225, 0.75), transparent); }


/* ---- far-zoom pins ----------------------------------------------------
   At z<=8 (~1.1 km/px) every Quintana Roo property sits 0.5-2.6 px from
   water, while a full pin is 12 px wide - so the marker unavoidably spills
   over the sea. Scale the mark down when zoomed out; full size returns at
   z>=9 where there is room for it. */
.map--farzoom .ownext-pin__diamond { width: 7px; height: 7px; box-shadow: 0 0 9px rgba(171, 121, 68, 0.9); }
.map--farzoom .ownext-pin__ring,
.map--farzoom .ownext-pin__dot { width: 6px; height: 6px; }
.ownext-pin__diamond, .ownext-pin__ring, .ownext-pin__dot { transition: width .25s ease, height .25s ease; }

/* When no OAuth provider is enabled, collapse the one-click band to nothing so the
   contact form reads as a normal enquiry form (see gateSocialButtons in main.js). */
.signup--empty .signup__label,
.signup--empty .signup__or { display: none; }
.signup--empty { margin: 0; }

/* ---------- Phone & tablet refinements ----------
   Measured on 375 / 390 / 412 / 768px viewports. */

@media (max-width: 1080px) {
  /* The burger is the only way to navigate on a phone, but it was a 34×25
     target — below every platform guideline. Make it a proper 44×44. */
  .nav__burger {
    width: 44px; height: 44px; padding: 0;
    align-items: center; justify-content: center;
  }
  /* Same for the language switcher: 21×33 is a mis-tap waiting to happen. */
  .lang__btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; min-height: 44px; padding: 0 4px;
  }

  /* The property list was a 320px window onto ~2,000px of content — barely one
     listing visible, and a second nested scroll area to get stuck in. Let it
     flow with the page instead. */
  .destinations__list-wrap { max-height: none; overflow: visible; }

  /* `white-space: nowrap` on the location made every row ~750px wide inside a
     375px column, so each listing scrolled sideways and the price sat
     off-screen. Let the two halves wrap onto separate lines. */
  .dest-item__top { flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
  .dest-item__country { white-space: normal; }
}

@media (max-width: 480px) {
  /* At 375px the wordmark + language + theme + burger cluster ran 22px past
     the right edge, clipping the burger. Tighten the gaps and drop the
     decorative slashes so everything fits without shrinking the targets. */
  .nav__inner { gap: 10px; }
  .nav__right { gap: 8px; }
  .lang { gap: 2px; font-size: 13.5px; }
  .lang__sep { display: none; }

  /* Give the email link a finger-sized target without moving it visually. */
  .contact__meta a { display: inline-block; padding: 6px 0; }

  /* The wordmark doubles as the back-to-top link. */
  .nav__brand { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 1080px) {
  /* Links in the full-screen menu and the footer were ~30px tall. */
  .menu__links a { padding: 7px 0; }
  .footer__nav a { padding: 7px 0; }

  /* 10–11px letterspaced mono is unreadable on a handheld screen — and this
     is the sign-up band, so it has to be legible. */
  .signup__label { font-size: 12.5px; letter-spacing: 0.18em; }
  .signup__or { font-size: 12px; letter-spacing: 0.16em; }
}

/* ================= Site effects (2026-10-10) =================
   All CSS + a little JS in main.js ("Site effects"). Each plays once,
   only when its section scrolls into view; reduced motion turns them off. */

/* Hold the hero's entrance until the opening screen closes */
html.fx-wait .hero, html.fx-wait .hero * { animation-play-state: paused !important; }

/* 1 · Headlines rise into place */
.hero__line { animation-name: fxHeroRise; }
@keyframes fxHeroRise { from { opacity: 0; transform: translateY(0.45em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.section__title.fx-rise > span, .section__title.fx-rise > em { opacity: 0; transform: translateY(0.5em); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.section__title.fx-rise.in > span, .section__title.fx-rise.in > em { opacity: 1; transform: none; filter: none; }
.section__title.fx-rise.in > :nth-child(1) { transition-delay: 0.15s; }
.section__title.fx-rise.in > :nth-child(2) { transition-delay: 0.35s; }

/* 2 · Gold hairlines draw in under each section eyebrow */
.fx-rule { display: block; width: 140px; max-width: 40%; height: 1px; margin: 16px 0 0; background: linear-gradient(90deg, var(--gold-bright), rgba(201, 148, 97, 0)); transform: scaleX(0); transform-origin: left center; transition: transform 1.6s cubic-bezier(.65, 0, .35, 1) 0.2s; }
.fx-rule--center { margin-left: auto; margin-right: auto; transform-origin: center; background: linear-gradient(90deg, rgba(201, 148, 97, 0), var(--gold-bright), rgba(201, 148, 97, 0)); }
.fx-rule.in { transform: scaleX(1); }

/* 3 · Count-up figures keep a steady width while rolling */
.fx-counting { font-variant-numeric: tabular-nums; }

/* 4 · Listings come alive: light runs along the edge, sheet photos ease in */
@media (hover: hover) {
  .dest-item--prop::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; border: 1px solid transparent;
    background: linear-gradient(110deg, transparent 35%, rgba(241, 217, 181, 0.9) 50%, transparent 65%) border-box;
    background-size: 260% 100%; background-position: 130% 0;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    transition: background-position 1.3s ease;
  }
  .dest-item--prop:hover::after { background-position: -30% 0; }
  .sheet__figure { overflow: hidden; }
  .sheet__figure img { transition: transform 1.8s var(--ease); }
  .sheet__figure:hover img { transform: scale(1.05); }
}

/* 5 · Drifting gold dust behind the hero */
.fx-dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 2.4s ease; }
.fx-dust.on { opacity: 1; }

/* 6 · Gold buttons: sheen on hover (the magnetic pull is in main.js) */
.btn--gold::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 240, 215, 0.55), transparent); transform: skewX(-20deg); transition: left 0.8s ease; pointer-events: none; z-index: -1; }
.btn--gold:hover::after, .btn--gold:focus-visible::after { left: 130%; }

@media (prefers-reduced-motion: reduce) {
  .section__title.fx-rise > span, .section__title.fx-rise > em, .fx-rule { opacity: 1; transform: none; filter: none; transition: none; }
  .fx-dust { display: none; }
  .btn--gold::after, .dest-item--prop::after { display: none; }
}

/* ---- Showroom link inside the property sheet (2026-10-10) ---- */
.sheet__page { display: inline-block; margin: 6px 0 4px; font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright); border-bottom: 1px solid var(--hairline); padding-bottom: 2px; transition: border-color .3s; }
.sheet__page:hover { border-color: var(--gold); }

/* ---- Mobile map: popups sit above the +/- buttons (2026-10-11) ---- */
@media (max-width: 760px) {
  .destinations__map.map--popup .leaflet-control-zoom { opacity: 0; pointer-events: none; }
  .destinations__map .leaflet-popup-content-wrapper { max-height: 62vh; overflow-y: auto; }
}

/* ===== Mobile flow fixes (2026-10-12) ===== */
.nav__quick, .signup__short, .map-card { display: none; }
@media (max-width: 1080px) {
  .nav__quick { display: flex; justify-content: center; gap: 26px; padding: 8px 16px 10px; border-top: 1px solid var(--hairline); }
  .nav__quick a { font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-dim); text-decoration: none; }
  .nav__quick a:first-child, .nav__quick a:last-of-type { color: var(--gold-bright); }
}
@media (max-width: 760px) {
  /* 1 · listings swipe row on top, map fills the rest of one screen */
  .destinations__layout { display: flex; flex-direction: column; height: calc(100svh - 110px); min-height: 520px; }
  .destinations__list-wrap { max-height: none; border-bottom: 1px solid var(--hairline); flex: none; }
  .destinations__hint, .destinations__list .dest-group, .destinations__list > li:not(.dest-item) { display: none; }
  .destinations__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 12px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .destinations__list::-webkit-scrollbar { display: none; }
  .destinations__list .dest-item { flex: 0 0 74vw; width: 74vw; max-width: 74vw; box-sizing: border-box; scroll-snap-align: center; padding: 12px 14px; border: 1px solid var(--hairline); }
  .destinations__list .dest-item__top { display: block; }
  .destinations__list .dest-item__name { font-size: 18px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .destinations__list .dest-item__country { font-size: 10.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
  .destinations__list .dest-item__price { font-size: 13px; margin-top: 4px; }
  .destinations__list .dest-item__tag { display: none; }
  .destinations__map-wrap { flex: 1; min-height: 0; }
  .destinations__map .leaflet-popup { display: none; }
  /* small listing card at the bottom of the map */
  .map-card:not([hidden]) { display: block; position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 500; background: var(--obsidian-2); border: 1px solid var(--hairline); border-left: 3px solid var(--gold); padding: 14px 44px 14px 16px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.8); }
  .map-card__name { font-family: var(--serif); font-size: 19px; color: var(--ivory); }
  .map-card__loc { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-faint); margin-top: 3px; }
  .map-card__price { font-family: var(--mono); font-size: 13.5px; color: var(--gold-bright); margin-top: 6px; }
  .map-card__cta { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-bright); border-bottom: 1px solid var(--hairline); text-decoration: none; }
  .map-card__x { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; background: none; border: 0; color: var(--ivory-faint); font-size: 22px; cursor: pointer; }
  .destinations__map.map--card .leaflet-control-zoom { opacity: 0; pointer-events: none; }

  /* 2 & 3 · swipe sideways through the audience cards and the method steps */
  .audiences__grid, .approach__grid { display: flex; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-right: calc(-1 * var(--gutter, 20px)); padding-right: var(--gutter, 20px); padding-bottom: 8px; scrollbar-width: none; }
  .audiences__grid::-webkit-scrollbar, .approach__grid::-webkit-scrollbar { display: none; }
  .audiences__grid > *, .approach__grid > * { flex: 0 0 86%; scroll-snap-align: start; }
  .approach__grid > .step { border: 1px solid var(--hairline); padding: 22px 20px; }

  /* 4 · compact one-click sign-up */
  .signup { margin-bottom: 18px; }
  .signup__btns { flex-direction: row; gap: 10px; }
  .btn--social { flex: 1 1 0; width: auto; min-width: 0; padding: 11px 10px; }
  .signup__long { display: none; }
  .signup__short { display: inline; }
  .signup__or { margin: 16px 0 0; }
}
html[data-theme="light"] .map-card { background: var(--obsidian-2); }

/* ===== Compact contact form on phones (2026-10-12) ===== */
@media (max-width: 760px) {
  .form { gap: 14px; padding: 20px 16px; }
  .form .form__row { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .field { gap: 4px; }
  .field__label { font-size: 9.5px !important; letter-spacing: .16em !important; }
  .field input, .field select { padding-top: 6px !important; padding-bottom: 6px !important; font-size: 15px !important; }
  .field textarea { height: 64px; min-height: 64px; font-size: 15px !important; }
  .form__submit { align-self: stretch; text-align: center; justify-content: center; margin-top: 2px; }
  .signup__label { margin-bottom: 8px; }
}

/* ===== Floating WhatsApp button, phones only (2026-10-12) ===== */
.wa-float { display: none; }
@media (max-width: 760px) {
  .wa-float { display: flex; align-items: center; justify-content: center; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 850;
    width: 54px; height: 54px; border-radius: 50%; background: #1F7A4D; color: #fff; box-shadow: 0 10px 28px -8px rgba(0,0,0,.7), 0 0 0 1px rgba(171,121,68,.55); transition: transform .3s, opacity .3s; }
  .wa-float svg { width: 28px; height: 28px; }
  .wa-float:active { transform: scale(.94); }
  body.menu-open .wa-float, .sheet.is-open ~ .wa-float { opacity: 0; pointer-events: none; }
}

/* ===== Currency switch (2026-10-12) ===== */
.cur-select { appearance: none; -webkit-appearance: none; background: transparent; border: 1px solid var(--hairline); border-radius: 999px;
  color: var(--ivory-dim); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; padding: 6px 22px 6px 12px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 12px) 52%, calc(100% - 8px) 52%; background-size: 4px 4px; background-repeat: no-repeat; }
.cur-select:hover, .cur-select:focus { border-color: var(--gold); color: var(--ivory); outline: none; }
.cur-select option { background: #1E1C18; color: #EAE8DA; }
.cur-select--quick { display: none; }
.cur-amt.is-conv { white-space: nowrap; }
.cur-note { margin-top: 8px; font-size: 12px; color: var(--ivory-faint); }
@media (max-width: 1080px) {
  .cur-select--nav { display: none; }
  .cur-select--quick { display: inline-block; font-size: 10.5px; padding: 3px 18px 3px 9px; background-position: calc(100% - 10px) 52%, calc(100% - 6px) 52%; }
  .nav__quick { align-items: center; gap: 18px; }
}
@media (max-width: 420px) { .nav__quick { gap: 14px; padding-left: 10px; padding-right: 10px; } .nav__quick a { letter-spacing: .13em; font-size: 10.5px; } }

/* ===== Phones held sideways (landscape, short screens) — 2026-10-23 ===== */
@media (max-height: 500px) and (orientation: landscape) {
  /* one slim header row: logo · quick links · language · theme · menu */
  .nav, .nav.is-scrolled { padding: 6px 0; }
  .nav__inner { padding: 0 20px; gap: 16px; }
  .nav__wordmark { height: 16px; }
  .nav .btn--nav { display: none; }
  .nav__quick { position: absolute; left: 165px; top: 50%; transform: translateY(-50%); border-top: 0; padding: 0; gap: 14px; }
  .nav__quick a { font-size: 9.5px; letter-spacing: .12em; }
  .nav .lang { margin-left: auto; }
  .theme-toggle { width: 32px; height: 32px; }
  .nav__burger { transform: scale(.85); }

  /* map section: listings on the left, map on the right, one screen */
  .destinations__layout { display: grid; grid-template-columns: minmax(240px, 38%) 1fr; height: calc(100svh - 48px); min-height: 0; }
  .destinations__list-wrap { max-height: none; overflow-y: auto; border-bottom: 0; border-right: 1px solid var(--hairline); }
  .destinations__hint { display: none; }
  .destinations__list .dest-item { padding: 12px 16px; }
  .destinations__list .dest-item__name { font-size: 17px; }
  .destinations__list .dest-item__country { font-size: 10px; }
  .destinations__list .dest-item__price { font-size: 12.5px; margin-top: 3px; }
  .destinations__list .dest-item__tag { display: none; }
  .destinations__map-wrap { min-height: 0; height: 100%; }
  .destinations__map .leaflet-popup { display: none; }
  .map-card:not([hidden]) { display: block; position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 500; background: var(--obsidian-2); border: 1px solid var(--hairline); border-left: 3px solid var(--gold); padding: 10px 44px 10px 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.8); }
  .map-card__name { font-family: var(--serif); font-size: 17px; color: var(--ivory); }
  .map-card__loc { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-faint); margin-top: 2px; }
  .map-card__price { font-family: var(--mono); font-size: 12.5px; color: var(--gold-bright); margin-top: 4px; }
  .map-card__cta { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-bright); border-bottom: 1px solid var(--hairline); text-decoration: none; }
  .map-card__x { position: absolute; top: 4px; right: 4px; width: 34px; height: 34px; background: none; border: 0; color: var(--ivory-faint); font-size: 22px; cursor: pointer; }
  .destinations__map.map--card .leaflet-control-zoom { opacity: 0; pointer-events: none; }

  /* property window: photos left, details right, both fit the screen */
  .sheet { padding: 8px; }
  .sheet__panel { max-height: calc(100svh - 16px); }
  .sheet__body { grid-template-columns: 44% 1fr !important; }
  .sheet__media { border-right: 1px solid var(--hairline) !important; border-bottom: 0 !important; max-height: calc(100svh - 18px); overflow-y: auto; position: sticky; top: 0; }
  .sheet__info { padding: 18px 20px; }
  .sheet__title { font-size: 26px; }

  /* showroom + property heroes: smaller card so the photo shows */
  .cine { min-height: 100svh; }
  .cine__card { width: min(460px, 60%); margin: 0 0 14px 20px; padding: 14px 18px; }
  .cine__name { font-size: 24px; margin-top: 6px; }
  .cine__line { display: none; }
  .cine__foot { margin-top: 10px; padding-top: 10px; }
  .cine__price { font-size: 19px; }
  .cine__num { font-size: 72px; top: 60px; }
  .ph .cine__card { margin-top: 64px; }
  .ga-toc { top: var(--navh, 48px); }

  .section { padding-top: 56px !important; padding-bottom: 56px !important; }
  .section__title, .philosophy__quote { font-size: 34px !important; line-height: 1.12; }
  .hero__title { font-size: 42px !important; }
  .wa-float { display: flex; align-items: center; justify-content: center; position: fixed; z-index: 850; width: 46px; height: 46px; right: 12px; bottom: 12px; border-radius: 50%; background: #1F7A4D; color: #fff; box-shadow: 0 10px 28px -8px rgba(0,0,0,.7), 0 0 0 1px rgba(171,121,68,.55); }
  .wa-float svg { width: 24px; height: 24px; }
}

/* ===== Phones upright: property window photos no taller than ~40% of the screen ===== */
@media (max-width: 760px) and (orientation: portrait) {
  .sheet { padding: 8px; }
  .sheet__panel { max-height: calc(100svh - 16px); }
  .sheet__figure img, .sheet__figure--hero img { max-height: 40svh; width: 100%; object-fit: cover; aspect-ratio: auto; }
  .sheet__info { padding: 20px 18px; }
  .sheet__media { display: flex !important; flex-direction: row !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 12px !important; scrollbar-width: none; }
  .sheet__media::-webkit-scrollbar { display: none; }
  .sheet__media > * { flex: 0 0 86%; scroll-snap-align: start; margin: 0 !important; }
  .sheet__figure img, .sheet__figure--hero img { height: 34svh; max-height: none; }
  .sheet__figure figcaption { font-size: 10px; }
}
.sheet__close { z-index: 6; }
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) {
  .sheet__close { position: fixed; top: 14px; right: 14px; width: 42px; height: 42px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; border-radius: 50%; background: rgba(14,13,11,.8); border: 1px solid rgba(171,121,68,.5); color: #EAE8DA; z-index: 2600; }
}
