/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: hsl(0, 0%, 3%);
  --fg: hsl(0, 0%, 95%);
  --muted: hsl(0, 0%, 60%);
  --border: hsl(0, 0%, 18%);
  --card: hsl(0, 0%, 6%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ========== Preloader ========== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.8s ease;
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

#globe-container {
  width: 288px;
  height: 288px;
}

@media (min-width: 768px) {
  #globe-container { width: 384px; height: 384px; }
}

.preloader-text {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.preloader-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}

.progress-track {
  width: 112px;
  height: 1px;
  background: var(--border);
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: var(--fg);
  transition: width 0.1s linear;
}

/* ========== Header ========== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsla(0, 0%, 3%, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

@media (min-width: 768px) {
  .header-inner { padding: 16px 48px; }
}

.logo { display: flex; flex-direction: column; }

.logo-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--fg);
}

@media (min-width: 768px) {
  .logo-title { font-size: 36px; }
}

.logo-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 768px) {
  .logo-subtitle { font-size: 12px; }
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
}

.desktop-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--muted);
  transition: color 0.3s;
}

.desktop-nav a:hover { color: var(--fg); }

#mobile-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
}

@media (min-width: 1024px) {
  #mobile-toggle { display: none; }
}

.hidden { display: none !important; }

#mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { max-height: 0; opacity: 0; }
  to { max-height: 400px; opacity: 1; }
}

/* removed: hamburger menu is used at all widths */

#mobile-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  letter-spacing: 0.15em;
  color: var(--muted);
  transition: color 0.3s;
}

#mobile-nav a:hover { color: var(--fg); }

/* ========== Hero Grid ========== */
:root { --header-h: 148px; }
@media (min-width: 768px) { :root { --header-h: 140px; } }

#hero-grid {
  margin-top: var(--header-h);
  height: calc(100svh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-top: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.grid-container {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  min-height: 0;
  height: 100%;
}

.tile-skyscraper    { grid-column: 1;          grid-row: 1 / span 2; }
.tile-residential   { grid-column: 2;          grid-row: 1; }
.tile-commercial    { grid-column: 2;          grid-row: 2; }
.tile-infrastructure{ grid-column: 1;          grid-row: 3; }
.tile-interiors     { grid-column: 2;          grid-row: 3; }
.tile-planning      { grid-column: 1;          grid-row: 4; }
.tile-renovation    { grid-column: 2;          grid-row: 4; }

@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    min-height: 0;
    height: 100%;
    grid-auto-rows: auto;
  }
  /* Asymmetric magazine layout — 7 tiles, every shape unique */
  .tile-skyscraper    { grid-column: 1;         grid-row: 1 / span 4; }  /* tall left column */
  .tile-residential   { grid-column: 2 / span 2; grid-row: 1; }          /* wide top banner */
  .tile-commercial    { grid-column: 4;         grid-row: 1 / span 2; }  /* tall right */
  .tile-infrastructure{ grid-column: 2 / span 2; grid-row: 2 / span 2; } /* big square center */
  .tile-interiors     { grid-column: 4;         grid-row: 3; }            /* small square */
  .tile-planning      { grid-column: 2;         grid-row: 4; }            /* small square */
  .tile-renovation    { grid-column: 3 / span 2; grid-row: 4; }          /* wide bottom banner */
}

.tile {
  position: relative;
  overflow: hidden;
  display: block;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: var(--delay, 0s);
  min-height: 0;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.tile:hover img {
  transform: scale(1.1);
}

.tile-overlay {
  position: absolute;
  inset: 0;
  background: hsla(0, 0%, 0%, 0.4);
  transition: background 0.5s ease;
}

.tile:hover .tile-overlay {
  background: hsla(0, 0%, 0%, 0.2);
}

.tile-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.tile-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsla(0, 0%, 100%, 0.7);
  margin-bottom: 8px;
}

.tile-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 0.15em;
  color: #fff;
  text-shadow: none;
}

@media (min-width: 768px) {
  .tile-label { font-size: 36px; }
}

@media (min-width: 1024px) {
  .tile-label { font-size: 48px; }
}

.tile-line {
  margin-top: 16px;
  width: 32px;
  height: 1px;
  background: hsla(0, 0%, 100%, 0.5);
  transition: width 0.5s ease;
}

.tile:hover .tile-line {
  width: 64px;
}

.tile-border {
  position: absolute;
  inset: 0;
  border: 1px solid hsla(0, 0%, 18%, 0.3);
  pointer-events: none;
}

/* ========== Footer ========== */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  padding: 40px 24px;
}

@media (min-width: 768px) {
  .footer-inner { padding: 52px 48px; }
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.2em;
  color: var(--fg);
}

.footer-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-links { gap: 40px; }
}

.footer-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--fg); }

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copy {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ========== Subpage shared ========== */
.page-hero {
  padding-top: 180px;
  padding-bottom: 64px;
  text-align: center;
  background: linear-gradient(180deg, hsl(0,0%,8%) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .page-hero { padding-top: 220px; padding-bottom: 96px; } }
.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 0.12em;
  color: var(--fg);
  line-height: 1.05;
  padding: 0 16px;
  word-break: break-word;
}
@media (min-width: 768px) { .page-hero h1 { font-size: 72px; } }
.page-hero p {
  margin-top: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 24px;
}
@media (min-width: 768px) { .page-hero p { font-size: 16px; } }

.section { padding: 64px 24px; max-width: 1280px; margin: 0 auto; }
@media (min-width: 768px) { .section { padding: 96px 48px; } }

.section-intro {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
@media (min-width: 768px) { .section-intro { font-size: 18px; margin-bottom: 64px; } }

/* ========== Amenities Gallery ========== */
.amenities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .amenities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .amenities-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
@media (min-width: 1280px) { .amenities-grid { grid-template-columns: repeat(4, 1fr); } }

.amenity-card {
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.amenity-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.25); }
.amenity-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.amenity-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.amenity-card:hover .amenity-img img { transform: scale(1.06); }
.amenity-body { padding: 20px 24px 28px; }
.amenity-body h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.12em;
  color: var(--fg);
}
.amenity-body p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ========== Projects ========== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 768px) { .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (min-width: 1280px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -25px rgba(0,0,0,0.3); }
.project-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.project-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.project-card:hover .project-img img { transform: scale(1.08); }
.project-body { padding: 24px 28px 32px; }
.project-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-body h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.1em;
  color: var(--fg);
  margin-top: 6px;
}
.project-body p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* ========== About ========== */
.about-intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.about-intro h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.12em;
  color: var(--fg);
}
@media (min-width: 768px) { .about-intro h2 { font-size: 36px; } }
.about-intro p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}
@media (min-width: 768px) { .about-intro p { font-size: 18px; } }

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

