/* Borjomi Wellness Residences — palette and type */
:root {
  --brown: #3a2623;
  --brown-deep: #241714;
  --cream: #efe6d8;
  --cream-light: #f8f2e8;
  --sand: #cdb592;
  --terracotta: #96512a;
  --copper: #b5793f;
  --olive: #6b6a44;
  --line: rgba(58, 38, 35, .2);
  --font-display: 'Cormorant Garamond', 'Noto Serif Georgian', Georgia, serif;
  --font-body: 'Inter', 'Noto Sans Georgian', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --radius: 2px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --display-scale: 1;
}
:lang(ka) { --display-scale: .76; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--cream-light); color: var(--brown);
  font: 400 16px/1.7 var(--font-body); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

/* Scroll progress */
.progress { display: none; }

/* Type */
.h-xl, .h-lg, .h-md, .h-sm, .hero-title, .stat-value, .mort-rate, .ledger-num, .facts dt, .hero-facts dt {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -.012em; line-height: 1.04; margin: 0;
  overflow-wrap: break-word; font-variant-numeric: lining-nums;
}
.h-xl { font-size: calc(clamp(38px, 6vw, 92px) * var(--display-scale)); }
.h-lg { font-size: calc(clamp(34px, 4.4vw, 68px) * var(--display-scale)); margin-bottom: .55em; }
.h-md { font-size: calc(clamp(26px, 2.6vw, 38px) * var(--display-scale)); line-height: 1.14; margin-bottom: .55em; }
.h-sm { font-size: calc(24px * var(--display-scale)); line-height: 1.18; margin-bottom: .5em; }
:lang(ka) .h-xl, :lang(ka) .h-lg, :lang(ka) .h-md, :lang(ka) .h-sm { font-weight: 400; letter-spacing: 0; line-height: 1.24; }
:lang(ka) .stat-value, :lang(ka) .ledger-num, :lang(ka) .hero-facts dt { font-weight: 300; letter-spacing: 0; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; font-weight: 300; max-width: 52ch; }
.muted { opacity: .75; }
.eyebrow {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500;
  color: var(--terracotta); margin-bottom: 22px; display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; }
:lang(ka) .eyebrow { letter-spacing: .08em; font-size: 12px; }

/* Word mark */
.logo { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; white-space: nowrap; flex-shrink: 0; }
.logo b { font: 500 25px/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; }
.logo small { font-size: 8.5px; letter-spacing: .3em; text-transform: uppercase; margin-top: 5px; opacity: .8; }

