/* ============================================================
   FORTUNE BAY RESIDENCES — project site
   Brand book v1.1 (Sep 2024)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand colors */
  --c-blue:        #000035;   /* Topero Blue, Pantone 2766 C */
  --c-sand:        #d4b5a0;   /* Pantone 4755 U */
  --c-light-blue:  #ddedf9;   /* Pantone 290 U */
  --c-light-grey:  #e6e4e4;   /* Pantone Cool Gray 1 U */
  --c-black:       #000000;
  --c-ivory:       #f7f3ed;   /* derived warm bg */
  --c-white:       #ffffff;
  --c-text:        #1a1a1f;
  --c-muted:       #6c6c75;

  /* Typography */
  --f-display: "Cormorant Garamond", "IvyMode", "Tiempos Headline", Georgia, serif;
  --f-sub:     "Lexend Zetta", "Lexend", system-ui, sans-serif;
  --f-body:    "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-arabic:  "Noto Naskh Arabic", "IBM Plex Sans Arabic", "Tajawal", sans-serif;

  /* Layout */
  --max-w: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(80px, 10vw, 160px);

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 300;
  color: var(--c-text);
  background: var(--c-ivory);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body[dir="rtl"] {
  font-family: var(--f-arabic), var(--f-body);
}
body[dir="rtl"] .display,
body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3 {
  font-family: var(--f-arabic), var(--f-display);
  font-weight: 500;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}
a:hover { opacity: 0.7; }

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--f-sub);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-blue);
}

.display {
  font-family: var(--f-display);
  font-weight: 300;
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--c-blue);
  margin: 0;
}

.display-xl { font-size: clamp(40px, 6.5vw, 96px); }
.display-l  { font-size: clamp(32px, 5vw, 72px); }
.display-m  { font-size: clamp(26px, 3.4vw, 48px); }

.lede {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--c-muted);
  max-width: 56ch;
}

.section { padding: var(--section-y) var(--gutter); }
.container { max-width: var(--max-w); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--f-sub);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  border-radius: 999px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-blue);
  color: var(--c-white);
}
.btn--primary:hover {
  background: var(--c-sand);
  color: var(--c-blue);
  opacity: 1;
}
.btn--ghost {
  background: transparent;
  color: var(--c-blue);
  border: 1px solid var(--c-blue);
}
.btn--ghost:hover {
  background: var(--c-blue);
  color: var(--c-white);
  opacity: 1;
}
.btn--ghost-light {
  background: transparent;
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.btn--ghost-light:hover {
  background: var(--c-white);
  color: var(--c-blue);
  opacity: 1;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  background: transparent;
  transition: all 0.3s var(--ease);
}
.header.is-scrolled {
  background: rgba(247, 243, 237, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px var(--gutter);
  box-shadow: 0 1px 0 rgba(0, 0, 53, 0.06);
}
.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.header__logo img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s var(--ease);
}
.header.is-scrolled .header__logo img,
.header.is-modal-open .header__logo img {
  filter: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-family: var(--f-sub);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--c-white);
  transition: color 0.3s var(--ease);
  white-space: nowrap;
}
.header.is-scrolled .nav a { color: var(--c-blue); }

.header__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  font-family: var(--f-sub);
  font-size: 11px;
  letter-spacing: 0.16em;
}
.lang-switcher button {
  color: var(--c-white);
  padding: 6px 8px;
  opacity: 0.55;
  transition: opacity 0.2s var(--ease);
  border-radius: 4px;
}
.lang-switcher button.is-active { opacity: 1; }
.lang-switcher button:hover { opacity: 1; }
.header.is-scrolled .lang-switcher button { color: var(--c-blue); }

.header__phone {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-white);
  letter-spacing: 0.04em;
  white-space: nowrap;
  unicode-bidi: isolate;
  direction: ltr;
}
.header.is-scrolled .header__phone { color: var(--c-blue); }

.header__menu-toggle { display: none; }

