/* --- intl-tel-input overrides --- */
.iti { width: 100%; display: block; }
.iti__country-list { background-color: var(--surface-white); border: 1px solid var(--line-soft); border-radius: 8px; box-shadow: var(--card-shadow-hover); z-index: 100; }
.iti--separate-dial-code .iti__selected-dial-code { color: var(--navy-dark); font-size: 14px; font-weight: 500; }
.iti input, .iti input[type=tel] { 
    padding-left: 95px !important; 
    width: 100% !important;
    margin: 0 !important;
}

/* Ensure consistent field height and width */
.corporate-secure-form input,
.corporate-secure-form select,
.corporate-secure-form textarea {
    width: 100%;
    display: block;
    box-sizing: border-box;
}

/* Fix mobile alignment for form fields */
@media (max-width: 768px) {
    .corporate-secure-form { padding: 4px 0; }
    .input-field-group { margin-bottom: 24px; width: 100%; }
    .corporate-secure-form .btn-block { width: 100%; margin-top: 12px; }
    .form-privacy-note { white-space: normal !important; text-align: center; line-height: 1.5; font-size: 12px !important; margin-top: 12px; }
    
    /* Ensure intl-tel-input container and input are perfectly aligned */
    .iti { margin-bottom: 0; }
    .iti__flag-container { height: 100%; }
    .iti__selected-flag { height: 100%; padding: 0 10px; }

    /* Success Card mobile alignment */
    .submission-success-card { padding: 32px 20px; text-align: center; }
    .submission-success-card .btn { width: 100%; }
    .submission-success-card img { width: 60px !important; }

    /* Locations mobile alignment */
    .location-card { padding: 18px; gap: 12px; }
    .location-flag-fixed { width: 28px; height: 19px; }
    .location-name-bold { font-size: 14px; }
    .location-tel-highlight { font-size: 13px; padding: 4px 10px; }
}

/* ==========================================================================
   GxP COMPLIANCE GROUP — V2 STYLESHEET
   Polished multi-template design system
   ========================================================================== */

:root {
    --navy-dark: #0b1523;
    --navy-mid: #1e293b;
    --slate-text: #334155;
    --slate-light: #64748b;
    --accent-blue: #1d4ed8;
    --accent-blue-soft: #3b82f6;
    /* Brand accent — blue/navy (kept on accent vars for a single source of truth) */
    --accent-gold: #1d4ed8;
    --accent-gold-soft: #93c5fd;
    --accent-gold-deep: #1d4ed8;
    --brand-navy: #0d2240;
    /* Logo gold — bright, polished tone used as a refined secondary accent */
    --gold: #d4af37;
    --gold-bright: #e8c75a;
    --gold-deep: #b8902c;
    --canvas-bg: #f8fafc;
    --surface-white: #ffffff;
    --line-border: #cbd5e1;
    --line-soft: #e2e8f0;
    --error-red: #dc2626;
    --success-green: #059669;
    --radius-element: 8px;

    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'Fira Code', monospace;
    --font-display: 'Inter', system-ui, sans-serif;

    --card-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --card-shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.12);

    --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-snap: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-sans);
    color: var(--navy-dark);
    background-color: var(--canvas-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Canvas Fade Transition ----------------------------------------------- */
#viewCanvasWrapper {
    opacity: 1;
    transform: translateZ(0);
    will-change: opacity;
    transition: opacity 0.25s var(--transition-smooth);
}
#viewCanvasWrapper.canvas-fade-out { opacity: 0; }

/* --- Sandbox / Template Switcher ----------------------------------------- */
.prototype-sandbox-bar {
    background-color: #060b18;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 3000;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.sandbox-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.sandbox-label {
    color: #93c5fd;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.sandbox-triggers { display: flex; gap: 6px; flex-wrap: wrap; }

.sandbox-btn {
    background-color: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.22s var(--transition-snap);
    font-family: inherit;
    letter-spacing: 0.2px;
}
.sandbox-btn:hover {
    background-color: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.4);
    color: #ffffff;
}
.sandbox-btn.active {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.4);
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-element);
    transition: all 0.28s var(--transition-snap);
    cursor: pointer;
    border: none;
    text-align: center;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background-color: var(--navy-dark);
    color: var(--surface-white);
    box-shadow: 0 4px 14px rgba(11, 21, 35, 0.18);
}
.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
    box-shadow: 0 10px 24px rgba(11, 21, 35, 0.28);
}
.btn-primary .btn-arrow { transition: transform 0.25s var(--transition-smooth); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-secondary {
    background-color: transparent;
    color: var(--navy-dark);
    border: 1px solid var(--line-border);
}
.btn-secondary:hover { background-color: var(--navy-dark); color: var(--surface-white); }

.btn-ghost {
    background-color: transparent;
    color: var(--surface-white);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.36);
}

.btn-block { display: flex; width: 100%; }

/* --- View Controllers ---------------------------------------------------- */
.page-view { display: none; }
.page-view.active { display: block; }

/* --- Header -------------------------------------------------------------- */
.site-header {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.35s ease, border 0.35s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 10px 20px;
}

.compliance-logo-wrapper {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    order: 1;
}
.logo-brand-link { text-decoration: none; display: block; }

/* Brand logo image (header + footer) */
.brand-logo-img {
    height: 85px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Header logo — slightly larger, vertically centered */
.header-logo-img {
    height: 76px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-logo-img {
    height: 85px;
    width: auto;
    background-color: #ffffff;
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    margin-bottom: 1rem;
}
.logo-centered-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.logo-top {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy-dark) !important;
    letter-spacing: -0.6px;
    line-height: 1.0;
    transition: color 0.35s ease;
    font-family: var(--font-display);
}
.logo-bottom {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--slate-light) !important;
    margin-top: 4px;
    line-height: 1.0;
    transition: color 0.35s ease;
}

