/* =====================================================================
   Mazda UAE - home page facelift
   Loaded by Views/HomePage.cshtml (and the HomeFacelift alt template).
   The page's sections are scoped under .hf. The shared header, footer,
   side icons and callback popup are styled for every page by
   css/site-chrome.css.
   ===================================================================== */

/* ---------- Arabic type: IBM Plex Sans Arabic ----------
   MazdaType has no Arabic letters, so Arabic text used to fall back to whatever the
   visitor's system had. These faces join the "MazdaType" family for the Arabic code
   points only (unicode-range), so everything set in MazdaType on this page shows Plex
   for Arabic and keeps MazdaType for Latin letters and digits.
   Same weights as MazdaType (400 / 500 / 700). Only downloaded when Arabic text is shown. */
@font-face {
    font-family: "MazdaType";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/ibmplexsansarabic/v15/Qw3CZRtWPQCuHme67tEYUIx3Kh0PHR9N6Ys43PWrfQ.woff2) format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: "MazdaType";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/ibmplexsansarabic/v15/Qw3NZRtWPQCuHme67tEYUIx3Kh0PHR9N6YPO_-CRXMR5Kw.woff2) format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: "MazdaType";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/ibmplexsansarabic/v15/Qw3NZRtWPQCuHme67tEYUIx3Kh0PHR9N6YOG-eCRXMR5Kw.woff2) format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ---------- tokens ---------- */
html.hf-page {
    --hf-ink: #0b0b0c;
    --hf-ink-2: #141416;
    --hf-ink-3: #1c1c1f;
    --hf-paper: #f4f4f2;
    --hf-tile: #ececea;
    --hf-accent: #911921;
    --hf-accent-hi: #c8202b;
    --hf-ease: cubic-bezier(.2, .7, .2, 1);
    --hf-ease-out: cubic-bezier(.16, 1, .3, 1);
    --hf-gutter: clamp(16px, 4vw, 48px);
    --hf-max: 1320px;
}

.hf {
    --hf-text: #101010;
    --hf-muted: #5f5f5f;
    --hf-line: #d6d6d6;
    --hf-gap: clamp(12px, 1.4vw, 22px);
    --hf-track: .1em;
    --hf-font: "MazdaType", "Mazda Type", Helvetica, Arial, sans-serif;
    font-family: var(--hf-font);
    color: var(--hf-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

/* Arabic: "MazdaType" now includes IBM Plex Sans Arabic for Arabic letters (see the top of this file);
   the system faces are only a fallback while it loads or if it is blocked. */
.hf.hf--rtl {
    --hf-track: 0;
    --hf-font: "MazdaType", "IBM Plex Sans Arabic", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
}

/* ---------- local reset (master.css styles bare elements) ---------- */
.hf *, .hf *::before, .hf *::after { box-sizing: border-box; }
.hf h1, .hf h2, .hf h3, .hf p, .hf ul, .hf li, .hf figure { margin: 0; padding: 0; color: inherit; }
.hf ul { list-style: none; }
.hf a { color: inherit; text-decoration: none; font-size: inherit; font-weight: inherit; }
.hf img, .hf video { display: block; max-width: 100%; }
.hf button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.hf a, .hf h1, .hf h2 { font-family: var(--hf-font) !important; }
.hf a:focus-visible, .hf button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.hf .hf-sr {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- container: 85% of the screen on desktop ---------- */
.hf .hf-container {
    width: 100%;
    max-width: calc(var(--hf-max) + 2 * var(--hf-gutter));
    margin-inline: auto;
    padding-inline: var(--hf-gutter);
}
@media (min-width: 1200px) {
    .hf .hf-container { width: 85%; max-width: none; padding-inline: 0; }
}

/* ---------- type ---------- */
.hf .hf-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--hf-muted);
    margin-bottom: 18px;
}
.hf .hf-head--center .hf-eyebrow { justify-content: center; }
.hf .hf-eyebrow--light { color: rgba(255, 255, 255, .66); }
.hf .hf-title {
    font-size: clamp(28px, 3.4vw, 56px) !important; /* the site sets "h2 { font-size: 1rem !important }" below 960px */
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: var(--hf-track);
    text-transform: uppercase;
}
.hf .hf-lead {
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.65;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--hf-muted);
    margin-top: 18px;
    max-width: 60ch;
}
.hf .hf-head { margin-bottom: clamp(32px, 4vw, 56px); text-align: start; }
/* The site centres bare headings (one rule is "h2 { text-align: center !important }", from a form block); let each section header decide */
.hf .hf-title, .hf .hf-lead, .hf .hf-spot__name, .hf .hf-closing__title { text-align: inherit !important; }
.hf .hf-head--center { text-align: center; }
.hf .hf-head--center .hf-lead { margin-inline: auto; }
.hf .hf-head--light { color: #fff; }
.hf .hf-head--light .hf-lead { color: rgba(255, 255, 255, .66); }

.hf--rtl .hf-eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
.hf--rtl .hf-title { text-transform: none; font-weight: 500; line-height: 1.35; }

/* text link with a drawing underline */
.hf .hf-textlink {
    position: relative;
    display: inline-block;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding-bottom: 6px;
}
.hf .hf-textlink::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    background: currentColor;
    transform-origin: left center;
    transition: transform .45s var(--hf-ease);
}
.hf--rtl .hf-textlink::after { transform-origin: right center; }
.hf .hf-textlink--light { color: #fff; }
.hf--rtl .hf-textlink { letter-spacing: 0; text-transform: none; font-size: 14px; }
@media (hover: hover) {
    .hf a:hover > .hf-textlink::after,
    .hf .hf-textlink:hover::after,
    .hf .hf-model:hover .hf-model__explore::after { animation: hf-redraw .7s var(--hf-ease); }
}
@keyframes hf-redraw {
    0% { transform: scaleX(1); transform-origin: right center; }
    45% { transform: scaleX(0); transform-origin: right center; }
    46% { transform: scaleX(0); transform-origin: left center; }
    100% { transform: scaleX(1); transform-origin: left center; }
}

/* ---------- buttons ---------- */
/* CMS buttons (A03CTA output inside .hf-ctas) */
.hf .hf-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hf .hf-ctas a[data-atom="button"],
.hf .hf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    max-width: none;
    min-height: 52px;
    padding: 0 30px;
    border-radius: 3px;
    border: 1px solid var(--hf-ink);
    background: var(--hf-ink);
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    transition: background-color .35s var(--hf-ease), color .35s var(--hf-ease), border-color .35s var(--hf-ease), transform .35s var(--hf-ease);
}
.hf .hf-ctas--hero a[data-atom="button"],
.hf .hf-ctas--light a[data-atom="button"],
.hf .hf-btn--light { background: #fff; border-color: #fff; color: var(--hf-ink); }
.hf .hf-ctas--outline a[data-atom="button"] { background: transparent; color: var(--hf-ink); }
.hf .hf-btn--ghost { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .5); color: #fff; }
@media (hover: hover) {
    .hf .hf-ctas a[data-atom="button"]:hover,
    .hf .hf-btn:hover { background: var(--hf-accent); border-color: var(--hf-accent); color: #fff; }
    .hf .hf-ctas--outline a[data-atom="button"]:hover { background: var(--hf-ink); border-color: var(--hf-ink); }
    .hf .hf-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--hf-ink); }
}
.hf--rtl .hf-ctas a[data-atom="button"], .hf--rtl .hf-btn { letter-spacing: 0; text-transform: none; font-size: 15px; }
.hf .hf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hf .hf-actions--center { justify-content: center; }

