/* ==========================================================================
   Elżbieta Gębska — RE/MAX Smart
   Editorial luxury: navy ink, champagne gold, ivory paper.
   ========================================================================== */

:root {
  --ink: #0f1d3a;
  --ink-2: #172a52;
  --ink-soft: #46506a;
  --gold: #b38a5a;
  --gold-2: #c9a46e;
  --gold-soft: #e6d3b5;
  --ivory: #f6f1e8;
  --paper: #fbf8f3;
  --line: rgba(15, 29, 58, .14);
  --line-light: rgba(246, 241, 232, .18);
  --remax-red: #dc1c2e;
  --remax-blue: #0054a4;

  --f-display: "Fraunces", "Georgia", serif;
  --f-body: "Jost", "Futura", "Century Gothic", sans-serif;
  --f-script: "Fraunces", "Georgia", serif;

  --pad: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 84px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .h2, .hero__title, .about__quote, .contact__title, .footer__name, .step__n, .lcard__price b, .facts dd, .contact__phone {
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
em { font-style: italic; }
::selection { background: var(--gold); color: #fff; }

.wrap { width: min(100% - var(--pad) * 2, var(--max)); margin-inline: auto; }

.script {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 28px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow .dash { width: 42px; height: 1px; background: currentColor; flex: none; }
.eyebrow--light { color: var(--gold-2); }

.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
.h2 em { color: var(--gold); }
.h2--light { color: var(--ivory); }
.gold { color: var(--gold-2) !important; }

/* Let accents, descenders and italic overhangs extend past the line box. */
.reveal-lines .ln-mask,
.hero__title .line,
.contact__title .line {
  /* Override SplitText's inline overflow; clip-path also works in Safari. */
  overflow: visible !important;
  clip-path: inset(-.2em);
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 12px 30px; max-width: 100%;
  border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  border-radius: 100px;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
  white-space: normal; text-align: center;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hover, var(--ink));
  transform: translateY(101%); border-radius: inherit;
  transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 11px; }
.btn--ink { --bg: var(--ink); --fg: var(--ivory); --bd: var(--ink); --hover: var(--gold); }
.btn--ink:hover { border-color: var(--gold); }
.btn--gold { --bg: var(--gold); --fg: #fff; --bd: var(--gold); --hover: var(--ink); }
.btn--gold:hover { border-color: var(--ink); }
.btn--line:hover { color: var(--ivory); }
.btn--ghost-light { --fg: var(--ivory); --bd: var(--line-light); --hover: var(--ivory); }
.btn--ghost-light:hover { color: var(--ink); }
.btn--block { width: 100%; }

.arr {
  position: relative; display: inline-block; flex: none; width: 22px; height: 1px; background: currentColor;
  transition: transform .5s var(--ease);
}
.arr::after {
  content: ""; position: absolute; right: 0; top: -3.5px;
  width: 8px; height: 8px; border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.arr--ext { transform: rotate(-45deg); }
a:hover > .arr, button:hover > .arr { transform: translateX(5px); }
a:hover > .arr--ext { transform: rotate(-45deg) translateX(4px); }

/* Loader ----------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--ink); color: var(--ivory);
  pointer-events: none;
}
html:not(.js) .loader { display: none; }
.loader__inner { text-align: center; }
.loader__roof { width: 120px; margin: 0 auto 18px; stroke: var(--gold-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.loader__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 6vw, 80px); letter-spacing: -.02em; margin: 0; line-height: 1.1; color: var(--ivory); clip-path: inset(0 100% 0 0); }
.loader__tag { margin: 10px 0 0; font-size: 12px; letter-spacing: .5em; text-transform: uppercase; opacity: 0; }
.loader__tag span { color: var(--gold-2); }
.loader__curtain { position: absolute; inset: 0; background: var(--paper); transform: translateY(100%); }

/* Cursor + grain ----------------------------------------------------------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 0; height: 0;
}
.cursor span {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); mix-blend-mode: multiply;
  transition: transform .4s var(--ease), background .3s, opacity .3s;
}
.cursor.is-hover span { transform: scale(5); background: rgba(179, 138, 90, .25); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.grain {
  position: fixed; inset: -50%; z-index: 140; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); }
}

/* Course (scroll progress) -------------------------------------------------- */
.course {
  position: fixed; right: 22px; top: 50%; z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transform: translateY(-50%);
  mix-blend-mode: difference;
}
.course__line { position: relative; width: 1px; height: 140px; background: rgba(255,255,255,.3); overflow: hidden; }
.course__fill { position: absolute; inset: 0; background: #fff; transform-origin: top; transform: scaleY(0); }
.course__label { font-size: 10px; letter-spacing: .2em; color: #fff; }
@media (max-width: 900px) { .course { display: none; } }

/* Navigation ---------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 80;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
  transition: background .5s var(--ease), height .5s var(--ease), box-shadow .5s, transform .6s var(--ease);
}
.nav.is-scrolled {
  --nav-h: 70px;
  background: rgba(251, 248, 243, .86);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__roof { width: 46px; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__first { font-family: var(--f-display); font-style: italic; font-size: 15px; color: var(--gold); margin-bottom: 2px; letter-spacing: .02em; }
.brand__last { font-family: var(--f-display); font-size: 17px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }

.nav__links { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav__links a {
  position: relative; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 22px; }

.lang { display: flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .14em; }
.lang span { opacity: .35; }
.lang a { opacity: .45; transition: opacity .3s, color .3s; padding: 4px 2px; }
.lang a.is-active { opacity: 1; color: var(--gold); }
.lang a:hover { opacity: 1; }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--ivory);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 100px var(--pad) 60px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a { font-family: var(--f-display); font-size: clamp(36px, 9vw, 56px); line-height: 1.2; }
.mobile-menu__phone { font-size: 18px; letter-spacing: .1em; color: var(--gold); }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .nav__right .btn { display: none; }
}

/* Hero ---------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
  padding: calc(var(--nav-h) + 40px) var(--pad) 90px;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.hero::before {
  content: ""; position: absolute; z-index: -2; inset: 0 auto 0 calc(50% - 50vw); width: 100vw;
  background:
    radial-gradient(60% 60% at 80% 30%, rgba(201, 164, 110, .16), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(15, 29, 58, .05), transparent 70%),
    var(--paper);
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: min(13.4cqi, 112px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0 0 18px;
}
.hero__title .line { display: block; padding-bottom: .08em; }
.hero__copy { min-width: 0; container-type: inline-size; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: italic; color: var(--gold); }
.line--last { padding-right: .2em; }
.strike { position: relative; display: inline-block; }
.strike svg {
  position: absolute; left: -4%; top: 38%; width: 108%; height: 40%;
  overflow: visible;
}
.strike path { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; }

.hero__script { font-size: clamp(22px, 2vw, 30px); margin: 0 0 22px; }
.hero__lead { max-width: 520px; margin: 0 0 36px; color: var(--ink-soft); font-size: clamp(17px, 1.25vw, 20px); font-weight: 400; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.hero__facts { list-style: none; margin: 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 18px 36px; border-top: 1px solid var(--line); max-width: 640px; }
.hero__facts li { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.hero__facts b { display: block; font-weight: 500; color: var(--ink); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.hero__facts svg { width: 30px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.hero__visual { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; min-height: 560px; }
.hero__portrait {
  position: relative; margin: 0;
  width: min(100%, 440px); aspect-ratio: 7 / 11;
  clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%);
  overflow: hidden;
  background: var(--gold-soft);
}
.hero__portrait img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 0; }
.hero__roofline {
  position: absolute; top: calc(50% - min(100%, 440px) * 11 / 14 - 40px); left: 50%;
  width: min(140%, 640px); transform: translateX(-50%);
  stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  z-index: -1;
}
.hero__badge {
  position: absolute; left: -6%; bottom: 10%;
  background: var(--ink); color: var(--ivory);
  padding: 22px 28px 18px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 30px 60px -20px rgba(15, 29, 58, .45);
}
.hero__badge-k, .hero__badge-v { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; }
.hero__badge-v { color: var(--gold-soft); }
.hero__badge-s { font-size: 24px; color: var(--gold-2); margin-top: 6px; }
.hero__coords {
  position: absolute; right: -8px; top: 50%; margin: 0;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  font-size: 11px; letter-spacing: .3em; color: var(--ink-soft); opacity: .7;
}
.hero__scroll {
  position: absolute; left: var(--pad); bottom: 28px;
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft);
}
.hero__scroll i { position: relative; width: 1px; height: 46px; background: var(--line); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--gold); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--nav-h) + 20px); gap: 28px; }
  .hero__eyebrow { font-size: 10px; letter-spacing: .2em; margin-bottom: 16px; }
  .hero__title { font-size: min(13.4cqi, 64px); margin-bottom: 14px; }
  .hero__script { font-size: 20px; line-height: 1.3; margin-bottom: 12px; }
  .hero__lead { font-size: 16px; line-height: 1.5; margin-bottom: 20px; }
  .hero__cta { gap: 10px; margin-bottom: 28px; }
  .hero__cta .btn { padding-inline: 20px; font-size: 11px; letter-spacing: .12em; }
  .hero__visual { min-height: 0; padding: 0 0 10px; }
  .hero__portrait { width: min(56vw, 240px); }
  .hero__badge { left: 0; bottom: 4%; padding: 16px 20px 12px; }
  .hero__badge-s { font-size: 21px; }
  .hero__coords, .hero__roofline { display: none; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
}

/* Marquee ------------------------------------------------------------------- */
.marquee { background: var(--ink); color: var(--ivory); overflow: hidden; padding: 26px 0; border-block: 1px solid var(--ink-2); }
.marquee__track { display: flex; align-items: center; gap: 38px; width: max-content; will-change: transform; }
.marquee__track span { font-family: var(--f-display); font-size: clamp(26px, 3vw, 42px); font-style: italic; white-space: nowrap; }
.marquee__track span.script { color: var(--gold-2); font-size: clamp(24px, 2.6vw, 38px); }
.marquee__track em { color: var(--gold-2); font-style: normal; font-size: 18px; }

/* About --------------------------------------------------------------------- */
.about { padding: clamp(100px, 14vw, 200px) 0 clamp(80px, 10vw, 150px); position: relative; }
.about__quote {
  font-family: var(--f-display);
  font-size: clamp(32px, 4.4vw, 70px);
  line-height: 1.12; letter-spacing: -.02em;
  margin: 0; max-width: 1150px;
  text-wrap: balance;
}
.about__quote em { color: var(--gold); }
.about__quote .word { display: inline-block; }
.about__wave { width: 100%; height: 70px; margin: clamp(40px, 6vw, 80px) 0; stroke: var(--gold); stroke-width: 1.2; }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.about__media { position: relative; }
.about__text > p { color: var(--ink-soft); max-width: 600px; margin: 26px 0 0; font-weight: 400; }
.about__text b { color: var(--ink); font-weight: 500; }
.about__law { padding-left: 22px; border-left: 1px solid var(--gold); }
.about__motto { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.25; margin: 50px 0 0; }

.facts { margin: 46px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); max-width: 640px; }
.facts > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts > div:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--line); }
.facts > div:nth-child(even) { padding-left: 24px; }
.facts dt { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.facts dd { margin: 0; font-family: var(--f-display); font-size: 20px; }

.frame { margin: 0; overflow: hidden; position: relative; background: var(--gold-soft); }
.frame img { width: 100%; height: 118%; object-fit: cover; }
.frame--tall { aspect-ratio: 5 / 7; }
.frame--tall::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.55); pointer-events: none;
}

/* Licence certificate */
.licence { margin: 46px 0 0; max-width: 640px; display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 30px; align-items: center; padding: 26px; background: var(--ivory); border: 1px solid var(--line); }
.licence__doc { position: relative; display: block; transform: rotate(-2.5deg); box-shadow: 0 22px 40px -22px rgba(15, 29, 58, .55), 0 0 0 1px rgba(15, 29, 58, .06); transition: transform .7s var(--ease), box-shadow .7s var(--ease); cursor: zoom-in; }
.licence__doc:hover { transform: rotate(0deg) scale(1.03); box-shadow: 0 30px 50px -24px rgba(15, 29, 58, .6), 0 0 0 1px rgba(15, 29, 58, .06); }
.licence__doc img { width: 100%; height: auto; }
.licence__body { min-width: 0; }
.licence__k { margin: 0 0 8px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.licence__title { margin: 0 0 12px; font-family: var(--f-display); font-weight: 400; font-size: clamp(21px, 1.7vw, 25px); line-height: 1.18; text-wrap: balance; }
.about__text .licence__text { margin: 0 0 16px; font-size: 15px; color: var(--ink-soft); }
.licence__link { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--gold); }
.licence__link:hover { color: var(--ink); }
.licence + .facts { margin-top: 34px; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 640px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(15, 29, 58, .82); backdrop-filter: blur(4px); }
.lightbox img { width: auto; max-width: 100%; max-height: calc(94vh - 44px); margin: 0 auto; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.lightbox__title { margin: 0 56px 14px 0; color: var(--ivory); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.5; }
.lightbox form { position: absolute; top: -6px; right: 0; }
.lightbox__close { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--ivory); }
.lightbox__close span { position: absolute; left: 13px; right: 13px; top: 50%; height: 1.5px; background: var(--ink); transform: rotate(45deg); }
.lightbox__close span + span { transform: rotate(-45deg); }
.lightbox__close:hover { background: var(--gold); }

@media (max-width: 560px) {
  .licence { grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 20px 18px; align-items: start; }
  .licence__title { font-size: 19px; overflow-wrap: break-word; hyphens: manual; }
  .licence__k span { display: block; }
  .licence__k i { display: none; }
  .about__text .licence__text { font-size: 14.5px; }
  .lightbox__title { font-size: 11px; letter-spacing: .12em; }
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div:nth-child(odd) { border-right: 0; padding-right: 0; }
  .facts > div:nth-child(even) { padding-left: 0; }
}

/* Services ------------------------------------------------------------------ */
.services { padding: clamp(80px, 10vw, 150px) 0; background: var(--ivory); }
.section-head { margin-bottom: clamp(50px, 6vw, 90px); max-width: 920px; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 40px 30px 34px; min-height: 480px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: color .6s var(--ease);
}
.card:first-child { border-left: 1px solid var(--line); }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  clip-path: inset(100% 0 0 0); transition: clip-path .8s var(--ease);
}
.card:hover { color: var(--ivory); }
.card:hover::before { clip-path: inset(0 0 0 0); }
.card__num { font-family: var(--f-display); font-style: italic; font-size: 16px; color: var(--gold); }
.card__icon { width: 52px; margin: 46px 0 30px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .8s var(--ease); }
.card:hover .card__icon { transform: translateY(-6px) rotate(-4deg); }
.card h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 1.9vw, 30px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -.01em; }
.card p { margin: 0 0 30px; font-size: 15px; font-weight: 400; color: var(--ink-soft); transition: color .6s var(--ease); }
.card:hover p { color: rgba(246, 241, 232, .75); }
.card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--gold); }
.card__link::before { content: ""; position: absolute; inset: 0; }

