/*
 * Beacon FinTrain company profile — public page styles.
 *
 * A translation of the original React build: its inline styles become the
 * classes below, its JS width checks become media queries, and its
 * stylesheet (keyframes, client grid, the How It Works road) is carried over
 * as-is. Brand colors are CSS variables printed in <head> from the
 * dashboard's Brand & Colors page (see app/views/public/helpers.php).
 *
 * Note: a few original rules reference an undefined var(--font-display, sans-serif)
 * and so actually render in the browser's generic sans-serif — kept that way
 * (as literal sans-serif) for visual parity.
 */

:root {
    --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --f-body: 'Inter', 'Arial', sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset (the subset of the original Tailwind base this page relies on) ── */

*, *::before, *::after { box-sizing: border-box; border: 0 solid; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; scroll-behavior: smooth; tab-size: 4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
img, svg, video { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button { font: inherit; letter-spacing: inherit; color: inherit; background-color: transparent; border-radius: 0; }
[hidden] { display: none !important; }

body {
    color: var(--navy);
    background: var(--bg);
    font-family: Inter, Arial Narrow, Arial, sans-serif;
    overflow-x: hidden;
}
body::-webkit-scrollbar { width: 5px; }
body::-webkit-scrollbar-track { background: 0 0; }
body::-webkit-scrollbar-thumb { background: rgba(var(--navy-rgb), 0.15); border-radius: 99px; }

mark { background: none; color: var(--gold-dark); font-weight: 700; }
.on-dark mark, .hero mark, .wwd-card-1 mark, .wwd-card-3 mark { color: var(--gold); }
.section-intro a, .who-p a, .team-p a, .hero-intro a { text-decoration: underline; text-underline-offset: 2px; }

/* ── Keyframes (verbatim from the original) ─────────────────────────────── */

@keyframes marquee { 0% { transform: translate(0); } to { transform: translate(-50%); } }
@keyframes scrollDot { 0%, to { opacity: 1; transform: translateY(0); } 65% { opacity: 0; transform: translateY(14px); } }
@keyframes heroFadeIn { 0% { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-ring { 0% { opacity: 0.4; transform: scale(1); } to { opacity: 0; transform: scale(1.5); } }
@keyframes drawRoad { to { stroke-dashoffset: 0; } }
@keyframes roadDashFlow { 0% { stroke-dashoffset: 48px; } to { stroke-dashoffset: 0; } }

/* ── Shared building blocks ─────────────────────────────────────────────── */

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
    font-family: var(--f-body); font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.eyebrow.is-light { color: rgba(var(--gold-rgb), 0.9); }

.section-title {
    font-family: var(--f-display); font-size: clamp(36px, 4.5vw, 58px); font-weight: 900;
    color: var(--navy); line-height: 1.05; letter-spacing: -0.01em;
}
.section-title.is-light { color: #fff; }

.section-intro { font-family: var(--f-body); color: var(--muted); font-size: 17px; line-height: 1.7; }

.tilt { transform-style: preserve-3d; }

/* Scroll reveal. Hidden only once JS has loaded (html.js) so the page is
   fully readable without JavaScript. */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.82s ease var(--d, 0ms), transform 0.92s var(--ease-out) var(--d, 0ms);
    will-change: opacity, transform;
}
.js [data-reveal].is-up { transform: translateY(-48px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ── Scroll progress ────────────────────────────────────────────────────── */

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: rgba(var(--navy-rgb), 0.1); }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.1s linear; }

/* ── Navigation ─────────────────────────────────────────────────────────── */

.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: transparent; transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-nav.is-open { background: var(--navy); }
.site-nav.is-scrolled { background: rgba(255, 255, 255, 0.97); box-shadow: 0 1px 24px rgba(var(--navy-rgb), 0.09); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 34px; width: auto; transition: opacity 0.3s ease; }
.nav-logo .logo-light { display: none; }
.is-scrolled .nav-logo .logo-dark, .is-open .nav-logo .logo-dark { display: none; }
.is-scrolled .nav-logo .logo-light, .is-open .nav-logo .logo-light { display: block; }
.is-open:not(.is-scrolled) .nav-logo .logo-light { filter: brightness(0) invert(1); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
    color: rgba(255, 255, 255, 0.88); font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
    font-family: var(--f-body); transition: color 0.2s ease;
}
.is-scrolled .nav-link { color: var(--navy); }
.nav-links .nav-link:hover { color: var(--gold); }
.nav-cta {
    background: var(--gold); color: var(--navy); padding: 9px 22px; font-size: 13px; font-weight: 700;
    font-family: var(--f-body); letter-spacing: 0.03em; display: inline-block;
    box-shadow: 0 4px 14px rgba(var(--gold-rgb), 0.28); transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* Extra menu tabs: dropdown (opened by site.js; hover/focus fallback without JS) */
.nav-ext { font-size: 0.85em; opacity: 0.7; }
.nav-drop { position: relative; }
.nav-drop-toggle { background: none; border: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.nav-drop-toggle:hover, .nav-drop.is-open .nav-drop-toggle { color: var(--gold); }
.nav-drop-caret { font-size: 10px; transition: transform 0.25s ease; }
.nav-drop.is-open .nav-drop-caret { transform: rotate(180deg); }
.nav-drop-menu {
    position: absolute; top: calc(100% + 16px); left: 50%; min-width: 260px; padding: 8px 0; background: #fff;
    border-top: 3px solid var(--gold); box-shadow: 0 12px 32px rgba(var(--navy-rgb), 0.16);
    opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -19px; height: 19px; } /* hover bridge */
.nav-drop.is-open .nav-drop-menu,
html:not(.js) .nav-drop:hover .nav-drop-menu,
html:not(.js) .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop-link {
    display: block; padding: 11px 20px; color: var(--navy); font-size: 13px; font-weight: 600; font-family: var(--f-body);
    letter-spacing: 0.02em; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease;
}
.nav-drop-link:hover, .nav-drop-link:focus-visible { background: rgba(var(--gold-rgb), 0.14); color: var(--navy); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: #fff; border-radius: 99px; transition: all 0.32s var(--ease-out); transform-origin: center; }
.is-scrolled .nav-toggle span { background: var(--navy); }
.is-open .nav-toggle span { background: var(--accent); }
.is-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-mobile { display: none; overflow: hidden; max-height: 0; transition: max-height 0.48s var(--ease-out); background: var(--navy-deep); }
.is-open .nav-mobile { max-height: 760px; }
.nav-mobile-bar { height: 3px; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.nav-mobile-list { padding: 4px 24px 28px; display: flex; flex-direction: column; }
.nav-mobile-link {
    color: rgba(255, 255, 255, 0.78); padding: 14px 0; font-size: 16px; font-weight: 600; font-family: var(--f-body);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06); display: flex; align-items: center; gap: 10px;
    transition: color 0.2s ease, padding-left 0.2s ease; transition-delay: var(--d, 0ms);
    opacity: 0; transform: translateX(-12px);
}
.nav-mobile-link::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; flex-shrink: 0; }
.is-open .nav-mobile-link { opacity: 1; transform: translateX(0); }
.nav-mobile-link:hover { color: var(--accent); padding-left: 6px; }
.nav-mobile-link.is-sub { padding-left: 16px; font-size: 15px; }
.nav-mobile-link.is-sub:hover { padding-left: 22px; }
.nav-mobile-group {
    color: rgba(255, 255, 255, 0.45); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    font-family: var(--f-body); padding: 18px 0 4px; opacity: 0; transition: opacity 0.2s ease; transition-delay: var(--d, 0ms);
}
.is-open .nav-mobile-group { opacity: 1; }
.nav-mobile-cta {
    margin-top: 20px; background: var(--gold); color: var(--navy); padding: 14px 24px; font-size: 15px; font-weight: 700;
    font-family: var(--f-body); text-align: center; box-shadow: 0 6px 20px rgba(var(--gold-rgb), 0.28); transition: background 0.2s ease;
}
.nav-mobile-cta:hover { background: var(--gold-dark); }

@media (max-width: 767.98px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-mobile { display: block; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero { min-height: 100vh; position: sticky; top: 0; z-index: 0; overflow: hidden; display: flex; align-items: center; background: var(--navy-deep); }
.hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center;
    opacity: 0.52; transform-origin: center center; transition: transform 0.05s linear; will-change: transform;
}
.hero-overlay { position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(155deg, rgba(var(--navy-deep-rgb), 0.58) 0%, rgba(var(--navy-rgb), 0.38) 45%, rgba(var(--navy-deep-rgb), 0.55) 100%); }
.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to bottom, transparent, rgba(var(--navy-deep-rgb), 0.65)); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; pointer-events: none; background-size: 72px 72px;
    background-image: linear-gradient(rgba(var(--gold-rgb), 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--gold-rgb), 0.03) 1px, transparent 1px); }
.hero-glow { position: absolute; top: 15%; right: 8%; width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.08) 0%, transparent 68%); }

.hero-content { position: relative; max-width: 1280px; margin: 0 auto; padding: 80px 24px 120px; width: 100%; transition: opacity 0.05s linear; will-change: transform, opacity; }

.js .hero-in { opacity: 0; transform: translateY(30px); transition: opacity 0.9s ease var(--d, 0ms), transform 0.95s var(--ease-out) var(--d, 0ms); }
.js .hero.is-loaded .hero-in { opacity: 1; transform: translateY(0); }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(var(--gold-rgb), 0.1); border: 1px solid rgba(var(--gold-rgb), 0.22); border-radius: 999px; padding: 6px 18px; margin-bottom: 16px; }
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: block; }
.hero-badge-text { font-family: var(--f-body); color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.hero-headline { max-width: 920px; }
.hero-h1 { font-family: var(--f-display); font-weight: 900; line-height: 0.92; letter-spacing: -0.015em; }
.hero-h1-white { color: #fff; font-size: clamp(68px, 8vw, 80px); }
.hero-h1-gold {
    font-size: clamp(66px, 8vw, 80px);
    background: linear-gradient(128deg, var(--gold) 0%, var(--gold-shine) 55%, var(--gold) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-h1.is-last { margin-bottom: 30px; }

.hero-intro { font-family: var(--f-body); color: rgba(255, 255, 255, 0.62); font-size: 18px; line-height: 1.72; max-width: 560px; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-gold {
    background: var(--gold); color: var(--navy); padding: 14px 36px; font-size: 15px; font-weight: 700; font-family: var(--f-body);
    letter-spacing: 0.03em; display: inline-block; transition: background 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 4px 20px rgba(var(--gold-rgb), 0.25);
}
.btn-outline {
    background: transparent; color: rgba(255, 255, 255, 0.8); border: 1.5px solid rgba(255, 255, 255, 0.22); padding: 14px 36px;
    font-size: 15px; font-weight: 600; font-family: var(--f-body); letter-spacing: 0.03em; display: inline-block; transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin-top: 32px; background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 1px solid rgba(255, 255, 255, 0.12); overflow: hidden;
}
.hero-stat { padding: 20px 14px; text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.10); }
.hero-stat:last-child { border-right: none; }
.hero-stat-value { font-family: var(--f-display); font-size: 32px; font-weight: 900; color: var(--gold); line-height: 1; }
.hero-stat-label { font-family: var(--f-body); font-size: 11px; color: rgba(255, 255, 255, 0.60); margin-top: 5px; letter-spacing: 0.05em; text-transform: uppercase; }

.hero-partners { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; align-items: center; }
.hero-partners-label { font-family: var(--f-body); font-size: 10px; color: rgba(255, 255, 255, 0.25); letter-spacing: 0.1em; text-transform: uppercase; margin-right: 4px; }
.hero-chip {
    padding: 4px 12px; border: 1px solid rgba(var(--gold-rgb), 0.18); border-radius: 999px; font-size: 11px; color: rgba(var(--gold-rgb), 0.65);
    font-family: var(--f-body); font-weight: 700; letter-spacing: 0.05em; transition: all 0.2s ease; cursor: default;
}
.hero-chip:hover { background: rgba(var(--gold-rgb), 0.1); color: var(--gold); }

.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); opacity: 0.5; transition: opacity 0.8s ease 1.2s; }
.js .hero-scroll { opacity: 0; }
.hero-scroll-mouse { width: 26px; height: 40px; border: 1.5px solid rgba(255, 255, 255, 0.25); border-radius: 99px; display: flex; justify-content: center; padding-top: 7px; }
.hero-scroll-dot { width: 4px; height: 8px; background: var(--gold); border-radius: 99px; animation: scrollDot 2.2s ease-in-out infinite; }

/* ── Who We Are ─────────────────────────────────────────────────────────── */

.who {
    background: #fff; padding: 80px 0 100px; position: relative; z-index: 1;
    clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%); margin-top: -48px; box-shadow: 0 -24px 80px rgba(var(--navy-deep-rgb), 0.45);
}
.who .container { padding-top: 28px; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 64px; align-items: start; }
.eyebrow-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.eyebrow-bar { width: 36px; height: 3px; background: var(--accent); flex-shrink: 0; }
.who-p { font-family: var(--f-body); color: var(--muted); font-size: 17px; line-height: 1.78; }
.who-p.is-first { margin-top: 24px; margin-bottom: 14px; }
.who-numbers-label { font-family: var(--f-body); font-size: 11px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

.reach-card { background: linear-gradient(140deg, var(--navy) 0%, var(--navy-light) 100%); padding: 28px 32px; color: #fff; position: relative; overflow: hidden; }
.reach-card-glow { position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(var(--gold-rgb), 0.07); pointer-events: none; }
.reach-card-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.reach-number { font-family: var(--f-display); font-size: 56px; font-weight: 900; color: var(--gold); line-height: 1; }
.reach-caption { font-family: var(--f-body); font-size: 16px; color: rgba(255, 255, 255, 0.7); margin-top: 6px; }
.reach-footer { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.reach-footer > span { font-family: var(--f-body); font-size: 14px; color: rgba(255, 255, 255, 0.5); }
.reach-footer mark { color: var(--gold); font-weight: bolder; }
.reach-footer strong { color: #fff; }

.powered-numbers-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; display: grid; }
.pn-card {
    min-height: 76px; padding: 12px 6px; background: var(--bg); border: 1px solid var(--border); text-align: center; display: flex;
    flex-direction: column; align-items: center; justify-content: center; color: var(--navy); font-family: var(--f-body);
    transition: all 0.22s ease; cursor: default;
}
.pn-card:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }
.pn-value { font-size: 24px; font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.pn-label { margin-top: 7px; font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; }

.location-tags { flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; margin-top: 0; display: flex; }
.location-tag {
    box-sizing: border-box; min-height: 42px; font-size: 14px; font-weight: 600; font-family: sans-serif; text-align: center; flex: auto;
    justify-content: center; align-items: center; padding: 0 18px; line-height: 1.2; display: inline-flex;
    background: var(--navy-muted); color: var(--navy); transition: all 0.2s ease; cursor: default;
}
.location-tag:hover { background: var(--navy); color: #fff; }

@media (max-width: 768px) {
    .powered-numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .location-tags { grid-template-columns: 1fr; gap: 6px; display: grid; }
    .location-tag { width: 100%; min-height: 38px; padding: 0 10px; font-size: 12px; }
}

/* ── Our Clients ────────────────────────────────────────────────────────── */

.clients { background: #fff; padding: 100px 0 80px; position: relative; z-index: 1; }
.clients-head { text-align: center; margin-bottom: 64px; }
.clients-eyebrow { font-family: var(--f-body); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy-deep); margin-bottom: 12px; opacity: 0.6; }
.clients .section-intro { max-width: 580px; margin: 16px auto 0; }

.country-groups-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; width: 100%; display: grid; }
@media (max-width: 768px) { .country-groups-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.country-col { flex: 1; min-width: 0; outline: 2px solid transparent; transition: outline-color 0.3s ease; }
.country-col.is-hovered { outline-color: var(--navy); }
.country-head { text-align: center; padding-bottom: 18px; padding-top: 4px; }
.country-flag {
    width: 68px; height: 68px; border-radius: 50%; border: 2px solid var(--border); display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 10px; overflow: hidden; transition: border-color 0.3s ease; background-color: #fff;
}
.is-hovered .country-flag { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(var(--navy-rgb), 0.1); }
.country-flag img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.country-name { font-family: var(--f-display); font-size: 16px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }

.client-col { height: 520px; overflow-y: scroll; overflow-x: hidden; scrollbar-width: none; cursor: default; padding: 0 4px; }
.client-col::-webkit-scrollbar { display: none; }
.is-hovered .client-col { cursor: ns-resize; }
.client-card {
    background: #fff; border: 1px solid var(--border); padding: 14px 16px 12px; margin-bottom: 8px; display: flex; flex-direction: column;
    align-items: center; gap: 8px; transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; cursor: default;
}
.client-card:hover { background: var(--navy-muted); border-color: var(--navy); box-shadow: 0 4px 18px rgba(var(--navy-rgb), 0.12); }
.client-card img { width: 100%; height: 50px; object-fit: contain; display: block; filter: grayscale(1); transition: filter 0.3s ease; }
.client-card:hover img { filter: grayscale(0); }
.client-card span {
    font-family: var(--f-body); font-size: 10px; color: var(--muted); text-align: center; letter-spacing: 0.07em; text-transform: uppercase;
    font-weight: 600; line-height: 1.4; transition: color 0.25s ease;
}
.client-card:hover span { color: var(--navy); }

/* ── Logo strips (Strategic Affiliations, Academies & Partnerships) ────── */

.logo-strip { padding: 80px 0 72px; overflow: hidden; position: relative; z-index: 1; }
.logo-strip.is-navy { background: var(--navy); }
.logo-strip.is-gold { background: var(--gold); }
.logo-strip-head { text-align: center; margin-bottom: 52px; }
.logo-strip-title { font-family: var(--f-display); font-size: clamp(30px, 3.5vw, 44px); font-weight: 900; color: #fff; line-height: 1.05; letter-spacing: -0.01em; }
.is-gold .logo-strip-title { color: var(--navy); }
.logo-strip-intro { font-family: var(--f-body); color: #fff; font-size: 15px; margin-top: 10px; opacity: 0.55; }
.is-gold .logo-strip-intro { color: var(--navy-deep); }

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent); mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent); }
.marquee-track { display: flex; align-items: stretch; animation: marquee 40s linear infinite; width: max-content; }
.marquee-item {
    width: 190px; margin: 0 8px; flex-shrink: 0; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px 20px 18px; filter: grayscale(1); cursor: default;
    transition: filter 0.35s ease, transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.marquee-item:hover { filter: grayscale(0); transform: translateY(-5px); box-shadow: 0 12px 32px rgba(var(--navy-rgb), 0.14); }
.marquee-logo { height: 52px; display: flex; align-items: center; justify-content: center; width: 100%; margin-bottom: 14px; }
.marquee-logo img { max-height: 52px; max-width: 150px; width: auto; height: auto; object-fit: contain; display: block; }
.marquee-name {
    font-family: var(--f-body); font-size: 10px; font-weight: 700; color: #6B7280; letter-spacing: 0.09em; text-transform: uppercase;
    text-align: center; border-top: 1px solid #F3F4F6; padding-top: 10px; width: 100%;
}

/* ── What We Do ─────────────────────────────────────────────────────────── */

.wwd { background: var(--bg); padding: 100px 0; position: relative; z-index: 1; }
.wwd-head { max-width: 680px; margin-bottom: 64px; }
.wwd-head .section-intro { margin-top: 16px; }
.wwd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; align-items: stretch; }

.wwd-card { padding: 36px; height: 100%; position: relative; overflow: hidden; }
.wwd-card-1 { background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%); }
.wwd-card-2 { background: #fff; border: 1px solid var(--border); transition: border-color 0.25s ease; }
.wwd-card-2:hover { border-color: var(--gold); }
.wwd-card-3 { background: linear-gradient(155deg, var(--accent-deep) 0%, var(--accent-mid) 30%, var(--accent) 60%, var(--accent-soft) 100%); }

.wwd-glow-1 { position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(var(--gold-rgb), 0.05); pointer-events: none; }
.wwd-glow-3a { position: absolute; top: -60px; left: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%); pointer-events: none; }
.wwd-glow-3b { position: absolute; bottom: -60px; right: -60px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 180, 120, 0.18) 0%, transparent 70%); pointer-events: none; }

.wwd-tag-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; row-gap: 6px; margin-bottom: 12px; }
.wwd-tag { font-family: var(--f-body); font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.wwd-card-2 .wwd-tag { color: var(--gold); }
.wwd-brand {
    padding: 3px 10px; background: rgba(0, 0, 0, 0.25); border-radius: 999px; font-size: 10px; color: rgba(255, 255, 255, 0.9); font-family: var(--f-body);
    font-weight: 700; letter-spacing: 0.08em; border: 1px solid rgba(255, 255, 255, 0.25); white-space: nowrap; flex-shrink: 0;
}
.wwd-title { font-family: var(--f-display); font-size: 34px; font-weight: 900; color: #fff; line-height: 1.05; margin-bottom: 12px; }
.wwd-card-2 .wwd-title { color: var(--navy); }
.wwd-desc { font-family: var(--f-body); font-size: 14px; line-height: 1.72; margin-bottom: 28px; }
.wwd-card-1 .wwd-desc { color: rgba(255, 255, 255, 0.58); }
.wwd-card-2 .wwd-desc { color: var(--muted); }
.wwd-card-3 .wwd-desc { color: rgba(255, 255, 255, 0.65); }
.wwd-badge { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: 0.02em; color: #fff; margin-bottom: 16px; line-height: 1.2; }
.wwd-card-2 .wwd-badge { color: var(--navy); }

.wwd-items { display: flex; flex-direction: column; gap: 12px; }
.wwd-item { display: flex; gap: 16px; padding: 16px; align-items: flex-start; transition: background 0.2s ease, transform 0.2s ease; }
.wwd-arrow { color: var(--gold); font-size: 16px; line-height: 1.4; flex-shrink: 0; }
.wwd-item-name { font-family: var(--f-body); font-weight: 700; font-size: 14px; }
.wwd-item-sub { font-family: var(--f-body); font-size: 12px; margin-top: 3px; line-height: 1.5; }

.wwd-card-1 .wwd-items { gap: 10px; }
.wwd-card-1 .wwd-item { gap: 12px; align-items: stretch; padding: 12px 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); transition: background 0.2s ease; }
.wwd-card-1 .wwd-item:hover { background: rgba(var(--gold-rgb), 0.08); }
.wwd-card-1 .wwd-item-name { color: #fff; font-size: 13px; font-weight: 600; }
.wwd-card-1 .wwd-item-sub { color: rgba(255, 255, 255, 0.4); margin-top: 2px; line-height: inherit; }

.wwd-card-2 .wwd-item { background: var(--bg); }
.wwd-card-2 .wwd-item:hover { background: var(--navy-muted); transform: translateX(4px); }
.wwd-card-2 .wwd-item-name { color: var(--navy); }
.wwd-card-2 .wwd-item-sub { color: var(--muted); }

.wwd-card-3 .wwd-item { background: rgba(255, 255, 255, 0.08); }
.wwd-card-3 .wwd-item:hover { background: rgba(255, 255, 255, 0.12); transform: translateX(4px); }
.wwd-card-3 .wwd-arrow { color: rgba(255, 220, 180, 0.9); }
.wwd-card-3 .wwd-item-name { color: #fff; }
.wwd-card-3 .wwd-item-sub { color: rgba(255, 255, 255, 0.6); }

.wwd-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-size: 13px; font-family: var(--f-body); font-weight: 700; letter-spacing: 0.03em; }
.wwd-card-1 .wwd-link { color: var(--gold); }
.wwd-card-2 .wwd-link { color: var(--navy); }
.wwd-card-3 .wwd-link { color: rgba(255, 230, 210, 0.9); transition: gap 0.2s ease, color 0.2s ease; }

/* ── Our Team ───────────────────────────────────────────────────────────── */

.team { background: var(--navy); padding: 100px 0; position: relative; z-index: 1; }
.team-head { max-width: 680px; margin-bottom: 60px; }
.team-p { font-family: var(--f-body); color: rgba(255, 255, 255, 0.55); font-size: 17px; line-height: 1.72; margin-top: 18px; }

.counters {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07); overflow: hidden; margin-bottom: 64px;
}
.counter { padding: 36px 24px; text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.06); transition: background 0.25s ease; cursor: default; }
.counter:last-child { border-right: none; }
.counter:hover { background: rgba(var(--gold-rgb), 0.06); }
.counter-value { font-family: var(--f-display); font-size: 58px; font-weight: 900; color: var(--gold); line-height: 1; }
.counter-label { font-family: var(--f-body); font-size: 15px; font-weight: 600; color: #fff; margin-top: 6px; }
.counter-sub { font-family: var(--f-body); font-size: 12px; color: rgba(255, 255, 255, 0.35); margin-top: 2px; }

.dept-heading { font-family: var(--f-display); font-size: 30px; font-weight: 800; color: #fff; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.dept {
    padding: 20px 22px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); cursor: default;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.3s var(--ease-out);
}
.dept:hover { background: rgba(var(--gold-rgb), 0.07); border-color: rgba(var(--gold-rgb), 0.22); transform: translateY(-3px); }
.dept-name { font-family: var(--f-body); font-weight: 700; color: #fff; font-size: 14px; margin-bottom: 4px; }
.dept-desc { font-family: var(--f-body); font-size: 13px; color: rgba(255, 255, 255, 0.45); line-height: 1.55; }

/* ── How It Works (the road; carried over from the original stylesheet) ─── */

.hiw { background: #fff; padding: 100px 0; position: relative; z-index: 1; }
.hiw-head { text-align: center; margin-bottom: 72px; }
.hiw .section-intro { max-width: 560px; margin: 16px auto 0; }

.methodology-roadmap-s-container {
    --roadmap-card-width: 260px; --roadmap-card-height: 240px; --roadmap-step-width: 324px;
    width: min(1280px, 100%); height: 500px; margin: 0 auto; padding: 0; position: relative; overflow: hidden;
}
.methodology-roadmap-s-svg { z-index: 1; pointer-events: none; width: 100%; height: 100%; position: absolute; inset: 0; }
.methodology-road-bg { fill: none; stroke: var(--navy-deep); stroke-width: 44px; stroke-linecap: round; stroke-linejoin: round; }
.methodology-road-main {
    fill: none; stroke: url(#roadGradient); stroke-width: 32px; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 2000; stroke-dashoffset: 2000px; animation: 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards drawRoad;
}
.methodology-road-dash {
    fill: none; stroke: #fff; stroke-width: 3px; stroke-dasharray: 10 14; stroke-linecap: round; stroke-linejoin: round;
    opacity: 0.9; animation: 1.8s linear infinite roadDashFlow;
}
.methodology-roadmap-s-step {
    z-index: 10; width: var(--roadmap-step-width, 324px); align-items: center; gap: 20px; display: flex; position: absolute;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.js .methodology-roadmap-s-step {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s ease var(--d, 0ms), transform 0.85s var(--ease-out) var(--d, 0ms); will-change: opacity, transform;
}
.js .methodology-roadmap-s-step.is-visible { opacity: 1; transform: translateY(0); }
.methodology-roadmap-s-card {
    background: #fff; border: 1px solid var(--border); border-radius: 0; flex: 1; padding: 20px 24px; position: relative;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 4px 20px rgba(var(--navy-rgb), 0.04);
}
.methodology-roadmap-s-step:hover .methodology-roadmap-s-card { border-color: #007db6; transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0, 125, 182, 0.12); }
.methodology-step-header { align-items: center; gap: 12px; margin-bottom: 10px; display: flex; }
.methodology-step-icon { color: var(--navy); flex-shrink: 0; justify-content: center; align-items: center; display: flex; }
.methodology-roadmap-s-card:hover .methodology-step-icon { color: #007db6; }
.methodology-roadmap-s-circle {
    width: 48px; height: 48px; font-family: sans-serif; color: #fff; z-index: 11; border-radius: 50%; flex-shrink: 0; justify-content: center;
    align-items: center; font-size: 16px; font-weight: 800; transition: all 0.3s; display: flex; box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(var(--navy-rgb), 0.15);
}
.methodology-roadmap-s-step:hover .methodology-roadmap-s-circle { transform: scale(1.12); box-shadow: 0 0 0 6px #fff, 0 12px 28px rgba(var(--navy-rgb), 0.25); }
.circle-step-1 { background: linear-gradient(135deg, #33a8ff, #007db6); }
.circle-step-2 { background: linear-gradient(135deg, #007db6, #005f8c); }
.circle-step-3 { background: linear-gradient(135deg, #005f8c, #004666); }
.circle-step-4 { background: linear-gradient(135deg, #004666, var(--navy)); }
.methodology-step-title { color: var(--navy); font-family: sans-serif; margin: 0; font-size: 18px; font-weight: 800; line-height: 1.2; transition: color 0.25s; }
.methodology-step-desc { color: #687386; font-family: sans-serif; margin: 0; font-size: 13px; line-height: 1.6; }
.methodology-roadmap-s-step:hover .methodology-step-title { color: #007db6; }

@media (max-width: 1023px) {
    .methodology-roadmap-s-container {
        border-left: 3px dashed #007db6; flex-direction: column; gap: 40px; max-width: calc(100% - 28px); height: auto;
        margin-left: 20px; padding-left: 44px; display: flex;
    }
    .methodology-roadmap-s-svg { display: none; }
    .methodology-roadmap-s-step { flex-direction: row; align-items: flex-start; gap: 0; width: 100%; position: static; }
    .methodology-roadmap-s-step, .js .methodology-roadmap-s-step { opacity: 1 !important; transform: none !important; }
    .methodology-roadmap-s-card { width: 100%; margin-left: 0; padding: 18px 16px; }
    .methodology-roadmap-s-circle { display: none; }
    .methodology-step-header { gap: 10px; }
    .methodology-step-title { font-size: 16px; }
    .methodology-step-desc { font-size: 13px; line-height: 1.6; }
}

/* ── Our Journey ────────────────────────────────────────────────────────── */

.journey { background: var(--bg); padding: 100px 0; position: relative; z-index: 1; }
.journey-head { text-align: center; margin-bottom: 72px; }
.journey .section-intro { max-width: 520px; margin: 16px auto 0; }
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline-line { position: absolute; left: 72px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(to bottom, var(--gold), var(--border)); }

.tl-item { display: flex; margin-bottom: 28px; align-items: flex-start; }
.tl-year { width: 72px; flex-shrink: 0; padding-top: 14px; padding-right: 20px; text-align: right; }
.tl-year span { font-family: var(--f-display); font-size: 15px; font-weight: 900; color: var(--gold-dark); letter-spacing: 0.04em; }
.tl-item.is-last .tl-year span { color: var(--navy); }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold); flex-shrink: 0; margin-top: 14px; z-index: 1; }
.tl-card {
    flex: 1; margin-left: 24px; background: #fff; border: 1px solid var(--border); padding: 20px 24px; cursor: default;
    box-shadow: 0 2px 10px rgba(var(--navy-rgb), 0.05); will-change: opacity, transform; transform-style: preserve-3d;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.tl-card:hover { border-color: var(--gold); box-shadow: 0 12px 36px rgba(var(--navy-rgb), 0.13); }
.tl-headline { font-family: var(--f-display); font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.tl-desc { font-family: var(--f-body); font-size: 14px; color: var(--muted); line-height: 1.68; }

/* Timeline reveal states (set by site.js): pre-down (default) / pre-up / is-visible. */
.js .tl-item .tl-year { opacity: 0; transform: translateX(-20px) translateY(0); transition: none; }
.js .tl-item.pre-up .tl-year { transform: translateX(0) translateY(-14px); }
.js .tl-item.is-visible .tl-year { opacity: 1; transform: translateX(0) translateY(0); transition: opacity 0.5s ease 160ms, transform 0.6s var(--ease-out) 160ms; }
.js .tl-item .tl-dot { transform: scale(0); transition: none; }
.js .tl-item.is-visible .tl-dot { transform: scale(1); transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 210ms; }
.js .tl-item .tl-card { opacity: 0; transform: perspective(920px) rotateX(-16deg) rotateY(var(--ry, -12deg)) translateY(72px) scale(0.87); transition: none; }
.js .tl-item.pre-up .tl-card { transform: perspective(920px) rotateX(16deg) rotateY(var(--ry, -12deg)) translateY(-72px) scale(0.87); }
.js .tl-item.is-visible .tl-card {
    opacity: 1; transform: perspective(920px) rotateX(0deg) rotateY(0deg) translateX(0) translateY(0) scale(1);
    transition: opacity 0.65s ease 90ms, transform 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 90ms, box-shadow 0.25s ease, border-color 0.25s ease;
}
.js .tl-item.is-visible .tl-card:hover {
    transform: perspective(920px) rotateX(0deg) rotateY(0deg) translateX(7px) translateY(0) scale(1.015);
    transition: opacity 0.65s ease, transform 0.32s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer { background: var(--navy-deep); padding: 72px 0 32px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.footer-logo { height: 34px; width: auto; margin-bottom: 20px; }
.footer-desc { font-family: var(--f-body); color: rgba(255, 255, 255, 0.4); font-size: 14px; line-height: 1.72; }
.footer-tags { display: flex; gap: 6px; margin-top: 18px; }
.footer-tag { padding: 4px 10px; background: rgba(255, 255, 255, 0.06); font-size: 11px; color: rgba(255, 255, 255, 0.4); font-family: var(--f-body); font-weight: 700; }
.footer-col-title { font-family: var(--f-body); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.28); margin-bottom: 18px; }
.footer-link-row { margin-bottom: 9px; }
.footer-col.is-plain .footer-link { font-family: var(--f-body); color: rgba(255, 255, 255, 0.5); font-size: 14px; transition: color 0.2s ease; }
.footer-col.is-plain .footer-link:hover { color: rgba(255, 255, 255, 0.9); }
.footer-col.is-certs .footer-link { font-family: var(--f-display); color: rgba(255, 255, 255, 0.5); font-size: 15px; font-weight: 700; transition: color 0.2s ease; }
.footer-col.is-certs .footer-link:hover { color: var(--gold); }
.footer-col.is-links .footer-link { display: block; margin-bottom: 10px; font-family: var(--f-body); font-size: 14px; transition: opacity 0.2s; }
.footer-col.is-links .footer-link:last-child { margin-bottom: 0; }
.footer-col.is-links .footer-link:hover { opacity: 0.65; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-family: var(--f-body); color: rgba(255, 255, 255, 0.22); font-size: 12px; }
.footer-partners { font-family: var(--f-body); color: rgba(255, 255, 255, 0.18); font-size: 11px; letter-spacing: 0.05em; }

/* ── Logged-in editing shortcuts (dashboard palette, not the site's) ────── */

.edit-btn {
    position: absolute; top: 16px; right: 16px; z-index: 150; display: inline-flex; align-items: center; gap: 4px;
    background: #007DB6; color: #fff; font: 600 12px/1 'Inter', Arial, sans-serif; letter-spacing: 0; padding: 8px 12px; border-radius: 3px;
    box-shadow: 0 2px 10px rgba(9, 26, 48, 0.3); opacity: 0.88; transition: opacity 0.2s ease, background 0.2s ease;
}
.edit-btn:hover { opacity: 1; background: #005F8C; }
.hero .edit-btn { top: 88px; }
.who .edit-btn { top: 64px; }
.admin-bar {
    position: fixed; left: 16px; bottom: 16px; z-index: 300; display: flex; align-items: center; gap: 12px;
    background: #102649; color: rgba(255, 255, 255, 0.85); font: 500 13px/1.3 'Inter', Arial, sans-serif; padding: 10px 14px;
    border-radius: 4px; border-left: 3px solid #F7C400; box-shadow: 0 8px 24px rgba(9, 26, 48, 0.35);
}
.admin-bar strong { color: #fff; }
.admin-bar a { color: #33A8FF; font-weight: 700; }
.admin-bar-dot { width: 8px; height: 8px; border-radius: 50%; background: #1A7F47; box-shadow: 0 0 0 3px rgba(26, 127, 71, 0.25); }
@media (max-width: 600px) { .admin-bar > span:nth-child(2) { display: none; } }

/* Animations always run regardless of prefers-reduced-motion, matching the
   live production site (companyprofile.beaconfintrain.com), which does the
   same. */