/* shared icon + control buttons */
.hf .hf-icon { width: 24px; height: 24px; flex: none; }
.hf--rtl .hf-icon--prev, .hf--rtl .hf-icon--next, .hf--rtl .hf-icon--arrow { transform: scaleX(-1); }
.hf--rtl .hf-icon--external { transform: scaleX(-1); }

.hf .hf-round,
.hf .hf-square {
    width: 46px; height: 46px;
    display: inline-grid; place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(0, 0, 0, .2);
    color: #fff;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background-color .3s, color .3s, border-color .3s, opacity .3s;
}
.hf .hf-round .hf-icon, .hf .hf-square .hf-icon { width: 18px; height: 18px; }
.hf .hf-square:disabled { opacity: .25; cursor: default; }
@media (hover: hover) {
    .hf .hf-round:hover, .hf .hf-square:not(:disabled):hover { background: #fff; color: var(--hf-ink); border-color: #fff; }
}


/* =====================================================================
   HERO
   ===================================================================== */
.hf .hf-hero { position: relative; background: var(--hf-ink); color: #fff; overflow: hidden; }
.hf .hf-hero__track { display: grid; }
.hf .hf-hero__slide {
    grid-area: 1 / 1;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.4s var(--hf-ease), visibility 0s linear 1.4s;
}
.hf .hf-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transition: opacity 1.4s var(--hf-ease), visibility 0s;
}
.hf .hf-hero__media {
    position: relative;
    height: clamp(440px, 56.25vw, min(960px, calc(100vh - 125px)));
    overflow: hidden;
    background: #161618;
}
.hf .hf-hero__media picture { display: contents; }
.hf .hf-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    transform-origin: 50% 25%;
}
/* slow push-in (Ken Burns) on the active slide */
.hf .hf-hero__slide.is-active .hf-hero__img { animation: hf-kenburns 9s var(--hf-ease-out) both; }
@keyframes hf-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hf .hf-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .38) 100%),
        linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .26) 22%, rgba(0, 0, 0, 0) 42%);
}
.hf .hf-only-mobile { display: none; }

/* letterbox bars that open on first load */
@media (min-width: 768px) {
    .hf .hf-hero::before,
    .hf .hf-hero::after {
        content: "";
        position: absolute;
        inset-inline: 0;
        z-index: 5;
        height: 11%;
        background: var(--hf-ink);
        pointer-events: none;
        animation: hf-letterbox 1.7s var(--hf-ease-out) .15s both;
    }
    .hf .hf-hero::before { top: 0; transform-origin: center top; }
    .hf .hf-hero::after { bottom: 0; transform-origin: center bottom; }
}
@keyframes hf-letterbox { from { transform: scaleY(1); } to { transform: scaleY(0); } }