@media (max-width: 1024px) {
  .nav,
  .header__phone { display: none; }
  .header__menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    color: var(--c-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
  }
  .header.is-scrolled .header__menu-toggle {
    color: var(--c-blue);
    border-color: var(--c-blue);
  }
  .header__cta { display: none; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--c-blue);
  color: var(--c-white);
  padding: 96px var(--gutter) 48px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
}
body[dir="rtl"] .mobile-menu { transform: translateX(-100%); }
.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu__close {
  position: absolute;
  top: 22px;
  inset-inline-end: var(--gutter);
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: var(--c-white);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-menu nav a {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--c-white);
}
.mobile-menu__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--c-white);
  padding: 120px var(--gutter) 64px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__bg img.is-active { opacity: 1; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 53, 0.25) 0%,
    rgba(0, 0, 53, 0.05) 30%,
    rgba(0, 0, 53, 0.55) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}
.hero__title-block { max-width: 800px; }
.hero__title {
  color: var(--c-white);
  margin-bottom: 24px;
}
.hero__sub {
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.55;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__meta {
  position: absolute;
  bottom: 64px;
  inset-inline-end: var(--gutter);
  text-align: right;
  font-family: var(--f-sub);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  z-index: 2;
}
body[dir="rtl"] .hero__meta { text-align: left; }
.hero__meta span { display: block; line-height: 1.8; }

.hero__scroll {
  position: absolute;
  bottom: 32px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.5);
  z-index: 2;
  overflow: hidden;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-white);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@media (max-width: 768px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero__meta { display: none; }
}

/* ---------- Manifesto ---------- */
.manifesto {
  background: var(--c-ivory);
}
.manifesto__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.manifesto__quote .display {
  margin-bottom: 32px;
}
.manifesto__quote .lede {
  margin-bottom: 32px;
}
.manifesto__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
}
.manifesto__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}
.manifesto__image:hover img { transform: scale(1.04); }

@media (max-width: 768px) {
  .manifesto__inner { grid-template-columns: 1fr; }
  .manifesto__image { aspect-ratio: 4 / 3; order: -1; }
}

/* ---------- Numbers ---------- */
.numbers {
  background: var(--c-blue);
  color: var(--c-white);
  padding: clamp(72px, 8vw, 128px) var(--gutter);
}
.numbers__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 64px);
}
.number {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 28px;
}
.number__value {
  font-family: var(--f-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 300;
  line-height: 1;
  color: var(--c-sand);
  margin-bottom: 16px;
}
.number__label {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .numbers__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- The Project ---------- */
.project {
  background: var(--c-ivory);
  padding: 0;
}
.project__hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: var(--section-y) var(--gutter);
  overflow: hidden;
}
.project__hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.project__hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.project__hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(0, 0, 53, 0.7) 0%,
    rgba(0, 0, 53, 0.3) 50%,
    rgba(0, 0, 53, 0.1) 100%);
}
.project__hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  color: var(--c-white);
  max-width: 720px;
}
.project__logo {
  height: 80px;
  width: auto;
  margin-bottom: 36px;
}
.project__title {
  color: var(--c-white);
  margin-bottom: 24px;
}
.project__sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.6;
}
.project__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  margin-bottom: 44px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.fact__label {
  font-family: var(--f-sub);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}
.fact__value {
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--c-white);
}
.project__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Project gallery */
.project__gallery {
  padding: clamp(64px, 7vw, 120px) 0;
  background: var(--c-ivory);
}
.project__gallery-track {
  display: flex;
  gap: 16px;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--c-sand) transparent;
}
.project__gallery-track::-webkit-scrollbar { height: 6px; }
.project__gallery-track::-webkit-scrollbar-thumb { background: var(--c-sand); border-radius: 3px; }
.gallery-card {
  position: relative;
  flex: 0 0 clamp(280px, 38vw, 540px);
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 4px;
}
.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s ease;
}
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card__caption {
  position: absolute;
  bottom: 18px;
  inset-inline-start: 18px;
  font-family: var(--f-sub);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-white);
  text-shadow: 0 2px 12px rgba(0, 0, 53, 0.4);
}

