/* Bhawani Estates | Unified typography, clear descenders, stable editorial headings v11.
   Public pages only. Retains the v9 cinematic media, branding and PHP admin system.
   Manrope is used consistently for headings and body copy.
   No italic or alternate font inside the same headline. */
:root {
  --serif: "Manrope", "Segoe UI", Arial, sans-serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
  --v10-copy: #514b47;
}
html { font-kerning: normal; text-rendering: optimizeLegibility; }
body.atelier-v5 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .003em;
}
.atelier-v5 :is(h1,h2,h3) {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.028em;
  line-height: 1.24;
  text-wrap: balance;
  overflow-wrap: normal;
}
.atelier-v5 :is(p,li) { line-height: 1.7; }
.atelier-v5 :is(p,li,figcaption,small) { overflow-wrap: break-word; }
.atelier-v5 :is(button,input,select,textarea) { font-family: var(--sans); }

/* The first overlap was caused by a broad `.atelier-v5 header` sticky rule.
   Only the global page header is sticky; editorial section headers scroll normally. */
body.atelier-v5 main header {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.atelier-v5 > header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Editorial headings: measured word spacing and a clear gap before the images. */
.bv5-curated {
  padding-top: clamp(74px, 7.5vw, 122px);
  padding-bottom: clamp(76px, 8vw, 128px);
}
.bv5-curated-head {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(230px, .65fr);
  column-gap: clamp(22px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 4.2vw, 66px);
  min-width: 0;
}
.bv5-curated-head > div { min-width: 0; }
.bv5-curated-head h2 {
  max-width: 100%;
  font-size: clamp(49px, 4.7vw, 78px);
  line-height: 1.12;
  letter-spacing: -.033em;
  margin-top: 20px;
  margin-bottom: 0;
  overflow-wrap: normal;
  text-wrap: pretty;
}
.bv5-curated-head h2 .cms-phrase,
.bv5-finder-intro h2 .cms-phrase,
.bv5-portfolio-intro h2 .cms-phrase,
.bv5-related h2 .cms-phrase {
  display: inline;
}
.bv5-curated-head p {
  justify-self: start;
  align-self: end;
  max-width: 370px;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.75;
  color: var(--v10-copy);
  padding-bottom: .3em;
}
.bv5-collections { position: relative; z-index: 0; }

/* Property finder: the right-hand paragraph must never be pushed off screen. */
.bv5-finder-block { padding-top: clamp(68px, 7vw, 116px); }
.bv5-finder-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  align-items: end;
  column-gap: clamp(28px, 5vw, 82px);
  min-width: 0;
}
.bv5-finder-intro > * { min-width: 0; }
.bv5-finder-intro h2 {
  font-size: clamp(48px, 4.85vw, 80px);
  line-height: 1.16;
  letter-spacing: -.03em;
  max-width: 100%;
  margin: 0;
  text-wrap: pretty;
  overflow-wrap: normal;
}
.bv5-finder-intro p {
  max-width: 400px;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.75;
  padding-bottom: .4em;
}
.bv5-finder-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(178px, auto);
  max-width: 100%;
  margin-top: clamp(30px, 3.7vw, 57px);
}
.bv5-finder-form label,
.bv5-finder-form button { min-width: 0; }
.bv5-finder-form button { gap: 14px; justify-content: space-between; }
.bv5-finder-form select { max-width: 100%; }
.bv5-finder-foot { margin-top: 20px; font-size: 13px; line-height: 1.6; }

