/*
|--------------------------------------------------------------------------
| Chairman profile + Companies slider
|--------------------------------------------------------------------------
| Self-contained styles for the two new public sections.
*/

:root {
    --showcase-navy: #062a4d;
    --showcase-navy-2: #0a456d;
    --showcase-blue: #0c6789;
    --showcase-gold: #e4b83f;
    --showcase-gold-soft: #f4d77f;
    --showcase-ink: #0a2440;
    --showcase-muted: #61758a;
    --showcase-surface: #ffffff;
    --showcase-surface-soft: #f3f7fb;
    --showcase-line: rgba(6, 42, 77, .12);
    --showcase-shadow: 0 24px 70px rgba(3, 32, 58, .16);
}

html[data-theme="dark"],
html.dark,
body.dark {
    --showcase-ink: #f4f8fc;
    --showcase-muted: #b8c5d1;
    --showcase-surface: #082d4d;
    --showcase-surface-soft: #062541;
    --showcase-line: rgba(255, 255, 255, .12);
    --showcase-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

.showcase-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.showcase-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--showcase-gold);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.showcase-eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.showcase-heading h2,
.showcase-heading h3 {
    margin: 10px 0 0;
    color: var(--showcase-ink);
    line-height: 1.18;
}

.showcase-heading h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.showcase-heading h3 {
    font-size: clamp(1.45rem, 3vw, 2.35rem);
}

/* Chairman */
.chairman-profile {
    position: relative;
    overflow: clip;
    padding: clamp(74px, 9vw, 130px) 0;
    background:
        radial-gradient(circle at 12% 15%, rgba(228, 184, 63, .14), transparent 30%),
        linear-gradient(180deg, var(--showcase-surface-soft), var(--showcase-surface));
}

.chairman-profile::after {
    content: "";
    position: absolute;
    inset: auto -15% -38% auto;
    width: 640px;
    aspect-ratio: 1;
    border: 1px solid rgba(228, 184, 63, .2);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(228, 184, 63, .035),
        0 0 0 140px rgba(228, 184, 63, .025);
    pointer-events: none;
}

.chairman-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    gap: clamp(32px, 6vw, 82px);
    align-items: center;
}

.chairman-media {
    position: relative;
    min-height: 560px;
    border-radius: 34px 10px 34px 10px;
    overflow: hidden;
    background: var(--showcase-navy);
    box-shadow: var(--showcase-shadow);
}

.chairman-media img,
.chairman-media video {
    width: 100%;
    height: 100%;
    min-height: 560px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.chairman-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(3, 28, 49, .48));
    pointer-events: none;
}

.chairman-media-line {
    position: absolute;
    z-index: 2;
    inset: auto 28px 26px 28px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--showcase-gold), rgba(255, 255, 255, .18));
}

