/* =============================================================
   LO&ACE Royal Advisor — Dark luxury · silver
   1. Tokens
   ============================================================= */
:root {
  --bg:      #0b0c0e;   /* graphite, never pure black */
  --bg-2:    #111317;
  --bg-3:    #16191e;   /* cards */
  --bg-4:    #1d2127;
  --text:    #ecedef;   /* platinum */
  --text-2:  #b8bcc3;
  --mute:    #858b94;
  --line:    rgba(214,219,226,.10);
  --line-2:  rgba(214,219,226,.22);
  --silver-solid: #c9cdd2;
  --silver: linear-gradient(110deg, #7d838b 0%, #c9cdd2 16%, #f7f8f9 28%, #a3a8af 42%, #e9ebee 56%, #8e949c 70%, #dfe2e6 84%, #9aa0a8 100%);
  --ok:  #9fd8b5;
  --err: #f0a3a3;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans:  "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 3px;
  --shadow: 0 30px 60px -30px rgba(0,0,0,.85);
  --glow:   0 14px 44px -14px rgba(220,225,232,.38);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --logo-full: url("assets/img/logo-loace.webp?v=20261018");
  --logo-mark: url("assets/img/logo-loace-mark.webp?v=20261018");
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--bg); }
body {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* fine film grain over everything — subtle, premium */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; text-wrap: balance; line-height: 1.02; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em, .silver-text {
  font-style: italic; font-weight: 300;
  background: var(--silver); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite alternate;
  padding-right: .06em; /* keep italic overhang from clipping */
}
::selection { background: var(--silver-solid); color: var(--bg); }
:focus-visible { outline: 1px solid var(--silver-solid); outline-offset: 4px; }
select option { background: var(--bg-2); color: var(--text); }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 10000;
  padding: .6rem 1rem; background: var(--text); color: var(--bg); font-weight: 500;
}
.skip-link:focus { top: 1rem; }
[hidden] { display: none !important; }

/* Logo rendered as a mask over a living silver gradient */
.silver-mask {
  display: block;
  background: var(--silver); background-size: 260% 100%;
  -webkit-mask: var(--logo-full) center / contain no-repeat;
          mask: var(--logo-full) center / contain no-repeat;
}

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow, .kicker {
  font-family: var(--sans); font-size: .68rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--text-2);
}
.section h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin-top: .8rem; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.05rem 1.9rem; border-radius: var(--radius);
  background: var(--silver); background-size: 220% 100%; background-position: 0% 0;
  color: var(--bg); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  transition: background-position 1.1s var(--ease-out), transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.btn:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: var(--glow); }