.why-card {
  padding: 32px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.why-card:hover { transform: translateY(-4px); border-color: var(--fg); }
.why-icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--fg);
  border-radius: 50%;
  color: var(--fg);
}
.why-icon svg { width: 26px; height: 26px; }
.why-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--fg);
}
.why-card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 64px;
}
@media (min-width: 768px) { .mv-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
.mv-card {
  padding: 40px 32px;
  background: var(--card);
  border: 1px solid var(--border);
}
.mv-card .label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.mv-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 0.1em;
  color: var(--fg);
  margin-top: 8px;
}
.mv-card p {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.section-title {
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.15em;
  color: var(--fg);
  margin-bottom: 12px;
}
@media (min-width: 768px) { .section-title { font-size: 44px; } }
.section-sub {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
}

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; } }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 32px 24px;
}
@media (min-width: 768px) { .contact-form { padding: 40px; } }

.form-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  color: var(--fg);
  transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--fg); }
.form-field textarea { min-height: 140px; resize: vertical; }

.btn-submit {
  margin-top: 24px;
  padding: 14px 28px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn-submit:hover { background: hsl(0,0%,80%); transform: translateY(-2px); }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.info-card {
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.3s ease;
}
.info-card:hover { border-color: var(--fg); }
.info-card .icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--fg);
  border-radius: 50%;
  color: var(--fg);
}
.info-card .icon svg { width: 18px; height: 18px; }
.info-card .label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-card .value {
  margin-top: 4px;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  color: var(--fg);
  line-height: 1.5;
}

.map-wrap {
  margin-top: 48px;
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 21 / 9;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Form success */
.form-success {
  margin-top: 16px;
  padding: 14px 18px;
  background: hsla(140, 60%, 35%, 0.15);
  border: 1px solid hsla(140, 60%, 50%, 0.4);
  color: hsl(140, 60%, 75%);
  font-size: 14px;
}
.form-success.hidden { display: none; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== Overrides: golden hover + centered logo + desktop hamburger + hover reveal + brochures ========== */
:root {
  --gold: hsl(42, 70%, 58%);
}

/* Header layout: hamburger left, logo center, spacer right */
.header-inner {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
#mobile-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  color: var(--fg);
  transition: color 0.3s;
}
#mobile-toggle:hover { color: var(--gold); }
.header-spacer { display: block; }

/* Hide old desktop nav entirely — hamburger is used everywhere */
.desktop-nav { display: none !important; }

/* Logo: centered with horizontal rules above/below subtitle */
.logo {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  justify-self: center;
}
.logo-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.35em;
  line-height: 1;
  color: var(--fg);
  padding-left: 0.35em; /* visual centering for letter-spacing */
}
@media (min-width: 768px) { .logo-title { font-size: 34px; } }
.logo-rule {
  display: block;
  width: 140px;
  max-width: 60vw;
  height: 1px;
  background: var(--fg);
  opacity: 0.7;
}
.logo-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 768px) { .logo-subtitle { font-size: 12px; } }

/* Mobile nav drops down from the top */
#mobile-nav {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
}
#mobile-nav a { transition: color 0.3s; }
#mobile-nav a:hover { color: var(--gold); }

/* ===== Hover behaviour: image dulls, label + subtitle revealed ===== */
.tile-content {
  gap: 0;
}
.tile-label {
  opacity: 1;
  transform: translateY(0);
  transition: color 0.4s ease, transform 0.4s ease;
}
.tile-subtitle {
  max-width: 320px;
  margin: 0 auto;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: opacity 0.45s ease, max-height 0.5s ease, transform 0.45s ease, color 0.4s ease;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.18em;
  color: hsla(0, 0%, 100%, 0.85);
  text-transform: none;
}
@media (min-width: 768px) {
  .tile-content { padding: 16px; }
  .tile-subtitle {
    max-width: 280px;
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: 0.12em;
  }
  .tile:hover .tile-subtitle,
  .tile:focus-visible .tile-subtitle { margin-top: 10px; }
}
@media (max-width: 767px) {
  .tile-content { padding: 10px; }
  .tile-label {
    font-size: 20px;
    letter-spacing: 0.14em;
  }
  .tile-subtitle {
    max-width: 160px;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.08em;
  }
  .tile-line { margin-top: 8px; }
  .tile:hover .tile-subtitle,
  .tile:focus-visible .tile-subtitle { margin-top: 8px; }
}
.tile-line {
  transition: width 0.5s ease, background 0.4s ease;
}
.tile:hover .tile-overlay {
  background: hsla(0, 0%, 0%, 0.65); /* dull/darken image more on hover */
}
.tile:hover .tile-label { color: var(--gold); }
.tile:hover .tile-line { background: var(--gold); }
.tile:hover .tile-subtitle {
  opacity: 1;
  max-height: 200px;
  margin-top: 14px;
  transform: translateY(0);
}
.tile:focus-visible .tile-overlay { background: hsla(0, 0%, 0%, 0.65); }
.tile:focus-visible .tile-subtitle {
  opacity: 1; max-height: 200px; margin-top: 14px; transform: translateY(0);
}

/* ===== 7-tile asymmetric magazine grid ===== */
@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
  .tile-skyscraper    { grid-column: 1;          grid-row: 1 / span 4; }
  .tile-residential   { grid-column: 2 / span 2; grid-row: 1; }
  .tile-commercial    { grid-column: 4;          grid-row: 1 / span 2; }
  .tile-infrastructure{ grid-column: 2 / span 2; grid-row: 2 / span 2; }
  .tile-interiors     { grid-column: 4;          grid-row: 3; }
  .tile-planning      { grid-column: 2;          grid-row: 4; }
  .tile-renovation    { grid-column: 3 / span 2; grid-row: 4; }
}

/* ===== Brochure download strip ===== */
#brochures {
  background: linear-gradient(180deg, var(--bg) 0%, hsl(0,0%,6%) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px;
}
@media (min-width: 768px) { #brochures { padding: 72px 48px; } }

.brochures-inner { max-width: 1280px; margin: 0 auto; text-align: center; }
.brochures-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 32px;
}
@media (min-width: 768px) { .brochures-heading { font-size: 26px; } }

.brochures-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
}
.brochure-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--border);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.brochure-link svg { transition: transform 0.3s ease; }
.brochure-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.brochure-link:hover svg { transform: translateY(2px); }

/* ===== Global golden hover for nav/footer/links ===== */
.footer-links a:hover,
.brochure-link:hover { color: var(--gold); }


/* ===== Brochure pipe-separated layout ===== */
.brochures-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  text-align: center;
}
.brochure-link {
  padding: 6px 4px;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.28em;
  color: var(--fg);
}
@media (min-width: 768px) { .brochure-link { font-size: 18px; } }
.brochure-link:hover { color: var(--gold); border-color: transparent; transform: none; }
.brochure-sep {
  color: var(--muted);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  opacity: 0.5;
}