/* Portfolio tabs: previous generic `a span` styling overrode each label to 10px. */
.bv5-portfolio-intro {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(35px, 5vw, 85px);
}
.bv5-portfolio-intro h2 {
  font-size: clamp(49px, 5vw, 78px);
  line-height: 1.13;
  max-width: 100%;
}
.bv5-portfolio-categories a {
  display: grid;
  grid-template-columns: minmax(22px, 34px) minmax(0, 1fr) 28px;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
  min-height: clamp(111px, 9vw, 143px);
  padding: 22px clamp(12px, 1.5vw, 28px);
  font-family: var(--serif);
}
.bv5-portfolio-categories a > span:first-child:not(.cms-phrase) {
  align-self: start;
  font: 600 11px/1.5 var(--sans);
  color: #96683d;
}
.bv5-portfolio-categories a > .cms-phrase {
  display: inline;
  align-self: center;
  font-family: var(--serif);
  font-size: clamp(27px, 2.4vw, 37px);
  font-weight: 450;
  line-height: 1.22;
  letter-spacing: -.025em;
  color: var(--wine);
}
.bv5-portfolio-categories a > b {
  align-self: center;
  justify-self: end;
  margin: 0;
  font-size: 22px;
}
.bv5-portfolio-categories a:hover { padding-left: clamp(16px, 2vw, 31px); }

/* Consistent readable spacing elsewhere, without disturbing full-bleed sections. */
.atelier-v5 .bv5-related h2,
.atelier-v5 .bv5-nextchapter h2,
.atelier-v5 .bv5-portfolio-intro h2 {
  letter-spacing: -.034em;
  line-height: 1.15;
}
.atelier-v5 .bv5-related header { margin-bottom: clamp(28px, 3vw, 46px); }
.atelier-v5 .bv5-related header p { line-height: 1.72; }
.atelier-v5 .bv5-collection-copy { padding-top: 23px; }
.atelier-v5 .bv5-collection-category { letter-spacing: .11em; font-size: 11px; }
.atelier-v5 .bv5-collection h3 { font-size: clamp(27px, 2.5vw, 40px); margin-top: 11px; line-height: 1.19; }
.atelier-v5 .card p,
.atelier-v5 .projectbody p,
.atelier-v5 .storystrip p,
.atelier-v5 .splittext p:not(.eye) { line-height: 1.77; }
.atelier-v5 .opening .opentext h1,
.atelier-v5 .propertycover .propertytext h1,
.atelier-v5 .cover .herostory h2 {
  letter-spacing: -.043em;
  line-height: 1.075;
}

@media (max-width: 1100px) {
  .bv5-curated-head { grid-template-columns: minmax(0,1.25fr) minmax(200px,.75fr); }
  .bv5-curated-head h2 { font-size: clamp(47px, 5vw, 65px); }
  .bv5-finder-intro { grid-template-columns: 1fr; row-gap: 22px; }
  .bv5-finder-intro p { max-width: 620px; padding-bottom: 0; }
  .bv5-portfolio-intro { grid-template-columns: 1fr; row-gap: 33px; }
}
@media (max-width: 760px) {
  .bv5-curated-head { grid-template-columns: 1fr; row-gap: 22px; margin-bottom: 35px; }
  .bv5-curated-head h2 { font-size: clamp(43px, 8.2vw, 64px); line-height: 1.13; }
  .bv5-curated-head p { max-width: 560px; padding-bottom: 0; }
  .bv5-finder-intro h2 { font-size: clamp(42px, 8.5vw, 66px); }
  .bv5-finder-form { grid-template-columns: minmax(0,1fr); }
  .bv5-finder-form label { border-right: 0; }
  .bv5-portfolio-categories a { min-height: 116px; }
  .bv5-portfolio-categories a > .cms-phrase { font-size: clamp(27px, 4vw, 34px); }
}
@media (max-width: 480px) {
  .bv5-curated { padding-top: 64px; padding-bottom: 76px; }
  .bv5-curated-head h2 { font-size: clamp(39px, 10.2vw, 49px); }
  .bv5-finder-intro h2 { font-size: clamp(38px, 9.6vw, 48px); }
  .bv5-finder-intro p { font-size: 15px; line-height: 1.7; }
  .bv5-portfolio-intro h2 { font-size: clamp(42px, 10vw, 57px); }
  .bv5-portfolio-categories { grid-template-columns: 1fr; }
  .bv5-portfolio-categories a { min-height: 98px; padding: 20px 12px; }
  .bv5-portfolio-categories a > .cms-phrase { font-size: 31px; }
  .bv5-finder-form button { min-height: 56px; }
}

