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

:root {
  --bg: #fafafa;
  --elevated: #ffffff;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --text: #0a0a0b;
  --text-2: #52525b;
  --muted: #71717a;
  --deep: #0f2744;
  --accent: #2563eb;
  --emerald: #059669;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --shadow-xs: 0 1px 2px rgba(15, 39, 68, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 39, 68, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 39, 68, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 39, 68, 0.12);
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --font-display: "Instrument Sans", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 4rem;
}

[data-theme="dark"] {
  --bg: #09090b;
  --elevated: #18181b;
  --glass: rgba(24, 24, 27, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #fafafa;
  --text-2: #a1a1aa;
  --muted: #71717a;
  --deep: #1e3a5f;
  --accent: #3b82f6;
  --accent-soft: rgba(96, 165, 250, 0.18);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  transition: background 0.35s ease, color 0.35s ease;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 9999;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(128, 128, 128, 0.12);
  backdrop-filter: blur(16px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--deep), var(--accent));
  box-shadow: var(--shadow-sm);
}

nav.nav-main {
  display: none;
  gap: 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
}

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

nav.nav-main a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

nav.nav-main a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Mobile nav burger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.45rem;
  border: 1px solid rgba(128, 128, 128, 0.18);
  border-radius: 10px;
  background: var(--elevated);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 49;
  padding: 0.75rem 1.5rem 1.25rem;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom: 1px solid rgba(128, 128, 128, 0.12);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transform: translateY(calc(-100% - var(--header-h)));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

@media (max-width: 899px) {
  .nav-burger {
    display: flex;
  }

  .header-actions {
    display: none;
  }
}

@media (min-width: 900px) {
  .nav-mobile {
    display: none;
  }
}

.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  transition: transform 0.18s ease, box-shadow 0.25s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid rgba(128, 128, 128, 0.22);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(128, 128, 128, 0.2);
  background: var(--elevated);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* Page hero (photo) */
.page-hero {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 6rem 0 2.5rem;
  background-size: cover;
  background-position: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to top,
      rgba(10, 10, 12, 0.94) 0%,
      rgba(10, 10, 12, 0.55) 42%,
      rgba(15, 39, 68, 0.35) 100%
    );
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span.sep {
  margin: 0 0.35rem;
  opacity: 0.6;
}

/* Breadcrumb on light sections (e.g. below building gallery) */
.breadcrumb--light {
  color: var(--text-2);
}

.breadcrumb--light a {
  color: var(--accent);
}

.breadcrumb--light a:hover {
  text-decoration: underline;
}

.breadcrumb--light span.sep {
  opacity: 0.45;
}

.breadcrumb--light .breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 0.65rem;
  max-width: 18ch;
}

.page-hero .lead {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 52ch;
  margin: 0 0 1.5rem;
}

/* Glass search compact */
.glass-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  max-width: 720px;
}

.glass-search input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.glass-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.glass-search button {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-lg);
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: var(--deep);
  font-family: inherit;
}

/* Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.chip:hover,
.chip.is-active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

.chip-muted {
  border-color: rgba(128, 128, 128, 0.22);
  background: var(--elevated);
  color: var(--text-2);
}

.chip-muted:hover,
.chip-muted.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Sections */
section.page-section {
  padding: 3.5rem 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2vw + 1rem, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
}

.link-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.link-more:hover {
  text-decoration: underline;
}

/* Stats */
.stat-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .stat-band {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-xl);
  background: var(--elevated);
  border: 1px solid rgba(128, 128, 128, 0.12);
  box-shadow: var(--shadow-md);
}

.stat-card .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.stat-card .value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.stat-card .hint {
  font-size: 0.8125rem;
  color: var(--text-2);
  margin: 0.35rem 0 0;
}

/* Cards + images */
.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .cards.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--elevated);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(128, 128, 128, 0.12);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 50%);
}

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--deep);
}

[data-theme="dark"] .card-badge {
  background: rgba(24, 24, 27, 0.92);
  color: #fafafa;
}

.card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.meta {
  font-size: 0.85rem;
  color: var(--text-2);
  margin: 0;
}

.price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.65rem;
  color: var(--text);
}

/* Metro pill */
.metro-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Map strip */
.map-strip {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid rgba(128, 128, 128, 0.14);
  box-shadow: var(--shadow-md);
  display: grid;
}

@media (min-width: 900px) {
  .map-strip {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 340px;
  }
}

.map-visual {
  min-height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.map-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 39, 68, 0.5),
    rgba(37, 99, 235, 0.25)
  );
}

.map-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.28);
  z-index: 1;
}