.main-navigation > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 26px;
}
.main-navigation a {
    text-decoration: none;
    color: var(--slate-text);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s var(--transition-snap);
    position: relative;
}
.main-navigation a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background-color: var(--accent-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--transition-smooth);
}
.main-navigation a:not(.nav-cta):hover::after,
.main-navigation a:not(.nav-cta).active::after { transform: scaleX(1); }
.main-navigation a:hover { color: var(--accent-blue); }
.main-navigation a.active { color: var(--accent-blue); font-weight: 600; }
.main-navigation a.nav-cta {
    border: 1px solid var(--navy-dark);
    padding: 9px 18px;
    border-radius: var(--radius-element);
    color: var(--navy-dark);
    transition: all 0.25s var(--transition-snap);
    font-weight: 600;
}
.main-navigation a.nav-cta:hover {
    background-color: var(--navy-dark);
    color: var(--surface-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(11, 21, 35, 0.2);
}

/* --- Mobile Nav Toggle (hamburger) — hidden on desktop ------------------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px 9px;
    background: transparent;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    order: 2;
}
.nav-toggle:hover { border-color: var(--accent-blue); }

/* Navigation sits on the right of the header row */
.main-navigation { order: 4; flex-shrink: 0; }
.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--navy-dark);
    border-radius: 2px;
    transition: transform 0.3s var(--transition-snap), opacity 0.2s ease;
}
.site-header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Services Mega Dropdown ---------------------------------------------- */
.nav-has-dropdown { position: relative; }
.dropdown-caret {
    font-size: 9px;
    margin-left: 3px;
    display: inline-block;
    transition: transform 0.25s var(--transition-snap);
}
.nav-has-dropdown:hover .dropdown-caret,
.nav-has-dropdown:focus-within .dropdown-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 540px;
    max-width: 92vw;
    background-color: var(--surface-white);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.20);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s var(--transition-snap), transform 0.24s var(--transition-snap);
    z-index: 1200;
}
/* accent top edge + arrow notch */
.nav-dropdown-menu::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, var(--accent-blue), #60a5fa);
}
/* hover bridge so the menu doesn't close in the gap */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0; right: 0;
    height: 18px;
}
.nav-has-dropdown:hover .nav-dropdown-menu,
.nav-has-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 6px 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
}
.mega-menu-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--accent-gold-deep);
}
.mega-menu-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-dark);
    font-family: var(--font-serif);
}

.mega-menu-grid {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.18s ease;
}
.nav-dropdown-menu a::after { display: none; }
.ns-icon {
    flex-shrink: 0;
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background-color: rgba(29, 78, 216, 0.08);
    color: var(--accent-blue);
    transition: all 0.2s var(--transition-snap);
}
.ns-icon svg { width: 19px; height: 19px; }
.ns-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ns-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy-dark);
    line-height: 1.25;
}
.ns-desc {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--slate-light);
    line-height: 1.3;
}
.nav-dropdown-menu a:hover {
    background-color: var(--canvas-bg);
    transform: translateX(2px);
}
.nav-dropdown-menu a:hover .ns-icon {
    background-color: var(--accent-blue);
    color: #ffffff;
    transform: scale(1.06);
}
.nav-dropdown-menu a:hover .ns-title { color: var(--accent-blue); }

/* "Explore all services" CTA cell spans both columns */
.mega-menu-cta-cell { grid-column: 1 / -1; margin-top: 6px; }
.nav-dropdown-menu a.mega-menu-cta {
    justify-content: space-between;
    background: linear-gradient(135deg, var(--navy-dark), var(--accent-blue));
    padding: 13px 18px;
}
.nav-dropdown-menu a.mega-menu-cta .ns-title { color: #ffffff; }
.nav-dropdown-menu a.mega-menu-cta .ns-desc { color: rgba(255, 255, 255, 0.72); }
.nav-dropdown-menu a.mega-menu-cta .ns-arrow {
    color: #ffffff;
    font-size: 18px;
    transition: transform 0.2s var(--transition-snap);
}
.nav-dropdown-menu a.mega-menu-cta:hover {
    transform: translateX(0);
    filter: brightness(1.1);
}
.nav-dropdown-menu a.mega-menu-cta:hover .ns-arrow { transform: translateX(5px); }

/* Careers external-link arrow */
.nav-careers-link .ext-arrow {
    font-size: 11px;
    margin-left: 1px;
    opacity: 0.7;
}

/* --- Hero ---------------------------------------------------------------- */
.hero-showcase {
    min-height: 600px;
    position: relative;
    background: linear-gradient(135deg, #173a6d 0%, #1f57a0 55%, #2a6ec4 100%);
    display: flex;
    align-items: center;
    padding: 72px 0;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(100deg, rgba(10, 24, 48, 0.80) 0%, rgba(12, 30, 60, 0.62) 36%, rgba(20, 52, 96, 0.28) 66%, rgba(30, 76, 132, 0.02) 100%),
        url('https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?auto=format&fit=crop&w=1800&q=80');
    background-size: cover;
    background-position: center;
}

.animated-grid-matrix {
    position: absolute;
    width: 220%; height: 220%;
    top: -60%; left: -60%;
    background-image:
        linear-gradient(to right, rgba(59, 130, 246, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
    background-size: 45px 45px;
    transform: rotate(8deg);
    animation: none;
}

.animated-scanning-line {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.7), transparent);
    animation: none;
}

.animated-glow-pulse {
    position: absolute;
    top: 15%; left: 20%;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    animation: organicPulse 7s ease-in-out infinite alternate;
    filter: blur(20px);
}
.glow-pulse-2 {
    top: 60%; left: auto; right: 8%;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.14) 0%, transparent 72%);
    animation-duration: 9s;
    animation-delay: -3s;
}

.floating-particle {
    position: absolute;
    width: 4px; height: 4px;
    background: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 10px #60a5fa;
    opacity: 0.6;
    animation: floatParticle 12s ease-in-out infinite;
}
.floating-particle.p1 { top: 20%; left: 12%; animation-delay: 0s; }
.floating-particle.p2 { top: 70%; left: 30%; animation-delay: -3s; }
.floating-particle.p3 { top: 35%; right: 18%; animation-delay: -6s; }
.floating-particle.p4 { top: 80%; right: 35%; animation-delay: -9s; }

.hero-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 60px;
    align-items: center;
}

.hero-content { color: var(--surface-white); max-width: 640px; }
.hero-meta-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--accent-gold-soft);
    margin-bottom: 22px;
    background-color: rgba(59, 130, 246, 0.14);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.34);
    backdrop-filter: blur(8px);
}
.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 46px;
    line-height: 1.16;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(5, 12, 26, 0.45);
}
.hero-lead {
    font-size: 16.5px;
    color: #e2e8f0;
    text-shadow: 0 1px 12px rgba(5, 12, 26, 0.4);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-cta-cluster {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.hero-cta-cluster .btn-primary {
    background-color: var(--accent-blue);
    color: #ffffff;
}
.hero-cta-cluster .btn-primary:hover { background-color: #2563eb; }

/* Hero Ticker Badge */
.experience-ticker-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 9px 18px;
    border-radius: 999px;
    gap: 12px;
    overflow: hidden;
    height: 42px;
    backdrop-filter: blur(8px);
}
.ticker-pulse-light {
    width: 8px; height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulseLight 1.4s ease-in-out infinite;
}
.ticker-text-slider {
    position: relative;
    height: 22px;
    width: 320px;
    overflow: hidden;
}
.ticker-text-slider span {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    opacity: 0;
    transform: translateY(10px);
    animation: textFadeSequence 12s linear infinite;
    white-space: nowrap;
}
.ticker-text-slider .ticker-frame-2 { animation-delay: 4s; }
.ticker-text-slider .ticker-frame-3 { animation-delay: 8s; }

/* Hero Visual — Orbit Frame */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.hero-orbit-frame {
    position: relative;
    width: 360px;
    height: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* soft dark halo so the orbit reads clearly over the lighter image */
.hero-orbit-frame::before {
    content: '';
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8, 18, 36, 0.55) 0%, rgba(8, 18, 36, 0.30) 45%, transparent 72%);
    z-index: 0;
}
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(147, 197, 253, 0.55);
    inset: 0;
    z-index: 1;
    animation: orbitSpin 32s linear infinite;
}
.orbit-ring.ring-2 { inset: 40px; animation-duration: 22s; animation-direction: reverse; border-color: rgba(191, 219, 254, 0.6); }
.orbit-ring.ring-3 { inset: 80px; animation-duration: 16s; border-color: rgba(231, 199, 90, 0.7); border-style: dashed; }

