/* =========================================================
   EstateVision — styles
   ========================================================= */

:root {
  --bg: #ffffff;
  --surface: #f3f3f1;
  --surface-2: #e9e8e5;
  --ink: #151515;
  --ink-2: #3b3b3b;
  --muted: #7d7d7a;
  --line: rgba(21, 21, 21, .08);
  --line-2: rgba(21, 21, 21, .14);
  --navy: #0f1a2e;
  --navy-2: #1a2740;
  --accent: #a8875f;

  --f-head: "Josefin Sans", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-script: "Mrs Saint Delafield", cursive;

  --max: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --frame: clamp(10px, 1.7vw, 24px);
  --r-xl: clamp(22px, 2.4vw, 32px);
  --r-lg: 20px;
  --r-md: 14px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
.no-trans { transition: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--navy); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(80px, 10vw, 140px) 0; }
.frame-sec {
  position: relative;
  margin: 0 var(--frame);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: clamp(70px, 9vw, 120px) 0;
  overflow: hidden;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font: 400 clamp(26px, 2.4vw, 32px)/1 var(--f-script);
  color: var(--ink-2);
  margin-bottom: 10px;
  transform-origin: left;
}
.eyebrow--light { color: rgba(255,255,255,.85); }
.h2 {
  font: 400 clamp(32px, 3.8vw, 52px)/1.08 var(--f-head);
  letter-spacing: -.01em;
  color: var(--ink);
}
.h2--xl { font-size: clamp(38px, 5.2vw, 76px); }
.lead { color: var(--muted); font-size: 14.5px; max-width: 440px; margin-top: 18px; }

/* split words */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em 0 .06em; margin: -.12em 0 -.06em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h);
  padding: 0 30px;
  border-radius: 999px;
  font: 500 13px/1 var(--f-body);
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .7s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn__t { position: relative; display: inline-block; line-height: 1; }
.btn .ico { width: 16px; height: 16px; transition: transform .6s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }

.btn--light { background: #fff; color: var(--ink); box-shadow: 0 8px 30px -12px rgba(0,0,0,.25); }
.btn--light::before { background: var(--navy); }
.btn--light:hover { color: #fff; }
.btn--ghost { color: var(--ink); border: 1px solid rgba(21,21,21,.18); background: rgba(255,255,255,.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost::before { background: #fff; }
.btn--soft { background: var(--surface); color: var(--ink); }
.btn--soft::before { background: var(--navy); }
.btn--soft:hover { color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark::before { background: var(--accent); }
.btn--sm { --h: 40px; padding: 0 22px; font-size: 12.5px; }
.btn--block { width: 100%; }

.round-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  background: #fff;
  transition: background .5s var(--ease), color .5s var(--ease), transform .5s var(--ease), opacity .4s;
}
.round-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.round-btn:active { transform: scale(.92); }
.round-btn[disabled] { opacity: .35; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; position: relative; padding-bottom: 4px; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(.3); transform-origin: left; transition: transform .7s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow .ico { transition: transform .6s var(--ease); }
.link-arrow:hover .ico { transform: translateX(5px); }

.glass {
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ---------- Media / placeholders ---------- */
.media { position: relative; overflow: hidden; background: linear-gradient(135deg, #efeeeb 0%, #dedcd7 100%); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-empty img { opacity: 0; }
.media.is-empty::after {
  content: attr(data-ph);
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 7px 12px 7px 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d7d7a' stroke-width='1.6'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/svg%3E") 11px 50% / 14px no-repeat;
  font: 500 10.5px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
}
.media.is-empty::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: shimmer 2.8s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: grid; place-items: center;
}
.preloader__inner { width: min(320px, 70vw); }
.preloader__logo { display: block; font: 400 clamp(46px, 7vw, 68px)/1 var(--f-script); color: var(--ink); text-align: center; margin-bottom: 26px; }
.preloader__meta { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.preloader__count { font-variant-numeric: tabular-nums; }
.preloader__bar { height: 1px; background: var(--line-2); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
html:not(.js) .preloader { display: none; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 999;
    width: 10px; height: 10px; margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: var(--navy);
    pointer-events: none;
    transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .4s, opacity .3s;
    will-change: transform;
  }
  .cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(15,26,46,.1); }
  .cursor.has-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--navy); }
  .cursor.is-hidden { opacity: 0; }
  .cursor__label { font: 500 11px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s var(--ease); }
  .cursor.has-label .cursor__label { opacity: 1; transform: scale(1); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: transform .8s var(--ease), background .5s, box-shadow .5s;
}
.nav.is-scrolled { background: rgba(255,255,255,.72); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--frame) + 6px); }
.nav__logo { font: 400 30px/1 var(--f-script); color: var(--ink); padding-top: 6px; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 40px); position: absolute; left: 50%; transform: translateX(-50%); }
.nav__links a { position: relative; font-size: 12.5px; color: var(--ink-2); padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .6s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scale(1); }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); position: relative; z-index: 2; }
.nav__burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform .6s var(--ease), top .6s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  padding: calc(var(--nav-h) + 30px) var(--pad) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease-io);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links a { display: flex; align-items: baseline; gap: 14px; font: 400 clamp(36px, 10vw, 56px)/1.25 var(--f-head); opacity: 0; transform: translateY(40px); transition: opacity .6s, transform 1s var(--ease); }
.menu__links small { font: 400 11px var(--f-body); color: var(--muted); }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(1) { transition-delay: .25s; }
.menu-open .menu__links a:nth-child(2) { transition-delay: .3s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: .35s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: .4s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: .45s; }
.menu-open .menu__links a:nth-child(6) { transition-delay: .5s; }
.menu__foot { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: var(--nav-h) var(--frame) 0; }
.hero__frame {
  position: relative;
  height: calc(100svh - var(--nav-h) - var(--frame));
  min-height: 620px; max-height: 1000px;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; left: 0; right: 0; top: -12%; bottom: 0; z-index: -2; }
.hero__media img { transform-origin: 60% 50%; will-change: transform; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.2) 38%, rgba(255,255,255,0) 60%),
    linear-gradient(0deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,0) 30%);
  pointer-events: none;
}
.hero__content { position: absolute; left: clamp(24px, 8vw, 110px); top: clamp(70px, 15vh, 140px); max-width: 560px; }
.hero__title { --h1: clamp(44px, 6.1vw, 88px); position: relative; display: inline-block; font: 500 var(--h1)/1.02 var(--f-head); letter-spacing: -.015em; color: var(--ink); }
.hero__title .line { display: block; overflow: hidden; padding: .1em 0 0; margin-top: -.1em; }
.hero__title .line > span { display: inline-block; will-change: transform; }
/* sits on the baseline of line 1, right edge aligned with the widest title line */
.hero__title .line--sign { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.hero__sign { font: 400 max(15px, calc(var(--h1) * .25))/1 var(--f-script); letter-spacing: 0; color: rgba(21,21,21,.28); white-space: nowrap; pointer-events: none; }
.hero__text { margin-top: 28px; max-width: 360px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__actions .btn { min-width: 170px; }

.hero__stats {
  position: absolute; right: clamp(16px, 2.5vw, 34px); bottom: clamp(16px, 2.5vw, 34px);
  display: grid; grid-template-columns: repeat(4, auto); gap: clamp(20px, 3vw, 44px);
  padding: 22px clamp(20px, 2.6vw, 36px);
  border-radius: 22px;
  background: rgba(255,255,255,.22);
}
.stat { display: flex; flex-direction: column; }
.stat__val { display: flex; align-items: baseline; white-space: nowrap; font: 300 clamp(24px, 2.3vw, 32px)/1 var(--f-head); color: var(--ink); }
.stat__val b { font: inherit; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 8px; font-size: 11px; line-height: 1.2; color: var(--ink-2); opacity: .8; white-space: nowrap; }

/* hero search */
.hsearch {
  position: absolute; left: clamp(24px, 8vw, 110px); bottom: clamp(24px, 4vw, 44px);
  display: flex; align-items: center;
  height: 56px; width: 56px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 40px -14px rgba(0,0,0,.3);
  transition: width 1s var(--ease);
  overflow: hidden;
  z-index: 3;
}
.hsearch.is-open { width: min(720px, calc(100% - 48px)); }
.hsearch__toggle { position: relative; width: 56px; height: 56px; flex-shrink: 0; display: grid; place-items: center; }
.hsearch__toggle .ico { position: absolute; transition: transform .6s var(--ease), opacity .4s; }
.hsearch__toggle .ico--close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.hsearch.is-open .hsearch__toggle .ico:first-child { opacity: 0; transform: rotate(90deg) scale(.5); }
.hsearch.is-open .hsearch__toggle .ico--close { opacity: 1; transform: none; }
.hsearch__fields { display: flex; align-items: center; flex: 1; min-width: 600px; padding-right: 6px; }
.hsearch__field { flex: 1; display: flex; flex-direction: column; padding: 0 18px; border-left: 1px solid var(--line); opacity: 0; transform: translateX(-12px); transition: opacity .5s, transform .8s var(--ease); }
.hsearch.is-ready { overflow: visible; }
.hsearch__lbl { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hsearch__field input { border: 0; outline: 0; background: none; padding: 2px 0 0; font-size: 13px; width: 100%; }

/* custom dropdown */
.dd { position: relative; }
.dd__btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 2px 0 0; font-size: 13px; text-align: left; }
.dd__val.is-ph { color: #9a9a97; }
.dd__btn .ico { width: 14px; height: 14px; color: var(--muted); transform: rotate(90deg); transition: transform .5s var(--ease); }
.dd.is-open .dd__btn .ico { transform: rotate(-90deg); }
.dd__list {
  position: absolute; left: 6px; bottom: calc(100% + 22px);
  min-width: 210px;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px -18px rgba(15,26,46,.35), 0 2px 8px rgba(15,26,46,.06);
  opacity: 0; visibility: hidden;
  transform: translateY(10px) scale(.97);
  transform-origin: 30% 100%;
  transition: opacity .35s, transform .6s var(--ease), visibility 0s .6s;
  z-index: 10;
}
.dd.is-open .dd__list { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .6s var(--ease), visibility 0s; }
.dd__list li {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px; color: var(--ink-2);
  cursor: pointer;
  opacity: 0; transform: translateY(6px);
  transition: background .3s, color .3s, opacity .4s, transform .6s var(--ease);
}
.dd.is-open .dd__list li { opacity: 1; transform: none; }
.dd.is-open .dd__list li:nth-child(2) { transition-delay: 0s, 0s, .03s, .03s; }
.dd.is-open .dd__list li:nth-child(3) { transition-delay: 0s, 0s, .06s, .06s; }
.dd.is-open .dd__list li:nth-child(4) { transition-delay: 0s, 0s, .09s, .09s; }
.dd.is-open .dd__list li:nth-child(5) { transition-delay: 0s, 0s, .12s, .12s; }
.dd__list li:hover, .dd__list li.is-focus { background: var(--surface); color: var(--ink); }
.dd__list li.is-selected { color: var(--ink); font-weight: 500; }
.dd__list li.is-selected::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.hsearch__go { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 500; opacity: 0; transition: opacity .5s, background .4s; }
.hsearch__go:hover { background: var(--accent); }
.hsearch.is-open .hsearch__field, .hsearch.is-open .hsearch__go { opacity: 1; transform: none; }
.hsearch.is-open .hsearch__field:nth-child(1) { transition-delay: .25s; }
.hsearch.is-open .hsearch__field:nth-child(2) { transition-delay: .32s; }
.hsearch.is-open .hsearch__field:nth-child(3) { transition-delay: .39s; }
.hsearch.is-open .hsearch__go { transition-delay: .46s; }

/* ---------- Section heads ---------- */
.sec-head { margin-bottom: clamp(36px, 4vw, 56px); }
.sec-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.sec-head--split { display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 40px; }
.sec-head--split .lead { justify-self: end; margin: 0; }

/* ---------- Properties ---------- */
.props { overflow: hidden; }
.props__nav { display: flex; gap: 10px; }
.filters {
  position: relative;
  display: inline-flex; gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 26px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters button { position: relative; z-index: 1; padding: 9px 18px; border-radius: 999px; font-size: 12px; color: var(--muted); white-space: nowrap; transition: color .5s var(--ease); }
.filters button:hover { color: var(--ink); }
.filters button.is-active { color: var(--ink); }
.filters__glider { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: #fff; box-shadow: 0 4px 14px -6px rgba(0,0,0,.18); transition: transform .8s var(--ease), width .8s var(--ease); }

.carousel {
  padding-left: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.carousel.is-dragging { cursor: grabbing; }
.carousel__track { display: flex; gap: 16px; width: max-content; will-change: transform; padding-right: var(--pad); }

.pcard {
  position: relative;
  width: clamp(260px, 24vw, 310px);
  flex-shrink: 0;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
  transition: box-shadow .7s var(--ease), border-color .5s;
}
.pcard.is-hidden { display: none; }
.pcard:hover { box-shadow: 0 30px 60px -30px rgba(15,26,46,.28); border-color: transparent; }
.pcard__media { display: block; aspect-ratio: 4 / 3; border-radius: 14px; }
.pcard__media img { transition: transform 1.4s var(--ease); pointer-events: none; }
.pcard:hover .pcard__media img { transform: scale(1.07); }
.pcard__badge { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 500; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pcard__badge--hot { background: var(--navy); color: #fff; }
.pcard__fav {
  position: absolute; left: 16px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.9);
  transition: transform .5s var(--ease), background .3s;
}
.pcard__fav .ico { width: 15px; height: 15px; transition: fill .3s, stroke .3s; }
.pcard__fav:hover { transform: scale(1.1); }
.pcard__fav.is-on .ico { fill: #d9534f; stroke: #d9534f; }
.pcard__fav.pop { animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.pcard__price {
  position: absolute; right: 16px; top: 16px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(21,21,21,.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .01em;
}
.pcard__body { padding: 14px 8px 8px; }
.pcard__title { font: 500 14px/1.3 var(--f-body); }
.pcard__addr { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.pcard__addr .ico { width: 13px; height: 13px; }
.pcard__specs { display: flex; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-2); }
.pcard__specs li { display: flex; align-items: center; gap: 5px; }
.pcard__specs .ico { width: 14px; height: 14px; color: var(--muted); }

.pcard--more {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px; min-height: 100%;
  background: var(--navy); color: #fff; border: 0;
  overflow: hidden;
}
.pcard--more__icon { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; transition: transform .8s var(--ease), background .5s; }
.pcard--more:hover .pcard--more__icon { transform: rotate(45deg); background: #fff; color: var(--navy); }
.pcard--more__t { font: 400 30px/1.1 var(--f-head); }
.pcard--more__s { font-size: 12px; color: rgba(255,255,255,.55); }

.props__empty { display: none; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 30px; border-radius: var(--r-lg); background: var(--surface); }
.props__empty.is-visible { display: flex; }
.props__empty p { font-size: 13.5px; color: var(--muted); }
.props__empty b { display: block; font: 400 20px/1.3 var(--f-head); color: var(--ink); margin-bottom: 4px; }
.progress { position: relative; height: 3px; margin-top: 36px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.progress__thumb { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; border-radius: 3px; background: var(--ink); will-change: transform; }

/* ---------- Process ---------- */
.blueprint { position: absolute; right: -4%; top: -6%; width: 78%; height: 112%; pointer-events: none; }
.blueprint path { fill: none; stroke: #bdbcb7; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.blueprint path.bp-faint { stroke: #d4d3cf; }
.blueprint path.bp-strong { stroke: #a9a8a2; }
.process__inner { position: relative; display: grid; grid-template-columns: 1fr 340px; gap: clamp(30px, 6vw, 110px); align-items: end; }
.process__main .h2 { max-width: 600px; margin-bottom: 38px; }
.steps { display: grid; gap: 12px; max-width: 560px; counter-reset: s; }
.step {
  position: relative;
  display: grid; grid-template-columns: 70px 1fr 40px; align-items: center; gap: 12px;
  padding: 22px 22px 22px 16px;
  border-radius: var(--r-md);
  background: #fff;
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.step:hover { transform: translateX(8px); box-shadow: 0 24px 50px -30px rgba(15,26,46,.35); }
.step__num { font: 400 54px/.8 var(--f-script); color: var(--ink); text-align: center; padding-top: 10px; }
.step h3 { font: 600 13px/1.3 var(--f-body); margin-bottom: 5px; }
.step p { font-size: 12px; line-height: 1.6; color: var(--muted); }
.step__arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); opacity: 0; transform: scale(.6) rotate(-45deg); transition: all .7s var(--ease); }
.step:hover .step__arrow { opacity: 1; transform: none; background: var(--navy); color: #fff; border-color: var(--navy); }

.newsletter {
  position: relative;
  padding: 34px 28px 26px;
  border-radius: var(--r-lg);
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 80px -40px rgba(15,26,46,.6);
}
.newsletter__glow { position: absolute; width: 280px; height: 280px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(168,135,95,.45), transparent 65%); z-index: -1; animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-60px, 60px) scale(1.2); } }
.newsletter h3 { font: 500 17px/1.2 var(--f-body); margin-bottom: 26px; }
.newsletter p { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.65); margin-bottom: 24px; }
.newsletter__form { display: grid; gap: 12px; position: relative; }
.newsletter .btn { --h: 44px; border-radius: 10px; }
.newsletter .btn::before { background: var(--accent); }
.newsletter small { display: block; margin-top: 14px; font-size: 10.5px; color: rgba(255,255,255,.4); }

/* form messages */
.js-form { position: relative; }
.form-msg { display: none; font-size: 12px; }
.js-form.is-sent .form-msg { display: block; animation: fadeUp .8s var(--ease); }
.js-form.is-sent > :not(.form-msg):not(legend) { opacity: .4; pointer-events: none; }
.js-form .is-invalid { border-color: #d9534f !important; animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.svc {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px 26px 26px;
  min-height: 430px;
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  transition: color .7s var(--ease);
}
.svc::before { content: ""; position: absolute; inset: 0; background: var(--navy); z-index: -1; clip-path: circle(0% at 85% 12%); transition: clip-path 1.1s var(--ease); }
.svc:hover { color: #fff; }
.svc:hover::before { clip-path: circle(150% at 85% 12%); }
.svc__num { position: absolute; right: 26px; top: 26px; font: 400 40px/1 var(--f-script); opacity: .5; }
.svc__icon { width: 58px; height: 58px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; }
.svc__icon path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.svc:hover .svc__icon path { animation: draw 1.4s var(--ease) both; }
.svc:hover .svc__icon path:nth-child(2) { animation-delay: .1s; }
.svc:hover .svc__icon path:nth-child(3) { animation-delay: .2s; }
.svc:hover .svc__icon path:nth-child(4) { animation-delay: .3s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.svc h3 { font: 400 26px/1.1 var(--f-head); margin: 40px 0 12px; }
.svc p { font-size: 12.5px; line-height: 1.7; color: var(--muted); transition: color .7s var(--ease); }
.svc:hover p { color: rgba(255,255,255,.65); }
.svc ul { margin: 18px 0 24px; display: grid; gap: 7px; }
.svc li { position: relative; padding-left: 16px; font-size: 12px; }
.svc li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 1px; background: currentColor; }
.svc__link { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; }
.svc__link .ico { width: 16px; transition: transform .6s var(--ease); }
.svc:hover .svc__link .ico { transform: translateX(5px); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__visual { position: relative; padding: 0 12% 14% 0; }
.about__main { aspect-ratio: 4 / 5; border-radius: var(--r-xl); }
.about__main img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; }
.about__small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: var(--r-lg); border: 8px solid #fff; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.about__badge { position: absolute; left: -30px; top: 14%; width: 120px; height: 120px; border-radius: 50%; background: #fff; box-shadow: 0 20px 50px -20px rgba(0,0,0,.25); display: grid; place-items: center; }
.about__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.about__badge text { font: 500 9.5px var(--f-body); letter-spacing: .18em; fill: var(--ink); }
.about__badge-core { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.about__copy > p { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 540px; }
.about__copy .h2 { margin-bottom: 8px; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin: 36px 0; }
.benefits li { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 24px; }
.benefits li > span { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; flex-shrink: 0; }
.benefits .ico { width: 13px; height: 13px; stroke-width: 2; }
.about__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 30px 0; margin-bottom: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about__nums .stat__val { font-size: clamp(30px, 3vw, 40px); }
.about__nums .stat__label { font-size: 12px; color: var(--muted); opacity: 1; white-space: normal; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 10px 0 clamp(60px, 7vw, 100px); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__row { display: flex; align-items: center; flex-shrink: 0; }
.marquee span { font: 400 clamp(54px, 8vw, 120px)/1 var(--f-head); letter-spacing: -.02em; padding: 0 .3em; white-space: nowrap; }
.marquee span.o { color: transparent; -webkit-text-stroke: 1px rgba(21,21,21,.35); }
.marquee i { font-style: normal; font-size: clamp(20px, 2.4vw, 34px); color: var(--accent); }

/* ---------- Team ---------- */
.team { padding-top: 0; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.agent__media { aspect-ratio: 4 / 5; border-radius: var(--r-lg); margin-bottom: 18px; }
.agent__media img { filter: grayscale(1) contrast(1.05); transform: scale(1.02); transition: filter 1s var(--ease), transform 1.4s var(--ease); }
.agent:hover .agent__media img { filter: grayscale(0); transform: scale(1.08); }
.agent__social { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; justify-content: center; padding: 8px; border-radius: 999px; background: rgba(255,255,255,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateY(calc(100% + 16px)); transition: transform .8s var(--ease); z-index: 2; }
.agent:hover .agent__social { transform: none; }
.agent__social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: background .4s, color .4s; }
.agent__social a:hover { background: var(--navy); color: #fff; }
.agent__social .ico { width: 16px; height: 16px; }
.agent h3 { font: 400 20px/1.2 var(--f-head); }
.agent__role { font-size: 12.5px; margin-top: 4px; }
.agent__tags { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Reviews ---------- */
.reviews__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.rating { display: flex; align-items: center; gap: 16px; margin: 34px 0; }
.rating strong { font: 300 58px/1 var(--f-head); }
.rating span { font-size: 12px; color: var(--muted); }
.stars { display: flex; gap: 2px; margin-bottom: 4px; }
.stars svg { width: 15px; height: 15px; fill: var(--accent); }
.reviews__nav { display: flex; align-items: center; gap: 10px; }
.reviews__count { margin-left: 14px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.reviews__count b { color: var(--ink); font-weight: 500; }
.reviews__card { position: relative; padding: clamp(30px, 4vw, 56px); border-radius: var(--r-xl); background: #fff; box-shadow: 0 50px 90px -60px rgba(15,26,46,.35); }
.reviews__quote { width: 48px; height: 48px; fill: var(--surface-2); margin-bottom: 20px; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.slide.is-active { visibility: visible; opacity: 1; }
.slide__q { font: 300 clamp(20px, 2vw, 27px)/1.45 var(--f-head); color: var(--ink); }
.slide figcaption { margin-top: 30px; display: flex; flex-direction: column; }
.slide figcaption b { font-weight: 500; font-size: 14px; }
.slide figcaption span { font-size: 12px; color: var(--muted); }
.thumbs { position: relative; display: flex; gap: 10px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.thumb { position: relative; width: 48px; height: 48px; border-radius: 50%; padding: 3px; }
.thumb .media { display: block; width: 100%; height: 100%; border-radius: 50%; filter: grayscale(1); opacity: .55; transition: filter .6s, opacity .6s, transform .6s var(--ease); }
.thumb .media.is-empty::after { content: none; }
.thumb:hover .media { opacity: .9; }
.thumb.is-active .media { filter: none; opacity: 1; transform: scale(.92); }
.thumb__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--navy); opacity: 0; transform: scale(.8); transition: all .6s var(--ease); }
.thumb.is-active .thumb__ring { opacity: 1; transform: none; }
.thumbs__bar { position: absolute; left: 0; right: 0; top: -1px; height: 1px; overflow: hidden; }
.thumbs__bar span { display: block; height: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; }

/* ---------- CTA ---------- */
.cta { padding-left: var(--frame); padding-right: var(--frame); }
.cta__frame { position: relative; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; min-height: 620px; display: flex; align-items: center; }
.cta__media { position: absolute; inset: 0; z-index: -2; background: linear-gradient(135deg, #2a3348, #11192b); }
.cta__media.is-empty::after { background-color: rgba(255,255,255,.2); color: rgba(255,255,255,.8); }
.cta__media img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; }
.cta__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,16,30,.72) 0%, rgba(10,16,30,.35) 55%, rgba(10,16,30,.1) 100%); }
.cta__content { width: 100%; max-width: var(--max); margin: 0 auto; padding: 90px var(--pad); color: #fff; }
.cta__content .h2 { color: #fff; max-width: 760px; }
.cta__content > p { margin-top: 20px; max-width: 460px; color: rgba(255,255,255,.72); font-size: 14.5px; }
/* same look as the newsletter form */
.newsletter input, .cta__form input { height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08); color: #fff; outline: 0; font-size: 12.5px; transition: border-color .4s, background .4s; }
.newsletter input::placeholder, .cta__form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter input:focus, .cta__form input:focus { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.12); }
.cta__form { display: flex; gap: 12px; margin-top: 40px; max-width: 680px; flex-wrap: wrap; }
.cta__form input { flex: 1; min-width: 180px; height: 50px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(15,26,46,.35); border-color: rgba(255,255,255,.22); font-size: 13px; }
.cta__form input:focus { background: rgba(15,26,46,.5); }
.cta__form .btn { --h: 50px; border-radius: 10px; }
.cta__form .btn::before { background: var(--accent); }
.cta__form .form-msg { width: 100%; padding-top: 4px; }
.cta__content small { display: block; margin-top: 16px; font-size: 11.5px; color: rgba(255,255,255,.5); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.post { display: block; }
.post__media { aspect-ratio: 10 / 7; border-radius: var(--r-lg); margin-bottom: 20px; }
.post__media img { transition: transform 1.4s var(--ease); }
.post:hover .post__media img { transform: scale(1.06); }
.post__cat { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 11px; font-weight: 500; }
.post__meta { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.post h3 { font: 400 22px/1.25 var(--f-head); margin-bottom: 16px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .9s var(--ease); display: inline; }
.post:hover h3 { background-size: 100% 1px; }
.post__go { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12.5px; font-weight: 500; }
.post__go .ico { width: 16px; transition: transform .6s var(--ease); }
.post:hover .post__go .ico { transform: translateX(6px); }

/* ---------- Contact ---------- */
.contact { margin-bottom: var(--frame); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.details { display: grid; gap: 22px; margin-top: 40px; }
.details li { display: flex; gap: 16px; font-size: 13.5px; line-height: 1.6; }
.details small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.details__ic { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex-shrink: 0; transition: background .5s, color .5s; }
.details li:hover .details__ic { background: var(--navy); color: #fff; }
.details a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .7s var(--ease); }
.details a:hover { background-size: 100% 1px; }

.cform { display: grid; gap: 14px; padding: clamp(24px, 3.5vw, 44px); border-radius: var(--r-xl); background: #fff; box-shadow: 0 50px 90px -60px rgba(15,26,46,.35); }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; padding: 24px 16px 8px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: #fff; outline: 0; font-size: 14px;
  transition: border-color .4s, box-shadow .4s;
  resize: vertical;
}
.field textarea { min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(15,26,46,.06); }
.field > span { position: absolute; left: 17px; top: 17px; font-size: 13.5px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .5s var(--ease), color .4s; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-9px) scale(.76); color: var(--ink-2); }
.chips { border: 0; padding: 4px 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; font-size: 12px; color: var(--muted); margin-bottom: 10px; padding: 0; float: left; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; transition: all .5s var(--ease); }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cform .btn { --h: 56px; margin-top: 6px; }
.cform .form-msg { text-align: center; color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { padding: 0 var(--frame) var(--frame); }
.footer__inner { border-radius: var(--r-xl); background: var(--navy); color: #fff; padding: clamp(50px, 6vw, 80px) clamp(24px, 5vw, 70px) 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 40px; }
.footer__logo { font: 400 42px/1 var(--f-script); display: block; margin-bottom: 14px; }
.footer p { font-size: 13px; color: rgba(255,255,255,.55); max-width: 280px; }
.footer__social { display: flex; gap: 8px; margin-top: 22px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; transition: background .5s, color .5s, border-color .5s; }
.footer__social a:hover { background: #fff; color: var(--navy); border-color: #fff; }
.footer__social .ico { width: 16px; height: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer__col h4 { font: 500 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 10px; }
.footer__col a, .footer__col span { color: rgba(255,255,255,.82); width: fit-content; }
.footer__col a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .7s var(--ease), color .4s; }
.footer__col a:hover { background-size: 100% 1px; color: #fff; }
.footer__form { display: flex; margin-top: 8px; border-bottom: 1px solid rgba(255,255,255,.25); flex-wrap: wrap; }
.footer__form input { flex: 1; height: 46px; border: 0; background: none; outline: 0; color: #fff; font-size: 13px; }
.footer__form input::placeholder { color: rgba(255,255,255,.45); }
.footer__form button { width: 46px; height: 46px; display: grid; place-items: center; transition: transform .6s var(--ease); }
.footer__form button:hover { transform: translateX(5px); }
.footer__form .form-msg { width: 100%; padding: 8px 0; color: rgba(255,255,255,.7); }
.footer__word {
  font: 500 clamp(64px, 16.2vw, 250px)/.8 var(--f-head);
  letter-spacing: -.045em;
  text-align: center;
  margin: clamp(50px, 7vw, 100px) 0 clamp(20px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(255,255,255,.9) 20%, rgba(255,255,255,.08) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
  padding-top: .12em;
  overflow: hidden;
}
.footer__word .ch { display: inline-block; background: inherit; -webkit-background-clip: text; background-clip: text; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: rgba(255,255,255,.5); flex-wrap: wrap; }
.footer__bottom nav { display: flex; gap: 24px; }
.footer__bottom a:hover { color: #fff; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.to-top .ico { width: 16px; transform: rotate(-45deg); transition: transform .6s var(--ease); }
.to-top:hover .ico { transform: rotate(-45deg) translate(3px, -3px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .svc-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .svc { min-height: 380px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  :root { --nav-h: 68px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero__frame { height: auto; min-height: calc(100svh - var(--nav-h) - var(--frame)); max-height: none; display: flex; flex-direction: column; justify-content: space-between; padding: 60px 24px 24px; }
  .hero__content { position: relative; left: auto; top: auto; }
  .hero__veil { background: linear-gradient(180deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.2) 55%, rgba(0,0,0,.1) 100%); }
  .hero__content { margin-bottom: 36px; }
  /* search is always expanded on tablet / mobile */
  .hsearch, .hsearch.is-open { position: relative; left: auto; bottom: auto; margin-top: auto; flex-shrink: 0; width: 100%; overflow: visible; transition: none; }
  .hsearch__toggle { display: none; }
  .hsearch__fields { min-width: 0; padding: 6px; }
  .hsearch__field, .hsearch__go { opacity: 1; transform: none; }
  .hsearch__field:first-child { border-left: 0; }
  .hero__stats { position: relative; right: auto; bottom: auto; margin-top: 24px; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .sec-head--split { grid-template-columns: 1fr; gap: 0; }
  .sec-head--split .lead { justify-self: start; margin-top: 18px; }
  .process__inner, .about__grid, .reviews__grid, .contact__grid { grid-template-columns: 1fr; }
  .blueprint { width: 140%; right: -40%; opacity: .6; }
  .newsletter { max-width: 420px; }
  .about__visual { max-width: 560px; }
  .about__badge { left: auto; right: 4%; top: -40px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid .post:last-child { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .br-d { display: none; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hsearch, .hsearch.is-open { height: auto; border-radius: 22px; flex-direction: column; align-items: stretch; }
  .hsearch__fields { flex-direction: column; align-items: stretch; padding: 8px 14px 14px; gap: 0; }
  .hsearch__field { border-left: 0; border-top: 1px solid var(--line); padding: 12px 4px; }
  .hsearch__field:first-child { border-top: 0; }
  .hsearch__field input, .dd__btn { font-size: 16px; padding-top: 4px; }
  .hsearch__go { justify-content: center; height: 50px; margin-top: 6px; }
  .dd__list { left: 0; right: 0; }
  .sec-head--row { flex-direction: column; align-items: flex-start; }
  .props__nav { display: none; }
  .pcard { width: 76vw; }
  .step { grid-template-columns: 54px 1fr; padding: 18px 16px 18px 8px; }
  .step__num { font-size: 44px; }
  .step__arrow { display: none; }
  .svc-grid, .team-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .agent h3 { font-size: 16px; }
  .agent__social { display: none; }
  .benefits { grid-template-columns: 1fr; }
  .about__nums .stat__val { font-size: 28px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid .post:last-child { display: block; }
  .cform__row { grid-template-columns: 1fr; }
  .cta__frame { min-height: 560px; }
  .cta__form input { flex-basis: 100%; }
  .cta__form .btn { width: 100%; }
  .footer__top { grid-template-columns: 1fr; gap: 34px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Смуга «назад на [web] [space].» (shared/back.js) ---------- */
@media (min-width: 1024px) {
  .has-studio-bar .nav { left: var(--studio-bar); }
}