@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card:nth-child(3) { border-left: 1px solid var(--line); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } .card { border-left: 1px solid var(--line); min-height: 0; } }

/* Process (horizontal) ------------------------------------------------------ */
.process { background: var(--ink); color: var(--ivory); position: relative; overflow: hidden; }
.process__pin { height: 100vh; height: 100svh; display: flex; align-items: center; position: relative; }
.process__intro {
  flex: none; align-self: stretch; display: flex; flex-direction: column; justify-content: center;
  width: min(42vw, 560px); padding-left: var(--pad); padding-right: 40px; position: relative; z-index: 2;
  background: var(--ink);
  box-shadow: 40px 0 50px 10px var(--ink);
}
.process__intro .h2 { font-size: clamp(34px, 3.8vw, 60px); }
.process__hint { margin: 40px 0 0; display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-soft); }
.process__track { display: flex; gap: 0; align-items: stretch; padding-right: 12vw; will-change: transform; }
.step {
  position: relative; flex: none; width: clamp(280px, 26vw, 380px);
  padding: 50px 40px 40px; border-left: 1px solid var(--line-light);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 62vh;
}
.step__n { font-family: var(--f-display); font-size: clamp(80px, 8vw, 130px); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold-2); margin-bottom: auto; }
.step h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2vw, 32px); line-height: 1.15; margin: 30px 0 12px; }
.step p { margin: 0; color: rgba(246, 241, 232, .7); font-weight: 400; font-size: 15px; }
.step--img .step__n { margin-bottom: 0; }
.polaroid {
  margin: 0 0 auto; width: 76%; padding: 10px 10px 30px; background: #fff;
  transform: rotate(var(--r, 0deg)); box-shadow: 0 30px 50px -20px rgba(0,0,0,.6);
}
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.step--end { justify-content: center; width: clamp(320px, 32vw, 460px); }
.step--end .polaroid { margin: 0 0 40px; width: 70%; }
.step .step__script { font-size: clamp(28px, 2.4vw, 38px); color: var(--gold-2); margin: 0 0 18px; }
.step__motto { font-family: var(--f-display); font-size: 24px !important; color: var(--ivory) !important; line-height: 1.3; }
.step__motto span { color: var(--gold-2); font-style: italic; }
.process__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 40px; height: 1px; background: var(--line-light); }
.process__bar span { position: absolute; inset: 0; background: var(--gold-2); transform-origin: left; transform: scaleX(0); }

