/* ==========================================================================
   M&W Real Estate · premium landing
   ========================================================================== */

:root {
  --ink: #0f1513;
  --ink-2: #151d1a;
  --moss: #1f2a25;
  --bone: #f4efe7;
  --paper: #faf7f2;
  --sand: #e8dfd1;
  --stone: #b8ad9b;
  --bronze: #b98a5c;
  --bronze-2: #d4ad83;
  --sale: #8e3b24;
  --text: #1a201d;
  --muted: #676d68;
  --muted-dark: #9ba29c;
  --line: rgba(15, 21, 19, .12);
  --line-dark: rgba(244, 239, 231, .12);

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --wrap: 1320px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --radius: 22px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, blockquote, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
em { font-style: italic; }

::selection { background: var(--bronze); color: var(--ink); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--bone); color: var(--ink); }
.skip:focus { left: 12px; }

section[id] { scroll-margin-top: 80px; }

/* ---------- Typography ---------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 88px);
  line-height: .98;
  letter-spacing: -.02em;
}
.display em, .hero__title em, .footer__claim em, .quality__quote em { color: var(--bronze); }

.lead { font-size: clamp(16px, 1.25vw, 18px); color: var(--muted); max-width: 520px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
}
.eyebrow--light { color: var(--bone); }
.eyebrow__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bronze);
}
.eyebrow__num::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: currentColor; opacity: .6; }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); box-shadow: 0 0 0 5px rgba(185, 138, 92, .18); }

.section { padding: clamp(96px, 12vw, 180px) 0; }
.section-head { display: grid; gap: 22px; max-width: 760px; margin-bottom: clamp(48px, 6vw, 88px); }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn i { font-style: normal; transition: transform .5s var(--ease); }
.btn:hover i { transform: translateX(5px); }

.btn--bronze { background: var(--bronze); color: var(--ink); }
.btn--bronze::before { background: var(--bone); }

.btn--ghost { border-color: rgba(244, 239, 231, .3); color: var(--bone); }
.btn--ghost::before { background: var(--bone); }
.btn--ghost:hover { color: var(--ink); border-color: var(--bone); }

.btn--line { height: 46px; padding: 0 22px; border-color: rgba(212, 173, 131, .5); color: var(--bone); font-size: 14px; }
.btn--line::before { background: var(--bronze); }
.btn--line:hover { color: var(--ink); border-color: var(--bronze); }

.btn--dark { background: var(--ink); color: var(--bone); }
.btn--dark::before { background: var(--bronze); }
.btn--dark:hover { color: var(--ink); }

.btn--block { width: 100%; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  font-weight: 500;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .6s var(--ease), color .3s;
}
.link:hover { color: var(--bronze); background-size: 30% 1px; }
.link i { font-style: normal; transition: transform .5s var(--ease); }
.link:hover i { transform: translateX(6px); }

.round-btn {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--bone);
  font-size: 18px;
  cursor: pointer;
  transition: background .4s var(--ease), color .4s, border-color .4s;
}
.round-btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* ---------- Loader ---------- */

.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bone);
  transition: transform 1.1s var(--ease-io), visibility 0s 1.1s;
}
.js.is-loaded .loader { transform: translateY(-100%); visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 18px; }
.loader__mark { width: 120px; height: 72px; color: var(--bronze); --mw-sw: 10; --mw-leaf: 3; animation: markIn 1s var(--ease) both; }
.loader__count { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--muted-dark); font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 48px; height: 1px; background: var(--line-dark); }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--bronze); transition: width .2s linear; }
@keyframes markIn { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }

/* ---------- Grain, progress, cursor ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .06;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 160; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--bronze); transform: scaleX(0); transform-origin: left; }

.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate3d(-100px, -100px, 0); }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--bronze); }
.cursor__ring {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(185, 138, 92, .6);
  mix-blend-mode: normal;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .45s, border-color .45s;
}
.cursor__ring em { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--bronze); }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--bronze); border-color: var(--bronze); }
.cursor.is-label .cursor__ring em { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  color: var(--bone);
  transition: transform .6s var(--ease), background .5s, border-color .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(15, 21, 19, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line-dark);
}
.header.is-hidden { transform: translateY(-100%); }

.header__inner { display: flex; align-items: center; gap: 40px; height: 84px; }

.logo { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.logo__mark { width: 52px; height: 32px; color: var(--bronze); --mw-sw: 18; --mw-leaf: 5; }
.logo__text { display: grid; font-family: var(--serif); font-size: 26px; line-height: .9; letter-spacing: .01em; }
.logo__text small { font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--muted-dark); margin-top: 5px; }

.nav { display: flex; gap: 34px; font-size: 14px; }
.nav a { position: relative; color: rgba(244, 239, 231, .75); transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--bronze); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover { color: var(--bone); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.burger { display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; cursor: pointer; }
.burger span { position: absolute; left: 15px; right: 15px; height: 1.5px; background: var(--bone); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px var(--gutter) 40px;
  background: var(--ink);
  color: var(--bone);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility 0s .8s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-io); }
.menu__nav { display: grid; }
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--serif);
  font-size: clamp(40px, 11vw, 64px);
  line-height: 1;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.menu__nav a small { font-family: var(--sans); font-size: 12px; color: var(--bronze); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .3s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .35s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .4s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .45s; }
.menu__foot { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }

/* ---------- Placeholders ---------- */

.ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.ph__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.8;
}
.ph__label small { display: block; font-family: var(--serif); font-size: 18px; font-style: italic; letter-spacing: 0; text-transform: none; font-weight: 400; opacity: .8; }

.ph--dark {
  color: rgba(244, 239, 231, .55);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(185, 138, 92, .28), transparent 60%),
    repeating-linear-gradient(90deg, rgba(244, 239, 231, .04) 0 1px, transparent 1px 48px),
    linear-gradient(180deg, #24302a, #121916);
}
.ph--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch .ph--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 21, 19, .45), rgba(15, 21, 19, 0) 38%);
  pointer-events: none;
}

.ph--warm {
  color: rgba(26, 32, 29, .55);
  background:
    radial-gradient(90% 60% at 30% 20%, rgba(255, 255, 255, .5), transparent 60%),
    repeating-linear-gradient(90deg, rgba(15, 21, 19, .04) 0 1px, transparent 1px 48px),
    linear-gradient(160deg, #e9dfcf, #d6c8b2);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 150px 0 110px;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
}

.hero__lines { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); pointer-events: none; }
.hero__lines span { border-left: 1px solid rgba(244, 239, 231, .05); }
.hero__lines span:last-child { border-right: 1px solid rgba(244, 239, 231, .05); }

.hero__glow {
  position: absolute;
  width: 70vw;
  height: 70vw;
  right: -20vw;
  top: -30vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(185, 138, 92, .22), transparent);
  filter: blur(20px);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
}

.hero__eyebrow { color: rgba(244, 239, 231, .8); margin-bottom: clamp(24px, 3vw, 40px); }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(60px, 9.6vw, 164px);
  line-height: .9;
  letter-spacing: -.025em;
}
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: block; }
.line:nth-child(2) { padding-left: .9em; }
.line:nth-child(4) { padding-left: 1.6em; }

.hero__bottom { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-top: clamp(36px, 4vw, 56px); }
.hero__lead { max-width: 430px; color: rgba(244, 239, 231, .7); font-size: 16px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Desktop only: lift the hero buttons slightly above the lead's last line */
@media (min-width: 1081px) {
  .hero__actions { margin-bottom: 26px; }
}

.hero__visual { position: relative; }

.arch {
  position: relative;
  aspect-ratio: 3 / 4.3;
  border-radius: 999px 999px 26px 26px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
}
.arch__inner { position: absolute; inset: 0; }
.arch .ph { inset: -10% 0; }

[data-parallax] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

.seal {
  position: absolute;
  left: -64px;
  bottom: 18%;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 21, 19, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-dark);
}
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal text { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; fill: var(--bone); }
.seal__center { font-family: var(--serif); font-size: 34px; font-style: italic; color: var(--bronze-2); }
@keyframes spin { to { transform: rotate(360deg); } }