/* Footer brand */
.footer-brand { display: flex; align-items: center; justify-content: center; }
.footer-logo {
  display: block;
  width: min(112px, 28vw);
  height: auto;
  opacity: 0.96;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
}

/* Ensure header is fixed on every page (already fixed, but reinforce body padding so content isn't hidden) */
body { padding-top: 0; }
.page-hero, .section { /* ensure first content clears the fixed header */ }

/* ========== Commercial Page ========== */
.commercial-intro {
  padding: 140px 24px 40px;
  text-align: center;
  background: var(--bg);
}
.commercial-intro h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0.08em;
  color: var(--fg);
  margin-bottom: 18px;
}
.commercial-services {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(13px, 1.6vw, 17px);
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px;
}
.commercial-services .sep { color: var(--gold, hsl(42,70%,58%)); }

.commercial-hero {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 24px;
}
.commercial-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, hsla(0,0%,0%,.55), hsla(0,0%,0%,.75));
}
.commercial-hero-content { position: relative; max-width: 800px; }
.commercial-hero-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 7vw, 84px);
  letter-spacing: 0.06em;
  color: var(--fg);
  margin-bottom: 20px;
}
.commercial-hero-content p {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--muted);
}

.commercial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .commercial-grid { grid-template-columns: repeat(3, 1fr); }
}
.commercial-card {
  position: relative;
  display: block;
  height: 380px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .4s ease;
}
.commercial-card:hover { transform: translateY(-4px); }
.commercial-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, hsla(0,0%,0%,.25), hsla(0,0%,0%,.85));
  transition: background .35s ease;
}
.commercial-card:hover .commercial-card-overlay {
  background: linear-gradient(180deg, hsla(0,0%,0%,.55), hsla(0,0%,0%,.9));
}
.commercial-card-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
}
.commercial-card-content h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.06em;
  color: var(--fg);
  margin-bottom: 8px;
  text-shadow: none;
}
.commercial-card-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold, hsl(42,70%,58%));
}

/* ========== Header services strip ========== */
.header-services {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px;
  padding: 8px 24px 10px;
  border-top: 1px solid var(--border);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.header-services .sep { color: var(--gold, hsl(42,70%,58%)); }
@media (min-width: 768px) {
  .header-services { font-size: 13px; padding: 10px 48px 12px; gap: 10px 18px; }
}

/* ========== Commercial Hero Carousel ========== */
.commercial-hero-carousel {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  margin-top: 0;
}
.hc-track { position: absolute; inset: 0; }
.hc-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
}
.hc-slide.is-active { opacity: 1; }
.hc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, hsla(0,0%,0%,.5), hsla(0,0%,0%,.75));
}
.hc-content { position: relative; max-width: 820px; }
.hc-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 7vw, 84px);
  letter-spacing: 0.06em;
  color: var(--fg);
  margin-bottom: 18px;
}
.hc-content p {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--muted);
}
.hc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: hsla(0,0%,0%,.4);
  color: var(--fg);
  border: 1px solid var(--border);
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s, border-color .25s;
  z-index: 2;
}
.hc-arrow:hover { background: var(--gold, hsl(42,70%,58%)); color: hsl(0,0%,5%); border-color: var(--gold, hsl(42,70%,58%)); }
.hc-prev { left: 18px; }
.hc-next { right: 18px; }
.hc-dots {
  position: absolute; bottom: 24px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 10px; z-index: 2;
}
.hc-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: hsla(0,0%,100%,.35); border: none; cursor: pointer;
  transition: background .25s, transform .25s;
}
.hc-dot.is-active { background: var(--gold, hsl(42,70%,58%)); transform: scale(1.2); }

/* ========== Brochure password modal ========== */
.brochure-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.brochure-modal.hidden { display: none; }
.brochure-modal-backdrop { position: absolute; inset: 0; background: hsla(0,0%,0%,0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.brochure-modal-card {
  position: relative; width: 100%; max-width: 420px;
  background: hsl(0,0%,7%); border: 1px solid var(--border);
  padding: 36px 28px 28px; text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  animation: brochureIn 0.25s ease-out;
}
@keyframes brochureIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.brochure-modal-close { position: absolute; top: 12px; right: 12px; background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 6px; transition: color 0.2s; }
.brochure-modal-close:hover { color: var(--gold); }
.brochure-modal-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 0.14em; color: var(--fg); margin-bottom: 8px; }
.brochure-modal-card p { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
#brochure-password {
  width: 100%; padding: 14px 16px; background: hsl(0,0%,4%); border: 1px solid var(--border);
  color: var(--fg); font-family: 'Barlow', sans-serif; font-size: 15px; letter-spacing: 0.08em;
  outline: none; transition: border-color 0.2s;
}
#brochure-password:focus { border-color: var(--gold); }
.brochure-error { color: hsl(0, 70%, 62%); font-size: 13px; margin-top: 10px; font-family: 'Barlow', sans-serif; letter-spacing: 0.05em; }
.brochure-error.hidden { display: none; }
.brochure-submit {
  margin-top: 18px; width: 100%; padding: 14px 18px; background: var(--gold); color: hsl(0,0%,5%);
  border: 0; font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 0.18em;
  cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.brochure-submit:hover { background: hsl(42, 70%, 65%); transform: translateY(-1px); }

/* Brochure links restyle as buttons — keep Bebas Neue typography */
button.brochure-link {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px 4px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1;
}
button.brochure-link span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: inherit;
  letter-spacing: inherit;
}
@media (min-width: 768px) { button.brochure-link { font-size: 18px; } }
button.brochure-link:hover { color: var(--gold); }

/* ========== Amenities — Icon Tile Layout ========== */
/* ========== Amenities Showcase (split layout) ========== */
.amenities-showcase {
  background:
    radial-gradient(circle at 80% 10%, rgba(212, 175, 55, 0.06), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(212, 175, 55, 0.04), transparent 50%),
    var(--bg);
  padding: 56px 20px 80px;
  position: relative;
  overflow: hidden;
}
.amenities-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
@media (min-width: 768px) { .amenities-showcase { padding: 96px 48px 120px; } }

.amenities-split {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .amenities-split {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 64px;
  }
}

/* Left visual */
.amenities-visual { position: relative; }
.amenities-visual-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
}
@media (min-width: 1024px) {
  .amenities-visual-frame { aspect-ratio: 3 / 4; }
}
.amenities-visual-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  pointer-events: none;
  z-index: 2;
}
.amenities-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease;
}
.amenities-visual-frame:hover img { transform: scale(1.04); }
.amenities-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
}
.amenities-visual-tag {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 3;
  background: var(--gold);
  color: #000;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,0.6);
}
.amenities-visual-tag .tag-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 0.04em;
}
.amenities-visual-tag .tag-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  margin-top: 4px;
}
.amenities-visual-caption {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 3;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}