.map-pin:nth-child(1) {
  top: 35%;
  left: 40%;
}
.map-pin:nth-child(2) {
  top: 52%;
  left: 55%;
}
.map-pin:nth-child(3) {
  top: 48%;
  left: 32%;
}

.map-copy {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  background: var(--elevated);
}

.map-copy h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0;
  letter-spacing: -0.03em;
}

/* Building gallery */
.gallery-wrap {
  padding: 1rem 1.5rem 0;
  max-width: 1280px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  max-height: 72vh;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .gallery-grid .gallery-main {
    grid-row: span 2;
  }
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .gallery-grid .gallery-main img {
    min-height: 100%;
  }
}

.building-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0 0;
}

/* Detail grid */
.detail-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .detail-grid {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: start;
  }
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 600px) {
  .amenity-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.amenity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(128, 128, 128, 0.12);
  background: var(--elevated);
  font-size: 0.875rem;
  font-weight: 500;
}

.amenity span.ico {
  opacity: 0.85;
}

.prose-block {
  font-size: 0.9375rem;
  color: var(--text-2);
  max-width: 72ch;
  line-height: 1.65;
}

.prose-block h3 {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
}

.quote-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(128, 128, 128, 0.12);
  background: var(--elevated);
  box-shadow: var(--shadow-sm);
}

.quote-card p {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-2);
}

.quote-card footer {
  margin-top: 0.85rem;
  padding: 0;
  border: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

footer.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(128, 128, 128, 0.12);
  font-size: 0.85rem;
  color: var(--text-2);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.proto-nav {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.proto-nav a {
  color: var(--accent);
}

/* -------- Homepage: hero (marketing) -------- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 4rem;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.02);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      135deg,
      rgba(15, 39, 68, 0.88) 0%,
      rgba(30, 58, 95, 0.82) 42%,
      rgba(37, 99, 235, 0.72) 100%
    ),
    radial-gradient(
      ellipse 80% 60% at 20% 20%,
      rgba(37, 99, 235, 0.35),
      transparent 55%
    ),
    radial-gradient(
      ellipse 70% 50% at 85% 75%,
      rgba(5, 150, 105, 0.18),
      transparent 50%
    );
}

[data-theme="dark"] .hero-bg {
  background: linear-gradient(
      135deg,
      rgba(9, 9, 11, 0.92) 0%,
      rgba(15, 39, 68, 0.88) 38%,
      rgba(29, 78, 216, 0.78) 100%
    ),
    radial-gradient(
      ellipse 70% 55% at 25% 25%,
      rgba(59, 130, 246, 0.22),
      transparent 55%
    );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 1.25rem;
}

.pulse-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: pon-pulse 2.4s ease-out infinite;
}

@keyframes pon-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-ring {
    animation: none !important;
  }
  .hero-search {
    animation: none !important;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4vw + 1rem, 3.85rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
  max-width: 15ch;
  margin: 0 0 1rem;
}

.hero .lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
  margin: 0 0 2rem;
}

.hero-search {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-2xl);
  padding: 1rem;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: pon-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pon-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-search-grid {
  display: grid;
  gap: 0.65rem;
}

.search-cta-wrap {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .hero-search-grid {
    grid-template-columns: repeat(6, 1fr) auto;
    align-items: end;
  }
  .search-cta-wrap {
    grid-column: auto;
    align-self: end;
  }
}

.hero-search .field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.35rem;
}

.hero-search .field select,
.hero-search .field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.hero-search .field select:focus,
.hero-search .field input:focus {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.2);
}

.hero-search .field select option {
  color: #111;
}

.search-cta {
  height: 46px;
  padding: 0 1.35rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  white-space: nowrap;
  background: #fff;
  color: var(--deep);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
  font-size: 0.875rem;
}

.search-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Credibility band (below hero): texture + partner strip + metrics */
.credibility-band {
  position: relative;
  border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.credibility-trust {
  padding: clamp(2.5rem, 5vw, 3.25rem) 0 clamp(2rem, 4vw, 2.75rem);
  background-color: color-mix(in srgb, var(--bg) 92%, var(--deep));
  background-image: radial-gradient(
      ellipse 120% 80% at 50% -20%,
      rgba(37, 99, 235, 0.06),
      transparent 55%
    ),
    linear-gradient(
      rgba(120, 130, 150, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(120, 130, 150, 0.07) 1px,
      transparent 1px
    );
  background-size: auto, 56px 56px, 56px 56px;
}

[data-theme="dark"] .credibility-trust {
  background-color: #101114;
  background-image: radial-gradient(
      ellipse 100% 70% at 50% 0%,
      rgba(59, 130, 246, 0.08),
      transparent 50%
    ),
    linear-gradient(
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    );
  background-size: auto, 56px 56px, 56px 56px;
}

.credibility-trust-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.credibility-badge {
  margin-bottom: clamp(1.75rem, 4vw, 2.35rem);
}

.credibility-badge-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.2rem 0.55rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--elevated) 78%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(128, 128, 128, 0.14);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  max-width: min(36rem, 100%);
}

[data-theme="dark"] .credibility-badge-glass {
  background: rgba(24, 24, 27, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.credibility-badge-icon {
  flex-shrink: 0;
  color: var(--accent);
}

.credibility-badge-text {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-2);
  text-align: left;
}

@media (min-width: 520px) {
  .credibility-badge-text {
    font-size: 0.875rem;
  }
}

.credibility-partners {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  row-gap: 1rem;
}

.partner-lockup {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.2vw, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.38;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

.partner-lockup:hover {
  opacity: 0.58;
}

.credibility-metrics {
  padding: clamp(2.25rem, 4vw, 2.85rem) 0;
  background: var(--elevated);
}

.credibility-metrics-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .credibility-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.metric-cell {
  text-align: center;
  padding: 0 0.5rem;
  position: relative;
}

@media (min-width: 900px) {
  .metric-cell:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(128, 128, 128, 0.12);
  }
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .metric-value {
  color: #60a5fa;
}

.metric-suffix {
  font-weight: 700;
  font-size: 0.72em;
  margin-left: 0.02em;
}

.metric-unit {
  font-weight: 700;
  font-size: 0.55em;
  margin-right: 0.06em;
  vertical-align: 0.15em;
}

.metric-value--dual {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  justify-content: center;
}

.metric-value--dual .metric-sub {
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald);
}

.metric-label {
  margin: 0.65rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.35;
  max-width: min(100%, 28ch);
  margin-left: auto;
  margin-right: auto;
}

.metric-cell--accent .metric-value {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .partner-lockup {
    transition: none;
  }
}

/* Homepage: horizontal scroll buildings */
.buildings-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.buildings-scroll .card {
  flex: 0 0 min(300px, 85vw);
  scroll-snap-align: start;
}

/* Top sectors */
.sectors-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .sectors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sector-tile {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(128, 128, 128, 0.12);
  box-shadow: var(--shadow-sm);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: #fff;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.sector-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sector-tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.sector-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 12, 0.92) 0%,
    rgba(10, 10, 12, 0.35) 50%,
    transparent 100%
  );
}

.sector-tile-body {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
}

.sector-tile-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.sector-tile-body p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
}

.sector-tile .sector-meta {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Why us */
.why-grid {
  display: grid;
  gap: 1rem;
}

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

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-card {
  padding: 1.35rem;
  border-radius: var(--radius-xl);
  background: var(--elevated);
  border: 1px solid rgba(128, 128, 128, 0.12);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.why-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-md);
}

.why-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.why-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--elevated);
  border: 1px solid rgba(128, 128, 128, 0.12);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-card .stars {
  color: #eab308;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.testimonial-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(128, 128, 128, 0.15);
}