.glass {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(244, 239, 231, .08);
  border: 1px solid rgba(244, 239, 231, .16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--bone);
}
.glass--light { background: rgba(250, 247, 242, .82); border-color: rgba(15, 21, 19, .08); color: var(--text); box-shadow: 0 30px 60px -30px rgba(15, 21, 19, .35); }
.glass__kicker { font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze-2); }
.glass--light .glass__kicker { color: var(--bronze); }
.glass strong { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.1; }
.glass strong em { color: var(--bronze-2); }
.glass--light strong em { color: var(--bronze); }
.glass__bar { display: block; height: 2px; margin-top: 8px; border-radius: 2px; background: rgba(244, 239, 231, .15); overflow: hidden; }
.glass__bar span { display: block; height: 100%; width: 78%; background: var(--bronze); transform-origin: left; }

.hero__card { position: absolute; right: -28px; top: 14%; width: 210px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(244, 239, 231, .55);
  transform: translateX(-50%);
}
.scroll-cue__line { position: relative; width: 1px; height: 46px; background: rgba(244, 239, 231, .15); overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--bronze); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }

/* Hero intro choreography (only when JS is running) */
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.3s var(--ease); }
.js .hero__eyebrow,
.js .hero__bottom,
.js .hero__card,
.js .seal,
.js .scroll-cue { opacity: 0; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .hero__bottom, .js .hero__card { transform: translateY(24px); }
.js .seal { transform: scale(.7) rotate(-30deg); }
.js .arch { clip-path: inset(100% 0 0 0 round 999px 999px 26px 26px); transition: clip-path 1.6s var(--ease-io); }
.js .arch__inner { transform: scale(1.25); transition: transform 2s var(--ease); }

.js.is-loaded .hero__title .line > span { transform: none; }
.js.is-loaded .hero__title .line:nth-child(1) > span { transition-delay: .15s; }
.js.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .25s; }
.js.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: .35s; }
.js.is-loaded .hero__title .line:nth-child(4) > span { transition-delay: .45s; }
.js.is-loaded .hero__eyebrow { opacity: 1; transition-delay: .1s; }
.js.is-loaded .arch { clip-path: inset(0 0 0 0 round 999px 999px 26px 26px); transition-delay: .2s; }
.js.is-loaded .arch__inner { transform: scale(1); transition-delay: .2s; }
.js.is-loaded .hero__bottom { opacity: 1; transform: none; transition-delay: .75s; }
.js.is-loaded .seal { opacity: 1; transform: none; transition-delay: 1s; }
.js.is-loaded .hero__card { opacity: 1; transform: none; transition-delay: 1.15s; }
.js.is-loaded .scroll-cue { opacity: 1; transition-delay: 1.4s; }

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
.marquee__track { display: flex; width: max-content; align-items: center; gap: 40px; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(32px, 4vw, 58px); line-height: 1; white-space: nowrap; }
.marquee span:nth-of-type(even) { font-style: italic; color: var(--bronze); }
.marquee i { font-style: normal; font-size: 18px; color: var(--stone); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Paths ---------- */

.paths { background: var(--bone); }
.paths__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.path:nth-child(2) { margin-top: clamp(0px, 10vw, 160px); }

.path__media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius);
  overflow: hidden;
}
.path__media .ph { inset: -8% 0; transition: filter .8s var(--ease); }
.path:hover .path__media .ph { filter: brightness(1.05) saturate(1.1); }
.path__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15, 21, 19, .06); pointer-events: none; }

.path__body { padding: 32px 4px 0; }
.path__tag { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.path h3 { margin: 20px 0 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: -.01em; }
.path h3 em { color: var(--bronze); }
.path ul { display: grid; gap: 12px; margin-bottom: 28px; }
.path li { position: relative; padding-left: 28px; color: var(--muted); }
.path li::before { content: ""; position: absolute; left: 0; top: .8em; width: 14px; height: 1px; background: var(--bronze); }

/* ---------- Advantages ---------- */

.advantages { background: var(--paper); }
.advantages__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); }
.advantages__sticky { position: sticky; top: 130px; display: grid; gap: 26px; justify-items: start; }

