/* Light-touch editorial media pass: preserves the original layout and brand system. */
.mdl-motion-story {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 10rem) 1.5rem;
  background: #1a1a18;
  color: #f9f7f4;
}
.mdl-motion-story__frame { max-width: 1536px; margin: 0 auto; }
.mdl-motion-story__head { display: grid; grid-template-columns: minmax(180px, .65fr) 1.35fr; gap: 3rem; align-items: end; margin-bottom: clamp(3rem, 7vw, 7rem); }
.mdl-motion-story__eyebrow { margin: 0; color: #b8a48a; font: 500 .68rem/1.3 "DM Sans", sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.mdl-motion-story h2 { max-width: 900px; margin: 0; font: 300 clamp(3rem, 6.3vw, 6.8rem)/.92 "Cormorant Garamond", serif; letter-spacing: -.035em; }
.mdl-motion-story h2 em { color: #b8a48a; font-weight: 300; }
.mdl-motion-story__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1rem, 2.5vw, 2.5rem); align-items: start; }
.mdl-motion-card { position: relative; overflow: hidden; background: #252522; }
.mdl-motion-card:first-child { aspect-ratio: 16 / 10; }
.mdl-motion-card:last-child { aspect-ratio: 4 / 5; margin-top: clamp(3rem, 9vw, 9rem); }
.mdl-motion-card video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform 1.4s cubic-bezier(.16,1,.3,1), filter .5s; }
.mdl-motion-card:hover video { transform: scale(1.045); }
.mdl-motion-card::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; pointer-events: none; background: linear-gradient(transparent, rgba(10,10,9,.58)); }
.mdl-motion-card__caption { position: absolute; z-index: 2; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.mdl-motion-card__caption span { font: 500 .64rem/1.4 "DM Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; }

/* Crisper image rendering and a quieter, more tactile hover. */
.img-hover-zoom { background: #dedad2; }
.img-hover-zoom img { transform: scale(1.002); filter: saturate(.94) contrast(1.015); }
.img-hover-zoom:hover img { transform: scale(1.035); filter: saturate(1) contrast(1.02); }

/* New full-resolution sources on the existing portfolio cards. */
.elementor-317 .elementor-element.elementor-element-c01fb2e:not(.elementor-motion-effects-element-type-background) { background-image: url("./Markou%20Projects/Fitted%20Wardrobes,%20Bedroom/Fitted%20Wardrobe,%20Bedroom,%20Arnos%20Grove,London.jpg") !important; }
.elementor-317 .elementor-element.elementor-element-7eb0d79:not(.elementor-motion-effects-element-type-background) { background-image: url("./Markou%20Projects/Wall%20Furniture%20in%20Chelsea%20Creek%20London/Wall%20furniture%20in%20Chelsea%20London%202.jpg") !important; }
.elementor-317 .elementor-element.elementor-element-56ae23a:not(.elementor-motion-effects-element-type-background) { background-image: url("./Markou%20Projects/Bathroom%20Vanity%20Units/Vanity%20Unit,%20Bathroom%202.png") !important; }
.elementor-317 .elementor-element.elementor-element-3835e78:not(.elementor-motion-effects-element-type-background) { background-image: url("./Markou%20Projects/Wall%20Panelling/WhatsApp%20Image%202026-04-30%20at%2014.28.30.jpeg") !important; }
.elementor-317 :is(.elementor-element-c01fb2e,.elementor-element-7eb0d79,.elementor-element-56ae23a,.elementor-element-3835e78) { transition: background-size 1.2s cubic-bezier(.16,1,.3,1), filter .5s; background-size: 100.5% auto !important; }
.elementor-317 :is(.elementor-element-e939915,.elementor-element-3626788,.elementor-element-d389e15,.elementor-element-efe38dc):hover :is(.elementor-element-c01fb2e,.elementor-element-7eb0d79,.elementor-element-56ae23a,.elementor-element-3835e78) { background-size: 104% auto !important; }

@media (max-width: 767px) {
  .mdl-motion-story { padding-inline: 1rem; }
  .mdl-motion-story__head { grid-template-columns: 1fr; gap: 1.25rem; }
  .mdl-motion-story__grid { grid-template-columns: 1fr; }
  .mdl-motion-card:first-child { aspect-ratio: 4 / 5; }
  .mdl-motion-card:last-child { aspect-ratio: 4 / 5; width: 82%; margin: 1rem 0 0 auto; }
  .elementor-317 :is(.elementor-element-c01fb2e,.elementor-element-7eb0d79,.elementor-element-56ae23a,.elementor-element-3835e78) { background-size: cover !important; }
}

@media (prefers-reduced-motion: reduce) {
  .mdl-motion-card video { transform: none !important; transition: none; }
}


/* Hero film triptych */
.mdl-hero-films { display: grid; grid-template-columns: 1.04fr .88fr 1.08fr; gap: 2px; background: #171714; }
.mdl-hero-film { position: relative; min-width: 0; height: 100%; margin: 0; overflow: hidden; background: #252522; }
.mdl-hero-film video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: saturate(.86) contrast(1.035); transform: scale(1.025); animation: mdl-film-breathe 16s ease-in-out infinite alternate; }
.mdl-hero-film:nth-child(2) video { object-position: 48% 50%; animation-delay: -5s; }
.mdl-hero-film:nth-child(3) video { object-position: 55% 50%; animation-delay: -9s; }
.mdl-hero-film figcaption { position: absolute; z-index: 2; left: 1rem; bottom: 1rem; margin: 0; color: rgba(249,247,244,.72); font: 500 .58rem/1.3 "DM Sans", sans-serif; letter-spacing: .15em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.mdl-hero-film::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.055); }
@keyframes mdl-film-breathe { to { transform: scale(1.075); } }

@media (max-width: 767px) {
  .mdl-hero-films { display: block; }
  .mdl-hero-film { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.4s cubic-bezier(.16,1,.3,1), visibility 1.4s; }
  .mdl-hero-film.is-active { opacity: 1; visibility: visible; }
  .mdl-hero-film video { object-position: center; transform: scale(1.025); animation: none; }
  .mdl-hero-film:nth-child(2) video { object-position: 50% center; }
  .mdl-hero-film:nth-child(3) video { object-position: 52% center; }
  .mdl-hero-film figcaption { left: auto; right: 1rem; bottom: 1.2rem; max-width: 48%; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .mdl-hero-film video { animation: none; transform: none; }
}


/* Mobile film copy refinement */
@media (max-width: 767px) {
  #hero-slider ~ .relative.z-20 h1 {
    max-width: 22rem;
    color: #f9f7f4;
    font-size: clamp(2.8rem, 12.4vw, 3.45rem);
    line-height: 1.02;
    letter-spacing: -.025em;
    text-wrap: balance;
    text-shadow: 0 3px 24px rgba(0,0,0,.82), 0 1px 5px rgba(0,0,0,.9);
  }
  #hero-slider ~ .relative.z-20 h1 span { margin-top: .18em; color: #c7b398; }
  #hero-slider ~ .relative.z-20 p { max-width: 19rem; font-size: 1rem; line-height: 1.48; }
}


/* Three-frame hero compositions */
.mdl-hero-frame { display: grid; grid-template-columns: 1.03fr .9fr 1.07fr; gap: 2px; width: 100%; height: 100%; background: #171714; }
.mdl-hero-frame--reverse { grid-template-columns: .88fr 1.18fr .94fr; }
.mdl-hero-frame--third { grid-template-columns: 1.12fr .82fr 1.06fr; }
.mdl-hero-panel { position: relative; min-width: 0; height: 100%; margin: 0; overflow: hidden; background: #22221f; }
.mdl-hero-panel :is(img, video) { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.88) contrast(1.025); transform: scale(1.015); transition: transform 7s linear, filter 1s; }
.hero-slide.active .mdl-hero-panel :is(img, video) { transform: scale(1.065); }
.mdl-hero-panel:nth-child(2) :is(img, video) { object-position: 52% center; }
.mdl-hero-panel figcaption { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; margin: 0; color: rgba(249,247,244,.7); font: 500 .57rem/1.3 "DM Sans",sans-serif; letter-spacing: .14em; text-align: right; text-transform: uppercase; text-shadow: 0 2px 10px #000; }
.mdl-hero-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }

/* Ensure portfolio imagery survives Elementor lazy-background states. */
.elementor-317 .elementor-element.elementor-element-c01fb2e,
.elementor-317 .elementor-element.elementor-element-c01fb2e > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-image: url("./Markou%20Projects/Fitted%20Wardrobes,%20Bedroom/Fitted%20Wardrobe,%20Bedroom,%20Arnos%20Grove,London.jpg") !important; background-position: center !important; background-size: cover !important; }
.elementor-317 .elementor-element.elementor-element-7eb0d79,
.elementor-317 .elementor-element.elementor-element-7eb0d79 > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-image: url("./Markou%20Projects/Wall%20Furniture%20in%20Chelsea%20Creek%20London/Wall%20furniture%20in%20Chelsea%20London%202.jpg") !important; background-position: center !important; background-size: cover !important; }
.elementor-317 .elementor-element.elementor-element-56ae23a,
.elementor-317 .elementor-element.elementor-element-56ae23a > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-image: url("./Markou%20Projects/Bathroom%20Vanity%20Units/Vanity%20Unit,%20Bathroom%202.png") !important; background-position: center !important; background-size: cover !important; }
.elementor-317 .elementor-element.elementor-element-3835e78,
.elementor-317 .elementor-element.elementor-element-3835e78 > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-image: url("./Markou%20Projects/Wall%20Panelling/WhatsApp%20Image%202026-04-30%20at%2014.28.30.jpeg") !important; background-position: center !important; background-size: cover !important; }
.elementor-317 :is(.elementor-element-c01fb2e,.elementor-element-7eb0d79,.elementor-element-56ae23a,.elementor-element-3835e78) { opacity: 1 !important; visibility: visible !important; }

