/* 
Theme Name: Brandology
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Brandology
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: brandology
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

:root {
    --brand-red: #E30613;
    --bg: #1e1f22;
    --panel: #2a2b2f;
    --ink: #e7e7e7;
    --muted: #9aa0a6;
    --brand: #E30613;
    --radius: 18px;
    --gap: 5px !important;
    --arrow-size: 30px;
    --speed: 260ms;
    --e: ease;
}

body {
    background-color: #121212;
    color: #fff;
    overflow-x: hidden;
    font-family: "Inter", sans-serif;
}

main#get-started {
    overflow: hidden;
}

html {
    font-size: 13px;
}


/* =========================
       Custom hamburger
    ========================== */
.hamburger {
    width: 32px;
    height: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background-color: var(--brand-red);
    transition: all 0.3s ease;
}

/* Default */
.hamburger span:nth-child(1),
.hamburger span:nth-child(2) {
    width: 100%;
}

.hamburger span:nth-child(3) {
    width: 47%;
    align-self: flex-start;
}

/* Hover */
.hamburger:hover span:nth-child(1),
.hamburger:hover span:nth-child(2) {
    width: 47%;
}

.hamburger:hover span:nth-child(3) {
    width: 100%;
}

.hamburger:focus {
    outline: none;
    box-shadow: none;
}

a.navbar-brand.text-light img {
    width: 63px;
    height: 63px;
}

/* start hidden (fade out + move up) */
.navbar .navbar-brand,
.navbar .hamburger {
    opacity: 0;
    transform: translateY(-30px);
    background-color: transparent;
}

/* =========================
       Offcanvas styling
    ========================== */
.offcanvas-end {
    width: 280px;
    border-left: 1px solid #333;
    background: #1e1e1e;
    color: #fff;
}

.offcanvas-header {
    background: var(--brand);
    color: #fff;
}

div#offcanvasTop {
    height: 100vh;
    width: 440px;
    left: unset;
    max-width: 100%;
}

/* =========================
       HERO: Background video
    ========================== */
.hero-video {
    position: relative;
    min-height: 100vh;
    /* adjust height as needed */
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    /* keep overlay layering clean */
}

.hero-video__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* fills the section without distortion */
    z-index: -2;
}

.hero-video__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    /* subtle dark gradient for text readability */
    background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .55));
    /* optional: add a slight blur for busy videos */
    /* backdrop-filter: blur(1px); */
}

.hero-video__content {
    display: flex;
    margin-top: 21vh;
    overflow: hidden;
}

.hero-video .badge {
    background: rgba(0, 0, 0, .6);
    border: 1px solid rgba(255, 255, 255, .15);
}


.offcanvas-body {
    background-color: #121212;
}

/* .hero-video__content>h1 {
      font-family: "Inter", sans-serif;
      font-weight: 500;
      font-size: 6.7rem;
      line-height: 6rem;
      width: 100%;
      max-width: 65rem;
    }

    .hero-video__content>h1 span {
      color: #E30613;
    }

    .subtitlesmall {
      width: 37%;
      border-left: 1px solid #434346;
      max-height: fit-content;
      padding-left: 1rem;
      max-width: 371px;

    }

     .subtitlesmall span {
      transform: translateX(-100px);
      opacity: 0;
    } 


    .subtitlesmall p {
      margin: 0;
      font-family: "Inter", sans-serif;
      font-size: 1.3rem;
    }

    .subtitlesmall p span:last-of-type {
      font-weight: 700;
    } */

.hero-video__content>h1 {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 6.7rem;
    line-height: 6rem;
    width: 100%;
    max-width: 65rem;

    /* only opacity base, no translateY here */
    opacity: 0;
    transform: translateY(0);
}

.hero-video__content>h1 span {
    color: #E30613;
}

.subtitlesmall {
    width: 37%;
    border-left: 1px solid #434346;
    max-height: fit-content;
    padding-left: 1rem;
    max-width: 371px;
    overflow: hidden;
}

.subtitlesmall p {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 1.3rem;
}

.subtitlesmall p span:last-of-type {
    font-weight: 700;
}

/* 🔹 base state for span animation */
.subtitlesmall span {
    display: inline-block;
    /* مهم عشان slide لكل span لوحده */
    opacity: 0;
    transform: translateX(-80px);
    /* من اليسار */
}


body {
    background-color: #161719;
}

h2#request-title,
h2.main-title.request__title {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 6.7rem;
    line-height: 6rem;
    color: #888891;
    margin-top: 6rem;
    margin-bottom: 6rem;
    width: 100%;
}

.container.request__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* distribute children */
    align-items: flex-start;
    gap: 0;
    margin-bottom: 11.3rem;
}

/* left small column */
p.request__subtitle {
    width: 17%;
    display: flex;
    border-left: 1px solid #E30613;
    padding-left: 1rem;
    flex-direction: column;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 1.7rem;
    line-height: 2rem;
    color: #C0C0C0;
}

/* center main text */
p.request__lead {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 2.7rem;
    line-height: 3rem;
    color: #C0C0C0;
    width: 57%;
    max-width: 44rem;
    margin-bottom: 0;
}

/* right column note INSIDE the container */
p.request__note {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.4rem;
    color: #888891;
    width: 20%;
    max-width: 16.5rem;
    text-align: left;
    margin: 0;
    margin-left: auto;
    /* push it to the right edge if needed */
}

/* if you keep an extra note OUTSIDE the container */
.request__note--right {
    text-align: right;
    margin-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

span.request__domain {
    font-size: 0.6rem;
    color: #767473;
}

.my-200 {
    margin-top: 200px !important;
    margin-bottom: 200px !important;
}


.my-400 {
    margin-top: 400px !important;
    margin-bottom: 400px !important;
}

section.text-center-moving {
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

section.text-center-moving p {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 7.3rem;
    line-height: 8rem;
    text-align: left;
    letter-spacing: -5px;
    color: #C0C0C0;
    margin: 0;
    max-width: 1220px;
}

/* Respect users who prefer reduced motion */

@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1320px !important;
    }
}

@media (min-width: 1200px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1140px !important;
    }
}

@media (min-width: 992px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm {
        max-width: 960px !important;
    }
}

@media (min-width: 768px) {

    .container,
    .container-md,
    .container-sm {
        max-width: 720px !important;
    }
}

@media (min-width: 576px) {

    .container,
    .container-sm {
        max-width: 540px !important;
    }
}

@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1600px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video__media {
        display: none;
    }

    /* poster/fallback only */
}











/* --- Helpers --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

/* --- Grid --- */
.projects {
    padding: 40px 16px;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 380px;
    gap: 5px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 380px;
    gap: 5px;
}

/* Feature takes 2 columns x 2 rows */
.card--feature {
    grid-column: span 2;
    grid-row: span 2;
}

/* Red info panel sits to the right of feature */
.info--red {
    grid-column: span 1;
    grid-row: span 2;
}

.info--black {
    grid-column: span 1;
    grid-row: span 2;
}

/* Small cards fill below */
.card--small {
    grid-column: span 1;
    grid-row: span 1;
}

/* --- Card base --- */
.card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    color: #fff;
    /* isolation: isolate; */
}

/* Background image + overlay */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--img);
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform .6s cubic-bezier(.2, .6, .2, 1);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(0 0 0 / 80%), rgb(0 0 0 / 88%));
    opacity: .8;
    transition: opacity .3s ease;
    z-index: -1;
}

.card:hover::before {
    transform: scale(1.06);
}

.card:hover::after {
    opacity: .4;
}

.card__link {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    text-decoration: none;
    z-index: 999999;
    height: 100%;
}

/* Top bar */
.card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    z-index: 99999;
}

.card__eyebrow {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 2rem;
    letter-spacing: -0.5px;
    color: #fff;
    margin: 0;
    opacity: 0.8;
}

.card__menu {
    background: none;
    border: 0;
    color: #fff;
    opacity: .7;
    cursor: pointer;
}

/* Feature content */
.card--feature .card__content {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.card--feature .card__title {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 2.2rem;
    line-height: 2.8rem;
    color: #fff;
    margin: 0;
    text-decoration: none;
    max-width: 30rem;
    opacity: 0.8;
}

.card__brand {
    height: 36px;
    width: auto;
    opacity: .9;
}

/* Red filter for small cards (like screenshot) */
.card--small::after {
    background: linear-gradient(90deg, rgb(255 0 0 / 64%), rgba(0, 0, 0, .45));
}

/* Round pill button */
.card__pill {
    margin-top: auto;
    margin-left: 4px;
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 12px;
    background: #e00;
    color: #000;
    font-weight: 700;
    cursor: pointer;
}

/* Dark / text variants */
.card--dark::before {
    /* filter: brightness(.35); */
}

.card--text {
    background: #1b1b1f;
}

.card--text::before {
    display: none;
}

.card--text .card__textwrap {
    color: #e7e7e9;
    padding-right: 48px;
}

.card--text h3 {
    font-size: 2.2rem;
    line-height: 2.8rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.card--text p {
    margin: 0 0 6px;
}

/* --- Red info panel --- */
.info {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 32px 57px;
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
}

.info--red {
    background: #cc0b0b;
}

.info--black {
    background: #212225;
}

.info__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.info__label {
    font-size: 0.9rem;
}

.info__count {
    font-size: 0.9rem;
}

.info__title {
    margin: 0;
    font-size: 2.5rem;
    line-height: 1.25;
}

.info__text {
    margin: 0;
    font-size: 1.3rem;
}

/* Dots grid */
.dots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px 16px;
    align-content: start;
    margin-top: 8px;
    min-height: 120px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.7;
    transition: opacity .25s ease, transform .25s ease;
    transform: scale(1);
}

.dot.is-on {
    opacity: 1;
    transform: scale(1.15);
}

/* CTA inside red box */
.info__cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.2rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card--feature {
        grid-column: span 2;
    }

    .info--red {
        grid-column: span 2;
    }

    .info--black {
        grid-column: span 2;
    }
}