@media (max-width: 768px) {
  .project__facts { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Approach (Pillars) ---------- */
.approach {
  background: var(--c-blue);
  color: var(--c-white);
}
.approach__head {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.approach__head .display { color: var(--c-white); margin-bottom: 24px; }
.approach__head .lede { color: rgba(255, 255, 255, 0.7); }
.approach__head .eyebrow { color: var(--c-sand); margin-bottom: 18px; display: inline-block; }
.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.pillar {
  background: var(--c-blue);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pillar__num {
  font-family: var(--f-sub);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--c-sand);
}
.pillar__title {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--c-white);
  line-height: 1.2;
}
.pillar__text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

@media (max-width: 900px) { .approach__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .approach__grid { grid-template-columns: 1fr; } }

/* ---------- Track Record ---------- */
.track {
  background: var(--c-ivory);
}
.track__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 48px;
  margin-bottom: clamp(40px, 5vw, 72px);
  flex-wrap: wrap;
}
.track__head-left { max-width: 640px; }
.track__head .eyebrow { display: inline-block; margin-bottom: 16px; }
.track__head .display { margin-bottom: 16px; }

.track__rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.track__rail::-webkit-scrollbar { display: none; }

.track-card {
  flex: 0 0 clamp(260px, 28vw, 360px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: inherit;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.track-card:hover { transform: translateY(-4px); }
.track-card:focus-visible {
  outline: 2px solid var(--c-sand);
  outline-offset: 4px;
  border-radius: 4px;
}
body[dir="rtl"] .track-card { text-align: right; }
.track-card__image {
  aspect-ratio: 4 / 5;
  background: var(--c-light-grey);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.track-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s ease;
}
.track-card:hover .track-card__image img { transform: scale(1.04); }
.track-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 0, 53, 0.0) 0%, rgba(0, 0, 53, 0.45) 100%);
  pointer-events: none;
}
.track-card__type {
  font-family: var(--f-sub);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-sand);
}
.track-card__title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--c-blue);
}
.track-card__meta {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.5;
}

/* ---------- Partners ---------- */
.partners {
  background: var(--c-ivory);
  padding-top: 0;
  padding-bottom: var(--section-y);
}
.partners__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
  padding: 48px var(--gutter);
  border-top: 1px solid rgba(0, 0, 53, 0.12);
  border-bottom: 1px solid rgba(0, 0, 53, 0.12);
}
.partners__title {
  font-family: var(--f-sub);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-blue);
  text-align: center;
}
.partners__logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.partner-logo {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--c-blue);
  opacity: 0.75;
  transition: opacity 0.25s var(--ease);
  letter-spacing: 0.06em;
  text-align: center;
}
.partner-logo:hover { opacity: 1; }
.partner-logo small {
  display: block;
  font-family: var(--f-sub);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
  margin-top: 6px;
  color: var(--c-muted);
}

@media (max-width: 768px) {
  .partners__logos { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ---------- Lifestyle / Location ---------- */
.lifestyle {
  background: var(--c-ivory);
}
.lifestyle__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: stretch;
}
.lifestyle__media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 460px;
}
.lifestyle__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.lifestyle__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 53, 0.35) 0%, rgba(0, 0, 53, 0) 60%);
}
.lifestyle__media-label {
  position: absolute;
  bottom: 24px;
  inset-inline-start: 24px;
  font-family: var(--f-sub);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--c-white);
  text-transform: uppercase;
}

.lifestyle__content { padding: 24px 0; display: flex; flex-direction: column; justify-content: center; }
.lifestyle__content .eyebrow { margin-bottom: 16px; }
.lifestyle__content .display { margin-bottom: 24px; }
.lifestyle__content .lede { margin-bottom: 32px; }

