/* Elevate Home Solutions V7 preview
   Direction: premium contractor, architectural, image-led, concise.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --font-display: "Inter Tight", "Manrope", system-ui, sans-serif;
  --font-editorial: "Inter Tight", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --v7-ink: #171917;
  --v7-ink-soft: #242724;
  --v7-paper: #f4f2ed;
  --v7-warm: #e9e5dd;
  --v7-white: #fbfaf7;
  --v7-sage: #6f8876;
  --v7-sage-light: #aebdaf;
  --v7-line: rgba(23, 25, 23, .14);
  --v7-radius: 24px;
}

body {
  font-family: var(--font-body);
  background: var(--v7-paper);
}

h1, h2, h3, h4,
.gradient-text,
.v6-disappear h2 {
  font-family: var(--font-display) !important;
  font-style: normal !important;
}

h1, h2 {
  letter-spacing: -.055em;
}

h1 {
  font-weight: 550;
}

h2 {
  font-weight: 540;
}

h3 {
  letter-spacing: -.035em;
}

.gradient-text {
  color: inherit;
  font-weight: 520;
  letter-spacing: -.055em;
}

.hero .gradient-text {
  color: rgba(247, 245, 239, .78);
}

.page-hero .gradient-text,
.page-header .gradient-text {
  color: #b9c8bb;
}

.market-card::before,
.step__num,
.approach-item__num {
  font-family: var(--font-display) !important;
  font-style: normal !important;
  font-weight: 500 !important;
  letter-spacing: -.035em !important;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .145em;
}

.lead {
  max-width: 62ch;
}

.section {
  padding-block: clamp(5.5rem, 5vw + 3rem, 10rem);
}

.section-head {
  max-width: 780px;
}

.section-head h2 {
  max-width: 14ch;
}

.site-header.scrolled {
  background: rgba(247, 245, 239, .9);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.hero h1 {
  max-width: 11.5ch;
  font-weight: 520;
}

.page-hero h1,
.page-header h1 {
  font-weight: 520;
}

.v6-disappear__copy h2 {
  font-weight: 520;
  letter-spacing: -.055em;
  max-width: 10ch;
}

.v6-disappear__copy > p {
  max-width: 38ch;
}

.v6-disappear__step strong {
  font-family: var(--font-display);
  font-weight: 520;
  letter-spacing: -.025em;
}

.v6-disappear__caption,
.loxone-credit {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.v7-credit-inline {
  margin-left: .65rem;
  opacity: .62;
}

.loxone-credit {
  display: block;
  color: #7a7e77;
  margin-top: .72rem;
}

.page-services .page-hero {
  padding-bottom: clamp(5rem, 8vw, 8rem);
}

.page-services .page-hero h1 {
  max-width: 12ch;
}

.service-showcase {
  display: grid;
  gap: clamp(5.5rem, 9vw, 10rem);
}

.service-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: clamp(2.2rem, 5vw, 6.5rem);
  align-items: center;
}

.service-feature:nth-child(even) {
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
}

.service-feature:nth-child(even) .service-feature__media {
  order: 2;
}

.service-feature__media {
  min-width: 0;
}

.service-feature__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.32 / 1;
  border-radius: var(--v7-radius);
  background: #d9d6cf;
}

.service-feature__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(13, 15, 13, .14));
  pointer-events: none;
}

.service-feature__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 1.1s cubic-bezier(.22, 1, .36, 1);
}

.service-feature:hover .service-feature__frame img {
  transform: scale(1.045);
}

.service-feature__body {
  max-width: 490px;
}

.service-feature__index {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.4rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--v7-sage);
}

.service-feature__index::after {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.service-feature h2 {
  font-size: clamp(2.2rem, 1.7rem + 2.1vw, 4rem);
  margin-bottom: 1.05rem;
}

.service-feature p {
  font-size: clamp(1rem, .95rem + .2vw, 1.12rem);
  line-height: 1.68;
  max-width: 44ch;
}

.service-feature__capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem 1rem;
  padding-top: 1.35rem;
  margin-top: 1.35rem;
  border-top: 1px solid var(--v7-line);
  color: #646861;
  font-size: .77rem;
  font-weight: 650;
  letter-spacing: .02em;
}

.service-feature__capabilities span:not(:last-child)::after {
  content: "·";
  margin-left: 1rem;
  color: #a2a59f;
}

.services-foundation {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  min-height: 540px;
  border-radius: 28px;
  overflow: hidden;
  background: #1a1c1a;
}

.services-foundation__media {
  min-height: 480px;
  overflow: hidden;
}

.services-foundation__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-foundation__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 4vw, 5rem);
}

.services-foundation__body .eyebrow {
  color: var(--v7-sage-light);
}

.services-foundation__body h2 {
  color: #f7f5ef;
  max-width: 10ch;
  margin-bottom: 1.25rem;
}

.services-foundation__body p {
  color: #bfc2bb;
  max-width: 42ch;
}

.services-foundation__body .loxone-credit {
  color: #858b84;
}

.page-about .page-hero h1 {
  max-width: 12ch;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--v7-line);
}

.leadership-card {
  position: relative;
  padding: clamp(2rem, 3vw, 3.2rem) clamp(1.5rem, 2.4vw, 2.5rem) clamp(2.5rem, 4vw, 4rem) 0;
  min-height: 390px;
  border-bottom: 1px solid var(--v7-line);
}

.leadership-card:not(:last-child) {
  border-right: 1px solid var(--v7-line);
  margin-right: clamp(1.5rem, 2.4vw, 2.5rem);
}

.leadership-card__num {
  display: block;
  margin-bottom: clamp(3.5rem, 6vw, 6rem);
  color: #979b94;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.leadership-card__role {
  display: block;
  color: var(--v7-sage);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}

.leadership-card h3 {
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.6rem);
  margin-bottom: 1rem;
}

.leadership-card p {
  color: #60645d;
  line-height: 1.68;
}

.about-principle {
  max-width: 900px;
}

.about-principle h2 {
  max-width: 13ch;
}

.page-about .team-grid,
.page-about .team-card__media,
.page-about .team-card__img {
  display: none !important;
}

.page-services .card,
.page-about .team-card {
  border-radius: 0;
}

.js-motion .service-feature__media,
.js-motion .services-foundation__media {
  clip-path: inset(0 0 100% 0 round var(--v7-radius));
  opacity: .8;
  transition: clip-path 1.05s cubic-bezier(.22, 1, .36, 1), opacity .7s ease;
}

.js-motion .service-feature__media.is-media-visible,
.js-motion .services-foundation__media.is-media-visible {
  clip-path: inset(0 0 0 0 round var(--v7-radius));
  opacity: 1;
}

@media (max-width: 900px) {
  .service-feature,
  .service-feature:nth-child(even),
  .services-foundation {
    grid-template-columns: 1fr;
  }

  .service-feature:nth-child(even) .service-feature__media {
    order: initial;
  }

  .service-feature__body {
    max-width: 650px;
  }

  .service-showcase {
    gap: 5.5rem;
  }

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

  .leadership-card,
  .leadership-card:not(:last-child) {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
    min-height: auto;
  }

  .leadership-card__num {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 640px) {
  .service-feature__frame {
    aspect-ratio: 1 / .82;
    border-radius: 18px;
  }

  .service-feature__capabilities {
    display: block;
  }

  .service-feature__capabilities span {
    display: block;
    margin-bottom: .35rem;
  }

  .service-feature__capabilities span::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-feature__frame img {
    transition: none;
    transform: none;
  }

  .js-motion .service-feature__media,
  .js-motion .services-foundation__media {
    clip-path: none;
    opacity: 1;
    transition: none;
  }
}