.hf .hf-hero__content {
    position: absolute;
    inset-inline: 0;
    bottom: 112px;
    z-index: 2;
    text-align: center;
}
.hf .hf-hero__slide.is-active .hf-hero__content-inner > * { animation: hf-rise 1.1s var(--hf-ease-out) .55s both; }
.hf .hf-hero__slide.is-active .hf-hero__content-inner > :nth-child(2) { animation-delay: .7s; }
.hf .hf-hero__slide.is-active .hf-hero__content-inner > :nth-child(3) { animation-delay: .85s; }
.hf .hf-hero__slide.is-active .hf-hero__content-inner > :nth-child(4) { animation-delay: 1s; }
@keyframes hf-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.hf .hf-hero__eyebrow { color: rgba(255, 255, 255, .85); justify-content: center; margin-bottom: 12px; }
.hf .hf-hero__title {
    font-size: clamp(30px, 3.8vw, 60px);
    line-height: 1.06;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-shadow: 0 2px 28px rgba(0, 0, 0, .4);
}
.hf .hf-hero__desc { margin: 14px auto 0; max-width: 52ch; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.hf .hf-hero .hf-ctas { justify-content: center; margin-top: 24px; }
.hf .hf-hero__content-inner > .hf-ctas:first-child { margin-top: 0; }
.hf--rtl .hf-hero__title { letter-spacing: 0; text-transform: none; font-weight: 500; line-height: 1.35; }

/* bar: numbered model tabs with progress + controls */
.hf .hf-hero__bar { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; padding-bottom: 28px; }
.hf:not(.is-ready) .hf-hero__bar { visibility: hidden; }
.hf .hf-hero__bar-inner { display: flex; align-items: flex-end; gap: 32px; }
.hf .hf-hero__tabs { display: flex; flex: 1 1 auto; gap: 18px; min-width: 0; }
.hf .hf-hero__tab {
    flex: 1 1 0;
    min-width: 0;
    max-width: 220px;
    padding-top: 12px;
    text-align: start;
    color: rgba(255, 255, 255, .6);
    transition: color .3s;
}
.hf .hf-hero__tab-line { display: block; position: relative; height: 2px; margin-bottom: 12px; overflow: hidden; background: rgba(255, 255, 255, .24); }
.hf .hf-hero__tab-fill { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left center; }
.hf--rtl .hf-hero__tab-fill { transform-origin: right center; }
.hf .hf-hero__tab-label {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.hf .hf-hero__tab-num { display: inline-block; margin-inline-end: 10px; font-weight: 400; color: rgba(255, 255, 255, .45); transition: color .3s; }
.hf .hf-hero__tab.is-active { color: #fff; }
.hf .hf-hero__tab.is-active .hf-hero__tab-num { color: var(--hf-accent-hi); font-weight: 700; }
.hf .hf-hero__tab.is-active .hf-hero__tab-fill { animation: hf-fill var(--hf-dur, 7000ms) linear forwards; }
.hf .hf-hero.is-paused .hf-hero__tab.is-active .hf-hero__tab-fill { animation-play-state: paused; }
.hf .hf-hero.is-stopped .hf-hero__tab.is-active .hf-hero__tab-fill { animation: none; transform: none; }
@keyframes hf-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (hover: hover) { .hf .hf-hero__tab:hover { color: #fff; } }

.hf .hf-hero__controls { display: flex; gap: 8px; flex: none; }
.hf .hf-hero__toggle-pause { display: inline-flex; }
.hf .hf-hero__toggle-play { display: none; }
.hf .hf-hero.is-stopped .hf-hero__toggle-pause { display: none; }
.hf .hf-hero.is-stopped .hf-hero__toggle-play { display: inline-flex; }

/* =====================================================================
   QUICK ACTIONS (dark strip under the hero)
   ===================================================================== */
.hf .hf-quick {
    background: var(--hf-ink-2);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.hf .hf-quick__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, .08);
}
.hf .hf-quick__item { background: var(--hf-ink-2); }
.hf .hf-quick__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
    min-height: 118px;
    padding: 26px clamp(16px, 2vw, 30px);
    color: #fff;
    transition: background-color .4s var(--hf-ease);
}
.hf .hf-quick__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    transition: background-color .4s, border-color .4s;
}
.hf .hf-quick__icon .hf-icon { width: 24px; height: 24px; stroke-width: 1.5; }
.hf .hf-quick__text { display: flex; flex-direction: column; gap: 5px; flex: 1 1 auto; min-width: 0; }
.hf .hf-quick__title { font-size: 13px; line-height: 1.35; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hf .hf-quick__copy { font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .55); }
.hf .hf-quick__arrow { flex: none; opacity: .45; transition: transform .45s var(--hf-ease), opacity .45s; }
.hf .hf-quick__arrow .hf-icon { width: 18px; height: 18px; }
.hf--rtl .hf-quick__title { letter-spacing: 0; text-transform: none; font-size: 15px; }
@media (hover: hover) {
    .hf .hf-quick__link:hover { background: rgba(255, 255, 255, .035); }
    .hf .hf-quick__link:hover .hf-quick__icon { background: var(--hf-accent); border-color: var(--hf-accent); }
    .hf .hf-quick__link:hover .hf-quick__arrow { opacity: 1; transform: translateX(6px); }
    .hf--rtl .hf-quick__link:hover .hf-quick__arrow { transform: translateX(-6px); }
}

/* =====================================================================
   MODEL RANGE (white showroom)
   ===================================================================== */
.hf .hf-models {
    position: relative;
    overflow: hidden;
    color: var(--hf-ink);
    background: #fff;
    padding: clamp(72px, 9vw, 140px) 0 clamp(56px, 7vw, 110px);
}
.hf .hf-models .hf-title { font-size: clamp(30px, 4vw, 64px) !important; letter-spacing: .1em; }
.hf--rtl .hf-models .hf-title { letter-spacing: 0; }
.hf .hf-models .hf-lead { color: var(--hf-muted); }
/* the partial marks its text "light" (it was a dark section); on white it reads dark */
.hf .hf-models .hf-eyebrow--light { color: var(--hf-muted); }
.hf .hf-models .hf-textlink--light { color: var(--hf-ink); }

.hf .hf-filter {
    display: flex;
    justify-content: center;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto clamp(28px, 3.4vw, 48px);
    padding: 5px;
    border-radius: 999px;
    border: 1px solid rgba(11, 11, 12, .1);
    background: var(--hf-paper);
    overflow-x: auto;
    scrollbar-width: none;
}
.hf .hf-filter::-webkit-scrollbar { display: none; }
.hf:not(.is-ready) .hf-filter { visibility: hidden; }
.hf .hf-filter__btn {
    flex: none;
    padding: 11px 20px;
    border-radius: 999px;
    color: rgba(11, 11, 12, .6);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .3s, background-color .3s;
}
.hf .hf-filter__btn.is-active { color: #fff; background: var(--hf-ink); }
.hf .hf-filter__count { margin-inline-start: 6px; font-weight: 400; letter-spacing: 0; opacity: .6; }
.hf--rtl .hf-filter__btn { letter-spacing: 0; text-transform: none; font-size: 14px; }
@media (hover: hover) { .hf .hf-filter__btn:not(.is-active):hover { color: var(--hf-ink); background: rgba(11, 11, 12, .06); } }

.hf .hf-rail { position: relative; }
.hf .hf-rail__track {
    --hf-cols: 4;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--hf-cols) - 1) * var(--hf-gap)) / var(--hf-cols));
    gap: var(--hf-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 16px max(var(--hf-gutter), calc((100% - var(--hf-max)) / 2)) 36px;
    scroll-padding-inline: max(var(--hf-gutter), calc((100% - var(--hf-max)) / 2));
    margin-top: -16px;
    scrollbar-width: none;
}
@media (min-width: 1200px) {
    .hf .hf-rail__track { padding-inline: 7.5%; scroll-padding-inline: 7.5%; }
}
.hf .hf-rail__track::-webkit-scrollbar { display: none; }
.hf .hf-rail__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.hf .hf-models .hf-square {
    border-color: rgba(11, 11, 12, .22);
    background: transparent;
    color: var(--hf-ink);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
@media (hover: hover) {
    .hf .hf-models .hf-square:not(:disabled):hover { background: var(--hf-ink); border-color: var(--hf-ink); color: #fff; }
}
.hf:not(.is-ready) .hf-rail__nav, .hf .hf-rail.is-static .hf-rail__nav { visibility: hidden; }

.hf .hf-model {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 4px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(11, 11, 12, .09);
    color: var(--hf-ink);
    scroll-snap-align: start;
    overflow: hidden;
    transition: transform .6s var(--hf-ease), box-shadow .6s var(--hf-ease);
}
.hf .hf-model[hidden] { display: none; }
.hf .hf-model__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--hf-paper);
}
.hf .hf-model__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--hf-ease); }
.hf .hf-model__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 24px 24px 26px; }
.hf .hf-model__title { font-size: 20px; line-height: 1.25; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.hf .hf-model__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hf .hf-model__link:focus-visible { outline: none; }
.hf .hf-model:has(.hf-model__link:focus-visible) { box-shadow: inset 0 0 0 2px var(--hf-ink); }
.hf .hf-model__tagline, .hf .hf-model__note { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--hf-muted); }
.hf .hf-model__foot { margin-top: auto; padding-top: 22px; }
.hf .hf-model__prices { display: grid; gap: 4px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid rgba(11, 11, 12, .1); }
.hf .hf-model__price { font-size: 14px; line-height: 1.45; color: rgba(11, 11, 12, .72); }
.hf .hf-model__price .aed-before { color: var(--hf-ink); font-weight: 700; white-space: nowrap; }
.hf .hf-spot__price .aed-before { color: #fff; font-weight: 700; white-space: nowrap; }
.hf:not(.hf--rtl) .hf-model__price .aed-before::before,
.hf:not(.hf--rtl) .hf-spot__price .aed-before::before { content: "AED "; }
.hf .hf-model__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.hf .hf-model__variants { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.hf--rtl .hf-model__title { letter-spacing: 0; text-transform: none; font-weight: 700; font-size: 20px; }
@media (hover: hover) {
    .hf .hf-model:hover {
        transform: translateY(-8px);
        box-shadow: inset 0 0 0 1px rgba(11, 11, 12, .06), 0 30px 54px -28px rgba(11, 11, 12, .38);
    }
    .hf .hf-model:hover .hf-model__media img { transform: scale(1.06); }
    .hf .hf-model__variants a:hover { color: var(--hf-muted); }
}

.hf .hf-models__footer { margin-top: clamp(28px, 3.6vw, 44px); text-align: center; }
.hf .hf-models__footer-title { font-size: 15px; color: var(--hf-muted); margin-bottom: 18px; }
.hf .hf-models__footer .hf-ctas { justify-content: center; }

/* =====================================================================
   SPOTLIGHT (one model, full screen)
   ===================================================================== */
.hf .hf-spot {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: clamp(560px, 92vh, 980px);
    overflow: hidden;
    background: var(--hf-ink);
    color: #fff;
}
.hf .hf-spot__media { position: absolute; inset: 0; z-index: -1; }
.hf .hf-spot__poster,
.hf .hf-spot__video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hf .hf-spot__video { opacity: 0; transition: opacity 1.4s var(--hf-ease); }
.hf .hf-spot__video.is-playing { opacity: 1; }
.hf .hf-spot__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .38) 42%, rgba(0, 0, 0, 0) 70%),
        linear-gradient(0deg, rgba(0, 0, 0, .74) 0%, rgba(0, 0, 0, 0) 46%);
}
.hf--rtl .hf-spot__shade {
    background:
        linear-gradient(270deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .38) 42%, rgba(0, 0, 0, 0) 70%),
        linear-gradient(0deg, rgba(0, 0, 0, .74) 0%, rgba(0, 0, 0, 0) 46%);
}
.hf .hf-spot__content { padding-block: clamp(64px, 9vw, 128px); }
.hf .hf-spot__name {
    max-width: 12ch;
    font-size: clamp(52px, 8.5vw, 150px) !important;
    line-height: .92;
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.hf .hf-spot__line {
    margin-top: 22px;
    font-size: clamp(14px, 1.3vw, 19px);
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .86);
}
.hf .hf-spot__price { margin-top: 14px; font-size: 15px; color: rgba(255, 255, 255, .72); }
.hf--rtl .hf-spot__name, .hf--rtl .hf-spot__line { letter-spacing: 0; text-transform: none; }
/* Arabic model names are longer ("مازدا سي إكس-90"): one line, sized to fit */
.hf--rtl .hf-spot__name {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(34px, 7vw, 120px) !important;
    line-height: 1.15;
}

