/* ═══════════════════════════════════════════════════
   ROYAL MARINE – PITCH DECK STYLES
   Theme: Dark Maritime Luxury
═══════════════════════════════════════════════════ */

:root {
    --navy: #0a1628;
    --navy-mid: #112240;
    --navy-lt: #1a3a6e;
    --gold: #c8a84b;
    --gold-lt: #e8c97a;
    --gold-dim: #8a6d28;
    --cream: #f5f0e8;
    --white: #ffffff;
    --mist: rgba(255, 255, 255, 0.08);
    --mist-mid: rgba(255, 255, 255, 0.14);
    --mist-hi: rgba(255, 255, 255, 0.22);
    --text: #dde4f0;
    --text-dim: #8899bb;
    --green: #22c55e;
    --amber: #f59e0b;
    --red: #ef4444;
    --slide-h: 100vh;
    --font-en: 'DM Sans', sans-serif;
    --font-ar: 'Cairo', 'Noto Kufi Arabic', sans-serif;
    --font-disp: 'Playfair Display', serif;
    --radius: 12px;
    --radius-lg: 20px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background: var(--navy);
    color: var(--text);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#custom-cursor {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    html, body {
        cursor: none;
    }
    button,
    a,
    input,
    select,
    .cta-btn,
    .nav-dot,
    .prob-card,
    .m-card,
    .hs-dot {
        cursor: none !important;
    }
    #custom-cursor {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 20px;
        height: 20px;
        background-color: white;
        border-radius: 50%;
        pointer-events: none;
        z-index: 999999;
        mix-blend-mode: difference;
        transform: translate(-50%, -50%);
        transition: width 0.2s, height 0.2s, background-color 0.2s;
    }
    #custom-cursor.hover {
        width: 60px;
        height: 60px;
        background-color: rgba(255, 255, 255, 0.15);
    }
}

/* ── SCROLLBARS ─────────────────────────── */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 2px;
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.95) 0%, transparent 100%);
    backdrop-filter: blur(6px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ar);
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.02em;
}

.anchor-icon {
    font-size: 1.2rem;
}

.nav-slides {
    display: flex;
    gap: 6px;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mist-hi);
    cursor: pointer;
    transition: all 0.3s;
}

.nav-dot.active {
    background: var(--gold);
    width: 22px;
    border-radius: 3px;
}

.nav-lang {
    display: flex;
    gap: 6px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quick-nav-wrap {
    position: relative;
}

.qn-toggle {
    background: var(--mist);
    border: 1px solid var(--mist-hi);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-ar);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.qn-toggle:hover {
    background: var(--mist-mid);
    border-color: var(--gold);
}

.qn-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 220px;
    background: var(--navy-mid);
    border: 1px solid var(--mist-hi);
    border-radius: var(--radius);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.qn-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.qn-item {
    padding: 10px 20px;
    font-size: 0.88rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    text-align: right;
    border-bottom: 1px solid var(--mist);
}

.qn-item:last-child {
    border-bottom: none;
}

.qn-item:hover {
    background: var(--mist-hi);
    color: var(--gold);
    padding-right: 28px;
}

.lang-btn {
    background: var(--mist);
    border: 1px solid var(--mist-hi);
    color: var(--text-dim);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.78rem;
    font-family: var(--font-ar);
    transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    font-weight: 700;
}

/* ═══════════════════════════════════════════
   DECK & SLIDES
═══════════════════════════════════════════ */
#deck {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 48px 50px;
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.55s cubic-bezier(.4, 0, .2, 1),
        transform 0.55s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
    overflow-y: auto;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.slide.exit-left {
    opacity: 0;
    transform: translateX(60px);
}

.slide.exit-right {
    opacity: 0;
    transform: translateX(-60px);
}

#s1,
#s14 {
    overflow: hidden !important;
}

/* ── SLIDE INNER LAYOUTS ─────────────────── */
.slide-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.slide-inner.centered {
    text-align: center;
}

.slide-inner.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    text-align: right;
}

.slide-inner.two-col.reverse {
    direction: ltr;
}

.slide-inner.two-col.reverse .col-text {
    direction: rtl;
    text-align: right;
}

