/* --- CSS Custom Variables (Pantone 323 Spec) --- */
:root {
    --color-jumbo: rgb(0, 101, 100);          /* PANTONE 323 */
    --color-jumbo-dark: rgb(0, 70, 70);       /* Matching dark accent shade */
    --color-jumbo-subtle: rgba(0, 101, 100, 0.05);
    --color-jumbo-transparent: rgba(0, 101, 100, 0.1);
    --color-blackbg: #111111;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    
    --font-heading: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* --- Base Layout Resets & Normalization --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html { 
    scroll-behavior: smooth; 
}
body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-gray-900);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
}

/* --- Global Utility Styles --- */
.max-width-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}
@media (min-width: 1024px) {
    .max-width-container {
        padding-left: 48px;
        padding-right: 48px;
    }
}

/* --- Sticky Glassmorphic Header Menu Bar --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    padding-top: 24px;
    padding-bottom: 24px;
}
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding-top: 16px;
    padding-bottom: 16px;
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#logo-img {
    max-height: 36px;
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: all 0.3s ease;
}
.desktop-nav {
    display: none;
    align-items: center;
    gap: 40px;
}
@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
}
.nav-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-white);
    transition: color 0.3s ease;
}
#navbar.scrolled .nav-link {
    color: var(--color-gray-700);
}
.nav-link:hover {
    color: var(--color-jumbo) !important;
}
.nav-link-text {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.125rem;
    line-height: 1;
}
.nav-link-sub {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 300;
    margin-top: 4px;
    letter-spacing: 0.1em;
    opacity: 0.7;
}
.nav-btn-contact {
    background-color: var(--color-white);
    color: var(--color-jumbo) !important;
    padding: 8px 24px;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
#navbar.scrolled .nav-btn-contact {
    background-color: var(--color-jumbo);
    color: var(--color-white) !important;
}
#navbar.scrolled .nav-btn-contact:hover {
    background-color: var(--color-jumbo-dark);
}

/* --- Mobile Navigation Trigger & Drawer --- */
#mobile-menu-btn {
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    display: block;
    transition: color 0.3s ease;
}
#navbar.scrolled #mobile-menu-btn {
    color: var(--color-gray-900);
}
@media (min-width: 1024px) {
    #mobile-menu-btn {
        display: none;
    }
}
#mobile-drawer {
    position: fixed;
    inset: 0;
    background-color: var(--color-white);
    z-index: 60;
    transform: translate3d(100%, 0, 0);
    -webkit-transform: translate3d(100%, 0, 0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
#mobile-drawer.open {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}
@media (min-width: 1024px) {
    #mobile-drawer {
        display: none;
    }
}
.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}
.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 1;
}
.mobile-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: var(--color-gray-900);
    transition: color 0.3s ease;
}
.mobile-link:hover {
    color: var(--color-jumbo);
}
.mobile-link-text {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.875rem;
    line-height: 1;
}
.mobile-link-sub {
    font-size: 0.875rem;
    font-weight: 300;
    margin-top: 8px;
    opacity: 0.6;
}

/* --- Section Configurations --- */
.safari-hero-height {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 32px;
    position: relative;
    background-color: var(--color-gray-50);
}
@media (min-width: 1024px) {
    .safari-hero-height {
        padding: 80px;
    }
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-color: #1a1a1a;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(100%);
}
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding-bottom: 40px;
}
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.05;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}
@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}
@media (min-width: 1024px) {
    .hero-title {
        font-size: 6.5rem;
    }
}
.hero-p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-w: 42rem;
    line-height: 1.625;
    font-weight: 300;
}
@media (min-width: 768px) {
    .hero-p {
        font-size: 1.25rem;
    }
}

/* --- Section: About --- */
.section-about {
    padding: 96px 32px;
    background-color: var(--color-white);
}
@media (min-width: 1024px) {
    .section-about {
        padding: 128px 80px;
    }
}
.section-header {
    margin-bottom: 80px;
}
.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-jumbo);
    letter-spacing: -0.02em;
}
@media (min-width: 1024px) {
    .section-title {
        font-size: 3.75rem;
    }
}
.section-subtitle {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-top: 8px;
    display: block;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.grid-fallback-about {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
@media (min-width: 768px) {
    .grid-fallback-about {
        grid-template-columns: 5fr 7fr;
        gap: 80px;
    }
}
.about-lead {
    font-size: 1.875rem;
    font-weight: bold;
    line-height: 1.375;
    color: var(--color-gray-900);
}
@media (min-width: 1024px) {
    .about-lead {
        font-size: 2.25rem;
    }
}
.about-body-text {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    line-height: 2;
}

/* --- Section: Service --- */
.section-service {
    padding: 96px 32px;
    background-color: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-200);
}
@media (min-width: 1024px) {
    .section-service {
        padding: 128px 80px;
    }
}
.grid-fallback-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .grid-fallback-services {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}
.service-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--color-gray-100);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    border-color: var(--color-jumbo);
}
.service-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--color-gray-900);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}
.service-p {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    line-height: 1.625;
}
.arrow-btn-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 48px;
}
.arrow-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-jumbo);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.service-card {
    overflow: hidden;
}
.service-card-footer {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin-top: 48px;
    min-height: 120px;
}
.service-card-illus {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 160px;
    height: 160px;
    object-fit: cover;
    object-position: top right;
    opacity: 0.9;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    pointer-events: none;
    user-select: none;
}
.service-card:hover .service-card-illus {
    transform: scale(1.08);
    opacity: 1;
}

