/* IREN — International Real Estate Network */
:root {
  --bg: #070707;
  --bg-elevated: #111111;
  --bg-soft: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f2f2;
  --text-muted: #9a9a9a;
  --text-dim: #6a6a6a;
  --silver: #c5c8ce;
  --silver-bright: #e8eaed;
  --gold: #c9a227;
  --gold-bright: #e0b83a;
  --gold-deep: #8a6f1a;
  --chrome: linear-gradient(180deg, #f5f6f8 0%, #a8adb5 42%, #e2e4e8 58%, #7a8088 100%);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --nav-h: 4.5rem;
  --tab-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: 0;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* ——— Atmosphere ——— */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  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");
}

/* ——— Nav ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--nav-h) + var(--safe-top));
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
  background: rgba(7, 7, 7, 0.72);
  backdrop-filter: blur(14px);
}

.site-header.scrolled {
  background: rgba(7, 7, 7, 0.94);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.nav-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 2.75rem;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--silver-bright);
  padding: 0.5rem 0.65rem;
  transition: color 0.25s, opacity 0.25s;
  white-space: nowrap;
  opacity: 0.92;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-bright);
  opacity: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg) !important;
  background: var(--gold);
  transition: background 0.25s, transform 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--gold-bright);
  color: var(--bg) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: var(--silver);
  margin: 0.35rem auto;
  transition: 0.3s var(--ease);
}

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

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

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

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.btn-gold {
  background: var(--gold);
  color: var(--bg);
}

.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--silver-bright);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ——— Layout ——— */
.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 38rem;
  line-height: 1.7;
}

.gold-rule {
  width: 3.5rem;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem 0;
  border: none;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 1.5rem) 0 5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.45) 0%, rgba(7, 7, 7, 0.28) 40%, rgba(7, 7, 7, 0.88) 100%),
    linear-gradient(105deg, rgba(7, 7, 7, 0.72) 0%, rgba(7, 7, 7, 0.35) 42%, transparent 68%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero-brand {
  width: min(100%, 34rem);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.15s forwards;
}

.hero-brand img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.55));
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 22ch;
  color: var(--silver-bright);
  margin-bottom: 1rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.35s forwards;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 36rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.5s forwards;
}

.hero .btn-row {
  opacity: 0;
  animation: rise 1s var(--ease) 0.65s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  right: 2.5rem;
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fade 1s ease 1.2s forwards;
}

.hero-scroll::before {
  content: "";
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: pulse-line 2s ease infinite;
}

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

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

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ——— Page hero (inner) ——— */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 5rem) 0 4rem;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201, 162, 39, 0.12), transparent 55%),
    linear-gradient(180deg, #0c0c0c 0%, var(--bg) 100%);
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 36rem;
  line-height: 1.65;
}

/* ——— Services strip ——— */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.service-link {
  display: block;
  padding: 3rem 2rem;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease);
}

.service-link:last-child {
  border-right: none;
}

.service-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.service-link:hover {
  background: var(--bg-elevated);
}

.service-link:hover::before {
  transform: scaleX(1);
}

.service-link .num {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.service-link h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.service-link p {
  color: var(--text-muted);
  font-size: 0.975rem;
  margin-bottom: 1.5rem;
  max-width: 28ch;
}

.service-link .arrow {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.25s, transform 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-link:hover .arrow {
  color: var(--gold-bright);
  transform: translateX(4px);
}

/* ——— Split ——— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.split-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-soft);
}

.split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.split:hover .split-visual img {
  transform: scale(1.04);
}

.split-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  pointer-events: none;
}

/* ——— Tips list ——— */
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
}

.tip-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.tip-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.tip-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.tip-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.tip-item p {
  color: var(--text-muted);
  max-width: 42rem;
}

/* ——— Feature rows ——— */
.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.feature-row:last-child {
  border-bottom: 1px solid var(--border);
}

.feature-row h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-row p {
  color: var(--text-muted);
}

.feature-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— CTA band ——— */
.cta-band {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(201, 162, 39, 0.18), transparent 60%),
    var(--bg-elevated);
  z-index: 0;
}

.cta-band .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-inline: auto;
}

.cta-band .btn-row {
  justify-content: center;
}