/* Buttons */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 0; padding: 17px 34px;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  transition: color .3s ease, border-color .3s ease, transform .14s var(--ease);
}
:lang(ka) .btn { letter-spacing: .06em; font-size: 13px; }
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; background: var(--fill);
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--terracotta); color: #fff; --fill: var(--brown-deep); }
.btn-light { background: var(--cream-light); color: var(--brown); --fill: var(--sand); }
.btn-outline { border-color: currentColor; background: transparent; --fill: var(--brown); }
.btn-small { padding: 12px 20px; font-size: 10.5px; white-space: nowrap; background: var(--terracotta); color: #fff; --fill: var(--brown-deep); }
.btn-sm { padding: 11px 20px; font-size: 10.5px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: scaleX(1); transform-origin: left; }
  .btn-outline:hover { color: var(--cream-light); border-color: var(--brown); }
  .topbar.is-solid .btn-small:hover { color: #fff; }
}

/* Header */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 80px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); color: var(--cream-light);
  transition: background-color .4s ease, color .4s ease, box-shadow .4s ease, height .4s var(--ease), transform .5s var(--ease);
}
.topbar.is-solid { height: 68px; background: rgba(248, 242, 232, .94); color: var(--brown); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.topbar.is-hidden { transform: translateY(-100%); }
.nav { display: flex; gap: 30px; }
.nav a { white-space: nowrap; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; opacity: .86; position: relative; padding: 6px 0; transition: opacity .2s ease; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
:lang(ka) .nav { gap: 20px; }
:lang(ka) .nav a { letter-spacing: .02em; font-size: 12.5px; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { opacity: 1; }
  .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.topbar-right { display: flex; align-items: center; gap: 20px; }
.phone { font-size: 13px; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.langs { display: flex; gap: 2px; }
.langs a { font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-decoration: none; padding: 5px 7px; opacity: .55; border-bottom: 1px solid transparent; transition: opacity .2s ease; }
.langs a.is-active { opacity: 1; border-bottom-color: currentColor; }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.drawer-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.drawer-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.drawer {
  position: fixed; inset: 0; z-index: 40; background: var(--brown-deep); color: var(--cream-light);
  padding: 120px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in-out); visibility: hidden;
}
.drawer-open .drawer { clip-path: inset(0); visibility: visible; }
.drawer-open .topbar { color: var(--cream-light); background: transparent; box-shadow: none; }
.drawer nav { display: flex; flex-direction: column; gap: 12px; }
.drawer nav a { font-family: var(--font-display); font-size: calc(clamp(34px, 8vw, 56px) * var(--display-scale)); line-height: 1.2; text-decoration: none; }
.drawer-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

/* Hero */
.hero { position: relative; color: var(--cream-light); background: var(--brown-deep); }
.hero-pin { position: relative; height: 100svh; min-height: 680px; overflow: hidden; }
.hero-bg, .hero-bg img, .hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg video { opacity: 0; transition: opacity .6s ease; }
.hero-bg video.is-ready { opacity: 1; }
.hero-bg img { animation: heroSettle 7s var(--ease) both; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,23,20,.55) 0%, rgba(36,23,20,.1) 34%, rgba(36,23,20,.45) 62%, rgba(36,23,20,.94) 100%); }
@keyframes heroSettle { from { transform: scale(1.12); } to { transform: scale(1); } }
/* The hero stays pinned while its video runs with the scroll, then the page moves on */
.hero[data-seq] .hero-bg img { animation: none; }
.hero.is-seq { height: 400svh; }
.hero.is-seq .hero-pin { position: sticky; top: 0; }
.hero.is-seq .hero-bg::after { opacity: calc(1 - var(--leave, 0) * .8); }
.hero.is-seq.is-past .hero-inner, .hero.is-seq.is-past .hero-cue { visibility: hidden; }
.hero-cue { position: absolute; right: var(--gutter); top: 42%; width: 1px; height: 76px; overflow: hidden; background: rgba(248,242,232,.3); opacity: calc(1 - var(--leave, 0)); }
.hero-cue::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--cream-light); animation: heroCue 2.2s var(--ease) infinite; }
@keyframes heroCue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.hero-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--gutter) 28px; max-width: 1568px; margin: 0 auto; }
.hero.is-seq .hero-inner { opacity: calc(1 - var(--leave, 0)); transform: translateY(calc(var(--leave, 0) * -40px)); }
.hero-title { font-size: clamp(76px, 15.5vw, 250px); line-height: .92; letter-spacing: .03em; font-weight: 500; margin-left: -.03em; }
.mask { display: block; overflow: hidden; padding: .04em 0 .16em; margin-bottom: -.16em; }
.mask > span { display: block; animation: maskUp 1.5s var(--ease) both .15s; }
@keyframes maskUp { from { transform: translateY(104%); } to { transform: none; } }
.hero-tagline { text-transform: uppercase; letter-spacing: .42em; font-size: clamp(11px, 1.15vw, 16px); margin-top: 16px; }
.hero-bottom { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-top: clamp(20px, 3vw, 36px); }
.hero-sub { font-family: var(--font-display); font-size: calc(clamp(22px, 2.2vw, 32px) * var(--display-scale)); max-width: 30ch; line-height: 1.2; margin: 0; }
.hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(22px, 3vw, 36px) 0 0; border-top: 1px solid rgba(248,242,232,.28); }
.hero-facts > div { padding: 18px 20px 0 0; }
.hero-facts dt { font-size: clamp(28px, 3vw, 44px); line-height: 1; color: var(--sand); }
.hero-facts dd { margin: 8px 0 0; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
:lang(ka) .hero-facts dd { letter-spacing: .03em; font-size: 12.5px; }

/* Sections */
.sec { padding: clamp(84px, 11vw, 176px) 0; position: relative; }
.tone-light { background: var(--cream-light); color: var(--brown); }
.tone-cream { background: var(--cream); color: var(--brown); }
.tone-dark { background: var(--brown-deep); color: var(--cream-light); --line: rgba(248, 242, 232, .2); }
.tone-dark .eyebrow { color: var(--sand); }
.sec-head > * { min-width: 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: clamp(44px, 6vw, 88px); max-width: 1040px; }
.sec-head .lead { margin: 22px 0 0; }
.sec-head .lead:empty { display: none; }
.prose p:last-child { margin-bottom: 0; }
.prose p { font-weight: 300; font-size: 17px; }
.tone-dark .prose p { opacity: .9; }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 110px); margin: clamp(36px, 5vw, 72px) 0 clamp(48px, 6vw, 96px); }
.mosaic { display: grid; gap: clamp(12px, 1.6vw, 24px); }
.mosaic figure { margin: 0; overflow: hidden; cursor: zoom-in; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-2 { grid-template-columns: repeat(2, 1fr); }
.mosaic-3 { grid-template-columns: repeat(3, 1fr); }
.mosaic-4 { grid-template-columns: repeat(12, 1fr); align-items: end; }
.mosaic-4 figure:nth-child(1) { grid-column: span 7; aspect-ratio: 16/11; }
.mosaic-4 figure:nth-child(2) { grid-column: span 5; aspect-ratio: 5/4; }
.mosaic-4 figure:nth-child(3) { grid-column: span 5; aspect-ratio: 5/4; align-self: start; }
.mosaic-4 figure:nth-child(4) { grid-column: span 7; aspect-ratio: 16/11; align-self: start; }
.mosaic-4 figure:nth-child(n+5) { grid-column: span 4; aspect-ratio: 4/3; }

.wide-media { margin: 0 0 48px; overflow: hidden; cursor: zoom-in; }
.wide-media img { width: 100%; max-height: 640px; object-fit: cover; }
.media { margin: 0; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; }
[data-zoom] { cursor: zoom-in; }

/* Tabs */
.tab-list { display: flex; gap: 0 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.tab {
  position: relative; border: 0; background: transparent; padding: 16px 0; margin-bottom: -1px;
  font-size: 14px; display: inline-flex; gap: 12px; align-items: baseline; text-align: left; opacity: .62;
  transition: opacity .25s ease;
}
.tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tone-dark .tab::after { background: var(--sand); }
.tab span { font: 500 15px/1 var(--font-display); letter-spacing: .04em; color: var(--terracotta); font-variant-numeric: lining-nums; }
.tone-dark .tab span { color: var(--sand); }
.tab.is-active { opacity: 1; }
.tab.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .tab:hover { opacity: 1; } }
.tab-panel { display: none; }
.tab-panel.is-active { display: grid; animation: panelIn .55s var(--ease); }
.tab-panel.is-active .media img { animation: panelImg 1.1s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes panelImg { from { transform: scale(1.04); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tp-grid, .loc-panel { grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 88px); align-items: center; }
.tp-text p { font-weight: 300; font-size: 17px; }

/* Long tab sets become a side index */
.tabs-index { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.tabs-index .tab-list { flex-direction: column; flex-wrap: nowrap; gap: 0; margin: 0; border: 0; border-top: 1px solid var(--line); position: sticky; top: 100px; }
.tabs-index .tab { padding: 17px 0; margin: 0; border-bottom: 1px solid var(--line); width: 100%; font-size: 15px; }
.tabs-index .tab-panel { grid-column: 2; grid-row: 1; }
.tabs-index .tp-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 3vw, 36px); }
.tabs-index .media img { aspect-ratio: 16/9; }
.tabs-index .tp-text { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 64px); }
.tabs-index .tp-text h3 { grid-column: 1 / -1; }
.tabs-index .tp-text .thumbs { margin-top: 4px; grid-template-columns: repeat(2, 1fr); align-self: start; }

.places { list-style: none; counter-reset: p; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.places li { counter-increment: p; display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.places li::before { content: counter(p, decimal-leading-zero); font-size: 11px; color: var(--terracotta); min-width: 22px; }
.places em { margin-left: auto; font-style: normal; opacity: .6; font-size: 13px; text-align: right; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.thumbs figure { margin: 0; overflow: hidden; aspect-ratio: 4/3; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.bullets { list-style: none; padding: 0; margin: 20px 0 0; }
.bullets li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--line); }
.bullets li::before { content: ''; position: absolute; left: 0; top: 22px; width: 14px; height: 1px; background: var(--terracotta); }
.tone-dark .bullets li::before { background: var(--sand); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 24px; margin: 20px 0; }
.facts > div { padding: 16px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 34px; }
.facts dd { margin: 4px 0 0; font-size: 13px; opacity: .7; }

/* Hairlines that draw in with their block */
.stat, .ledger-item { position: relative; }
.stat::before, .ledger-item::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) var(--d, 0ms);
}
.stat.is-in::before, .ledger-item.is-in::before { transform: none; }

/* Stats */
.stats { overflow: hidden; }
.stats-bg { position: absolute; inset: 0; opacity: .13; overflow: hidden; }
.stats-bg img { width: 100%; height: 100%; object-fit: cover; }
.stats .wrap { position: relative; }
.stats .lead { margin: 26px 0 0; max-width: 66ch; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin-top: clamp(44px, 6vw, 88px); }
.stat { padding: 30px 0 clamp(36px, 4vw, 60px); }
.stat-value { font-size: calc(clamp(58px, 7.4vw, 116px) * max(var(--display-scale), .9)); line-height: 1; color: var(--sand); font-variant-numeric: lining-nums tabular-nums; }
.stat-label { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 500; margin: 14px 0 10px; }
:lang(ka) .stat-label { letter-spacing: .02em; font-size: 13.5px; }
.stat p { font-size: 15px; font-weight: 300; opacity: .78; margin: 0; max-width: 34ch; }

/* Text + media */
.tm-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(36px, 7vw, 120px); align-items: center; }
.tm-grid > * { min-width: 0; }
.tm-left .tm-grid { grid-template-columns: 1.3fr 1fr; }
.tm-left .tm-media { order: -1; }
.tm-full .tm-grid { grid-template-columns: 1fr; }
.tm-media .media img { aspect-ratio: 5/4; }