.testimonial-card .author-info strong {
  display: block;
  font-size: 0.9rem;
}

.testimonial-card .author-info span {
  font-size: 0.8125rem;
  color: var(--text-2);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(128, 128, 128, 0.14);
  background: var(--elevated);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.faq-item summary {
  padding: 1rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  letter-spacing: -0.02em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 1.15rem 1.15rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* Footer site */
.footer-site {
  background: color-mix(in srgb, var(--elevated) 96%, var(--deep));
  border-top: 1px solid rgba(128, 128, 128, 0.12);
}

[data-theme="dark"] .footer-site {
  background: #0c0c0e;
}

.footer-primary {
  padding: 3rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

.footer-brand p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--text-2);
  max-width: 36ch;
  line-height: 1.55;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.65rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(128, 128, 128, 0.18);
  background: var(--elevated);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* SEO subfooter */
.subfooter {
  padding: 2rem 0;
  border-top: 1px solid rgba(128, 128, 128, 0.12);
  background: color-mix(in srgb, var(--deep) 6%, var(--bg));
}

[data-theme="dark"] .subfooter {
  background: #09090b;
}

.subfooter h4 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: var(--text);
}

.subfooter-columns {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .subfooter-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

.subfooter ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.subfooter a {
  font-size: 0.8125rem;
  color: var(--text-2);
  text-decoration: none;
}

.subfooter a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-legal {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(128, 128, 128, 0.1);
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links a {
  color: var(--text-2);
  text-decoration: none;
}

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