/* ---- Tunables ---- */
.dotboard {
    --board-size: 32px;
    /* overall square size */
    --dot-size: 4px;
    /* circle size */
    --gap: 5px;
    /* space between dots */
    --dot-color: #fff;

    /* dark background */

    /* grid line color */

    /* grid cell size */
    position: relative;
    width: var(--board-size);
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    place-items: center;
    /* mix-blend-mode: lighten; */
}

/* Dot group */
.dotboard__dots {
    display: grid;
    grid-template-columns: repeat(3, var(--dot-size));
    grid-template-rows: repeat(3, var(--dot-size));
    gap: var(--gap);
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
    will-change: transform;
}

/* Rotate group on container hover */
.card:hover .dotboard__dots {
    transform: rotate(180deg);
}

/* Dots */
.dot {
    width: var(--dot-size);
    height: var(--dot-size);
    border-radius: 50%;
    background: var(--dot-color);
}


/* Put pseudo-layers at 0/1, then lift content above them */
.card {
    position: relative;
}

.card--dark::before {
    z-index: 9;
    background-size: 38%;
    background-position: center center;
    background-repeat: no-repeat;
    mix-blend-mode: exclusion;
    filter: unset;
    transform: scale(1) !important;
}

/* background image */
.card::after {
    z-index: 1;
}

/* dark overlay */

.card__top,
.card--feature .card__content,
.card__link {
    position: relative;
    z-index: 2;
    /* content above overlay */
}

.card:hover span.card__eyebrow,
.card:hover .card__title,
.card:hover .dot {
    opacity: 1;
}

/* Base pill */
.card__pill {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 12px;
    background: #e00;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* will add left padding on hover */
    cursor: pointer;
    overflow: hidden;
    transition:
        width .35s cubic-bezier(.2, .7, .2, 1),
        background-color .25s ease,
        box-shadow .25s ease,
        padding-left .35s cubic-bezier(.2, .7, .2, 1);
}

/* Icon sizing */
.card__pill img {
    width: 18px;
    height: 18px;
    display: block;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
    will-change: transform;
}

/* Shine sweep (flush effect) */
.card__pill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: translateX(-120%);
    pointer-events: none;
}

/* On card hover: expand, push icon, run sweep */
.card:hover .card__pill {
    width: 140px;
    /* target width */
    padding-left: 18px;
    /* start position for icon */
    box-shadow: 0 8px 24px rgba(227, 6, 19, .35);
}

.card:hover .card__pill img {
    /* 140 (width) - 18 (icon) - 18 (left pad) - ~16 trailing spacing ≈ 88px */
    transform: translateX(-10px);
}

.card:hover .card__pill::after {
    animation: pill-flush .8s ease forwards;
}


.card--dark::after {
    background: #161719;
    opacity: 1;
}

article.card.card--dark {
    background-color: #161719;
}

.stage {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    background: transparent;
    overflow: hidden;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

span.info__line {
    width: 60%;
    height: 1px;
    background: #fff;
}

.card__bottom {
    margin-top: auto;
    margin-bottom: 65px;
    opacity: 0;
    max-width: 18rem;
}

.card__bottom p {
    margin: 0;
    color: #fff;
}

.card:hover .card__bottom {
    opacity: 1;
}

article.card.card--small.card--text::after {
    display: none;
}

article.card.card--small.card--text button.card__pill {
    position: relative;
    top: unset;
    right: unset;
    left: unset;
    bottom: unset;
}

article.card.card--small.card--text p {
    display: flex;
    align-items: center;
    margin: 0;
    justify-content: space-between;
    font-size: 1.5rem;
    line-height: 1.9rem;
    font-weight: 400;
    letter-spacing: -1px;
}

article.card.card--small.card--text>a {
    padding: 32px 36px;
}



article.card.card--small.card--text p em {
    font-style: normal;
    color: #cf0405;
    font-weight: 500;
    letter-spacing: -1px;
    opacity: 1;
    margin-bottom: 1.5rem;
}

@keyframes pill-flush {
    to {
        transform: translateX(120%);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

    .card__pill,
    .card__pill img {
        transition: none;
    }

    .card__pill::after {
        animation: none !important;
        transform: none !important;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dotboard__dots {
        transition: none;
    }
}


@media (max-width: 640px) {
    .projects__grid {
        grid-auto-rows: 260px;
    }

    .services__grid {
        grid-auto-rows: 260px;
    }
}

span.info__cta-icon svg path {
    fill: #fff !important;
    color: #fff !important;
}


.wrap {
    display: flex;
    gap: 5px;
    grid-column: span 2;
    grid-row: span 2;
}

.tabs {
    display: flex;
    gap: 5px;
    flex: 1
}

.tab {
    --fg: var(--muted);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--panel);
    border-radius: var(--radius);
    padding: 24px 22px;
    isolation: isolate;
    cursor: pointer;
    flex: 1 1 0;
    min-width: 0;
    transition: flex-basis var(--speed) var(--e), flex-grow var(--speed) var(--e), background var(--speed) var(--e);
    outline: none;
    border: 0;
    color: var(--ink);
}

.tab:not(.is-active) {
    background: #242529
}

/* Expanded state */
.tab.is-active {
    flex: 3 1 0;
    background: #c41318;
    /* deep red like your first card */
}

/* Header row */
.tab__head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    position: relative;
}

.tab__count {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -1px;
    min-width: 2ch;
    color: #E3DBD8;
}

.tab__arrow {
    width: var(--arrow-size);
    height: var(--arrow-size);
    display: grid;
    place-items: center;
    transform: translateY(0);
    transition: transform var(--speed) var(--e), opacity var(--speed) var(--e);
    opacity: .85
}

.tab__arrow svg {
    display: block
}

.tab__title {
    opacity: 0;
    margin: 18px 0 8px;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: .2px;
    transition: font-size var(--speed) var(--e), color var(--speed) var(--e);
    text-align: left;
}

.tab__copy {
    color: #ececec;
    opacity: 0;
    max-width: 48ch;
    text-align: left;
}

/* Bottom row */
.tab__foot {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    gap: 6px;
    margin-top: 18px;
    text-align: left;
}

.tab__label {
    color: var(--fg);
    transition: font-size var(--speed) var(--e), color var(--speed) var(--e);
    font-size: 1.2rem;
    min-height: 41px;
}

.tab__miniicon {
    width: 28px;
    height: 28px;
    opacity: 0;
    transition: opacity var(--speed) var(--e), transform var(--speed) var(--e), fill var(--speed) var(--e);
    fill: var(--fg)
}

/* Hover effects (even when not active) */
.tab:hover .tab__arrow {
    transform: rotate(-135deg);
}

.tab:hover .tab__label {
    font-size: 1.5rem;
    color: #fff
}

.tab:hover .tab__miniicon path {
    opacity: 1;
    fill: var(--brand)
}

/* When expanded, make type a bit larger */
.tab.is-active .tab__title {
    font-size: 34px;
    opacity: 1;
}

.tab.is-active .tab__label {
    color: #fff
}

.tab.is-active .tab__miniicon {
    opacity: 1;
    fill: #fff
}

/* Image block with quarter-circle reveal */
.tab__media {
    position: relative;
    margin-top: 14px;
    border-radius: 14px;
    overflow: hidden;
    background: #0005;
    aspect-ratio: 4/3;
    opacity: 0;
}

/* The image itself */
.tab__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    text-align: left;
}