.slider { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform 1s var(--ease-in-out); }
.slide { flex: 0 0 100%; margin: 0; overflow: hidden; }
.slide img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.slider-ui { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; background: var(--brown-deep); color: var(--cream-light); }
.arrow { width: 52px; height: 52px; border: 0; background: transparent; color: inherit; font-size: 16px; transition: background-color .25s ease; }
@media (hover: hover) and (pointer: fine) { .arrow:hover { background: var(--terracotta); } }
.arrow:active { background: var(--terracotta); }
.count { font-size: 11px; letter-spacing: .14em; min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--cream); overflow: hidden; display: flex; flex-direction: column; }
.tone-cream .card { background: var(--cream-light); }
.tone-dark .card { background: rgba(255,255,255,.05); }
.card figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; }
.card figure.blank { background: #fff; }
.card figure img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 28px; }
.card-body p { opacity: .8; margin: 0; }
.num { display: block; font: 500 18px/1 var(--font-display); color: var(--terracotta); margin-bottom: 14px; font-variant-numeric: lining-nums; }

/* Ledger: figures and terms ruled like a statement */
.ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.ledger-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ledger-item { padding: 30px 0 clamp(36px, 4vw, 56px); }
.ledger-num { font-size: calc(clamp(50px, 5.6vw, 84px) * max(var(--display-scale), .9)); line-height: 1; color: var(--terracotta); margin-bottom: 20px; }
.tone-dark .ledger-num { color: var(--sand); }
.ledger-item p { font-weight: 300; font-size: 16px; margin: 0; opacity: .85; max-width: 38ch; }
.ledger-item .h-sm:last-child { margin-bottom: 0; }