/* ── COMMON HEADING ELEMENTS ─────────────── */
.slide-tag {
    display: inline-block;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

h2 {
    font-family: var(--font-ar);
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 24px;
}

h3 {
    font-family: var(--font-ar);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 12px;
}

.slide-num {
    position: absolute;
    bottom: 24px;
    left: 32px;
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: var(--font-en);
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════
   SLIDE 1 – COVER
═══════════════════════════════════════════ */
.sea-bg {
    position: absolute;
    inset: -5%;
    /* extend slightly for parallax */
    background:
        radial-gradient(ellipse 80% 60% at 50% 120%, #0d3b7a 0%, transparent 70%),
        linear-gradient(160deg, #0a1628 0%, #0d2040 50%, #091530 100%);
    transform: scale(1.05);
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.sea-bg.dark {
    background:
        radial-gradient(ellipse 80% 60% at 50% 120%, #061020 0%, transparent 70%),
        linear-gradient(160deg, #050f1e 0%, #08182e 100%);
}

.wave-layer {
    position: absolute;
    bottom: -5%;
    left: -5%;
    right: -5%;
    height: 220px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220'%3E%3Cpath fill='%230d2b5e' fill-opacity='0.4' d='M0,160L48,144C96,128,192,96,288,90.7C384,85,480,107,576,117.3C672,128,768,128,864,117.3C960,107,1056,85,1152,85.3C1248,85,1344,107,1392,117.3L1440,128L1440,220L1392,220C1344,220,1248,220,1152,220C1056,220,960,220,864,220C768,220,672,220,576,220C480,220,384,220,288,220C192,220,96,220,48,220L0,220Z'/%3E%3Cpath fill='%23122b5e' fill-opacity='0.25' d='M0,192L60,181.3C120,171,240,149,360,144C480,139,600,149,720,154.7C840,160,960,160,1080,149.3C1200,139,1320,117,1380,106.7L1440,96L1440,220L1380,220C1320,220,1200,220,1080,220C960,220,840,220,720,220C600,220,480,220,360,220C240,220,120,220,60,220L0,220Z'/%3E%3C/svg%3E") no-repeat bottom/cover;
    transform: scale(1.05);
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.cover-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.cover-badge {
    background: linear-gradient(90deg, var(--gold-dim), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border: 1px solid var(--gold-dim);
    padding: 4px 16px;
    border-radius: 20px;
    -webkit-text-fill-color: var(--gold-dim);
}

.cover-anchor {
    font-size: 3.5rem;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 24px rgba(200, 168, 75, 0.4));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.cover-title {
    font-family: var(--font-ar);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.cover-sub {
    font-size: clamp(0.9rem, 1.6vw, 1.15rem);
    color: var(--gold-lt);
    font-weight: 400;
    max-width: 520px;
}

.cover-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cover-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.meta-label {
    font-size: 0.68rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.meta-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gold);
}

.meta-sep {
    color: var(--mist-hi);
    font-size: 1.2rem;
}

.cta-btn {
    margin-top: 8px;
    padding: 12px 36px;
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    color: var(--navy);
    border: none;
    border-radius: 30px;
    font-family: var(--font-ar);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 24px rgba(200, 168, 75, 0.35);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(200, 168, 75, 0.5);
}

.cta-btn.outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.cta-btn.outline:hover {
    background: var(--gold);
    color: var(--navy);
}

/* ═══════════════════════════════════════════
   SLIDE 2 – HERITAGE
═══════════════════════════════════════════ */
.heritage-scroll {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding-left: 12px;
    margin-top: 20px;
}

.h-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--mist);
    border: 1px solid var(--mist-hi);
    border-radius: var(--radius);
    padding: 16px;
    transition: all 0.3s;
}

.h-card:hover {
    background: var(--mist-mid);
    border-color: var(--gold-dim);
}

.h-media {
    width: 100%;
    height: 120px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    border: 1px dashed var(--mist-hi);
}

.h-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.h-card.tl-highlight {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(200, 168, 75, 0.1), var(--mist));
}

.h-card.tl-highlight .tl-year {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.h-card.tl-highlight .tl-text {
    color: var(--gold-lt);
    font-weight: 600;
}

.heritage-card {
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-lt));
    border: 1px solid var(--mist-hi);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.4);
}

.heritage-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.heritage-stat {
    margin-bottom: 20px;
}

.big-num {
    display: block;
    font-family: var(--font-en);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.big-label {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.heritage-quote {
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--gold-lt);
    font-style: italic;
    border-top: 1px solid var(--mist-hi);
    padding-top: 14px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   SLIDE 3 – PROBLEM
═══════════════════════════════════════════ */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.prob-card {
    background: var(--mist);
    border: 1px solid var(--mist-hi);
    border-radius: var(--radius);
    padding: 28px 16px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.prob-card:hover {
    background: var(--mist-mid);
    border-color: var(--gold-dim);
    transform: translateY(-4px);
}

.prob-card.expanded {
    background: linear-gradient(135deg, rgba(200, 168, 75, 0.1), var(--mist-mid));
    border-color: var(--gold);
}

.prob-details {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--mist-hi);
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.6;
}

.prob-card.expanded .prob-details {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prob-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.prob-stat {
    font-family: var(--font-en);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.prob-label {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.prob-bottom {
    margin-top: 16px;
}

.prob-line {
    display: inline-block;
    background: linear-gradient(90deg, rgba(200, 168, 75, 0.08), rgba(200, 168, 75, 0.15), rgba(200, 168, 75, 0.08));
    border: 1px solid var(--gold-dim);
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    color: var(--gold-lt);
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   SLIDE 4 – SOLUTION
═══════════════════════════════════════════ */
.solution-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.sol-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--text);
}

.sol-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.solution-badge {
    margin-top: 20px;
    background: linear-gradient(90deg, rgba(200, 168, 75, 0.1), rgba(200, 168, 75, 0.2));
    border: 1px solid var(--gold-dim);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--gold-lt);
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.prod-card {
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-lt));
    border: 1px solid var(--mist-hi);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.prod-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-3px);
}

.prod-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.prod-name {
    font-size: 0.82rem;
    color: var(--text);
    margin-bottom: 4px;
}

.prod-size {
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
}

/* ═══════════════════════════════════════════
   SLIDE 5 – MARKET
═══════════════════════════════════════════ */
.market-interactive {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px auto;
    width: 100%;
    max-width: 600px;
}

.m-card {
    background: var(--mist);
    border: 1px solid var(--mist-hi);
    border-radius: var(--radius);
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: right;
}

.m-card:hover {
    background: var(--mist-mid);
    border-color: var(--gold-dim);
    transform: translateX(-4px);
}

.m-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.m-card.expanded {
    background: linear-gradient(135deg, rgba(200, 168, 75, 0.1), var(--mist-mid));
    border-color: var(--gold);
}

.m-body {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--mist-hi);
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.6;
}

.m-card.expanded .m-body {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mkt-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
}

.mkt-usd {
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
}

.market-drivers {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

.driver {
    background: var(--mist);
    border: 1px solid var(--mist-hi);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.8rem;
    color: var(--text);
}

/* ═══════════════════════════════════════════
   SLIDE 6 – STRATEGY
═══════════════════════════════════════════ */
.strategy-phases {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    justify-content: center;
    align-items: stretch;
}

.phase-card {
    flex: 1;
    max-width: 420px;
    background: var(--mist);
    border: 1px solid var(--mist-hi);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: right;
    position: relative;
    transition: all 0.3s;
}

.phase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.phase-now {
    border-color: var(--gold-dim);
    background: linear-gradient(135deg, rgba(200, 168, 75, 0.08), var(--mist));
}

.phase-next {
    border-color: var(--navy-lt);
}

.phase-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 10px;
    letter-spacing: 0.08em;
}

.phase-next .phase-badge {
    background: var(--navy-lt);
    color: var(--gold);
    border: 1px solid var(--gold-dim);
}

.phase-num {
    font-family: var(--font-en);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--mist-hi);
    line-height: 1;
    margin-bottom: 8px;
}

.phase-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.phase-item {
    font-size: 0.85rem;
    color: var(--text);
    padding: 6px 0;
    border-bottom: 1px solid var(--mist);
    display: flex;
    align-items: center;
    gap: 8px;
}

.phase-item::before {
    content: '✓';
    color: var(--gold);
    font-size: 0.8rem;
}

.phase-arrow {
    position: absolute;
    top: 50%;
    left: -24px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--gold);
    z-index: 5;
}

/* ═══════════════════════════════════════════
   SLIDE 7 – UNIT ECONOMICS
═══════════════════════════════════════════ */
.unit-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
}

.unit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    direction: rtl;
}