/* Quarter sweep “draw” reveal layer using a conic mask */
.tab__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    /* placeholder – masked away */
    mask:
        conic-gradient(#000 var(--sweep), transparent 0) top left / 200% 200% no-repeat,
        radial-gradient(#000 99%, transparent 100%) center/100% 100% no-repeat;
    -webkit-mask:
        conic-gradient(#000 var(--sweep), transparent 0) top left / 200% 200% no-repeat,
        radial-gradient(#000 99%, transparent 100%) center/100% 100% no-repeat;
    pointer-events: none;
}

/* Put the actual photo below the mask layer by duplicating it with a background */
.tab__media>.img-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: inherit;
    opacity: 0;
}

/* Start sweep at 0 (hidden). When active, animate to 90deg */
.tab {
    --sweep: 0deg
}

.tab.is-animating {
    transition: --sweep 700ms cubic-bezier(.2, .7, .2, 1)
}

.tab.is-active {
    --sweep: 90deg
}

/* A slim arc stroke to “draw” the quarter border */
.arc {
    position: absolute;
    inset: 0;
    pointer-events: none
}

.arc svg {
    width: 100%;
    height: 100%
}

.arc path {
    stroke: #ffffffa6;
    stroke-width: 6;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 700ms cubic-bezier(.2, .7, .2, 1);
    mix-blend-mode: overlay;
}

.tab.is-active .arc path {
    stroke-dashoffset: 750
}

/* reveals roughly a quarter */

/* Tiny separators to mimic columns */
.tab+.tab::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: #00000050;
    border-radius: 1px
}

/* Demo-only colors: first tab like your screenshot */
.tab[data-key="01"].is-active {
    background: var(--brand)
}

.tab__head .tab__arrow svg path {
    fill: #E3DBD8;
}

.tab__head:after {
    content: "";
    width: 85px;
    height: 1px;
    background: #DFD9D733;
    position: absolute;
    bottom: -10px;
}

.tab:hover .tab__count {
    color: #fff;
}

.tab:hover .tab__miniicon {
    opacity: 1;
}

.tab.is-active p.tab__copy {
    opacity: 1;
}

.tab.is-active .tab__media {
    opacity: 1;
}

.tab__media {}

.tab.is-active .tab__media>.img-bg {
    opacity: 1;
}

.tab.is-active .tab__media img {
    opacity: 1;
}

.tab.is-active .tab__miniicon path {
    fill: #fff !important;
}




/* --- Random square reveal overlay --- */
.tab__media {
    position: relative;
}

.tab__media .reveal-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(var(--cols, 12), 1fr);
    grid-template-rows: repeat(var(--rows, 8), 1fr);
    pointer-events: none;
    /* overlay shouldn't block clicks */
    z-index: 3;
    /* sits above the image */
}

.tab__media .reveal-grid .tile {
    background: #0b0b0c;
    /* cover color (can be #000 or match theme) */
    opacity: 1;
    transform: scale(1);
}

/* when we add .play on .tab__media, each tile fades out with its own delay */
.tab__media.play .tile {
    animation: tile-out 600ms ease forwards;
    animation-delay: calc(var(--r) * 450ms);
    /* 0–450ms random delay */
}

@keyframes tile-out {
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* ================================
   Journey Slider (BEM + scoped)
   Usage: <section class="journey-slider" dir="ltr|rtl">...</section>
   ================================ */
.journey-slider {
    --bg: #141516;
    --panel: #1b1c1e;
    --muted: #9aa0a6;
    --fg: #e5e7eb;
    --brand: #E30613;
    --radius: 20px;
    --g: 5px;
    --t: 260ms cubic-bezier(.2, .8, .2, 1);
    color: var(--fg);
    background: var(--bg);
}

.journey-slider__grid {
    display: grid;
    gap: var(--g);
    grid-template-columns: 1.3fr 1.6fr 0.6fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "image head arrows"
        "image content rail";
}

@media (max-width:1024) {
    .journey-slider__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        grid-template-areas:
            "head" "arrows" "image" "content" "rail";
    }
}

.journey-slider__tile {
    background: var(--panel);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden
}

.journey-slider__image {
    grid-area: image
}

.journey-slider__image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .35));
    z-index: 1;
    pointer-events: none
}

.journey-slider__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    filter: grayscale(100%);
    transform: scale(1.02);
    transition: transform 600ms ease
}

.journey-slider__image--enter .journey-slider__media {
    transform: scale(1.06)
}

.journey-slider__head {
    grid-area: head;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 80px 52px;
}

.journey-slider__title {
    letter-spacing: .2px;
    color: #888891;
    font-weight: 400;
    font-size: 1.8rem;
}

.journey-slider__dots {
    display: flex;
    align-items: center;
    gap: 8px
}

.journey-slider[dir="rtl"] .journey-slider__dots {
    flex-direction: row-reverse
}

.journey-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #3a3b3d;
    opacity: .8;
    transition: transform var(--t), width var(--t), background var(--t), opacity var(--t);
    appearance: none;
    border: 0;
    padding: 0;
    cursor: pointer
}

.journey-slider__dot--active {
    width: 34px;
    background: var(--brand);
    opacity: 1
}

.journey-slider__arrows {
    grid-area: arrows;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.journey-slider[dir="rtl"] .journey-slider__arrows {
    flex-direction: row-reverse
}

.journey-slider__arrow {
    background-color: transparent;
    cursor: pointer;
    transition: background var(--t), transform var(--t), border-color var(--t);
    border: unset;
}

.journey-slider__arrow:hover {
    transform: translateY(-1px);
}

.journey-slider__arrow svg {
    width: 30px;
    height: 25px;
}

.journey-slider[dir="rtl"] .journey-slider__arrow svg {
    transform: scaleX(-1)
}

.journey-slider__content {
    grid-area: content;
    padding: 52px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 520px
}

.journey-slider__eyebrow {
    color: var(--muted);
    font-size: 2.1rem;
}

.journey-slider__heading {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1.8rem;
    color: #C0C0C0;
    font-weight: 500;
}

.journey-slider__lead {
    color: #888891;
    font-size: 1.2rem;
    line-height: 1.6
}

.journey-slider__year {
    margin-top: auto;
    font-size: 2.8rem;
    color: #888891;
    font-weight: 500;
}

.journey-slider__sub {
    color: #5F5F66;
    font-size: 1rem;
}

.journey-slider__rail {
    grid-area: rail;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 36px;
    justify-content: center;
}

.journey-slider__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 14px;
    padding: 18px;
    background: var(--brand);
    color: #161719;
    cursor: pointer;
    font-weight: 500;
    transition: filter var(--t), transform var(--t);
    font-size: 1rem;
    text-align: left;
}

.journey-slider__cta:hover {
    filter: brightness(1.05);
    transform: translateY(-1px)
}

.journey-slider__note {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 400;
}

/* direction-aware content swap */
.journey-slider__swap {
    opacity: 0;
    transform: translateX(var(--shift))
}

.journey-slider__swap--active {
    opacity: 1;
    transform: translateX(0);
    transition: opacity var(--t), transform var(--t);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* ===== Bars Pulse (BEM + scoped) ===== */
.bars-pulse {
    --bg: #17191b;
    --bar: #2a2c2f;
    --bar-soft: #2f3134;
    --brand: #E30613;
    --pulse: 1200ms cubic-bezier(.2, .8, .2, 1) infinite;
    padding: 10px 0;
    background: var(--bg);
    /* remove if you don't want a bg strip */
}

.bars-pulse {
    --pulse-index: 3;
    /* default */
}

/* قراءة الـ data attribute */
.bars-pulse[data-pulse] {
    --pulse-index: attr(data-pulse number);
}

/* تطبيق الأنيميشن على العنصر المحدد */
.bars-pulse__bar:nth-child(var(--pulse-index)) {
    animation: bars-pulse__glow var(--pulse);
    animation-delay: calc(var(--pulse) / 2);
}

/* بقية البارات بدون أنيميشن */
.bars-pulse__bar {
    animation: none;
}

.bars-pulse__wrap {
    display: flex;
    gap: 5px;
    justify-content: flex-start;
    align-items: center;
    padding: 6px 12px;
}

.bars-pulse__bar {
    width: 6px;
    height: 16px;
    border-radius: 3px;
    background: var(--bar);
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .02);
}

/* .bars-pulse__bar:nth-child(3) {
      animation: bars-pulse__glow var(--pulse);
      animation-delay: calc(var(--pulse) / 2);
    } */

/* Optional: make ANY bar pulse by adding .is-active */
.bars-pulse__bar.is-active {
    animation: bars-pulse__glow var(--pulse);
}

.bottom-bar>p {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
}

.bottom-bar>p .card__pill {
    position: relative;
    top: unset;
    left: unset;
    bottom: unset;
    right: unset;
}

.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4.5rem;
}

/* Glow keyframes (subtle red wash and soft outer glow) */
@keyframes bars-pulse__glow {
    0% {
        background: var(--bar);
        box-shadow:
            inset 0 0 0 rgba(255, 255, 255, 0),
            0 0 0 rgba(227, 6, 19, 0);
        opacity: .65;
        transform: translateZ(0);
    }

    50% {
        background:
            linear-gradient(0deg, rgba(227, 6, 19, .90), rgba(227, 6, 19, .90)),
            var(--bar-soft);
        box-shadow:
            0 0 16px rgba(227, 6, 19, .35),
            0 0 2px rgba(227, 6, 19, .25);
        opacity: 1;
    }

    100% {
        background: var(--bar);
        box-shadow:
            inset 0 0 0 rgba(255, 255, 255, 0),
            0 0 0 rgba(227, 6, 19, 0);
        opacity: .65;
    }
}

/* ============ Team Slider (scoped) ============ */
.team-slider {
    --bg: #141516;
    --panel: #1b1c1e;
    --muted: #9aa0a6;
    --fg: #e5e7eb;
    --brand: #E30613;
    --radius: 20px;
    --g: 5px;
    --t: 260ms cubic-bezier(.2, .8, .2, 1);
    color: var(--fg);
    background: var(--bg);
}

.team-slider__grid {
    display: grid;
    gap: var(--g);
    grid-template-columns: 1.4fr 1.1fr 0.5fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "head photo arrows"
        "content photo socials";
}

.team-slider__social svg {
    width: 24px;
    height: 24px;
    fill: #E3DBD8;
}

.team-slider__social svg path {
    fill: #E3DBD8;
}

@media (max-width:1024px) {
    .team-slider__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "head" "arrows" "photo" "content" "socials";
    }
}

.team-slider__tile {
    background: var(--panel);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden
}

/* Head */
.team-slider__head {
    grid-area: head;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 32px
}