/* Partner row */
.logo-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-cell { display: grid; grid-template-rows: 150px auto; align-items: center; justify-items: center; gap: 14px; padding: 28px 18px 24px; text-align: center; }
.logo-cell + .logo-cell { border-left: 1px solid var(--line); }
.logo-cell img { max-height: 150px; width: auto; max-width: 100%; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05); opacity: .78; transition: filter .4s ease, opacity .4s ease; }
.logo-word { font: 500 26px/1.1 var(--font-display); }
.logo-cell figcaption, .logo-name { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
:lang(ka) .logo-name { letter-spacing: .04em; }
@media (hover: hover) and (pointer: fine) { .logo-cell:hover img { filter: none; opacity: 1; } }

/* Banner */
.banner { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: var(--cream-light); overflow: hidden; }
.banner-bg { position: absolute; inset: 0; overflow: hidden; }
.banner-bg img, .banner-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-bg video { opacity: 0; transition: opacity .8s ease; }
.banner-bg video.is-ready { opacity: 1; }
.banner-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(36,23,20,.88), rgba(36,23,20,.08) 72%); }
.banner-inner { position: relative; padding-bottom: clamp(56px, 8vw, 120px); max-width: 1040px; margin-left: 0; }
.banner-inner p { font-size: clamp(18px, 1.5vw, 22px); font-weight: 300; max-width: 52ch; margin: 22px 0 34px; }