.adv-list { counter-reset: adv; border-top: 1px solid var(--line); }
.adv {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .6s var(--ease);
}
.adv__num { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.2; color: var(--bronze); }
.adv h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; margin-bottom: 10px; transition: transform .7s var(--ease); }
.adv p { color: var(--muted); max-width: 520px; }

@media (min-width: 861px) {
  .js .adv-list .adv { opacity: .38; }
  .js .adv-list .adv.is-active { opacity: 1; }
  .js .adv.is-active h3 { transform: translateX(10px); }
}

/* ---------- Quality ---------- */

.quality {
  position: relative;
  padding: clamp(110px, 14vw, 200px) 0;
  background:
    radial-gradient(60% 50% at 85% 100%, rgba(185, 138, 92, .16), transparent 70%),
    var(--ink);
  color: var(--bone);
  overflow: hidden;
}
.quality__quote {
  margin: 34px 0 clamp(70px, 9vw, 130px);
  max-width: 1150px;
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 82px);
  line-height: 1.05;
  letter-spacing: -.015em;
}
.quality__quote .w { transition: opacity .35s linear, color .35s linear; }
.js .quality__quote.is-split .w { opacity: .16; }
.js .quality__quote.is-split .w.is-on { opacity: 1; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.stat { padding: 34px 28px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.stat dt { font-family: var(--serif); font-size: clamp(54px, 6vw, 92px); line-height: 1; }
.stat dt sup { font-size: .32em; font-style: italic; color: var(--bronze-2); vertical-align: top; margin-left: 4px; position: relative; top: .5em; }
.stat dd { margin-top: 12px; font-size: 14px; color: var(--muted-dark); }

/* ---------- Team ---------- */

.team { background: var(--bone); overflow: hidden; }
.team__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.team__copy { display: grid; gap: 26px; justify-items: start; }

.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; margin-top: 10px; padding-top: 26px; border-top: 1px solid var(--line); }
.founder { display: grid; gap: 4px; }
.founder__name { font-family: var(--serif); font-size: 30px; font-style: italic; line-height: 1.1; }
.founder__role { font-size: 13px; color: var(--muted); }

.team__visual { position: relative; padding-bottom: 18%; }
.portrait { position: relative; margin: 0; }
.portrait__img { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.portrait__img img { width: 100%; height: 115%; object-fit: cover; margin-top: -7.5%; }
.portrait figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 21, 19, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--bone);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
}

.portrait--main { width: 64%; margin-left: auto; }
.portrait--main .portrait__img { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); }
.portrait--main figcaption { left: 50%; transform: translateX(-50%); }
.portrait--second { position: absolute; left: 0; bottom: 0; width: 42%; z-index: 2; }
.portrait--second .portrait__img { aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px rgba(15, 21, 19, .45); outline: 8px solid var(--bone); }

.team__badge { position: absolute; left: 0; top: 10%; z-index: 3; width: 220px; }

/* ---------- Testimonials ---------- */

.testimonials { background: var(--moss); color: var(--bone); }
.testimonials__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); }
.testimonials__nav { display: flex; align-items: center; gap: 12px; }
.testimonials__count { margin-right: 14px; font-size: 14px; color: var(--muted-dark); font-variant-numeric: tabular-nums; }
.testimonials__count b { color: var(--bone); font-weight: 500; }

.slider { display: grid; }
.slide {
  grid-area: 1 / 1;
  display: grid;
  gap: 40px;
  align-content: start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), visibility 0s .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .9s var(--ease) .15s, transform .9s var(--ease) .15s; }
.stars { color: var(--bronze-2); letter-spacing: .3em; font-size: 14px; }
.slide blockquote {
  max-width: 1100px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.9vw, 60px);
  line-height: 1.12;
  letter-spacing: -.01em;
}
.slide figcaption { display: flex; align-items: center; gap: 16px; }
.slide figcaption strong { display: block; font-weight: 500; font-size: 16px; }
.slide figcaption small { display: block; font-size: 14px; color: var(--muted-dark); }
.avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--bronze-2), var(--bronze));
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
}