.orbit-core {
    position: relative;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle at 32% 28%, #1c4474, #0d2240 72%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    border: 1.5px solid rgba(231, 199, 90, 0.55);
    box-shadow:
        0 0 60px rgba(231, 199, 90, 0.35),
        0 10px 30px rgba(0, 0, 0, 0.45),
        inset 0 -10px 30px rgba(0, 0, 0, 0.4);
    z-index: 5;
    animation: corePulse 4s ease-in-out infinite;
}
.orbit-core-label { font-family: var(--font-serif); font-size: 32px; font-weight: 700; letter-spacing: -0.5px; color: gold; }
.orbit-core-sub { font-size: 10px; text-transform: uppercase; letter-spacing: 1.8px; opacity: 0.85; margin-top: 2px; }

/* Revolving track — slowly carries the four GxP nodes around the core.
   Each node counter-rotates at the same rate so its label stays upright
   (revolves, never flips/inverts). */
.orbit-node-track {
    position: absolute;
    inset: 0;
    z-index: 4;
    animation: orbitSpin 38s linear infinite;
}
.orbit-node {
    position: absolute;
    width: 60px; height: 60px;
    margin: -30px 0 0 -30px; /* center the node on its anchor point */
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #1c4474, #0b1d38 78%);
    border: 1.5px solid rgba(231, 199, 90, 0.7);
    backdrop-filter: blur(8px);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(13, 34, 64, 0.35);
    animation: orbitCounterSpin 38s linear infinite;
}
/* Four-point diamond anchors: GCP (top) · cGMP (right) · GLP (bottom) · GVP (left) */
.node-gcp { top: 0;    left: 50%; }
.node-gmp { top: 50%;  left: 100%; }
.node-glp { top: 100%; left: 50%; }
.node-gvp { top: 50%;  left: 0; }

/* --- Regulator Strip ----------------------------------------------------- */
.regulator-strip {
    padding: 28px 0;
    background-color: var(--surface-white);
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
}
.strip-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--slate-light);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.regulator-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: flex;
    gap: 36px;
    animation: marqueeFlow 22s linear infinite;
    width: max-content;
}
.reg-chip {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-text);
    letter-spacing: 0.6px;
    padding: 8px 18px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background-color: var(--canvas-bg);
    white-space: nowrap;
    transition: all 0.25s var(--transition-snap);
}
.reg-chip:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(29, 78, 216, 0.15);
}

/* --- About Section ------------------------------------------------------- */
.about-section { padding: 100px 0; background-color: var(--surface-white); transition: background 0.35s ease; }
.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}
.section-sublabel {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-gold-deep);
    letter-spacing: 1.8px;
    margin-bottom: 12px;
    padding: 4px 12px;
    background-color: rgba(59, 130, 246, 0.12);
    border-radius: 999px;
}
.section-sublabel.center-label { display: inline-block; }
.about-text h2 {
    font-family: var(--font-serif);
    font-size: 38px;
    margin-bottom: 22px;
    color: var(--navy-dark);
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.about-text p {
    color: var(--slate-text);
    font-size: 15.5px;
    margin-bottom: 18px;
    line-height: 1.75;
}

.coordinator-callout {
    margin-top: 24px;
    padding: 20px 22px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.05), rgba(59, 130, 246, 0.02));
    border-left: 3px solid var(--accent-blue);
    border-radius: 0 var(--radius-element) var(--radius-element) 0;
}
.callout-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--accent-blue);
    margin-bottom: 8px;
}
.coordinator-callout p {
    margin-bottom: 0;
    font-size: 14.5px;
    color: var(--slate-text);
}

.about-visual-side { display: flex; flex-direction: column; gap: 28px; }
.about-slideshow-container {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: var(--radius-element);
    border: 1px solid var(--line-soft);
    background-color: var(--navy-dark);
    box-shadow: var(--card-shadow);
}
.about-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    background-color: var(--navy-dark);
    opacity: 0;
    transform: scale(1.02) translateZ(0);
    will-change: opacity, transform;
    transition: opacity 1.4s ease-in-out, transform 6s ease-in-out;
    z-index: 1;
}
.about-slide.active { opacity: 1; transform: scale(1) translateZ(0); z-index: 2; }

.slideshow-indicators {
    position: absolute;
    bottom: 14px; left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}
.slideshow-indicators .dot {
    width: 28px; height: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    transition: all 0.4s var(--transition-smooth);
    cursor: pointer;
}
.slideshow-indicators .dot.active { background-color: #ffffff; width: 40px; }

.metric-trio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.metric-block {
    background-color: var(--canvas-bg);
    padding: 20px 14px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-element);
    text-align: center;
    transition: all 0.25s var(--transition-snap);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
}
.metric-block:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.1);
}
.metric-figure {
    display: block;
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: 6px;
}
.metric-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-text);
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* --- Services Matrix Section --------------------------------------------- */
.matrix-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--canvas-bg), #f1f5f9 100%);
}

.section-center-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px auto;
}
.section-center-header h2 {
    font-family: var(--font-serif);
    font-size: 38px;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.refined-subtext {
    color: var(--slate-text);
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.7;
}

/* exploration hint above the tab cards */
.tab-explore-hint {
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--slate-light);
    margin-bottom: 18px;
}
.tab-explore-hint .hint-arrow {
    display: inline-block;
    color: var(--accent-blue);
    margin-right: 4px;
    animation: hintBounce 1.6s var(--transition-smooth) infinite;
}
@keyframes hintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}
@keyframes hintSwipe {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Service selector — single horizontal row of cards on ALL devices.
   Centered when it fits; scrolls horizontally on smaller screens. */
.tab-control-bar {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 52px;
    background: transparent;
    border: none;
    padding: 10px 4px 16px;
    box-shadow: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--line-border) transparent;
}
.tab-control-bar::-webkit-scrollbar { height: 6px; }
.tab-control-bar::-webkit-scrollbar-thumb { background: var(--line-border); border-radius: 999px; }
.tab-control-bar::-webkit-scrollbar-track { background: transparent; }
.tab-trigger {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 0 0 148px;
    min-height: 132px;
    padding: 22px 12px;
    background-color: var(--surface-white);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: var(--card-shadow);
    transition: transform 0.28s var(--transition-smooth), box-shadow 0.28s var(--transition-smooth), border-color 0.28s var(--transition-smooth), background-color 0.28s var(--transition-smooth);
}
.tab-num { display: none; }

