/* ═══════════════════════════════════════════════════════════════════
   RAMICO ESTABLISHMENT — "The Gateway"
   Midnight navy + aged gold · cinematic institutional
   Marcellus (EN display) · Inter (EN body) · Noto Kufi Arabic (AR)
   ═══════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Marcellus'; src: url('/assets/fonts/marcellus.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Noto Kufi Arabic'; src: url('/assets/fonts/noto-kufi-arabic.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
    --ink: #070D1A;          /* page canvas — midnight */
    --ink-2: #0B1526;        /* raised surface */
    --ink-3: #122040;        /* card surface */
    --navy: #1E3A6E;         /* brand navy (logo) */
    --gold: #C9A227;         /* aged gold */
    --gold-hi: #E8C15A;      /* gold highlight */
    --ivory: #F4F1E8;        /* warm light */
    --stone: #E9E4D6;        /* light section bg */
    --text: #EDEAE0;         /* text on dark */
    --text-dim: #98A5BE;     /* muted on dark */
    --text-dark: #141B2B;    /* text on light */
    --line: rgba(201, 162, 39, 0.18);
    --display: 'Marcellus', 'Noto Kufi Arabic', serif;
    --body: 'Inter', 'Noto Kufi Arabic', system-ui, sans-serif;
}
.lang-ar { --display: 'Noto Kufi Arabic', serif; --body: 'Noto Kufi Arabic', system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--ink);
    color: var(--text);
    font-family: var(--body);
    font-size: 16.5px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