/* Right content */
.amenities-content { position: relative; }
.amenities-heading { margin-bottom: 32px; }
@media (min-width: 768px) { .amenities-heading { margin-bottom: 44px; } }
.amenities-eyebrow {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.amenities-showcase .amenities-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  letter-spacing: 0.18em;
  color: #fff;
  line-height: 1;
  margin-bottom: 14px;
}
@media (min-width: 768px) { .amenities-showcase .amenities-title { font-size: 64px; } }
.amenities-flourish {
  display: block;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.3em;
  opacity: 0.8;
}

/* Icon grid */
.amenities-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.18);
}
@media (min-width: 480px) { .amenities-icon-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 479px) {
  .amenities-icon-grid .amenity-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.amenity-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 10px 24px;
  background: var(--card);
  transition: background 0.35s ease;
  position: relative;
}
@media (min-width: 768px) { .amenity-tile { padding: 30px 14px 32px; } }
.amenity-tile:hover { background: #0d0d0d; }
.amenity-tile:hover .amenity-icon { transform: translateY(-3px); }
.amenity-tile .amenity-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.14), rgba(212,175,55,0.02) 70%);
  padding: 9px;
  transition: transform 0.35s ease;
}
@media (min-width: 768px) {
  .amenity-tile .amenity-icon { width: 56px; height: 56px; padding: 12px; margin-bottom: 16px; }
}
.amenity-tile .amenity-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.amenity-tile h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #fff;
  line-height: 1.3;
  text-transform: uppercase;
}
@media (min-width: 768px) { .amenity-tile h3 { font-size: 13.5px; } }


/* ===== Town Developers page ===== */
.td-hero {
  background:
    radial-gradient(1200px 600px at 80% 20%, hsla(42,70%,58%,0.06), transparent 60%),
    radial-gradient(900px 500px at 10% 80%, hsla(42,70%,58%,0.04), transparent 60%),
    var(--bg);
  padding: 120px 20px 60px;
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.td-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .td-hero { padding: 140px 48px 80px; min-height: 82vh; }
  .td-hero-inner { grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
}
.td-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--muted);
}
.td-eyebrow--gold { color: var(--gold); }
.td-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  margin-top: 18px;
  color: var(--fg);
}
.td-rule { width: 80px; margin: 22px 0; display: inline-block; }
.td-rule--center { margin: 22px auto; }
.td-lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 460px;
}
.td-hero-map {
  position: relative;
  border: 1px solid var(--border);
  background: hsl(0,0%,4%);
  padding: 14px;
  box-shadow: 0 30px 80px -40px hsla(42,70%,58%,0.25);
}
.td-hero-map img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.05);
}
.td-map-corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--gold);
}
.td-map-corner--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.td-map-corner--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.td-map-corner--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.td-map-corner--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ===== Projects of Ramay Group ===== */
.td-projects {
  background: linear-gradient(180deg, var(--bg) 0%, hsl(0,0%,5%) 100%);
  padding: 80px 20px 100px;
}
.td-projects-inner { max-width: 1280px; margin: 0 auto; }
.td-projects-head { text-align: center; margin-bottom: 56px; }
.td-h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: 0.05em;
  margin-top: 14px;
  color: var(--fg);
}
.td-projects-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}
.td-projects-text {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  min-height: 100%;
}
.td-projects-copy-head {
  margin-bottom: 44px;
}
.td-projects-copy-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.02;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}
.td-projects-copy-years {
  margin-top: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(42, 78%, 78%);
}
.td-projects-text p { color: var(--muted); }
.td-projects-divider {
  height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

@media (min-width: 1024px) {
  .td-projects { padding: 110px 48px 140px; }
  .td-projects-split {
    grid-template-columns: minmax(320px, 0.95fr) 1px minmax(0, 1.15fr);
    gap: 34px;
  }
  .td-projects-divider { align-self: stretch; height: auto; width: 1px; background: linear-gradient(180deg, transparent 0%, var(--gold) 10%, var(--gold) 90%, transparent 100%); }
}

/* Rail (timeline) */
.td-projects-rail { min-width: 0; overflow: visible; padding-bottom: 0; }
.td-rail {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  gap: 18px;
  padding: 0;
}
.td-rail-item {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--border);
  background: hsl(0,0%,4%);
  padding: 10px 10px 14px;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.td-rail-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px -25px hsla(42,70%,58%,0.45);
}
.td-rail-img { aspect-ratio: 1/1; overflow: hidden; }
.td-rail-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.td-rail-item:hover .td-rail-img img { transform: scale(1.06); }
.td-rail-year { font-family: 'Bebas Neue', sans-serif; color: var(--gold); font-size: 22px; letter-spacing: 0.12em; }
.td-rail-name { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

@media (min-width: 1024px) {
  .td-rail { grid-auto-columns: minmax(0, 1fr); grid-template-columns: repeat(7, minmax(0,1fr)); gap: 14px; }
}


/* ===== Town Developers — towns list & paired images ===== */
.td-towns-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.td-towns-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-content: start;
}
.td-towns-list li {
  position: relative;
  padding-left: 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1.1;
}
.td-towns-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.5em - 4px);
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  background: transparent;
}
@media (min-width: 1024px) {
  .td-projects-split {
    align-items: stretch;
  }
  .td-projects-text {
    padding: 4px 0;
  }
  .td-projects-copy-head {
    margin-bottom: 84px;
  }
  .td-towns-list li {
    font-size: clamp(22px, 1.75vw, 34px);
  }
}

.td-pair-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.td-pair-item {
  margin: 0;
  border: 2px solid var(--gold);
  background: hsl(0,0%,7%);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.td-pair-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 24px 50px -28px hsla(42,70%,58%,0.5);
}
.td-pair-img { aspect-ratio: 16/9; overflow: hidden; }
.td-pair-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.td-pair-item:hover .td-pair-img img { transform: scale(1.05); }
@media (min-width: 700px) {
  .td-pair-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 1023px) {
  .td-projects-copy-head {
    margin-bottom: 24px;
  }
  .td-projects-text { gap: 22px; }
  .td-projects-divider { order: 2; }
  .td-projects-rail { order: 3; }
  .td-towns-list {
    gap: 18px;
  }
}