.unit-table th {
    background: var(--navy-lt);
    color: var(--gold);
    padding: 12px 16px;
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid var(--gold-dim);
}

.unit-table td {
    padding: 10px 16px;
    text-align: center;
    border-bottom: 1px solid var(--mist);
    color: var(--text);
}

.unit-table tr:nth-child(even) td {
    background: var(--mist);
}

.unit-table tr:last-child td {
    background: rgba(200, 168, 75, 0.1);
    color: var(--gold);
    font-weight: 700;
}

.unit-table td.green-val {
    color: var(--green);
    font-weight: 700;
}

.unit-table td.gold-val {
    color: var(--gold);
    font-weight: 700;
}

.unit-summary {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 16px;
}

.us-item {
    text-align: center;
}

.us-val {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.us-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ═══════════════════════════════════════════
   SLIDE 8 – ESTIMATIONS
═══════════════════════════════════════════ */
.est-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.est-tab {
    background: var(--mist);
    border: 1px solid var(--mist-hi);
    color: var(--text-dim);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-ar);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.est-tab.active,
.est-tab:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    font-weight: 700;
}

.est-content {
    min-height: 320px;
}

.est-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    direction: rtl;
}

.est-table th {
    background: var(--navy-lt);
    color: var(--gold);
    padding: 10px 14px;
    text-align: center;
    border-bottom: 2px solid var(--gold-dim);
}