/* film grain — the cinematic finish */
body::after {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 2000; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

img { max-width: 100%; }
a { color: inherit; }
.r-container { max-width: 1200px; margin: 0 auto; padding: 0 1.4rem; }

.skip-link { position: absolute; inset-inline-start: -9999px; background: var(--gold); color: var(--ink); padding: 0.6rem 1.2rem; z-index: 3000; }
.skip-link:focus { inset-inline-start: 1rem; top: 1rem; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 2px; }

/* ═══ header ═══ */
.r-header {
    position: fixed; top: 0; inset-inline: 0; z-index: 900;
    background: linear-gradient(rgba(7, 13, 26, 0.92), rgba(7, 13, 26, 0.75));
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s;
}
.r-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.r-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.r-mark { width: 40px; height: 40px; }
.r-brand-name { display: block; font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.14em; color: var(--ivory); line-height: 1.1; }
.r-brand-sub { display: block; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.lang-ar .r-brand-name { letter-spacing: 0; }
.lang-ar .r-brand-sub { letter-spacing: 0.05em; }

.r-nav { display: flex; gap: 1.7rem; }
.r-nav a {
    text-decoration: none; font-size: 0.86rem; letter-spacing: 0.04em; color: var(--text-dim);
    padding: 0.4rem 0; position: relative; transition: color 0.25s;
}
.r-nav a::after {
    content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 0; height: 1.5px;
    background: var(--gold); transition: width 0.3s ease-out;
}
.r-nav a:hover { color: var(--ivory); }
.r-nav a:hover::after { width: 100%; }

.r-header-actions { display: flex; align-items: center; gap: 1rem; }
.r-lang {
    text-decoration: none; font-size: 0.8rem; color: var(--gold); border: 1px solid var(--line);
    padding: 0.32rem 0.95rem; border-radius: 30px; transition: all 0.25s;
}
.r-lang:hover { background: var(--gold); color: var(--ink); }
.r-burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.r-burger span { width: 22px; height: 2px; background: var(--ivory); display: block; }

/* ═══ hero ═══ */
.r-hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.r-hero .r-container { max-width: 1560px; }
.r-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.r-hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 46% 52% at 70% 52%, rgba(201, 162, 39, 0.12), transparent 65%),
        radial-gradient(ellipse 34% 40% at 4% 24%, rgba(30, 58, 110, 0.35), transparent 70%),
        radial-gradient(ellipse 90% 70% at 50% 110%, rgba(30, 58, 110, 0.45), transparent 70%);
}
[dir="rtl"] .r-hero-glow {
    background:
        radial-gradient(ellipse 46% 52% at 30% 52%, rgba(201, 162, 39, 0.12), transparent 65%),
        radial-gradient(ellipse 34% 40% at 96% 24%, rgba(30, 58, 110, 0.35), transparent 70%),
        radial-gradient(ellipse 90% 70% at 50% 110%, rgba(30, 58, 110, 0.45), transparent 70%);
}
@media (max-width: 680px) {
    .r-hero-glow, [dir="rtl"] .r-hero-glow {
        background:
            radial-gradient(ellipse 70% 45% at 50% 55%, rgba(201, 162, 39, 0.09), transparent 65%),
            radial-gradient(ellipse 90% 70% at 50% 110%, rgba(30, 58, 110, 0.45), transparent 70%);
    }
}
.r-hero-inner { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: 4rem; max-width: 880px; }
.r-eyebrow {
    font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
    margin-bottom: 1.6rem;
}
.lang-ar .r-eyebrow { letter-spacing: 0.08em; }
.r-hero-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 7vw, 4.9rem); line-height: 1.12; color: var(--ivory); }
.r-hero-title span { display: block; }
.r-gold-text {
    background: linear-gradient(100deg, var(--gold) 15%, var(--gold-hi) 50%, var(--gold) 85%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    background-size: 200% 100%; animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.r-hero-sub { margin-top: 1.7rem; max-width: 560px; color: var(--text-dim); font-size: 1.06rem; }
.r-hero-ctas { display: flex; gap: 1rem; margin-top: 2.6rem; flex-wrap: wrap; }
.r-hero-scroll { position: absolute; bottom: 2rem; inset-inline-start: 50%; transform: translateX(-50%); z-index: 2; }
.r-hero-scroll span {
    display: block; width: 1.5px; height: 46px;
    background: linear-gradient(var(--gold), transparent);
    animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ═══ buttons ═══ */
.r-btn {
    display: inline-block; text-decoration: none; font-size: 0.92rem; letter-spacing: 0.05em;
    padding: 0.85rem 2.2rem; border-radius: 3px; transition: all 0.25s ease-out; border: 1px solid transparent;
    will-change: transform;
}
.r-btn-gold { background: var(--gold); color: #141002; font-weight: 600; box-shadow: 0 0 32px rgba(201, 162, 39, 0.25); }
.r-btn-gold:hover { background: var(--gold-hi); box-shadow: 0 0 48px rgba(232, 193, 90, 0.4); transform: translateY(-2px); }
.r-btn-ghost { border-color: var(--line); color: var(--ivory); }
.r-btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }

/* ═══ stats ═══ */
.r-stats { border-block: 1px solid var(--line); background: var(--ink-2); }
.r-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.r-stat { text-align: center; padding: 2.6rem 1rem; border-inline-start: 1px solid var(--line); }
.r-stat:first-child { border-inline-start: 0; }
.r-stat-num { font-family: 'Inter', var(--body); font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; font-size: 3.3rem; color: var(--ivory); line-height: 1; display: block; }
.r-stat-plus { color: var(--gold); }
.r-stat-label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-top: 0.5rem; display: block; }
.lang-ar .r-stat-label { letter-spacing: 0.02em; }

/* ═══ sections ═══ */
.r-section { padding: 6.5rem 0; position: relative; }
.r-section-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.7rem); color: var(--ivory); margin-bottom: 0.9rem; }
.r-section-sub { color: var(--text-dim); max-width: 640px; margin-bottom: 3rem; }

.r-section-light { background: var(--stone); color: var(--text-dark); }
.r-section-light .r-section-title { color: var(--text-dark); }
.r-section-light .r-section-sub { color: #5a6070; }

/* sectors */
.r-sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.r-sector {
    background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
    border: 1px solid var(--line); border-radius: 6px; padding: 2rem 1.7rem;
    transition: border-color 0.3s, box-shadow 0.3s; transform-style: preserve-3d; will-change: transform;
}
.r-sector:hover { border-color: rgba(201, 162, 39, 0.5); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45); }
.r-sector-icon { width: 42px; height: 42px; color: var(--gold); margin-bottom: 1.1rem; }
.r-sector h3 { font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--ivory); margin-bottom: 0.5rem; }
.r-sector p { font-size: 0.88rem; color: var(--text-dim); }