/* ===== Builder page ===== */
.builder-hero {
  position: relative;
  min-height: 100vh;
  margin-top: 0;
}
.builder-hero .hc-track,
.builder-hero .hc-slide {
  min-height: 100vh;
}
.builder-overlay {
  background:
    radial-gradient(900px 420px at 75% 18%, hsla(42,70%,58%,0.12), transparent 58%),
    linear-gradient(180deg, hsla(0,0%,2%,0.24), hsla(0,0%,2%,0.76));
}
.builder-hero-copy {
  position: absolute;
  inset: auto 24px 80px 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 540px;
}
.builder-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}
.builder-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 16vw, 132px);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: var(--fg);
}
.builder-sub {
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: hsla(0,0%,100%,0.76);
  max-width: 460px;
}
.builder-strip {
  padding: 24px 20px 40px;
  background: linear-gradient(180deg, hsl(0,0%,3%) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  text-align: center;
}
.builder-strip p {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(24px, 5vw, 42px);
  letter-spacing: 0.18em;
  color: var(--fg);
}
@media (min-width: 768px) {
  .builder-hero-copy { inset: auto 42px 92px 42px; }
  .builder-strip { padding: 30px 48px 54px; }
}

/* ===== Architects / Designers / Engineers page ===== */
.ade-hero {
  position: relative;
  min-height: 88vh;
}
.ade-hero .hc-track,
.ade-hero .hc-slide {
  min-height: 88vh;
}
.ade-overlay {
  background:
    linear-gradient(180deg, hsla(0,0%,0%,0.35), hsla(0,0%,0%,0.78)),
    radial-gradient(760px 360px at 80% 20%, hsla(42,70%,58%,0.12), transparent 60%);
}
.ade-hero-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 78px;
  z-index: 2;
  max-width: 720px;
}
.ade-eyebrow {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.ade-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(46px, 10vw, 104px);
  letter-spacing: 0.05em;
  line-height: 0.94;
  color: var(--fg);
}
.ade-sub {
  margin-top: 14px;
  font-family: 'Barlow', sans-serif;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
  color: hsla(0,0%,100%,0.76);
  max-width: 620px;
}
.ade-services {
  padding: 32px 20px 22px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, hsl(0,0%,4%) 0%, hsl(0,0%,3%) 100%);
  text-align: center;
}
.ade-services h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: 0.12em;
  color: var(--fg);
}
.ade-services p {
  margin-top: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(16px, 2.3vw, 22px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}
.ade-contact {
  padding: 72px 20px 96px;
  background: linear-gradient(180deg, var(--bg) 0%, hsl(0,0%,5%) 100%);
}
.ade-contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.ade-contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px 20px;
}
.ade-contact-form .form-row.two { grid-template-columns: 1fr; }
.ade-contact-form .btn-submit { width: 100%; }
.ade-contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.ade-copy-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.ade-copy-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: 0.08em;
  color: var(--fg);
}
.ade-contact-copy p {
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 520px;
}
.ade-contact-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
@media (min-width: 768px) {
  .ade-hero-copy { left: 42px; right: 42px; bottom: 92px; }
  .ade-services { padding: 40px 48px 32px; }
  .ade-contact { padding: 96px 48px 120px; }
  .ade-contact-form { padding: 36px 32px; }
}
@media (min-width: 1024px) {
  .ade-contact-inner {
    grid-template-columns: 1.05fr 1px 0.95fr;
    gap: 42px;
    align-items: stretch;
  }
  .ade-contact-divider {
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--border), transparent);
  }
  .ade-contact-form .form-row.two { grid-template-columns: 1fr 1fr; }
}

/* ===== Lifestyle page ===== */
.lifestyle-hero {
  min-height: 92vh;
  padding: 140px 20px 72px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.78)),
    radial-gradient(900px 420px at 85% 18%, hsla(42,70%,58%,0.14), transparent 60%),
    url('assets/LS/AR\ CONSULTANT&\ PLANNER\ .jpg') center/cover no-repeat;
  display: flex;
  align-items: flex-end;
}
.lifestyle-hero-inner,
.lifestyle-highlights,
.lifestyle-flow,
.lifestyle-cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.lifestyle-hero-copy { max-width: 720px; }
.lifestyle-eyebrow,
.lifestyle-card span,
.lifestyle-flow-step span,
.lifestyle-cta-copy span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.lifestyle-title {
  margin-top: 14px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 11vw, 120px);
  letter-spacing: 0.05em;
  line-height: 0.94;
  color: var(--fg);
}
.lifestyle-sub {
  margin-top: 16px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.75;
  color: hsla(0,0%,100%,0.78);
}
.lifestyle-highlights-wrap,
.lifestyle-flow-wrap,
.lifestyle-cta {
  background: linear-gradient(180deg, hsl(0,0%,4%) 0%, var(--bg) 100%);
}
.lifestyle-highlights-wrap { padding: 72px 20px; }
.lifestyle-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.lifestyle-card {
  border: 1px solid var(--border);
  background: hsl(0,0%,5%);
  padding: 28px 24px 30px;
  min-height: 100%;
}
.lifestyle-card h2,
.lifestyle-flow-title,
.lifestyle-cta-copy h2 {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--fg);
  letter-spacing: 0.08em;
}
.lifestyle-card h2 { font-size: 34px; margin-top: 10px; }
.lifestyle-card p,
.lifestyle-flow-step p,
.lifestyle-cta-copy p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.lifestyle-gallery {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.lifestyle-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}
.lifestyle-flow-wrap { padding: 0 20px 80px; }
.lifestyle-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.lifestyle-flow-title { font-size: clamp(32px, 5vw, 52px); margin-bottom: 14px; }
.lifestyle-flow-step {
  border-left: 2px solid var(--gold);
  padding: 8px 0 8px 18px;
}
.lifestyle-cta { padding: 0 20px 96px; }
.lifestyle-cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  border: 1px solid var(--border);
  background: hsl(0,0%,5%);
  padding: 24px;
}
.lifestyle-cta-copy h2 { font-size: clamp(30px, 5vw, 54px); margin-top: 10px; }
.lifestyle-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid var(--gold);
  color: var(--fg);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .footer-logo { width: 124px; }
  .lifestyle-hero { padding: 160px 48px 88px; }
  .lifestyle-highlights-wrap { padding: 96px 48px; }
  .lifestyle-flow-wrap { padding: 0 48px 110px; }
  .lifestyle-cta { padding: 0 48px 120px; }
  .lifestyle-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lifestyle-gallery { grid-template-columns: 1fr 1fr; }
  .lifestyle-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .lifestyle-cta-inner { grid-template-columns: 1fr auto; align-items: center; padding: 32px 36px; }
}