/* --- Section: Contact --- */
.section-contact {
    background-color: var(--color-jumbo);
    color: var(--color-white);
    padding: 96px 32px;
    position: relative;
    overflow: hidden;
}
.contact-section-illus {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 100%;
    max-width: 60%;
    object-fit: cover;
    object-position: left center;
    opacity: 0.18;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
}
.contact-wrapper {
    position: relative;
    z-index: 1;
}
@media (min-width: 1024px) {
    .section-contact {
        padding: 128px 80px;
    }
}
.contact-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}
@media (min-width: 768px) {
    .contact-wrapper {
        flex-direction: row;
        align-items: center;
    }
}
.contact-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
@media (min-width: 1024px) {
    .contact-title {
        font-size: 3.75rem;
    }
}
.contact-p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.625;
    font-weight: 300;
    max-w: 650px;
}
.btn-inquiry {
    flex-shrink: 0;
    background-color: var(--color-white);
    color: var(--color-gray-900);
    padding: 20px 48px;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.125rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    display: inline-block;
    text-align: center;
}
.btn-inquiry:hover {
    background-color: var(--color-gray-50);
}

/* --- Footer Section --- */
footer {
    background-color: var(--color-blackbg);
    color: var(--color-white);
    padding: 80px 32px 40px 32px;
}
@media (min-width: 1024px) {
    footer {
        padding: 80px 80px 40px 80px;
    }
}
.footer-top-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 80px;
    margin-bottom: 96px;
}
@media (min-width: 768px) {
    .footer-top-grid {
        grid-template-columns: 5fr 7fr;
        gap: 32px;
    }
}
.footer-col-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}
.footer-buttons {
    display: flex;
    gap: 16px;
}
.btn-footer-inquiry {
    background-color: var(--color-white);
    color: var(--color-blackbg);
    padding: 12px 32px;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.btn-footer-inquiry:hover {
    background-color: var(--color-gray-200);
}
.btn-footer-recruit {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 32px;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.btn-footer-recruit:hover {
    background-color: rgba(255,255,255,0.1);
}
.footer-social-links {
    display: flex;
    gap: 24px;
    color: rgba(255,255,255,0.5);
}
.footer-social-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-social-link:hover {
    color: var(--color-white);
}
.footer-social-link svg {
    width: 24px;
    height: 24px;
    display: inline-block;
}
.footer-col-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
@media (min-width: 768px) {
    .footer-col-right {
        grid-template-columns: repeat(3, 1fr);
    }
}
.footer-menu-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-menu-link {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}
.footer-menu-link:hover {
    color: var(--color-gray-300);
}
.footer-menu-sub {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: normal;
}
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}
@media (min-width: 1024px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
.footer-address {
    font-style: normal;
    line-height: 1.625;
}

/* --- Scroll Reveal Framework --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }

/* --- Skeleton Layout Loader Overlay --- */
#skeleton-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
.animate-spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.skeleton-header {
    height: 96px;
    width: 100%;
    border-bottom: 1px solid var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
}
.skeleton-logo {
    width: 128px;
    height: 32px;
    background-color: var(--color-gray-200);
    border-radius: 4px;
}
.skeleton-nav {
    display: none;
    gap: 32px;
}
@media (min-width: 768px) {
    .skeleton-nav {
        display: flex;
    }
}
.skeleton-nav-item {
    width: 64px;
    height: 16px;
    background-color: var(--color-gray-200);
    border-radius: 4px;
}
.skeleton-body {
    flex: 1;
    padding: 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}
.skeleton-title-1 {
    width: 75%;
    max-width: 896px;
    height: 64px;
    background-color: var(--color-gray-200);
    border-radius: 8px;
}
@media (max-width: 767px) {
    .skeleton-title-1 {
        height: 48px;
    }
}
.skeleton-title-2 {
    width: 66%;
    max-width: 672px;
    height: 64px;
    background-color: var(--color-gray-200);
    border-radius: 8px;
}
@media (max-width: 767px) {
    .skeleton-title-2 {
        height: 48px;
    }
}
.skeleton-text-1 {
    width: 50%;
    max-width: 576px;
    height: 24px;
    background-color: var(--color-gray-100);
    border-radius: 4px;
    margin-top: 32px;
}
.skeleton-text-2 {
    width: 33%;
    max-width: 448px;
    height: 24px;
    background-color: var(--color-gray-100);
    border-radius: 4px;
}
.skeleton-spinner-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 20;
}
.spinner {
    width: 64px;
    height: 64px;
    border-width: 4px;
    border-style: solid;
    border-color: var(--color-gray-100);
    border-top-color: var(--color-jumbo);
    border-radius: 50%;
}

/* Safari Support for Glassmorphic Backdrops */
.backdrop-blur-safari {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* Standardized Material Icons Alignment for Safari */
.material-symbols-outlined {
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Section: Affiliations --- */
.section-affiliations {
    padding: 96px 32px;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-gray-100);
}
@media (min-width: 1024px) {
    .section-affiliations {
        padding: 128px 80px;
    }
}
.affiliations-track-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.affiliations-track {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
    will-change: transform;
}
.affiliations-track:hover {
    /* paused via JS */
}
.affiliation-logo-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 48px;
    gap: 16px;
    text-align: center;
}
.affiliation-logo-item img {
    height: 52px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}
.affiliation-logo-item:hover img {
    opacity: 0.8;
}
.affiliation-logo-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-gray-900);
    white-space: nowrap;
}
.affiliation-logo-desc {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    white-space: nowrap;
    margin-top: -10px;
}