.est-table td {
    padding: 8px 14px;
    text-align: center;
    border-bottom: 1px solid var(--mist);
    color: var(--text);
}

.est-table tr:nth-child(even) td {
    background: var(--mist);
}

.est-table .total-row td {
    background: rgba(200, 168, 75, 0.12);
    color: var(--gold);
    font-weight: 700;
    border-top: 2px solid var(--gold-dim);
}

.est-table td:first-child {
    text-align: right;
}

/* ═══════════════════════════════════════════
   SLIDE 9 – REVENUE CHART
═══════════════════════════════════════════ */
.chart-wrap {
    position: relative;
    height: 320px;
    width: 100%;
    margin: 20px 0;
}

.forecast-kpis {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.fkpi {
    text-align: center;
    background: var(--mist);
    border: 1px solid var(--mist-hi);
    border-radius: var(--radius);
    padding: 12px 20px;
    min-width: 120px;
}

.fkpi-val {
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
}

.fkpi-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ═══════════════════════════════════════════
   SLIDE 10 – P&L
═══════════════════════════════════════════ */
.pl-table-wrap {
    overflow-x: auto;
    margin: 20px 0;
}

.pl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    direction: rtl;
}

.pl-table th {
    background: var(--navy-lt);
    color: var(--gold);
    padding: 10px 12px;
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid var(--gold-dim);
    white-space: nowrap;
}

.pl-table td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid var(--mist);
    color: var(--text);
    white-space: nowrap;
}

.pl-table tr:nth-child(even) td {
    background: var(--mist);
}

.pl-table .section-hdr td {
    background: rgba(26, 58, 110, 0.6);
    color: var(--gold-lt);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pl-table .total-row td {
    background: rgba(200, 168, 75, 0.12);
    color: var(--gold);
    font-weight: 700;
    border-top: 2px solid var(--gold-dim);
}

.pl-table .green-row td {
    color: var(--green);
    font-weight: 700;
}

.pl-table td:first-child {
    text-align: right;
}

.pl-note {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 8px;
}

/* ═══════════════════════════════════════════
   SLIDE 11 – DCF
═══════════════════════════════════════════ */
.dcf-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    margin-top: 20px;
    text-align: right;
}

.dcf-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dcf-input-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dcf-input-row label {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.dcf-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row-reverse;
}