.tab-icon {
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background-color: rgba(13, 34, 64, 0.06);
    color: var(--brand-navy);
    transition: all 0.28s var(--transition-snap);
}
.tab-icon svg { width: 22px; height: 22px; }
.tab-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: var(--navy-dark);
}

.tab-trigger:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 14px 30px rgba(184, 144, 44, 0.22);
}
.tab-trigger:hover .tab-icon {
    transform: scale(1.06);
    background-color: rgba(212, 175, 55, 0.16);
    color: var(--gold-deep);
}

.tab-trigger.active {
    background: linear-gradient(160deg, var(--brand-navy) 0%, #0a1a30 100%);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(184, 144, 44, 0.38);
}
.tab-trigger.active .tab-name { color: #ffffff; }
.tab-trigger.active .tab-icon {
    background-color: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--gold-bright);
}

/* Service Panels */
.matrix-panel {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s var(--transition-smooth), transform 0.35s var(--transition-smooth);
}
.matrix-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: panelPop 0.45s var(--transition-smooth);
}
@keyframes panelPop {
    0%   { opacity: 0; transform: translateY(18px) scale(0.985); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.panel-layout-wrapper {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    background-color: var(--surface-white);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    overflow: hidden;
    min-height: 480px;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.35s ease;
}
.panel-layout-wrapper:hover { box-shadow: var(--card-shadow-hover); }

.panel-image-container {
    width: 100%;
    height: 100%;
    background: #0f172a;
    position: relative;
    min-height: 320px;
    overflow: hidden;
}
.panel-context-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0; left: 0;
    transition: transform 8s ease-out;
}
.panel-layout-wrapper:hover .panel-context-img { transform: scale(1.06); }
.panel-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    color: #ffffff;
}
.panel-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    background-color: rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.5);
    padding: 4px 12px;
    border-radius: 999px;
    color: #bfdbfe;
    width: fit-content;
    margin-bottom: 10px;
}
.panel-image-overlay h4 {
    font-family: var(--font-serif);
    font-size: 22px;
    line-height: 1.3;
}

.panel-info-side { padding: 44px; }
.panel-info-side h3 {
    font-family: var(--font-serif);
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--navy-dark);
}
.panel-intro {
    font-size: 14.5px;
    color: var(--slate-text);
    margin-bottom: 28px;
    line-height: 1.7;
}
.capability-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}
.capability-block {
    padding: 16px;
    background-color: var(--canvas-bg);
    border-radius: var(--radius-element);
    border: 1px solid var(--line-soft);
    transition: all 0.25s var(--transition-snap);
}
.capability-block:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.08);
}
.capability-block strong {
    display: block;
    font-size: 13px;
    color: var(--accent-blue);
    margin-bottom: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.capability-block p {
    font-size: 13.5px;
    color: var(--slate-text);
    line-height: 1.65;
}
.capability-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.capability-block ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    font-size: 13.5px;
    color: var(--slate-text);
    line-height: 1.6;
}
.capability-block ul li:last-child { margin-bottom: 0; }
.capability-block ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    opacity: 0.6;
}
.capability-block.full-width { grid-column: 1 / -1; }

/* --- Reach Section ------------------------------------------------------- */
.reach-section {
    padding: 100px 0;
    background-color: var(--surface-white);
    border-top: 1px solid var(--line-soft);
}
.reach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}
.reach-card {
    background-color: var(--canvas-bg);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    padding: 28px 26px;
    transition: all 0.35s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.reach-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--transition-smooth);
}
.reach-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-blue);
}
.reach-card:hover::before { transform: scaleX(1); }

.reach-card-head { margin-bottom: 16px; }
.flag-row { display: flex; gap: 6px; margin-bottom: 14px; }
.flag-icon-asset {
    width: 32px; height: 22px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(11, 21, 35, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: inline-block;
}
.flag-usa { background-image: url('https://flagcdn.com/w80/us.png'); }
.flag-can { background-image: url('https://flagcdn.com/w80/ca.png'); }
.flag-eu  { background-image: url('https://flagcdn.com/w80/eu.png'); }
.flag-uk  { background-image: url('https://flagcdn.com/w80/gb.png'); }
.flag-jpn { background-image: url('https://flagcdn.com/w80/jp.png'); }
.flag-kor { background-image: url('https://flagcdn.com/w80/kr.png'); }
.flag-ind { background-image: url('https://flagcdn.com/w80/in.png'); }

.reach-card-head h4 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--navy-dark);
}
.reach-region-line {
    font-size: 14px;
    color: var(--slate-text);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: var(--surface-white);
    border-radius: 6px;
    border: 1px solid var(--line-soft);
}
.reach-reg {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.8px;
    background-color: rgba(29, 78, 216, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
}
.reach-card-foot { margin-top: 18px; }
.reach-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--success-green);
    letter-spacing: 0.4px;
}
.reach-badge::before {
    content: '';
    width: 6px; height: 6px;
    background-color: var(--success-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success-green);
    animation: pulseLight 1.6s ease-in-out infinite;
}

.reach-integration-banner {
    background: linear-gradient(135deg, var(--navy-dark) 0%, #1e3a8a 100%);
    border-radius: 16px;
    padding: 44px 48px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.reach-integration-banner::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
    pointer-events: none;
}
.banner-inner { position: relative; z-index: 2; max-width: 720px; }
.banner-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #93c5fd;
    background-color: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.reach-integration-banner h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 12px;
}
.reach-integration-banner p { color: #cbd5e1; font-size: 15px; line-height: 1.7; }

/* --- Contact Section ----------------------------------------------------- */
.contact-terminal-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f1f5f9 0%, var(--canvas-bg) 100%);
    border-top: 1px solid var(--line-soft);
}
.contact-split-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: flex-start;
}
.terminal-info-card h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    margin-bottom: 16px;
    line-height: 1.25;
}
.terminal-info-card > p {
    color: var(--slate-text);
    margin-bottom: 28px;
    line-height: 1.7;
    font-size: 15.5px;
}