.btn-small { padding: .8rem 1.3rem; font-size: .64rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(236,237,239,.05); border-color: var(--silver-solid); box-shadow: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn svg .fill { fill: currentColor; stroke: none; }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field > span { font-size: .62rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: rgba(11,12,14,.55); color: var(--text);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6c727b; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--silver-solid); background: rgba(11,12,14,.8); box-shadow: 0 0 0 4px rgba(201,205,210,.08); }
.field.is-invalid input { border-color: var(--err); }
.field select { appearance: none; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9cdd2' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 10px; }

/* ---- Splash ---- */
.splash {
  position: fixed; inset: 0; z-index: 9000; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  animation: splashOut .8s var(--ease-soft) 2.6s forwards; /* safety net: hides even if JS never runs */
}
.splash.is-done { animation: splashOut .8s var(--ease-soft) forwards; }
.splash-logo { width: min(240px, 56vw); aspect-ratio: 1470 / 1095; animation: sheenFast 1.8s var(--ease-soft) both, rise 1s var(--ease-out) both; }
.splash-line { width: 120px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.splash-line::after { content: ""; position: absolute; inset: 0; background: var(--silver-solid); transform: scaleX(0); transform-origin: left; animation: load 1.2s var(--ease-out) .2s forwards; }

/* ---- Nav ---- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--text);
  transition: background .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.nav.is-solid { background: rgba(11,12,14,.94); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(12px)) {
  .nav.is-solid { background: rgba(11,12,14,.72); backdrop-filter: blur(18px) saturate(1.1); }
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 1rem; }
.brand-mark { width: 74px; aspect-ratio: 1470 / 950; -webkit-mask-image: var(--logo-mark); mask-image: var(--logo-mark); transition: background-position 1.4s var(--ease-out); }
.brand:hover .brand-mark { background-position: 100% 0; }
.brand-sub {
  display: none; padding-left: 1rem; border-left: 1px solid var(--line-2);
  font-size: .56rem; font-weight: 500; letter-spacing: .38em; line-height: 1.6; text-transform: uppercase; color: var(--text-2);
}
.nav-links { display: none; gap: 2.4rem; font-size: .66rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--text-2); }
.nav-links a { position: relative; padding-block: .4rem; transition: color .3s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--silver);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-actions .btn-small { display: none; }
.fav-pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: .74rem; font-weight: 500; color: var(--text-2); transition: border-color .3s, color .3s;
}
.fav-pill:hover { border-color: var(--silver-solid); color: var(--text); }
.fav-pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.fav-pill.has-favs svg { fill: var(--silver-solid); stroke: var(--silver-solid); }
.menu-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.menu-toggle span { width: 24px; height: 1px; background: currentColor; transition: transform .3s var(--ease-out); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav.is-open { background: var(--bg); }
.nav.is-open .nav-links {
  display: flex; flex-direction: column; gap: 0; position: absolute; top: 84px; left: 0; right: 0;
  background: var(--bg); padding: .5rem var(--gutter) 2rem; border-bottom: 1px solid var(--line);
}
.nav.is-open .nav-links a { padding-block: 1.1rem; border-bottom: 1px solid var(--line); font-size: .78rem; }

/* =============================================================
   6. Sections
   ============================================================= */
.section { padding-block: clamp(5rem, 11vw, 9.5rem); position: relative; }
.section-head { display: grid; gap: 1.4rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-lead { color: var(--text-2); max-width: 46ch; font-weight: 300; }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; isolation: isolate; overflow: hidden;
  padding: 130px 0 clamp(3.5rem, 8vw, 6rem);
}
.hero-bg { position: absolute; inset: -6% 0 0 0; width: 100%; height: 106%; object-fit: cover; object-position: 50% 40%; z-index: -2; filter: saturate(.9) contrast(1.04); }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(8,9,11,.38) 0%, rgba(8,9,11,.5) 55%, rgba(8,9,11,.62) 100%),
    linear-gradient(180deg, rgba(8,9,11,.5) 0%, rgba(8,9,11,0) 22%, rgba(8,9,11,0) 55%, rgba(11,12,14,.85) 88%, rgba(11,12,14,1) 100%);
}
.hero-content { display: grid; gap: 1.4rem; justify-items: center; text-align: center; }
.kicker { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--text-2); }
.kicker-line { width: 48px; height: 1px; background: var(--silver); flex: none; }
.hero-title { font-size: clamp(2.6rem, 5.8vw, 5.6rem); max-width: 24ch; color: var(--text); text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.hero-title em { filter: drop-shadow(0 2px 16px rgba(0,0,0,.7)); }
.hero-sub { text-shadow: 0 1px 14px rgba(0,0,0,.6); max-width: 58ch; font-size: clamp(.95rem, 1.4vw, 1.05rem); font-weight: 300; color: var(--text-2); }

/* ---- Search ---- */
.search {
  margin-top: 1.4rem; width: 100%; max-width: 1040px; text-align: left;
  background: rgba(17,19,23,.82); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: .4rem 1.2rem 1.2rem;
}
@supports (backdrop-filter: blur(12px)) {
  .search { background: rgba(17,19,23,.55); backdrop-filter: blur(20px) saturate(1.1); }
}
.search-tabs { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; }
.search-tabs button {
  position: relative; padding: .95rem 0; font-size: .64rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--mute);
  transition: color .3s;
}
.search-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--silver); transform: scaleX(0); transition: transform .5s var(--ease-out); }
.search-tabs button.is-active { color: var(--text); }
.search-tabs button.is-active::after { transform: scaleX(1); }
.search-fields { display: grid; gap: .9rem; }
.search-btn { min-height: 52px; align-self: end; }

