*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #fff;
    background: #1b2236;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Animated background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.bg__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slide 20s ease-in-out infinite;
}
.bg__slide:first-child { opacity: 1; }

@keyframes slide {
    0%   { opacity: 0; transform: scale(1); }
    8%   { opacity: 1; }
    50%  { opacity: 1; }
    58%  { opacity: 0; transform: scale(1.12); }
    100% { opacity: 0; transform: scale(1); }
}

/* Soft wash so the text reads on any photo */
.bg__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(120,130,150,.35) 0%, rgba(20,25,45,.15) 45%, rgba(10,14,30,.55) 100%);
}

/* ---------- Layout ---------- */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px 24px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.partner {
    align-self: flex-end;
    margin-right: 12%;
    animation: float 6s ease-in-out infinite, fadeIn 1.2s ease both;
}
.partner img { display: block; width: 200px; height: auto; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.hero__title {
    margin: clamp(60px, 14vh, 140px) 0 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.02;
    font-size: clamp(2rem, 5.6vw, 4.4rem);
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero__title span { display: block; }

/* ---------- Services ---------- */
.services {
    margin: 0 0 26px;
    color: #12185a;
    font-size: clamp(1rem, 1.9vw, 1.5rem);
    letter-spacing: .14em;
    line-height: 1.5;
    font-weight: 600;
    padding: 10px 24px;
    background: rgba(255,255,255,.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.services__row {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.services li { padding: 0 .55em; position: relative; }
.services li + li::before {
    content: '|';
    position: absolute;
    left: -.2em;
    opacity: .8;
}

/* ---------- Offices ---------- */
.offices {
    display: flex;
    gap: 30px;
    justify-content: center;
    width: 100%;
}
.office {
    flex: 0 1 410px;
    display: flex;
    flex-direction: column;
    font-style: normal;
    background: rgba(28, 30, 120, .62);
    backdrop-filter: blur(2px);
    padding: 8px 20px 10px;
    font-size: 1.05rem;
    letter-spacing: .06em;
    line-height: 1.3;
    transition: background .3s, transform .3s;
}
.office:hover { background: rgba(28, 30, 120, .8); transform: translateY(-3px); }
.office strong { font-weight: 600; letter-spacing: 0; font-size: 1.1rem; }
.office--left  { text-align: right; }
.office--right { text-align: left; }
.office a { color: #fff; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.office a:hover { border-color: #fff; }

.footer {
    text-align: center;
    font-size: .8rem;
    letter-spacing: .08em;
    padding: 14px;
    opacity: .75;
}

/* ---------- Entrance animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards;
    animation-delay: var(--d, 0s);
}
.office.reveal { animation-name: rise; }
@keyframes rise   { to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Label only shows on mobile */
.services__label { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
    :root { --gold: #f6b24e; --glass: rgba(255,255,255,.10); --line: rgba(255,255,255,.22); }

    .hero { padding: 26px 16px 18px; }
    .partner { align-self: center; margin-right: 0; }
    .partner img { width: 150px; }

    .hero__title { margin: 44px 0 6px; font-size: clamp(1.9rem, 9vw, 2.6rem); }
    /* animated sunset rule under the title */
    .hero__title::after {
        content: '';
        display: block;
        width: 70px; height: 3px;
        margin: 16px auto 0;
        border-radius: 3px;
        background: linear-gradient(90deg, #ff7a3d, var(--gold), #ff7a3d);
        background-size: 200% 100%;
        animation: sheen 3s linear infinite, grow .9s .7s cubic-bezier(.2,.7,.2,1) both;
    }

    /* Services: glass tiles in a 2-column grid */
    .services {
        width: 100%;
        max-width: 440px;
        margin: 22px 0 26px;
        padding: 0;
        background: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-flow: row dense;
        gap: 10px;
        color: #fff;
        font-size: .82rem;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        line-height: 1.25;
    }
    .services__label {
        display: block;
        grid-column: 1 / -1;
        margin: 0 0 6px;
        font-size: .72rem;
        letter-spacing: .32em;
        color: #fff;
        text-shadow: 0 1px 6px rgba(0,0,0,.6);
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .services__label::before,
    .services__label::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--gold));
    }
    .services__label::after { background: linear-gradient(90deg, var(--gold), transparent); }
    .services__row { display: contents; animation: none; opacity: 1; transform: none; }
    .services li + li::before { content: none; }
    .services li {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 58px;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 0 6px 18px rgba(0,0,20,.25), inset 0 1px 0 rgba(255,255,255,.25);
        text-shadow: 0 1px 4px rgba(0,0,0,.35);
        overflow: hidden;
        opacity: 0;
        animation: pop .6s cubic-bezier(.2,.8,.2,1.2) forwards;
        animation-delay: calc(.9s + var(--i) * .07s);
    }
    .services li.is-wide { grid-column: 1 / -1; }
    /* gold accent bar on each tile */
    .services li::after {
        content: '';
        position: absolute;
        left: 0; top: 20%; bottom: 20%;
        width: 3px;
        border-radius: 0 3px 3px 0;
        background: var(--gold);
    }
    /* light sweep across the tiles once they land */
    .services li { isolation: isolate; }
    .services li::before {
        content: '' !important;
        position: absolute;
        inset: 0;
        background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
        transform: translateX(-120%);
        animation: sweep 1.2s ease-out forwards;
        animation-delay: calc(1.6s + var(--i) * .07s);
        left: 0;
        opacity: 1;
        z-index: -1;
    }

    /* Offices: navy glass cards */
    .offices { flex-direction: column; align-items: center; gap: 14px; }
    .office {
        width: 100%;
        max-width: 440px;
        flex-basis: auto;
        text-align: left !important;
        padding: 18px clamp(14px, 4.5vw, 20px);
        border-radius: 16px;
        border: 1px solid rgba(255,255,255,.18);
        background: linear-gradient(160deg, rgba(36,40,140,.82), rgba(16,18,70,.82));
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        box-shadow: 0 10px 30px rgba(0,0,20,.35);
        font-size: .95rem;
        letter-spacing: .03em;
        line-height: 1.45;
        position: relative;
        overflow: hidden;
    }
    .office::before {
        content: '';
        position: absolute; left: 0; right: 0; top: 0; height: 3px;
        background: linear-gradient(90deg, #ff7a3d, var(--gold));
    }
    .office:hover { transform: none; }
    .office__name {
        font-size: .72rem !important;
        letter-spacing: .3em !important;
        text-transform: uppercase;
        color: var(--gold);
        margin-bottom: 8px;
    }

    /* Phone & email become tap-friendly buttons */
    .office__label { display: none; }
    .office__contact:first-of-type { margin-top: 12px; }
    .office__link {
        display: flex !important;
        align-items: center;
        gap: 10px;
        margin-top: 8px;
        padding: 11px 14px;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,.22) !important;
        background: rgba(255,255,255,.08);
        font-weight: 600;
        font-size: clamp(.76rem, 3.6vw, .9rem);
        letter-spacing: 0;
        word-break: normal;
        overflow-wrap: anywhere;
    }
    .office__link::before {
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        width: 28px; height: 28px;
        border-radius: 50%;
        background: var(--gold);
        color: #14184a;
        font-size: .85rem;
    }
    .office__link--tel::before  { content: '\260E'; }
    .office__link--mail::before { content: '\2709'; }
    .office__link:active { background: rgba(255,255,255,.18); }

    .footer { padding: 10px 14px 18px; }
}

@keyframes pop   { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes sweep { to { transform: translateX(120%); } }
@keyframes sheen { to { background-position: -200% 0; } }
@keyframes grow  { from { width: 0; opacity: 0; } to { width: 70px; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal, .services li { opacity: 1; transform: none; }
    .bg__slide:first-child { opacity: 1; }
}
