/* ---------- 6 to 9, and the footer: the building, availability, the developer, enquire ---------- */

/* still */

/* 6. the building: the corner view in a panel, the headline and the two features beside it */
.building { padding: var(--pad) var(--gutter) 120px; }
.building .wrap { display: flex; flex-direction: column; gap: 96px; }
.building__top { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; }
.building__pic { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.building__frame { padding: 36px 36px 0; border-radius: 32px; background: var(--panel); overflow: hidden; }
.building__frame img { width: 100%; height: auto; }
.building__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.building h2 { font-size: clamp(40px, 5vw, 72px); line-height: 0.96; }
.features li { padding: 16px 0; border-top: 1px solid var(--rule); font-size: 19px; line-height: 1.35; font-weight: 500; }
.features li:last-child { border-bottom: 1px solid var(--rule); }

/* 7. availability: ten tiles grouped by layout, never by floor. Seven 2 BHK fill the first row;
   the three 3 BHK always start a row of their own, so the tiles never read as floors. */
.availability { padding: var(--pad) var(--gutter) 120px; }
.availability .wrap { display: flex; flex-direction: column; gap: 64px; }
.availability__head { display: flex; flex-direction: column; gap: 20px; }
.availability h2 { font-size: clamp(40px, 5.6vw, 80px); line-height: 0.96; }
.tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.tile {
  min-height: 168px;
  padding: 20px;
  border-radius: var(--round-card);
  border: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.tile[data-type="3"] { background: var(--panel); }
.tile--first3 { grid-column-start: 1; }
.tile__type { font-family: var(--head); font-size: clamp(26px, 2.3vw, 34px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.tile__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; font-size: 15px; }
.tile__state { display: flex; align-items: center; gap: 8px; font-weight: 500; }
/* The three dots: available is an open ring, reserved is tan, sold is a filled green circle. */
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }
.dot--key { width: 14px; height: 14px; }
.dot--held { background: var(--tan); border-color: var(--tan); }
.dot--sold { background: var(--sold-green); border-color: var(--sold-green); }
.availability__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.availability__notes { display: flex; flex-direction: column; gap: 12px; }
.key { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 15px; }
.key__item { display: flex; align-items: center; gap: 8px; }

/* 8. the developer: a panel-coloured band, the logo at the left, the passage at the right */
.builder { min-height: 560px; padding: 112px var(--gutter); background: var(--panel); display: flex; align-items: center; }
.builder .wrap { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; }
.builder__side { flex: 1 1 220px; display: flex; flex-direction: column; gap: 24px; }
.builder__side img { width: 220px; height: auto; }
.builder__main { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 36px; align-items: flex-start; }
.builder__say { font-family: var(--head); font-size: clamp(28px, 3.2vw, 46px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; text-wrap: pretty; }
.builder__say .quiet { color: rgba(58, 16, 18, 0.6); }

/* 9. enquire: the label, the headline, one line and the large button with the number */
.enquiry { min-height: 680px; padding: var(--pad) var(--gutter) 120px; }
.enquiry .wrap { display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: flex-end; }
.enquiry__main { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.enquiry h2 { font-size: clamp(44px, 7.4vw, 108px); }
.enquiry__say { max-width: 640px; font-size: 24px; line-height: 1.35; letter-spacing: -0.01em; color: var(--quiet-lg); }
/* From 1088 px wide, the block keeps the width it was designed at: three fifths of the column,
   less 35.2 px. That is what keeps the headline on the same two lines on a wide screen. */
@media (min-width: 1088px) {
  .enquiry__main { width: calc(60% - 35.2px); }
}

/* the footer: the name with the building showing through its letters, then the logo, the brand
   line and the fine print */
.footer { min-height: 560px; padding: 96px var(--gutter) 56px; background: var(--ink); color: var(--panel); overflow: hidden; }
.footer .wrap { max-width: 1344px; display: flex; flex-direction: column; gap: 56px; }
/* The letters show the top floor of the front view: rows 27 to 38 per cent of the picture. */
.footer__name {
  font-family: var(--head);
  font-size: min(13.4vw, 193px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  white-space: nowrap;
  text-align: center;
  background-color: var(--panel);
  background-image: url(../assets/front-elevation.png);
  background-repeat: no-repeat;
  background-size: 116% auto;
  background-position: 50% 30%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.footer__row { display: flex; flex-wrap: wrap; gap: 32px 72px; align-items: flex-end; justify-content: space-between; }
.footer__brand { flex: 1 1 360px; display: flex; flex-direction: column; gap: 20px; }
.footer__brand img { width: 180px; height: auto; }
.footer__line { font-family: var(--head); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.footer__fine { flex: 1 1 360px; max-width: 520px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; color: rgba(219, 208, 194, 0.82); }
/* The K-RERA registration, once it is on the page, stands a little stronger than the lines under it. */
.footer__rera { color: var(--panel); font-weight: 500; }

@media (max-width: 1023px) {
  .tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 640px) {
  .building { padding-bottom: 24px; }
  .building__frame { padding: 20px 20px 0; border-radius: 24px; }
  .availability { padding-bottom: 80px; }
  .availability .wrap { gap: 40px; }
  .tiles { gap: 12px; }
  .tile { min-height: 132px; padding: 16px; border-radius: 20px; }
  .availability__foot .pill { white-space: normal; text-align: center; justify-content: center; min-height: 56px; padding: 10px 24px; }
  .builder { min-height: 0; padding: 72px var(--gutter); }
  .builder__side img { width: 180px; }
  .enquiry { min-height: 0; padding-bottom: 88px; }
  .enquiry__say { font-size: 20px; }
  .footer { min-height: 0; padding: 72px var(--gutter) 96px; }
  .footer__line { font-size: 24px; }
}

/* moving */

/* The footer's THE GRAND 10 rises a little as it enters (js/extras.js sets --f from 0 to 1). */
.motion .footer__name { transform: translate3d(0, calc((1 - var(--f, 1)) * 90px), 0); will-change: transform; }

/* moving, on a phone */

/* The same as above. The phone sizes are with the still form, since they hold for every form. */