.team-slider__title {
    font-size: 1.6rem;
    font-weight: 500;
    color: #c7c8cc
}

.team-slider__dots {
    display: flex;
    gap: 8px;
    align-items: center
}

.team-slider[dir="rtl"] .team-slider__dots {
    flex-direction: row-reverse
}

.team-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #3a3b3d;
    opacity: .8;
    transition: transform var(--t), width var(--t), background var(--t), opacity var(--t);
    appearance: none;
    border: 0;
    padding: 0;
    cursor: pointer
}

.team-slider__dot--active {
    width: 34px;
    background: var(--brand);
    opacity: 1
}

/* Arrows */
.team-slider__arrows {
    grid-area: arrows;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 72px;
}

.team-slider[dir="rtl"] .team-slider__arrows {
    flex-direction: row-reverse
}

.team-slider__arrow {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background var(--t), transform var(--t), border-color var(--t)
}

.team-slider__arrow:hover {
    transform: translateY(-1px);
}

.team-slider__arrow svg {
    width: 30px;
    height: 25px;
}

.team-slider[dir="rtl"] .team-slider__arrow svg {
    transform: scaleX(-1)
}

/* Photo (center, two rows) */
.team-slider__photo {
    grid-area: photo;
    display: flex;
    align-items: center;
    justify-content: center
}

.team-slider__img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center 40%;
    filter: none;
    /* keep color */
    transform: scale(1.01);
    transition: transform 600ms ease;
}

.team-slider__photo--enter .team-slider__img {
    transform: scale(1.04)
}

/* Content */
.team-slider__content {
    grid-area: content;
    padding: 42px 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 520px
}

.team-slider__name {
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 600;
    color: #e1e2e5;
    margin: 0
}

.team-slider__role {
    color: #9ea3aa;
    font-size: 1.1rem;
    margin-top: .2rem
}

.team-slider__bio {
    color: #a6a9b0;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: auto
}

/* Socials */
.team-slider__socials {
    grid-area: socials;
    display: flex;
    justify-content: center;
    align-items: center
}

.team-slider__social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.team-slider__social {
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #202124;
    text-decoration: none;
    transition: background var(--t), transform var(--t), border-color var(--t), color var(--t)
}

.team-slider__social:hover {
    background: #262729;
    border-color: #3a3c40;
    color: #fff
}

/* Swap animation (direction-aware) */
.team-slider__swap {
    opacity: 0;
    transform: translateX(var(--shift))
}

.team-slider__swap--active {
    opacity: 1;
    transform: translateX(0);
    transition: opacity var(--t), transform var(--t);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.journey-slider__arrow svg path {
    fill: #e30613;
}

.team-slider__arrow svg path {
    fill: #e30613;
}

/* ============ Endorse Slider (BEM + scoped) ============ */
.endorse-slider {
    --bg: #141516;
    --panel: #1b1c1e;
    --muted: #9aa0a6;
    --fg: #e5e7eb;
    --brand: #E30613;
    --radius: 20px;
    --g: 16px;
    --t: 260ms cubic-bezier(.2, .8, .2, 1);
    color: var(--fg);
    background: var(--bg);
}

.endorse-slider__grid {
    display: grid;
    gap: var(--g);
    grid-template-columns: 1fr 0.28fr;
    /* stage + narrow right column */
    grid-template-rows: auto auto;
    /* top stage, bottom thumbs */
    grid-template-areas:
        "stage nav"
        "track track"
        "thumbs thumbs";
}

@media (max-width:1024px) {
    .endorse-slider__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "stage" "nav" "track" "thumbs";
    }
}

.endorse-slider__tile {
    background: var(--panel);
    border-radius: 14px;
    position: relative;
    overflow: hidden
}

/* ===== Stage Layout (internal grid) ===== */
.endorse-slider__stage {
    grid-area: stage;
    display: grid;
    gap: 50px;
    padding: 57px 40px;
    grid-template-columns: 0.55fr 1.64fr;
    grid-template-areas:
        "portrait quote";
}

@media (max-width:900px) {
    .endorse-slider__stage {
        grid-template-columns: 1fr;
        grid-template-areas: "portrait" "quote";
    }
}

.endorse-slider__portrait {
    grid-area: portrait;
    margin: 0;
    align-self: start;
    aspect-ratio: 1/1.5;
}

.endorse-slider__img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    border-radius: 14px !important;
    transform: scale(1.01);
    transition: transform 600ms ease;
}

.endorse-slider__stage--enter .endorse-slider__img {
    transform: scale(1.04)
}

.endorse-slider__quote {
    grid-area: quote;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px
}

.endorse-slider__quote-mark {
    width: 44px;
    height: 44px;
    color: #6c6f74;
    opacity: .6;
    flex: none;
}

.endorse-slider__text {
    color: #888891;
    font-size: 1.6rem;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
    letter-spacing: .2px;
}

.endorse-slider__meta {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 6px
}

.endorse-slider__name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #C0C0C0;
    grid-column: 1 / -1
}

.endorse-slider__role {
    color: #9aa0a6
}

.endorse-slider__brand {
    color: #8f949b;
    justify-self: end
}

/* ===== Right Nav (arrows) ===== */
.endorse-slider__nav {
    grid-area: nav;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 20px
}

.endorse-slider[dir="rtl"] .endorse-slider__nav {
    flex-direction: row-reverse
}

.endorse-slider__arrow {
    display: grid;
    place-items: center;
    border: none;
    color: #fff;
    background: transparent;
    cursor: pointer;
    transition: background var(--t), transform var(--t), border-color var(--t);
    padding: 0;
}

.endorse-slider__arrow:hover {
    background: transparent;
    transform: translateY(-1px);
    border-color: transparent;
}

.endorse-slider__arrow svg {
    width: 32px;
    height: 32px;
}

.endorse-slider__arrow svg path {
    fill: var(--brand);
}

.endorse-slider[dir="rtl"] .endorse-slider__arrow svg {
    transform: scaleX(-1)
}

/* ===== Track row (label + dots) ===== */
.endorse-slider__track {
    grid-area: track;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px
}

.endorse-slider__label {
    color: #9aa0a6
}

.endorse-slider__dots {
    display: flex;
    gap: 8px;
    align-items: center
}

.endorse-slider[dir="rtl"] .endorse-slider__dots {
    flex-direction: row-reverse
}

.endorse-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #3a3b3d;
    opacity: .8;
    transition: width var(--t), background var(--t), opacity var(--t);
    appearance: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.endorse-slider__dot--active {
    width: 34px;
    background: var(--brand);
    opacity: 1
}

/* ===== Thumbnails row ===== */
.endorse-slider__thumbs {
    grid-area: thumbs;
    padding: 14px
}

.endorse-slider__thumbs-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(97.7% / 8);
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}

.endorse-slider__thumb {
    padding: 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    background: #0f1011;
    cursor: pointer;
    transition: transform var(--t), outline-color var(--t);
    border: navajowhite;
}

.endorse-slider__thumb:focus-visible {
    outline: 2px solid var(--brand)
}

.endorse-slider__thumb-img {
    width: 100%;
    /* height: 170px; */
    object-fit: cover;
    display: block;
    filter: grayscale(.1);
    aspect-ratio: 1/1.2;
}

/* .endorse-slider__thumb--active:after {
      content: "";
      background-color: #212225;
      position: absolute;
      top: 0;
      bottom: 0;
      right: 0;
      left: 0;
    } */

/* Direction-aware content swap */
.endorse-slider__swap {
    opacity: 0;
    transform: translateX(var(--shift));
    height: 100%;
}

.endorse-slider__swap--active {
    opacity: 1;
    transform: translateX(0);
    transition: opacity var(--t), transform var(--t);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.endorse-slider__thumb--active {
    position: relative;
    overflow: hidden;
}

/* Dark overlay */
.endorse-slider__thumb--active::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(21, 22, 25);
    opacity: 0;
    animation: thumb-overlay-fade 600ms ease forwards;
}

/* Red arrow animation */
.endorse-slider__thumb--active::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -40px;
    /* Start hidden below */
    width: 32px;
    height: 39px;
    background: url(assets/img/arrowup.svg) no-repeat center / contain;
    filter: brightness(0) saturate(100%) invert(16%) sepia(87%) saturate(5299%) hue-rotate(350deg) brightness(96%) contrast(96%);
    /* converts any arrow SVG (black) to brand red (#E30613) */
    opacity: 0;
    transform: translateX(-50%) translateY(0);
    animation: thumb-arrow-rise 700ms cubic-bezier(.25, .8, .25, 1) forwards;
    z-index: 3;
}

/* Overlay fade */
@keyframes thumb-overlay-fade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Arrow rise from bottom to middle */
@keyframes thumb-arrow-rise {
    0% {
        bottom: -40px;
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.8);
    }

    60% {
        bottom: 50%;
        opacity: 1;
        transform: translateX(-50%) translateY(30%) scale(1.05);
    }

    100% {
        bottom: 50%;
        opacity: 1;
        transform: translateX(-50%) translateY(50%) scale(1);
    }
}

/* =========================
   Article Grid (scoped)
   ========================= */
.article-grid {
    --bg: #141516;
    --panel: #1b1c1e;
    --muted: #9aa0a6;
    --fg: #e5e7eb;
    --brand: #E30613;
    --radius: 18px;
    --t: 260ms cubic-bezier(.2, .8, .2, 1);
    background: var(--bg);
    color: var(--fg);
}

