:root {
    --deep: #062a32;
    --navy: #0b3d4a;
    --teal: #0f8a8d;
    --teal-bright: #2ec4b6;
    --teal-soft: #7ee0d6;
    --ocean: #1d6f96;
    --cyan: #27a7d8;
    --foam: #e8f7f6;
    --ink: #102a32;
    --muted: #5a737a;
    --white: #ffffff;
    --header-h: 76px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Outfit", "Manrope", sans-serif;
    color: var(--ink);
    background: var(--foam);
    line-height: 1.55;
}

body.landing-page {
    min-height: 100vh;
    background: var(--deep);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    border-radius: 10px;
    padding: 12px 22px;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-ghost {
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(46, 196, 182, 0.16);
    border-color: var(--teal-bright);
}

.btn-primary {
    color: var(--deep);
    background: linear-gradient(135deg, var(--teal-soft), var(--teal-bright));
    border: none;
    box-shadow: 0 10px 28px rgba(46, 196, 182, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 14px 32px rgba(46, 196, 182, 0.45);
}

/* ——— Wave landing hero ——— */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--deep);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    animation: slow-zoom 24s ease-in-out infinite alternate;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    border: 0;
    pointer-events: none;
    background: var(--deep);
}

.hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(4, 24, 36, 0.22) 0%,
            rgba(4, 24, 36, 0.12) 42%,
            rgba(4, 24, 36, 0.45) 100%
        );
    pointer-events: none;
}

/* Lighter veil for video reference so the loop stays readable behind the UI */
.hero-veil-light {
    background:
        linear-gradient(
            180deg,
            rgba(4, 24, 36, 0.12) 0%,
            rgba(4, 24, 36, 0.06) 45%,
            rgba(4, 24, 36, 0.28) 100%
        );
}

.video-landing .hero-brand-logo {
    animation: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(920px, 100%);
    padding:
        clamp(40px, 8vh, 80px)
        clamp(20px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(28px, 5vh, 44px);
    animation: rise-in 0.95s ease both;
}

.hero-brand-logo {
    display: block;
    width: min(680px, 92vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 28px rgba(4, 24, 36, 0.45));
    animation: brand-float 5.5s ease-in-out infinite;
}

.hero-brand-title {
    margin: 0;
    font-family: "Sora", "Outfit", sans-serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--white);
    text-shadow: 0 10px 28px rgba(4, 24, 36, 0.45);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    animation: rise-in 1.15s ease 0.18s both;
}

.landing-page .btn {
    min-width: 168px;
    padding: 14px 28px;
    font-family: "Sora", "Outfit", sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
}

.landing-page .btn-ghost {
    background: rgba(4, 24, 36, 0.28);
    border-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
}

.landing-page .btn-ghost:hover {
    background: rgba(4, 24, 36, 0.42);
    border-color: var(--teal-bright);
}

@keyframes slow-zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.06);
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes brand-float {
    0%,
    100% {
        transform: translateY(0);
        filter: drop-shadow(0 10px 28px rgba(4, 24, 36, 0.45));
    }
    50% {
        transform: translateY(-6px);
        filter: drop-shadow(0 16px 34px rgba(46, 196, 182, 0.28));
    }
}

@media (max-width: 560px) {
    .hero-brand-logo {
        width: min(560px, 94vw);
    }

    .hero-brand-title {
        font-size: clamp(2.6rem, 14vw, 4.6rem);
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        width: min(320px, 100%);
    }

    .hero-ctas .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-image,
    .hero-content,
    .hero-ctas,
    .hero-brand-logo,
    .hero-brand-title {
        animation: none;
    }

    .hero-video {
        animation: none;
    }

    .video-landing .hero-video {
        /* Keep a still frame instead of looping motion when reduced-motion is on */
        display: none;
    }

    .video-landing .hero-media {
        background:
            center / cover no-repeat url("images/wave1.jpg"),
            var(--deep);
    }
}

/* ——— Directory / role selection ——— */
.directory-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 70% 45% at 100% 0%, rgba(39, 167, 216, 0.12), transparent 55%),
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(60, 179, 113, 0.1), transparent 50%),
        var(--foam);
}

.directory-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 clamp(20px, 4vw, 48px);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(22, 63, 99, 0.08);
}

.directory-header .brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.directory-header .header-logo {
    height: 44px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px 8px;
    box-sizing: content-box;
}

.directory-main {
    flex: 1;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding:
        clamp(36px, 6vh, 64px)
        clamp(20px, 4vw, 48px)
        clamp(48px, 8vh, 80px);
}

.directory-intro {
    margin-bottom: clamp(28px, 4vw, 40px);
    animation: rise-in 0.7s ease both;
}

.directory-intro h1 {
    font-family: "Sora", "Syne", sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    color: var(--navy);
    margin-bottom: 10px;
}

.directory-intro p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 46ch;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    animation: rise-in 0.8s ease 0.08s both;
}

.role-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 168px;
    padding: 24px 22px 20px;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border: 1px solid rgba(22, 63, 99, 0.1);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(16, 37, 54, 0.05);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.role-card:hover,
.role-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(39, 167, 216, 0.45);
    box-shadow: 0 14px 28px rgba(16, 37, 54, 0.1);
    outline: none;
}

.role-name {
    font-family: "Sora", "Syne", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
}

.role-desc {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.5;
    flex: 1;
}

.role-cta {
    margin-top: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ocean);
}

.role-card:hover .role-cta,
.role-card:focus-visible .role-cta {
    color: var(--cyan);
}

.directory-footer {
    padding: 20px clamp(20px, 4vw, 48px) 28px;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
}

@media (max-width: 720px) {
    .role-grid {
        grid-template-columns: 1fr;
    }

    .directory-header .header-logo {
        height: 38px;
        max-width: 150px;
    }
}


/* Optima ProLink wave-page text links */
.landing-page .hero-ctas {
    gap: 22px;
}

.landing-page .hero-ctas .btn,
.landing-page .hero-ctas .btn-primary,
.landing-page .hero-ctas .btn-ghost {
    min-width: 0;
    padding: 4px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.landing-page .hero-ctas .btn:hover,
.landing-page .hero-ctas .btn-primary:hover,
.landing-page .hero-ctas .btn-ghost:hover {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--white);
    text-decoration: underline;
    transform: none;
}