.poi-list {
  list-style: none;
  margin: 0; padding: 0;
}
.poi-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 53, 0.12);
  align-items: baseline;
}
.poi-list li:last-child { border-bottom: 1px solid rgba(0, 0, 53, 0.12); }
.poi-list .poi__time {
  font-family: var(--f-sub);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-sand);
  font-weight: 500;
}
.poi-list .poi__name {
  font-size: 15px;
  color: var(--c-blue);
}

@media (max-width: 900px) { .lifestyle__inner { grid-template-columns: 1fr; } }

/* ---------- Audience split ---------- */
.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  padding: 0;
}
.audience__col {
  position: relative;
  padding: clamp(48px, 6vw, 96px) clamp(32px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--c-white);
  overflow: hidden;
  min-height: 540px;
}
.audience__col img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 4s ease;
}
.audience__col:hover img { transform: scale(1.06); }
.audience__col::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 53, 0.85) 0%, rgba(0, 0, 53, 0.2) 100%);
  z-index: 1;
}
.audience__col > * { position: relative; z-index: 2; }
.audience__col .eyebrow {
  color: var(--c-sand);
  margin-bottom: 18px;
}
.audience__col h3 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--c-white);
  margin: 0 0 18px;
  line-height: 1.15;
}
.audience__col p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 460px;
  line-height: 1.6;
}

@media (max-width: 768px) { .audience { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact {
  background: var(--c-blue);
  color: var(--c-white);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 88px);
}
.contact__head .eyebrow { color: var(--c-sand); margin-bottom: 16px; display: inline-block; }
.contact__head .display { color: var(--c-white); margin-bottom: 24px; }
.contact__head .lede { color: rgba(255, 255, 255, 0.7); }

.contact__form {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--f-sub);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 0;
  color: var(--c-white);
  font-family: var(--f-body);
  font-size: 16px;
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-bottom-color: var(--c-sand);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field-group--radios {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.field-group--radios label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-family: var(--f-body);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}
.field-group--radios input { width: 14px; height: 14px; accent-color: var(--c-sand); }

.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  cursor: pointer;
}
.checkbox input { margin-top: 3px; accent-color: var(--c-sand); }
.checkbox a { text-decoration: underline; color: var(--c-sand); }

.contact__form button[type="submit"] {
  width: fit-content;
  margin-top: 8px;
}

.contact__success {
  display: none;
  padding: 24px;
  border: 1px solid var(--c-sand);
  border-radius: 4px;
  margin-top: 24px;
}
.contact__success.is-visible { display: block; }
.contact__success h4 {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 300;
  margin: 0 0 8px;
  color: var(--c-sand);
}

.contact__details { padding-top: 36px; }
.contact__details-row {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 20px 0;
}
.contact__details-row:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.contact__details-row .eyebrow {
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 6px;
}
.contact__details-row p,
.contact__details-row a {
  font-size: 16px;
  color: var(--c-white);
  margin: 0;
}
.contact__channels {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-family: var(--f-sub);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-white);
  transition: all 0.25s var(--ease);
}
.channel:hover { background: var(--c-sand); color: var(--c-blue); border-color: var(--c-sand); opacity: 1; }

@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--c-blue);
  color: rgba(255, 255, 255, 0.65);
  padding: 48px var(--gutter) 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__logo img {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 18px;
}
.footer__brand-text {
  font-size: 13px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h5 {
  font-family: var(--f-sub);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-sand);
  font-weight: 400;
  margin: 0 0 18px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  padding: 6px 0;
}
.footer-col a:hover { color: var(--c-white); opacity: 1; }