.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; margin-top: .4rem; font-size: .62rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--text-2); }
.hero-trust li { display: inline-flex; align-items: center; gap: .7rem; }
.hero-trust li::before { content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--silver-solid); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 54px; background: var(--line-2); overflow: hidden; display: none; }
.scroll-cue span { position: absolute; inset: 0; background: var(--silver-solid); animation: cue 2.4s var(--ease-soft) infinite; }

/* ---- Marquee ---- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding-block: 1.4rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track span {
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  padding-inline: 2rem; white-space: nowrap; color: var(--text-2);
}
.marquee-track span::after { content: "◆"; font-style: normal; font-size: .4em; color: var(--silver-solid); margin-left: 4rem; vertical-align: middle; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---- Featured ---- */
.featured-inner { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.featured-media { display: grid; gap: .7rem; }
.featured-main { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 11; background: var(--bg-3); }
.featured-main img, .featured-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter 1.2s var(--ease-out); }
.featured-main:hover img { transform: scale(1.05); }
.featured-main::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(236,237,239,.28); pointer-events: none; }
.featured-tag {
  position: absolute; left: 28px; top: 28px; padding: .45rem .8rem;
  background: rgba(11,12,14,.72); color: var(--text); font-size: .6rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
}
.featured-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.featured-thumbs button { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--bg-3); }
.featured-thumbs button:hover img { transform: scale(1.08); }
.thumb-more span {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11,12,14,.62);
  font-size: .56rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: .2rem;
}
.featured-copy h2 { font-size: clamp(2.8rem, 5.6vw, 4.8rem); margin-top: .9rem; }
.featured-loc { margin-top: 1rem; font-size: .66rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--text-2); }
.featured-lead { color: var(--text-2); font-weight: 300; margin-top: 1.4rem; max-width: 48ch; }
.featured-facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2.2rem; border-top: 1px solid var(--line); }
.featured-facts div { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.featured-facts div:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--line); }
.featured-facts div:nth-child(even) { padding-left: 1.4rem; }
.featured-facts dt { font-size: .6rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); }
.featured-facts dd { margin: .2rem 0 0; font-family: var(--serif); font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 400; line-height: 1.2; }
.featured-facts dd small { font-family: var(--sans); font-size: .62rem; letter-spacing: .14em; color: var(--mute); }
.featured-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---- Listings ---- */
.listings { background: var(--bg); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .6rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line-2);
  font-size: .62rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2);
  transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--silver-solid); color: var(--text); }
.chip.is-active { background: var(--silver); background-size: 220% 100%; color: var(--bg); border-color: transparent; }
.toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.result-count { font-size: .8rem; color: var(--mute); }
.result-count strong { color: var(--text); font-weight: 500; }
.sort select {
  padding: .6rem 2.4rem .6rem 1rem; border-radius: var(--radius); border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
  font-size: .72rem; letter-spacing: .06em; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9cdd2' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 10px;
}