/* ——— Contact form ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact-meta dt {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.contact-meta dd {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239a9a9a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-top: 1rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

button.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  background: #050505;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand img {
  height: 3.5rem;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 22ch;
}

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ——— Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ——— Mobile ——— */
@media (max-width: 1100px) {
  .nav-links a:not(.nav-cta) {
    padding: 0.5rem 0.4rem;
    font-size: 0.75rem;
  }

  .services-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid-4 .service-link:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(7, 7, 7, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
  }

  .nav-cta {
    margin-top: 1rem;
  }

  .services-grid,
  .services-grid-4 {
    grid-template-columns: 1fr;
  }

  .services-grid-4 .service-link:nth-child(2n) {
    border-right: none;
  }

  .service-link {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .split,
  .split.reverse,
  .contact-grid,
  .feature-row,
  .footer-top {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .feature-row {
    gap: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .hero-scroll {
    display: none;
  }

  .tip-item {
    grid-template-columns: 3rem 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero-brand {
    width: min(100%, 20rem);
  }
}

/* ——— App-like mobile chrome ——— */
.app-tabbar {
  display: none;
}

.nav-group-label {
  display: none;
}

@media (max-width: 960px) {
  :root {
    --tab-h: 4.5rem;
  }

  body {
    padding-bottom: calc(var(--tab-h) + var(--safe-bottom));
  }

  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    background: rgba(7, 7, 7, 0.96);
    border-bottom-color: var(--border);
  }

  .nav-logo img {
    height: 2.2rem;
  }

  .nav-toggle {
    width: 2.75rem;
    height: 2.75rem;
  }

  .nav-toggle span {
    background: var(--silver-bright);
    height: 2px;
  }

  .nav-links {
    padding: calc(var(--nav-h) + var(--safe-top) + 0.75rem) 1.25rem calc(var(--tab-h) + var(--safe-bottom) + 2.5rem);
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
  }

  .nav-group-label {
    display: block;
    width: min(100%, 22rem);
    margin: 1.1rem 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .nav-group-label:first-child {
    margin-top: 0.25rem;
  }

  .nav-links a {
    font-size: 1.12rem;
    font-weight: 650;
    color: #fff;
    opacity: 1;
    padding: 0.85rem 0.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: min(100%, 22rem);
  }

  .nav-links a.active {
    color: var(--gold-bright);
  }

  .nav-cta {
    width: min(100%, 22rem);
    justify-content: center;
    margin-top: 1.35rem;
    padding: 1rem 1.1rem;
    font-size: 0.95rem;
  }

  .hero {
    min-height: calc(100svh - var(--tab-h));
    justify-content: flex-end;
    padding: calc(var(--nav-h) + var(--safe-top) + 1rem) 0 calc(1.5rem + var(--safe-bottom));
  }

  .hero-brand {
    width: min(100%, 17.5rem);
    margin-bottom: 1rem;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    max-width: 18ch;
  }

  .hero p {
    font-size: 0.98rem;
    margin-bottom: 1.35rem;
  }

  .hero .btn-row,
  .btn-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22rem;
  }

  .hero .btn,
  .btn-row .btn {
    width: 100%;
  }

  .page-hero {
    padding: calc(var(--nav-h) + var(--safe-top) + 2.5rem) 0 2.5rem;
  }

  .page-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .section {
    padding: 3.75rem 0;
  }

  .section-title {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

  .btn {
    min-height: 3rem;
    padding: 0.95rem 1.35rem;
  }

  .container {
    width: min(100% - 1.35rem, var(--max));
  }

  .services-grid-4 .service-link,
  .service-link {
    padding: 1.75rem 1.25rem;
  }

  .faq-item summary {
    padding: 1rem 1.1rem;
    font-size: 1rem;
    min-height: 3rem;
  }

  .contact-grid {
    gap: 2.25rem;
  }

  .app-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    height: calc(var(--tab-h) + var(--safe-bottom));
    padding: 0.4rem 0.2rem calc(0.35rem + var(--safe-bottom));
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.5);
  }

  .app-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    color: #c4c7ce;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    min-height: 3.35rem;
    border-radius: 0.7rem;
    transition: color 0.2s, background 0.2s;
  }

  .app-tab svg {
    width: 1.4rem;
    height: 1.4rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
  }

  .app-tab.active {
    color: var(--gold-bright);
    background: rgba(201, 162, 39, 0.14);
  }

  .page-mls .site-footer.mls-footer {
    display: none;
  }

  .page-mls .faq-section {
    padding-bottom: calc(2rem + var(--tab-h) + var(--safe-bottom));
  }
}

/* ——— MLS Search ——— */
.page-mls {
  background: #050505;
}

.mls-main {
  padding-top: calc(var(--nav-h) + var(--safe-top));
}

.mls-top {
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #121212 0%, #070707 100%);
}

.mls-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.mls-lead {
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 1.25rem;
}

.mls-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mls-tab {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--silver-bright);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.mls-tab.is-active {
  background: rgba(201, 162, 39, 0.16);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.mls-focus-hint {
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 42rem;
}

.mls-favorites-tip {
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  max-width: 42rem;
  font-size: 0.9rem;
  color: var(--silver-bright);
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.mls-favorites-tip strong {
  color: var(--gold-bright);
  font-weight: 650;
}

.mls-stage {
  position: relative;
  min-height: calc(100dvh - var(--nav-h) - 11rem);
  background: #0a0a0a;
}

.mls-gate {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(201, 162, 39, 0.12), transparent 60%),
    rgba(7, 7, 7, 0.82);
  backdrop-filter: blur(6px);
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.mls-gate.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mls-gate-card {
  width: min(100%, 32rem);
  max-height: min(90dvh, 44rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.75rem 1.5rem;
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.mls-gate-card textarea {
  min-height: 4.5rem;
}

.mls-gate-card h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
}

.mls-gate-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.mls-frame-wrap {
  width: 100%;
  height: calc(100dvh - var(--nav-h) - 11rem);
  min-height: 36rem;
  background: #fff;
}

.mls-frame-wrap.is-locked {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

.mls-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

/* ——— FAQ / AEO ——— */
.faq-section {
  border-top: 1px solid var(--border);
}

.faq-list {
  margin-top: 2rem;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--silver-bright);
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 700;
}

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

.faq-item p {
  padding: 0 1.25rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.faq-item a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aeo-entity .section-lead {
  max-width: 48rem;
}

/* ——— Property management ——— */
.pm-hero .hero-content h1 {
  max-width: 18ch;
}

.pm-pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: var(--border);
  border: 1px solid var(--border);
}

.pm-pain-card {
  background: var(--bg);
  padding: 1.75rem 1.35rem;
}

.pm-pain-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  color: var(--gold-bright);
}

.pm-pain-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pm-check {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pm-check li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--silver-bright);
  font-size: 1rem;
}

.pm-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
  border-radius: 1px;
}

.pm-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.pm-compare-col {
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.pm-compare-col h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.pm-compare-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pm-compare-col li {
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.pm-compare-col li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.pm-compare-win {
  border-color: rgba(201, 162, 39, 0.45);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 162, 39, 0.14), transparent 55%),
    var(--bg-elevated);
}

.pm-compare-win h3 {
  color: var(--gold-bright);
}

.pm-compare-win li {
  color: var(--silver-bright);
}

.pm-compare-win li::before {
  content: "✓";
  color: var(--gold);
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .pm-pain-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pm-compare {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pm-pain-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .mls-top {
    padding: 1rem 0 0.85rem;
    position: sticky;
    top: calc(var(--nav-h) + var(--safe-top));
    z-index: 4;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(12px);
  }

  .mls-title {
    font-size: 1.55rem;
    margin-bottom: 0.4rem;
  }

  .mls-lead {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .mls-type-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    margin-bottom: 0.45rem;
    scrollbar-width: none;
    gap: 0.4rem;
  }

  .mls-type-tabs::-webkit-scrollbar {
    display: none;
  }

  .mls-tab {
    flex: 0 0 auto;
    font-size: 0.68rem;
    padding: 0.55rem 0.8rem;
    min-height: 2.35rem;
  }

  .mls-focus-hint,
  .mls-favorites-tip {
    font-size: 0.82rem;
  }

  .mls-favorites-tip {
    margin-top: 0.55rem;
    padding: 0.65rem 0.8rem;
  }

  .mls-stage {
    min-height: calc(100svh - var(--nav-h) - var(--tab-h) - 9rem);
  }

  .mls-gate {
    align-items: flex-end;
    padding: 0 0 calc(var(--tab-h) + var(--safe-bottom));
    background:
      linear-gradient(180deg, rgba(7, 7, 7, 0.35) 0%, rgba(7, 7, 7, 0.88) 35%, rgba(7, 7, 7, 0.96) 100%);
  }

  .mls-gate-card {
    width: 100%;
    max-height: calc(100svh - var(--nav-h) - var(--tab-h) - 1.25rem);
    border-radius: 1.1rem 1.1rem 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 1.15rem 1.15rem 1.25rem;
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.45);
  }

  .mls-gate-card h2 {
    font-size: 1.35rem;
  }

  .mls-gate-card > p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .mls-gate-card .form-group {
    margin-bottom: 0.85rem;
  }

  .mls-gate-card .form-group label {
    font-size: 0.72rem;
  }

  .mls-gate-card .form-group input,
  .mls-gate-card .form-group select,
  .mls-gate-card .form-group textarea {
    padding: 0.8rem 0.85rem;
    font-size: 1rem;
  }

  .mls-gate-card textarea {
    min-height: 3.75rem;
  }

  .mls-gate-card .btn {
    position: sticky;
    bottom: 0;
    margin-top: 0.35rem;
    box-shadow: 0 -10px 20px rgba(18, 18, 18, 0.9);
  }

  .mls-frame-wrap {
    height: calc(100svh - var(--nav-h) - var(--tab-h) - 8.5rem);
    min-height: 22rem;
  }

  .mls-gate-card {
    padding: 1.35rem 1.15rem;
  }
}