.terminal-directory {
    border-top: 1px solid var(--line-soft);
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.dir-typography-row { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.dir-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--slate-light);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.dir-icon { width: 14px; height: 14px; color: var(--accent-blue); flex-shrink: 0; }
.directory-linkedin-icon { width: 14px; height: 14px; color: #0077b5; fill: currentColor; }

/* Clickable Contact Link — hover pop */
.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    background-color: var(--surface-white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-element);
    color: var(--navy-dark);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.1px;
    transition:
        transform 0.32s var(--transition-smooth),
        color 0.25s var(--transition-snap),
        border-color 0.25s var(--transition-snap),
        background-color 0.25s var(--transition-snap),
        box-shadow 0.32s var(--transition-smooth);
    will-change: transform;
    transform: translate3d(0, 0, 0);
}
.contact-link-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}
.contact-link-arrow {
    font-size: 16px;
    color: var(--slate-light);
    transition: transform 0.3s var(--transition-smooth), color 0.25s var(--transition-snap);
    flex-shrink: 0;
}
.contact-link:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    background-color: rgba(29, 78, 216, 0.03);
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 12px 28px rgba(29, 78, 216, 0.15);
}
.contact-link:hover .contact-link-arrow {
    color: var(--accent-blue);
    transform: translateX(4px);
}
.contact-link:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}

/* --- Form ---------------------------------------------------------------- */
.terminal-form-card {
    background-color: var(--surface-white);
    padding: 36px;
    border-radius: 14px;
    border: 1px solid var(--line-soft);
    box-shadow: var(--card-shadow);
    transition: background 0.35s ease, border 0.35s ease, box-shadow 0.35s ease;
}

/* Microsoft Forms embed — blended into the contact card */
.terminal-form-card.has-embed {
    padding: 10px;
    overflow: hidden;
    min-height: 600px;
}

.ms-form-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.ms-forms-embed {
    display: block;
    width: 100%;
    height: 800px;
    min-height: 600px;
    border: none;
    border-radius: 10px;
    background-color: var(--surface-white);
    /* Prevent the collapsed "Fill out the form" mobile fallback */
    overflow: auto;
}
.input-field-group { margin-bottom: 22px; position: relative; }
.input-field-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--navy-dark);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.input-field-group input,
.input-field-group textarea,
.select-styled {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line-border);
    border-radius: var(--radius-element);
    font-family: var(--font-sans);
    font-size: 14px;
    background-color: var(--canvas-bg);
    color: var(--navy-dark);
    transition: all 0.25s var(--transition-snap);
}
.select-styled {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748b' d='M5 6 0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 38px;
    cursor: pointer;
}
.input-field-group input:focus,
.input-field-group textarea:focus,
.select-styled:focus {
    outline: none;
    border-color: var(--accent-blue);
    background-color: var(--surface-white);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
}

/* CASL Checkbox - Professional */
.compliance-casl-card {
    padding: 18px 20px;
    background-color: var(--canvas-bg);
    border-radius: var(--radius-element);
    border: 1px solid var(--line-soft);
    margin-bottom: 26px;
    transition: all 0.25s var(--transition-snap);
}
.compliance-casl-card:hover {
    border-color: var(--navy-dark);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
.casl-row-container {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.casl-input-wrapper {
    display: flex;
    align-items: center;
    padding-top: 2px;
    flex-shrink: 0;
}
.casl-input-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    accent-color: var(--accent-blue);
    border-radius: 4px;
    transition: transform 0.15s ease;
}
.casl-input-wrapper input[type="checkbox"]:hover { transform: scale(1.06); }
.casl-input-wrapper input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}
.casl-label-text {
    font-size: 13.5px;
    color: var(--slate-text);
    line-height: 1.6;
    cursor: pointer;
    user-select: none;
    font-weight: 400 !important;
    flex: 1;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding-top: 1px;
}

/* Validation */
.field-error-message {
    display: block;
    font-size: 12px;
    color: var(--error-red);
    font-weight: 500;
    margin-top: 6px;
    min-height: 14px;
}
.field-state-error input,
.field-state-error textarea,
.field-state-error .select-styled {
    border-color: var(--error-red) !important;
    background-color: #fef2f2 !important;
}
.field-state-error.compliance-casl-card {
    border-color: var(--error-red) !important;
    background-color: #fef2f2 !important;
}

.element-shake-event { animation: microGroupShake 0.4s cubic-bezier(.36,.07,.19,.97) both; }
.holistic-shake-event { animation: hardwareCardShake 0.45s cubic-bezier(.36,.07,.19,.97) both; }

/* Success */
.submission-success-card {
    text-align: center;
    padding: 60px 24px;
    background: var(--surface-white);
    border-radius: var(--radius-element);
}
.success-icon-badge {
    font-size: 56px;
    margin-bottom: 18px;
    display: inline-block;
    animation: successPop 0.6s var(--transition-smooth) both;
}
.submission-success-card h3 {
    font-family: var(--font-serif);
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--navy-dark);
}
.success-p1 { color: var(--slate-text); font-size: 15px; line-height: 1.7; margin-bottom: 8px; }
.success-p2 { color: var(--slate-light); font-size: 13.5px; }

/* Inquiry form helpers */
.input-field-group textarea { resize: vertical; min-height: 92px; line-height: 1.6; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.corporate-secure-form .btn-block { margin-top: 6px; }
.form-privacy-note { margin-top: 14px; font-size: 12px; color: var(--slate-light); text-align: center; line-height: 1.5; }
/* Hide the floating reCAPTCHA badge (Enterprise / relaxed-terms route) */
.grecaptcha-badge { visibility: hidden; }
#inquirySubmit[disabled] { opacity: 0.6; cursor: progress; }

/* --- Careers ------------------------------------------------------------- */
.careers-standalone-hero {
    padding: 120px 0;
    min-height: calc(100vh - 280px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--canvas-bg), var(--surface-white));
}
.text-center-wrapper { display: flex; justify-content: center; width: 100%; }
.careers-notice-box {
    text-align: center;
    max-width: 580px;
    background-color: var(--surface-white);
    border: 1px solid var(--line-soft);
    padding: 56px 44px;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
}
.careers-notice-box h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--navy-dark);
}
.notice-subtitle {
    display: inline-block;
    font-size: 11px;
    color: var(--accent-blue);
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding: 4px 12px;
    background-color: rgba(29, 78, 216, 0.08);
    border-radius: 999px;
}
.careers-decorative-bar {
    width: 56px; height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), transparent);
    margin: 22px auto;
}
.careers-body-text {
    font-size: 14.5px;
    color: var(--slate-text);
    margin-bottom: 18px;
    line-height: 1.7;
}