/* trust marquee */
.r-marquee { overflow: hidden; padding: 1.6rem 0 1rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.r-marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; align-items: stretch; will-change: transform; transform: translateZ(0); }
.r-marquee:hover .r-marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
[dir="rtl"] .r-marquee-track { animation-name: marquee-rtl; }
.r-client {
    display: flex; flex-direction: column; justify-content: center; margin-inline-end: 2.2rem;
    background: #fff; border-radius: 12px; padding: 1.3rem 2rem; min-width: 230px;
    box-shadow: 0 8px 28px rgba(20, 27, 43, 0.12); transition: transform 0.3s, box-shadow 0.3s;
}
.r-client:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20, 27, 43, 0.2); }
.r-client-logo { height: 40px; width: auto; max-width: 170px; object-fit: contain; align-self: flex-start; margin-bottom: 0.7rem; }
.r-client-name { font-family: var(--display); color: #16294A; font-size: 1.04rem; white-space: nowrap; line-height: 1.4; }
.r-client-tag { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8A8F9C; margin-top: 0.25rem; }
.lang-ar .r-client-tag { letter-spacing: 0; }

/* legacy */
.r-legacy { background: radial-gradient(ellipse 70% 90% at 15% 50%, rgba(30, 58, 110, 0.3), transparent 60%); }
.r-legacy-grid { display: grid; grid-template-columns: auto 1fr; gap: 3.5rem; align-items: center; }
.r-legacy-year {
    font-family: var(--display); font-size: clamp(4.5rem, 12vw, 9rem); line-height: 1;
    color: transparent; -webkit-text-stroke: 1.5px rgba(201, 162, 39, 0.55);
}

/* CTA band */
.r-band { background: radial-gradient(ellipse 45% 100% at 88% 50%, rgba(201, 162, 39, 0.13), transparent 62%), linear-gradient(115deg, var(--ink-2), var(--ink-3)); border-block: 1px solid var(--line); }
.r-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3.6rem 1.4rem; flex-wrap: wrap; }
.r-band h2 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; color: var(--ivory); margin-bottom: 0.4rem; }
.r-band p { color: var(--text-dim); max-width: 520px; }

/* news */
.r-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.r-news-card {
    display: block; text-decoration: none; background: var(--ink-2); border: 1px solid var(--line);
    border-radius: 6px; overflow: hidden; padding-bottom: 1.4rem; transition: border-color 0.3s;
    transform-style: preserve-3d; will-change: transform;
}
.r-news-card:hover { border-color: rgba(201, 162, 39, 0.5); }
.r-news-card img { width: 100%; height: 170px; object-fit: cover; display: block; margin-bottom: 1.1rem; }
.r-news-date { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gold); padding: 0 1.4rem; text-transform: uppercase; }
.r-news-card h3 { font-size: 1.02rem; color: var(--ivory); padding: 0.4rem 1.4rem 0; font-weight: 500; line-height: 1.55; }

/* ═══ track record ledger ═══ */
.r-track { max-width: 980px; }
.r-track-row {
    display: grid; grid-template-columns: 250px 1fr; gap: 1.6rem; align-items: baseline;
    padding: 1.15rem 0.4rem; border-bottom: 1px solid var(--line); transition: background 0.25s;
}
.r-track-row:hover { background: rgba(201, 162, 39, 0.04); }
.r-track-client { font-family: var(--display); color: var(--gold); font-size: 1.02rem; }
.r-track-what { color: var(--text-dim); font-size: 0.95rem; }
@media (max-width: 680px) { .r-track-row { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ═══ inner pages shared ═══ */
.r-page-head { padding: 9.5rem 0 3.5rem; background: radial-gradient(ellipse 80% 90% at 50% -20%, rgba(30, 58, 110, 0.5), transparent 65%); }
.r-page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--ivory); }
.r-page-head p { color: var(--text-dim); max-width: 640px; margin-top: 1rem; }
.r-prose { max-width: 760px; color: var(--text-dim); }
.r-prose h2 { font-family: var(--display); font-weight: 400; color: var(--ivory); margin: 2.4rem 0 0.8rem; }
.r-prose p { margin-bottom: 1rem; }

