:root {
  color-scheme: light;
  --blue-900: #062a5f;
  --blue-700: #0b57a3;
  --blue-100: #e9f3ff;
  --graphite: #242933;
  --slate: #596273;
  --line: #d8dde6;
  --soft: #f3f6f9;
  --white: #ffffff;
  --green: #386b5f;
  --clay: #a65f3f;
  --gold: #c69a43;
  --focus: #f2b705;
  --shadow: 0 22px 60px rgba(6, 42, 95, 0.14);
  --radius: 8px;
  --max: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--graphite);
  font-size: 16px;
  line-height: 1.55;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(11, 87, 163, 0.35);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-700);
}

button,
a {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: var(--graphite);
  color: var(--white);
  padding: 0.75rem 1rem;
  transform: translateY(-150%);
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 86px;
  padding: 0.75rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 235px;
}

.brand img {
  width: 112px;
  height: auto;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.15;
}

.brand small {
  color: var(--slate);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.main-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.72rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--graphite);
  font-size: 0.94rem;
  white-space: nowrap;
}

.mobile-nav-cta {
  display: none;
}

.main-nav a.active,
.main-nav a:hover {
  background: var(--blue-100);
  color: var(--blue-900);
}

.menu-toggle {
  display: none;
}

.icon-button,
.button-icon {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--graphite);
  cursor: pointer;
}

.button,
.button:visited {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--blue-900);
  border-radius: var(--radius);
  background: var(--blue-900);
  color: var(--white);
  padding: 0.72rem 1rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
}

.button.secondary,
.button.secondary:visited {
  background: var(--white);
  color: var(--blue-900);
}

.button.quiet {
  background: transparent;
  color: var(--graphite);
  border-color: var(--line);
}

.button-small {
  min-height: 38px;
  padding: 0.48rem 0.72rem;
  font-size: 0.9rem;
}

.revision-ribbon {
  background: var(--graphite);
  color: var(--white);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.hero {
  max-width: 1440px;
  margin: 0 auto;
  min-height: min(740px, calc(100vh - 128px));
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(350px, 0.96fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  min-height: 420px;
  background: var(--soft);
}

.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5.5rem);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.99)),
    var(--white);
}

.page-hero,
.section,
.split-section,
.quick-access,
.trust-grid,
.property-search,
.project-filters,
.property-detail,
.case-study,
.article-detail,
.admin-shell,
.breadcrumbs,
.cta-band {
  width: min(var(--max), calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.compact-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 5rem) 0 2.5rem;
}

.compact-hero h1 {
  max-width: 920px;
}

.compact-hero::before {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin-bottom: 1.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-700), var(--green), var(--gold));
}

.compact-hero .lead {
  color: #4f5a69;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--blue-700);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.55rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--blue-900);
}

h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 2.2vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--blue-900);
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--graphite);
}

.lead {
  max-width: 780px;
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  color: var(--slate);
}

.actions,
.card-actions,
.contact-actions,
.form-nav,
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.centered-actions {
  justify-content: center;
  margin-top: 1.5rem;
}

.photo-watermarked {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.photo-watermark-inline {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.photo-watermarked > img {
  display: block;
}

.photo-watermark-mark {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.065;
  transform: rotate(-18deg);
}

.photo-watermark-mark img {
  width: clamp(96px, 24%, 230px);
  max-height: 42%;
  object-fit: contain;
  filter: saturate(0.8) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.18));
}

.photo-watermark-mark::before {
  content: none;
}

.project-overlay,
.property-location,
.badge {
  z-index: 4;
}

.quick-access {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: -1px;
}

.quick-access article {
  background: var(--white);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.quick-access a {
  text-decoration: none;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2.25rem 0;
}

.trust-grid article {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.trust-grid strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--blue-900);
}

.trust-grid span {
  display: block;
  font-weight: 800;
  margin: 0.35rem 0;
}

.trust-grid small,
.muted,
.notice {
  color: var(--slate);
}

.section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.surface {
  width: 100%;
  max-width: none;
  background: var(--soft);
  border-block: 1px solid var(--line);
  padding-left: max(1rem, calc((100vw - var(--max)) / 2));
  padding-right: max(1rem, calc((100vw - var(--max)) / 2));
}

.section-heading {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  max-width: 760px;
}

.card-grid,
.project-grid,
.article-grid,
.property-results,
.audience-list {
  display: grid;
  gap: 1rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

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

.service-card,
.article-card,
.area-card,
.process-card,
.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgba(36, 41, 51, 0.04);
}

.service-card a {
  display: grid;
  min-height: 180px;
  align-content: start;
  text-decoration: none;
}

.service-mark {
  width: 44px;
  height: 8px;
  background: linear-gradient(90deg, var(--blue-700), var(--green), var(--gold));
  margin-bottom: 1rem;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.method-list,
.check-list {
  padding-left: 1.2rem;
}

.method-list li,
.check-list li {
  margin: 0.75rem 0;
}

.before-after {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--line);
}

.before-after img {
  width: 100%;
  height: 420px;
}

.before-after .after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 45% 0 0);
}

.before-after label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem;
  font-weight: 700;
}

.before-after input {
  width: 100%;
}

.audience-list {
  grid-template-columns: repeat(3, 1fr);
}

.audience-list article {
  border-top: 4px solid var(--blue-700);
  background: var(--white);
  padding: 1.2rem;
  border-radius: var(--radius);
}

.text-link {
  font-weight: 800;
  color: var(--blue-900);
}

.property-search {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.property-search.compact {
  border-top: 1px solid var(--line);
}

.filters,
.project-filters {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(120px, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.project-filters {
  grid-template-columns: repeat(3, 1fr);
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 750;
  color: var(--graphite);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b9c2d0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--graphite);
  padding: 0.7rem 0.78rem;
}

textarea {
  resize: vertical;
}

.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.view-toggle button,
.admin-tabs button {
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.view-toggle button.active,
.admin-tabs button[aria-selected="true"] {
  background: var(--blue-900);
  color: var(--white);
}

.results-count {
  color: var(--slate);
  font-weight: 700;
}

.property-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.property-results.list {
  grid-template-columns: 1fr;
}

.property-card,
.project-card {
  display: grid;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(36, 41, 51, 0.06);
}

.property-results.list .property-card {
  grid-template-columns: 260px 1fr;
}

.property-image {
  position: relative;
  display: block;
}

.property-image img,
.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.property-body,
.project-card div {
  padding: 1rem;
}

.reference {
  margin: 0 0 0.45rem;
  color: var(--blue-700);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price {
  margin: 0.25rem 0;
  color: var(--graphite);
  font-size: 1.25rem;
  font-weight: 900;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0.7rem 0;
  list-style: none;
}

.facts li {
  background: var(--blue-100);
  color: var(--blue-900);
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.facts.large li {
  background: var(--soft);
  border: 1px solid var(--line);
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  background: var(--graphite);
  color: var(--white);
  padding: 0.22rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.property-image .badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
}

.map-consent {
  border: 1px dashed var(--blue-700);
  border-radius: var(--radius);
  background: #eef7f5;
  padding: 1rem;
  margin-top: 1rem;
}

.map-consent.static {
  display: grid;
  gap: 0.25rem;
}

.project-grid {
  grid-template-columns: repeat(3, 1fr);
}

.article-grid {
  grid-template-columns: repeat(3, 1fr);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding-top: 1rem;
  color: var(--slate);
  font-size: 0.92rem;
}

.property-detail-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0;
}

.property-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 1.5rem;
  align-items: start;
}

.property-layout > section,
.property-layout > aside {
  min-width: 0;
}

.property-layout aside {
  position: sticky;
  top: 108px;
}

.gallery {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery img {
  width: 100%;
  max-height: 640px;
}

.gallery-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.gallery-tiles span {
  background: var(--soft);
  text-align: center;
  padding: 0.75rem;
  font-weight: 700;
}

.smart-form {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.form-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.form-intro {
  color: var(--slate);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.form-step {
  display: none;
}

.form-step.active {
  display: grid;
  gap: 0.9rem;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.check-line input {
  width: 20px;
  min-height: 20px;
  margin-top: 0.2rem;
}

.honeypot {
  position: absolute;
  left: -100vw;
}

.form-status {
  min-height: 1.4rem;
  color: var(--blue-900);
  font-weight: 750;
}

.form-status.error {
  color: #a72720;
}

.smart-form h2 { font-size: 1.6rem; }
.smart-form label, .smart-form input, .smart-form select, .smart-form textarea { min-width: 0; max-width: 100%; }
.smart-form .form-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.smart-form .form-status, .field-error, .attachment-list { overflow-wrap: anywhere; }
.field-error { display: block; color: #a72720; }
.field-error[hidden] { display: none; }
.smart-form [aria-invalid=true] { border-color: #a72720; }
.smart-form :focus-visible { outline: 3px solid #155ac1; outline-offset: 3px; }
.smart-form input, .smart-form select, .smart-form textarea, .smart-form button { scroll-margin-block: 140px 120px; }
.attachment-list { padding: 0; list-style: none; margin: 0; }
.attachment-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.attachment-list span { min-width: 0; }
.form-progress { font-size: 0.9rem; font-weight: 650; color: var(--blue-900); margin-block: 1rem; }
.file-field { display: grid; gap: 0.65rem; }
.file-picker { position: relative; display: inline-flex; justify-content: center; align-items: center; min-height: 46px; width: max-content; max-width: 100%; padding: 0.65rem 1rem; border: 1px solid var(--line); border-radius: 4px; background: var(--white); font-weight: 650; }
.file-picker input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-picker:focus-within { outline: 3px solid #155ac1; outline-offset: 3px; }
.smart-form button:disabled { opacity: 0.65; cursor: wait; box-shadow: none; }
.attachment-list button { flex: 0 0 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); font-size: 1.2rem; cursor: pointer; }
.smart-form .check-line { flex-wrap: wrap; }
.smart-form .check-line span { flex: 1; min-width: 0; }
.smart-form .check-line .field-error { order: 3; flex-basis: 100%; }

.faq-list {
  display: grid;
  gap: 0.7rem;
}

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
}

summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--blue-900);
}

.glossary {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0.75rem 1.25rem;
}

.glossary dt {
  font-weight: 900;
  color: var(--blue-900);
}

.wide-image {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  max-height: 580px;
}

.project-wide-image {
  width: min(940px, calc(100% - 2rem));
  max-height: none;
  aspect-ratio: 1;
  object-position: center top;
}

.project-detail-gallery {
  width: min(var(--max), calc(100% - 2rem));
  margin: -0.5rem auto 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

.project-detail-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(8, 26, 49, 0.12);
}

.case-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.case-grid section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--white);
}

.article-detail,
.narrow {
  max-width: 820px;
}

.article-detail h1 {
  margin-bottom: 1rem;
}

.contact-panel address {
  font-style: normal;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  background: var(--blue-900);
  color: var(--white);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.cta-band h2,
.cta-band .eyebrow {
  color: var(--white);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
}

.cta-band .button.secondary {
  border-color: rgba(255, 255, 255, 0.7);
}

.site-footer {
  background: #151922;
  color: var(--white);
  padding-bottom: 74px;
}

.footer-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.5rem;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1rem;
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer li {
  margin: 0.45rem 0;
}

.footer-bottom {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.72);
}

.cookie-panel {
  position: fixed;
  inset: auto 1rem 1rem auto;
  z-index: 90;
  width: min(560px, calc(100% - 2rem));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.cookie-config {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.cookie-config label {
  display: flex;
  gap: 0.6rem;
}

.cookie-config input {
  width: 20px;
  min-height: 20px;
}

.mobile-action-bar {
  display: none;
}

.admin-shell {
  padding: 2rem 0 4rem;
}

.admin-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.admin-login,
.admin-workspace {
  margin-top: 1.5rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.admin-panel textarea {
  width: 100%;
  min-height: 520px;
  margin-top: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
}

.admin-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

[hidden] {
  display: none !important;
}

/* Design pass: premium technical identity for RealPro 2026. */
body {
  background:
    linear-gradient(180deg, #ffffff 0, #f7f9fc 52%, #ffffff 100%);
}

.utility-bar {
  min-height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding: 0.35rem 1rem;
  background: #101722;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

.utility-bar span {
  font-weight: 800;
  color: var(--white);
}

.utility-bar a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-header {
  box-shadow: 0 12px 36px rgba(16, 23, 34, 0.06);
}

.header-inner {
  min-height: 76px;
}

.brand img {
  filter: saturate(0.95) contrast(1.04);
}

.main-nav {
  gap: 0.25rem;
}

.main-nav a {
  font-weight: 760;
  color: #2c3340;
}

.main-nav a.active,
.main-nav a:hover {
  background: #edf5ff;
}

.button {
  box-shadow: 0 10px 22px rgba(6, 42, 95, 0.18);
}

.button.secondary,
.button.quiet {
  box-shadow: none;
}

.hero-home {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: min(720px, calc(100svh - 110px));
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 0;
  background: #101722;
}

.hero-home .hero-media {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.hero-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 20, 39, 0.88) 0%, rgba(7, 20, 39, 0.74) 42%, rgba(7, 20, 39, 0.26) 100%),
    linear-gradient(0deg, rgba(7, 20, 39, 0.64), rgba(7, 20, 39, 0.05) 46%);
}

.hero-home .hero-media img {
  width: 100%;
  height: 100%;
  object-position: center;
  filter: saturate(0.88) contrast(1.04);
}

.hero-home .hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6.25rem) 0 clamp(2.2rem, 7vw, 4.5rem);
  background: transparent;
  color: var(--white);
}

.hero-home .eyebrow {
  width: fit-content;
  color: #d8eaff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.36rem 0.7rem;
}

.hero-home h1 {
  max-width: 780px;
  color: var(--white);
  text-wrap: balance;
}

.hero-home .lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-home .button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.52);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  max-width: 850px;
}

.hero-proof span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  min-height: 42px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.11);
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.hero-proof strong {
  color: var(--white);
  font-size: 1.2rem;
}

.cycle-rail {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  background: var(--blue-900);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cycle-rail span {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.15rem;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 850;
}

.cycle-rail span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.quick-access {
  margin-top: 2rem;
  background: transparent;
  border: 0;
  gap: 1rem;
}

.quick-access article {
  position: relative;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
    var(--white);
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(36, 41, 51, 0.06);
}

.quick-access article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-700), var(--green), var(--gold));
}

.quick-access h2 {
  font-size: 1.35rem;
}

.trust-grid {
  gap: 0;
  border-block: 1px solid var(--line);
  padding: 0;
  margin-top: 2rem;
  margin-bottom: 2rem;
  background: var(--white);
}

.trust-grid article {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: clamp(1rem, 2vw, 1.45rem);
}

.trust-grid article:last-child {
  border-right: 0;
}

.trust-grid strong {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.split-section {
  align-items: center;
}

.before-after {
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 26px 70px rgba(16, 23, 34, 0.18);
}

.service-card,
.article-card,
.area-card,
.process-card,
.contact-panel,
.smart-form {
  box-shadow: 0 18px 42px rgba(36, 41, 51, 0.06);
}

.service-card,
.article-card,
.area-card {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.service-card:hover,
.article-card:hover,
.area-card:hover,
.property-card:hover,
.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 87, 163, 0.36);
  box-shadow: 0 22px 58px rgba(6, 42, 95, 0.12);
}

.service-card a {
  min-height: 210px;
}

.service-card h3 {
  color: var(--blue-900);
  font-size: 1.18rem;
}

.service-mark {
  width: 52px;
  height: 6px;
  border-radius: 999px;
}

.surface {
  background:
    linear-gradient(180deg, #f4f7fb 0%, #eef3f8 100%);
}

.property-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  max-width: none;
}

.section-chip {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-900);
  padding: 0.42rem 0.7rem;
  font-weight: 850;
  font-size: 0.86rem;
}