.dcf-slider-wrap span {
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 36px;
    text-align: left;
}

input[type=range] {
    -webkit-appearance: none;
    flex: 1;
    height: 4px;
    background: var(--mist-hi);
    border-radius: 2px;
    outline: none;
    direction: ltr;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(200, 168, 75, 0.5);
}

.dcf-btn-group {
    display: flex;
    gap: 8px;
}

.scen-btn {
    flex: 1;
    background: var(--mist);
    border: 1px solid var(--mist-hi);
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-ar);
    font-size: 0.8rem;
    transition: all 0.2s;
}

.scen-btn.active {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    font-weight: 700;
}

.dcf-table-wrap {
    margin-top: 8px;
    overflow-x: auto;
}

.dcf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    direction: rtl;
}

.dcf-table th {
    background: var(--navy-lt);
    color: var(--gold);
    padding: 7px 10px;
    text-align: center;
    font-size: 0.72rem;
}

.dcf-table td {
    padding: 6px 10px;
    text-align: center;
    border-bottom: 1px solid var(--mist);
    color: var(--text);
    font-family: var(--font-en);
    font-size: 0.78rem;
}

.dcf-table tr:nth-child(even) td {
    background: var(--mist);
}

.dcf-outputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dcf-result-card {
    background: var(--mist);
    border: 1px solid var(--mist-hi);
    border-radius: var(--radius);
    padding: 16px 20px;
    text-align: center;
    transition: all 0.3s;
}

.dcf-result-card.main-result {
    background: linear-gradient(135deg, rgba(200, 168, 75, 0.12), rgba(200, 168, 75, 0.06));
    border-color: var(--gold-dim);
}

.res-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.res-val {
    font-family: var(--font-en);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
}

.res-val.sm {
    font-size: 1.3rem;
}

/* ═══════════════════════════════════════════
   SLIDE 12 – SENSITIVITY
═══════════════════════════════════════════ */
.sensitivity-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.sens-table-wrap {
    overflow-x: auto;
    width: 100%;
}

.sens-table {
    border-collapse: collapse;
    font-size: 0.78rem;
    margin: 0 auto;
    direction: ltr;
}

.sens-table th {
    background: var(--navy-lt);
    color: var(--gold);
    padding: 8px 14px;
    text-align: center;
    font-size: 0.72rem;
    font-family: var(--font-en);
    white-space: nowrap;
}

.sens-table td {
    padding: 8px 14px;
    text-align: center;
    border: 1px solid var(--mist-hi);
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: default;
}

.sens-table td:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.sens-table td.row-hdr {
    background: var(--navy-lt);
    color: var(--gold);
    font-weight: 700;
}

.cell-green {
    background: rgba(34, 197, 94, 0.2);
    color: var(--green);
}

.cell-yellow {
    background: rgba(245, 158, 11, 0.2);
    color: var(--amber);
}

.cell-red {
    background: rgba(239, 68, 68, 0.2);
    color: var(--red);
}

.sens-legend {
    display: flex;
    gap: 20px;
}

.leg-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.leg-col {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.leg-col.green {
    background: rgba(34, 197, 94, 0.3);
    border: 1px solid var(--green);
}

.leg-col.yellow {
    background: rgba(245, 158, 11, 0.3);
    border: 1px solid var(--amber);
}

.leg-col.red {
    background: rgba(239, 68, 68, 0.3);
    border: 1px solid var(--red);
}

/* ═══════════════════════════════════════════
   SLIDE 13 – THE ASK
═══════════════════════════════════════════ */
.ask-hero {
    margin: 24px auto;
    display: inline-block;
    background: linear-gradient(135deg, rgba(200, 168, 75, 0.12), rgba(200, 168, 75, 0.06));
    border: 2px solid var(--gold-dim);
    border-radius: var(--radius-lg);
    padding: 28px 48px;
}

.ask-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.ask-val {
    font-family: var(--font-en);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.ask-lyd {
    font-size: 0.9rem;
    color: var(--gold-lt);
    margin-top: 6px;
}

.ask-use {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto 20px;
}

.use-item {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-direction: row-reverse;
}

.use-bar {
    flex: 1;
    height: 8px;
    background: var(--mist-hi);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.use-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    width: var(--pct);
    background: linear-gradient(90deg, var(--gold-dim), var(--gold));
    border-radius: 4px;
    animation: growBar 1.2s ease forwards;
    transform-origin: right;
}

@keyframes growBar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.use-label {
    font-size: 0.82rem;
    color: var(--text);
    min-width: 140px;
    text-align: right;
}

.use-pct {
    font-family: var(--font-en);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 36px;
}

.ask-returns {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.ret-item {
    text-align: center;
}

.ret-val {
    font-family: var(--font-en);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-lt);
}

.ret-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ═══════════════════════════════════════════
   SLIDE 14 – CLOSE
═══════════════════════════════════════════ */
.close-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.close-anchor {
    font-size: 4rem;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 32px rgba(200, 168, 75, 0.5));
}

.close-title {
    font-family: var(--font-ar);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--white);
}

