html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background-color: #000;
    font-family: sans-serif;
    font-weight: bold;
    color: #fff;
    overflow-x: hidden;
}

a {
    color: #000;
}

header {
    background: #000;
    display: flex;
    align-items: center;
    padding: 20px 50px;
    width: 100%;
    margin: 0 auto;
    height: 40px;
    position: fixed;
    top: 0;
    z-index: 2;
}

header img {
    width: 200px;
}

header a.logo {
    position: fixed;
    top: 21px;
    left: 40%;
    margin-left: -70px;
}

@media (min-width:1590px) {
    header img {
        width: 200px;
    }

    header a.logo {
        margin-right: 40px;
        position: relative;
        top: initial;
        left: initial;
        margin-left: initial;
    }
}

.center-nav {
    display: none;
}

@media (min-width:1590px) {
    .center-nav {
        position: relative;
        left: 410px;
        display: block;
    }
}

.center-nav a,
.right-nav a,
.left-nav a {
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
    padding: 0;
    margin: 0 30px;
    position: relative;
    transition: color .4s ease-in-out;
}

header.scrolled .center-nav a {
    color: #fff;
}

.center-nav a:before,
.right-nav a:before,
.left-nav a::before {
    content: '';
    width: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: width .2s linear;
}

.center-nav a:hover:before,
.right-nav a:hover:before,
.left-nav a:hover::before {
    right: initial;
    left: 0;
    width: 100%;
}

.right-nav {
    position: fixed;
    left: 1300px;
    top: 20px;
    height: 40px;
    display: flex;
    align-items: center;
}

.right-nav a {
    display: none;
    transition: color .4s ease-in-out;
}

header.scrolled .right-nav a {
    color: #fff;
}

.left-nav {
    position: fixed;
    right: 1300px;
    top: 20px;
    height: 40px;
    display: flex;
    align-items: center;
}

.left-nav a {
    display: none;
    transition: color .4s ease-in-out;
}

header.scrolled .left-nav a {
    color: #fff;
}

@media (min-width:1590px) {

    .right-nav a,
    .left-nav a {
        display: inline-block;
        padding: 0;
        margin: 0 50px;
    }
}

.hamburger {
    position: fixed;
    z-index: 3;
    right: 6px;
    top: 13px;
    color: #fff;
    padding: 20px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 16px;
    margin: 2px 0;
    height: 2px;
    background: #fff;
    position: relative;
    transition: all .2s linear;
}

.hamburger.active span:first-child,
.hamburger.active span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    transform: rotate(-45deg);
    top: -4px;
}

.hamburger.active span:last-child {
    opacity: 0;
}

.shadow.active {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    z-index: 1;
}

nav.mobile-nav {
    padding-top: 70px;
    display: block;
    position: fixed;
    top: 0;
    right: -280px;
    bottom: 0;
    z-index: 2;
    width: 280px;
    background: #000;
    transition: right .3s ease-in-out;
}

nav.mobile-nav.active {
    right: 0;
}

nav.mobile-nav a {
    display: block;
    opacity: 0;
    border-bottom: 1px solid #222;
    text-transform: uppercase;
    padding: 16px 25px;
    text-decoration: none;
    text-align: right;
    transition: opacity .3s linear;
    transition-delay: .2s;
    color: #fff;
}

nav.mobile-nav a:nth-child(2) {
    transition-delay: .25s;
}

nav.mobile-nav a:nth-child(3) {
    transition-delay: .3s;
}

nav.mobile-nav a:nth-child(4) {
    transition-delay: .35s;
}

nav.mobile-nav a:nth-child(5) {
    transition-delay: .4s;
}

nav.mobile-nav a:nth-child(6) {
    transition-delay: .45s;
}

nav.mobile-nav a:nth-child(7) {
    transition-delay: .5s;
}

nav.mobile-nav a:nth-child(8) {
    transition-delay: .55s;
}

nav.mobile-nav.active a {
    opacity: 1;
}