/* =====================================================================
   TOOLS (offers / owners)
   ===================================================================== */
.hf .hf-tools { background: #fff; padding: clamp(64px, 8vw, 120px) 0; }
.hf .hf-tools + .hf-tools { padding-top: 0; }
.hf .hf-tools__grid { display: grid; gap: var(--hf-gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hf .hf-tools__grid--1 { grid-template-columns: minmax(0, 1fr); }
.hf .hf-tools__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hf .hf-tools__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hf .hf-tool__link {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    padding: 32px 28px;
    border-radius: 4px;
    background: var(--hf-paper);
    color: var(--hf-ink);
    transition: background-color .45s var(--hf-ease), color .45s var(--hf-ease), transform .5s var(--hf-ease), box-shadow .5s var(--hf-ease);
}
.hf .hf-tool__icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    transition: background-color .45s, color .45s;
}
.hf .hf-tool__icon .hf-icon { width: 26px; height: 26px; stroke-width: 1.5; }
.hf .hf-tool__icon img { width: 30px; height: 30px; object-fit: contain; }
.hf .hf-tool__text { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.hf .hf-tool__title { font-size: 16px; line-height: 1.3; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.hf .hf-tool__copy { font-size: 14px; line-height: 1.6; color: var(--hf-muted); transition: color .45s; }
.hf .hf-tool__cta { margin-top: auto; align-self: flex-start; }
.hf .hf-tool__text .hf-tool__cta { margin-top: auto; padding-top: 6px; }
.hf--rtl .hf-tool__title { letter-spacing: 0; text-transform: none; font-weight: 700; font-size: 17px; }
@media (hover: hover) {
    .hf .hf-tool__link:hover { background: var(--hf-ink); color: #fff; transform: translateY(-6px); box-shadow: 0 28px 50px -26px rgba(0, 0, 0, .6); }
    .hf .hf-tool__link:hover .hf-tool__copy { color: rgba(255, 255, 255, .7); }
    .hf .hf-tool__link:hover .hf-tool__icon { background: var(--hf-accent); color: #fff; }
}

/* offers: wide dark tiles with a red glow */
.hf .hf-tools--offers .hf-tool__link {
    flex-direction: row;
    align-items: flex-start;
    gap: 26px;
    padding: 38px;
    overflow: hidden;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(200, 32, 43, .28) 0%, rgba(200, 32, 43, 0) 55%),
        var(--hf-ink);
    color: #fff;
}
.hf--rtl .hf-tools--offers .hf-tool__link {
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(200, 32, 43, .28) 0%, rgba(200, 32, 43, 0) 55%),
        var(--hf-ink);
}
.hf .hf-tools--offers .hf-tool__icon { width: 64px; height: 64px; flex: none; background: var(--hf-accent); color: #fff; }
.hf .hf-tools--offers .hf-tool__icon .hf-icon { width: 28px; height: 28px; }
.hf .hf-tools--offers .hf-tool__title { font-size: 21px; }
.hf .hf-tools--offers .hf-tool__copy { color: rgba(255, 255, 255, .7); font-size: 15px; }
@media (hover: hover) {
    .hf .hf-tools--offers .hf-tool__link:hover { background: var(--hf-accent); }
    .hf .hf-tools--offers .hf-tool__link:hover .hf-tool__icon { background: rgba(0, 0, 0, .25); }
}

/* =====================================================================
   FEATURE (b04): split editorial; the picture runs to the screen edge, copy and model picks beside it
   ===================================================================== */
.hf .hf-feature {
    position: relative;
    padding: clamp(72px, 8vw, 128px) 0;
    background: var(--hf-ink);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hf .hf-feature::before {
    /* a faint red glow behind the copy */
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: 55%;
    background: radial-gradient(55% 60% at 60% 45%, rgba(145, 25, 33, .26), rgba(145, 25, 33, 0) 72%);
    pointer-events: none;
}
.hf .hf-feature__grid {
    display: grid;
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    align-items: center;
    column-gap: clamp(40px, 5.5vw, 104px);
    padding-inline-end: var(--hf-gutter);
}
.hf .hf-feature--plain .hf-feature__grid { grid-template-columns: minmax(0, 1fr); padding-inline: var(--hf-gutter); }
@media (min-width: 1200px) {
    /* line the copy up with the 85% container */
    .hf .hf-feature__grid { padding-inline-end: 7.5%; }
    .hf .hf-feature--plain .hf-feature__grid { padding-inline: 7.5%; }
}

.hf .hf-feature__media {
    position: relative;
    margin: 0;
    /* about 1.25:1 or wider on desktop, so landscape car photos fit without cutting the car */
    min-height: clamp(440px, 40vw, 740px);
    overflow: hidden;
    border-start-end-radius: 4px;
    border-end-end-radius: 4px;
}
.hf .hf-feature__media > * { transition: clip-path 1.4s var(--hf-ease-out); }
.hf .hf-feature__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 62% 50%;
}
/* hovering a model: a colourful photo of that car from its own page. No parallax zoom on it, so the
   crop stays as wide as the panel allows; each photo carries its own focal point (data-hf-pos). */
.hf .hf-feature__media .hf-feature__swap {
    opacity: 0;
    animation: none;
    transform: none;
    transition: opacity .7s var(--hf-ease), clip-path 1.4s var(--hf-ease-out);
}
.hf .hf-feature__media .hf-feature__swap.is-on { opacity: 1; }
/* the opening picture is one of those model photos too, so it gets the same uncut framing */
.hf .hf-feature__media .hf-feature__img { animation: none; transform: none; }
.hf .hf-feature__frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, 0) 38%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
/* the picture wipes in from the screen edge. The clip sits on the children: a clipped figure would never
   count as "in view" for the scroll observer, so the wipe would never start. */
.hf.is-ready .hf-feature__media[data-hf-reveal],
.hf.is-ready .hf-feature__media[data-hf-reveal]:not(.is-in) { opacity: 1; transform: none; transition: none; }
.hf.is-ready .hf-feature__media[data-hf-reveal] > * { clip-path: inset(0 0 0 0); }
.hf.is-ready .hf-feature__media[data-hf-reveal]:not(.is-in) > * { clip-path: inset(0 100% 0 0); }
.hf--rtl.is-ready .hf-feature__media[data-hf-reveal]:not(.is-in) > * { clip-path: inset(0 0 0 100%); }

.hf .hf-feature__content { position: relative; min-width: 0; }
.hf .hf-feature--plain .hf-feature__content { max-width: 720px; }
.hf .hf-feature__box { max-width: 540px; }
.hf .hf-feature .hf-eyebrow { color: rgba(255, 255, 255, .72); }
.hf .hf-feature__title {
    margin-top: 22px;
    font-size: clamp(30px, 3vw, 52px) !important; /* the site shrinks every h2 below 960px */
    line-height: 1.12;
    font-weight: 400;
    letter-spacing: -.005em;
    text-transform: none;
    text-align: inherit !important;
}
.hf--rtl .hf-feature__title { font-weight: 500; line-height: 1.45; letter-spacing: 0; }
.hf .hf-feature__lead,
.hf .hf-feature__body {
    max-width: 44ch;
    margin-top: 18px;
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.7;
    color: rgba(255, 255, 255, .7);
}
.hf .hf-feature__body * { color: inherit !important; font-size: inherit; line-height: inherit; }

.hf .hf-feature__picks { margin-top: clamp(28px, 3vw, 40px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hf .hf-feature__picks-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.hf--rtl .hf-feature__picks-label { font-size: 13px; letter-spacing: 0; }
.hf .hf-feature__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hf .hf-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 13px 0 16px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    transition: background-color .3s, border-color .3s, color .3s;
}
.hf--rtl .hf-chip { padding: 0 16px 0 13px; font-size: 14px; letter-spacing: 0; }
.hf .hf-chip .hf-icon { width: 14px; height: 14px; opacity: .45; transition: opacity .3s, translate .3s var(--hf-ease); }
.hf .hf-chip:focus-visible { background: #fff; border-color: #fff; color: var(--hf-ink); }
@media (hover: hover) {
    .hf .hf-chip:hover { background: #fff; border-color: #fff; color: var(--hf-ink); }
    .hf .hf-chip:hover .hf-icon { opacity: 1; translate: 2px 0; }
    .hf--rtl .hf-chip:hover .hf-icon { translate: -2px 0; }
}
.hf .hf-feature .hf-ctas { margin-top: clamp(28px, 3vw, 40px); }

@media (max-width: 959px) {
    .hf .hf-feature { padding: 0 0 56px; }
    .hf .hf-feature::before { width: 100%; top: 40%; }
    .hf .hf-feature__grid { grid-template-columns: minmax(0, 1fr); row-gap: 36px; padding-inline: 0; }
    .hf .hf-feature__media { min-height: 0; aspect-ratio: 4 / 3; border-radius: 0; }
    .hf .hf-feature__content { padding-inline: var(--hf-gutter); }
}

/* =====================================================================
   DISCOVER (bento of the site's own pages)
   ===================================================================== */
.hf .hf-discover { background: var(--hf-paper); padding: clamp(72px, 9vw, 130px) 0; }
.hf .hf-bento {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    grid-auto-rows: clamp(220px, 17vw, 300px);
    gap: var(--hf-gap);
}
.hf .hf-bento--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hf .hf-bento--6 .hf-bento__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.hf .hf-bento--6 .hf-bento__item:nth-child(2) { grid-column: span 2; }
.hf .hf-bento--6 .hf-bento__item:nth-child(5),
.hf .hf-bento--6 .hf-bento__item:nth-child(6) { grid-column: span 2; }
.hf .hf-bento__item { min-width: 0; }
.hf .hf-bento__link {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: var(--hf-ink-3);
    color: #fff;
    isolation: isolate;
}
.hf .hf-bento__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 1.2s var(--hf-ease);
}
.hf .hf-bento__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .3) 45%, rgba(0, 0, 0, .05) 100%);
    transition: opacity .6s;
}
.hf .hf-bento__body {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: clamp(20px, 2.2vw, 34px);
}
.hf .hf-bento__title { font-size: clamp(17px, 1.5vw, 24px); line-height: 1.2; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.hf .hf-bento__item:first-child .hf-bento__title { font-size: clamp(22px, 2.4vw, 38px); }
.hf .hf-bento__copy { max-width: 46ch; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .74); }
.hf .hf-bento__arrow {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(0, 0, 0, .2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background-color .4s, border-color .4s, transform .5s var(--hf-ease);
}
.hf .hf-bento__arrow .hf-icon { width: 18px; height: 18px; }
.hf--rtl .hf-bento__title { letter-spacing: 0; text-transform: none; font-weight: 700; }
@media (hover: hover) {
    .hf .hf-bento__link:hover .hf-bento__img { transform: scale(1.07); }
    .hf .hf-bento__link:hover .hf-bento__arrow { background: var(--hf-accent); border-color: var(--hf-accent); transform: rotate(-45deg); }
    .hf--rtl .hf-bento__link:hover .hf-bento__arrow { transform: rotate(45deg); }
    .hf .hf-bento__link:hover .hf-icon--external { transform: none; }
}

/* =====================================================================
   WHY MAZDA (expanding video panels)
   ===================================================================== */
.hf .hf-why { background: var(--hf-ink); color: #fff; padding-top: clamp(72px, 9vw, 130px); }
.hf .hf-why__panels {
    display: flex;
    gap: 2px;
    height: clamp(460px, 70vh, 760px);
}
.hf .hf-why__panel {
    position: relative;
    isolation: isolate;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    transition: flex-grow 1s var(--hf-ease);
}
.hf .hf-why__panel.is-active { flex-grow: 2.3; }
.hf .hf-why__media { position: absolute; inset: 0; z-index: -2; background: var(--hf-ink-3); }
.hf .hf-why__media img,
.hf .hf-why__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 1.4s var(--hf-ease);
}
.hf .hf-why__media video { opacity: 0; transition: opacity 1s var(--hf-ease); }
.hf .hf-why__media video.is-playing { opacity: 1; }
.hf .hf-why__panel.is-active .hf-why__media img { transform: scale(1.04); }
.hf .hf-why__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .25) 50%, rgba(0, 0, 0, .1) 100%);
}
.hf .hf-why__panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, .5);
    transition: opacity .9s var(--hf-ease);
}
.hf .hf-why__panel.is-active::after { opacity: 0; }
.hf .hf-why__body {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: clamp(24px, 3vw, 52px);
}
.hf .hf-why__index { font-size: 13px; font-weight: 700; letter-spacing: .3em; color: var(--hf-accent-hi); }
.hf .hf-why__label { font-size: clamp(24px, 2.8vw, 48px); line-height: 1.05; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.hf .hf-why__headline,
.hf .hf-why__cta {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s var(--hf-ease), transform .8s var(--hf-ease);
}
.hf .hf-why__headline { max-width: 40ch; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.hf .hf-why__panel.is-active .hf-why__headline,
.hf .hf-why__panel.is-active .hf-why__cta { opacity: 1; transform: none; transition-delay: .25s; }
.hf--rtl .hf-why__label { letter-spacing: 0; text-transform: none; font-weight: 700; }

/* =====================================================================
   BAND (standalone b07)
   ===================================================================== */
.hf .hf-band { background: var(--hf-paper); padding: clamp(56px, 7vw, 96px) 0; text-align: center; }
.hf .hf-band .hf-ctas { justify-content: center; margin-top: 24px; }
.hf .hf-band .hf-title + .hf-ctas { margin-top: 30px; }

/* =====================================================================
   CLOSING CALL TO ACTION
   ===================================================================== */
.hf .hf-closing {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(110px, 13vw, 200px) 0;
    background: var(--hf-ink);
    color: #fff;
    text-align: center;
}
.hf .hf-closing__glow {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -1;
    width: min(1200px, 130vw);
    aspect-ratio: 1;
    margin: calc(min(1200px, 130vw) / -2) 0 0 calc(min(1200px, 130vw) / -2);
    background: radial-gradient(circle, rgba(200, 32, 43, .42) 0%, rgba(145, 25, 33, .18) 32%, rgba(145, 25, 33, 0) 62%);
    animation: hf-breathe 9s ease-in-out infinite alternate;
}
@keyframes hf-breathe { from { transform: scale(.88); opacity: .75; } to { transform: scale(1.08); opacity: 1; } }
.hf .hf-closing__word {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -1;
    transform: translate(-50%, -50%);
    font-size: clamp(110px, 23vw, 440px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: .1em;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .09);
    pointer-events: none;
    user-select: none;
}
.hf .hf-closing__inner .hf-eyebrow { justify-content: center; }
.hf .hf-closing__title {
    font-size: clamp(38px, 5.6vw, 96px) !important;
    line-height: 1;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hf .hf-closing__lead { max-width: 46ch; margin: 22px auto 0; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.65; color: rgba(255, 255, 255, .72); }
.hf--rtl .hf-closing__title { letter-spacing: 0; text-transform: none; font-weight: 500; line-height: 1.3; }

/* =====================================================================
   PREVIEW BADGE
   ===================================================================== */
.hf .hf-badge {
    /* bottom-left, above the chat button (about 133px tall from the bottom edge), clear of the hero controls */
    position: fixed;
    left: 16px;
    bottom: 148px;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 32px);
    padding: 7px 7px 7px 14px;
    border-radius: 999px;
    background: rgba(16, 16, 16, .9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
    transition: opacity .6s, padding .4s;
}
.hf--rtl .hf-badge { padding: 7px 14px 7px 7px; font-size: 13px; }
.hf .hf-badge[hidden] { display: none; }
.hf .hf-badge__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #f5a623; }
.hf .hf-badge__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf .hf-badge__close { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .14); font-size: 16px; line-height: 1; }
.hf .hf-badge.is-quiet { opacity: .55; }
.hf .hf-badge.is-quiet:hover, .hf .hf-badge.is-quiet:focus-within { opacity: 1; }

/* =====================================================================
   MOTION: reveal on scroll, staggered cards, parallax
   (only once home-facelift.js is running)
   ===================================================================== */
.hf.is-ready [data-hf-reveal]:not(.is-in) { opacity: 0; transform: translateY(32px); }
.hf.is-ready [data-hf-reveal] {
    transition: opacity 1s var(--hf-ease), transform 1.1s var(--hf-ease-out);
    transition-delay: var(--hf-delay, 0ms);
}
.hf.is-ready [data-hf-reveal].is-in { transform: none; }

.hf.is-ready [data-hf-stagger]:not(.is-in) .hf-model { opacity: 0; transform: translateY(48px); }
.hf.is-ready [data-hf-stagger] .hf-model {
    transition: opacity .9s var(--hf-ease), transform 1.1s var(--hf-ease-out), box-shadow .6s var(--hf-ease);
}
.hf.is-ready [data-hf-stagger].is-in .hf-model { transition-delay: calc(min(var(--hf-i, 0), 6) * 90ms), calc(min(var(--hf-i, 0), 6) * 90ms), 0s; }
.hf.is-ready [data-hf-stagger].is-settled .hf-model { transition-delay: 0s; }

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .hf .hf-feature__media img,
        .hf .hf-spot__media {
            animation: hf-parallax linear both;
            animation-timeline: view();
            animation-range: cover 0% cover 100%;
        }
    }
}
@keyframes hf-parallax {
    from { transform: translateY(-6%) scale(1.14); }
    to { transform: translateY(6%) scale(1.14); }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1099px) {
    .hf .hf-rail__track { --hf-cols: 2.6; }
    .hf .hf-tools__grid, .hf .hf-tools__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hf .hf-quick__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hf .hf-bento--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hf .hf-bento--6 .hf-bento__item:nth-child(n) { grid-column: auto; grid-row: auto; }
    .hf .hf-bento--6 .hf-bento__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 767px) {
    /* hero: show the whole picture (copy is baked into the artwork), controls below it */
    .hf .hf-hero__media { height: auto; }
    .hf .hf-hero__img { height: auto; }
    .hf .hf-hero__media::after { display: none; }
    .hf .hf-only-desktop { display: none; }
    .hf .hf-only-mobile { display: block; }
    .hf .hf-hero__content { position: static; padding: 20px 0 4px; }
    .hf .hf-hero__content-inner:not(:has(*)) { display: none; }
    .hf .hf-hero__title { font-size: 26px; }
    .hf .hf-hero .hf-ctas a[data-atom="button"] { min-width: 0; width: 100%; max-width: 340px; }
    .hf .hf-hero__bar { position: static; padding: 8px 0 20px; }
    .hf .hf-hero__bar-inner { gap: 12px; }
    .hf .hf-hero__tabs { gap: 8px; }
    .hf .hf-hero__tab-label { font-size: 10px; letter-spacing: .08em; }
    .hf .hf-hero__tab-num { display: none; }
    .hf .hf-hero__prev, .hf .hf-hero__next { display: none; }
    .hf .hf-round { width: 38px; height: 38px; }

    .hf .hf-quick__link { flex-direction: column; align-items: flex-start; gap: 12px; min-height: 0; padding: 22px 16px; }
    .hf .hf-quick__icon { width: 44px; height: 44px; }
    .hf .hf-quick__icon .hf-icon { width: 20px; height: 20px; }
    .hf .hf-quick__title { font-size: 11px; letter-spacing: .12em; }
    .hf .hf-quick__copy { font-size: 12px; }
    .hf .hf-quick__arrow { display: none; }
    .hf--rtl .hf-quick__title { font-size: 14px; letter-spacing: 0; }

    .hf .hf-filter { justify-content: flex-start; width: auto; }
    .hf .hf-filter__btn { padding: 10px 16px; }
    .hf .hf-rail__track { grid-auto-columns: 84%; }
    .hf .hf-rail__nav { display: none; }
    .hf .hf-model__body { padding: 20px 18px 22px; }

    .hf .hf-spot { min-height: 620px; }
    .hf .hf-spot__shade { background: linear-gradient(0deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .45) 50%, rgba(0, 0, 0, .1) 100%); }
    .hf .hf-spot .hf-btn { width: 100%; }

    .hf .hf-tools__grid, .hf .hf-tools__grid--2, .hf .hf-tools__grid--3 { grid-template-columns: minmax(0, 1fr); }
    .hf .hf-tool__link { flex-direction: row; align-items: flex-start; gap: 18px; padding: 24px 20px; }
    .hf .hf-tool__icon { width: 50px; height: 50px; flex: none; }
    .hf .hf-tools--offers .hf-tool__link { padding: 28px 22px; gap: 18px; }
    .hf .hf-tools--offers .hf-tool__icon { width: 54px; height: 54px; }


    .hf .hf-bento,
    .hf .hf-bento--6 { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 240px; }
    .hf .hf-bento--6 .hf-bento__item:nth-child(1) { grid-column: auto; grid-row: auto; }

    .hf .hf-why__panels { flex-direction: column; height: auto; }
    .hf .hf-why__panel { flex: none; height: 340px; }
    .hf .hf-why__panel::after { opacity: 0; }
    .hf .hf-why__headline, .hf .hf-why__cta { opacity: 1; transform: none; }

    .hf .hf-closing { padding: 84px 0 64px; }
    .hf .hf-closing .hf-btn { width: 100%; max-width: 340px; }
    .hf .hf-badge { font-size: 11px; left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .hf .hf-hero__slide, .hf .hf-hero__slide.is-active { transition: none; }
    .hf .hf-hero__slide.is-active .hf-hero__img,
    .hf .hf-hero__slide.is-active .hf-hero__content-inner > *,
    .hf .hf-hero::before, .hf .hf-hero::after,
    .hf .hf-closing__glow { animation: none; }
    .hf .hf-hero::before, .hf .hf-hero::after { display: none; }
    .hf .hf-hero__tab.is-active .hf-hero__tab-fill { animation: none; transform: none; }
    .hf .hf-model, .hf .hf-model__media img, .hf .hf-rail__track, .hf .hf-why__panel, .hf .hf-bento__img { transition: none; scroll-behavior: auto; }
    .hf.is-ready [data-hf-reveal], .hf.is-ready [data-hf-reveal]:not(.is-in),
    .hf.is-ready [data-hf-stagger]:not(.is-in) .hf-model { opacity: 1; transform: none; transition: none; }
}