.article-grid__list {
    display: grid;
    gap: 5px;
    grid-template-columns: 1fr 1fr;
}

@media (max-width:900px) {
    .article-grid__list {
        grid-template-columns: 1fr;
    }
}

/* Card */
.article-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--panel);
}

.article-card__link {
    display: block;
    position: relative;
    padding: 22px 22px 20px;
    min-height: 550px;
    text-decoration: none;
    color: inherit;
}

/* Media + overlay */
.article-card__media {
    position: absolute;
    inset: 0;
    background-image: var(--img);
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transform: scale(1.03);
    transition: transform 600ms ease;
}

.article-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .76);
    /* lighter overlay as requested */
    transition: opacity var(--t);
    opacity: 1;
}

.article-card:hover .article-card__overlay {
    opacity: 0.6;
}

.article-card:hover .article-card__media {
    transform: scale(1.06);
}

/* Header row */
.article-card__head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .85rem;
    color: #c0c2c7;
    opacity: .9;
}

/* Title */
.article-card__title {
    position: relative;
    z-index: 2;
    margin: 18px 0 0;
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 600;
    color: #e6e7ea;
    max-width: 48ch;
}

/* Bottom area (desc + CTA) */
.article-card__bottom {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-direction: column;
}

/* Description — hidden then shows on hover */
.article-card__desc {
    color: #c6c8cd;
    max-width: 56ch;
    margin: 0;
    opacity: 0;
    /* hidden initially */
    transform: translateY(6px);
    transition: opacity var(--t), transform var(--t);
    pointer-events: none;
    /* avoid blocking the button before hover */
}

.article-card:hover .article-card__desc {
    opacity: 1;
    transform: translateY(0);
}

/* CTA button — wider/bigger on hover */
.article-card__cta {
    --h: 44px;
    border: 0;
    cursor: pointer;
    height: 62px;
    min-width: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #0f1011;
    border-radius: 12px;
    transition: transform var(--t), filter var(--t), width var(--t), padding var(--t), min-width var(--t);
}

.article-card__cta:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* widen on card hover (not only btn hover) */
.article-card:hover .article-card__cta {
    min-width: 124px;
    /* wider */
    height: 62px;
}

.article-card__cta-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* small niceties */
.article-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px #2a2b2e;
    pointer-events: none;
}

/* ===== Brand Tickers (BEM + scoped, no keyframes) ===== */
.brand-tickers {
    --bg: #E30613;
    --fg: #fff;
    --muted: #ffffffcc;
    --gap: 64px;
    /* visual space between items */
    --pad: 28px;

    background: var(--bg);
    color: var(--fg);
    padding: var(--pad) 0;
    overflow: hidden;
    font-family: system-ui, -apple-system, "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

/* one scrolling row */
.brand-tickers__row {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    touch-action: pan-y;
}

/* moving line */
.brand-tickers__track {
    display: inline-flex;
    gap: var(--gap);
    /* the space we must account for in JS */
    will-change: transform;
    white-space: nowrap;
}

/* items */
.brand-tickers__item {
    display: inline-block;
    white-space: nowrap;
}

/* sizes */
.brand-tickers__row--xl .brand-tickers__item {
    font-size: 9rem;
    font-weight: 700;
    line-height: 1.3;
}

.brand-tickers__row--xxl .brand-tickers__item {
    font-size: 11.625rem;
    font-weight: 900;
    line-height: 1.3;
}

.brand-tickers__row--lg .brand-tickers__item {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.3;
}

.brand-tickers__row--sm .brand-tickers__item {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.3;
}

/* edge fade (optional) */
.brand-tickers__row::before,
.brand-tickers__row::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inline-size: 6rem;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.brand-tickers__row::before {
    inset-inline-start: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, .12), transparent);
}

.brand-tickers__row::after {
    inset-inline-end: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, .12), transparent);
}

/* pause style (just to drop will-change) */
.brand-tickers__row.is-paused .brand-tickers__track {
    will-change: auto;
}

/* responsive */
@media (max-width:900px) {
    :root {
        --gap: 32px;
    }

    .brand-tickers__row--xl .brand-tickers__item {
        font-size: 4.5rem;
    }

    .brand-tickers__row--lg .brand-tickers__item {
        font-size: 2.6rem;
    }

    .brand-tickers__row--sm .brand-tickers__item {
        font-size: 1rem;
    }
}

.fade-wrapper {
    position: relative;
    overflow: hidden;
}

/* Top fade */
.fade-wrapper::before {
    z-index: 9;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 15vw;
    /* adjust */
    pointer-events: none;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 1),
            rgba(255, 255, 255, 0));
}

/* Bottom fade */
.fade-wrapper::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 15vw;
    /* adjust */
    pointer-events: none;
    background: linear-gradient(to top,
            rgba(255, 255, 255, 1),
            rgba(255, 255, 255, 0));
}

.contact-section__panel.contact-section__panel--row3 {
    position: relative;
}


/* Top fade */
.contact-section__panel.contact-section__panel--row3::before {
    z-index: 9;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 15vw;
    /* adjust */
    pointer-events: none;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 1),
            rgba(255, 255, 255, 0));
}

/* Bottom fade */
.contact-section__panel.contact-section__panel--row3::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 15vw;
    /* adjust */
    pointer-events: none;
    background: linear-gradient(to top,
            rgba(255, 255, 255, 1),
            rgba(255, 255, 255, 0));
}

.contact-section__panel.contact-section__panel--row3::before {
    background: linear-gradient(to right,
            #212225,
            #e3061300);
}

.contact-section__panel.contact-section__panel--row3::after {
    background: linear-gradient(to left,
            #212225,
            #e3061300);
}






.fade-wrapper::before {
    background: linear-gradient(to right,
            rgba(227, 6, 19, 1),
            rgba(227, 6, 19, 0));
}

.fade-wrapper::after {
    background: linear-gradient(to left,
            rgba(227, 6, 19, 1),
            rgba(227, 6, 19, 0));
}

.fade-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.brand-tickers__row--l span.brand-tickers__item {
    font-size: 4.3rem;
    line-height: 6.4rem;
}

.endorse-slider__img {
    filter: grayscale(1);
}

.endorse-slider__thumb-img {
    filter: grayscale(1);
}


ul.stack-cards.js-stack-cards {
    padding: 0;
    list-style: none;
    background-color: #212225;
    margin: 0;
}

:root {
    --space-unit: 1em;
    --space-xxxxs: calc(0.125 * var(--space-unit));
    --space-xxxs: calc(0.25 * var(--space-unit));
    --space-xxs: calc(0.375 * var(--space-unit));
    --space-xs: calc(0.5 * var(--space-unit));
    --space-sm: calc(0.75 * var(--space-unit));
    --space-md: calc(1.25 * var(--space-unit));
    --space-lg: calc(2 * var(--space-unit));
    --space-xl: calc(3.25 * var(--space-unit));
    --space-xxl: calc(5.25 * var(--space-unit));
    --space-xxxl: calc(8.5 * var(--space-unit));
    --space-xxxxl: calc(13.75 * var(--space-unit));
    --component-padding: var(--space-md);
}

:root {
    --max-width-xxxxs: 20rem;
    --max-width-xxxs: 26rem;
    --max-width-xxs: 32rem;
    --max-width-xs: 38rem;
    --max-width-sm: 48rem;
    --max-width-md: 64rem;
    --max-width-lg: 80rem;
    --max-width-xl: 90rem;
    --max-width-xxl: 100rem;
    --max-width-xxxl: 120rem;
    --max-width-xxxxl: 150rem;
}

.stack-cards__item {
    position: sticky;
    top: var(--space-sm);
    transform-origin: center top;
    border: none;
}

/* ===== Stacked cards base ===== */

:root {
    --contact-bg: #0f1013;
    --contact-panel-bg: #17181d;
    --contact-border: #262830;
    --contact-text: #f5f5f5;
    --contact-muted: #8d8f98;
    --contact-red: #e30613;
    --contact-radius-lg: 24px;
    --contact-radius-md: 18px;
    --contact-gap: 1.5rem;
    --contact-font: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

.contact-section {
    background-color: #212225;
    color: var(--contact-text);
    font-family: var(--contact-font);
}

/* .contact-section__inner {
      max-width: 1600px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
      gap: 1.5rem;
    } */

.contact-section__inner {
    background-color: #000;
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "row1 row1"
        /* full-width row 1  */
        "col1 col2"
        /* row 2 = 2 columns */
        "row3 row3";
    /* full-width row 3  */
    gap: 4px;
    padding: 4px;
}

.contact-section__panel--row1 {
    grid-area: row1;
}

.contact-section__panel--col1 {
    grid-area: col1;
}

.contact-section__panel--col2 {
    grid-area: col2;
}

.contact-section__panel--row3 {
    grid-area: row3;
    padding: 15px 0;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
}

/* Columns */
.contact-section__column {
    display: flex;
    flex-direction: column;
    gap: var(--contact-gap);
}

/* Panels */
.contact-section__panel {
    background-color: #212225;
    border-radius: 8px;
}

/* Empty spacer block to mimic top dark card */
.contact-section__panel--spacer {
    min-height: 230px;
}

/* Titles / text */
.contact-section__title {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.015em;
    margin: 0;
}

.contact-section__subtitle {
    margin: 0;
    font-size: 1.1rem;
    color: #888891;
    margin-top: 6px;
}

/* Socials */
.contact-section__socials {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-section__socials-item {
    margin: 0;
}

.contact-section__socials-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--contact-border);
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--contact-text);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
        transform 0.15s ease;
}

.contact-section__socials-link:hover,
.contact-section__socials-link:focus-visible {
    background-color: var(--contact-red);
    border-color: var(--contact-red);
    color: #fff;
    transform: translateY(-1px);
}

/* Info blocks */
.contact-section__info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.contact-section__info-block {}

.contact-section__info-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--contact-muted);
    margin-bottom: 0.35rem;
    display: flex;
    gap: 12px;
}