.filters,
.project-filters {
  background: var(--white);
  border: 1px solid rgba(11, 87, 163, 0.18);
  box-shadow: 0 18px 48px rgba(36, 41, 51, 0.07);
}

.filters label,
.project-filters label {
  font-size: 0.86rem;
  color: #3d4655;
}

input,
select,
textarea {
  border-color: #c5ceda;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-700);
}

.property-card,
.project-card {
  border-color: rgba(216, 221, 230, 0.95);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.property-image::after,
.project-card > a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(16, 23, 34, 0.42), rgba(16, 23, 34, 0));
  pointer-events: none;
}

.project-card > a {
  position: relative;
  display: block;
}

.property-location {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  color: var(--white);
  font-weight: 900;
  text-shadow: 0 1px 6px rgba(16, 23, 34, 0.45);
}

.property-body,
.project-card div {
  padding: 1.15rem;
}

.property-body h3,
.project-card h3 {
  font-size: 1.12rem;
}

.reference {
  color: var(--green);
}

.facts li {
  background: #edf5ff;
}

.badge {
  z-index: 1;
  background: rgba(16, 23, 34, 0.9);
}

.cta-band {
  background:
    linear-gradient(120deg, rgba(6, 42, 95, 0.98), rgba(11, 87, 163, 0.92)),
    var(--blue-900);
  box-shadow: 0 28px 70px rgba(6, 42, 95, 0.18);
}

.site-footer {
  background:
    linear-gradient(180deg, #151922 0%, #0d121a 100%);
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .main-nav.open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .main-nav.open a {
    border-radius: var(--radius);
  }

  .main-nav.open .mobile-nav-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 0.35rem;
    background: var(--blue-900);
    color: var(--white);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    order: -1;
  }

  .hero-home .hero-content {
    order: 0;
  }

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

  .property-heading {
    grid-template-columns: 1fr;
  }

  .property-results,
  .project-grid,
  .article-grid,
  .audience-list,
  .card-grid.three,
  .card-grid.four,
  .trust-grid,
  .footer-grid,
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section,
  .property-layout,
  .property-detail-header,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .property-layout aside {
    position: static;
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 74px;
  }

  .header-inner {
    min-height: 74px;
    padding: 0.55rem 1rem;
  }

  .utility-bar {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 90px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 280px;
  }

  .hero-content {
    padding: 2rem 1rem;
  }

  .hero-home {
    min-height: 640px;
  }

  .hero-home .hero-content {
    width: min(100% - 2rem, var(--max));
    padding: 2.5rem 0;
    justify-content: end;
  }

  .hero-proof span {
    width: 100%;
  }

  .cycle-rail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .cycle-rail span {
    justify-content: center;
    min-height: 46px;
    padding: 0.55rem;
    font-size: 0.88rem;
  }

  .cycle-rail span + span {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .cycle-rail span:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }

  .quick-access,
  .filters,
  .project-filters,
  .property-results,
  .compact-property-grid,
  .project-grid,
  .article-grid,
  .audience-list,
  .card-grid.three,
  .card-grid.four,
  .trust-grid,
  .footer-grid,
  .case-grid,
  .field-grid,
  .gallery-tiles,
  .glossary {
    grid-template-columns: 1fr;
  }

  .quick-access {
    margin-top: 1rem;
  }

  .trust-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .property-results.list .property-card {
    grid-template-columns: 1fr;
  }

  .method-realpro-layout {
    grid-template-columns: 1fr;
  }

  .before-after,
  .before-after img {
    min-height: 310px;
    height: 310px;
  }

  .cookie-panel {
    inset: auto 0 74px 0;
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(36, 41, 51, 0.12);
  }

  .mobile-action-bar a {
    min-height: 58px;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-weight: 850;
    color: var(--blue-900);
  }

  .mobile-action-bar a + a {
    border-left: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Premium rebuild: architectural corporate direction. */
:root {
  --navy-950: #06101d;
  --navy-900: #081a31;
  --navy-800: #0a2b55;
  --realpro-blue: #0b57a3;
  --accent-blue: #2aa7ff;
  --graphite-900: #171b22;
  --graphite-700: #343b47;
  --steel-500: #7d8b9c;
  --concrete-100: #f2f4f6;
  --concrete-200: #e4e8ed;
  --paper: #fbfcfd;
  --metal: #b8c4d1;
  --warm-line: #d3c2a0;
  --max: 1260px;
  --shadow: 0 28px 80px rgba(8, 26, 49, 0.14);
}

body {
  background:
    linear-gradient(180deg, #f7f9fb 0%, #ffffff 34%, #eef2f6 100%);
  color: var(--graphite-900);
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 26, 49, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 26, 49, 0.025) 1px, transparent 1px);
  background-size: 112px 112px;
  mask-image: linear-gradient(180deg, black, transparent 70%);
}

.site-header {
  background: rgba(251, 252, 253, 0.94);
  border-bottom: 1px solid rgba(8, 26, 49, 0.12);
  box-shadow: 0 18px 45px rgba(8, 26, 49, 0.08);
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.utility-bar {
  min-height: 32px;
  padding: 0;
  background: linear-gradient(90deg, var(--navy-950), #121925);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
}

.utility-inner {
  width: min(var(--max), calc(100% - 2rem));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.05rem;
}

.utility-inner span:first-child {
  margin-right: auto;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 850;
}

.utility-inner a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.utility-inner a:hover {
  color: var(--white);
}

.header-inner {
  min-height: 108px;
  width: min(var(--max), calc(100% - 2rem));
  max-width: none;
  padding: 0;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 2.4vw, 2rem);
  transition: min-height 180ms ease;
}

.site-header.is-scrolled .header-inner {
  min-height: 78px;
}

.brand {
  min-width: 0;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
}

.brand img {
  width: clamp(158px, 13vw, 228px);
  height: auto;
  max-height: 86px;
  object-fit: contain;
  transition:
    width 180ms ease,
    max-height 180ms ease;
}

.site-header.is-scrolled .brand img {
  width: clamp(132px, 9vw, 166px);
  max-height: 64px;
}

.main-nav {
  justify-content: flex-end;
  gap: 0.1rem;
}

.main-nav a {
  position: relative;
  min-height: 46px;
  padding: 0.62rem 0.68rem;
  border-radius: 0;
  background: transparent;
  color: #26303e;
  font-size: 0.9rem;
  font-weight: 780;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0.68rem;
  right: 0.68rem;
  bottom: 0.35rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--realpro-blue);
  transition: transform 160ms ease;
}

.main-nav a.active,
.main-nav a:hover {
  background: transparent;
  color: var(--navy-900);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions .button {
  min-height: 44px;
  padding-inline: 1.05rem;
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.menu-lines {
  width: 20px;
  display: grid;
  gap: 4px;
}

.menu-lines span {
  height: 2px;
  background: currentColor;
}

.revision-ribbon {
  position: static;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0.45rem auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(52, 59, 71, 0.68);
  text-align: right;
  font-size: 0.68rem;
  box-shadow: none;
}

h1,
h2,
h3 {
  color: var(--navy-900);
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 6.7vw, 6.85rem);
  line-height: 0.94;
  max-width: 980px;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 3.55rem);
  line-height: 1.02;
}

h3 {
  font-size: clamp(1.08rem, 1.3vw, 1.32rem);
}

.lead {
  font-size: clamp(1.08rem, 1.45vw, 1.42rem);
  line-height: 1.55;
}

.eyebrow,
.reference {
  color: var(--realpro-blue);
  font-weight: 900;
  letter-spacing: 0;
}

.button,
.button:visited {
  min-height: 52px;
  border-radius: 6px;
  border-color: var(--navy-900);
  background: var(--navy-900);
  padding: 0.85rem 1.18rem;
  box-shadow: 0 16px 34px rgba(8, 26, 49, 0.18);
}

.button:hover {
  background: var(--realpro-blue);
  border-color: var(--realpro-blue);
}

.button.secondary,
.button.secondary:visited {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(8, 26, 49, 0.2);
  color: var(--navy-900);
}

.button.quiet {
  background: transparent;
  box-shadow: none;
}

.hero-home {
  min-height: clamp(650px, calc(100svh - 120px), 780px);
  isolation: isolate;
}

.hero-home::before,
.rehab-hero::before,
.final-image-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 96px 96px;
  mix-blend-mode: screen;
  opacity: 0.45;
}