.chairman-copy h2 {
    max-width: 760px;
    margin: 14px 0 22px;
    color: var(--showcase-ink);
    font-size: clamp(2.35rem, 5.2vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.chairman-identity {
    display: grid;
    gap: 5px;
    margin-bottom: 26px;
}

.chairman-identity strong {
    color: var(--showcase-ink);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.chairman-identity span {
    color: var(--showcase-gold);
    font-weight: 750;
}

.chairman-copy > p {
    margin: 0 0 17px;
    color: var(--showcase-muted);
    font-size: 1.03rem;
    line-height: 1.95;
}

.chairman-copy .chairman-statement {
    position: relative;
    margin: 0 0 26px;
    padding: 18px 22px;
    color: var(--showcase-ink);
    border-inline-start: 4px solid var(--showcase-gold);
    border-radius: 12px;
    background: color-mix(in srgb, var(--showcase-gold) 9%, transparent);
    font-size: clamp(1.08rem, 2vw, 1.34rem);
    font-weight: 780;
    line-height: 1.75;
}

.chairman-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
}

.chairman-tags span {
    padding: 8px 13px;
    color: var(--showcase-ink);
    border: 1px solid var(--showcase-line);
    border-radius: 999px;
    background: var(--showcase-surface);
    font-size: .83rem;
    font-weight: 720;
    box-shadow: 0 8px 24px rgba(4, 40, 70, .06);
}

.chairman-tags span.is-sector {
    color: var(--showcase-gold);
    border-color: rgba(228, 184, 63, .32);
}

.chairman-journey {
    position: relative;
    z-index: 1;
    margin-top: clamp(64px, 9vw, 118px);
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.journey-card {
    position: relative;
    min-height: 290px;
    padding: 27px 24px 25px;
    border: 1px solid var(--showcase-line);
    border-radius: 22px;
    background: color-mix(in srgb, var(--showcase-surface) 92%, transparent);
    box-shadow: 0 18px 55px rgba(3, 32, 58, .08);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.journey-card:hover {
    transform: translateY(-7px);
    border-color: rgba(228, 184, 63, .45);
    box-shadow: var(--showcase-shadow);
}

.journey-marker {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: 27px;
    color: #082744;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--showcase-gold-soft), var(--showcase-gold));
    font-size: .78rem;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(228, 184, 63, .23);
}

.journey-place {
    color: var(--showcase-gold);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .04em;
}

.journey-card h4 {
    margin: 9px 0 12px;
    color: var(--showcase-ink);
    font-size: 1.1rem;
    line-height: 1.45;
}

.journey-card p {
    margin: 0;
    color: var(--showcase-muted);
    font-size: .92rem;
    line-height: 1.82;
}

/* Companies */
.companies-showcase {
    position: relative;
    overflow: clip;
    padding: clamp(72px, 9vw, 120px) 0;
    background:
    linear-gradient(
        125deg,
        rgba(24, 46, 86, .98),
        rgba(29, 66, 123, .96)
    ),
    #182E56;
}

.companies-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .16;
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .22), transparent 22%),
        radial-gradient(circle at 16% 78%, rgba(228, 184, 63, .22), transparent 25%);
    pointer-events: none;
}

.companies-heading {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    margin-bottom: 34px;
}

.companies-heading > div:first-child {
    max-width: 760px;
}

.companies-heading h2 {
    color: #fff;
}

.companies-heading p {
    max-width: 720px;
    margin: 15px 0 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.9;
}

.companies-controls {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.companies-controls button {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.companies-controls button:hover,
.companies-controls button:focus-visible {
    color: var(--showcase-navy);
    background: var(--showcase-gold);
    transform: translateY(-2px);
    outline: none;
}

.companies-controls span {
    font-size: 2rem;
    line-height: 1;
}

.companies-viewport {
    position: relative;
    z-index: 1;
    overflow: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.companies-viewport::-webkit-scrollbar {
    display: none;
}

.companies-track {
    display: flex;
    gap: 22px;
    width: max-content;
}

.company-card {
    width: min(355px, calc(100vw - 58px));
    flex: 0 0 min(355px, calc(100vw - 58px));
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 25px;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 25px 55px rgba(0, 0, 0, .19);
    backdrop-filter: blur(14px);
    transition: transform .28s ease, border-color .28s ease, background .28s ease;
}

.company-card:hover {
    transform: translateY(-8px);
    border-color: rgba(228, 184, 63, .52);
    background: rgba(255, 255, 255, .12);
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border-bottom: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
}

.company-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 220px;
    max-height: 220px;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border-radius: 18px;
    box-shadow: none;
}

html[data-theme="light"] .company-logo {
    background: linear-gradient(180deg, #eef4fb, #f8fbff);
    border-bottom: 1px solid rgba(28, 66, 123, .08);
}

html[data-theme="dark"] .company-logo {
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

.company-status {
    position: absolute;
    inset: 13px auto auto 13px;
    padding: 7px 10px;
    color: #082744;
    border-radius: 999px;
    background: var(--showcase-gold-soft);
    font-size: .72rem;
    font-weight: 900;
}

[dir="rtl"] .company-status {
    inset: 13px 13px auto auto;
}

.company-content {
    position: relative;
    min-height: 226px;
    padding: 23px 22px 26px;
}

.company-content h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.45;
}

.company-content p {
    margin: 0;
    color: rgba(255, 255, 255, .69);
    font-size: .92rem;
    line-height: 1.85;
}

.company-content a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    color: var(--showcase-gold-soft);
    font-size: .87rem;
    font-weight: 800;
    text-decoration: none;
}

.company-card-mark {
    position: absolute;
    inset: auto 22px 21px auto;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #082744;
    border-radius: 50%;
    background: var(--showcase-gold);
    font-weight: 900;
}

[dir="rtl"] .company-card-mark {
    inset: auto auto 21px 22px;
}

.companies-dots {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.companies-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .32);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.companies-dots button[aria-current="true"] {
    width: 30px;
    background: var(--showcase-gold);
}

@media (min-width: 1180px) {
    .company-card {
        width: calc((min(1180px, 100vw - 40px) - 44px) / 3);
        flex-basis: calc((min(1180px, 100vw - 40px) - 44px) / 3);
    }
}

@media (max-width: 1040px) {
    .chairman-hero {
        grid-template-columns: 1fr;
    }

    .chairman-media,
    .chairman-media img,
    .chairman-media video {
        min-height: 500px;
    }

    .chairman-copy {
        max-width: 800px;
    }

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

    .company-card {
        width: calc((100vw - 84px) / 2);
        flex-basis: calc((100vw - 84px) / 2);
    }
}

@media (max-width: 680px) {
    .showcase-shell {
        width: min(100% - 28px, 1180px);
    }

    .chairman-profile,
    .companies-showcase {
        padding-block: 64px;
    }

    .chairman-media,
    .chairman-media img,
    .chairman-media video {
        min-height: 430px;
    }

    .chairman-media {
        border-radius: 24px 8px 24px 8px;
    }

    .chairman-copy h2 {
        font-size: clamp(2.25rem, 13vw, 3.5rem);
    }

    .journey-grid {
        grid-template-columns: 1fr;
    }

    .journey-card {
        min-height: 0;
    }

    .companies-heading {
        align-items: center;
    }

    .companies-heading p {
        font-size: .93rem;
    }

    .companies-controls {
        display: none;
    }

    .company-card {
        width: calc(100vw - 48px);
        flex-basis: calc(100vw - 48px);
    }

    .company-content {
        min-height: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .journey-card,
    .company-card,
    .companies-controls button {
        transition: none;
    }

    .companies-viewport {
        scroll-behavior: auto;
    }
}

/*
|--------------------------------------------------------------------------
| Chairman video — FINAL clean implementation
|--------------------------------------------------------------------------
| Native aspect ratio.
| No crop.
| No card.
| No visible frame.
| No fixed video height.
|--------------------------------------------------------------------------
*/

.chairman-profile .chairman-showcase-shell {
    width: min(1600px, calc(100% - 56px));
}


/* Main chairman layout */
.chairman-profile .chairman-hero {
    grid-template-columns:
        minmax(0, 1.10fr)
        minmax(430px, .90fr);

    gap: clamp(34px, 4.5vw, 74px);
    align-items: center;
}


/* ================================================================
   VIDEO
   ================================================================ */

.chairman-media-wrap {
    position: relative;

    min-width: 0;
    width: 100%;

    isolation: isolate;
}


/* Soft ambient glow only */
.chairman-media-wrap::before {
    content: "";

    position: absolute;
    z-index: -1;

    inset: 8% 2%;

    background:
        radial-gradient(
            ellipse at 55% 45%,
            rgba(233, 97, 36, .14),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 52% 55%,
            rgba(29, 66, 123, .22),
            transparent 65%
        );

    filter: blur(42px);

    pointer-events: none;
}


/* Remove the old rectangular/card appearance */
.chairman-profile .chairman-media {
    position: relative;

    width: 100%;
    min-height: 0 !important;

    overflow: visible;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    isolation: isolate;

    /*
     * Very soft edge fade so the video blends
     * into the section instead of looking like a box.
     */
    -webkit-mask-image:
        radial-gradient(
            ellipse 98% 96% at 50% 50%,
            #000 0%,
            #000 82%,
            rgba(0, 0, 0, .92) 89%,
            rgba(0, 0, 0, .48) 96%,
            transparent 100%
        );

    mask-image:
        radial-gradient(
            ellipse 98% 96% at 50% 50%,
            #000 0%,
            #000 82%,
            rgba(0, 0, 0, .92) 89%,
            rgba(0, 0, 0, .48) 96%,
            transparent 100%
        );
}


/* Remove overlays inherited from the old design */
.chairman-profile .chairman-media::before,
.chairman-profile .chairman-media::after {
    display: none !important;
}


/*
 * IMPORTANT:
 * Video uses its real aspect ratio.
 * No fixed height and no object-fit: cover.
 */
.chairman-profile .chairman-media img,
.chairman-profile .chairman-media video {
    display: block;

    width: 100% !important;
    height: auto !important;

    min-height: 0 !important;
    max-height: none !important;

    object-fit: contain !important;
    object-position: center center;

    margin: 0;
    padding: 0;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;
    filter: none !important;

    transform: none !important;
}


/* Video is presentation-only */
.chairman-profile .chairman-media video {
    pointer-events: none;
}


/* Hide native controls in Chromium/Safari */
.chairman-profile .chairman-media video::-webkit-media-controls {
    display: none !important;
}


/* Old decorative line is no longer needed */
.chairman-profile .chairman-media-line {
    display: none !important;
}


/* ================================================================
   TEXT
   ================================================================ */

.chairman-profile .chairman-copy {
    min-width: 0;
    max-width: 700px;
}

.chairman-profile .chairman-copy h2.chairman-title-reveal {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;

    gap: .2em;

    max-width: 100%;

    margin: 14px 0 22px;

    white-space: normal;

    font-size: clamp(2.45rem, 3.45vw, 4.45rem);
    line-height: 1.08;
}

/* Chairman title reveal */
.chairman-title-word {
    display: inline-block;

    opacity: 0;

    transform:
        translateY(28px)
        rotateX(-18deg);

    filter: blur(7px);

    animation:
        chairman-title-word-in
        .78s
        cubic-bezier(.16, 1, .3, 1)
        forwards;

    animation-delay:
        calc(
            90ms +
            (var(--chairman-word-index) * 105ms)
        );
}

@keyframes chairman-title-word-in {
    to {
        opacity: 1;

        transform:
            translateY(0)
            rotateX(0);

        filter: blur(0);
    }
}


/* ================================================================
   TAGS
   ================================================================ */

.chairman-profile .chairman-tags {
    display: grid;

    gap: 10px;

    margin-top: 28px;
}

.chairman-tags-row {
    display: flex;
    flex-wrap: nowrap;

    gap: 9px;

    width: 100%;
}

.chairman-tags-row span {
    flex: 0 0 auto;
}

.chairman-tags-sectors span {
    color: #E96124;

    border-color:
        rgba(233, 97, 36, .32);
}


/* ================================================================
   JOURNEY
   ================================================================ */

.chairman-profile .journey-marker {
    width: auto;
    min-width: 92px;
    height: 58px;

    padding-inline: 17px;

    border-radius: 18px;

    font-size: .9rem;
    line-height: 1;
}

.chairman-profile .journey-card h4 {
    margin-top: 0;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1360px) {

    .chairman-profile .chairman-showcase-shell {
        width: min(
            1260px,
            calc(100% - 42px)
        );
    }

    .chairman-profile .chairman-hero {
        grid-template-columns:
            minmax(520px, 1.06fr)
            minmax(400px, .94fr);

        gap: 42px;
    }

    .chairman-profile
    .chairman-copy
    h2.chairman-title-reveal {
        font-size:
            clamp(
                2.35rem,
                3.8vw,
                3.7rem
            );
    }
}


@media (max-width: 1040px) {

    .chairman-profile .chairman-hero {
        grid-template-columns: 1fr;
    }

    .chairman-media-wrap {
        order: 2;

        width: 100%;
        max-width: 860px;

        margin-inline: auto;
    }

    .chairman-profile .chairman-copy {
        order: 1;

        max-width: 820px;
    }

    .chairman-profile
    .chairman-copy
    h2.chairman-title-reveal {
        white-space: normal;
        flex-wrap: wrap;
    }

    .chairman-tags-row {
        flex-wrap: wrap;
    }
}


@media (max-width: 680px) {

    .chairman-profile
    .chairman-showcase-shell {
        width:
            min(
                100% - 28px,
                1180px
            );
    }

    .chairman-profile
    .chairman-media {
        -webkit-mask-image:
            radial-gradient(
                ellipse 100% 98% at 50% 50%,
                #000 0%,
                #000 84%,
                rgba(0, 0, 0, .88) 92%,
                transparent 100%
            );

        mask-image:
            radial-gradient(
                ellipse 100% 98% at 50% 50%,
                #000 0%,
                #000 84%,
                rgba(0, 0, 0, .88) 92%,
                transparent 100%
            );
    }

    .chairman-profile
    .chairman-copy
    h2.chairman-title-reveal {
        gap: .16em;

        font-size:
            clamp(
                2.15rem,
                11.5vw,
                3.2rem
            );
    }
}


@media (prefers-reduced-motion: reduce) {

    .chairman-title-word {
        opacity: 1;

        transform: none;

        filter: none;

        animation: none;
    }
}

/* ================================================================
   Chairman — official Altayseer identity
   #1D427B · #182E56 · #E96124 · #FFFFFF
   ================================================================ */

.chairman-profile {
    --showcase-navy: #182E56;
    --showcase-navy-2: #182E56;
    --showcase-blue: #1D427B;

    --showcase-gold: #E96124;
    --showcase-gold-soft: #E96124;

    --showcase-ink: #182E56;
    --showcase-muted: rgba(24, 46, 86, .72);

    --showcase-surface: #FFFFFF;
    --showcase-surface-soft: rgba(29, 66, 123, .05);
    --showcase-line: rgba(29, 66, 123, .16);

    --showcase-shadow:
        0 24px 70px rgba(24, 46, 86, .14);

    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(233, 97, 36, .10),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            rgba(29, 66, 123, .045),
            #FFFFFF
        );
}

.chairman-profile::after {
    border-color: rgba(233, 97, 36, .20);
    box-shadow:
        0 0 0 70px rgba(233, 97, 36, .025),
        0 0 0 140px rgba(29, 66, 123, .025);
}

.chairman-profile .chairman-media-wrap::before {
    background:
        radial-gradient(
            ellipse at 56% 42%,
            rgba(233, 97, 36, .16),
            transparent 38%
        ),
        radial-gradient(
            ellipse at 52% 62%,
            rgba(29, 66, 123, .24),
            transparent 56%
        );
}

.chairman-profile .chairman-media::after {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(233, 97, 36, .76),
            transparent
        );
}

.chairman-profile .chairman-tags-sectors span {
    color: #E96124;
    border-color: rgba(233, 97, 36, .36);
}

.chairman-profile .journey-card:hover {
    border-color: rgba(233, 97, 36, .48);
}

.chairman-profile .journey-marker {
    background: #E96124;
    color: #FFFFFF;
    box-shadow:
        0 12px 28px rgba(233, 97, 36, .22);
}

.chairman-profile .journey-place {
    color: #E96124;
}


/* Dark mode */
html[data-theme="dark"] .chairman-profile {
    --showcase-ink: #FFFFFF;
    --showcase-muted: rgba(255, 255, 255, .74);

    --showcase-surface: #1D427B;
    --showcase-surface-soft: #182E56;
    --showcase-line: rgba(255, 255, 255, .14);

    --showcase-shadow:
        0 24px 70px rgba(24, 46, 86, .40);

    background: #182E56;
}
.companies-viewport {
    direction: ltr;
}

html[dir="rtl"] .company-card {
    direction: rtl;
}

html[dir="ltr"] .company-card {
    direction: ltr;
}