.close-sub {
    font-size: 1.05rem;
    color: var(--gold-lt);
    max-width: 480px;
    line-height: 1.6;
}

.contact-card {
    background: var(--mist);
    border: 1px solid var(--mist-hi);
    border-radius: var(--radius-lg);
    padding: 24px 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 320px;
}

.cc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text);
    flex-direction: row-reverse;
    justify-content: center;
}

.cc-icon {
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════
   NAV ARROWS
═══════════════════════════════════════════ */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    width: 44px;
    height: 44px;
    background: var(--mist-mid);
    border: 1px solid var(--mist-hi);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.nav-arrow.prev {
    right: 20px;
}

.nav-arrow.next {
    left: 20px;
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   PROGRESS BAR
═══════════════════════════════════════════ */
#progressBar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--mist);
    z-index: 100;
}

#progressFill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold));
    transition: width 0.4s ease;
}

/* ═══════════════════════════════════════════
   KEYBOARD HINT
═══════════════════════════════════════════ */
.kb-hint {
    position: fixed;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    font-size: 0.68rem;
    color: var(--text-dim);
    z-index: 90;
    letter-spacing: 0.06em;
    opacity: 0.7;
    font-family: var(--font-en);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .slide-inner.two-col {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .problem-grid {
        grid-template-columns: 1fr 1fr;
    }

    .strategy-phases {
        flex-direction: column;
        align-items: center;
    }

    .dcf-grid {
        grid-template-columns: 1fr;
    }

    .market-circles {
        height: 160px;
    }

    .tam {
        width: 155px;
        height: 155px;
    }

    .sam {
        width: 110px;
        height: 110px;
    }

    .som {
        width: 75px;
        height: 75px;
    }
}

/* ═══════════════════════════════════════════
   HERITAGE TIMELINE
═══════════════════════════════════════════ */
.heritage-story {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 24px;
}

.hs-content {
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-lt));
    border: 1px solid var(--mist-hi);
    border-radius: var(--radius-lg);
    padding: 32px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hs-year {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 12px;
}

.hs-text {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.6;
}

.hs-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

.hs-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--mist-hi);
    z-index: 1;
}

.hs-dot {
    position: relative;
    z-index: 2;
    background: var(--navy);
    border: 2px solid var(--mist-hi);
    color: var(--text-dim);
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s;
}

.hs-dot:hover,
.hs-dot.active {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    transform: scale(1.1);
}

.h-media-large {
    width: 100%;
    aspect-ratio: 16/10;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--mist-hi);
    border-radius: var(--radius-lg);
    overflow: visible;
    position: relative;
    z-index: 10;
}

.h-media-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

@media (hover: hover) {
    .h-media-large:hover {
        z-index: 100;
    }

    .h-media-large img:hover {
        transform: scale(1.7);
        object-fit: contain;
        background: rgba(10, 22, 40, 0.95);
        border: 1px solid var(--gold);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
        z-index: 100;
    }
}

/* ═══════════════════════════════════════════
   STRATEGY VERTICAL
═══════════════════════════════════════════ */
.strategy-phases-vert {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

/* ═══════════════════════════════════════════
   FURTHER DETAILS & CLOSE
═══════════════════════════════════════════ */
.further-details {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.further-details h3 {
    margin: 0;
    color: var(--text-dim);
}

.fd-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.fd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--mist-hi);
    color: var(--text);
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-ar);
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
}