.hero-home .hero-media::after {
  background:
    linear-gradient(90deg, rgba(5, 14, 28, 0.94) 0%, rgba(5, 14, 28, 0.82) 39%, rgba(5, 14, 28, 0.28) 100%),
    linear-gradient(0deg, rgba(5, 14, 28, 0.74), rgba(5, 14, 28, 0.05) 54%);
}

.hero-home .hero-media img {
  object-position: center 25%;
  transform: scale(1.04);
  filter: saturate(0.85) contrast(1.08);
}

.hero-home .hero-content {
  z-index: 2;
  min-height: inherit;
  display: flex;
  justify-content: center;
  padding-block: clamp(4.6rem, 9vw, 7rem);
}

.hero-home .eyebrow,
.rehab-hero .eyebrow {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #dfeeff;
  padding: 0.46rem 0.7rem;
}

.hero-home h1,
.rehab-hero h1,
.final-image-cta h2 {
  color: var(--white);
  max-width: 880px;
}

.hero-home .lead,
.rehab-hero .lead {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-proof {
  gap: 0;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

.hero-proof span {
  min-height: 78px;
  min-width: 178px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 3px solid var(--accent-blue);
  border-radius: 0;
  background: rgba(5, 14, 28, 0.5);
  padding: 0.78rem 1rem;
  display: grid;
  gap: 0.14rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-proof span + span {
  margin-left: -1px;
}

.hero-proof strong {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1;
}

.hero-scroll {
  position: absolute;
  left: max(1rem, calc((100vw - var(--max)) / 2));
  bottom: 1.4rem;
  z-index: 3;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 48px;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.56);
}

.cycle-rail {
  display: grid;
  grid-template-columns: minmax(280px, 0.52fr) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  padding: 0 max(1rem, calc((100vw - var(--max)) / 2));
  background: var(--navy-950);
}

.cycle-intro {
  padding: clamp(1.2rem, 2.8vw, 2rem) clamp(1rem, 2vw, 1.5rem) clamp(1.2rem, 2.8vw, 2rem) 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.cycle-intro h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 2rem);
}

.cycle-rail ol {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.cycle-rail li {
  position: relative;
  min-height: 112px;
  display: flex;
  align-items: end;
  padding: 1rem 0.85rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 850;
}

.cycle-rail li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1rem;
  width: 10px;
  height: 10px;
  background: var(--accent-blue);
}

.division-showcase {
  width: min(var(--max), calc(100% - 2rem));
  margin: clamp(2rem, 4vw, 3.2rem) auto 0;
  display: grid;
  grid-template-columns: 0.88fr 1.24fr 0.88fr;
  gap: 1rem;
}

.division-showcase article,
.editorial-service,
.estate-featured,
.case-highlight figure,
.form-visual {
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy-900);
  box-shadow: var(--shadow);
}

.division-showcase article.primary {
  transform: translateY(-1.25rem);
}

.division-showcase a,
.editorial-service a,
.estate-featured a {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: end;
  color: var(--white);
  text-decoration: none;
}

.division-showcase img,
.editorial-service img,
.estate-featured img,
.case-highlight img,
.form-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.division-showcase img,
.editorial-service img,
.case-highlight img,
.project-image img,
.form-visual img,
.final-image-cta img {
  object-position: center 20%;
}

.division-showcase a > img,
.editorial-service a > img,
.project-image img,
.case-highlight img,
.form-visual img,
.final-image-cta img {
  transform: scale(1.18);
}

.division-showcase a::after,
.editorial-service a::after,
.estate-featured a::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(5, 14, 28, 0.9), rgba(5, 14, 28, 0.18) 64%),
    linear-gradient(90deg, rgba(5, 14, 28, 0.52), transparent);
}

.division-showcase a:hover img,
.editorial-service a:hover img,
.estate-featured a:hover img,
.project-image:hover img {
  transform: scale(1.24);
}

.division-showcase div,
.editorial-service div,
.estate-featured div {
  position: relative;
  z-index: 1;
  padding: clamp(1.1rem, 2.2vw, 1.7rem);
}

.division-showcase h2,
.editorial-service h3,
.estate-featured h2 {
  color: var(--white);
}

.division-showcase p,
.editorial-service p,
.estate-featured p {
  color: rgba(255, 255, 255, 0.82);
}

.service-number {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 1;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 900;
  font-size: 0.88rem;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
  color: var(--white);
  font-weight: 900;
}

.arrow-link::after,
.text-link::after {
  content: ">";
  font-weight: 900;
}

.home-stats,
.rehab-trust {
  width: 100%;
  max-width: none;
  margin: clamp(2.2rem, 5vw, 4rem) 0 0;
  padding: 0 max(1rem, calc((100vw - var(--max)) / 2));
  border-block: 1px solid rgba(8, 26, 49, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.home-stats article,
.rehab-trust article {
  padding: clamp(1.25rem, 2.5vw, 1.9rem) 1.05rem;
}

.home-stats strong,
.rehab-trust strong {
  color: var(--navy-900);
}

.editorial-intro {
  align-items: center;
}

.editorial-intro h2 {
  max-width: 760px;
}

.method-before-after {
  width: 100%;
}

.method-before-after.compact,
.method-before-after.compact img {
  min-height: 380px;
  height: 380px;
}

.method-realpro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
}

.method-realpro-layout .method-list {
  margin: 0;
}

.technical-panel,
.testimonial-pending {
  min-height: 360px;
  display: grid;
  align-content: end;
  gap: 0.8rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 26, 49, 0.96), rgba(11, 87, 163, 0.78)),
    var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow);
}

.technical-panel span {
  color: var(--metal);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.technical-panel strong {
  max-width: 520px;
  font-size: clamp(1.55rem, 2.6vw, 2.6rem);
  line-height: 1.04;
}

.technical-panel p,
.testimonial-pending p {
  color: rgba(255, 255, 255, 0.82);
}

.service-editorial-section {
  padding-top: clamp(3rem, 7vw, 6rem);
}

.editorial-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(250px, auto);
  gap: 1rem;
}

.editorial-service.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.editorial-service a {
  min-height: 100%;
}

.editorial-service:not(.featured) a {
  min-height: 310px;
}

.editorial-service.featured h3 {
  font-size: clamp(1.65rem, 3vw, 3rem);
  max-width: 680px;
}

.editorial-service .reference {
  color: #aad7ff;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.audience-list article {
  border: 1px solid rgba(8, 26, 49, 0.12);
  border-top: 4px solid var(--realpro-blue);
  box-shadow: 0 16px 42px rgba(8, 26, 49, 0.06);
}

.property-search {
  width: min(var(--max), calc(100% - 2rem));
}

.filters,
.project-filters {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 60px rgba(8, 26, 49, 0.08);
}

.view-toggle {
  border-radius: 6px;
}

.property-card {
  border-radius: 8px;
}

.property-image img {
  aspect-ratio: 16 / 11;
}

.property-body {
  padding: 1.2rem;
}

.property-body h3 {
  font-size: 1.18rem;
}

.facts li {
  border-radius: 4px;
  background: var(--concrete-100);
}

.dark-projects {
  width: 100%;
  padding: clamp(3.2rem, 7vw, 6.5rem) max(1rem, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(135deg, rgba(5, 14, 28, 0.98), rgba(8, 26, 49, 0.94)),
    var(--navy-950);
  color: var(--white);
}

.dark-projects .section-heading h2,
.dark-projects .section-heading p,
.dark-projects .eyebrow {
  color: var(--white);
}

.dark-projects .section-heading p {
  color: rgba(255, 255, 255, 0.76);
}

.project-gallery {
  grid-template-columns: minmax(0, 1.18fr) repeat(2, minmax(0, 0.91fr));
  gap: 1rem;
}

.project-gallery .project-card:first-child {
  grid-row: span 2;
}

.project-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.project-image {
  position: relative;
  min-height: 330px;
  display: block;
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
}

.project-gallery .project-card:first-child .project-image {
  min-height: 520px;
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(5, 14, 28, 0.92), rgba(5, 14, 28, 0.1) 62%),
    linear-gradient(90deg, rgba(5, 14, 28, 0.32), transparent);
}

.project-image img,
.project-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
  transition: transform 420ms ease;
}

.project-card .badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  border-radius: 4px;
  background: rgba(42, 167, 255, 0.92);
  color: var(--navy-950);
}

.project-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.2rem;
}

.project-overlay h3 {
  color: var(--white);
  font-size: clamp(1.2rem, 1.8vw, 2rem);
}

.project-meta {
  padding: 1.15rem;
  display: grid;
  gap: 0.75rem;
}

.project-meta p,
.project-meta dd {
  color: rgba(255, 255, 255, 0.74);
}

.project-meta dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0;
}

.project-meta dt {
  color: var(--metal);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-meta dd {
  margin: 0.2rem 0 0;
  font-weight: 760;
}

.dark-projects .text-link {
  color: var(--white);
}

.works-preview {
  background: #f7fafc;
}

.works-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.works-grid.preview {
  width: 100%;
}

.work-featured-section {
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.work-portfolio-section {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.work-archive-section {
  padding-top: clamp(1rem, 4vw, 3rem);
  background: #f7fafc;
}

.featured-work-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.featured-work-grid.compact {
  width: 100%;
}

.featured-work-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(8, 26, 49, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(8, 26, 49, 0.1);
}

.featured-work-card.featured {
  grid-column: span 2;
}

.featured-work-image {
  position: relative;
  display: block;
  min-height: 360px;
  overflow: hidden;
  background: #d7dde5;
  color: var(--white);
  text-decoration: none;
}

.featured-work-card:not(.featured) .featured-work-image {
  min-height: 280px;
}

.featured-work-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(0deg, rgba(5, 14, 28, 0.62), rgba(5, 14, 28, 0));
  pointer-events: none;
}

.featured-work-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease;
}

.featured-work-image:hover img {
  transform: scale(1.035);
}

.featured-work-image span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  max-width: calc(100% - 2rem);
  padding: 0.42rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  background: rgba(5, 14, 28, 0.44);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 850;
}

.featured-work-card > div {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: clamp(1rem, 2.2vw, 1.45rem);
}

.featured-work-card h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 1.08;
}

.featured-work-card h3 a {
  text-decoration: none;
}

.featured-work-card p {
  margin: 0;
  color: var(--slate);
}

.work-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 26, 49, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 54px rgba(8, 26, 49, 0.08);
}