.contact-section__info-value {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--contact-text);
    text-decoration: none;
}

.contact-section__info-value:hover,
.contact-section__info-value:focus-visible,
.contact-section__info-phone:hover,
.contact-section__info-phone:focus-visible {
    color: #ffffff;
}

.contact-section__info-phone {
    color: var(--contact-text);
    text-decoration: none;
}

/* Form */
.contact-section__panel--form {
    display: flex;
    flex-direction: column;
    background-color: #000;
}

.contact-section__form-header {
    padding: 24.3px 24px;
    border-bottom: 4px solid #000;
    /* margin-bottom: 0.25rem; */
    border-radius: 8px;
    background-color: #212225;
    min-height: 118px;
}

.contact-section__form {
    padding: 40px 32px;
    border-top: 1px solid #000;
    /* border-bottom: 4px solid #000; */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    border-radius: 8px;
    background-color: #212225;
    height: 100%;
}

.contact-section__field-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-section__field-group--full {
    grid-column: 1 / -1;
}

.contact-section__label {
    font-size: 0.8rem;
    color: var(--contact-muted);
}

.contact-section__input,
.contact-section__textarea {
    background-color: #101117;
    border-radius: var(--contact-radius-md);
    border: 1px solid #242630;
    padding: 0.85rem 0.9rem;
    font-size: 0.9rem;
    color: var(--contact-text);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    width: 100%;
}

.contact-section__field-group p {
    margin: 0;
    line-height: 100%;
}

label.contact-section__label {
    line-height: 0.5rem;
    margin-bottom: 10px;
}

.contact-section__input::placeholder,
.contact-section__textarea::placeholder {
    color: #5f616b;
}

.contact-section__input:focus-visible,
.contact-section__textarea:focus-visible {
    border-color: var(--contact-red);
    box-shadow: 0 0 0 1px rgba(227, 6, 19, 0.55);
}

/* Footer: legal + submit button */
.contact-section__footer {
    grid-column: 1 / -1;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-section__legal {
    margin: 0;
    font-size: 0.8rem;
    color: var(--contact-muted);
}

.contact-section__legal-link {
    color: var(--contact-red);
    text-decoration: none;
}

.contact-section__legal-link:hover,
.contact-section__legal-link:focus-visible {
    text-decoration: underline;
}

/* Submit button */
.contact-section__submit {
    border: none;
    border-radius: 16px;
    width: 52px;
    height: 44px;
    background-color: var(--contact-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.contact-section__submit-icon {
    font-size: 1.2rem;
    color: #fff;
}

.contact-section__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(227, 6, 19, 0.45);
}

.contact-section__submit:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Responsive */
@media (max-width: 960px) {
    .contact-section__inner {
        /* grid-template-columns: minmax(0, 1fr); */
    }

    .contact-section__panel--spacer {
        display: none;
    }
}

@media (max-width: 640px) {
    .contact-section {
        padding: 3.5rem 1rem;
    }

    .contact-section__panel {
        /* padding: 1.5rem 1.25rem; */
        border-radius: 18px;
    }

    .contact-section__form {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-section__footer {
        align-items: flex-start;
    }
}

:root {
    --bf-bg: #101115;
    --bf-panel-bg: #17181d;
    --bf-panel-alt: #15161b;
    --bf-border: #252732;
    --bf-border-soft: #1d1f28;
    --bf-text: #f5f5f5;
    --bf-muted: #90929c;
    --bf-red: #e30613;
    --bf-yellow: #ffc700;
    --bf-radius-lg: 24px;
    --bf-radius-md: 18px;
    --bf-gap: 1.5rem;
    --bf-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* SECTION */
.brand-footer {
    background-color: #212225;
    color: var(--bf-text);
    font-family: var(--bf-font);
}

.brand-footer__inner {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    background-color: #000;
    padding: 5px;
    border-radius: 8px;
}

/* GENERIC CARD */
.brand-footer__card {
    background-color: #212225;
    border-radius: var(--bf-radius-lg);
    padding: 2.25rem 2.5rem;
    position: relative;
    overflow: hidden;
}

/* GRID POSITIONS */
.brand-footer__card--tagline {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    gap: 11px;
    min-height: 400px;
    justify-content: center;
}

.brand-footer__card--hero {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
    padding: 2rem 3rem;
    /* background: radial-gradient(circle at top left, #23242c 0, #212225 40%, #101115 100%); */
}

.brand-footer__card--nav {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.brand-footer__card--newsletter {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
}

.brand-footer__card--copyright {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    padding-block: 1.75rem;
    display: flex;
    align-items: center;
}

.brand-footer__card--about {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    padding-block: 1.75rem;
}

.brand-footer__card--social {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
    padding-block: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* TAGLINE CARD */
.brand-footer__bubble {
    width: 64px;
    height: 64px;
    /* border-radius: 32px; */
    /* background-color: var(--bf-yellow); */
    /* margin-right: 2rem; */
}

.brand-footer__bubble img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.brand-footer__tagline-text {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.3;
    color: #888891;
    font-weight: 500;
    border-left: 2px solid #888891;
    padding-left: 1.4rem;
}

/* HERO CARD */
.brand-footer__hero-header {
    display: flex;
    justify-content: flex-end;
    font-size: 0.8rem;
    color: #d6d7dd;
    margin-bottom: 2rem;
}

.brand-footer__hero-email {
    opacity: 0.92;
}

.brand-footer__hero-body {
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100% - 50px);
    justify-content: space-between;
}

.brand-footer__hero-title {
    margin: 0;
    font-size: 166px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--bf-red);
    mix-blend-mode: screen;
    text-align: center;
}

.brand-footer__hero-location {
    font-size: 0.8rem;
    color: #c3c4cb;
}

.brand-footer__hero-location strong {
    color: #ffffff;
}

/* simple white band to hint the “particle line” */
.brand-footer__hero-noise {
    position: absolute;
    left: -10%;
    right: -10%;
    top: 55%;
    height: 3px;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.45) 50%,
            rgba(255, 255, 255, 0) 100%);
    opacity: 0.7;
}

/* NAV CARD */
.brand-footer__nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem;
}

.brand-footer__nav-col {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.brand-footer__nav-indicator {
    height: 8px;
    display: flex;
    margin-bottom: 12px;
    gap: 5px;
}

.brand-footer__nav-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background-color: #6c6f79;
}

.brand-footer__nav-dot--red {
    background-color: var(--bf-red);
    width: 20px;
}

.brand-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brand-footer__nav-link {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--bf-text);
    text-decoration: none;
    transition: color 0.15s ease;
}

.brand-footer__nav-link:hover,
.brand-footer__nav-link:focus-visible {
    color: #ffffff;
}

/* NEWSLETTER CARD */
.brand-footer__newsletter-header {
    margin-bottom: 1.5rem;
}

.brand-footer__newsletter-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.brand-footer__newsletter-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: var(--bf-muted);
}

.brand-footer__asterisk {
    color: var(--bf-red);
}

/* fields row */
.brand-footer__newsletter-form {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: center;
}

.brand-footer__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--bf-muted);
}

.brand-footer__field-label {
    /* visually hidden label text is above, so we keep subtle */
}

.brand-footer__input {
    background-color: #15161b;
    border-radius: 999px;
    border: 1px solid var(--bf-border-soft);
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: var(--bf-text);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.brand-footer__input:focus-visible {
    border-color: var(--bf-red);
    box-shadow: 0 0 0 1px rgba(227, 6, 19, 0.5);
}

.brand-footer__submit {
    width: 58px;
    height: 46px;
    border-radius: 999px;
    border: none;
    background-color: var(--bf-red);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.18s ease;
}

.brand-footer__submit-arrow {
    font-size: 1.3rem;
}

.brand-footer__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(227, 6, 19, 0.55);
}

.brand-footer__submit:active {
    transform: translateY(0);
    box-shadow: none;
}

.brand-footer__newsletter-legal,
.brand-footer__newsletter-note {
    margin: 0.9rem 0 0;
    font-size: 0.8rem;
    color: var(--bf-muted);
}

.brand-footer__link {
    color: var(--bf-red);
    text-decoration: none;
}

.brand-footer__link:hover,
.brand-footer__link:focus-visible {
    text-decoration: underline;
}

/* BOTTOM ROW */
.brand-footer__copyright-text,
.brand-footer__about-text {
    margin: 0;
    font-size: 1rem;
    color: var(--bf-muted);
    font-weight: 400;
}

/* Social & back-to-top */
.brand-footer__social-row {
    display: flex;
    gap: 0.75rem;
}