.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__bottom a { color: inherit; }
.footer__bottom a:hover { color: var(--c-white); opacity: 1; }

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Floating buttons ---------- */
.floats {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s var(--ease);
  pointer-events: none;
}
.floats.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.float-btn {
  width: 52px; height: 52px;
  border-radius: 999px;
  background: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 53, 0.18);
  transition: transform 0.2s var(--ease);
  color: var(--c-blue);
}
.float-btn:hover { transform: scale(1.06); opacity: 1; }
.float-btn svg { width: 24px; height: 24px; }
.float-btn--wa { background: #25d366; color: white; }
.float-btn--tg { background: #229ED9; color: white; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 53, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal__inner {
  background: var(--c-ivory);
  padding: clamp(32px, 5vw, 56px);
  max-width: 520px;
  width: 100%;
  border-radius: 4px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal__close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--c-blue);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__close:hover { background: var(--c-sand); color: var(--c-blue); }
.modal__title {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--c-blue);
  margin: 0 0 8px;
}
.modal__sub {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 24px;
}
.modal .field input,
.modal .field select,
.modal .field textarea {
  border-bottom-color: rgba(0, 0, 53, 0.25);
  color: var(--c-blue);
}
.modal .field input:focus,
.modal .field select:focus,
.modal .field textarea:focus {
  border-bottom-color: var(--c-blue);
}
.modal .field label { color: var(--c-muted); }
.modal .checkbox { color: var(--c-muted); }
.modal .checkbox a { color: var(--c-blue); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: all 0.9s var(--ease); }
.reveal.is-revealed { opacity: 1; transform: none; }

/* ---------- RTL adjustments ---------- */
body[dir="rtl"] .hero__scroll { transform: translateX(50%); }
body[dir="rtl"] .nav { flex-direction: row-reverse; }
body[dir="rtl"] .header__inner { flex-direction: row-reverse; }
body[dir="rtl"] .header__right { flex-direction: row-reverse; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }

/* ============================================================
   v2 ADDITIONS — Fortune Bay Residences project site
   ============================================================ */

/* preserve hero \n line breaks */
.hero__title { white-space: pre-line; }

/* ---------- Project long-form copy ---------- */
.project__copy {
  background: var(--c-ivory);
  padding: clamp(72px, 9vw, 140px) var(--gutter);
}
.project__copy-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.project__paragraph {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.45;
  font-weight: 400;
  color: var(--c-blue);
  margin: 0;
  text-wrap: balance;
}
.project__paragraph:first-child::first-letter {
  font-family: var(--f-display);
  font-size: 1.6em;
  font-weight: 300;
  color: var(--c-sand);
  float: left;
  line-height: 0.95;
  padding-inline-end: 10px;
  padding-top: 4px;
}
body[dir="rtl"] .project__paragraph:first-child::first-letter {
  float: right;
}

/* ---------- Advantages slider ---------- */
.advantages {
  background: var(--c-ivory);
  padding: clamp(72px, 9vw, 140px) 0 0;
}
.advantages__head {
  padding: 0 var(--gutter);
  margin-bottom: clamp(40px, 5vw, 72px);
  max-width: 760px;
}
.advantages__head .eyebrow { display: inline-block; margin-bottom: 18px; }
.advantages__head .display { margin-bottom: 18px; }

.advantages__slider {
  position: relative;
  padding-bottom: clamp(56px, 6vw, 96px);
}
.advantages__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 var(--gutter);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.advantages__track::-webkit-scrollbar { display: none; }

.adv-card {
  flex: 0 0 calc(100% - var(--gutter) * 2);
  max-width: 1200px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--c-blue);
  color: var(--c-white);
  border-radius: 6px;
  overflow: hidden;
  min-height: clamp(420px, 60vh, 620px);
}
.adv-card__media {
  position: relative;
  overflow: hidden;
}
.adv-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.adv-card.is-active .adv-card__media img { transform: scale(1.05); }

.adv-card__content {
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.adv-card__num {
  font-family: var(--f-sub);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--c-sand);
}
.adv-card__content .eyebrow {
  color: var(--c-sand);
  display: block;
  margin-bottom: 12px;
}
.adv-card__kicker {
  color: var(--c-white);
  margin: 0 0 16px;
}
.adv-card__text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 460px;
}