.work-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  background: #d7dde5;
  color: var(--white);
  text-decoration: none;
}

.work-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(5, 14, 28, 0.52), rgba(5, 14, 28, 0));
  pointer-events: none;
}

.work-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease;
}

.work-image:hover img {
  transform: scale(1.04);
}

.work-card .badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  border-radius: 4px;
  background: rgba(56, 107, 95, 0.92);
  color: var(--white);
}

.work-card-body {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem;
}

.work-card-body h3 {
  margin: 0;
  font-size: 1.18rem;
}

.work-card-body h3 a {
  text-decoration: none;
}

.work-card-body p {
  margin: 0;
  color: var(--slate);
}

.work-card-body .text-link {
  align-self: end;
}

.work-card-body dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0;
}

.work-card-body dt {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.work-card-body dd {
  margin: 0.2rem 0 0;
  color: var(--graphite);
  font-weight: 760;
}

.portfolio-strip {
  width: min(var(--max), calc(100% - 2rem));
  margin: clamp(1.5rem, 4vw, 3rem) auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.portfolio-strip article {
  min-width: 0;
  padding: clamp(0.9rem, 2vw, 1.15rem);
  border: 1px solid rgba(8, 26, 49, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
}

.portfolio-strip strong,
.portfolio-strip span {
  display: block;
}

.portfolio-strip strong {
  color: var(--blue-900);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
}

.portfolio-strip span {
  margin-top: 0.45rem;
  color: var(--graphite);
  font-weight: 850;
}

.compact-archive .work-card {
  box-shadow: none;
}

.compact-archive .work-image {
  min-height: 220px;
}

.relation-badge,
.relation-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0.46rem 0.65rem;
  border: 1px solid rgba(11, 87, 163, 0.2);
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue-900);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.work-card {
  position: relative;
}

.work-card .relation-badge {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(8, 26, 49, 0.14);
}

.featured-work-card .relation-badge {
  margin: 1rem 1rem 0;
}

.work-detail-hero {
  width: min(var(--max), calc(100% - 2rem));
  margin: clamp(1.5rem, 4vw, 3rem) auto clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
}

.work-detail-hero > div {
  min-width: 0;
  display: grid;
  gap: 1rem;
  padding-block: clamp(1rem, 3vw, 2rem);
}

.work-detail-hero h1 {
  margin: 0;
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(2.55rem, 5.2vw, 5.7rem);
  line-height: 0.92;
}

.work-detail-hero .lead {
  max-width: 58ch;
  margin: 0;
  color: var(--slate);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.6;
}

.work-detail-hero figure {
  min-width: 0;
  margin: 0;
}

.work-wide-image {
  width: 100%;
  height: min(68vh, 720px);
  min-height: 460px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.work-detail-gallery {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1rem auto clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.work-detail-gallery img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 8px;
  object-fit: cover;
}

.work-detail-gallery img:nth-child(6n + 1),
.work-detail-gallery img:nth-child(6n + 4) {
  grid-column: span 4;
}

.work-detail-gallery img:nth-child(6n + 2),
.work-detail-gallery img:nth-child(6n + 3),
.work-detail-gallery img:nth-child(6n + 5),
.work-detail-gallery img:nth-child(6n + 6) {
  grid-column: span 2;
}

.portfolio-cta {
  width: min(var(--max), calc(100% - 2rem));
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: 8px;
  background: linear-gradient(135deg, #071b35, #0b57a3);
  color: var(--white);
}

.portfolio-cta h2,
.portfolio-cta p {
  margin: 0;
}

.portfolio-cta h2 {
  margin-top: 0.35rem;
  max-width: 18ch;
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.portfolio-cta p:not(.eyebrow) {
  margin-top: 0.8rem;
  max-width: 64ch;
  color: rgba(255, 255, 255, 0.78);
}

.portfolio-cta .eyebrow {
  color: #b9d8ff;
}

.portfolio-cta .actions {
  justify-content: flex-end;
}

.related-case-link {
  width: min(920px, calc(100% - 2rem));
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid rgba(8, 26, 49, 0.12);
  border-left: 5px solid var(--blue-700);
  border-radius: 8px;
  background: #f7fafc;
}

.related-case-link h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.related-case-link p:not(.eyebrow) {
  max-width: 68ch;
  color: var(--slate);
}

.work-status-panel {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.work-status-panel div {
  padding: 1rem;
  border: 1px solid rgba(56, 107, 95, 0.24);
  border-radius: 8px;
  background: rgba(56, 107, 95, 0.08);
}

.work-status-panel span {
  display: block;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.work-status-panel p {
  margin: 0.4rem 0 0;
  color: var(--graphite);
}

.work-lists {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.work-lists > div {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(8, 26, 49, 0.06);
}

.rehab-hero {
  position: relative;
  min-height: clamp(650px, 76svh, 780px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy-950);
  color: var(--white);
  isolation: isolate;
}

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

.rehab-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 14, 28, 0.95) 0%, rgba(5, 14, 28, 0.82) 42%, rgba(5, 14, 28, 0.3) 100%),
    linear-gradient(0deg, rgba(5, 14, 28, 0.72), rgba(5, 14, 28, 0.04) 55%);
}

.rehab-hero-media img {
  width: 100%;
  height: 100%;
  object-position: center 23%;
  transform: scale(1.05);
}

.rehab-hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding-block: clamp(4rem, 8vw, 6rem);
}

.rehab-hero h1 {
  max-width: 860px;
}

.case-highlight {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) max(1rem, calc((100vw - var(--max)) / 2));
  background: var(--concrete-100);
  border-block: 1px solid rgba(8, 26, 49, 0.1);
}

.case-highlight-copy {
  padding-right: clamp(0rem, 3vw, 2rem);
}

.case-highlight figure {
  position: relative;
  min-height: 560px;
  margin: 0;
}

.case-highlight figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.72rem 0.9rem;
  border-radius: 6px;
  background: rgba(5, 14, 28, 0.78);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

.before-after-section {
  align-items: center;
}

.before-after {
  min-height: 500px;
  border-radius: 8px;
}

.before-after img {
  height: 500px;
}

.before-after label {
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  border-radius: 6px;
}

.process-timeline {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.process-timeline ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 1.8rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(8, 26, 49, 0.18);
}

.process-timeline li {
  min-height: 260px;
  padding: 1.2rem;
  border-right: 1px solid rgba(8, 26, 49, 0.14);
  background: rgba(255, 255, 255, 0.66);
}

.process-timeline li:first-child {
  border-left: 1px solid rgba(8, 26, 49, 0.14);
}

.process-timeline span {
  display: block;
  margin-bottom: 3.3rem;
  color: var(--realpro-blue);
  font-size: 0.84rem;
  font-weight: 900;
}

.process-timeline strong {
  display: block;
  color: var(--navy-900);
  font-size: 1.08rem;
}

.role-blocks {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.role-blocks article {
  min-height: 360px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  align-content: end;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 26, 49, 0.92), rgba(8, 26, 49, 0.7)),
    var(--navy-900);
  color: var(--white);
}

.role-blocks h2,
.role-blocks .text-link {
  color: var(--white);
}

.role-blocks p {
  color: rgba(255, 255, 255, 0.78);
}

.pathology-grid,
.asset-value-grid,
.estate-strategy {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(8, 26, 49, 0.12);
  border: 1px solid rgba(8, 26, 49, 0.12);
}

.pathology-grid article,
.asset-value-grid article,
.estate-strategy article {
  min-height: 220px;
  padding: 1.25rem;
  background: var(--paper);
}

.quality-section {
  align-items: stretch;
}

.testimonial-pending {
  min-height: auto;
}

.visual-form-section {
  align-items: stretch;
}

.form-visual {
  position: relative;
  min-height: 620px;
}

.form-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 14, 28, 0.92), rgba(5, 14, 28, 0.06) 60%);
}

.form-visual div {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 2;
  display: grid;
  gap: 0.3rem;
  color: var(--white);
}

.form-visual strong {
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 1;
}

.form-visual span {
  color: rgba(255, 255, 255, 0.78);
}

.final-image-cta {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy-950);
  color: var(--white);
  isolation: isolate;
}

.final-image-cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center 22%;
  filter: saturate(0.8) contrast(1.08);
}

.final-image-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 14, 28, 0.93), rgba(5, 14, 28, 0.36));
}

.final-image-cta div {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.final-image-cta p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.8);
}

.division-hero,
.estate-hero {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(1rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2.2rem, 6vw, 5.5rem) 0;
}

.division-hero h1,
.estate-hero h1 {
  font-size: clamp(2.7rem, 5vw, 5.4rem);
}

.division-hero figure,
.estate-featured {
  position: relative;
  min-height: 540px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.division-hero img {
  width: 100%;
  height: 100%;
}

.division-hero figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  background: rgba(5, 14, 28, 0.78);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

.estate-hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
}

.estate-quick-search {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.7fr) auto;
  gap: 0.7rem;
  align-items: end;
  margin: 1.4rem 0 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(8, 26, 49, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.estate-featured a {
  min-height: 540px;
}

.estate-strategy {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto clamp(1.5rem, 4vw, 3rem);
}

.asset-value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.asset-value-grid strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--navy-900);
  font-size: 1.12rem;
}