.brand-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid var(--bf-border-soft);
    font-size: 0.75rem;
    color: var(--bf-text);
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.brand-footer__social-link:hover,
.brand-footer__social-link:focus-visible {
    background-color: var(--bf-red);
    border-color: var(--bf-red);
    transform: translateY(-1px);
}

/* Back to top button */
.brand-footer__back-top {
    background-color: transparent;
    margin-left: auto;
    border-radius: 18px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.12s ease;
}

.brand-footer__back-top-icon {
    width: 16px;
    height: 16px;
    border-left: 2px solid var(--bf-red);
    border-right: 2px solid var(--bf-red);
    border-top: 2px solid var(--bf-red);
    transform: rotate(45deg);
    margin-top: 3px;
}

.brand-footer__back-top:hover {
    background-color: var(--bf-red);
    transform: translateY(-1px);
}

.brand-footer__back-top:hover .brand-footer__back-top-icon {
    border-color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
    .brand-footer__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .brand-footer__card--hero,
    .brand-footer__card--newsletter {
        grid-column: 1 / -1;
    }

    .brand-footer__card--nav,
    .brand-footer__card--tagline,
    .brand-footer__card--copyright,
    .brand-footer__card--about,
    .brand-footer__card--social {
        grid-column: 1 / -1;
    }

    .brand-footer__card--social {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .brand-footer {
        padding-inline: 1rem;
    }

    .brand-footer__card {
        padding: 1.75rem 1.5rem;
        border-radius: var(--bf-radius-md);
    }

    .brand-footer__newsletter-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .brand-footer__submit {
        width: 100%;
    }

    .brand-footer__hero-title {
        font-size: 2.8rem;
    }
}

.contact-section__panel--follow {
    display: flex;
    justify-content: space-between;
    padding: 40px 32px;
    align-items: center;
    border-bottom: 4px solid #000;
}

.contact-section__panel--address {
    padding: 40px 32px;
    align-items: center;
    border-top: 1px solid #000;
    border-bottom: 4px solid #000;
    overflow: hidden;
    height: calc(100% - 115px);
}

.contact-section__panel.contact-section__panel--col1,
.contact-section__panel.contact-section__panel--col2 {
    background-color: #000;
}

.logos-marquee {
    width: 100%;
    overflow: hidden;
    background: transparent;
}

/* الحاوية المتحركة */
.logos-marquee__inner {
    display: flex;
    width: max-content;
    animation: logos-marquee-move 20s linear infinite;
}

/* كل تراك (القائمة الأصلية والكلون) */
.logos-marquee__track {
    display: flex;
    gap: 32px;
    /* المسافة بين اللوجوهات */
    margin: 0;
    padding: 0;
    margin-left: 32px;
}

/* شيل أي ستايل افتراضي للـ li */
.logos-marquee__item {
    list-style: none;
}

/* الصور */
.logos-marquee__item img {
    height: 32px;
    /* عدّل حسب التصميم */
    width: auto;
    display: block;
}

/* الأنيميشن: نزيح عرض قائمة واحدة بالضبط (نص العرض الكلي) */
@keyframes logos-marquee-move {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* The hero card must be positioned */
.brand-footer__card--hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    /* optional */
    isolation: isolate;
    /* ensures overlay stays inside */
}

/* Full video background */
.brand-footer__video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: auto;
    min-height: 120%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
    /* behind content */
    pointer-events: none;
}

/* Optional: subtle dark overlay */
.brand-footer__card--hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #212225a8;
    /* adjust contrast */
    z-index: 0;
}

/* ِAnimation starter  */
.request__title,
.request__subtitle,
.request__lead,
.request__note {
    opacity: 0;
    transform: translateY(40px);
    /* start slightly down */
}

.text-center-moving p.text-reveal-auto {
    position: relative;
    display: inline-block;
}

/* Each visual line wrapper (created by JS) */
.text-center-moving .text-line {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.18);
    /* faint base text */
    --reveal: 0%;
    /* 0% = nothing revealed, 100% = full line */
}

/* Full-opacity overlay for each line, clipped horizontally */
.text-center-moving .text-line::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: #C0C0C0;
    /* final visible color */
    white-space: pre;
    pointer-events: none;
    clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
    /* LTR: left→right */
}

/* RTL support: reveal from right→left when dir="rtl" is active */
.text-center-moving[dir="rtl"] .text-line::after,
.text-center-moving .text-reveal-auto[dir="rtl"] .text-line::after,
[dir="rtl"] .text-center-moving .text-line::after {
    clip-path: inset(0 0 0 calc(100% - var(--reveal)));
}



/* card tile reveal */

.card {
    position: relative;
    overflow: hidden;
}

/* طبقة المربعات */
.card .reveal-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(var(--cols, 12), 1fr);
    grid-template-rows: repeat(var(--rows, 8), 1fr);
    z-index: 2;
    pointer-events: none;
}

.card .reveal-grid .tile {
    background: #0f1011;
    /* نفس لون الباكجراوند عشان تخفي الصورة */
    opacity: 1;
    transform: scale(1);
}

/* لما نضيف .reveal-active يبدأ الأنيميشن */
.card.reveal-active .reveal-grid .tile {
    animation: tileFade 0.65s ease forwards;
    animation-delay: calc(var(--r) * 450ms);
    /* random delay لكل مربع */
}

@keyframes tileFade {
    to {
        opacity: 0;
        transform: scale(0.7);
    }
}

main>section {
    margin-bottom: 12rem;
}

/* تأكد إن الـ svg يعامل كـ block عشان الترجمات تكون واضحة */
button[aria-label="Next"] {
    overflow: hidden;
}

button[aria-label="Next"] svg {
    display: inline-block;
}

button[aria-label="Next"]:hover svg {
    animation: next-wrap 0.7s cubic-bezier(.22, .7, .25, 1.05);
}

@keyframes next-wrap {
    0% {
        transform: translateX(0);
    }

    40% {
        transform: translateX(140%);
    }

    41% {
        transform: translateX(-140%);
    }

    100% {
        transform: translateX(0);
    }
}

button[aria-label="Previous"] {
    overflow: hidden;
}

button[aria-label="Previous"] svg {
    display: inline-block;
}

button[aria-label="Previous"]:hover svg {
    animation: prev-wrap 0.7s cubic-bezier(.22, .7, .25, 1.05);
}

@keyframes prev-wrap {
    0% {
        transform: translateX(0);
    }

    40% {
        transform: translateX(-140%);
        /* تروح لليسار أولاً */
    }

    41% {
        transform: translateX(140%);
        /* تدخل من اليمين */
    }

    100% {
        transform: translateX(0);
    }
}

.card__pill {
    overflow: hidden;
    /* عشان يخفي السهم لما يطلع برة */
}

.card__pill img {
    display: inline-block;
    /* مهم جداً للحركة */
    transition: none;
    /* نمنع أي ترانزشن يتعارض */
}

.card__pill:hover img {
    animation: cardpill-next 0.7s cubic-bezier(.22, .7, .25, 1.05);
}

@keyframes cardpill-next {
    0% {
        transform: translateX(0);
    }

    40% {
        transform: translateX(140%);
        /* يندفع لليمين */
    }

    41% {
        transform: translateX(-140%);
        /* يدخل من اليسار */
    }

    100% {
        transform: translateX(0);
        /* يرجع للمكان الطبيعي */
    }
}


.contact-section__socials-link svg path {
    fill: #E3DBD8;
}

.contact-section__info-label svg path {
    fill: #5F5F66;
}

.brand-footer__back-top svg path {
    fill: #e30613;
}

li.stack-cards__item.bg.radius-lg.shadow-md.js-stack-cards__item {
    transform: translateY(var(--stack-offset, 0)) scale(1) !important;
}



/* ============================
   Floating Breakpoint Debugger
   ============================ */