section {
    min-height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

section .content-outer {
    flex-grow: 1;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

section.active .content {
    opacity: 1;
    bottom: 45vh;
}

section.active .content.up {
    opacity: 1;
    bottom: 30vh;
}

section.active .content.upup {
    opacity: 1;
    bottom: 25vh;
}

section.active .content.right {
    opacity: 1;
    bottom: 20vh;
    left: 115vh;
}

section.active .content.upright {
    opacity: 1;
    bottom: 35vh;
    left: 90vh;
}

section .content {
    position: absolute;
    left: 50px;
    max-width: 360px;
    opacity: 0;
    bottom: 10vh;
    transition: all .5s linear;
}

section .content.right {
    position: relative;
    left: 115vh;
}

section .content.upright {
    position: relative;
    left: 90vh;
}

section .content h2 {
    font-size: 48px;
    margin: 0;
    color: #fff;
    text-align: center;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

section .content a {
    border: 2px solid #000;
    display: inline-block;
    padding: 20px 60px;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 30px;
    position: relative;
}

section .content a:before {
    content: '';
    display: block;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0%;
    transition: height .3s ease-in-out;
    background: #fff;
}

section .content a:hover:before {
    height: 100%;
    top: initial;
    bottom: 0;
}

section .content a span {
    position: relative;
    z-index: 1;
    transition: color .3s ease-in-out;
}

section .content a:hover span {
    color: #000;
}

.read-more {
    padding: 10px;
    position: relative;
    top: 75px;
}

.read-more p {
    text-align: center;
    line-height: 1.5;
    max-height: 500px;
    overflow: hidden;
    font-weight: normal;
    font-size: larger;
    width: 500px;
    color: #fff;
    text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
}

.read-more-frosted {
    border: 5px solid rgba(0, 128, 255, .5);
    padding: 10px;
    background-color: rgba(255, 255, 255, .4);
    backdrop-filter: blur(10px);
}

.read-more-frosted p {
    text-align: center;
    max-height: 90px;
    overflow: hidden;
    font-weight: normal;
    color: #000;
}

.toggle-btn {
    background-color: rgba(0, 128, 255, .5);
    position: relative;
    left: 110px;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.page-title,
.page-titleup,
.page-titleBig {
    text-shadow: -2px 0 #000, 0 2px #000, 2px 0 #000, 0 -2px #000;
    color: #fff;
    font-size: 400%;
    position: relative;
}

.page-title {
    left: -100px;
    bottom: -50px;
}

.page-titleup {
    bottom: 720px;
    left: 80px;
}

.page-titleBig {
    left: -70px;
    bottom: 690px;
    width: 750px;
    text-align: center;
}

.roles-grid {
    position: absolute;
    right: 16vw;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    grid-auto-rows: 64px;
    gap: 14px;
    width: clamp(340px, 28vw, 420px);
    z-index: 1;
    pointer-events: none;
}

.role {
    pointer-events: auto;
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 10px 12px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 128, 255, .35);
    box-shadow: 0 1px 10px rgba(0, 0, 0, .25), 0 0 18px rgba(0, 128, 255, .18) inset;
    color: #eaf4ff;
    font-weight: 600;
    letter-spacing: .25px;
    opacity: 0;
    transform: translateY(8px);
    animation: role-rise .7s cubic-bezier(.22, .61, .36, 1) forwards;
}

.roles-grid .role:nth-child(1) {
    animation-delay: .05s;
}

.roles-grid .role:nth-child(2) {
    animation-delay: .10s;
}

.roles-grid .role:nth-child(3) {
    animation-delay: .15s;
}

.roles-grid .role:nth-child(4) {
    animation-delay: .20s;
}

.roles-grid .role:nth-child(5) {
    animation-delay: .25s;
}

.roles-grid .role:nth-child(6) {
    animation-delay: .30s;
}

.roles-grid .role:nth-child(7) {
    animation-delay: .35s;
}

.roles-grid .role:nth-child(8) {
    animation-delay: .40s;
}

.roles-grid .role:nth-child(9) {
    animation-delay: .45s;
}

.roles-grid .role:nth-child(10) {
    animation-delay: .50s;
}

.roles-grid .role:nth-child(11) {
    animation-delay: .55s;
}

.roles-grid .role:nth-child(12) {
    animation-delay: .60s;
}

@keyframes role-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.role::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .18) 45%, transparent 60%);
    transform: translateX(-120%);
    transition: transform .6s ease;
    pointer-events: none;
}

.role:hover,
.role:focus {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 24px rgba(0, 128, 255, .35) inset;
    transform: translateY(-2px);
}

.role:hover::after,
.role:focus::after {
    transform: translateX(120%);
}