/* --- Careers Page (standalone careers.html) ------------------------------ */
.careers-page-hero {
    position: relative;
    padding: 110px 0 90px;
    background:
        radial-gradient(1200px 400px at 50% -10%, rgba(29, 78, 216, 0.10), transparent 70%),
        linear-gradient(180deg, var(--surface-white), var(--canvas-bg));
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
}
.careers-hero-header { margin-bottom: 0; max-width: 800px; }
.careers-hero-header h1 {
    font-family: var(--font-serif);
    font-size: 46px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    color: var(--navy-dark);
}
.careers-hero-cta { margin-top: 30px; }
/* hero subtext enlarged +4pt per spec */
.careers-hero-lead {
    font-size: 20px;
    line-height: 1.65;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Careers Image Gallery ---------------------------------------------- */
.careers-gallery-section {
    background-color: var(--surface-white);
    padding: 80px 0;
}
.careers-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 18px;
}
.careers-gallery-item {
    position: relative;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--line-soft);
}
.careers-gallery-item.gallery-tall { grid-row: span 2; }
.careers-gallery-item.gallery-wide { grid-column: span 2; }
.careers-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--transition-smooth);
}
.careers-gallery-item:hover img { transform: scale(1.06); }
.careers-gallery-item figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 22px 18px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(to top, rgba(8, 18, 34, 0.88), transparent);
}
.careers-gallery-item figcaption::before {
    content: '';
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
    margin-bottom: 8px;
}

.careers-values-section { background-color: var(--surface-white); }
.careers-value-card { text-align: left; }
.value-icon {
    width: 52px; height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background-color: rgba(29, 78, 216, 0.08);
    color: var(--accent-blue);
    margin-bottom: 18px;
    transition: all 0.3s var(--transition-smooth);
}
.value-icon svg { width: 26px; height: 26px; }
.careers-value-card:hover .value-icon {
    background-color: var(--accent-blue);
    color: #ffffff;
    transform: translateY(-2px);
}
.careers-value-card h4 {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--navy-dark);
    margin-bottom: 10px;
}
.careers-value-card p {
    font-size: 14px;
    color: var(--slate-text);
    line-height: 1.7;
}

/* --- Careers Section ----------------------------------------------------- */
.careers-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--canvas-bg), #f1f5f9 100%);
    border-top: 1px solid var(--line-soft);
}
.careers-content-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--surface-white);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    padding: 48px 44px;
    box-shadow: var(--card-shadow);
}
.careers-content-card p {
    color: var(--slate-text);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 18px;
}
.careers-email-link {
    display: inline-block;
    margin-top: 12px;
    padding: 14px 32px;
    background-color: var(--accent-blue);
    color: #ffffff;
    border-radius: var(--radius-element);
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: all 0.25s var(--transition-snap);
}
.careers-email-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.28);
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
    background-color: var(--navy-dark);
    color: #94a3b8;
    padding: 70px 0 50px;
    font-size: 13.5px;
    border-top: 1px solid #1e293b;
    transition: background-color 0.35s ease;
}
.footer-grid-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.footer-left-alignment-cluster {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}
.footer-brand { order: 0; } /* neutralise header's order:1 on the footer logo */
.site-footer .logo-top { color: #ffffff !important; }
.site-footer .logo-bottom { color: #93c5fd !important; }

.footer-coord-line {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-coord-label {
    font-size: 10.5px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}
.footer-coord-line strong { color: #ffffff; font-size: 14px; font-weight: 600; }

.footer-location-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #f1f5f9;
    font-size: 13px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.location-pin-icon { width: 14px; height: 14px; color: #ef4444; flex-shrink: 0; }

.footer-meta-side { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; text-align: right; }
.footer-legal-links { list-style: none; display: flex; gap: 24px; }
.footer-legal-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}
.footer-legal-links a:hover { color: #ffffff; }
.copyright-notice { font-size: 12px; color: #64748b; }
.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.footer-social-link svg { width: 17px; height: 17px; }
.footer-social-link:hover {
    color: #ffffff;
    border-color: var(--accent-gold);
    background-color: rgba(59, 130, 246, 0.12);
}

/* --- Reveal On Scroll ---------------------------------------------------- */
.reveal-on-scroll,
.reveal-fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
    will-change: opacity, transform;
}
.reveal-on-scroll.is-visible,
.reveal-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-2 { transition-delay: 0.15s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Keyframes ----------------------------------------------------------- */
@keyframes matrixGridShift { from { background-position: 0 0; } to { background-position: 45px 45px; } }
@keyframes sweepRadar {
    0% { top: 0%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
@keyframes organicPulse {
    from { transform: scale(1); opacity: 0.7; }
    to { transform: scale(1.15); opacity: 1; }
}
@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0); opacity: 0.6; }
    25% { transform: translate(20px, -30px); opacity: 0.9; }
    50% { transform: translate(-15px, -60px); opacity: 0.4; }
    75% { transform: translate(-30px, -20px); opacity: 0.8; }
}
@keyframes textFadeSequence {
    0%, 30% { opacity: 0; transform: translateY(8px); }
    3%, 27% { opacity: 1; transform: translateY(0); }
    30%, 100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes pulseLight {
    0%, 100% { box-shadow: 0 0 10px currentColor; opacity: 1; }
    50% { box-shadow: 0 0 20px currentColor; opacity: 0.7; }
}
@keyframes orbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbitCounterSpin { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes corePulse {
    0%, 100% { box-shadow: 0 0 55px rgba(231, 199, 90, 0.32), 0 10px 30px rgba(0,0,0,0.45), inset 0 -10px 30px rgba(0, 0, 0, 0.4); }
    50% { box-shadow: 0 0 90px rgba(231, 199, 90, 0.5), 0 10px 30px rgba(0,0,0,0.45), inset 0 -10px 30px rgba(0, 0, 0, 0.4); }
}
@keyframes nodeBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.node-gcp {
    animation: orbitCounterSpin 38s linear infinite !important;
    transform-origin: center center !important;
    animation-fill-mode: forwards;
}

.node-gcp::after {
    display: inline-block;
    animation: orbitCounterSpin 38s linear infinite reverse !important;
}
@keyframes nodeBobX {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}
@keyframes nodeBobY {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 8px)); }
}
@keyframes marqueeFlow {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes microGroupShake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}
@keyframes hardwareCardShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
    40%, 60% { transform: translate3d(6px, 0, 0); }
}
@keyframes successPop {
    0% { transform: scale(0.4) rotate(-20deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ==========================================================================
   TAB BAR — utility overrides (card layout defined in the Services section)
   ========================================================================== */
/* hide numbers if they ever appear */
.tab-trigger .tab-num { display: none; }
/* remove old explore hint */
.tab-explore-hint { display: none !important; }

/* ==========================================================================
   METRIC BLOCKS — updated for text-only boxes (no counter)
   ========================================================================== */
.metric-label-top {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--slate-light);
    margin-bottom: 8px;
}
.metric-domains {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.5;
}
.metric-block {
    background-color: var(--canvas-bg);
    padding: 18px 14px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-element);
    text-align: center;
    transition: all 0.25s var(--transition-snap);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}
.metric-block:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.1);
}

/* ==========================================================================
   PARTNER CALLOUT
   ========================================================================== */
.partner-callout {
    margin-top: 28px;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02));
    border-left: 3px solid var(--accent-gold);
    border-radius: 0 var(--radius-element) var(--radius-element) 0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.partner-logo {
    height: 35px;        /* Adjust this to match your tag height */
    width: auto;
    object-fit: contain;
}

.partner-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}
.partner-link:hover { color: var(--accent-gold-deep); }
.partner-arrow {
    font-size: 14px;
    color: var(--accent-gold-deep);
}