@media (max-width: 900px) {
  .process__pin { height: auto; flex-direction: column; align-items: stretch; padding: 100px 0 60px; }
  .process__intro { width: auto; padding-right: var(--pad); margin-bottom: 40px; box-shadow: none; }
  .process__hint, .process__bar { display: none; }
  .process__track { flex-direction: column; padding: 0 var(--pad); }
  .step { width: auto; min-height: 0; border-left: 0; border-top: 1px solid var(--line-light); padding: 34px 0; }
  .step__n { font-size: 64px; }
  .polaroid { width: 70%; margin-bottom: 24px; }
}

/* Listings ------------------------------------------------------------------ */
.listings { padding: clamp(100px, 12vw, 170px) 0; }
.listings__live { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.listings__time { opacity: .7; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2fa36b; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2s ease-out infinite; }
.listings.is-offline .pulse { background: var(--gold); }
@keyframes pulse { to { transform: scale(3.2); opacity: 0; } }

.listings__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: clamp(24px, 3vw, 44px); }
.lcard { position: relative; display: flex; flex-direction: column; background: #fff; box-shadow: 0 1px 0 var(--line); transition: box-shadow .6s var(--ease); }
.lcard:hover { box-shadow: 0 40px 70px -40px rgba(15, 29, 58, .45); }
.lcard--skeleton { min-height: 560px; background: linear-gradient(100deg, var(--ivory) 30%, #fff 50%, var(--ivory) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

.lcard__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ivory); }
.lcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.lcard__media img.is-on { opacity: 1; }
.lcard:hover .lcard__media img.is-on { transform: scale(1.04); }
.lcard__dots { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; gap: 6px; z-index: 2; }
.lcard__dots i { flex: 1; height: 2px; background: rgba(255,255,255,.4); }
.lcard__dots i.is-on { background: #fff; }
.lcard__nav { position: absolute; inset: 0; display: flex; z-index: 1; }
.lcard__nav span { flex: 1; }
.lcard__pill { position: absolute; left: 18px; top: 18px; z-index: 2; display: flex; gap: 8px; }
.lcard__pill span { padding: 7px 12px; background: rgba(251, 248, 243, .92); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.lcard__pill .is-status { background: var(--ink); color: var(--ivory); }
.lcard__pill .is-status.is-active { background: var(--gold); color: #fff; }
.lcard.is-closed .lcard__media img { filter: grayscale(.5); }

.lcard__body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.lcard__loc { margin: 0 0 6px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.lcard__title { font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1.12; margin: 0 0 14px; }
.lcard__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.lcard__price b { font-family: var(--f-display); font-weight: 500; font-size: 32px; letter-spacing: -.01em; }
.lcard__price small { font-size: 13px; color: var(--ink-soft); }
.lcard__specs { list-style: none; padding: 14px 0; margin: 0 0 18px; display: flex; gap: 22px; flex-wrap: wrap; border-block: 1px solid var(--line); font-size: 14px; }
.lcard__specs li { display: flex; align-items: center; gap: 8px; }
.lcard__specs svg { width: 18px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.lcard__excerpt { margin: 0 0 24px; font-size: 14.5px; color: var(--ink-soft); font-weight: 400; }
.lcard__actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.lcard__actions .btn { flex: 1 1 auto; min-height: 48px; padding: 0 18px; font-size: 11px; }
@media (max-width: 480px) { .lcard__actions .btn { flex-basis: 100%; } .lcard__body { padding: 24px 22px 26px; } }

.lcard--cta { background: var(--ink); color: var(--ivory); padding: 44px 40px; justify-content: space-between; min-height: 420px; overflow: hidden; }
.lcard--cta svg.roof { position: absolute; right: -40px; bottom: -10px; width: 320px; stroke: var(--gold-2); stroke-width: 1; fill: none; opacity: .4; }
.lcard--cta h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.1; margin: 0 0 18px; }
.lcard--cta h3 em { color: var(--gold-2); }
.lcard--cta p { color: rgba(246, 241, 232, .72); font-weight: 400; margin: 0 0 30px; max-width: 360px; }
.lcard--cta .script { font-size: 40px; color: var(--gold-2); }

.listings__more { margin-top: 56px; display: flex; justify-content: center; }

/* Student ------------------------------------------------------------------- */
.student { background: var(--ink); color: var(--ivory); padding: clamp(100px, 12vw, 180px) 0; position: relative; overflow: hidden; }
.student__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.student__hello { font-size: clamp(22px, 2vw, 30px); color: var(--gold-2); margin: 0 0 8px; }
.student__lead { color: rgba(246, 241, 232, .74); font-weight: 400; max-width: 560px; margin: 28px 0 34px; }
.checks { list-style: none; margin: 0 0 44px; padding: 0; max-width: 520px; }
.checks li { display: flex; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-light); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.checks li > span { min-width: 0; overflow-wrap: anywhere; }
.checks svg { flex: none; width: 46px; height: 46px; padding: 10px; border-radius: 50%; border: 1px solid rgba(201, 164, 110, .5); fill: none; stroke: var(--gold-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.student__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.student__rest { font-size: clamp(22px, 1.9vw, 30px); color: var(--ivory); margin: 30px 0 0; opacity: .9; }
.student__visual { position: relative; }
.frame--arch { aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; }
.frame--arch img { object-position: 62% 50%; }
.key {
  position: absolute; right: -10px; top: 18%; width: clamp(90px, 9vw, 130px);
  stroke: var(--gold-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transform-origin: 50% 9%;
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, .35));
}
.key path:nth-of-type(2) { fill: rgba(15, 29, 58, .85); }

@media (max-width: 900px) {
  .student__grid { grid-template-columns: minmax(0, 1fr); }
  .student__visual { max-width: 420px; }
}

/* Values -------------------------------------------------------------------- */
.values { padding: clamp(80px, 9vw, 130px) 0; text-align: center; }
.values__list { list-style: none; margin: 0 0 60px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.values__list li { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 10px 20px; border-left: 1px solid var(--line); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; line-height: 1.6; font-weight: 500; }
.values__list li:first-child { border-left: 0; }
.values__list svg { width: 54px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.values__script { font-size: clamp(26px, 3.2vw, 50px); line-height: 1.3; margin: 0; }
@media (max-width: 760px) {
  .values__list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .values__list li:nth-child(3) { border-left: 0; }
}

/* Contact ------------------------------------------------------------------- */
.contact { padding: clamp(100px, 12vw, 170px) 0; background: var(--ivory); position: relative; }
.contact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(50px, 7vw, 120px); align-items: start; }
.contact__mail { max-width: 100%; overflow-wrap: anywhere; }
.contact__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 4.1vw, 66px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 28px; }
.contact__title .line { display: block; padding-bottom: .05em; }
.contact__title .line > span { display: inline-block; }
.contact__title em { color: var(--gold); }
.contact__lead { color: var(--ink-soft); font-weight: 400; max-width: 460px; margin: 0 0 44px; }
.contact__phone { display: inline-block; font-family: var(--f-display); font-size: clamp(34px, 3.4vw, 52px); letter-spacing: -.01em; line-height: 1.1; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.contact__phone:hover, .contact__mail:hover { background-size: 100% 1px; }
.contact__mail { display: inline-block; margin-top: 10px; font-size: clamp(16px, 1.3vw, 20px); color: var(--ink-soft); background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.contact__office { margin: 44px 0 0; padding-top: 26px; border-top: 1px solid var(--line); max-width: 420px; }
.contact__office p { margin: 0; color: var(--ink-soft); }
.label { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold) !important; margin-bottom: 6px !important; }
.socials { display: flex; gap: 12px; margin-top: 34px; }
.socials a { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: background .4s, color .4s, border-color .4s; }
.socials a:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.socials svg { width: 20px; fill: currentColor; }
.socials__remax { width: auto !important; padding: 0 20px; border-radius: 100px !important; font-size: 11px; letter-spacing: .16em; font-weight: 600; }

.form { background: var(--paper); padding: clamp(30px, 4vw, 56px); box-shadow: 0 50px 90px -60px rgba(15, 29, 58, .5); position: relative; }
.form::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none; }
.form > * { position: relative; }
.form__intents { min-width: 0; border: 0; padding: 0; margin: 0 0 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.form__intents legend { padding: 0; margin-bottom: 16px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.form__intents label { cursor: pointer; }
.form__intents input { position: absolute; opacity: 0; pointer-events: none; }
.form__intents span, .form__intents b { font-weight: 400; }
.form__intents label > span, .form__intent-listing {
  display: inline-flex; gap: 6px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; font-size: 13px;
  transition: background .35s, color .35s, border-color .35s;
}
.form__intent-listing > span { padding: 0 !important; border: 0 !important; }
.form__intents label:hover > span { border-color: var(--gold); }
.form__intents input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.form__intent-listing:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.form__intents input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.field { position: relative; margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 26px 0 10px; font: inherit; color: var(--ink); border-radius: 0; resize: vertical;
  transition: border-color .4s;
}
.field textarea { min-height: 110px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); }
.field label { position: absolute; left: 0; top: 24px; color: var(--ink-soft); font-weight: 400; pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease), color .45s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.74); color: var(--gold); letter-spacing: .06em; }
.field.is-error input, .field.is-error textarea { border-color: var(--remax-red); }
.field::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 24px; font-size: 13px; color: var(--ink-soft); font-weight: 400; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.consent.is-error { color: var(--remax-red); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { min-height: 1.4em; margin: 0 0 14px; font-size: 14px; }
.form__msg.is-error { color: var(--remax-red); }
.form__msg.is-ok { color: #2a7a52; }
.form__note { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--ink-soft); letter-spacing: .08em; }
.form.is-sending button { pointer-events: none; opacity: .7; }

.form__success { text-align: center; padding: 40px 10px; min-height: inherit; display: flex; flex-direction: column; justify-content: center; }
.form__success .script { font-size: 50px; display: block; margin-bottom: 10px; }
.form__success h3 { font-family: var(--f-display); font-weight: 400; font-size: 34px; margin: 0 0 10px; }
.form__success p { color: var(--ink-soft); margin: 0; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* Footer -------------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--ivory); padding: 90px 0 40px; overflow: hidden; }
.footer__brand { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; row-gap: 4px; margin: 0 0 44px; }
.footer__roof { grid-row: span 2; width: 64px; height: auto; stroke: var(--gold-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.footer__name { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.footer__claim { margin: 0; font-size: 15px; color: rgba(246, 241, 232, .7); }
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 30px; padding: 22px 0; border-top: 1px solid var(--line-light); font-size: 14px; }
.footer__row p { margin: 0; }
.footer__row a:hover { color: var(--gold-2); }
.footer__row--small { font-size: 12px; color: rgba(246, 241, 232, .55); }
.footer__credit { color: rgba(246, 241, 232, .8); text-decoration: underline; text-decoration-color: rgba(201, 164, 110, .55); text-underline-offset: 3px; }
.footer.footer--slim { padding: 0 0 30px; }
.footer--slim .footer__row { border-top: 0; }
.remax-word b { color: #fff; letter-spacing: .04em; }

/* Mobile dock --------------------------------------------------------------- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px; border-radius: 100px;
    background: rgba(15, 29, 58, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -10px rgba(15, 29, 58, .5);
    transform: translateY(140%); transition: transform .6s var(--ease);
  }
  .dock.is-visible { transform: none; }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 100px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--ivory); }
  .dock svg { width: 16px; fill: currentColor; }
  .dock__write { background: var(--gold); }
  .footer { padding-bottom: 110px; }
}

/* Reveal defaults (JS sets initial states; without JS everything is visible) */
html.js .reveal { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .reveal { opacity: 1; }
  .loader { display: none; }
  .grain { display: none; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
