/* --- SELF-HOSTED font --- */
.brev-badge-dark span {
    font-family: 'Moonhouse', sans-serif !important;
    font-weight: normal !important;
    letter-spacing: 1.5px;
    color: var(--navy);
}

/* Space Mono */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../font/space-mono-v17-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../font/space-mono-v17-latin-700.woff2') format('woff2');
}

/* Manrope (Variable or Specific Weights) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../font/manrope-v20-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../font/manrope-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../font/manrope-v20-latin-700.woff2') format('woff2');
}

/* Playfair Display */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../font/playfair-display-v40-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../font/playfair-display-v40-latin-700.woff2') format('woff2');
}
:root {
    --navy: #1B264F;
    --navy-deep: #0e1525;
    --orange: #E64A19;
    --gold: #C5A059;
    --sand: #F9F9F7;
    --white: #ffffff;
    --text-main: #1D1D1F; 
    --text-sub: #555555; 
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--sand);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.ledger-grid-bg { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background-image: linear-gradient(to right, rgba(27, 38, 79, 0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(27, 38, 79, 0.04) 1px, transparent 1px);
    background-size: 30px 30px; pointer-events: none; z-index: -1; 
}

.reveal-fade { opacity: 0; transform: translateY(10px); transition: all 0.8s ease-out; }
.reveal-fade.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

.dossier-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 2rem; position: fixed; top: 0; width: 100%; z-index: 100;
    background: linear-gradient(to bottom, rgba(249, 249, 247, 1) 40%, rgba(249, 249, 247, 0));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.dossier-nav.nav-hidden { transform: translateY(-100%); }
.back-btn { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 700; color: var(--navy); text-decoration: none; text-transform: uppercase; letter-spacing: 1px; }

.dossier-container { max-width: 1000px; margin: 0 auto; padding: 7rem 2rem 2rem; }

/* HERO */
.dossier-hero { margin-bottom: 6rem; display: flex; flex-direction: column; gap: 3rem; }
.hero-header { width: 100%; }
.dossier-name { font-family: 'Playfair Display', serif; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1.1; color: var(--navy); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: -2px; }
.dossier-title { font-size: 1.1rem; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 4px; display: flex; align-items: center; gap: 0.8rem; }
.uae-flag-icon { opacity: 0.8; flex-shrink: 0; }

.hero-content-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; }
.hero-image-wrapper { position: relative; width: 100%; }
.hero-portrait { width: 100%; border-radius: 0.5rem; object-fit: cover; aspect-ratio: 4/5; box-shadow: 0 20px 40px rgba(0,0,0,0.1); filter: contrast(105%); }
.seal-badge { position: absolute; bottom: -2rem; right: -2rem; width: 120px; height: 120px; animation: spin 20s linear infinite; background: var(--sand); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.seal-badge text { font-family: 'Space Mono', monospace; font-weight: 700; fill: var(--gold); letter-spacing: 2px; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* BIO BLOCK & LOGOS */
.hero-bio-wrapper { display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; }

.hero-institutional-ties { padding-bottom: 2.5rem; border-bottom: 1px solid rgba(27, 38, 79, 0.1); }
.ties-label { font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--text-sub); text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 1.5rem; }
.ties-logos { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.ties-logos img { height: 45px; width: auto; max-width: 220px; object-fit: contain; opacity: 0.6; filter: grayscale(100%); transition: all 0.4s ease; }

@media (hover: hover) {
    .ties-logos img:hover { filter: grayscale(0%); opacity: 1; transform: translateY(-2px); }
}

.dossier-bio { font-size: 1.15rem; color: var(--text-sub); text-align: justify; line-height: 1.7; }

/* Elegant Golden Accent Line */
.hero-golden-divider {
    margin-top: 0.5rem;
    height: 3px;
    width: 60px;
    background: var(--gold);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(197, 160, 89, 0.2);
}

/* SECTIONS */
.dossier-section { margin-bottom: 5rem; }
.section-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem; }
.sh-line { height: 1px; background: var(--navy); width: 40px; }
.section-header h3, .section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--navy); letter-spacing: -0.5px; }

/* 6-COLUMN ENGINE (Zero Orphans) */
.pedigree-timeline { border-left: 1px solid rgba(27,38,79,0.15); padding-left: 2.5rem; margin-left: 1rem; position: relative; }
.timeline-block { margin-bottom: 4rem; position: relative; }
.timeline-marker { position: absolute; left: -2.85rem; top: 0.4rem; width: 12px; height: 12px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px var(--sand); }
.tb-title { font-family: 'Space Mono', monospace; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 3px; color: var(--text-sub); margin-bottom: 1.5rem; }

.pedigree-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }

.pedigree-card { background: var(--white); border: 1px solid rgba(27,38,79,0.08); padding: 2rem; border-radius: 0.25rem; transition: transform 0.3s ease, box-shadow 0.3s ease; grid-column: span 3; }
.pedigree-card.highlight-card { background: var(--navy-deep); color: var(--white); border-color: var(--navy-deep); grid-column: span 6; }
.pedigree-card.col-third { grid-column: span 2; }

@media (hover: hover) { .pedigree-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-color: var(--gold); } }

.pc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.pc-year { font-family: 'Space Mono', monospace; font-size: 0.9rem; color: var(--gold); }
.pc-icon { font-family: 'Space Mono', monospace; font-size: 0.7rem; background: rgba(197, 160, 89, 0.1); color: var(--gold); padding: 0.3rem 0.6rem; border-radius: 4px; font-weight: 700; letter-spacing: 1px;}
.pedigree-card h4 { font-family: 'Playfair Display', serif; font-size: 1.35rem; margin-bottom: 0.5rem; color: inherit; }
.pedigree-card p { font-size: 0.9rem; color: var(--text-sub); margin: 0; }
.highlight-card p { color: rgba(255,255,255,0.7); }

.dossier-list { list-style: none; margin-top: 1rem; }
.dossier-list li { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 0.6rem; display: flex; align-items: flex-start; gap: 0.5rem; }
.dossier-list li::before { content: '•'; color: var(--gold); font-size: 1.2rem; line-height: 1; }
.dossier-list strong { color: var(--gold); font-weight: 600; letter-spacing: 0.5px; }


/* TOP BUTTON */
.scroll-top-btn { position: fixed; bottom: 2rem; right: 2rem; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); border: 1px solid rgba(27, 38, 79, 0.1); box-shadow: 0 10px 25px rgba(0,0,0,0.05); color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: all 0.4s ease; z-index: 999; }
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; }
@media (hover: hover) { .scroll-top-btn:hover { background: var(--navy); color: var(--white); transform: translateY(-3px); } }

/* FOOTER */
.dossier-footer { margin-top: 5rem; padding-top: 3rem; padding-bottom: 3rem; border-top: 1px solid rgba(27, 38, 79, 0.1); }
.footer-contact { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(27, 38, 79, 0.1); }
.fc-title { font-family: 'Space Mono', monospace; font-size: 0.8rem; color: var(--text-sub); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.5rem; }
.fc-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.fc-link { display: flex; align-items: center; gap: 0.8rem; font-family: 'Space Mono', monospace; font-size: 0.9rem; color: var(--navy); font-weight: 700; text-decoration: none; transition: color 0.3s ease; }
@media (hover: hover) { .fc-link:hover { color: var(--orange); } }

.df-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.df-left { display: flex; flex-direction: column; gap: 0.4rem; }
.df-logo { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.4rem; color: var(--navy); line-height: 1; }
.df-copyright { font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--text-sub); text-transform: uppercase; letter-spacing: 1.5px; }

.brev-badge-dark { background: rgba(27, 38, 79, 0.03); border: 1px solid rgba(27, 38, 79, 0.1); padding: 0.6rem 1.4rem; border-radius: 3.5rem; font-size: 0.8rem; color: var(--text-sub); text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; text-decoration: none; display: inline-block; }
.brev-badge-dark span { font-family: 'Space Mono', monospace; font-weight: 700; color: var(--navy); margin-left: 0.4rem; font-size: 0.85rem; text-transform: none; letter-spacing: 0.5px; }
@media (hover: hover) { .brev-badge-dark:hover { background: var(--navy); color: rgba(255,255,255,0.7); border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(27, 38, 79, 0.1); } .brev-badge-dark:hover span { color: var(--white); } }

/* RESPONSIVE */
@media (max-width: 768px) {
    .dossier-container { padding: 6rem 1.5rem 2rem; }
    .dossier-name { font-size: 3rem; }
    
    .hero-content-grid { grid-template-columns: 1fr; gap: 2rem; }
    .seal-badge { right: 0; width: 100px; height: 100px; }
    
    /* MOBILE LOGOS */
    .ties-logos { gap: 0.5rem; flex-wrap: nowrap; justify-content: space-between; width: 100%; }
    .ties-logos img { height: auto; max-height: 28px; max-width: 23%; }

    .pedigree-timeline { padding-left: 1.5rem; margin-left: 0.5rem; }
    .timeline-marker { left: -1.85rem; }
    
    .pedigree-grid { grid-template-columns: 1fr; }
    .pedigree-card, .pedigree-card.highlight-card, .pedigree-card.col-third { grid-column: 1 / -1; }
    
.fc-links { flex-direction: column; gap: 1.2rem; }
    .df-content { flex-direction: column; align-items: flex-start; gap: 2rem; }
}