/* forms */
.r-form { max-width: 620px; }
.r-form label { display: block; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--gold); margin: 1.3rem 0 0.4rem; }
.r-form input, .r-form textarea, .r-form select {
    width: 100%; background: var(--ink-2); border: 1px solid var(--line); border-radius: 4px;
    color: var(--ivory); padding: 0.85rem 1rem; font-family: var(--body); font-size: 0.97rem;
    transition: border-color 0.25s;
}
.r-form input:focus, .r-form textarea:focus { outline: none; border-color: var(--gold); }
.r-form button { margin-top: 1.8rem; cursor: pointer; font-family: var(--body); }
.r-flash { background: rgba(201, 162, 39, 0.12); border: 1px solid var(--line); color: var(--gold-hi); border-radius: 6px; padding: 1rem 1.3rem; margin: 6.5rem 0 -4rem; }
.r-flash-error { background: rgba(220, 60, 60, 0.1); border: 1px solid rgba(220, 60, 60, 0.4); color: #f0a8a8; border-radius: 6px; padding: 1rem 1.3rem; margin-bottom: 1.4rem; }

/* certificates */
.r-cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.r-cert { background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 1rem; text-align: center; display: flex; flex-direction: column; }
.r-cert a { display: flex; align-items: center; justify-content: center; height: 320px; background: #0B1322; border-radius: 4px; }
.r-cert img { border-radius: 4px; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.r-cert figcaption { margin-top: auto; }
.r-cert figcaption { font-size: 0.82rem; color: var(--text-dim); padding-top: 0.8rem; }

/* timeline (about) */
.r-timeline { border-inline-start: 1.5px solid var(--line); margin: 2.5rem 0; padding-inline-start: 2.2rem; }
.r-tl-item { position: relative; padding-bottom: 2.4rem; }
.r-tl-item::before {
    content: ''; position: absolute; inset-inline-start: -2.63rem; top: 0.45rem;
    width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 2.5px solid var(--gold);
}
.r-tl-year { font-family: var(--display); color: var(--gold); font-size: 1.35rem; }
.r-tl-item h3 { color: var(--ivory); font-weight: 500; font-size: 1.05rem; margin: 0.2rem 0; }
.r-tl-item p { color: var(--text-dim); font-size: 0.92rem; max-width: 560px; }

/* offices */
.r-office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.r-office { background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem 1.6rem; }
.r-office h3 { font-family: var(--display); font-weight: 400; color: var(--gold); margin-bottom: 0.6rem; }
.r-office p { font-size: 0.9rem; color: var(--text-dim); }

/* ═══ footer ═══ */
.r-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 30%); margin-top: 0; }
.r-footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 0.8fr; gap: 2.5rem; padding: 3.6rem 1.4rem; }
.r-footer-brand { font-family: var(--display); font-size: 1.7rem; letter-spacing: 0.14em; color: var(--ivory); }
.r-footer-tagline { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.7rem; max-width: 340px; }
.r-footer-head { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.lang-ar .r-footer-head { letter-spacing: 0.04em; }
.r-footer p { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 0.9rem; }
.r-footer a { display: block; text-decoration: none; color: var(--text-dim); font-size: 0.9rem; padding: 0.22rem 0; transition: color 0.25s; }
.r-footer a:hover { color: var(--gold-hi); }
.r-footer-bottom { border-top: 1px solid var(--line); padding: 1.1rem 0; font-size: 0.78rem; color: var(--text-dim); text-align: center; }

/* Arabic never tolerates letter-spacing: it disconnects the letters */
.lang-ar .r-footer-brand, .lang-ar .r-btn, .lang-ar .r-nav a,
.lang-ar .r-news-date, .lang-ar .r-form label { letter-spacing: 0; }

/* founder portrait (about) */
.r-founder-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
.r-founder { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.r-founder img { width: 100%; border-radius: 8px; display: block; }
.r-founder figcaption { text-align: center; padding-top: 0.9rem; color: var(--gold); font-family: var(--display); }
.r-founder figcaption span { display: block; color: var(--text-dim); font-family: var(--body); font-size: 0.8rem; }
@media (max-width: 860px) { .r-founder-grid { grid-template-columns: 1fr; } .r-founder { max-width: 380px; } }

/* ═══ reveals ═══ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* ═══ responsive ═══ */
@media (max-width: 1000px) {
    .r-sector-grid, .r-news-grid, .r-cert-grid, .r-office-grid { grid-template-columns: repeat(2, 1fr); }
    .r-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .r-stat:nth-child(odd) { border-inline-start: 0; }
    .r-stat { border-top: 1px solid var(--line); }
    .r-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .r-nav {
        display: none; position: fixed; top: 62px; inset-inline: 0; flex-direction: column; gap: 0;
        background: rgba(7, 13, 26, 0.98); padding: 1rem 1.6rem 1.6rem; border-bottom: 1px solid var(--line);
    }
    .r-nav.open { display: flex; }
    .r-nav a { padding: 0.8rem 0; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .r-burger { display: flex; }
    .r-sector-grid, .r-news-grid, .r-cert-grid, .r-office-grid, .r-footer-grid { grid-template-columns: 1fr; }
    .r-legacy-grid { grid-template-columns: 1fr; gap: 1rem; }
    .r-band-inner { flex-direction: column; align-items: flex-start; }

    /* compact one-line brand */
    .r-brand-name { font-size: 1.15rem; letter-spacing: 0.12em; }
    .r-brand-sub { font-size: 0.5rem; letter-spacing: 0.14em; white-space: nowrap; }

    /* hero: copy first, then Syria on its own clear stage below the CTAs */
    .r-hero-inner { padding-top: 7.5rem; padding-bottom: 46vh; }
    .r-eyebrow { font-size: 0.68rem; letter-spacing: 0.14em; }
    .r-hero-title { font-size: clamp(2.15rem, 10.5vw, 2.9rem); }
    .r-hero-ctas { margin-top: 2rem; }
    .r-hero-ctas .r-btn { flex: 1 1 100%; text-align: center; justify-content: center; }
    .r-hero-scroll { display: none; }
}

/* ═══ reduced motion — full respect ═══ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .r-marquee-track { animation: none; flex-wrap: wrap; width: auto; }
    .r-gold-text { animation: none; }
    .r-hero-scroll { display: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .tilt { transform: none !important; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══════════════════════════════════════════════════════════════
   ATMOSPHERE — no section sits on flat ink
   dot constellations, ghost numerals, corner nebulae, meridians
   ═══════════════════════════════════════════════════════════════ */
.r-atmo { position: relative; overflow: hidden; }
.r-atmo-dots::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(201, 162, 39, 0.16) 1.1px, transparent 1.55px);
    background-size: 27px 27px;
    -webkit-mask-image: radial-gradient(ellipse 62% 75% at var(--atmo-x, 82%) var(--atmo-y, 18%), #000, transparent 78%);
    mask-image: radial-gradient(ellipse 62% 75% at var(--atmo-x, 82%) var(--atmo-y, 18%), #000, transparent 78%);
}
.r-atmo-glow::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 46% 60% at var(--atmo-x, 82%) var(--atmo-y, 18%), rgba(30, 58, 110, 0.52), transparent 70%);
}
[dir="rtl"] .r-atmo-dots::before,
[dir="rtl"] .r-atmo-glow::after { --atmo-x: 18%; }

.r-ghost {
    position: absolute; top: -1.2rem; inset-inline-end: -0.5rem; z-index: 0;
    font-family: var(--display); font-weight: 400; line-height: 1; white-space: nowrap;
    font-size: clamp(5.5rem, 15vw, 12rem);
    color: transparent; -webkit-text-stroke: 1.3px rgba(201, 162, 39, 0.22);
    pointer-events: none; user-select: none;
}
.r-section > .r-container { position: relative; z-index: 1; }

/* every dark atmo section opens with a faint gold seam */
.r-atmo {
    background-image: linear-gradient(90deg, transparent 18%, rgba(201, 162, 39, 0.16) 50%, transparent 82%);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: top;
}

/* photographic field tiles: navy duotone, gold captions */
.r-field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.r-field {
    position: relative; margin: 0; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--line); aspect-ratio: 16 / 10; will-change: transform;
}
.r-field img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: saturate(0.65) contrast(1.06) brightness(0.9);
    transition: transform 0.6s ease-out, filter 0.4s;
}
.r-field::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7, 13, 26, 0.15), rgba(7, 13, 26, 0.78));
}
.r-field:hover img { transform: scale(1.05); filter: saturate(0.9) contrast(1.06) brightness(1); }
.r-field figcaption {
    position: absolute; bottom: 0.9rem; inset-inline: 1.1rem; z-index: 2;
    font-family: var(--display); color: var(--gold-hi); font-size: 1.02rem; letter-spacing: 0.03em;
}
.lang-ar .r-field figcaption { letter-spacing: 0; }
@media (max-width: 860px) { .r-field-grid { grid-template-columns: 1fr; } }