.grid { display: grid; gap: clamp(1.2rem, 2.4vw, 2rem); }
.card {
  position: relative; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .6s var(--ease-out);
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 2; background: var(--silver);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(214,219,226,.24); }
.card:hover::before { transform: scaleX(1); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-4); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter 1.2s var(--ease-out); filter: saturate(.92); }
.card:hover .card-media img { transform: scale(1.07); filter: saturate(1.05); }
.badge {
  position: absolute; top: 1rem; left: 1rem; padding: .4rem .7rem;
  background: rgba(11,12,14,.72); color: var(--text); border: 1px solid var(--line-2);
  font-size: .56rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
}
.badge-accent { background: var(--silver); background-size: 220% 100%; color: var(--bg); border-color: transparent; font-weight: 600; }
.fav {
  position: absolute; top: .8rem; right: .8rem; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(11,12,14,.6); border: 1px solid var(--line-2);
  transition: transform .3s var(--ease-out), border-color .3s;
}
.fav:hover { transform: scale(1.08); border-color: var(--silver-solid); }
.fav svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.5; transition: fill .25s, stroke .25s; }
.fav[aria-pressed="true"] svg { fill: var(--silver-solid); stroke: var(--silver-solid); }
.fav.pop { animation: pop .45s var(--ease-out); }
.photo-count {
  position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .75rem; background: rgba(11,12,14,.72); border: 1px solid var(--line-2); color: var(--text);
  font-size: .6rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; transition: border-color .3s;
}
.photo-count:hover { border-color: var(--silver-solid); }
.photo-count svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.price { font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1.15; }
.price-from { font-family: var(--sans); font-size: .58rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); vertical-align: middle; margin-right: .2rem; }
.price small { font-family: var(--sans); font-size: .6rem; font-weight: 500; color: var(--mute); letter-spacing: .18em; }
.card-title { font-family: var(--sans); font-size: .92rem; font-weight: 500; letter-spacing: 0; line-height: 1.45; color: var(--text); }
.place { font-size: .8rem; color: var(--mute); }
.specs { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .8rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--text-2); }
.specs b { font-weight: 600; color: var(--text); }
.card-cta { margin-top: auto; align-self: flex-start; padding: .8rem 1.2rem; font-size: .6rem; }
.card-body .specs + .card-cta { margin-top: 1.2rem; }
.empty { text-align: center; padding: 3rem 1rem; display: grid; gap: 1rem; justify-items: center; color: var(--mute); }

/* ---- Request tile (búsqueda a la medida) ---- */
.request-tile {
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
  padding: clamp(1.8rem, 3vw, 2.6rem); border: 1px dashed var(--line-2); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(236,237,239,.04), rgba(236,237,239,0) 60%);
}
.request-tile h3 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
.request-tile p:not(.eyebrow) { color: var(--text-2); font-weight: 300; }
.request-tile .btn { align-self: flex-start; margin-top: .4rem; }

/* ---- Services (pillars) ---- */
.services { background: var(--bg-2); border-block: 1px solid var(--line); }
.pillars { display: grid; gap: 0; counter-reset: p; border-top: 1px solid var(--line); }
.pillars li { counter-increment: p; position: relative; padding: 2rem 0 2rem 4.2rem; border-bottom: 1px solid var(--line); }
.pillars li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 1.8rem; font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--silver-solid); }
.pillars h3 { font-size: 1.7rem; font-weight: 400; }
.pillars p { color: var(--text-2); font-weight: 300; margin-top: .5rem; max-width: 42ch; }

/* ---- Social (TikTok / Instagram) ---- */
.social-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.social-head-side { display: grid; gap: 1.2rem; justify-items: start; }
.social-follow svg { width: 18px; height: 18px; }
.social-feed { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .8rem;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.social-feed > * { flex: 0 0 auto; scroll-snap-align: start; }
.social-feed .tiktok-embed, .social-feed .instagram-media { margin: 0 !important; border-radius: var(--radius) !important; overflow: hidden; }
.social-feed-tiktok .tiktok-embed { width: 325px; }
.social-feed-instagram .instagram-media { width: 340px !important; }
.social-placeholder {
  flex: 1 1 100%; display: grid; gap: .6rem; place-content: center; text-align: center; min-height: 260px;
  border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--text-2); font-weight: 300; padding: 2rem;
}

/* ---- Mortgage ---- */
.mortgage-inner { display: grid; gap: 3rem; align-items: center; }
.mortgage-copy p:not(.eyebrow) { color: var(--text-2); font-weight: 300; margin-top: 1.4rem; max-width: 46ch; }
.checks { margin-top: 1.8rem; display: grid; gap: .9rem; }
.checks li { display: flex; gap: .9rem; align-items: center; color: var(--text-2); }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--silver-solid); font-size: .7rem; flex: none; }
.calc { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3.4vw, 2.6rem); display: grid; gap: 1.6rem; }
.range { display: grid; gap: .7rem; }
.range > span { display: flex; justify-content: space-between; gap: 1rem; font-size: .62rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.range output { color: var(--text); font-size: .9rem; font-weight: 500; letter-spacing: .02em; text-transform: none; font-variant-numeric: tabular-nums; }
.range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--silver-solid) var(--fill, 50%), var(--bg-4) var(--fill, 50%)); }
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--silver); border: 0; box-shadow: 0 0 0 5px rgba(201,205,210,.12); cursor: grab; }
.range input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--silver-solid); border: 0; cursor: grab; }
.calc-result { border-top: 1px solid var(--line); padding-top: 1.6rem; display: grid; gap: .3rem; }
.calc-result p { font-size: .62rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); }
.calc-result strong {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 6vw, 3.8rem); line-height: 1.05; font-variant-numeric: tabular-nums;
  background: var(--silver); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.calc-result small { color: var(--mute); font-size: .74rem; }