/* Prevent the small-screen menu label being clipped by an older fixed 37px width. */
@media (max-width: 720px) {
  .atelier-v5 .headin .headact { flex-wrap: nowrap; gap: 8px; }
  .atelier-v5 .headin .menutoggle {
    display: inline-flex;
    width: auto;
    min-width: 76px;
    max-width: none;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 12px;
    font: 600 12px/1.3 var(--sans);
    white-space: nowrap;
    flex-shrink: 0;
  }
}
@media (max-width: 380px) {
  .atelier-v5 .headin .brand img:first-child { width: 23px; }
  .atelier-v5 .headin .brand img:last-child { width: 78px; }
  .atelier-v5 .headin .headbtn { padding-inline: 9px; min-width: 0; font-size: 11px; }
  .atelier-v5 .headin .menutoggle { min-width: 68px; padding-inline: 9px; }
}

/* Narrow-device directory filter: keep long city options inside the viewport. */
@media (max-width: 480px) {
  .atelier-v5 .directory .filters label,
  .atelier-v5 .bv5-directory .filters label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    width: 100%;
    min-width: 0;
  }
  .atelier-v5 .directory .filters select,
  .atelier-v5 .bv5-directory .filters select {
    min-width: 0;
    max-width: 100%;
    width: min(100%, 164px);
  }
}


