/* Valunxt UK: Valuation and Research & Investment Intelligence pages.
   These pages take the Real Estate Advisory layout (body.page-rea in bf.css).
   Loaded after type.css. Two additions only:

     1. Abstract film (.bf-film--reel): the advisory page's device frame and
        controls, but the screen plays an animated abstract (vx-abstract.js,
        WebGL) with this page's own scenes over it instead of a video.
        Scenes are switched by bf-reel.js; everything here is sized from the
        screen (container units), so the same scenes fit the MacBook, iPad
        and iPhone frames and full screen.
     2. A four-card row for the "When it helps" cards (.bf-guide__cards--4).
     4. The hero on these pages and on Real Estate Advisory (body.page-rea):
        the same height, spacing and text width as the sub-service pages
        (rm-dubai.css, .rm-hero--ribbon). The swirl video and its shade are
        unchanged.

   Under prefers-reduced-motion nothing moves: the first scene is shown and
   the play button starts the film. */

/* ---------- 1. Abstract film ---------- */
.bf-film--reel .bf-dev__screen { background: #0027b2; }
.bf-reel { position: absolute; inset: 0; overflow: hidden; container-type: size; color: #fff; cursor: pointer; -webkit-user-select: none; user-select: none; }
.bf-reel .vx-abstract { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: strict; background: linear-gradient(104deg, #00135a 0%, #0027b2 34%, #0033e6 62%, #0038ff 100%); }
.bf-reel .vx-abstract[data-variant="arcs"] { background: radial-gradient(120% 150% at 17% -55%, #0060e8 0 62%, rgba(0, 128, 255, .95) 71.6%, #7ff 71.8% 72%, rgba(10, 42, 255, .9) 72.4%, rgba(0, 72, 226, 0) 80%), #0019c8; }
.bf-reel .vx-abstract__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; }
.bf-reel .vx-abstract.is-ready .vx-abstract__canvas { opacity: 1; }
.bf-reel .vx-abstract.is-static .vx-abstract__canvas { display: none; }

/* a soft shade on the left keeps the copy readable over the moving light */
.bf-reel__ui { position: absolute; inset: 0; z-index: 1; }
.bf-reel__ui::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 10, 66, .5) 0%, rgba(0, 10, 66, .22) 46%, rgba(0, 10, 66, 0) 72%), linear-gradient(180deg, rgba(0, 10, 66, .28) 0%, rgba(0, 10, 66, 0) 22%, rgba(0, 10, 66, 0) 78%, rgba(0, 10, 66, .3) 100%); pointer-events: none; }

.bf-reel__top { position: absolute; z-index: 2; left: 6.5cqw; right: 6.5cqw; top: 7.5cqh; display: flex; align-items: center; justify-content: space-between; gap: 4cqw; }
.bf-reel__logo { display: block; width: auto; height: 6.4cqh; }
.bf-reel__top span { font-size: 3.3cqh; letter-spacing: -.005em; color: rgba(255, 255, 255, .82); white-space: nowrap; }

.bf-reel__scene { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 5cqw; padding: 12cqh 6.5cqw 10cqh; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s linear .55s; }
.bf-reel__scene.is-on { opacity: 1; visibility: visible; transition: opacity .7s ease .15s, visibility 0s; }
.bf-reel__copy { flex: 1 1 auto; min-width: 0; max-width: 92cqh; }
.bf-reel__kick { display: flex; align-items: center; gap: 2.4cqh; margin: 0 0 3.4cqh; font-size: 3.3cqh; line-height: 1.3; color: rgba(255, 255, 255, .84); }
.bf-reel__kick i { flex: none; display: block; width: 8.5cqh; height: 1px; background: currentColor; transform-origin: 0 50%; }
.bf-reel__title { margin: 0; font-size: 8.6cqh; font-weight: 300; line-height: 1.08; letter-spacing: -.025em; color: #fff; }
.bf-reel__scene--title .bf-reel__title { font-size: 10.6cqh; max-width: 13ch; }
.bf-reel__sub { max-width: 34em; margin: 3.4cqh 0 0; font-size: 3.7cqh; line-height: 1.45; color: rgba(255, 255, 255, .84); }

/* the glass card on the right of each numbered scene */
.bf-reel__art { position: relative; flex: none; height: 62cqh; aspect-ratio: .84; }
.bf-reel__orbit { position: absolute; left: 50%; top: 50%; width: 92cqh; height: 92cqh; margin: -46cqh 0 0 -46cqh; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; pointer-events: none; }
.bf-reel__orbit::before { content: ""; position: absolute; inset: 12cqh; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; }
.bf-reel__orbit::after { content: ""; position: absolute; left: 50%; top: -.9cqh; width: 1.8cqh; height: 1.8cqh; margin-left: -.9cqh; border-radius: 50%; background: #8fd3ff; box-shadow: 0 0 2.4cqh 1cqh rgba(143, 211, 255, .55); }
.bf-reel__card { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 6cqh 5.4cqh 5.6cqh; border: 1px solid rgba(255, 255, 255, .3); border-radius: 2.6cqh; background: linear-gradient(155deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .06) 60%, rgba(255, 255, 255, .1) 100%); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 5cqh 10cqh -4cqh rgba(0, 8, 70, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.bf-reel__ico { display: grid; place-items: center; width: 15cqh; height: 15cqh; border-radius: 50%; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.bf-reel__ico svg { width: 7.4cqh; height: 7.4cqh; stroke-width: 1.4; }
.bf-reel__num { display: block; font-size: 17cqh; font-weight: 200; line-height: .9; letter-spacing: -.04em; color: #fff; }
.bf-reel__lines { display: grid; gap: 1.8cqh; }
.bf-reel__lines i { display: block; height: .9cqh; border-radius: 1cqh; background: rgba(255, 255, 255, .38); transform-origin: 0 50%; }
.bf-reel__lines i:nth-child(1) { width: 86%; }
.bf-reel__lines i:nth-child(2) { width: 66%; }
.bf-reel__lines i:nth-child(3) { width: 44%; background: #8fd3ff; }

/* the closing scene: the stages in a row */
.bf-reel__scene--steps { flex-direction: column; align-items: stretch; justify-content: center; gap: 0; padding-top: 21cqh; padding-bottom: 13cqh; }
.bf-reel__scene--steps .bf-reel__copy { max-width: none; }
.bf-reel__scene--steps .bf-reel__title { font-size: 7cqh; }
.bf-reel__scene--steps .bf-reel__sub { margin-top: 2.2cqh; font-size: 3.4cqh; }
.bf-reel__steps { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 1.8cqh; margin: 4.4cqh 0 0; padding: 4.4cqh 0 0; border-top: 1px solid rgba(255, 255, 255, .22); list-style: none; }
.bf-reel__steps li { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 1.2cqh; min-height: 25cqh; padding: 3cqh 2.8cqh; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); }
.bf-reel__steps li::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: linear-gradient(160deg, #3a63ff 0%, #1d46e8 60%, #1238d0 100%); opacity: 0; }
.bf-reel__steps .n { font-size: 3cqh; color: rgba(255, 255, 255, .8); }
.bf-reel__steps .ic { display: grid; place-items: center; width: 7.6cqh; height: 7.6cqh; margin-top: .6cqh; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0b2dbe; }
.bf-reel__steps .ic svg { width: 4cqh; height: 4cqh; }
.bf-reel__steps b { margin-top: auto; font-size: 3.8cqh; font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }
.bf-reel__steps small { font-size: 2.8cqh; line-height: 1.3; color: rgba(255, 255, 255, .74); }

.bf-reel__dots { position: absolute; z-index: 2; left: 6.5cqw; bottom: 7cqh; display: flex; gap: 1.2cqh; }
.bf-reel__dots i { display: block; width: 5.4cqh; height: .55cqh; background: rgba(255, 255, 255, .3); transition: background-color .4s ease; }
.bf-reel__dots i.is-on { background: #fff; }

/* full screen: the screen alone fills the display */
.bf-film--reel .bf-dev__screen:fullscreen { border-radius: 0; }
.bf-film--reel .bf-dev__screen:-webkit-full-screen { width: 100%; height: 100%; border-radius: 0; }

/* motion (only where motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
    .bf-reel__scene.is-on .bf-reel__kick i { animation: reel-line .9s cubic-bezier(.16, 1, .3, 1) .25s both; }
    .bf-reel__scene.is-on .bf-reel__kick span { animation: reel-rise .8s cubic-bezier(.16, 1, .3, 1) .3s both; }
    .bf-reel__scene.is-on .bf-reel__title { animation: reel-rise 1s cubic-bezier(.16, 1, .3, 1) .38s both; }
    .bf-reel__scene.is-on .bf-reel__sub { animation: reel-rise 1s cubic-bezier(.16, 1, .3, 1) .56s both; }
    .bf-reel__scene.is-on .bf-reel__art { animation: reel-in 1.2s cubic-bezier(.16, 1, .3, 1) .3s both; }
    .bf-reel__scene.is-on .bf-reel__card { animation: reel-float 6s ease-in-out 1.4s infinite; }
    .bf-reel__scene.is-on .bf-reel__orbit { animation: reel-spin 18s linear infinite; }
    .bf-reel__scene.is-on .bf-reel__lines i { animation: reel-line 1.1s cubic-bezier(.16, 1, .3, 1) both; }
    .bf-reel__scene.is-on .bf-reel__lines i:nth-child(1) { animation-delay: .8s; }
    .bf-reel__scene.is-on .bf-reel__lines i:nth-child(2) { animation-delay: .95s; }
    .bf-reel__scene.is-on .bf-reel__lines i:nth-child(3) { animation-delay: 1.1s; }
    .bf-reel__scene.is-on .bf-reel__steps { animation: reel-rule 1s cubic-bezier(.16, 1, .3, 1) .4s both; }
    .bf-reel__scene.is-on .bf-reel__steps li { animation: reel-rise .8s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.7s + var(--i, 0) * .75s); }
    .bf-reel__scene.is-on .bf-reel__steps li::before { animation: reel-hi .75s linear both; animation-delay: calc(.7s + var(--i, 0) * .75s); }
    .bf-reel__scene.is-on .bf-reel__steps li:last-child::before { animation-name: reel-hi-last; }
    .bf-film--reel:not(.is-playing) .bf-reel * { animation-play-state: paused !important; }
}
@media (prefers-reduced-motion: reduce) {
    .bf-reel__scene, .bf-reel__scene.is-on, .bf-reel__dots i { transition: none; }
    .bf-reel__steps li:last-child::before { opacity: 1; }
}
@keyframes reel-rise { from { opacity: 0; transform: translateY(4.5cqh); } to { opacity: 1; transform: none; } }
@keyframes reel-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes reel-in { from { opacity: 0; transform: translateX(8cqh) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes reel-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.2cqh); } }
@keyframes reel-spin { to { transform: rotate(360deg); } }
@keyframes reel-rule { from { border-top-color: rgba(255, 255, 255, 0); } to { border-top-color: rgba(255, 255, 255, .22); } }
@keyframes reel-hi { 0% { opacity: 0; } 12%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes reel-hi-last { 0% { opacity: 0; } 12%, 100% { opacity: 1; } }

/* ---------- 2. Four cards in a row ---------- */
.bf-guide__cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-rea .bf-guide__cards--4 { gap: clamp(14px, 1.6vw, 24px); }
.page-rea .bf-guide__cards--4 a { aspect-ratio: 4 / 4.6; }
@media (max-width: 1099px) {
    .bf-guide__cards--4, .page-rea .bf-guide__cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-rea .bf-guide__cards--4 a { aspect-ratio: 16 / 12; }
}
@media (max-width: 559px) {
    .bf-guide__cards--4, .page-rea .bf-guide__cards--4 { grid-template-columns: 1fr; }
    .page-rea .bf-guide__cards--4 a { aspect-ratio: 4 / 3; }
}

/* ---------- 3. Valuation enquiry: two cards of equal height ----------
   The side is a card like the form card beside it (same border, top rule and
   padding), so the two tops line up and both end on the same line: the
   photograph at the foot of the side takes up whatever height is left. */
.page-valuation #enquiry .rm-contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 48px); align-items: stretch; }
.page-valuation #enquiry .rm-contact__side { display: flex; flex-direction: column; padding: clamp(24px, 3.2vw, 48px); border: 1px solid var(--line, #e2e6ef); border-top: 2px solid var(--brand, #0b2dbe); background: #fff; }
.page-valuation #enquiry .rm-contact__side .rm-label { margin-bottom: 14px; }
.page-valuation #enquiry .rm-contact__side .rm-h2 { margin-bottom: 16px; font-size: clamp(28px, 2.5vw, 38px); }
.page-valuation #enquiry .rm-contact__side > p { font-size: 16px; line-height: 1.6; color: #3b4259; }
.page-valuation #enquiry .enq-note { margin-top: 20px; padding: 14px 18px; border-left: 2px solid var(--brand, #0b2dbe); background: #f3f6fd; }
.page-valuation #enquiry .enq-note p { margin: 0; font-size: 15px; line-height: 1.55; color: #3b4259; }
.page-valuation #enquiry .enq-steps { margin: 22px 0 0; padding: 0; border-top: 1px solid #e2e6ef; list-style: none; }
.page-valuation #enquiry .enq-steps li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid #e2e6ef; font-size: 15.5px; line-height: 1.45; color: var(--navy, #061a4b); }
.page-valuation #enquiry .enq-steps span { flex: none; font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--brand, #0b2dbe); }
.page-valuation #enquiry .rm-contact__side > p.enq-mail { margin-top: 18px; font-size: 15px; }
.page-valuation #enquiry .enq-mail a { color: var(--brand, #0b2dbe); text-decoration: underline; text-underline-offset: 3px; }
.page-valuation #enquiry .enq-media { position: relative; flex: 1 1 auto; min-height: 180px; margin: 24px 0 0; overflow: hidden; background: var(--mist, #eef2fb); }
.page-valuation #enquiry .enq-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.page-valuation #enquiry .ctc-field--wide { grid-column: 1 / -1; }
@media (max-width: 1099px) {
    .page-valuation #enquiry .rm-contact { grid-template-columns: minmax(0, 1fr); }
    .page-valuation #enquiry .enq-media { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
    .page-valuation #enquiry .ctc-field--wide { grid-column: auto; }
}

/* ---------- 4. Hero: the sub-service pages' height and spacing ----------
   Same values as .rm-hero--ribbon in rm-dubai.css: a wide text column (the line
   under the heading and the paragraph up to 880px) and moderate
   gaps, so the hero is about 590px tall on a 1440px-wide window. Only the
   spacing and widths change; the swirl video and its shade stay as they are. */
.page-rea .rm-hero { min-height: 0; }
.page-rea .rm-hero .rm-hero__in { padding-top: clamp(124px, 10.6vw, 152px); padding-bottom: clamp(56px, 6.2vw, 90px); }
.page-rea .rm-hero .rm-crumbs { margin-bottom: 20px; }
.page-rea .rm-hero .rm-hero__eyebrow { margin-bottom: 16px; }
/* the heading may run wider here (1240px) so the longest one, on Research & Investment
   Intelligence, still fits on one line and the three heroes match in height */
.page-rea .rm-hero:not(.rm-hero--tall) .rm-hero__title { max-width: min(100%, 1240px); }
.page-rea .rm-hero .rm-hero__sub { max-width: min(100%, 880px); margin-top: 16px; }
.page-rea .rm-hero .rm-hero__lead { max-width: min(100%, 880px); margin-top: 22px; }
.page-rea .rm-hero .rm-hero__actions { margin-top: 40px; }
@media (max-width: 767px) {
    .page-rea .rm-hero .rm-hero__in { padding-top: 116px; padding-bottom: 54px; }
    .page-rea .rm-hero .rm-crumbs { margin-bottom: 18px; }
    .page-rea .rm-hero .rm-hero__actions { margin-top: 32px; }
}