/* ==========================================================================
   REACH — linked regulator badges
   ========================================================================== */
.reach-reg-link {
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.reach-reg-link:hover {
    background-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.3);
}

/* ==========================================================================
   ADDITIONAL FLAG ASSETS
   ========================================================================== */
/* India tricolour with a proper 24-spoke Ashoka Chakra (local SVG, accurate colours) */
.flag-chn { background-image: url('https://flagcdn.com/w80/cn.png'); }
.flag-aus { background-image: url('https://flagcdn.com/w80/au.png'); }

/* ==========================================================================
   LOCATIONS SECTION
   ========================================================================== */
.locations-section {
    margin-top: 72px;
    padding-top: 56px;
    border-top: 1px solid var(--line-soft);
}
.locations-heading {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--navy-dark);
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: -0.2px;
}
.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding-bottom: 72px;
}
.location-card {
    background-color: var(--surface-white);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    padding: 24px;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.location-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--transition-smooth);
}
.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-blue);
}
.location-card:hover::before { transform: scaleX(1); }

.location-info-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.location-name-bold {
    font-weight: 700;
    color: var(--navy-dark);
    font-size: 15px;
    line-height: 1.4;
}
.location-tel-highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-blue);
    text-decoration: none;
    background: rgba(29, 78, 216, 0.08);
    padding: 5px 12px;
    border-radius: 6px;
    white-space: nowrap;
    width: fit-content;
    margin-top: 2px;
}
.location-flag-fixed {
    flex-shrink: 0;
    width: 32px;
    height: 22px;
    border-radius: 2px;
}

/* ==========================================================================
   SANDBOX BAR — hidden (template switcher removed)
   ========================================================================== */
.prototype-sandbox-bar { display: none !important; }

/* ==========================================================================
   RESPONSIVE UPDATES
   ========================================================================== */
@media (max-width: 1024px) {
    .locations-grid { grid-template-columns: 1fr; }

    /* Stack the major two-column section grids on tablets and half-window desktops */
    .hero-grid { grid-template-columns: 1fr; gap: 40px; min-width: 0; }
    .hero-content { margin: 0 auto; text-align: center; }
    .hero-cta-cluster { justify-content: center; }
    .experience-ticker-badge { margin: 0 auto; }
    
    .hero-visual { order: -1; min-height: 320px; }
    
    .about-grid { grid-template-columns: 1fr; gap: 40px; min-width: 0; }
    .about-text { text-align: center; }
    .about-visual-side { align-items: center; }
    
    .contact-split-grid { grid-template-columns: 1fr; gap: 36px; min-width: 0; }
    .terminal-info-card { text-align: center; }
    .terminal-directory { align-items: center; }
    
    .reach-grid { grid-template-columns: 1fr 1fr; }
    .careers-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .careers-gallery-item.gallery-wide { grid-column: span 2; }
    .careers-gallery-item.gallery-tall { grid-row: span 1; }
}

/* ==========================================================================
   MOBILE NAVIGATION + RESPONSIVE LAYOUT (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* --- Hamburger + collapsible nav panel --- */
    .nav-toggle { display: flex; }

    .header-container { min-height: 64px; gap: 10px 12px; padding: 8px 16px; }
    .header-logo-img, .brand-logo-img { height: 57px; }

    /* The logo + hamburger share the first row; the tagline wraps below them.
       The nav panel drops directly beneath the whole header, whatever its height. */
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--surface-white);
        border-top: 1px solid var(--line-soft);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
        max-height: calc(100vh - 100%);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0 20px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        z-index: 1100;
    }
    .site-header.nav-open .main-navigation {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    .main-navigation > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 20px;
    }
    .main-navigation > ul > li {
        width: 100%;
        border-bottom: 1px solid var(--line-soft);
    }
    .main-navigation > ul > li:last-child { border-bottom: none; }
    .main-navigation a {
        display: block;
        padding: 15px 4px;
        font-size: 15px;
    }
    .main-navigation a:not(.nav-cta)::after { display: none; }
    .main-navigation a.nav-cta {
        margin-top: 14px;
        text-align: center;
        padding: 13px 16px;
    }
    .nav-dropdown-toggle { display: flex; align-items: center; justify-content: space-between; }
    .nav-has-dropdown.submenu-open .dropdown-caret { transform: rotate(180deg); }

    /* Mega menu collapses into an inline accordion on mobile */
    .nav-dropdown-menu {
        position: static;
        transform: none;
        width: auto;
        max-width: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 10px;
        opacity: 1;
        visibility: hidden;
        pointer-events: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, visibility 0.3s ease;
    }
    .nav-dropdown-menu::after, .nav-dropdown-menu::before { display: none; }
    .nav-has-dropdown.submenu-open .nav-dropdown-menu {
        visibility: visible;
        pointer-events: auto;
        max-height: 720px;
    }
    /* Neutralise desktop hover-open inside the mobile panel */
    .nav-has-dropdown:hover .nav-dropdown-menu,
    .nav-has-dropdown:focus-within .nav-dropdown-menu {
        transform: none;
    }
    .mega-menu-grid { grid-template-columns: 1fr; }
    .mega-menu-head { padding: 4px 4px 10px; }

    /* --- Section layout stacks --- */
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-visual { order: -1; min-height: 280px; }
    .hero-orbit-frame { width: 260px; height: 260px; }
    .hero-content h1 { font-size: 32px; }
    .hero-lead { font-size: 15px; }
    .hero-cta-cluster .btn { width: 100%; text-align: center; }
    .hero-showcase { padding: 56px 0; min-height: auto; }

    .about-grid, .contact-split-grid { grid-template-columns: 1fr; gap: 32px; }
    .reach-grid { grid-template-columns: 1fr; }
    
    /* Metrics: Vertical stack on mobile for better readability */
    .metric-trio-grid { 
        display: flex;
        flex-direction: column;
        gap: 16px;
        overflow-x: visible;
        padding-bottom: 0;
    }
    .metric-block { 
        padding: 24px;
        min-height: auto;
        aspect-ratio: auto; /* Allow height to fit content on mobile */
        width: 100%;
    }
    .metric-block .section-sublabel { font-size: 10px; letter-spacing: 1.2px; margin-bottom: 6px; }
    .metric-block .metric-domains { font-size: 14px; }
    .metric-block .metric-figure { font-size: 28px; }

    .careers-gallery-section { padding: 48px 0; }
    .careers-gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; gap: 14px; }
    .careers-gallery-item.gallery-wide { grid-column: span 1; }
    .careers-gallery-item.gallery-tall { grid-row: span 1; }
    .careers-hero-lead { font-size: 17px; }

    .about-section, .matrix-section, .reach-section, .contact-terminal-section { padding: 60px 0; }
    .section-center-header h2,
    .about-text h2,
    .terminal-info-card h2 { font-size: 28px; }

    /* keep the desktop single-row card layout on mobile (scrolls horizontally) */
    .panel-layout-wrapper { grid-template-columns: 1fr; }
    .capability-grid-layout { grid-template-columns: 1fr; }

    /* --- Start an Inquiry (Microsoft Form) on mobile --- */
    .contact-split-grid { gap: 40px; }
    .terminal-info-card { order: -1; text-align: center; }
    .terminal-info-card h2 { margin-bottom: 16px; }
    .terminal-form-card { padding: 24px 20px; border-radius: 16px; }
    
    .input-field-group label { font-size: 13px; margin-bottom: 6px; }
    .corporate-secure-form input, 
    .corporate-secure-form select, 
    .corporate-secure-form textarea { 
        font-size: 15px; 
        padding: 12px; 
    }

    .locations-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
        padding-bottom: 40px;
    }
    .locations-section { margin-top: 56px; padding-top: 48px; }
    .locations-heading { font-size: 24px; margin-bottom: 28px; }

    /* Success Card mobile alignment */
    .submission-success-card { padding: 40px 24px; text-align: center; border-radius: 16px; }

    /* Service panels — comfortable padding on mobile */
    .panel-info-side { padding: 28px 22px; }
    .panel-image-container { min-height: 200px; }
    .panel-image-overlay { padding: 20px; }
    .panel-info-side h3 { font-size: 22px; }

    /* Hero ticker badge must not overflow narrow screens */
    .experience-ticker-badge { max-width: 100%; }
    .ticker-text-slider { width: clamp(180px, 62vw, 320px); }

    /* Footer (mobile only): logo centered on top, address beneath it,
       then social / legal / copyright — all centered and stacked. */
    .footer-grid-wrap { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
    .footer-left-alignment-cluster { flex-direction: column; align-items: center; text-align: center; gap: 16px; width: 100%; }
    .footer-meta-side { align-items: center; text-align: center; width: 100%; gap: 18px; }
    .footer-legal-links { flex-wrap: wrap; justify-content: center; gap: 12px 22px; }

    /* Reach region rows wrap cleanly */
    .reach-region-line { flex-wrap: wrap; gap: 4px; }
}