.fd-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

.fd-btn.excel:hover {
    border-color: var(--green);
}

/* ═══════════════════════════════════════════
   NEW INTERACTIVE STYLES
═══════════════════════════════════════════ */
.sens-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--mist);
    border: 1px solid var(--mist-hi);
    border-radius: var(--radius);
    padding: 12px 24px;
    gap: 12px;
}

.sens-controls label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.sens-controls span {
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 32px;
}

.ask-hero {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 40px;
}

.ask-amount,
.ask-equity {
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-lt));
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius-lg);
    padding: 32px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ask-equity {
    border-color: var(--mist-hi);
}

.highlight-equity {
    color: var(--green);
}

/* ═══════════════════════════════════════════
   FX NOTE BANNER
═══════════════════════════════════════════ */
.fx-note {
    display: inline-block;
    background: rgba(200, 168, 75, 0.08);
    border: 1px solid rgba(200, 168, 75, 0.25);
    border-radius: 20px;
    padding: 4px 18px;
    font-size: 0.76rem;
    color: var(--gold-lt);
    font-family: var(--font-en);
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

/* ═══════════════════════════════════════════
   FULL DARK BACKGROUND FOR COVER & CLOSE
   Ensures the entire tab area is dark navy
═══════════════════════════════════════════ */
#s1,
#s16 {
    background: var(--navy) !important;
    overflow: hidden !important;
}

#s1 .sea-bg,
#s16 .sea-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#s1 .wave-layer,
#s16 .wave-layer {
    position: absolute;
    z-index: 1;
}

#s1 .cover-content,
#s16 .close-content {
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════════
   SLIDE 14: BREAK-EVEN
═══════════════════════════════════════════ */
.be-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 28px;
    margin-top: 16px;
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    align-items: start;
}

.be-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.be-kpi {
    background: var(--mist);
    border: 1px solid var(--mist-hi);
    border-radius: var(--radius);
    padding: 14px 12px;
    text-align: center;
    transition: border-color 0.2s;
}

.be-kpi:hover {
    border-color: var(--gold-dim);
}

.be-kpi.highlight-kpi {
    background: linear-gradient(135deg, rgba(200, 168, 75, 0.12), rgba(200, 168, 75, 0.05));
    border-color: var(--gold-dim);
}

.be-kpi-val {
    font-family: var(--font-en);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
    margin-bottom: 4px;
}

.be-kpi.highlight-kpi .be-kpi-val {
    color: var(--green);
    font-size: 1.6rem;
}

.be-kpi-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.3;
}

.be-chart-wrap {
    position: relative;
    height: 280px;
    width: 100%;
}

.be-assumptions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
    padding: 8px 16px;
    background: var(--mist);
    border-radius: 8px;
    max-width: 900px;
    margin-inline: auto;
}

.be-assump-item {
    font-size: 0.76rem;
    color: var(--text-dim);
    font-family: var(--font-en);
}

.be-assump-sep {
    color: var(--gold-dim);
    font-weight: 700;
}

@media (max-width: 900px) {
    .be-grid {
        grid-template-columns: 1fr;
    }

    .be-chart-wrap {
        height: 220px;
    }
}

/* ═══════════════════════════════════════════
   SLIDE 15: TEAM
═══════════════════════════════════════════ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px auto;
    max-width: 900px;
    width: 100%;
}

.team-card {
    background: var(--mist);
    border: 1px solid var(--mist-hi);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s;
    cursor: default;
}

.team-card:hover {
    border-color: var(--gold-dim);
    background: linear-gradient(135deg, rgba(200, 168, 75, 0.08), var(--mist-mid));
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.3);
}

.team-icon {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.team-name {
    font-family: var(--font-ar);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.team-bio {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.55;
}

.team-note {
    font-size: 0.76rem;
    color: var(--text-dim);
    font-style: italic;
    margin-top: 8px;
}

@media (max-width: 700px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════
   DCF OUTPUTS — MOIC CARD
═══════════════════════════════════════════ */
.dcf-result-card .res-val.gold {
    color: var(--gold);
}