.site-footer {
  padding-bottom: 72px;
  background:
    linear-gradient(180deg, #101722 0%, var(--navy-950) 100%);
}

.footer-cta {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-cta h2 {
  max-width: 800px;
  color: var(--white);
}

.footer-brand img {
  display: block;
  width: min(280px, 100%);
  height: auto;
  aspect-ratio: 1000 / 208;
  margin-bottom: 1rem;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  filter: brightness(0) invert(1);
}

.footer-seal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  margin: 1rem 0;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-seal strong {
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
}

.footer-seal span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .main-nav.open {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 122px;
    z-index: 80;
    display: grid;
    gap: 0;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: var(--navy-950);
    box-shadow: 0 28px 80px rgba(5, 14, 28, 0.32);
  }

  .site-header.is-scrolled .main-nav.open {
    top: 96px;
  }

  .main-nav.open a {
    min-height: 52px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
  }

  .main-nav.open a::after {
    display: none;
  }

  .division-showcase,
  .division-hero,
  .estate-hero,
  .case-highlight,
  .split-section,
  .visual-form-section {
    grid-template-columns: 1fr;
  }

  .division-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .editorial-service-grid,
  .project-gallery,
  .featured-work-grid,
  .works-grid,
  .audit-strip,
  .work-status-panel,
  .work-lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-timeline ol,
  .pathology-grid,
  .estate-strategy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 66px;
  }

  body::before {
    background-size: 72px 72px;
  }

  .utility-inner {
    width: 100%;
    padding: 0 1rem;
    overflow: hidden;
    justify-content: space-between;
    white-space: nowrap;
    gap: 0.65rem;
    font-size: 0.72rem;
  }

  .utility-bar {
    overflow: hidden;
  }

  .utility-inner span:first-child {
    margin-right: 0;
  }

  .utility-inner a[href^="mailto"] {
    display: none;
  }

  .header-inner {
    width: calc(100% - 1.5rem);
    min-height: 84px;
  }

  .site-header.is-scrolled .header-inner {
    min-height: 72px;
  }

  .brand img {
    width: 164px;
    max-height: 78px;
  }

  .revision-ribbon {
    display: none;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 4.15rem);
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.65rem);
  }

  .lead {
    font-size: 1.05rem;
  }

  .hero-home,
  .rehab-hero {
    min-height: 680px;
  }

  .hero-home .hero-content,
  .rehab-hero-content {
    width: calc(100% - 1.5rem);
    justify-content: end;
    padding-block: 2.3rem 5.4rem;
  }

  .hero-home .hero-media img,
  .rehab-hero-media img {
    object-position: 58% 14%;
    transform: scale(1.55);
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-proof span {
    min-height: 62px;
    width: 100%;
  }

  .hero-proof span + span {
    margin-left: 0;
    margin-top: -1px;
  }

  .hero-scroll {
    left: 0.75rem;
    bottom: 0.9rem;
  }

  .hero-scroll::after {
    height: 28px;
  }

  .cycle-rail {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .cycle-intro {
    padding: 1.2rem 1rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .cycle-rail ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cycle-rail li {
    min-height: 86px;
  }

  .division-showcase,
  .editorial-service-grid,
  .project-gallery,
  .featured-work-grid,
  .works-grid,
  .audit-strip,
  .work-detail-gallery,
  .work-status-panel,
  .work-lists,
  .role-blocks,
  .process-timeline ol,
  .pathology-grid,
  .asset-value-grid,
  .estate-strategy,
  .footer-cta,
  .estate-quick-search {
    grid-template-columns: 1fr;
  }

  .division-showcase {
    width: calc(100% - 1.5rem);
  }

  .division-showcase article.primary {
    transform: none;
  }

  .division-showcase a,
  .editorial-service:not(.featured) a,
  .estate-featured a {
    min-height: 330px;
  }

  .editorial-service.featured {
    grid-column: auto;
    grid-row: auto;
  }

  .project-gallery .project-card:first-child {
    grid-row: auto;
  }

  .featured-work-card.featured {
    grid-column: auto;
  }

  .project-gallery .project-card:first-child .project-image,
  .project-image {
    min-height: 360px;
  }

  .project-meta dl {
    grid-template-columns: 1fr;
  }

  .work-card-body dl {
    grid-template-columns: 1fr;
  }

  .work-image,
  .featured-work-image,
  .featured-work-card:not(.featured) .featured-work-image,
  .work-detail-gallery img {
    min-height: 320px;
  }

  .case-highlight {
    padding: 2.5rem 0.75rem;
  }

  .case-highlight figure,
  .division-hero figure,
  .estate-featured,
  .form-visual {
    min-height: 380px;
  }

  .before-after,
  .before-after img {
    min-height: 360px;
    height: 360px;
  }

  .method-realpro-layout {
    grid-template-columns: 1fr;
  }

  .method-before-after.compact,
  .method-before-after.compact img {
    min-height: 340px;
    height: 340px;
  }

  .process-timeline li {
    min-height: auto;
  }

  .process-timeline span {
    margin-bottom: 1rem;
  }

  .pathology-grid article,
  .asset-value-grid article,
  .estate-strategy article {
    min-height: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Phase 3 premium refinement. */
.brand img {
  width: clamp(238px, 18vw, 348px);
  max-height: 108px;
}

.site-header.is-scrolled .brand img {
  width: clamp(188px, 12vw, 240px);
  max-height: 82px;
}

.main-nav a.active {
  color: var(--realpro-blue);
}

/* Logo presence refinement. */
.header-inner {
  min-height: 122px;
}

.site-header.is-scrolled .header-inner {
  min-height: 96px;
}

.brand img {
  width: clamp(320px, 26vw, 460px);
  max-height: 118px;
}

.site-header.is-scrolled .brand img {
  width: clamp(260px, 20vw, 360px);
  max-height: 92px;
}

@media (max-width: 1180px) {
  .main-nav.open {
    top: 136px;
  }

  .site-header.is-scrolled .main-nav.open {
    top: 112px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 96px;
  }

  .site-header.is-scrolled .header-inner {
    min-height: 84px;
  }

  .brand img {
    width: 224px;
    max-height: 88px;
  }

  .main-nav.open {
    top: 132px;
  }

  .site-header.is-scrolled .main-nav.open {
    top: 112px;
  }
}

.main-nav a.active::after {
  height: 3px;
}

.editorial-photo {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.editorial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-audiences {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.premium-audiences article {
  min-height: 280px;
  display: grid;
  align-content: end;
  border-top: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 244, 246, 0.94));
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.premium-audiences article:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 87, 163, 0.34);
  box-shadow: 0 24px 68px rgba(8, 26, 49, 0.12);
}

.audience-icon,
.estate-card-icon {
  width: 3rem;
  height: 3rem;
  display: inline-grid;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(11, 87, 163, 0.28);
  border-radius: 50%;
  color: var(--realpro-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.filter-panel-toggle {
  display: none;
  min-height: 48px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(8, 26, 49, 0.16);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy-900);
  font-weight: 900;
}

.filters {
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.7fr) minmax(170px, 0.8fr) minmax(260px, 1fr) auto;
  align-items: end;
}

.advanced-filters {
  min-width: 0;
}

.advanced-filters summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--concrete-100);
  color: var(--navy-900);
  font-weight: 850;
  cursor: pointer;
}

.advanced-filters > div {
  position: absolute;
  z-index: 20;
  display: grid;
  gap: 0.7rem;
  min-width: min(420px, calc(100vw - 2rem));
  margin-top: 0.45rem;
  padding: 0.85rem;
  border: 1px solid rgba(8, 26, 49, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.property-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  justify-content: center;
  gap: 1rem;
}

.property-teasers {
  background: var(--white);
}

.compact-property-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.compact-property-link {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.compact-property-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--concrete-100);
  text-decoration: none;
}

.compact-property-image img {
  width: 100%;
  height: 210px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 180ms ease;
}

.compact-property-link:hover .compact-property-image img {
  transform: scale(1.025);
}

.compact-property-image .badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.compact-property-link > div,
.compact-property-link > .price,
.compact-property-link > .facts,
.compact-property-link > .text-link {
  margin-inline: 1rem;
}

.compact-property-link h3 {
  margin: 0.45rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.2;
}

.compact-property-link .price,
.compact-property-link .facts {
  margin: 0;
}

.compact-property-link > .price {
  margin-inline: 1rem;
  font-size: 1.18rem;
}

.compact-property-link > .facts {
  margin-inline: 1rem;
}

.compact-property-link > .text-link {
  margin-bottom: 1rem;
  align-self: end;
}

@media (min-width: 1680px) {
  .property-results {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) and (max-width: 1679px) {
  .property-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 700px) and (max-width: 1039px) {
  .property-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.property-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.property-image {
  display: block;
  min-height: 230px;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-body {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 0.65rem;
}

.property-body h3,
.property-body .price,
.property-body p {
  margin: 0;
}

.property-highlight {
  color: var(--graphite-700);
  font-size: 0.95rem;
  line-height: 1.45;
}

.card-actions {
  align-self: end;
}

.button-icon {
  min-height: 42px;
  border-radius: 6px;
}

.estate-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: stretch;
}

.estate-hero > div {
  display: grid;
  align-content: center;
  min-width: 0;
}

@media (min-width: 761px) and (max-width: 1080px) {
  .estate-hero { grid-template-columns: minmax(0, 1fr); }
}

.estate-quick-search input,
.estate-quick-search select,
.filters input,
.filters select {
  min-height: 48px;
  font-size: 1rem;
}

.estate-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
}

.estate-actions .button {
  justify-content: center;
}

.estate-featured {
  min-height: 620px;
}

.estate-featured a {
  min-height: 620px;
}

.estate-strategy {
  gap: 1rem;
  background: transparent;
  border: 0;
}

.estate-strategy article {
  min-height: 300px;
  display: grid;
  align-content: end;
  border: 1px solid rgba(8, 26, 49, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 244, 246, 0.92));
  box-shadow: 0 18px 52px rgba(8, 26, 49, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.estate-strategy article:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 76px rgba(8, 26, 49, 0.14);
}

.visual-pathologies {
  gap: 1rem;
  background: transparent;
  border: 0;
}

.visual-pathologies article {
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 26, 49, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 46px rgba(8, 26, 49, 0.08);
}

.visual-pathologies img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.visual-pathologies div {
  padding: 1.1rem;
}

.quality-proof .button {
  width: fit-content;
}

@media (max-width: 1180px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-audiences {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .brand img {
    width: 174px;
    max-height: 82px;
  }

  .filter-panel-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .property-search .filters {
    display: none;
  }

  .property-search .filters.open {
    display: grid;
  }

  .filters,
  .premium-audiences,
  .estate-actions {
    grid-template-columns: 1fr;
  }

  .advanced-filters > div {
    position: static;
    min-width: 0;
  }

  .property-results {
    grid-template-columns: 1fr;
  }

  .estate-hero h1 {
    font-size: clamp(2.28rem, 10.8vw, 3.7rem);
  }

  .estate-hero {
    grid-template-columns: 1fr;
  }

  .estate-featured,
  .estate-featured a {
    min-height: 420px;
  }

  .editorial-photo {
    min-height: 340px;
  }
}

/* Final logo visibility guard. */
.site-header .brand img {
  width: clamp(320px, 26vw, 460px);
  max-height: 118px;
}

.site-header.is-scrolled .brand img {
  width: clamp(260px, 20vw, 360px);
  max-height: 92px;
}

@media (max-width: 760px) {
  .site-header .brand img {
    width: 224px;
    max-height: 88px;
  }
}

/* Phase 4 finishing adjustments. */
:root {
  --mobile-action-height: 58px;
  --mobile-menu-top: 108px;
}

body.menu-open {
  overflow: hidden;
}

.menu-lines span {
  border-radius: 999px;
  transform-origin: center;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

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

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

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

.property-search .filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  align-items: stretch;
}

.primary-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(150px, 0.72fr) minmax(170px, 0.85fr) minmax(108px, auto) minmax(132px, auto);
  gap: 0.75rem;
  align-items: end;
}

.primary-filters label,
.advanced-filter-panel label {
  min-width: 0;
}

@media (min-width: 761px) and (max-width: 1080px) {
  .primary-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.primary-filters .filter-panel-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: auto;
  margin: 0;
  padding-inline: 0.9rem;
}

.active-filter-count {
  min-width: 1.45rem;
  min-height: 1.45rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--realpro-blue);
  color: var(--white);
  font-size: 0.78rem;
  line-height: 1;
}

.advanced-filter-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(8, 26, 49, 0.12);
  border-radius: 8px;
  background: rgba(242, 244, 246, 0.88);
}

.advanced-filter-panel[hidden],
.empty-results[hidden],
.active-filter-count[hidden] {
  display: none !important;
}

.filter-actions {
  display: flex;
  gap: 0.65rem;
  align-items: end;
  justify-content: flex-end;
}

.filter-actions .button {
  min-height: 48px;
}

.empty-results {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(11, 87, 163, 0.18);
  border-radius: 8px;
  background: var(--concrete-100);
  color: var(--navy-900);
  font-weight: 750;
}