@media (max-width:1200px) {
    .roles-grid {
        right: 3vw;
        width: clamp(320px, 40vw, 380px);
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

@media (max-width:932px) {
    .roles-grid {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin: 24px auto 0;
        width: min(92vw, 520px);
        grid-template-columns: repeat(2, 1fr);
    }
}

section.active .content.up-b {
    opacity: 1;
    bottom: 60vh;
}

section.active .content.upup-b {
    opacity: 1;
    bottom: 55vh;
}

section.active .content.right-b {
    opacity: 1;
    bottom: 20vh;
    left: 115vh;
}

section.active .content.upright-b {
    opacity: 1;
    bottom: 45vh;
    left: 115vh;
}

section .content.right-b {
    position: relative;
    left: 115vh;
}

section .content.upright-b {
    position: relative;
    left: 115vh;
}

footer {
    padding: 50px;
    font-size: 12px;
}

footer nav {
    text-align: center;
}

footer nav span {
    color: #777;
    display: inline-block;
    padding-right: 30px;
    text-transform: uppercase;
}

footer nav a {
    color: #fff;
    padding: 0 20px;
    text-decoration: none;
    transition: color .2s linear;
}

footer nav a:hover {
    color: #aaa;
}

@media (min-width:932px) {
    body {
        overflow-x: auto;
    }
}

/* ===== SERVICES: Mobile layout fix (≤ 932px) ===== */
@media (max-width: 932px) {

    /* Header: match the mobile behavior you used on Index */
    header {
        padding: max(10px, env(safe-area-inset-top)) 16px 10px 16px;
        height: 56px;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(6px);
    }

    header a.logo {
        position: static;
        margin: 0 auto;
        display: block;
    }

    header img {
        width: 150px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .left-nav,
    .center-nav,
    .right-nav {
        display: none !important;
    }

    .hamburger {
        right: 8px;
        top: 8px;
        padding: 16px;
    }

    .hamburger span {
        width: 22px;
        height: 3px;
        margin: 4px 0;
    }

    nav.mobile-nav {
        width: min(88vw, 320px);
        right: calc(-1 * min(88vw, 320px));
        padding-top: 64px;
        border-left: 1px solid #222;
    }

    nav.mobile-nav a {
        font-size: 16px;
        letter-spacing: .5px;
        padding: 16px 20px;
    }

    .shadow.active {
        background: rgba(0, 0, 0, .5);
    }

    /* Sections: reduce height a bit and add inner padding */
    section {
        min-height: 90vh;
        align-items: flex-end;
        padding: 0 16px 24px 16px;
        background-position: center;
        background-size: cover;
    }

    section .content-outer {
        max-width: none;
        width: 100%;
        margin: 0 auto;
    }

    /* Kill absolute/vh positioning on mobile; use cards that flow */
    section .content,
    section .content.right,
    section .content.upright,
    section .content.up,
    section .content.upup,
    section .content.right-b,
    section .content.upright-b,
    section .content.up-b,
    section .content.upup-b {
        position: static !important;
        opacity: 1 !important;
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 14px 14px 0 14px;
        background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .20));
        border-radius: 10px;
        backdrop-filter: blur(2px);
        box-sizing: border-box;
    }
    section .content.upright-b {
        transform: translateY(-100px);
    }
    section .content.upright {
        transform: translate(0px, -150px);
    }

    section .content.up {
        transform: translate(0px, -125px);
    }

    section .content.upup {
        transform: translate(0px, -120px);
    }

    /* Page titles: no more huge offsets */
    .page-title,
    .page-titleup,
    .page-titleBig {
        position: static;
        width: 100%;
        margin: 0 0 10px 0;
        text-align: center;
        font-size: clamp(28px, 7.5vw, 40px);
        line-height: 1.1;
    }

    .page-title {
        transform: translate(0px, -150px);
    }

    .page-titleBig {
        transform: translate(0px, -125px);
    }

    /* Body copy: full width, readable size */
    .read-more {
        padding: 10px 6px 14px;
        top: 0;
        /* remove the 75px push on mobile */
    }

    .read-more p,
    .read-more-frosted p {
        width: auto;
        /* override fixed 500px */
        max-width: none;
        margin: 8px auto;
        font-size: clamp(14px, 4vw, 18px);
        line-height: 1.55;
        text-align: center;
        max-height: none;
    }

    /* Frosted cards stay neat */
    .read-more-frosted {
        border: 4px solid rgba(0, 128, 255, .45);
        padding: 12px;
        background-color: rgba(255, 255, 255, .42);
        backdrop-filter: blur(10px);
    }

    /* Buttons: center, no manual left offset */
    .toggle-btn {
        display: inline-block;
        margin: 12px auto 8px;
        padding: 10px 18px;
        background-color: rgba(0, 128, 255, .55);
        border-radius: 8px;
    }

    .roles-grid {
        position: relative;
        top: none;
        left: 9px;
        transform: none;
        margin: 20px auto 0;
        width: min(92vw, 520px);

        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 14px;
        pointer-events: auto;
    }

    .role {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;

        min-height: 32px;
        padding: 14px 12px;
        font-size: clamp(14px, 4vw, 18px);
        line-height: 1.3;
        overflow-wrap: anywhere;
        border-radius: 14px;
    }

    /* Footer sizing */
    footer {
        padding: 28px 16px 36px;
        font-size: 11px;
    }

    footer nav span {
        display: block;
        padding: 0 0 10px 0;
    }

    footer nav a {
        display: inline-block;
        padding: 8px 10px;
    }
}