@media (max-width: 767px) {
  .mdl-hero-frame, .mdl-hero-frame--reverse, .mdl-hero-frame--third { display: block; }
  .mdl-hero-panel { display: none; position: absolute; inset: 0; }
  .mdl-hero-panel.is-mobile-featured { display: block; }
  .mdl-hero-panel :is(img, video), .hero-slide.active .mdl-hero-panel :is(img, video) { transform: scale(1.025); transition: transform 8s linear; }
  .hero-slide.active .mdl-hero-panel.is-mobile-featured :is(img, video) { transform: scale(1.075); }
}


/* Preserve the warm brand tone while meeting WCAG contrast on light surfaces. */
main > section:not(:first-child):not(.mdl-reviews-host) .text-brand-accent {
  color: #765f46;
}

/* Keep below-the-fold layout out of the critical rendering path. */
main > section:nth-child(n+3) {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}


/* Mobile-only first-slide fallback when its film misses the loader deadline. */
.mdl-hero-timeout-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 767px) {
  .hero-slide.uses-image-fallback .mdl-hero-timeout-fallback {
    opacity: 1;
    visibility: visible;
    transform: scale(1.025);
    animation: mdl-fallback-drift 8s linear forwards;
  }
  .hero-slide.uses-image-fallback .mdl-hero-panel.is-mobile-featured video {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes mdl-fallback-drift {
  to { transform: scale(1.075); }
}