@media (max-width: 1180px) {
  .site-header {
    z-index: 120;
  }

  .main-nav.open {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--mobile-menu-top);
    bottom: 0;
    z-index: 110;
    display: grid;
    align-content: start;
    gap: 0.15rem;
    height: calc(100dvh - var(--mobile-menu-top));
    max-height: calc(100dvh - var(--mobile-menu-top));
    padding: 0.8rem 1rem calc(1rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0;
    background: var(--navy-950);
    box-shadow: 0 28px 80px rgba(5, 14, 28, 0.32);
  }

  .site-header.is-scrolled .main-nav.open {
    top: var(--mobile-menu-top);
  }

  .main-nav.open a {
    width: 100%;
    min-height: 52px;
    padding-inline: 0.95rem;
    border-radius: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
  }

  .main-nav.open .mobile-nav-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: var(--realpro-blue);
    color: var(--white);
    font-weight: 900;
  }

  body.menu-open .mobile-action-bar,
  body.dialog-open .mobile-action-bar,
  body.form-modal-open .mobile-action-bar {
    display: none !important;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(var(--mobile-action-height) + env(safe-area-inset-bottom) + 24px);
  }

  h1 {
    font-size: clamp(2.12rem, 10.4vw, 3rem);
    line-height: 1;
  }

  .hero-home h1,
  .rehab-hero h1 {
    font-size: clamp(2.05rem, 10.2vw, 2.82rem);
    line-height: 1.02;
  }

  .hero-home .lead,
  .rehab-hero .lead {
    font-size: 0.96rem;
    line-height: 1.42;
  }

  .hero-home .eyebrow,
  .rehab-hero .eyebrow {
    padding: 0.34rem 0.5rem;
    font-size: 0.72rem;
  }

  .hero-home,
  .rehab-hero {
    min-height: 610px;
  }

  .hero-home .hero-content,
  .rehab-hero-content {
    padding-block: 1.25rem calc(var(--mobile-action-height) + env(safe-area-inset-bottom) + 1.3rem);
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 0.9rem;
  }

  .hero-proof span {
    min-height: 56px;
    min-width: 0;
    padding: 0.52rem 0.38rem;
    font-size: 0.66rem;
    line-height: 1.15;
  }

  .hero-proof span + span {
    margin-top: 0;
    margin-left: -1px;
  }

  .hero-proof strong {
    font-size: 1rem;
  }

  .site-footer {
    padding-bottom: calc(var(--mobile-action-height) + env(safe-area-inset-bottom) + 5rem);
  }

  .cookie-panel {
    inset: auto 0 calc(var(--mobile-action-height) + env(safe-area-inset-bottom)) 0;
  }

  .mobile-action-bar {
    min-height: calc(var(--mobile-action-height) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-action-bar a {
    min-height: var(--mobile-action-height);
  }

  .property-search {
    padding-block: 1.15rem;
  }

  .property-search .section-heading {
    gap: 0.6rem;
    margin-bottom: 0.75rem;
  }

  .property-search .filters {
    display: grid;
    gap: 0.65rem;
    padding: 0.75rem;
  }

  .primary-filters,
  .advanced-filter-panel {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .advanced-filter-panel {
    padding: 0.72rem;
  }

  .filter-search-button,
  .primary-filters .filter-panel-toggle {
    width: 100%;
  }

  .property-search .filters input,
  .property-search .filters select {
    min-height: 44px;
  }

  .filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .view-toggle {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .view-toggle button {
    min-width: 0;
    padding-inline: 0.45rem;
  }

  .compact-property-grid {
    grid-template-columns: 1fr;
  }

  .property-detail,
  .property-detail > *,
  .property-layout,
  .property-layout > *,
  .property-detail-header,
  .cta-band,
  .gallery {
    min-width: 0;
  }

  .property-layout,
  .property-detail-header,
  .cta-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .property-layout aside {
    position: static;
  }

  main {
    padding-bottom: calc(var(--mobile-action-height) + env(safe-area-inset-bottom));
  }

  .division-showcase a,
  .editorial-service a {
    overflow: hidden;
  }
}

/* Final logo visibility override. */
.site-header .header-inner {
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: clamp(1.1rem, 1.7vw, 1.5rem);
}

.site-header .brand {
  width: 138px;
  min-width: 0;
}

.site-header .main-nav {
  justify-content: flex-end;
}

.site-header .mobile-nav-cta {
  display: none;
}

.site-header .brand img {
  width: 100%;
  max-height: 116px;
  object-fit: contain;
}

.site-header.is-scrolled .brand img {
  width: 116px;
  max-height: 96px;
}

@media (max-width: 1080px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-header .brand {
    width: auto;
  }
}

@media (max-width: 760px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-header .brand img {
    width: 116px;
    max-height: 96px;
  }
}

@media (max-width: 1080px) {
  .work-detail-hero,
  .portfolio-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-detail-hero h1 {
    max-width: 14ch;
  }

  .portfolio-cta .actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .portfolio-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-block: 1rem 1.6rem;
  }

  .portfolio-strip article {
    padding: 0.8rem;
  }

  .portfolio-strip article:last-child {
    grid-column: 1 / -1;
  }

  .portfolio-strip strong {
    font-size: 1.62rem;
  }

  .portfolio-strip span {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .work-detail-hero {
    width: calc(100% - 1.5rem);
    margin-top: 1.2rem;
    gap: 1rem;
  }

  .work-detail-hero > div {
    padding-block: 0.8rem 0;
  }

  .work-detail-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .work-wide-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .work-detail-gallery {
    width: calc(100% - 1.5rem);
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .work-detail-gallery img,
  .work-detail-gallery img:nth-child(n) {
    grid-column: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .portfolio-cta {
    width: calc(100% - 1.5rem);
    padding: 1rem;
  }

  .portfolio-cta h2 {
    max-width: 16ch;
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }
}

/* Fase 8: logo oficial horizontal, cabecera estable y footer sin marco improvisado. */
.site-header,
.site-header .header-inner,
.site-header .brand img,
.site-header .main-nav {
  transition: none;
}

.site-header .header-inner {
  grid-template-columns: 270px minmax(0, 1fr) auto;
  gap: clamp(0.8rem, 1.2vw, 1.35rem);
  min-height: 86px;
}

.site-header .brand {
  width: 260px;
  min-width: 0;
}

.site-header .brand img,
.site-header.is-scrolled .brand img {
  width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.site-header .main-nav {
  min-width: 0;
  justify-content: flex-start;
  gap: clamp(0.6rem, 0.9vw, 1.05rem);
}

/* Fase 9: explicit sizing prevents flex content from painting over the brand. */
@media (min-width: 1351px) {
  .site-header .header-inner { width: calc(100% - 3rem); max-width: 1440px; grid-template-columns: 250px minmax(0, 1fr) 174px; gap: 20px; }
  .site-header .brand { width: 250px; }
  .site-header .main-nav { justify-content: space-between; gap: 8px; }
  .site-header .main-nav a { font-size: 14px; padding-inline: 0; }
  .site-header .header-actions .button { padding-inline: 12px; font-size: 14px; }
}

@media (max-width: 1350px) {
  .site-header .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .site-header .menu-toggle { display: inline-flex; justify-self: end; align-items: center; justify-content: center; }
  .site-header .header-actions, .site-header .main-nav { display: none; }
  .site-header .main-nav.open {
    position: fixed; inset: var(--mobile-menu-top) 0 0; z-index: 110;
    display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: stretch; align-content: start;
    width: 100%; height: calc(100dvh - var(--mobile-menu-top)); max-height: calc(100dvh - var(--mobile-menu-top));
    overflow-y: auto; overscroll-behavior: contain; padding: 16px 24px 32px; gap: 4px;
    background: var(--navy-950); border: 0; border-radius: 0;
  }
  .site-header.is-scrolled .main-nav.open { top: var(--mobile-menu-top); }
  .site-header .main-nav.open a { width: 100%; min-height: 48px; color: white; padding: 12px; border-bottom: 1px solid #ffffff26; }
  .site-header .main-nav.open a::after { display: none; }
  .site-header .main-nav.open .mobile-nav-cta { display: flex; justify-content: center; background: var(--realpro-blue); }
  body.menu-open .mobile-action-bar { display: none !important; }
}

.featured-work-card { grid-template-rows: auto 1fr; align-content: start; }
.featured-work-card .featured-work-image,
.featured-work-card:not(.featured) .featured-work-image { height: 320px; min-height: 0; }
.featured-work-card .relation-badge { margin: 0; align-self: start; justify-self: start; min-height: 0; }
.featured-work-card h3 { font-size: 24px; line-height: 1.2; }
.featured-work-image img { display: block; }
.work-detail-hero { align-items: start; }
.work-detail-hero h1 { font-size: 44px; line-height: 1.08; max-width: 22ch; }
.work-detail-hero > div { padding-top: 0; }
.work-wide-image { min-height: 0; height: 520px; object-fit: contain; background: #edf0f2; }
.work-detail-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-detail-gallery figure { margin: 0; min-width: 0; }
.work-detail-gallery figure img:not([alt=""]) { display: block; height: 320px; min-height: 0; object-fit: contain; background: #edf0f2; }
.work-detail-gallery figcaption { font-size: 14px; padding-block: 8px; }
.works-hero { padding-block: 20px 8px; min-height: 0; }
.works-hero h1 { font-size: 48px; }
.works-hero .lead { margin-block: 8px; }
.works-hero + .portfolio-strip { margin-block: 12px 16px; }
.works-hero + .portfolio-strip article { padding: 10px 0; background: none; border: 0; }
.works-hero + .portfolio-strip strong { font-size: 28px; }
.work-featured-section { padding-top: 16px; }
.work-featured-section .section-heading { margin-bottom: 18px; }
.work-featured-section .section-heading p:not(.eyebrow) { display: none; }
.project-card .project-image img { object-fit: contain; }
.project-detail-gallery img { object-fit: contain; height: auto; }

@media (max-width: 760px) {
  .site-header .main-nav.open { padding-inline: 16px; justify-content: stretch; }
  .work-detail-hero h1 { font-size: 32px; line-height: 1.12; max-width: none; }
  .work-detail-hero > div { padding: 0; }
  .work-wide-image { height: auto; max-height: 560px; aspect-ratio: auto; }
  .work-detail-gallery { grid-template-columns: minmax(0, 1fr); }
  .work-detail-gallery figure img:not([alt=""]) { height: 360px; aspect-ratio: auto; }
  .featured-work-card h3 { font-size: 22px; }
  .featured-work-card .featured-work-image, .featured-work-card:not(.featured) .featured-work-image { height: 260px; }
  .works-hero h1 { font-size: 36px; }
  .works-hero > p:last-child { display: none; }
  .works-hero + .portfolio-strip { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-block: 8px; }
  .works-hero + .portfolio-strip article:last-child { grid-column: auto; }
  .works-hero + .portfolio-strip span { font-size: 12px; line-height: 1.25; }
  .work-featured-section .section-heading h2 { font-size: 28px; }
}

.site-header .main-nav a {
  white-space: nowrap;
}

.site-footer {
  background:
    radial-gradient(circle at top left, rgba(28, 84, 255, 0.15), transparent 32rem),
    linear-gradient(180deg, #101722 0%, var(--navy-950) 100%);
}

.footer-brand p,
.site-footer .muted,
.site-footer a,
.site-footer li {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover {
  color: var(--white);
}

@media (max-width: 1180px) {
  .site-header .header-inner {
    grid-template-columns: 230px minmax(0, 1fr) auto;
  }

  .site-header .brand {
    width: 220px;
  }

  .site-header .main-nav {
    gap: 0.5rem;
  }
}

@media (max-width: 1080px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-header .brand {
    width: 236px;
  }
}

@media (max-width: 760px) {
  .site-header .header-inner {
    min-height: 76px;
  }

  .site-header .brand {
    width: min(236px, calc(100vw - 6rem));
  }

  .site-header .brand img,
  .site-header.is-scrolled .brand img {
    width: 100%;
    max-height: 54px;
  }

}

.work-detail-gallery a { display: block; }
.project-filter-status { width: min(var(--max),calc(100% - 2rem)); margin: 12px auto 20px; }
.project-card .project-image { height: auto; min-height: 0; aspect-ratio: 1; }
.project-card .project-image > img { width: 100%; height: 100%; object-fit: contain; }
.project-card .project-overlay { position: static; background: white; color: var(--ink); padding: 12px; }
.project-card .project-image { overflow: visible; aspect-ratio: auto; }
.project-card .project-image > img { height: auto; aspect-ratio: 1; }
.project-gallery .project-card:first-child { grid-column: auto; }
.project-gallery .project-card:first-child .project-image { min-height: 0; }
.project-wide-image { display: block; height: auto; object-fit: contain; margin: 24px auto; }
.photo-dialog { width: min(1100px,calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 16px; border: 0; border-radius: 8px; }
.photo-dialog::backdrop { background: #000b; }
.photo-dialog figure { margin: 0; }
.photo-dialog [data-photo-full] { display: block; width: auto; height: auto; max-width: 100%; max-height: min(72dvh,800px); object-fit: contain; margin-inline: auto; }
.photo-dialog-tools { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.photo-dialog-tools button { width: 44px; height: 44px; border: 1px solid #ccd1d6; background: white; font-size: 26px; cursor: pointer; }
.photo-dialog figcaption { padding-top: 12px; }
.work-street { font-size: 15px; line-height: 1.5; font-weight: 400; color: #626970; margin: 8px 0 16px; }
@media (max-width: 760px) {
  .photo-dialog { padding: 12px; }
  .photo-dialog [data-photo-full] { max-height: calc(100dvh - 180px); }
  .photo-dialog figcaption { font-size: 14px; line-height: 1.4; }
}
body.dialog-open { overflow: hidden; }
.project-card { background: white; color: #19212a; }
.project-card .project-image::after { display: none; }
.project-card .project-overlay h3 { color: #19212a; font-size: 23px; line-height: 1.2; }
.project-card .project-overlay .reference { color: #56616c; }
.project-card .project-overlay .badge { position: static; display: inline-block; margin-bottom: 8px; }
.project-card .project-meta p, .project-card .project-meta dd { color: #36424e; }
.project-card .project-meta dt { color: #56616c; }
.project-card .text-link { color: #124f83; }
.project-card .project-image img, .project-card:hover .project-image img { transform: none; }
.project-card { scroll-margin-top: 140px; }
.project-gallery, .project-grid { width: min(var(--max),calc(100% - 2rem)); margin-inline: auto; grid-template-columns: repeat(3,minmax(0,1fr)); }
.project-gallery .project-card:first-child { grid-row: auto; }
@media (max-width: 1080px) { .project-gallery, .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .project-gallery, .project-grid { grid-template-columns: minmax(0,1fr); } }
.filtered-work-results .featured-work-card { grid-column: auto; grid-row: auto; }
.filtered-work-results:empty { display: none; }
.before-after, .method-before-after.compact { min-height: 0; height: auto; }
.before-after .comparison-images { position: relative; aspect-ratio: 3 / 4; background: #e9edef; }
.before-after .comparison-images > img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.before-after label { position: static; display: block; margin: 0; border-radius: 0; }
.comparison-label { position: absolute; top: 12px; padding: 5px 9px; background: #ffffffed; color: #16202a; font-size: 14px; font-weight: 700; }
.before-label { left: 12px; }
.after-label { right: 12px; }
.text-link::after { content: "\2192"; margin-left: 6px; }
/* Keep logo aspect ratios independent of the surrounding photo selectors. */
.photo-watermarked .photo-watermark-mark img { width: 24%; height: auto; min-height: 0; max-height: 42%; aspect-ratio: auto; object-fit: contain; background: transparent; }
@media (min-width: 1081px) and (max-width: 1350px) {
  .site-header .header-inner { grid-template-columns: minmax(0,1fr) auto; }
}

.google-reviews {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(34px, 5vw, 58px) max(16px, calc((100vw - var(--max)) / 2));
  border-block: 1px solid rgba(8, 26, 49, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 246, 250, 0.94)),
    var(--paper);
}

.google-reviews-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
}

.google-reviews .section-heading {
  margin-bottom: 0;
}

.google-review-summary {
  border: 1px solid rgba(8, 26, 49, 0.14);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(8, 26, 49, 0.08);
}

.google-review-brand {
  margin: 0 0 10px;
  color: #5e5e5e;
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.google-review-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  color: var(--navy-900);
}

.google-review-score strong {
  font-size: clamp(3rem, 5vw, 4.65rem);
  line-height: 0.9;
}

.google-review-score span {
  font-weight: 850;
}

.google-review-count {
  margin: 8px 0 6px;
  color: var(--graphite-900);
  font-weight: 850;
}

.google-review-stars {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 1.08rem;
  letter-spacing: 0;
}

.google-review-note {
  margin: 0 0 16px;
  color: var(--steel-500);
  font-size: 0.92rem;
}

.google-contact-link {
  margin: 16px 0 0;
  font-weight: 850;
}

.google-contact-link a {
  color: var(--realpro-blue);
  text-decoration: none;
}

.google-contact-link a:hover {
  text-decoration: underline;
}

.google-contact-link span {
  color: #5e5e5e;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .google-reviews {
    padding-block: 26px;
  }

  .google-reviews-inner {
    grid-template-columns: 1fr;
  }

  .google-review-summary .button {
    width: 100%;
  }
}

/* Brand integration reset: quiet, editorial masthead without decorative plates. */
.site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(8, 26, 49, 0.1);
  box-shadow: 0 10px 28px rgba(8, 26, 49, 0.06);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(11, 87, 163, 0.5) 20%, rgba(42, 167, 255, 0.22) 44%, transparent 78%);
}

.site-header .header-inner,
.site-header.is-scrolled .header-inner {
  align-items: center;
  grid-template-columns: 292px minmax(0, 1fr) 184px;
  gap: clamp(1rem, 1.45vw, 1.7rem);
  min-height: 86px;
  width: min(1360px, calc(100% - 3rem));
  max-width: 1360px;
}

.site-header .header-inner::before,
.site-header .brand::before,
.site-header .brand::after {
  display: none;
  content: none;
}

.site-header .brand {
  align-self: center;
  width: 276px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.site-header .brand img,
.site-header.is-scrolled .brand img {
  width: 100%;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
  filter: none;
}

.site-header .main-nav {
  align-self: center;
  justify-content: flex-end;
  gap: 0.24rem;
  min-height: 0;
  padding-inline: 0;
}

.site-header .main-nav a {
  min-height: 44px;
  border-radius: 5px;
  padding: 0.58rem 0.64rem;
  color: rgba(23, 27, 34, 0.84);
  font-size: 15px;
  font-weight: 820;
}

.site-header .main-nav a.active,
.site-header .main-nav a:hover {
  background: rgba(11, 87, 163, 0.07);
  color: var(--navy-900);
}

.site-header .main-nav a.active::after {
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 2px;
  background: var(--realpro-blue);
}

.site-header .header-actions {
  align-self: center;
  justify-self: end;
}

.site-header .header-actions .button {
  border-color: rgba(8, 26, 49, 0.92);
  background: var(--navy-950);
  box-shadow: 0 10px 24px rgba(8, 26, 49, 0.16);
}

@media (min-width: 1181px) and (max-width: 1350px) {
  .site-header .header-inner,
  .site-header.is-scrolled .header-inner {
    grid-template-columns: 276px minmax(0, 1fr);
    width: min(100% - 2rem, 1240px);
    gap: 0.95rem;
  }

  .site-header .brand {
    width: 264px;
  }

  .site-header .menu-toggle {
    display: none;
  }

  .site-header .main-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.1rem;
  }

  .site-header .main-nav a {
    min-height: 43px;
    padding-inline: 0.4rem;
    font-size: 13.2px;
  }

  .site-header .header-actions {
    display: none;
  }
}

@media (max-width: 1180px) {
  .site-header .header-inner,
  .site-header.is-scrolled .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 80px;
    width: min(100% - 1.5rem, 1360px);
  }

  .site-header .brand {
    width: min(262px, calc(100vw - 6.25rem));
  }

  .site-header .header-actions,
  .site-header .main-nav {
    display: none;
  }

  .site-header .menu-toggle {
    display: inline-flex;
    justify-self: end;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .site-header .header-inner,
  .site-header.is-scrolled .header-inner {
    min-height: 74px;
    width: min(100% - 1rem, 1360px);
  }

  .site-header .brand {
    width: min(232px, calc(100vw - 5rem));
  }

  .site-header .brand img,
  .site-header.is-scrolled .brand img {
    max-height: 48px;
  }
}

/* Design upgrade pass: stronger hierarchy and a more deliberate premium home. */
:root {
  --premium-shadow: 0 26px 70px rgba(8, 26, 49, 0.14);
  --premium-line: rgba(8, 26, 49, 0.12);
}

.hero-home {
  min-height: clamp(720px, calc(100svh - 86px), 880px);
  background: var(--navy-950);
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 34%, rgba(42, 167, 255, 0.22), transparent 24rem),
    linear-gradient(90deg, rgba(5, 14, 28, 0.2), transparent 58%);
}

.hero-home .hero-media::after {
  background:
    linear-gradient(90deg, rgba(5, 14, 28, 0.96) 0%, rgba(5, 14, 28, 0.82) 34%, rgba(5, 14, 28, 0.38) 67%, rgba(5, 14, 28, 0.2) 100%),
    linear-gradient(0deg, rgba(5, 14, 28, 0.82), rgba(5, 14, 28, 0.08) 60%);
}

.hero-home .hero-media img {
  object-position: 58% 30%;
  transform: scale(1.035);
  filter: saturate(0.95) contrast(1.08);
}

.hero-home .hero-watermark {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -2%;
  width: min(52%, 760px);
  aspect-ratio: 190 / 208;
  overflow: hidden;
  transform: translateY(-50%);
  opacity: 0.025;
  pointer-events: none;
  user-select: none;
}

.hero-home .hero-watermark img {
  display: block;
  /* Crop the official horizontal logo to its symbol, without changing the asset. */
  width: 526.315789%;
  max-width: none;
  height: 100%;
  min-height: 0;
  object-fit: fill;
  background: transparent;
  filter: brightness(0) invert(1);
}

.hero-home .hero-content {
  z-index: 3;
  width: min(1320px, calc(100% - 3rem));
  margin-inline: auto;
  padding-block: clamp(5.2rem, 8vw, 8rem);
}

.hero-home .eyebrow {
  width: fit-content;
  border-left: 3px solid var(--accent-blue);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.hero-home h1 {
  max-width: 820px;
  margin-block: 0.9rem 1rem;
  font-size: clamp(3.6rem, 6.8vw, 7.35rem);
  line-height: 0.9;
  text-wrap: balance;
}

.hero-home .lead {
  max-width: 700px;
  font-size: clamp(1.08rem, 1.35vw, 1.38rem);
}

.hero-home .actions {
  gap: 0.8rem;
  margin-top: clamp(1.2rem, 2.4vw, 1.8rem);
}

.hero-home .actions .button {
  min-height: 52px;
  padding-inline: 1.25rem;
}

.hero-proof {
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 14, 28, 0.32);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.hero-proof span {
  min-width: 0;
  min-height: 88px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  background: transparent;
}

.hero-proof span:first-child {
  border-left: 3px solid var(--accent-blue);
}

.hero-home .hero-proof {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-proof span + span {
  margin-left: 0;
}

.hero-proof strong {
  font-size: clamp(1.75rem, 2.4vw, 2.45rem);
}

@media (min-width: 900px) {
  .division-showcase {
    position: relative;
    z-index: 4;
    width: min(1320px, calc(100% - 3rem));
    margin-top: -3.6rem;
  }
}

.division-showcase {
  gap: clamp(0.9rem, 1.4vw, 1.25rem);
}

.division-showcase article,
.featured-work-card,
.compact-property-link,
.google-review-summary,
.premium-audiences article,
.article-card {
  border-color: rgba(8, 26, 49, 0.1);
  box-shadow: var(--premium-shadow);
}

.division-showcase a {
  min-height: 455px;
}

.division-showcase article.primary {
  transform: translateY(-1.45rem);
}

.division-showcase div {
  padding: clamp(1.3rem, 2.4vw, 2rem);
}

.division-showcase h2,
.editorial-service h3,
.featured-work-card h3,
.compact-property-link h3 {
  text-wrap: balance;
}

.section,
.split-section,
.process-timeline {
  padding-block: clamp(4.4rem, 7vw, 7.2rem);
}

.section-heading {
  max-width: 920px;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-heading h2,
.editorial-intro h2,
.process-timeline h2 {
  margin-block: 0.25rem;
  color: var(--navy-900);
  font-size: clamp(2.15rem, 4.2vw, 4.45rem);
  line-height: 0.98;
  text-wrap: balance;
}

.section-heading p:not(.eyebrow),
.editorial-intro p,
.process-timeline .section-heading p {
  max-width: 720px;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
}

.home-stats {
  width: min(1320px, calc(100% - 3rem));
  margin-top: clamp(2rem, 5vw, 4rem);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background: var(--premium-line);
  box-shadow: var(--premium-shadow);
}

.home-stats article {
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 253, 0.98)),
    var(--white);
}

.home-stats strong {
  color: var(--realpro-blue);
}

.google-reviews {
  padding-block: clamp(4rem, 7vw, 6.8rem);
  background:
    radial-gradient(circle at top left, rgba(42, 167, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #eef3f8 100%);
}

.google-review-summary {
  border-radius: 8px;
}

.editorial-intro {
  width: min(1320px, calc(100% - 3rem));
  gap: clamp(2rem, 4.5vw, 5.2rem);
}

.editorial-intro > div:first-child {
  padding: clamp(1rem, 2vw, 1.4rem) 0;
}

.check-list {
  display: grid;
  gap: 0.8rem;
  padding-left: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 0;
  padding: 0.95rem 1rem 0.95rem 2.4rem;
  border: 1px solid rgba(8, 26, 49, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 40px rgba(8, 26, 49, 0.06);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.23rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 99px;
  background: var(--realpro-blue);
}

.method-before-after.compact,
.method-before-after.compact img {
  min-height: 470px;
  height: 470px;
}

.method-before-after {
  border: 1px solid rgba(8, 26, 49, 0.12);
  box-shadow: var(--premium-shadow);
}

.service-editorial-section,
.property-teasers {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - var(--max)) / 2));
}

.service-editorial-section {
  background:
    linear-gradient(180deg, #f8fbfd 0%, #ffffff 36%, #eef3f8 100%);
}

.service-editorial-section .section-heading,
.property-teasers .section-heading {
  width: min(var(--max), 100%);
}

.editorial-service-grid,
.featured-work-grid,
.compact-property-grid {
  gap: clamp(1rem, 1.5vw, 1.35rem);
}

.editorial-service,
.featured-work-card,
.compact-property-link {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.editorial-service:hover,
.featured-work-card:hover,
.compact-property-link:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 87, 163, 0.22);
  box-shadow: 0 32px 90px rgba(8, 26, 49, 0.16);
}

.works-preview {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(180deg, #ffffff 0%, #f2f6fa 100%);
}

.works-preview .section-heading,
.works-preview .featured-work-grid,
.works-preview .section-actions {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.featured-work-card {
  border-radius: 8px;
}

.featured-work-image,
.featured-work-card:not(.featured) .featured-work-image {
  min-height: 340px;
}

.featured-work-card.featured .featured-work-image {
  min-height: 430px;
}

.dark-projects {
  background:
    radial-gradient(circle at top left, rgba(42, 167, 255, 0.16), transparent 32rem),
    linear-gradient(135deg, #06101d 0%, #081a31 55%, #0a2b55 100%);
}

.premium-audiences {
  gap: clamp(1rem, 1.5vw, 1.35rem);
}

.premium-audiences article {
  min-height: 270px;
  border-top: 0;
  border-left: 4px solid var(--realpro-blue);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.98)),
    var(--white);
}

.property-teasers {
  background:
    linear-gradient(180deg, #ffffff 0%, #eef3f8 100%);
}

.compact-property-grid {
  width: min(var(--max), 100%);
}

.compact-property-link {
  grid-template-rows: auto auto auto auto 1fr;
  border-radius: 8px;
}

.compact-property-image img {
  height: clamp(230px, 18vw, 300px);
}

.compact-property-link > div,
.compact-property-link > .price,
.compact-property-link > .facts,
.compact-property-link > .text-link {
  margin-inline: 1.15rem;
}

.compact-property-link > div {
  margin-top: 0.25rem;
}

.compact-property-link h3 {
  font-size: clamp(1.1rem, 1.35vw, 1.35rem);
}

.compact-property-link > .price {
  color: var(--navy-900);
  font-size: clamp(1.28rem, 1.6vw, 1.55rem);
}

.compact-property-link > .text-link {
  margin-top: 0.15rem;
  margin-bottom: 1.15rem;
}

.home-process {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(180deg, #f3f7fb 0%, #ffffff 100%);
}

.home-process .section-heading,
.home-process ol {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.process-timeline ol {
  border-top: 0;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background: var(--premium-line);
  box-shadow: var(--premium-shadow);
}

.process-timeline li,
.process-timeline li:first-child {
  min-height: 280px;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
}

.process-timeline span {
  width: fit-content;
  margin-bottom: 3rem;
  padding: 0.36rem 0.52rem;
  border-radius: 4px;
  background: rgba(11, 87, 163, 0.09);
}

.article-grid .article-card {
  border-radius: 8px;
}

.cta-band {
  width: min(1320px, calc(100% - 3rem));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--premium-shadow);
}

@media (min-width: 1351px) {
  .site-header .header-inner,
  .site-header.is-scrolled .header-inner {
    grid-template-columns: 238px minmax(0, 1fr) 164px;
    gap: 16px;
  }

  .site-header .brand {
    width: 230px;
  }

  .site-header .main-nav {
    justify-content: flex-start;
    gap: 0.12rem;
  }

  .site-header .main-nav a {
    padding-inline: 0.5rem;
    font-size: 15px;
  }

  .site-header .header-actions .button {
    padding-inline: 0.72rem;
    font-size: 14.5px;
    white-space: nowrap;
  }
}

@media (max-width: 1180px) {
  .hero-home {
    min-height: 690px;
  }

  .hero-home .hero-watermark {
    right: -8%;
    width: min(60%, 650px);
  }

  .hero-home h1 {
    font-size: clamp(3rem, 9vw, 5.6rem);
  }

  .division-showcase article.primary {
    transform: none;
  }

  .featured-work-card.featured {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .hero-home {
    min-height: 640px;
  }

  .hero-home .hero-watermark {
    top: 10%;
    right: -28%;
    width: min(120%, 560px);
    transform: none;
    opacity: 0.02;
  }

  .hero-home .hero-content,
  .editorial-intro,
  .home-stats,
  .cta-band {
    width: min(100% - 1.25rem, 1320px);
  }

  .hero-home .hero-content {
    padding-block: 6rem 3rem;
  }

  .hero-home h1 {
    font-size: 2.5rem;
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-home .hero-scroll {
    display: none;
  }

  .hero-home .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-home .hero-proof span {
    min-height: 80px;
    padding: 0.65rem 0.5rem;
    border-top: 0;
    font-size: 0.6875rem;
    line-height: 1.35;
  }

  .hero-home .hero-proof strong {
    font-size: 1.75rem;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof span {
    min-height: 72px;
    border-left: 3px solid var(--accent-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }

  .hero-proof span:first-child {
    border-top: 0;
  }

  .division-showcase,
  .featured-work-grid,
  .compact-property-grid {
    width: min(100% - 1.25rem, var(--max));
  }

  .division-showcase a,
  .editorial-service:not(.featured) a {
    min-height: 360px;
  }

  .section,
  .split-section,
  .process-timeline {
    padding-block: 3.2rem;
  }

  .section-heading h2,
  .editorial-intro h2,
  .process-timeline h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .method-before-after.compact,
  .method-before-after.compact img {
    min-height: 360px;
    height: 360px;
  }

  .featured-work-image,
  .featured-work-card:not(.featured) .featured-work-image,
  .featured-work-card.featured .featured-work-image {
    min-height: 280px;
  }

  .compact-property-image img {
    height: 250px;
  }

  .process-timeline ol {
    grid-template-columns: 1fr;
  }

  .process-timeline li {
    min-height: 0;
  }
}

.article-detail > section {
  margin-block: 2.25rem;
}

.article-detail p {
  line-height: 1.65;
}

@media (max-width: 380px) {
  .hero-home h1 {
    font-size: 2.125rem;
  }
}

@media (max-width: 760px) {
  .article-detail h2 {
    font-size: 1.625rem;
    line-height: 1.2;
  }
}

.company-team {
  padding-top: 0;
  padding-bottom: 48px;
}

.company-team .section-heading {
  margin-bottom: 28px;
}

.company-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.company-team-member {
  min-width: 0;
  margin: 0;
}

.company-team-portrait {
  overflow: hidden;
  border-radius: 4px;
  background: #e3e6eb;
  aspect-ratio: 4 / 5;
}

.company-team-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.company-team-member figcaption {
  padding-block: 18px;
  border-bottom: 1px solid var(--premium-line);
}

.company-team-member h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
}

.company-team-member p {
  margin: 0;
  color: var(--blue-700);
  font-size: 15px;
  line-height: 1.4;
}

.company-history {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 280px);
  justify-content: space-between;
  align-items: start;
  gap: 64px;
}

.company-history-copy,
.company-history-timeline {
  min-width: 0;
}

.company-history-copy h2 {
  margin-bottom: 28px;
  font-size: 34px;
  line-height: 1.2;
}

.company-history-copy > p:not(.eyebrow):not(.company-history-closing) {
  margin-block: 0 22px;
  font-size: 17px;
  line-height: 1.75;
}

.company-history-copy .company-history-closing {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--premium-line);
  color: var(--blue-900);
  font-size: 22px;
  line-height: 1.4;
}

.company-history-timeline {
  border-left: 1px solid var(--premium-line);
  padding-left: 28px;
}

.company-history-timeline h2 {
  margin-bottom: 28px;
  font-size: 20px;
  line-height: 1.3;
}

.company-history-timeline ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.company-history-timeline li + li {
  margin-top: 28px;
}

.company-history-year {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-700);
  font-size: 32px;
  line-height: 1.1;
}

.company-history-timeline h3 {
  font-size: 17px;
}

.company-history-timeline p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .company-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .company-team-member h3 {
    font-size: 19px;
  }

  .company-team-member p {
    font-size: 14px;
  }

  .company-history {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .company-history-copy h2 {
    font-size: 28px;
  }

  .company-history-copy > p:not(.eyebrow):not(.company-history-closing) {
    font-size: 16px;
    line-height: 1.7;
  }

  .company-history-timeline {
    padding-left: 0;
    padding-top: 28px;
    border-left: 0;
    border-top: 1px solid var(--premium-line);
  }

  .company-history-timeline ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .company-history-timeline li + li {
    margin-top: 0;
  }
}