/* ---- Sell ---- */
.sell { background: var(--bg-2); border-block: 1px solid var(--line); }
.sell-inner { display: grid; gap: 3rem; align-items: center; }
.sell-media { position: relative; aspect-ratio: 4 / 5; }
.sell-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); filter: saturate(.85); }
.sell-media::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--line-2); z-index: -1; }
.sell-copy > .btn { margin-top: .4rem; }
.steps { counter-reset: s; display: grid; gap: 1.4rem; margin: 2rem 0 2.4rem; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.4rem 3.6rem; color: var(--text-2); font-weight: 300; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -.2rem; font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.2; color: var(--silver-solid); }
.steps b { display: block; margin-bottom: .2rem; }
.steps b { color: var(--text); font-weight: 500; }

/* ---- Quotes ---- */
.quote-grid { display: grid; gap: 1.2rem; }
.quote { position: relative; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 3rem 2rem 2rem; display: grid; gap: 1.6rem; align-content: space-between; }
.quote::before { content: "“"; position: absolute; top: .4rem; left: 1.6rem; font-family: var(--serif); font-size: 4.4rem; line-height: 1; color: var(--silver-solid); opacity: .5; }
.quote p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; font-weight: 300; font-style: italic; color: var(--text); }
.quote footer { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); padding-top: 1.2rem; border-top: 1px solid var(--line); }
.quote footer b { color: var(--text-2); font-weight: 600; }

/* TikTok video card + profile card */
.tt-card, .tt-profile { position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); }
.tt-card { display: block; background: var(--bg-3); isolation: isolate; }
.tt-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.tt-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,12,14,0) 50%, rgba(11,12,14,.9)); }
.tt-card:hover img { transform: scale(1.05); }
.tt-play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--silver); background-size: 220% 100%; box-shadow: 0 12px 40px rgba(0,0,0,.5);
  transition: transform .5s var(--ease-out), background-position 1s var(--ease-out);
}
.tt-play svg { width: 30px; height: 30px; fill: var(--bg); margin-left: 4px; }
.tt-card:hover .tt-play { transform: scale(1.08); background-position: 100% 0; }
.tt-caption { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; display: grid; gap: .2rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.tt-caption small { font-family: var(--sans); font-size: .58rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--text-2); }
.tt-card.is-playing { background: #000; }
.tt-card.is-playing::after { display: none; }
.tt-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tt-profile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: 2rem 1.6rem; text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(236,237,239,.07), rgba(236,237,239,0) 70%), var(--bg-3);
  transition: border-color .4s;
}
.tt-profile:hover { border-color: var(--silver-solid); }
.tt-profile-logo { width: 150px; aspect-ratio: 1470 / 1095; margin-bottom: .6rem; }
.tt-profile-handle { font-family: var(--serif); font-size: 2rem; line-height: 1.1; }
.tt-profile-text { color: var(--text-2); font-weight: 300; font-size: .9rem; max-width: 26ch; }
.tt-profile .btn { margin-top: .6rem; }

/* ---- Contact ---- */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-inner { display: grid; gap: 3rem; }
.contact-copy > p:not(.eyebrow) { color: var(--text-2); font-weight: 300; margin-top: 1.2rem; max-width: 44ch; }
.contact-list { margin-top: 2.4rem; display: grid; gap: 0; }
.contact-list li { display: grid; gap: .15rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-list span { font-size: .6rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); }
.contact-list a { color: var(--text); transition: color .3s; }
.contact-list a:hover { color: var(--silver-solid); }
.form { display: grid; gap: 1.1rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3.4vw, 2.6rem); }
.form-row { display: grid; gap: 1.1rem; }
.form .btn { justify-self: start; }
.form-status { font-size: .82rem; min-height: 1.4em; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--err); }