/* Residences */
.residences { padding-top: 0; }
.res-banner { position: relative; height: 60vh; min-height: 380px; color: var(--cream-light); margin-bottom: clamp(48px, 6vw, 88px); overflow: hidden; }
.res-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.res-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(36,23,20,.8), transparent 60%); }
.res-banner .wrap { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; padding-bottom: 48px; }
.res-banner .eyebrow { color: var(--sand); }
.res-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 80px); margin-bottom: 48px; align-items: start; }
.res-top .facts { margin-top: 0; }
.filter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.filter > span { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; margin-right: 8px; opacity: .7; }
.chip { min-width: 44px; height: 44px; padding: 0 16px; border: 1px solid var(--line); background: transparent; font-weight: 500; transition: background-color .25s ease, color .25s ease; }
.chip.is-active { background: var(--brown); color: var(--cream-light); border-color: var(--brown); }
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.unit { background: #fff; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.unit[hidden] { display: none; }
.unit figure { margin: 0; background: #fff; padding: 20px; aspect-ratio: 4/3; }
.unit figure img { width: 100%; height: 100%; object-fit: contain; }
.unit-body { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 14px; margin-top: auto; }
.unit-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.unit-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 8px; margin: 0; }
.unit-meta dt { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; opacity: .55; }
.unit-meta dd { margin: 2px 0 0; font-weight: 500; font-size: 14px; }
.badge { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; padding: 5px 9px; font-weight: 600; white-space: nowrap; }
.st-available { background: #e3e6cf; color: #484b1f; }
.st-reserved { background: #f6dcc4; color: #8b2e10; }
.st-sold { background: #e6dcd6; color: #6d5a56; }
.empty { padding: 40px 0; text-align: center; opacity: .7; }

/* Mortgage */
.mort-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.mort { background: var(--cream-light); padding: 30px; display: flex; flex-direction: column; }
.mort-rate { font-size: clamp(36px, 3.6vw, 54px); color: var(--terracotta); margin-bottom: 20px; }
.mort p { font-size: 14px; }
.mort .bullets li { font-size: 14px; padding-top: 9px; padding-bottom: 9px; }

/* Timeline */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 32%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.strip figure { margin: 0; overflow: hidden; scroll-snap-align: start; aspect-ratio: 4/3; }
.strip img { width: 100%; height: 100%; object-fit: cover; }

/* Contact */
.contact { overflow: hidden; }
.contact-bg { position: absolute; inset: 0; opacity: .16; overflow: hidden; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact .lead { margin: 26px 0 40px; }
.contact-list { display: grid; gap: 0; margin: 0; border-bottom: 1px solid var(--line); }
.contact-list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .18em; opacity: .65; }
:lang(ka) .contact-list dt { letter-spacing: .03em; font-size: 12.5px; }
.contact-list dd { margin: 4px 0 0; font-size: 18px; font-weight: 300; }
.contact-list a { text-decoration: none; }

/* Forms */
.lead-form { display: grid; gap: 16px; }
.tone-dark .lead-form { background: var(--cream-light); color: var(--brown); padding: clamp(28px, 3.4vw, 52px); }
.lead-form label { display: grid; gap: 4px; }
.lead-form label > span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; opacity: .65; }
:lang(ka) .lead-form label > span { letter-spacing: .03em; font-size: 12.5px; }
.lead-form input, .lead-form textarea {
  font: inherit; color: inherit; border: 0; border-bottom: 1px solid rgba(58,38,35,.3); background: transparent;
  padding: 10px 0; border-radius: 0; outline: none; transition: border-color .25s ease;
}
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--terracotta); }
.lead-form .invalid { border-color: #b3261e; }
.lead-form .hp { position: absolute; left: -9999px; }
.consent { font-size: 12px; opacity: .7; margin: 4px 0; line-height: 1.5; }
.form-status { font-size: 14px; margin: 0; min-height: 1.2em; }
.form-status.ok { color: #484b1f; }
.form-status.err { color: #b3261e; }

/* Footer */
.footer { background: #1b110f; color: var(--cream); padding: 80px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(239,230,216,.15); }
.footer .logo { margin-bottom: 22px; display: inline-flex; }
.footer p { margin: 0 0 6px; opacity: .8; }
.footer nav, .footer-grid > div:last-child { display: flex; flex-direction: column; gap: 8px; }
.footer a { text-decoration: none; opacity: .8; transition: opacity .2s ease; }
.footer .logo { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { opacity: 1; } }
.footer-note { padding-top: 24px; font-size: 12px; opacity: .55; display: grid; gap: 8px; }

/* Modal + lightbox */
.modal, .lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(36,23,20,.78); backdrop-filter: blur(6px); animation: fade .3s ease; }
.modal[hidden], .lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal-box { position: relative; width: min(500px, 100%); max-height: 90vh; overflow: auto; background: var(--cream-light); padding: 44px 36px 36px; animation: modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; }
.lightbox .modal-close { color: #fff; top: 16px; right: 16px; }
.lightbox img { max-width: 100%; max-height: 90vh; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* Headings rise word by word out of a mask */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; max-width: 100%; }
.split .w > span { display: inline-block; transform: translateY(112%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.is-in .w > span { transform: none; }

/* Images open from a mask while settling */
.img-reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-in-out) var(--d, 0ms); }
.img-reveal.is-in { clip-path: inset(0); }
.img-reveal img { transform: scale(1.14); transition: transform 2s var(--ease) var(--d, 0ms); }
.img-reveal.is-in img { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .mosaic .img-reveal.is-in:hover img { transform: scale(1.03); transition-delay: 0ms; }
}

/* Scroll-linked depth. Off the main thread; browsers without it keep a still image. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .progress {
      display: block; position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; background: var(--copper);
      transform-origin: left; animation: grow linear both; animation-timeline: scroll(root);
    }
    .hero-bg { animation: heroDrift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero-inner { animation: heroLeave linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    .hero.is-seq .hero-bg, .hero.is-seq .hero-inner { animation: none; }
    .banner-bg img, .banner-bg video, .stats-bg img, .contact-bg img { height: 124%; top: -12%; animation: drift linear both; animation-timeline: view(); }
    .stats-bg img, .contact-bg img { position: relative; }
    @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @keyframes heroDrift { to { transform: translateY(16%); } }
    @keyframes heroLeave { to { opacity: 0; transform: translateY(-40px); } }
    @keyframes drift { from { transform: translateY(-9%); } to { transform: translateY(9%); } }
  }
}

/* Responsive */
@media (max-width: 1560px) {
  .topbar .phone { display: none; }
}
@media (max-width: 1400px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 1180px) {
  .stat-grid, .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-cell:nth-child(3) { border-left: 0; }
  .logo-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .intro-grid, .tp-grid, .loc-panel, .tm-grid, .tm-left .tm-grid, .res-top, .contact-grid, .footer-grid, .tabs-index { grid-template-columns: minmax(0, 1fr); }
  .tm-left .tm-media { order: 0; }
  .mosaic-3 { grid-template-columns: 1fr 1fr; }
  .tab-list { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scrollbar-width: none; }
  .tab { white-space: nowrap; flex-shrink: 0; }
  .tabs-index .tab-list { flex-direction: row; gap: 0 26px; position: static; border-top: 0; border-bottom: 1px solid var(--line); }
  .tabs-index .tab { width: auto; border-bottom: 0; padding: 16px 0; margin-bottom: -1px; }
  .tabs-index .tab-panel { grid-column: 1; grid-row: auto; }
  .tabs-index .tp-text { grid-template-columns: minmax(0, 1fr); }
  .tabs-index .tp-text .thumbs { margin-top: 16px; }
  .strip { grid-auto-columns: 78%; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .topbar .phone, .topbar .langs, .topbar .btn-small { display: none; }
  .topbar { height: 68px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(36,23,20,.6) 0%, rgba(36,23,20,.15) 24%, rgba(36,23,20,.68) 54%, rgba(36,23,20,.97) 100%); }
  .logo b { font-size: 21px; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-facts > div { padding-top: 12px; }
  .hero-facts dt { font-size: 26px; }
  .hero-tagline { letter-spacing: .3em; }
  .hero-bottom .btn { width: 100%; }
  .stat-grid, .ledger, .ledger-2 { grid-template-columns: minmax(0, 1fr); }
  .stat p { max-width: none; }
  .mosaic-4 figure:nth-child(n) { grid-column: span 12; aspect-ratio: 3/2; }
  .banner { min-height: 80vh; }
}

/* Hero entrance (CSS-only so it never depends on scroll observers) */
.rise { animation: fadeUp 1.3s var(--ease) both; }
.hero-tagline.rise { animation-delay: .5s; }
.hero-bottom.rise { animation-delay: .65s; }
.hero-facts.rise { animation-delay: .8s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity .4s ease; }
  .img-reveal { clip-path: none; opacity: 0; transition: opacity .4s ease; }
  .img-reveal.is-in { opacity: 1; }
  .img-reveal img { transform: none; transition: none; }
  .hero-bg img, .tab-panel.is-active .media img { animation: none; }
  .hero-cue { display: none; }
  .mask > span { animation: none; }
  .rise { animation: fade .4s ease both; }
  .tab-panel.is-active { animation: fade .25s ease; }
  .slider-track, .btn::before, .stat::before, .ledger-item::before { transition-duration: 0s; }
}