/* meridian: a single gold thread falling through the section */
.r-meridian::after {
    content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: 12%;
    width: 1px; pointer-events: none;
    background: linear-gradient(transparent, rgba(201, 162, 39, 0.22) 30%, rgba(201, 162, 39, 0.22) 60%, transparent);
}

/* sector cards: numbered, icons ignite on hover */
.r-sector { position: relative; }
.r-sector-num {
    position: absolute; top: 1.1rem; inset-inline-end: 1.3rem;
    font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.12em;
    color: rgba(201, 162, 39, 0.4);
}
.r-sector:hover .r-sector-icon { filter: drop-shadow(0 0 14px rgba(232, 193, 90, 0.65)); }
.r-sector-icon { transition: filter 0.3s; }

/* news cards: images breathe on hover */
.r-news-card { overflow: hidden; }
.r-news-card img { transition: transform 0.5s ease-out; }
.r-news-card:hover img { transform: scale(1.06); }

/* page heads inherit the constellation */
.r-page-head { position: relative; overflow: hidden; }
.r-page-head .r-ghost { top: 12%; }
.r-page-head .r-container { position: relative; z-index: 1; }

/* stats strip: gold hairline crown */
.r-stats { position: relative; }
.r-stats::before {
    content: ''; position: absolute; top: -1px; left: 15%; right: 15%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.55), transparent);
}