/* ---- Footer ---- */
.footer { background: #08090b; color: var(--text); padding-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 3rem; padding-bottom: 3.5rem; }
.footer-logo { width: 190px; aspect-ratio: 1470 / 1095; transition: background-position 1.4s var(--ease-out); }
.footer-logo:hover { background-position: 100% 0; }
.footer-note { margin-top: 1.6rem; color: var(--mute); font-size: .86rem; font-weight: 300; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer-cols div { display: grid; gap: .6rem; align-content: start; }
.footer-cols h4 { font-family: var(--sans); font-size: .6rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); margin-bottom: .4rem; }
.footer-cols a { color: var(--text-2); font-size: .88rem; font-weight: 300; transition: color .3s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1.6rem 2.2rem; display: grid; gap: 1rem; font-size: .74rem; color: var(--mute); }
.credits summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.credits ul { margin-top: .8rem; display: grid; gap: .3rem; }
.credits a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Modal ---- */
.modal {
  margin: auto; max-height: calc(100% - 32px); overflow-y: auto;
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 2.4rem 1.8rem 1.8rem; width: min(500px, calc(100% - 32px));
  background: var(--bg-2); color: var(--text); box-shadow: 0 50px 100px -30px rgba(0,0,0,.9);
}
.modal::backdrop { background: rgba(5,6,8,.78); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .55s var(--ease-out); }
.modal h3 { font-size: 2.1rem; margin-top: .6rem; }
.modal-price { font-family: var(--serif); font-size: 1.3rem; margin: .4rem 0 1.4rem; color: var(--silver-solid); }
.modal .form { padding: 0; background: none; border: 0; }
.modal-close-form { position: absolute; top: .9rem; right: .9rem; }
.modal-close { width: 40px; height: 40px; border-radius: 50%; font-size: 1.4rem; line-height: 1; border: 1px solid var(--line-2); color: var(--text-2); transition: border-color .3s, color .3s; }
.modal-close:hover { border-color: var(--silver-solid); color: var(--text); }
.modal.has-gallery { width: min(820px, calc(100% - 32px)); }
.modal-gallery {
  display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 -1.8rem 1.6rem; padding: 0 1.8rem .5rem; scroll-padding-inline: 1.8rem;
}
.modal-gallery figure { flex: 0 0 84%; scroll-snap-align: start; margin: 0; }
.modal-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--bg-4); }
.modal-gallery figcaption { font-size: .6rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); margin-top: .5rem; }

/* =============================================================
   7. Effects
   ============================================================= */
@keyframes sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@keyframes sheenFast { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes load { to { transform: scaleX(1); } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pop { 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px); } }

/* Reveal: only hidden once JS confirms it's running */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.card.is-hidden { display: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .brand-sub { display: block; }
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .field-wide { grid-column: span 2; }
  .quote-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .section-head { grid-template-columns: 1fr auto; align-items: end; }
  .nav-actions .btn-small { display: inline-flex; }
  .scroll-cue { display: block; }
  .modal-gallery figure { flex-basis: 62%; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .search-fields { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
  .search-fields .field-wide { grid-column: auto; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .featured-inner { grid-template-columns: 7fr 5fr; }
  .pillars { grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .hero-title em { white-space: nowrap; }
  .social-head-side { justify-items: end; text-align: right; }
  .social-feed-tiktok { justify-content: center; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .mortgage-inner { grid-template-columns: 1fr 1fr; gap: 6rem; }
  .sell-inner { grid-template-columns: 5fr 6fr; gap: 6rem; }
  .contact-inner { grid-template-columns: 5fr 6fr; gap: 6rem; }
  .footer-inner { grid-template-columns: 1fr 2fr; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: start; }
}
@media (min-width: 1280px) {
  .hero-title { font-size: 5.8rem; }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 160s; }
  .scroll-cue span { animation: none; }
  html { scroll-behavior: auto; }
}