/* v11: Professional, single-face typography on every public page. */
body.atelier-v5 {
  --serif: "Manrope", "Segoe UI", Arial, sans-serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
  font-family: var(--sans);
}
body.atelier-v5 :is(h1,h2,h3,h4,h5,h6) {
  font-family: var(--sans) !important;
  font-style: normal !important;
  font-weight: 600;
  letter-spacing: -.028em;
  line-height: 1.24;
  text-wrap: balance;
}
body.atelier-v5 :is(h1,h2,h3,h4,h5,h6) em,
body.atelier-v5 :is(h1,h2,h3,h4,h5,h6) i:not(.scan-line),
body.atelier-v5 main p em {
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
  vertical-align: baseline;
}
/* Retain brand-gold emphasis without the mismatched italic typeface. */
body.atelier-v5 :is(h1,h2,h3) em {color:#a07942;}
body.atelier-v5 :is(.cover,.opening,.propertycover,.reel-stage,.filmtitle) :is(h1,h2) em {color:#f0cf96;}

/* Headline descenders (y, g, p, q, j) must never be cut off. */
body.atelier-v5 :is(.herostory,.opentext,.propertytext,.bv5-finder-intro,.bv5-curated-head,.bv5-portfolio-intro,.bv5-related) :is(h1,h2,h3) {
  overflow: visible !important;
  line-height: 1.23 !important;
  padding-bottom: .12em;
  margin-bottom: .12em;
}
body.atelier-v5 .cover .herostory h2 {
  font-size: clamp(49px, 6.1vw, 96px);
  line-height: 1.21 !important;
  letter-spacing: -.035em !important;
  padding-bottom: .12em;
  margin: 0 0 clamp(18px, 2.5vw, 32px);
  max-width: min(100%, 13ch);
}
body.atelier-v5 .cover .herostory h2 em {
  line-height: 1.2 !important;
  padding-bottom: .025em;
}
body.atelier-v5 .propertycover .propertytext h1,
body.atelier-v5 .opening .opentext h1 {
  line-height: 1.23 !important;
  letter-spacing: -.035em !important;
  padding-bottom: .12em;
}
body.atelier-v5 .bv5-collection h3 {line-height:1.27 !important;padding-bottom:.08em;}
body.atelier-v5 .bv5-finder-intro h2,
body.atelier-v5 .bv5-portfolio-intro h2,
body.atelier-v5 .bv5-related h2 {letter-spacing:-.035em !important;line-height:1.24 !important;}
body.atelier-v5 .bv5-curated-head h2 {
  font-size: clamp(41px, 4.45vw, 68px);
  line-height: 1.24 !important;
  letter-spacing: -.034em !important;
  padding-bottom: .10em;
  margin-top: 18px;
  margin-bottom: 0;
  max-width: 100%;
}

/* Fix at source: page chrome stays sticky, content headings never do.
   This heading is deliberately static and excluded from reveal animations. */
body.atelier-v5 .bv5-curated-head,
html.bv5-ready body.atelier-v5 .bv5-curated-head,
html.bv5-ready body.atelier-v5 .bv5-curated-head.bv5-visible {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  transform: none !important;
  opacity: 1 !important;
  animation: none !important;
  transition: none !important;
  will-change: auto !important;
  z-index: auto !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  margin-bottom: clamp(35px, 4.6vw, 70px);
}
body.atelier-v5 .bv5-curated-head > div {min-width:0;}
body.atelier-v5 .bv5-curated-head p {max-width:38ch;line-height:1.65;}
body.atelier-v5 .bv5-collections {position:relative;z-index:0;clear:both;}
body.atelier-v5 .bv5-curated {isolation:isolate;}
/* Do not allow the nearby featured cards to collide with the headline. */
body.atelier-v5 .bv5-collections .bv5-collection {scroll-margin-top:92px;}
body.atelier-v5 .bv5-portfolio-categories a > .cms-phrase {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  line-height: 1.27;
  letter-spacing:-.03em;
}

@media (max-width: 960px) {
  body.atelier-v5 .bv5-curated-head h2 {font-size:clamp(36px,6.2vw,58px);}
  body.atelier-v5 .cover .herostory h2 {font-size:clamp(45px,7.1vw,72px);}
}
@media (max-width:760px) {
  body.atelier-v5 .bv5-curated-head {margin-bottom:34px;}
  body.atelier-v5 .bv5-curated-head h2 {font-size:clamp(34px,8.5vw,52px);}
  body.atelier-v5 .cover .herostory h2 {font-size:clamp(45px,9.4vw,65px);}
  body.atelier-v5 .bv5-finder-intro h2 {font-size:clamp(36px,8.0vw,58px);}
}
@media (max-width:480px) {
  body.atelier-v5 .bv5-curated-head h2 {font-size:clamp(32px,8.5vw,43px);}
  body.atelier-v5 .cover .herostory h2 {font-size:clamp(41px,9.5vw,54px);}
  body.atelier-v5 .propertycover .propertytext h1,
  body.atelier-v5 .opening .opentext h1 {font-size:clamp(38px,9vw,54px);}
  body.atelier-v5 .bv5-finder-intro h2 {font-size:clamp(35px,8.4vw,46px);}
  body.atelier-v5 .bv5-portfolio-intro h2 {font-size:clamp(37px,9vw,50px);}
}
@media (prefers-reduced-motion:reduce) {
  body.atelier-v5 .bv5-curated-head {transition:none !important;transform:none !important;}
}

/* Keep location-card titles inside the mobile viewport. An older full-bleed
   aspect-ratio/min-height rule was widening each grid card beyond its column. */
@media (max-width: 760px) {
  body.atelier-v5 .placelist { grid-template-columns: minmax(0,1fr); }
  body.atelier-v5 .placelist .placechoice {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    aspect-ratio: auto !important;
    min-height: 0 !important;
  }
  body.atelier-v5 .placechoice > div {max-width:100%;min-width:0;}
  body.atelier-v5 .placechoice h3 {font-size:clamp(25px,7vw,31px);overflow-wrap:anywhere;}
}