/* ═══════════════════════════════════════════
   ASK SLIDE — RET-ITEM 4-COL
═══════════════════════════════════════════ */
.ask-returns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   SLIDE COUNTER UPDATE (16 slides)
═══════════════════════════════════════════ */
.slide-num {
    position: absolute;
    bottom: 24px;
    left: 32px;
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: var(--font-en);
    letter-spacing: 0.1em;
    opacity: 0.6;
}

/* ═══════════════════════════════════════════
   ADDITIONAL MOBILE OPTIMIZATIONS
═══════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Position slides below the fixed nav bar on mobile to prevent clipping and content overlapping */
    .slide {
        top: 68px !important;
        height: calc(100vh - 68px) !important;
        padding: 20px 16px 60px !important;
        align-items: flex-start !important;
    }

    /* Cover and Close slides still span full viewport with their background animations */
    #s1, #s16 {
        top: 0 !important;
        height: 100vh !important;
        padding-top: 88px !important;
    }

    /* Make all tables fully scrollable horizontally on mobile */
    table, 
    .unit-table, 
    .pl-table, 
    .dcf-table, 
    .sens-table, 
    .est-table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        font-size: 0.75rem !important;
    }

    /* Tighten table padding to keep cells compact */
    table th, table td,
    .est-table th, .est-table td,
    .pl-table th, .pl-table td {
        padding: 8px 10px !important;
        white-space: nowrap !important; /* Keep columns from breaking into multiple lines inside cells */
    }

    /* Keep the first column sticky or aligned appropriately if needed */
    table td:first-child,
    .est-table td:first-child,
    .pl-table td:first-child {
        white-space: normal !important; /* Allow the name of the item to wrap if long */
    }

    /* Free up space in nav: hide dots in middle on mobile */
    .nav-slides {
        display: none !important;
    }

    /* Compact navbar on mobile with solid luxury navy background to prevent text overlap readability bugs */
    #nav {
        padding: 10px 16px !important;
        background: var(--navy) !important;
        border-bottom: 1px solid var(--mist) !important;
    }

    .nav-controls {
        gap: 8px !important;
    }

    /* Ensure EN language button is fully visible and fits nicely */
    .qn-toggle {
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
    }

    .lang-btn {
        padding: 4px 8px !important;
        font-size: 0.72rem !important;
    }

    /* Prevent slide titles from taking too much vertical space on tiny screens */
    h2 {
        font-size: 1.35rem !important;
        margin-bottom: 16px !important;
    }

    /* Adjust charts height on smaller screens so they don't force vertical overflow */
    .chart-wrap {
        height: 240px !important;
    }

    /* Stacking the ask page cards vertically on mobile */
    .ask-hero {
        flex-direction: column !important;
        gap: 16px !important;
        margin-bottom: 24px !important;
        align-items: stretch !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }
    
    .ask-amount, .ask-equity {
        padding: 20px 24px !important;
        text-align: center !important;
        border-radius: var(--radius-lg) !important;
    }

    .ask-val {
        font-size: 2.2rem !important;
    }

    /* Align ask returns into a clean 2x2 grid on mobile */
    .ask-returns {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        width: 100% !important;
        margin-top: 16px !important;
    }

    .ret-item {
        background: var(--mist) !important;
        border: 1px solid var(--mist-hi) !important;
        border-radius: var(--radius) !important;
        padding: 12px 8px !important;
    }

    .ret-val {
        font-size: 1.4rem !important;
    }

    .ret-label {
        font-size: 0.7rem !important;
        margin-top: 2px !important;
    }

    /* Make sure the bar chart or uses in S13 fits well */
    .ask-use {
        gap: 8px !important;
        margin-bottom: 16px !important;
    }

    .use-label {
        min-width: 100px !important;
        font-size: 0.75rem !important;
    }

    .use-pct {
        font-size: 0.78rem !important;
        min-width: 28px !important;
    }

    .sens-controls {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .sens-controls label,
    .sens-controls input,
    .sens-controls span {
        width: 100% !important;
        text-align: left !important;
    }
}