/* prev/next arrows */
.adv__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 53, 0.16);
  z-index: 5;
  transition: all 0.25s var(--ease);
}
.adv__nav:hover { background: var(--c-blue); color: var(--c-white); }
.adv__nav--prev { inset-inline-start: clamp(8px, 2vw, 24px); }
.adv__nav--next { inset-inline-end: clamp(8px, 2vw, 24px); }
.adv__nav:disabled { opacity: 0.3; cursor: not-allowed; }
body[dir="rtl"] .adv__nav svg { transform: scaleX(-1); }

/* dots */
.adv__dots {
  position: absolute;
  bottom: 0;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 16px 0;
}
body[dir="rtl"] .adv__dots { transform: translateX(50%); }
.adv__dot {
  width: 24px; height: 2px;
  background: rgba(0, 0, 53, 0.2);
  border-radius: 0;
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.adv__dot.is-active {
  background: var(--c-blue);
  width: 40px;
}

@media (max-width: 768px) {
  .adv-card { grid-template-columns: 1fr; }
  .adv-card__media { aspect-ratio: 4 / 3; min-height: 260px; }
  .adv__nav { width: 44px; height: 44px; }
}

/* ---------- Gallery (Apartments + Public) ---------- */
.gallery { background: var(--c-ivory); }
.gallery--public { background: var(--c-light-grey); padding-top: clamp(72px, 9vw, 140px); padding-bottom: clamp(72px, 9vw, 140px); }

.gallery__head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.gallery__head .eyebrow { display: inline-block; margin-bottom: 16px; }
.gallery__head .display { margin-bottom: 16px; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 12px;
}
.gallery-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--c-light-grey);
  grid-column: span 2;
  grid-row: span 1;
}
.gallery-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 4s ease;
}
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-tile figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px 14px;
  font-family: var(--f-sub);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-white);
  background: linear-gradient(0deg, rgba(0,0,53,0.75) 0%, rgba(0,0,53,0) 100%);
  z-index: 2;
}
.gallery-tile--xl { grid-column: span 4; grid-row: span 2; }
.gallery-tile--tall { grid-row: span 2; }

@media (max-width: 1024px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery-tile { grid-column: span 1; }
  .gallery-tile--xl { grid-column: span 2; grid-row: span 2; }
  .gallery-tile--tall { grid-row: span 2; }
}
@media (max-width: 600px) {
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-tile,
  .gallery-tile--xl,
  .gallery-tile--tall { grid-column: span 1; grid-row: span 1; }
  .gallery-tile--xl { grid-row: span 2; }
}

/* ---------- Project (track-record) modal ---------- */
.modal__inner--wide {
  max-width: 980px;
  padding: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--c-ivory);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 480px;
}
.modal__inner--wide .modal__close {
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-blue);
  z-index: 2;
}
.modal__inner--wide .modal__close:hover { background: var(--c-sand); color: var(--c-blue); }
.track-modal__media {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--c-blue);
  min-height: 320px;
}
.track-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.track-modal__body {
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.track-modal__type {
  font-family: var(--f-sub);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-sand);
}
.track-modal__title {
  font-family: var(--f-display);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-blue);
  margin: 0;
}
.track-modal__meta {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 4px;
}
.track-modal__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text);
  margin: 0;
}
@media (max-width: 768px) {
  .modal__inner--wide { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .track-modal__media { min-height: 220px; aspect-ratio: 16 / 10; }
}

/* ---------- Contact map link ---------- */
.contact__map-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  color: var(--c-white);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.contact__map-link:hover { color: var(--c-sand); opacity: 1; }
.contact__map-icon {
  flex: 0 0 auto;
  transform: translateY(2px);
  opacity: 0.7;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.contact__map-link:hover .contact__map-icon {
  opacity: 1;
  transform: translateY(2px) translate(2px, -2px);
}
body[dir="rtl"] .contact__map-icon { transform: translateY(2px) scaleX(-1); }
body[dir="rtl"] .contact__map-link:hover .contact__map-icon { transform: translateY(2px) scaleX(-1) translate(-2px, -2px); }
