/* =========================================================
   Elevate Home Solutions | V6 Preview
   Luxe editorial refinement layered on V4/V5.
   ========================================================= */

:root {
  --v6-ink: #151814;
  --v6-paper: #f4f1ea;
  --v6-paper-2: #e9e5dc;
  --v6-sage: #859488;
  --v6-sage-deep: #56675b;
  --v6-line: rgba(21, 24, 20, .14);
  --v6-white: #fbfaf6;
  --v6-radius-lg: 32px;
  --v6-radius-md: 22px;
}

body {
  background: var(--v6-paper);
}

/* Global type cleanup */
body, p, li, a, button, input, textarea, select {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

.lead {
  max-width: 60ch;
}

/* Remove the V4 serif treatment from highlighted headlines. */
.gradient-text {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-style: normal !important;
  font-weight: 500 !important;
  letter-spacing: -.055em !important;
}

.hero .gradient-text {
  font-weight: 430 !important;
  color: rgba(247,245,239,.9) !important;
}

.page-hero .gradient-text,
.page-header .gradient-text {
  color: #aabaae !important;
}

/* More decisive section rhythm */
.section {
  padding-block: clamp(5rem, 7vw, 8.5rem);
}

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

.section-head .lead {
  max-width: 54ch;
}

/* Cleaner cards throughout */
.card,
.market-card,
.package,
.contact-card,
.team-card,
.commercial-note {
  border-color: var(--v6-line);
}

/* Header polish */
.site-header.scrolled {
  background: rgba(246,243,236,.82) !important;
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
}

/* Hero */
.hero h1 {
  max-width: 11.8ch;
}

.hero .lead {
  max-width: 54ch;
  font-size: clamp(1rem, .96rem + .25vw, 1.16rem);
}

.hero__stats {
  opacity: .9;
}

/* Home intro: more editorial and less explanatory */
.page-home .split__body > p + p {
  display: none;
}

.page-home .split__body .lead {
  max-width: 47ch;
}

/* =========================================================
   V6 signature: Designed to Disappear
   ========================================================= */
.media-story.v6-disappear {
  position: relative;
  background: #171a17;
  color: var(--v6-white);
  padding-block: 0;
  overflow: clip;
}

.v6-disappear__wrap {
  min-height: 300vh;
  position: relative;
}

.v6-disappear__sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
}

.v6-disappear__copy {
  padding: clamp(7rem, 9vw, 10rem) clamp(1.5rem, 5vw, 6rem) clamp(4rem, 6vw, 7rem) max(var(--pad-x), calc((100vw - var(--container)) / 2 + var(--pad-x)));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.v6-disappear__copy .eyebrow {
  color: #9eb0a2;
  margin-bottom: 1.35rem;
}

.v6-disappear__copy h2 {
  color: #f8f6ef;
  font-size: clamp(3rem, 5.8vw, 6.9rem);
  line-height: .95;
  letter-spacing: -.065em;
  max-width: 8.6ch;
  margin-bottom: 1.7rem;
}

.v6-disappear__copy > p {
  color: rgba(248,246,239,.68);
  max-width: 34ch;
  font-size: clamp(1rem, 1vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 3.2rem;
}

.v6-disappear__steps {
  display: grid;
  gap: .15rem;
  max-width: 460px;
}

.v6-disappear__step {
  border-top: 1px solid rgba(255,255,255,.13);
  padding: 1rem 0 1.05rem;
  opacity: .34;
  transition: opacity .45s cubic-bezier(.22,1,.36,1), transform .45s cubic-bezier(.22,1,.36,1);
}

.v6-disappear__step.is-active {
  opacity: 1;
  transform: translateX(8px);
}

.v6-disappear__step small {
  display: block;
  color: #9fb0a3;
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}

.v6-disappear__step strong {
  color: #f8f6ef;
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

.v6-disappear__media {
  min-height: 100svh;
  position: relative;
  background: #0f110f;
  overflow: hidden;
}

.v6-disappear__frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity .75s cubic-bezier(.22,1,.36,1), transform 1.25s cubic-bezier(.22,1,.36,1);
}

.v6-disappear__frame.is-active {
  opacity: 1;
  transform: scale(1);
}

.v6-disappear__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,17,15,.16), transparent 38%), linear-gradient(0deg, rgba(8,10,8,.32), transparent 35%);
  pointer-events: none;
}

.v6-disappear__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v6-disappear__caption {
  position: absolute;
  left: clamp(1.3rem, 3vw, 3rem);
  bottom: clamp(1.3rem, 3vw, 3rem);
  z-index: 3;
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.v6-disappear__credit {
  position: absolute;
  right: clamp(1.3rem, 3vw, 3rem);
  bottom: clamp(1.3rem, 3vw, 3rem);
  z-index: 3;
  color: rgba(255,255,255,.48);
  font-size: .68rem;
  letter-spacing: .08em;
}

/* Markets feel more confident with less UI decoration */
.page-home .markets-grid {
  grid-template-columns: repeat(3, 1fr);
}

.page-home .market-card {
  min-height: 335px;
  padding: 2rem 1.65rem 1.65rem;
}

.page-home .market-card__tag {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  letter-spacing: .13em;
  font-size: .66rem;
}

.page-home .market-card p:not(.market-card__meta) {
  max-width: 34ch;
}

/* Service copy: restrained line lengths */
.page-home .services-grid > .card:not(.featured) p {
  max-width: 32ch;
}

/* Steps: more editorial */
.page-home .steps .step p {
  max-width: 32ch;
}

/* Footer copy should not read like another About section */
.site-footer .footer-brand p {
  max-width: 42ch;
}

/* Motion refinements */
.js-motion .reveal {
  transition-duration: .78s;
  transition-timing-function: cubic-bezier(.22,1,.36,1);
}

.js-motion .split__media img,
.js-motion .featured__media img {
  transition: transform 1.1s cubic-bezier(.22,1,.36,1);
}

@media (max-width: 900px) {
  .v6-disappear__wrap { min-height: auto; }
  .v6-disappear__sticky {
    position: relative;
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .v6-disappear__copy {
    padding: 7rem var(--pad-x) 3rem;
  }
  .v6-disappear__copy h2 { max-width: 10ch; }
  .v6-disappear__steps { display: none; }
  .v6-disappear__media {
    min-height: auto;
    display: grid;
    gap: .75rem;
    padding: 0 var(--pad-x) 5rem;
    background: #171a17;
  }
  .v6-disappear__frame {
    position: relative;
    opacity: 1;
    transform: none;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
  }
  .v6-disappear__frame:nth-child(n+3) { display: none; }
  .v6-disappear__caption,
  .v6-disappear__credit { position: static; }
  .v6-disappear__caption { padding-top: .7rem; }
  .v6-disappear__credit { padding-bottom: 1rem; }
  .page-home .markets-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero h1 { max-width: 11ch; }
  .hero__stats { display: none; }
  .section { padding-block: 4.5rem; }
  .v6-disappear__copy { padding-top: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .v6-disappear__wrap { min-height: auto; }
  .v6-disappear__sticky { position: relative; min-height: auto; grid-template-columns: 1fr; }
  .v6-disappear__steps { display: none; }
  .v6-disappear__media { min-height: auto; display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; padding: 0 var(--pad-x) 4rem; }
  .v6-disappear__frame { position: relative; opacity: 1; transform: none; aspect-ratio: 4/3; }
}