@media (prefers-reduced-motion: reduce) {
    .r-news-card:hover img { transform: none; }
}

/* news cards without a photograph get a designed cover, never a void */
.r-news-card:not(:has(img))::before {
    content: '';
    display: block;
    height: 170px;
    margin-bottom: 1.1rem;
    background:
        radial-gradient(ellipse 60% 80% at 50% 115%, rgba(201, 162, 39, 0.28), transparent 65%),
        radial-gradient(rgba(201, 162, 39, 0.12) 1px, transparent 1.4px),
        linear-gradient(160deg, #16233E, #0D1830);
    background-size: auto, 22px 22px, auto;
    border-bottom: 1px solid var(--line);
}

/* ═══ office constellation mini-maps ═══ */
.r-minimap {
    aspect-ratio: 16 / 8.5; margin: -1.8rem -1.6rem 1.2rem; padding: 0.4rem;
    background: linear-gradient(170deg, #0E1A30, #0B1526);
    border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; overflow: hidden;
}
.r-minimap svg { width: 100%; height: 100%; }
.r-pin-dot { fill: var(--gold-hi); }
.r-pin-ring { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.7; transform-origin: center; transform-box: fill-box; animation: pin-pulse 2.4s ease-out infinite; }
.r-pin-label { fill: rgba(232, 193, 90, 0.85); font-family: Inter, 'Noto Kufi Arabic', sans-serif; font-size: 8.5px; letter-spacing: 0.08em; }
.lang-ar .r-pin-label { letter-spacing: 0; }
@keyframes pin-pulse { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .r-pin-ring { animation: none; } }

/* ═══ the gold journey (partner page) ═══ */
.r-journey { position: relative; max-width: 640px; padding: 0.6rem 0; }
.r-journey::before {
    content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: 1.15rem; width: 2px;
    background: linear-gradient(rgba(201, 162, 39, 0.05), var(--gold) 30%, var(--gold) 75%, rgba(201, 162, 39, 0.05));
    transform: scaleY(0); transform-origin: top;
    transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    box-shadow: 0 0 14px rgba(201, 162, 39, 0.35);
}
.r-journey.in::before { transform: scaleY(1); }
.r-j-step { position: relative; padding: 1.05rem 0 1.05rem; padding-inline-start: 3.4rem; }
.r-j-step p { color: var(--text); font-size: 1.02rem; max-width: 520px; }
.r-j-dot {
    position: absolute; inset-inline-start: 0; top: 0.95rem;
    width: 2.35rem; height: 2.35rem; border-radius: 50%;
    background: var(--ink-2); border: 1.5px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 rgba(201, 162, 39, 0);
    transition: box-shadow 0.6s, background 0.6s;
}
.r-j-step.in .r-j-dot { background: #1A2440; box-shadow: 0 0 22px rgba(201, 162, 39, 0.45); }
.r-j-dot i { font-style: normal; font-family: var(--display); color: var(--gold-hi); font-size: 1rem; }
[dir="rtl"] .r-journey::before { inset-inline-start: 1.15rem; }
@media (prefers-reduced-motion: reduce) { .r-journey::before { transform: scaleY(1); transition: none; } }

/* ═══ certificate lightbox ═══ */
.r-lb-overlay {
    position: fixed; inset: 0; z-index: 1500;
    background: rgba(7, 13, 26, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; padding: 2rem 1rem;
    opacity: 0; pointer-events: none; transition: opacity 0.35s ease-out;
}
.r-lb-overlay.open { opacity: 1; pointer-events: auto; }
.r-lb-box {
    background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px;
    max-width: min(760px, 94vw); max-height: 92vh; padding: 1.2rem;
    display: flex; flex-direction: column; gap: 0.9rem; align-items: center;
    transform: translateY(14px) scale(0.96); transition: transform 0.35s ease-out;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.r-lb-overlay.open .r-lb-box { transform: none; }
.r-lb-img { max-width: 100%; max-height: 62vh; object-fit: contain; border-radius: 6px; }
.r-lb-caption { font-family: var(--display); color: var(--ivory); font-size: 1.02rem; text-align: center; }
.r-lb-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
.r-lb-close {
    position: absolute; top: 1.2rem; inset-inline-end: 1.4rem;
    background: none; border: 1px solid var(--line); color: var(--ivory);
    width: 42px; height: 42px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
    transition: all 0.25s;
}
.r-lb-close:hover { border-color: var(--gold); color: var(--gold-hi); transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
    .r-lb-overlay, .r-lb-box, .r-lb-close:hover { transition: none; transform: none; }
}

/* office cards: centered in both languages (fixes RTL phone alignment) */
.r-office { text-align: center; }
.r-office p[dir="ltr"] { text-align: center; }

/* mini-map street labels */
.r-map-label { fill: rgba(148, 160, 184, 0.55); font-family: Inter, 'Noto Kufi Arabic', sans-serif; font-size: 6.6px; letter-spacing: 0.04em; }
.lang-ar .r-map-label { letter-spacing: 0; font-size: 7.2px; }
.r-map-water { fill: rgba(90, 130, 190, 0.10); }
.r-map-water-line { stroke: rgba(90, 130, 190, 0.25); fill: none; stroke-width: 0.8; }
.r-map-block { fill: rgba(148, 160, 184, 0.05); }
.r-map-major { stroke: rgba(200, 208, 224, 0.30); fill: none; stroke-width: 1.5; }
.r-map-minor { stroke: rgba(148, 160, 184, 0.16); fill: none; stroke-width: 0.7; }