/* ===== Architectural Book section (index.html) ===== */
#arch-book {
  background: linear-gradient(180deg, hsl(0,0%,4%) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 20px;
}
.arch-book-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.arch-book-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}
.arch-book-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: 0.05em;
  color: var(--fg);
  margin-top: 12px;
  line-height: 1;
}
.arch-book-lede {
  margin-top: 18px;
  font-family: 'Barlow', sans-serif;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 520px;
}
.arch-book-cta {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 26px;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--bg);
  background: var(--gold);
  border: 1px solid var(--gold);
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.arch-book-cta:hover { background: transparent; color: var(--gold); }
.arch-book-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 340px;
  margin: 0 auto;
  background: linear-gradient(150deg, hsl(0,0%,8%) 0%, hsl(0,0%,3%) 100%);
  border: 1px solid hsla(42,70%,58%,0.25);
  box-shadow: 0 30px 80px -40px hsla(42,70%,58%,0.35), inset 0 0 0 1px hsla(0,0%,100%,0.04);
  padding: 28px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.arch-book-cover::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid hsla(42,70%,58%,0.2);
  pointer-events: none;
}
.arch-book-cover-inner { display: flex; flex-direction: column; gap: 10px; }
.arch-book-cover-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.45em;
  color: var(--gold);
}
.arch-book-cover-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(34px, 6vw, 48px);
  letter-spacing: 0.04em;
  color: var(--fg);
  line-height: 0.95;
}
.arch-book-cover-rule { width: 56px; height: 1px; background: var(--gold); }
.arch-book-cover-year {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--muted);
  text-transform: uppercase;
}
@media (min-width: 900px) {
  #arch-book { padding: 96px 48px; }
  .arch-book-inner { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .arch-book-cover { margin: 0; max-width: 380px; }
}

/* ===== Project cards w/ multiple brochures ===== */
.commercial-card.project-card { cursor: default; }
.commercial-card.project-card:hover { transform: none; }
.project-brochures {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.brochure-link.project-broc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 14px;
  background: hsla(0,0%,0%,0.55);
  border: 1px solid hsla(42,70%,58%,0.45);
  color: var(--fg);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.brochure-link.project-broc:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

/* ===== Builder strip expanded list ===== */
.builder-strip-list {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(14px, 2.4vw, 22px) !important;
  letter-spacing: 0.16em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  color: var(--fg);
  max-width: 980px;
  margin: 0 auto;
  line-height: 1.5;
}
.builder-strip-list .builder-sep { color: var(--gold); opacity: 0.7; }

/* ===== Town devs compact title ===== */
.td-title.td-title--compact {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  margin-top: 14px;
}

/* ===== ADE: Royal Table heading override + Services grid ===== */
.ade-services {
  padding: 64px 20px 56px;
}
.ade-services-eyebrow {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.ade-services h2 {
  font-size: clamp(26px, 4vw, 40px) !important;
}
.ade-services-grid {
  margin: 38px auto 0;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: left;
}
.ade-service-card {
  position: relative;
  padding: 22px 22px 24px;
  background: linear-gradient(180deg, hsl(0,0%,5%) 0%, hsl(0,0%,3%) 100%);
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.ade-service-card:hover {
  transform: translateY(-3px);
  border-color: hsla(42,70%,58%,0.55);
  box-shadow: 0 20px 40px -28px hsla(42,70%,58%,0.45);
}
.ade-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid hsla(42,70%,58%,0.5);
  color: var(--gold);
  margin-bottom: 14px;
  border-radius: 2px;
  background: hsla(42,70%,58%,0.06);
}
.ade-service-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--fg);
  margin-bottom: 8px;
}
.ade-service-card p {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  letter-spacing: normal;
  text-transform: none;
}
.ade-contact-form select {
  width: 100%;
  background: hsl(0,0%,4%);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 12px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  border-radius: 0;
}
.ade-contact-form select:focus { outline: none; border-color: var(--gold); }
@media (min-width: 720px) {
  .ade-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (min-width: 1024px) {
  .ade-services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}

/* ===== Refinements (request batch) ===== */

/* Index hero tile labels — bold, refined */
.tile-label {
  font-family: 'Bebas Neue', sans-serif !important;
  font-weight: 700 !important;
  font-size: 26px !important;
  letter-spacing: 0.18em !important;
}
@media (min-width: 768px) { .tile-label { font-size: 32px !important; } }
@media (min-width: 1024px) { .tile-label { font-size: 38px !important; } }
@media (max-width: 767px) {
  .tile-label {
    font-size: 18px !important;
    letter-spacing: 0.1em !important;
  }
}
@media (min-width: 768px) and (max-height: 820px) {
  .tile-label { font-size: 30px !important; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .tile-label { font-size: 34px !important; }
}

/* Architects: native select dropdown — dark theme aligned */
.ade-contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: hsl(0,0%,4%);
  background-image:
    linear-gradient(135deg, transparent 50%, var(--gold) 50%),
    linear-gradient(-135deg, transparent 50%, var(--gold) 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
  color: var(--fg);
  letter-spacing: 0.06em;
  cursor: pointer;
}
.ade-contact-form select option {
  background: hsl(0,0%,6%);
  color: var(--fg);
}

/* Builder strip — refined chip layout */
.builder-strip { padding: 56px 20px 72px; }
.builder-strip-list {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 13px !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase;
  gap: 10px 0 !important;
  max-width: 1100px !important;
  align-items: center;
}
.builder-strip-list span:not(.builder-sep) {
  padding: 10px 18px;
  border: 1px solid hsla(42,70%,58%,0.35);
  background: linear-gradient(180deg, hsla(0,0%,8%,0.85), hsla(0,0%,4%,0.85));
  color: var(--fg);
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.25s;
}
.builder-strip-list span:not(.builder-sep):hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.builder-strip-list .builder-sep {
  display: none;
}
.builder-strip-list { gap: 10px !important; }

/* Project brochure cards — professional layered list */
.commercial-card.project-card {
  height: auto;
  min-height: 460px;
  display: flex;
  background: hsl(0,0%,5%);
}
.commercial-card.project-card .commercial-card-overlay {
  background: linear-gradient(180deg, hsla(0,0%,0%,0.55) 0%, hsla(0,0%,0%,0.92) 70%);
}
.commercial-card.project-card .commercial-card-content {
  padding: 32px 26px 26px;
}
.commercial-card.project-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.08em;
  color: var(--fg);
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.commercial-card.project-card h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 1px;
  background: var(--gold);
}
.project-brochures {
  gap: 0 !important;
  margin-top: 4px !important;
  border-top: 1px solid hsla(255,255,255,0.08);
}
.brochure-link.project-broc {
  justify-content: space-between !important;
  text-align: left !important;
  padding: 14px 4px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid hsla(255,255,255,0.08) !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 12px !important;
  letter-spacing: 0.24em !important;
  color: hsla(0,0%,100%,0.78) !important;
  position: relative;
}
.brochure-link.project-broc span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brochure-link.project-broc span::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.7;
}
.brochure-link.project-broc::after {
  content: "→";
  font-family: 'Barlow', sans-serif;
  color: var(--gold);
  opacity: 0.6;
  transition: transform 0.25s, opacity 0.25s;
}
.brochure-link.project-broc:hover {
  background: hsla(42,70%,58%,0.06) !important;
  color: var(--gold) !important;
}
.brochure-link.project-broc:hover::after {
  transform: translateX(4px);
  opacity: 1;
}

/* ===== Mobile nav: scroll for long lists ===== */
#mobile-nav {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#mobile-nav a {
  padding: 12px 24px;
}