/* ==========================================================================
   SMALL PHONES (<= 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .container { padding: 0 16px; }

    /* Headings scale down so they never overflow */
    .hero-content h1 { font-size: 27px; line-height: 1.2; }
    .hero-lead { font-size: 14.5px; }
    .hero-meta-tag { font-size: 10px; letter-spacing: 1px; padding: 5px 11px; }
    .section-center-header h2,
    .about-text h2,
    .terminal-info-card h2,
    .careers-hero-header h1 { font-size: 24px; line-height: 1.25; }
    .refined-subtext, .careers-hero-lead { font-size: 15px; }

    /* Hero orbit fits small viewports */
    .hero-visual { min-height: 240px; }
    .hero-orbit-frame { width: 220px; height: 220px; }
    .orbit-core { width: 104px; height: 104px; animation: none !important; }
    .orbit-core-label { font-size: 26px; }
    .orbit-node { width: 52px; height: 52px; margin: -26px 0 0 -26px; font-size: 12px; }

    /* Keep 3 columns horizontal even on small mobile to fulfill horizontal view request */
    .metric-trio-grid { grid-template-columns: repeat(3, 1fr); }

    /* Section vertical rhythm */
    .about-section, .matrix-section, .reach-section, .contact-terminal-section { padding: 48px 0; }
    .hero-showcase { padding: 44px 0; }

    /* Cards / forms */
    .reach-card, .location-card { padding: 22px 18px; }
    .terminal-form-card { padding: 16px; }
    .panel-info-side { padding: 22px 16px; }
    .careers-content-card { padding: 32px 22px; }

    /* Footer */
    .footer-logo-img, .brand-logo-img { height: 57px; }

    /* Regulator chips a touch smaller */
    .reg-chip { font-size: 12.5px; padding: 7px 14px; }
}

/* ==========================================================================
   HEADER TAGLINE — centered crest between logo and navigation
   ========================================================================== */
.header-tagline {
    order: 2;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    /* a slim gold rule under the crest for a polished, professional finish */
    position: relative;
    padding-bottom: 8px;
    min-width: 0;
}
.header-tagline::after {
    content: '';
    width: 54px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.tagline-blue,
.tagline-gold {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.tagline-blue { color: var(--accent-blue); }
.tagline-gold { color: var(--gold); }

/* Tablet — keep the crest on its own centered row so nothing crowds */
@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 15px 20px;
    }
    .compliance-logo-wrapper {
        order: 1;
    }
    .header-tagline {
        order: 2;
        flex: 0 0 auto;
        margin: 0;
        width: 100%;
    }
    .main-navigation {
        order: 3;
        width: 100%;
    }
    .main-navigation > ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px 24px;
    }
    .tagline-blue, .tagline-gold { font-size: 16px; letter-spacing: 1.4px; }
}

/* Phones — keep the crest INLINE between the logo and the hamburger
   (single row), centered, instead of wrapping to its own line below. */
@media (max-width: 768px) {
    .header-container { 
        flex-direction: row;
        flex-wrap: nowrap; 
        justify-content: space-between;
        align-items: center;
        gap: 8px; 
    }
    .header-logo-img, .brand-logo-img { height: 51px; }
    .header-tagline {
        order: 2;
        flex: 1 1 auto;
        min-width: 0;
        margin-top: 0;
        padding-bottom: 0;
        text-align: center;
    }
    .header-tagline::after { display: none; } /* drop underline to save vertical room */
    .nav-toggle { order: 3; }
    .tagline-blue, .tagline-gold {
        display: block;
        font-size: 11px;
        letter-spacing: 0.4px;
        white-space: nowrap;
    }
}

/* Very small phones — shrink the crest further so it still fits between
   the logo and the menu button. */
@media (max-width: 400px) {
    .header-logo-img, .brand-logo-img { height: 47px; }
    .tagline-blue, .tagline-gold { font-size: 9.5px; letter-spacing: 0.2px; }
}

/* ==========================================================================
   PORTAL / DASHBOARD PAGES — shared layout helpers (login, dashboard, admin)
   ========================================================================== */
.portal-page {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 64px;
    padding-bottom: 64px;
}
.dashboard-head {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}
.dashboard-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 768px) {
    .dashboard-head { align-items: flex-start; }
    .dashboard-actions { width: 100%; }
}