.slider__progress { height: 1px; margin-top: clamp(48px, 6vw, 80px); background: var(--line-dark); }
.slider__progress span { display: block; height: 100%; width: 100%; background: var(--bronze); transform: scaleX(0); transform-origin: left; }

/* ---------- Contact ---------- */

.contact { background: var(--paper); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.contact__copy { display: grid; gap: 26px; }

.host {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px 14px 14px;
  margin-top: 6px;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: var(--bone);
  border: 1px solid var(--line);
}
.host img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.host strong { display: block; font-weight: 600; font-size: 15px; }
.host span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.online { width: 8px; height: 8px; border-radius: 50%; background: #4caf7a; box-shadow: 0 0 0 4px rgba(76, 175, 122, .16); }

.contact__list { display: grid; margin-top: 10px; border-top: 1px solid var(--line); }
.contact__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__list span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact__list a, .contact__list p { font-family: var(--serif); font-size: 22px; text-align: right; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--bronze); }
.contact__multi { display: grid; gap: 6px; justify-items: end; }

.form {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 30px;
  background: var(--white, #fff);
  border: 1px solid var(--line);
  box-shadow: 0 50px 100px -50px rgba(15, 21, 19, .3);
}
.form__intent { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; padding: 0; border: 0; }
.form__intent legend { width: 100%; margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .35s var(--ease), color .35s, border-color .35s; }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.pill input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 3px; }

.field { position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field input, .field textarea {
  width: 100%;
  padding: 26px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  border-radius: 0;
  resize: vertical;
  transition: border-color .4s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bronze); }
.field label {
  position: absolute;
  left: 0;
  top: 26px;
  font-size: 16px;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .4s var(--ease), color .4s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.78); color: var(--bronze); }

.form .btn { margin-top: 12px; }
.form__note { font-size: 13px; color: var(--muted); text-align: center; }
.form__note.is-success { color: var(--bronze); font-weight: 500; }
.field.is-error input { border-color: #c0563f; }

/* ---------- Footer ---------- */

.footer { padding: clamp(80px, 10vw, 140px) 0 36px; background: var(--ink); color: var(--bone); overflow: hidden; }
.footer__top { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__claim { font-family: var(--serif); font-size: clamp(36px, 4.6vw, 70px); line-height: 1; letter-spacing: -.015em; }
.footer__word {
  margin: clamp(40px, 6vw, 80px) 0 10px;
  font-family: var(--serif);
  font-size: clamp(120px, 30vw, 460px);
  line-height: .8;
  letter-spacing: -.04em;
  text-align: center;
  background: linear-gradient(180deg, rgba(212, 173, 131, .55), rgba(212, 173, 131, 0) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--muted-dark); }
.footer__bottom nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--bone); }

/* ---------- Language switch ---------- */

.lang { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: rgba(244, 239, 231, .35); }
.no-js .lang { display: none; }
.lang button {
  position: relative;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: rgba(244, 239, 231, .55);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color .3s;
}
.lang button:hover { color: var(--bone); }
.lang button[aria-pressed="true"] { color: var(--bone); }
.lang button[aria-pressed="true"]::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 3px; height: 1px; background: var(--bronze); }

.nav a[aria-current="page"] { color: var(--bone); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu__nav a[aria-current="page"] { color: var(--bronze-2); }

/* ---------- Properties page ---------- */

.props-hero {
  position: relative;
  padding: 170px 0 70px;
  background:
    radial-gradient(60% 80% at 90% 0%, rgba(185, 138, 92, .2), transparent 70%),
    var(--ink);
  color: var(--bone);
  overflow: hidden;
}
.props-hero .wrap { position: relative; }
.props-hero__title {
  margin: 22px 0 22px;
  max-width: 1200px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 108px);
  line-height: .95;
  letter-spacing: -.02em;
}
.props-hero__title em { color: var(--bronze-2); }
.props-hero__lead { max-width: 560px; color: rgba(244, 239, 231, .7); font-size: clamp(16px, 1.3vw, 18px); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.no-js .filters { display: none; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(244, 239, 231, .22);
  background: transparent;
  color: var(--bone);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s, border-color .35s;
}
.filter b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: rgba(244, 239, 231, .12); font-size: 12px; font-weight: 600; }
.filter i { width: 10px; height: 10px; border-radius: 50%; }
.filter--venta i { background: var(--sale); box-shadow: 0 0 0 3px rgba(142, 59, 36, .3); }
.filter--renta i { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
.filter:hover { border-color: var(--bone); }
.filter.is-active { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.filter.is-active b { background: var(--ink); color: var(--bone); }

.catalog { padding: clamp(48px, 6vw, 80px) 0 clamp(96px, 10vw, 140px); background: var(--paper); }

.sample-note {
  margin-bottom: 36px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--bone);
  border: 1px dashed rgba(185, 138, 92, .5);
  font-size: 14px;
  color: var(--muted);
}
.sample-note b { color: var(--text); font-weight: 600; }

.props-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }

.prop {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.prop[hidden] { display: none; }
.prop:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(15, 21, 19, .4); border-color: transparent; }
.prop.is-filtered { animation: propIn .6s var(--ease) both; }
@keyframes propIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.prop__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.prop__media .ph { transition: transform 1.2s var(--ease); }
.prop:hover .prop__media .ph { transform: scale(1.05); }
.prop__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Placeholder tints so the grid doesn't look repetitive */
.ph--v2 { background: radial-gradient(90% 60% at 70% 20%, rgba(255, 255, 255, .45), transparent 60%), repeating-linear-gradient(90deg, rgba(15, 21, 19, .04) 0 1px, transparent 1px 48px), linear-gradient(160deg, #dfe3dc, #c7cfc5); }
.ph--v3 { background: radial-gradient(90% 60% at 30% 20%, rgba(255, 255, 255, .45), transparent 60%), repeating-linear-gradient(90deg, rgba(15, 21, 19, .04) 0 1px, transparent 1px 48px), linear-gradient(160deg, #e4ddd2, #cfc2ad); }
.ph--v4 { background: radial-gradient(90% 60% at 60% 30%, rgba(255, 255, 255, .45), transparent 60%), repeating-linear-gradient(90deg, rgba(15, 21, 19, .04) 0 1px, transparent 1px 48px), linear-gradient(160deg, #e2e2dc, #cbc9bf); }
.ph--v5 { background: radial-gradient(90% 60% at 30% 30%, rgba(255, 255, 255, .45), transparent 60%), repeating-linear-gradient(90deg, rgba(15, 21, 19, .04) 0 1px, transparent 1px 48px), linear-gradient(160deg, #e7dccb, #d3c0a2); }
.ph--v6 { background: radial-gradient(90% 60% at 70% 30%, rgba(255, 255, 255, .45), transparent 60%), repeating-linear-gradient(90deg, rgba(15, 21, 19, .04) 0 1px, transparent 1px 48px), linear-gradient(160deg, #dde0d8, #c4c8bc); }

/* Sale / rent label: readable on any photo */
.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.badge--venta { background: var(--sale); color: #fff; }
.badge--venta::before { background: #fff; }
.badge--renta { background: #fff; color: var(--ink); border: 1px solid rgba(15, 21, 19, .08); }
.badge--renta::before { background: var(--sale); }

.prop__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.prop__zone { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prop__zone svg { width: 15px; height: 15px; fill: none; stroke: var(--bronze); stroke-width: 1.7; }
.prop h3 { margin: 10px 0 16px; font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.1; }
.prop__specs { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.prop__specs li { display: flex; align-items: center; gap: 7px; }
.prop__specs svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }

.prop__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.prop__price { font-family: var(--serif); font-size: 28px; line-height: 1; white-space: nowrap; }
.prop__price small { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.prop[data-status="venta"] .prop__price { color: var(--sale); }
.prop__ask {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s, border-color .35s;
}
.prop__ask i { font-style: normal; transition: transform .4s var(--ease); }
.prop__ask:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.prop__ask:hover i { transform: translateX(4px); }

.props-empty { padding: 60px 0; text-align: center; color: var(--muted); }

.props-cta { padding: clamp(80px, 9vw, 130px) 0; background: var(--moss); color: var(--bone); }
.props-cta__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.props-cta .display { margin-top: 18px; max-width: 760px; }

@media (max-width: 1080px) {
  .props-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .lang { margin-left: auto; }
}

@media (max-width: 640px) {
  .props-hero { padding: 130px 0 56px; }
  .props-grid { grid-template-columns: 1fr; }
  .filters { gap: 8px; }
  .filter { height: 44px; padding: 0 14px; font-size: 13px; }
  .badge { top: 14px; left: 14px; padding: 9px 14px 9px 11px; font-size: 11px; }
}

@media (max-width: 380px) {
  .prop__foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- Chat assistant ---------- */

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.chat { position: fixed; right: 24px; bottom: 24px; z-index: 260; }

.chat__fab {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: var(--bronze);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 18px 40px -14px rgba(15, 21, 19, .55), 0 0 0 1px rgba(255, 255, 255, .12) inset;
  transition: transform .5s var(--ease), background .4s, opacity .6s var(--ease);
}
.chat__fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--bronze);
  animation: chatPulse 2.8s var(--ease) infinite;
  pointer-events: none;
}
.chat__fab:hover { transform: scale(1.06); background: var(--bronze-2); }
.chat__fab svg { position: absolute; width: 26px; height: 26px; transition: transform .5s var(--ease), opacity .3s; }
.chat__fab-open { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.chat__fab-open circle { fill: currentColor; stroke: none; }
.chat__fab-close { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; opacity: 0; transform: rotate(-90deg); }
.chat.is-open .chat__fab::after { animation: none; opacity: 0; }
.chat.is-open .chat__fab-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat.is-open .chat__fab-close { opacity: 1; transform: none; }
@keyframes chatPulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.55); opacity: 0; } }

.js:not(.is-loaded) .chat__fab { opacity: 0; transform: scale(.6); }

.chat__hint {
  position: absolute;
  right: 76px;
  bottom: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 16px 40px -16px rgba(15, 21, 19, .45);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.chat__hint em { font-family: var(--serif); font-size: 17px; color: var(--bronze); }
.chat__hint.is-visible { opacity: 1; transform: none; }

.chat__panel {
  position: absolute;
  right: 0;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  width: 390px;
  height: min(620px, calc(100vh - 130px));
  border-radius: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 50px 100px -40px rgba(15, 21, 19, .55);
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.96);
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .55s;
}
.chat.is-open .chat__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .55s var(--ease); }

.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 16px 18px;
  background: var(--ink);
  color: var(--bone);
}
.chat__avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(244, 239, 231, .08); border: 1px solid var(--line-dark); color: var(--bronze); }
.chat__avatar svg { width: 30px; height: 18px; --mw-sw: 22; --mw-leaf: 6; }
.chat__title { display: grid; gap: 2px; margin-right: auto; }
.chat__title strong { font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.1; }
.chat__title span { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted-dark); }
.chat__close { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: var(--bone); cursor: pointer; transition: background .3s, color .3s; }
.chat__close:hover { background: var(--bone); color: var(--ink); }
.chat__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.chat__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(80% 40% at 100% 0%, rgba(185, 138, 92, .08), transparent 70%),
    var(--bone);
}

.msg {
  max-width: 86%;
  padding: 12px 15px;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
  animation: msgIn .45s var(--ease) both;
}
.msg--bot { align-self: flex-start; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; }
.msg--user { align-self: flex-end; background: var(--ink); color: var(--bone); border-radius: 18px 18px 6px 18px; }
.msg--error { border-color: rgba(192, 86, 63, .35); background: #fbf3f0; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.msg--typing { display: flex; gap: 5px; padding: 15px 16px; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--stone); animation: typing 1.2s infinite ease-in-out; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.msg-link + .msg-link { margin-top: -8px; }
.msg-link { align-self: flex-start; margin: -2px 0 4px 4px; font-size: 13px; font-weight: 600; color: var(--bronze); }
.msg-link:hover { color: var(--text); }

.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip {
  padding: 9px 14px;
  border: 1px solid rgba(185, 138, 92, .45);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  color: var(--text);
  font-size: 13.5px;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }

.chat__form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 12px 10px 16px; background: var(--paper); border-top: 1px solid var(--line); }
.chat__form textarea {
  flex: 1;
  max-height: 120px;
  padding: 11px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  resize: none;
}
.chat__form textarea:focus { outline: none; }
.chat__send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: var(--bone); cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease); }
.chat__send:hover { background: var(--bronze); color: var(--ink); transform: translateX(2px); }
.chat__send:disabled { opacity: .45; cursor: default; transform: none; }
.chat__send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.chat__note { padding: 0 16px 12px; background: var(--paper); font-size: 11px; line-height: 1.4; color: var(--muted); text-align: center; }

.menu.is-open ~ .chat { display: none; }

@media (max-width: 560px) {
  .chat { right: 16px; bottom: 16px; }
  .chat__fab { width: 58px; height: 58px; }
  .chat__hint { right: 70px; bottom: 11px; }
  .chat__panel {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    border: 0;
    transform: translateY(24px);
  }
  .chat.is-open .chat__fab { opacity: 0; pointer-events: none; }
}

/* ---------- Scroll reveals ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(44px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] .portrait__img { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-io); }
.js [data-reveal="clip"] .portrait__img img { transform: scale(1.2); transition: transform 2s var(--ease); }
.js [data-reveal="clip"].is-in .portrait__img { clip-path: inset(0 0 0 0); }
.js [data-reveal="clip"].is-in .portrait__img img { transform: none; }
.js .portrait--second[data-reveal="clip"].is-in .portrait__img { transition-delay: .25s; }
.js .portrait--second[data-reveal="clip"].is-in .portrait__img img { transition-delay: .25s; }

/* ---------- Reduced motion: only the intrusive bits ---------- */

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .seal svg, .scroll-cue__line::after, .chat__fab::after { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__inner { gap: 24px; }
}

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr .8fr; }
  .hero__bottom { grid-template-columns: 1fr; }
  .seal { left: -40px; width: 120px; height: 120px; }
  .seal__center { font-size: 28px; }
  .hero__card { right: -12px; }
}

@media (max-width: 860px) {
  .header__cta { display: none; }
  .burger { display: block; }
  .header__inner { height: 72px; }

  .hero { padding: 120px 0 100px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__title { font-size: clamp(54px, 15vw, 110px); }
  .line:nth-child(2) { padding-left: .5em; }
  .line:nth-child(4) { padding-left: .9em; }
  .hero__visual { width: min(100%, 460px); margin: 0 auto; }
  .seal { left: -14px; bottom: 10%; width: 112px; height: 112px; }
  .seal text { font-size: 12.5px; }
  .hero__card { right: -8px; top: 10%; width: 190px; }
  .hero__lines { grid-template-columns: repeat(2, 1fr); }
  .scroll-cue { display: none; }

  .paths__grid { grid-template-columns: 1fr; gap: 64px; }
  .path:nth-child(2) { margin-top: 0; }

  .advantages__grid { grid-template-columns: 1fr; }
  .advantages__sticky { position: static; }
  .adv { grid-template-columns: 54px 1fr; padding: 30px 0; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 30px 18px 30px 0; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line-dark); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }

  .team__grid { grid-template-columns: 1fr; }
  .team__visual { width: min(100%, 560px); margin: 0 auto; }
  .team__badge { width: 200px; }

  .testimonials__head { flex-wrap: wrap; }

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

@media (max-width: 560px) {
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__card { width: 168px; padding: 14px 16px; }
  .glass strong { font-size: 20px; }

  .marquee { padding: 20px 0; }

  .founders { grid-template-columns: 1fr; gap: 16px; }
  .portrait--main { width: 72%; }
  .portrait--second { width: 48%; }
  .portrait--second .portrait__img { outline-width: 5px; }
  .team__badge { display: none; }
  .team__visual { padding-bottom: 24%; }

  .testimonials__nav { width: 100%; justify-content: space-between; }
  .testimonials__count { margin-right: auto; }

  .field-row { grid-template-columns: 1fr; }
  .host { width: 100%; border-radius: 20px; }
  .contact__list li { flex-direction: column; gap: 4px; }
  .contact__list a, .contact__list p { text-align: left; }
  .contact__multi { justify-items: start; }

  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