/* ===== Footer links: even spacing for full menu ===== */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
}
.footer-top {
  gap: 24px;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .footer-links { justify-content: flex-end; }
}

/* ===== Section spacing normalization ===== */
.section { padding: 72px 20px; }
@media (min-width: 768px) { .section { padding: 96px 48px; } }

/* ===== Global heading size reduction (~12%) ===== */
.page-hero h1 { font-size: clamp(34px, 5vw, 54px) !important; }
@media (min-width: 768px) { .page-hero h1 { font-size: 60px !important; } }
.page-hero p { font-size: 14px !important; }
@media (min-width: 768px) { .page-hero p { font-size: 15px !important; } }
.section-title { font-size: 30px !important; }
@media (min-width: 768px) { .section-title { font-size: 38px !important; } }
.commercial-intro h1 { font-size: clamp(30px, 5vw, 54px) !important; }
.commercial-hero-content h2,
.hc-content h2 { font-size: clamp(34px, 6vw, 70px) !important; }
.hc-content p,
.commercial-hero-content p { font-size: clamp(13px, 1.4vw, 16px) !important; }
.commercial-card-content h3 { font-size: 26px !important; }
.about-intro h2 { font-size: 28px !important; }
@media (min-width: 768px) { .about-intro h2 { font-size: 32px !important; } }
.amenity-body h3 { font-size: 17px !important; }
.project-body h3 { font-size: 22px !important; }
.why-card h3, .mv-card h3 { font-size: 18px !important; }
.lifestyle-cta-copy h2 { font-size: clamp(26px, 4.4vw, 46px) !important; }
.lifestyle-card h2 { font-size: 28px !important; }
.ade-services h2, .td-h2 { font-size: clamp(26px, 4vw, 40px) !important; }
.ade-service-card h3 { font-size: 18px !important; }
.brochure-modal-card h3 { font-size: 22px !important; }

/* ===== Inner page hero carousels: TRUE full-screen on every device ===== */
.commercial-hero-carousel,
.commercial-hero,
.builder-hero,
.builder-hero .hc-track,
.builder-hero .hc-slide {
  height: 100svh !important;
  min-height: 100svh !important;
  width: 100% !important;
  margin-top: 0 !important;
}
.hc-track, .hc-slide { height: 100% !important; }
.hc-slide {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* ===== Featured project cards: fit images, 4-up on desktop ===== */
.commercial-grid {
  grid-template-columns: 1fr !important;
  gap: 18px !important;
  padding: 0 4px;
}
@media (min-width: 640px) {
  .commercial-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (min-width: 1024px) {
  .commercial-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 22px !important; }
}
.commercial-card,
.commercial-card.project-card {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 4 !important;
  background-color: #0a0a0a;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
}
.commercial-card.project-card .commercial-card-overlay,
.commercial-card-overlay {
  background: linear-gradient(180deg, hsla(0,0%,0%,0) 38%, hsla(0,0%,0%,.55) 62%, hsla(0,0%,0%,.92)) !important;
}
.commercial-card.project-card .commercial-card-content {
  padding: 22px 20px 22px !important;
}
.commercial-card.project-card h3 {
  font-size: 22px !important;
  margin-bottom: 14px !important;
  padding-bottom: 12px !important;
}
.project-brochures { border-top: 0 !important; margin-top: 8px !important; }
.brochure-link.project-broc {
  justify-content: center !important;
  text-align: center !important;
  padding: 12px 16px !important;
  border: 1px solid hsla(42,70%,58%,0.55) !important;
  border-bottom: 1px solid hsla(42,70%,58%,0.55) !important;
  background: hsla(0,0%,0%,0.45) !important;
  font-size: 12px !important;
  letter-spacing: 0.28em !important;
  color: var(--fg) !important;
}
.brochure-link.project-broc span::before { display: none !important; }
.brochure-link.project-broc::after { display: none !important; }
.brochure-link.project-broc:hover {
  background: var(--gold) !important;
  color: var(--bg) !important;
  border-color: var(--gold) !important;
}

/* ===== Index brochure strip: mobile-friendly stacking ===== */
@media (max-width: 640px) {
  #brochures { padding: 36px 16px; }
  .brochures-list {
    flex-direction: column;
    gap: 6px;
  }
  .brochures-list .brochure-sep { display: none; }
  .brochure-link {
    font-size: 14px !important;
    letter-spacing: 0.22em;
    padding: 10px 4px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid hsla(255,255,255,0.06);
  }
  .brochures-list .brochure-link:last-child { border-bottom: 0; }
  .footer-inner { padding: 36px 18px 28px !important; }
  .footer-top { flex-direction: column; gap: 22px; align-items: center; text-align: center; }
  .footer-links {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 10px 18px !important;
    font-size: 12px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .footer-copy, .footer-tagline { font-size: 11px !important; letter-spacing: 0.16em; }
}

/* ===== v42: refinements ===== */

/* Index brochure strip — one per row on mobile */
@media (max-width: 640px) {
  #brochures { padding: 28px 12px !important; }
  .brochures-list {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
  }
  .brochures-list .brochure-sep { display: none !important; }
  .brochures-list .brochure-link {
    width: 100% !important;
    border-bottom: 1px solid hsla(42,70%,58%,0.18) !important;
    padding: 14px 8px !important;
    font-size: 13px !important;
    letter-spacing: 0.22em !important;
    text-align: center;
    justify-content: center !important;
  }
  .brochures-list .brochure-link:last-child { border-bottom: 0 !important; }
}

/* Featured project card — simple "View Brochure" link, left-aligned, no borders */
.brochure-link.project-broc {
  justify-content: flex-start !important;
  text-align: left !important;
  padding: 8px 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 12px !important;
  letter-spacing: 0.24em !important;
  color: var(--gold) !important;
  text-transform: uppercase;
}
.brochure-link.project-broc:hover {
  background: transparent !important;
  color: #fff !important;
  border: 0 !important;
}
.project-brochures { border-top: 0 !important; margin-top: 6px !important; padding-top: 0 !important; }

/* Featured commercial project cards — smaller on mobile, 2-up */
.commercial-grid {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}
@media (min-width: 640px) {
  .commercial-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
}
@media (min-width: 1024px) {
  .commercial-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 22px !important; }
}
.commercial-card.project-card {
  aspect-ratio: 3 / 4 !important;
}
.commercial-card.project-card .commercial-card-content {
  padding: 14px 14px 14px !important;
}
@media (min-width: 768px) {
  .commercial-card.project-card .commercial-card-content { padding: 20px 18px !important; }
}
.commercial-card.project-card h3 {
  font-size: 16px !important;
  margin-bottom: 8px !important;
  padding-bottom: 8px !important;
  letter-spacing: 0.08em;
}
@media (min-width: 768px) {
  .commercial-card.project-card h3 { font-size: 20px !important; }
}

/* Smaller headings on commercial + index (further reduction) */
.section-title { font-size: 24px !important; letter-spacing: 0.16em; }
@media (min-width: 768px) { .section-title { font-size: 32px !important; } }
.section-sub { font-size: 12px !important; }
@media (min-width: 768px) { .section-sub { font-size: 13px !important; } }
.hc-content h2 { font-size: clamp(26px, 5vw, 56px) !important; }
.hc-content p { font-size: clamp(12px, 1.3vw, 15px) !important; }
.commercial-card-content h3 { font-size: 20px !important; }

/* ===== CSR badge in header (index) ===== */
.header-csr {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--gold);
  border: none;
  padding: 0;
  line-height: 1;
  align-self: center;
  justify-self: end;
}
@media (min-width: 768px) {
  .header-csr { font-size: 15px; padding: 0; }
}