.bp-debug {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    background: #000;
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    font-family: monospace;
    border-radius: 6px;
    opacity: 0.8;
    pointer-events: none;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Desktop (default) */
.bp-debug::before {
    content: "Desktop ≥ 1281px";
}

.bp-debug {
    background: #4CAF50;
    /* green */
}

/* Laptop */
@media (max-width: 1441px) {
    .bp-debug::before {
        content: "Big Labtop ≤ 1441px";
    }

    .bp-debug {
        background: #b53fab;
        /* blue */
    }

    html {
        font-size: 14px;
    }

    .brand-footer__hero-title {
        margin: 0;
        font-size: 130px;
    }

    .info {
        padding: 30px 30px;
    }

    .info__title {
        font-size: 2.1rem;
    }

    .info__head {
        gap: 4px;
    }

    .card--text .card__textwrap {
        padding-right: 20px;
    }
}

/* Laptop */
@media (max-width: 1280px) {
    .bp-debug::before {
        content: "Laptop ≤ 1280px";
    }

    .bp-debug {
        background: #3F51B5;
        /* blue */
    }

    html {
        font-size: 13px;
    }

    .tab.is-active .tab__title {
        font-size: 28px;
    }

    .tab.is-active {
        flex: 2.2 1 0;
    }

    .info {
        padding: 20px 20px;
    }

    .tab:hover .tab__label {
        font-size: 1.1rem;
    }

    .tab {
        padding: 12px;
    }

    .info__title {
        font-size: 1.8rem;
    }

    .info__text {
        font-size: 1.2rem;
    }

    .journey-slider__content {
        padding: 35px;
    }

    .journey-slider__head {
        padding: 80px 35px
    }

    .journey-slider__rail {
        padding: 15px;
    }

    .endorse-slider__stage {
        gap: 17px;
        padding: 20px 20px;
    }

    .endorse-slider__thumbs-scroller {
        grid-auto-columns: calc(90.7% / 8);
        gap: 6px;
    }

    .endorse-slider__stage {
        grid-template-columns: 0.9fr 1.64fr;
    }

    .endorse-slider__portrait {
        aspect-ratio: 1 / 1.4;
    }

    .endorse-slider__text {
        font-size: 1.4rem;
    }

    .team-slider__arrows {
        padding: 50px 34px;
    }

    .projects__grid {
        grid-auto-rows: 290px;
    }

}


/* Tablet horizontal */
@media (max-width: 1024px) {
    .bp-debug::before {
        content: "Tablet ≤ 1024px";
    }

    .bp-debug {
        background: #9C27B0;
        /* purple */
    }

    .endorse-slider__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "stage stage"
            "nav track"
            "thumbs thumbs";
    }

    .team-slider__grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-areas:
            "head head head arrows"
            "photo content content socials";
    }

    .team-slider__photo {
        margin: 0 !important;
    }

    .team-slider__content {
        min-height: 350px;
    }

    .brand-footer__hero-title {
        margin: 0;
        font-size: 100px;
    }

    .brand-footer__card--tagline {
        min-height: 320px;
    }

    h2#request-title,
    h2.main-title.request__title {
        font-size: 5rem;
    }

    .journey-slider__cta {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

/* Tablet vertical */
@media (max-width: 768px) {
    .bp-debug::before {
        content: "Tablet ≤ 768px";
    }

    .bp-debug {
        background: #FF9800;
        /* orange */
    }

    .my-200 {
        margin-top: 100px !important;
        margin-bottom: 100px !important;
    }

    .my-400 {
        margin-top: 200px !important;
        margin-bottom: 200px !important;
    }

    .hero-video__content>h1 {
        font-size: 5rem;
        line-height: 5.1rem;
    }

    section.text-center-moving p {
        font-size: 5.3rem;
        line-height: 6rem;
        letter-spacing: -3px;
    }

    p.request__subtitle {
        width: 100%;
    }

    p.request__lead {
        width: 70%;
        font-size: 2rem;
        line-height: 2.6rem;
    }

    p.request__note.request__note--right {
        width: 30%;
        margin-left: 0;
        /* margin-top: 1rem; */
    }

    .container.request__container {
        margin-bottom: 6.3rem;
    }

    article.card.card--small.card--text>a {
        padding: 20px 20px;
    }

    .card--text h3 {
        font-size: 1.9rem;
        line-height: 2.2rem;
    }

    .card__pill {
        width: 50px;
        height: 50px;
    }

    .card:hover .card__pill {
        width: 102px;
    }

    main>section {
        margin-bottom: 4rem;
    }

    button.tab {
        display: flex;
        flex-direction: row;
        max-height: 130px;
    }

    .tab__head:after {
        width: 1px;
        height: 80px;
        bottom: 14px;
        left: 0;
    }

    .tab__head {
        padding-left: 10px;
    }

    .tab.is-active .tab__foot {
        width: 100%;
    }

    .tabs {
        gap: 10px;
        flex-direction: column;
    }

    .wrap {
        grid-column: span 2;
        grid-row: span 2;
    }

    .tab.is-active {
        flex-wrap: wrap;
        max-height: max-content;
    }

    .tab.is-active .tab__head:after {
        opacity: 0;
    }

    .tab.is-active p.tab__copy {
        margin-top: 1.5rem;
    }

    .journey-slider__grid {
        grid-template-columns: 1.5fr 0.6fr 1.5fr;
        grid-template-areas:
            "image content content"
            "head arrows rail";
    }

    .journey-slider__head {
        padding: 50px 12px;
        flex-direction: column;
    }

    .team-slider__arrow svg {
        width: 22px;
        height: 20px;
    }

    .team-slider__arrows {
        padding: 35px 15px;
    }

    .team-slider__content {
        padding: 20px 20px;
    }

    .team-slider__name {
        font-size: 2.2rem;
    }

    .team-slider__content {
        min-height: 270px;
    }

    .team-slider__social-list {
        gap: 25px;
    }

    .team-slider__social svg {
        width: 20px;
        height: 20px;
    }

    .endorse-slider__stage {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas:
            "portrait  quote quote";
        gap: 17px;
        padding: 20px 20px;
    }

    p.endorse-slider__text {
        font-size: 1.1rem;
    }

    .contact-section__panel.contact-section__panel--follow {
        flex-direction: column;
        padding: 26px;
    }

    .contact-section__panel.contact-section__panel--follow {
        flex-direction: column;
        padding: 17px;
        gap: 15px;
    }

    .contact-section__info-grid {
        grid-template-columns: auto;
    }

    .team-slider__grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-areas:
            "head head head arrows"
            "photo photo content content"
            "socials socials socials socials";
    }

    ul.team-slider__social-list {
        flex-direction: row;
        margin-top: 20px;
        margin-bottom: 21px;
    }
}


/* Mobile medium */
@media (max-width: 576px) {
    .bp-debug::before {
        content: "Mobile ≤ 576px";
    }

    .bp-debug {
        background: #F44336;
        /* red */
    }

    .hero-video__content {
        flex-direction: column;
        gap: 21px;
    }

    h2.main-title.request__title {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .wrap {
        grid-column: span 2;
        grid-row: span 3;
    }

    .contact-section__panel--address {
        padding: 20px;
        border-radius: 8px;
    }

    .contact-section__form {
        padding: 20px;
    }

    .contact-section__form-header {
        padding: 20px;
        padding-bottom: 32px;
    }

    .contact-section__socials {
        gap: 5px;
    }

    .contact-section__panel.contact-section__panel--follow {
        padding: 20px;
        border-radius: 8px;
    }

    .contact-section__inner {
        /* grid-template-columns: minmax(0, 1fr); */
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "row1 row1"
            "col2 col2"
            "col1 col1"
            "row3 row3";
    }

    .brand-footer__hero-title {
        margin: 0;
        font-size: 71px;
    }

    .card--small {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bottom-bar {
        flex-wrap: wrap;
    }

    .endorse-slider__thumbs-scroller {
        grid-auto-columns: calc(91.7% / 8);
        gap: 4px;
    }

    p.request__lead {
        width: 100%;
    }

    p.request__note.request__note--right {
        width: 100%;
        margin-top: 10px;
    }

    div#tabs {
        width: 100%;
    }

    .journey-slider__content {
        padding: 15px;
        min-height: 290px;
    }

    .journey-slider__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "head arrows"
            "image image"
            "content content"
            "rail rail"
        ;
    }

    .journey-slider__image {
        min-height: 210px;
    }

    .team-slider__grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-areas:
            "head head head arrows"
            "photo photo photo photo"
            "content content content content"
            "socials socials socials socials";
    }

    .endorse-slider__stage {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas: "portrait portrait portrait" "quote quote quote";
        gap: 17px;
        padding: 20px 20px;
    }
}

/* Mobile small */
@media (max-width: 480px) {
    .bp-debug::before {
        content: "Small Mobile ≤ 480px";
    }

    .bp-debug {
        background: #E91E63;
        /* pink */
    }

    .brand-footer__hero-title {
        margin: 0;
        font-size: 50px;
    }

    .hero-video__content>h1 {
        font-size: 4rem;
        line-height: 4.1rem;
    }
}

/* Ultra small */
@media (max-width: 360px) {
    .bp-debug::before {
        content: "Ultra Small ≤ 360px";
    }

    .bp-debug {
        background: #795548;
        /* brown */
    }
}


.offcanvas-body {
    background-color: #e30613;
}

a.nav-link.text-light {
    position: relative;
    color: #fff;
    /* اللون الأساسي */
    text-decoration: none;
    background: linear-gradient(to right, #000 0%, #000 50%, #fff 50%, #fff 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: right;
    transition: background-position 0.45s ease;
    font-size: 3rem;
    font-weight: bold;
}

/* عند الهوفر: يبدأ الأسود من اليسار وينزلق لليمين */
a.nav-link.text-light:hover {
    background-position: 0 0;
}

.offcanvas-title {
    display: none;
}

ul.list-unstyled {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.brand-close {
    position: relative;
    width: 1em;
    height: 1em;
    /* تحريك ناعم */
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
    transform-origin: center center;
}

/* على الهوفر: دوران 90 درجة */
.brand-close:hover {
    transform: rotate(90deg);
}

/* عند الضغط: تصغير + اختفاء */
.brand-close.is-closing {
    transform: rotate(90deg) scale(0.2);
    opacity: 0;
}

button.btn-close.btn-close-white svg {
    width: 40px;
    height: 40px;
}

button.btn-close.btn-close-white {
    opacity: 1;
    --bs-btn-close-bg: unset;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    margin-left: auto;
    background-color: transparent;
}

#mainNav {
    background-color: transparent;
    transition: background-color 0.35s ease-in-out;
    box-shadow: none !important;
    border: none !important;
}

#mainNav.scrolled {
    background-color: #0000004f !important;
    backdrop-filter: blur(8px);
}


form.wpcf7-form {
    padding: 40px 32px;
    border-top: 1px solid #000;
    /* border-bottom: 4px solid #000; */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    border-radius: 8px;
    background-color: #212225;
    height: 100%;
}