:root {
  --charcoal: #1b1c1f;
  --silver: #c9caca;
  --white: #ffffff;
  --titanium: #7f7f7f;
  --plum: #4b3b58;
  --grey: #f6f6f6;
  --line: rgba(27, 28, 31, 0.16);
  --line-dark: rgba(255, 255, 255, 0.2);
  --shadow: 0 24px 70px rgba(27, 28, 31, 0.14);
  --title: "Montserrat", "Aptos Display", "Segoe UI", Arial, sans-serif;
  --body: "Open Sans", "Aptos", "Segoe UI", Arial, sans-serif;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--grey);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.72;
}

body.nav-open {
  overflow: hidden;
}

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

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

p {
  margin: 0 0 1.2rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
  border-bottom: 1px solid transparent;
  color: var(--white);
}

.site-header.is-scrolled,
.site-header.header-light {
  background: rgba(246, 246, 246, 0.94);
  border-color: var(--line);
  color: var(--charcoal);
  backdrop-filter: blur(18px);
}

.site-header.header-dark {
  background: rgba(27, 28, 31, 0.92);
  border-color: var(--line-dark);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(100% - 40px, 1360px);
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 214px;
  min-width: 180px;
}

.brand img {
  width: 100%;
  height: auto;
}

.logo-dark {
  display: none;
}

.site-header.is-scrolled .logo-light,
.site-header.header-light .logo-light {
  display: none;
}

.site-header.is-scrolled .logo-dark,
.site-header.header-light .logo-dark {
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  font-family: var(--title);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 19px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

body.nav-open .nav-toggle span {
  background: transparent;
}

body.nav-open .nav-toggle span::before {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span::after {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(27, 28, 31, 0.86), rgba(27, 28, 31, 0.42) 56%, rgba(27, 28, 31, 0.18)),
    linear-gradient(0deg, rgba(27, 28, 31, 0.62), rgba(27, 28, 31, 0.04) 48%);
}

.home-hero::before {
  background-position: center 42%;
}

.home-hero::after {
  background:
    linear-gradient(90deg, rgba(27, 28, 31, 0.72), rgba(27, 28, 31, 0.28) 56%, rgba(27, 28, 31, 0.08)),
    linear-gradient(0deg, rgba(27, 28, 31, 0.5), rgba(27, 28, 31, 0.02) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 160px 0 92px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--title);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}

.eyebrow.dark {
  color: var(--plum);
}

.hero h1,
.page-hero h1 {
  max-width: 940px;
  margin: 0;
  font-family: var(--title);
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 0.94;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .lead,
.page-hero .lead {
  max-width: 680px;
  margin-top: 30px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: var(--title);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button.primary {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.button.primary:hover {
  background: var(--silver);
  border-color: var(--silver);
}

.button.dark {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.button.dark:hover {
  background: var(--plum);
  border-color: var(--plum);
}

.button.ghost:hover {
  background: currentColor;
}

.button.ghost:hover span {
  color: var(--charcoal);
}

.section {
  padding: 104px 0;
}

.section.compact {
  padding: 76px 0;
}

.section.dark {
  background: var(--charcoal);
  color: var(--white);
}

.section.light {
  background: var(--white);
}

.section.grey {
  background: var(--grey);
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 52px;
}

.section-heading h2,
.split-copy h2,
.text-panel h2,
.contact-panel h2,
.contact-panel h1 {
  margin: 0 0 22px;
  font-family: var(--title);
  font-size: clamp(2.15rem, 4.4vw, 4.4rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading p,
.split-copy p,
.text-panel p {
  max-width: 790px;
  color: rgba(27, 28, 31, 0.72);
}

.dark .section-heading p,
.dark .split-copy p,
.dark .text-panel p {
  color: rgba(255, 255, 255, 0.75);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: start;
}

.rule-title {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--title);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
}

.large-copy {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.62;
  color: rgba(27, 28, 31, 0.86);
}

.about-copy p {
  color: rgba(27, 28, 31, 0.86);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

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

.stat {
  min-height: 154px;
  padding: 28px;
  background: var(--white);
}

.home-stats .stat {
  display: flex;
  min-height: 174px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--title);
  font-size: clamp(2.1rem, 4vw, 4.25rem);
  line-height: 0.9;
  font-weight: 600;
  color: var(--charcoal);
}

.stat span {
  display: block;
  margin-top: 18px;
  font-family: var(--title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--titanium);
}

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--cta-image);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.cta-band .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 88px 0;
}

.cta-band h2 {
  margin: 0 0 16px;
  max-width: 820px;
  font-family: var(--title);
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 0.98;
  font-weight: 600;
  text-transform: uppercase;
}

.cta-band p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
}

.page-hero {
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  position: relative;
  color: var(--white);
  background: var(--charcoal);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.58;
  transform: scale(1.02);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(27, 28, 31, 0.86), rgba(27, 28, 31, 0.5) 58%, rgba(27, 28, 31, 0.18)),
    linear-gradient(0deg, rgba(27, 28, 31, 0.64), rgba(27, 28, 31, 0.06));
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding: 160px 0 82px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-item {
  min-height: 282px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--white);
}

.service-item h3,
.market-item h3,
.project-info h3 {
  margin: 0 0 16px;
  font-family: var(--title);
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.1;
  font-weight: 600;
  text-transform: uppercase;
}

.service-item p,
.market-item p,
.project-info p {
  color: rgba(27, 28, 31, 0.72);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.image-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--charcoal);
}

.image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

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

.image-tile span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: var(--white);
  font-family: var(--title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.image-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(27, 28, 31, 0.62), rgba(27, 28, 31, 0));
}