/* ===== Logo gold hover ===== */
.logo .logo-title, .logo .logo-subtitle, .logo .logo-rule {
  transition: color 0.3s ease, background 0.3s ease;
}
.logo:hover .logo-title,
.logo:hover .logo-subtitle { color: var(--gold); }
.logo:hover .logo-rule { background: var(--gold); }

/* ===== Lifestyle pillars centered ===== */
.lifestyle-flow.lifestyle-flow-centered {
  display: block;
  text-align: center;
}
.lifestyle-flow-centered .lifestyle-flow-head { text-align: center; margin-bottom: 28px; }
.lifestyle-flow-centered .lifestyle-flow-title { text-align: center; }
.lifestyle-flow-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  text-align: left;
}
.lifestyle-flow-centered .lifestyle-flow-step {
  border-left: 2px solid var(--gold);
  padding: 8px 0 8px 18px;
  text-align: left;
}
@media (min-width: 768px) {
  .lifestyle-flow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; max-width: 1100px; margin: 0 auto; }
}

/* ===== Protected reveal (contact page) ===== */
.protected-value .protected-mask {
  display: inline-block;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-right: 10px;
}
.protected-value .protected-reveal {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.protected-value .protected-reveal:hover { opacity: 0.75; }
.protected-value.protected-unlocked { color: var(--fg); }

/* ===== Footer social icons ===== */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 18px 0 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.footer-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ===== Page lock gate ===== */
.page-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(0,0%,4%);
  padding: 24px;
}
body.page-gate-active { overflow: hidden; }
.page-gate-card {
  width: 100%;
  max-width: 420px;
  background: hsl(0,0%,7%);
  border: 1px solid var(--border);
  padding: 36px 28px;
  text-align: center;
}
.page-gate-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.16em;
  color: var(--fg);
  margin-bottom: 10px;
}
.page-gate-card p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.page-gate-card input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  background: hsl(0,0%,4%);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}
.page-gate-card input[type="password"]:focus { border-color: var(--gold); }

/* ===== Project image slideshow ===== */
.project-img { position: relative; }
.project-img .slides { position: relative; width: 100%; height: 100%; }
.project-img .slides img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.project-img .slides img.active { opacity: 1; }
.project-card:hover .project-img .slides img.active { transform: scale(1.06); }

.project-img .slide-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  font-family: 'Barlow', sans-serif;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 2;
}
.project-img .slide-btn:hover { background: var(--gold, #c9a24c); }
.project-img .slide-btn.prev { left: 8px; }
.project-img .slide-btn.next { right: 8px; }
.project-card:hover .project-img .slide-btn { opacity: 1; }

.project-img .slide-dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.project-img .slide-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
.project-img .slide-dots button.active {
  background: var(--gold, #c9a24c);
  transform: scale(1.3);
}
.project-img .slide-count {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  padding: 4px 8px;
  z-index: 2;
}

/* ========== Joint Venture Form Modal ========== */
.jv-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.jv-modal.hidden { display: none; }
.jv-modal-backdrop { position: absolute; inset: 0; background: hsla(0,0%,0%,0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.jv-modal-card {
  position: relative; width: 100%; max-width: 640px;
  background: hsl(0,0%,7%); border: 1px solid var(--border);
  padding: 32px 28px 28px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  animation: brochureIn 0.25s ease-out;
}
.jv-modal-close { position: absolute; top: 10px; right: 14px; background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 28px; line-height: 1; padding: 4px 8px; }
.jv-modal-close:hover { color: var(--gold); }
.jv-titles { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-bottom: 18px; }
.jv-title-box {
  border: 1px solid var(--gold); padding: 10px 22px;
  font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 0.22em;
  color: var(--fg); text-align: center;
}
.jv-title-box.jv-sub { font-size: 14px; letter-spacing: 0.28em; color: var(--gold); }
.jv-section-heading {
  text-align: center; font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.24em;
  color: var(--gold); margin: 8px 0 18px; font-size: 16px;
}
.jv-form { display: flex; flex-direction: column; gap: 14px; }
.jv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.jv-label {
  flex: 0 0 170px; font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg);
}
.jv-input {
  flex: 1 1 200px; min-width: 0; padding: 10px 12px;
  background: hsl(0,0%,4%); border: 1px solid var(--border); color: var(--fg);
  font-family: 'Barlow', sans-serif; font-size: 14px; outline: none;
  transition: border-color 0.2s;
}
.jv-input:focus { border-color: var(--gold); }
.jv-textarea { resize: vertical; min-height: 80px; }
.jv-select { flex: 0 1 160px; }
.jv-help { flex: 1 1 100%; font-size: 12px; color: var(--muted); font-family: 'Barlow', sans-serif; padding-left: 180px; }
.jv-owner-fields { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.jv-owner-field { display: flex; align-items: center; gap: 8px; }
.jv-mini-label { flex: 0 0 28px; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
.jv-inline { gap: 18px; }
.jv-check { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); font-family: 'Barlow', sans-serif; font-size: 14px; cursor: pointer; }
.jv-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.jv-btn {
  padding: 12px 22px; border: 0; cursor: pointer;
  font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.18em; font-size: 14px;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}
.jv-btn-primary { background: var(--gold); color: hsl(0,0%,5%); }
.jv-btn-primary:hover { background: hsl(42, 70%, 65%); transform: translateY(-1px); }
.jv-btn-secondary { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.jv-btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 600px) {
  .jv-label { flex: 1 1 100%; }
  .jv-help { padding-left: 0; }
  .jv-select { flex: 1 1 100%; }
}