.image-tile span {
  z-index: 2;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.check-item {
  min-height: 112px;
  padding: 24px;
  background: var(--grey);
  font-family: var(--title);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.visual-band {
  min-height: 520px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--charcoal);
}

.visual-band figure {
  margin: 0;
  min-height: 520px;
  position: relative;
}

.visual-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04);
}

.visual-band figcaption {
  position: absolute;
  left: 28px;
  bottom: 24px;
  color: var(--white);
  font-family: var(--title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.visual-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(27, 28, 31, 0.22), rgba(27, 28, 31, 0.04), rgba(27, 28, 31, 0.34));
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.market-item {
  min-height: 230px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.055);
}

.market-item h3 {
  font-size: 1rem;
}

.market-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.advisory-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.advisory-stat {
  min-height: 210px;
  padding: 34px 28px;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.advisory-stat:last-child {
  border-right: 0;
}

.stat-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 30px;
  color: var(--plum);
}

.stat-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.35;
  fill: none;
}

.advisory-stat strong {
  display: block;
  font-family: var(--title);
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 0.95;
  font-weight: 600;
}

.advisory-stat span {
  display: block;
  margin-top: 16px;
  font-family: var(--title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--titanium);
}

.project-list {
  display: grid;
  gap: 42px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  min-height: 440px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.project-media {
  min-height: 440px;
  overflow: hidden;
  background: var(--charcoal);
}

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

.project-info {
  padding: clamp(32px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  margin: 26px 0 22px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-meta span {
  display: block;
  font-family: var(--title);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--titanium);
}

.project-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.disclaimer {
  margin-top: 26px;
  color: rgba(27, 28, 31, 0.56);
  font-size: 0.88rem;
  font-style: italic;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}

.contact-detail {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-detail span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--titanium);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-family: var(--title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--titanium);
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(27, 28, 31, 0.28);
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
  color: var(--charcoal);
  font: inherit;
}

.field textarea {
  min-height: 154px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--plum);
}

.form-status {
  min-height: 26px;
  margin: 0;
  color: var(--plum);
  font-size: 0.92rem;
}

.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 58px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr) auto;
  gap: 42px;
  align-items: start;
}

.footer-logo img {
  width: 220px;
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  font-family: var(--title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-meta {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

@media (max-width: 1040px) {
  .main-nav {
    gap: 16px;
    font-size: 0.68rem;
  }

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

  .advisory-stats,
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 860px) {
  .nav-wrap {
    min-height: 76px;
    position: relative;
    z-index: 80;
  }

  .brand {
    width: 186px;
  }

  .nav-toggle {
    display: inline-flex;
    z-index: 90;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    min-height: 100svh;
    height: 100dvh;
    padding: 112px 24px 56px;
    overflow-y: auto;
    background: var(--charcoal);
    color: var(--white);
    font-size: 0.92rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  body.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  body.nav-open .site-header {
    inset: 0;
    min-height: 100svh;
    height: 100dvh;
    z-index: 1000;
    color: var(--white);
    background: var(--charcoal);
    border-color: transparent;
    backdrop-filter: none;
    overflow: hidden;
  }

  body.nav-open .site-header .logo-dark {
    display: none;
  }

  body.nav-open .site-header .logo-light {
    display: block;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.1rem, 10.5vw, 3.7rem);
  }

  .hero-content,
  .page-hero .container {
    padding-bottom: 64px;
  }

  .section {
    padding: 78px 0;
  }

  .two-column,
  .contact-layout,
  .cta-band .container {
    grid-template-columns: 1fr;
  }

  .service-list,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .visual-band {
    grid-template-columns: 1fr;
  }

  .visual-band figure,
  .visual-band {
    min-height: 360px;
  }

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

  .project-media {
    min-height: 320px;
  }

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

@media (max-width: 580px) {
  .nav-wrap,
  .container,
  .hero-content {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: 92svh;
  }

  .hero::after,
  .page-hero::after {
    background:
      linear-gradient(90deg, rgba(27, 28, 31, 0.9), rgba(27, 28, 31, 0.58)),
      linear-gradient(0deg, rgba(27, 28, 31, 0.64), rgba(27, 28, 31, 0.08));
  }

  .brand {
    width: 164px;
    min-width: 164px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(1.9rem, 11.9vw, 2.95rem);
    overflow-wrap: break-word;
  }

  .section-heading h2,
  .split-copy h2,
  .text-panel h2,
  .contact-panel h2,
  .contact-panel h1 {
    font-size: clamp(2rem, 12vw, 3.4rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  button.button {
    width: 100%;
  }

  .stats-strip,
  .advisory-stats,
  .image-grid,
  .market-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .contact-form {
    padding: 24px;
  }
}
