/* Font Face Declarations */
@font-face {
    font-family: 'High Cruiser';
    src: url('fonts/High-Cruiser-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Modern CSS Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-black: #000000;
    --secondary-black: #0a0a0a;
    --accent-black: #111111;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    /* Accent Colors */
    --accent-gray: #6b7280;
    --accent-gray-hover: #4b5563;
    --accent-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    --gradient-secondary: linear-gradient(135deg, #9ca3af 0%, #d1d5db 100%);
    --gradient-accent: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);

    /* Typography */
    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'High Cruiser', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Cascadia Code', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Animations */
    --transition-fast: 150ms ease-out;
    --transition-normal: 300ms ease-out;
    --transition-slow: 500ms ease-out;
    /* Buttons */
    --btn-height: 44px;
    --btn-padding-x: 1rem;
    --btn-font-size: 1.05rem;
    /* Card/Modal sizing */
    --card-max-width: 560px;
    --card-padding: var(--space-lg);
    --card-gap: var(--space-lg);
    --avatar-size-lg: 96px;
    /* card avatar */
    --avatar-size-xl: 140px;
    /* modal avatar */
    --modal-max-width: 400px;
    --modal-padding: var(--space-lg);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--primary-black);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    top: 50%;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: var(--gradient-accent);
    bottom: -250px;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    padding: var(--space-4xl) 0 var(--space-3xl);
    text-align: center;
    position: relative;
    transition: padding 2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading state for logo animation */
.header.loading {
    padding: 50vh 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Full viewport height for proper centering */
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 0;
    border: none;
}

.main-logo {
    height: auto;
    width: 100%;
    max-width: 400px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    transition: all var(--transition-normal);
    transform-origin: center;
    animation: smallFadeInDown 3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Initial state for logo animation */
.main-logo.initial {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.3));
}

.main-logo.hover-enabled:hover {
    transform: translate(-50%, -50%) scale(1.05);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-4xl) 0;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: var(--space-5xl);
    position: relative;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
}

.hero .hero-content {
    position: relative;
    height: 100vh;
    justify-content: flex-start;
    min-height: 100vh;
}

.perks .hero-content {
    justify-content: flex-start;
    min-height: auto;
    padding-top: var(--space-4xl);
}

.learn-more-btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    background: var(--white);
    color: var(--primary-black);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: absolute;
    top: 66vh;
    left: 50%;
    transform: translateX(-50%);
}



/* Base button style shared across primary CTAs */
.btn-base,
.learn-more-btn,
.contact-btn,
.linkedin-button {
    font-family: var(--font-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--btn-height);
    padding: 0 var(--space-xl);
    background: var(--white);
    color: var(--primary-black);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--btn-font-size);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.btn-base:hover,
.learn-more-btn:hover,
.contact-btn:hover,
.linkedin-button:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Keep the Learn More button horizontally centered while applying the same hover lift
   as other buttons. We only adjust the translate so the existing translateX(-50%) used
   for centering the hero button is preserved. */
.learn-more-btn:hover {
    transform: translateX(-50%) translateY(-2px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: normal;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.title-line {
    display: block;
    opacity: 1;
    text-align: center;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line:nth-child(3) {
    animation-delay: 0.6s;
}

.highlight {
    color: var(--white);
    position: relative;
}


@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: var(--space-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Perks Section */
.perks {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.perks-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: normal;
    margin-bottom: var(--space-lg);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--white);
    margin: var(--space-lg) auto;
    border-radius: var(--radius-sm);
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.perk-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl) var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all var(--transition-normal);
}

.perk-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--white);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.perk-box:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-2xl);
}

.perk-box:hover::before {
    opacity: 1;
}

.perk-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    transition: all var(--transition-normal);
}

.perk-box:hover .perk-icon {
    transform: scale(1.1) rotate(5deg);
}

.perk-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: var(--space-md);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.perk-description {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.6;
}

/* Footer */
.footer {
    margin-top: 0;
    /*padding: var(--space-4xl) 0 var(--space-2xl);*/
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--white);
    opacity: 0.5;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
    gap: var(--space-2xl);
}

.footer-center {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-xl);
}

.footer-logo {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

.footer-tagline {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.linkedin-button {
    font-family: var(--font-primary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--accent-gray);
    color: var(--white);
    text-decoration: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.linkedin-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-normal);
}

.linkedin-button:hover::before {
    left: 100%;
}

.linkedin-button:hover {
    background: var(--accent-gray-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.linkedin-button svg {
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-sitemap {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 auto var(--space-lg);
    padding: 0 var(--space-xl);
}

.footer-sitemap a {
    font-family: var(--font-primary);
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-sitemap a:hover {
    color: var(--white);
    text-decoration: underline;
}

.partners-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: normal;
    color: var(--white);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.partners-text {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--gray-300);
    line-height: 1.5;
    max-width: 600px;
    margin: 0;
}

.footer-company-logo {
    height: 160px;
    width: auto;
    opacity: 1;
    transition: all var(--transition-normal);
}

.footer-company-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-text {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .perks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-lg);
    }

    .hero-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    .perks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

    .header {
        padding: var(--space-3xl) 0 var(--space-2xl);
    }

    .logo-container {
        height: 80vh;
        /* Reduce from 100vh for mobile */
    }

    .main-logo {
        height: auto;
        width: 100%;
        max-width: 300px;
        /* Add max-width for mobile */
        transform: translate(-50%, -50%) scale(1);
        /* Ensure centering is maintained */
    }

    /* Mobile animation adjustments */
    .main-logo.initial {
        transform: translate(-50%, -50%) scale(2);
        /* Reduce scale from 2.5 to 2 */
    }

    .main-logo.hover-enabled:hover {
        transform: translate(-50%, -50%) scale(1.05);
        /* Consistent hover for mobile */
    }

    .header.loading {
        padding: 40vh 0;
        min-height: 80vh;
    }

    .main-content {
        padding: var(--space-2xl) 0;
    }

    .hero {
        margin-bottom: var(--space-4xl);
    }


    .perks-title {
        font-size: clamp(1.2rem, 3.5vw, 1.8rem);
        padding: 0 var(--space-lg);
    }

    .perks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .perk-box {
        padding: var(--space-xl) var(--space-md);
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-center {
        flex-direction: column;
        gap: var(--space-md);
    }

    .partners-heading {
        font-size: 1.125rem;
        margin-bottom: var(--space-sm);
    }

    .partners-text {
        font-size: 0.8rem;
        padding: 0 var(--space-md);
    }

    .footer-logo {
        height: 40px;
        width: auto;
        max-width: 180px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
    }

    .footer-logos {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }
}

@media (max-width: 600px) {
    .logo-container {
        height: 70vh;
        /* Even smaller for phones */
    }

    .main-logo {
        max-width: 250px;
        /* Smaller max-width for phones */
        transform: translate(-50%, -50%);
        /* Ensure centering is maintained */
    }

    .main-logo.initial {
        transform: translate(-50%, -50%) scale(1.5);
        /* Even smaller scale for phones */
    }

    .footer-center {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .perks-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    /* Prevent perk boxes from touching the viewport edges on small phones */
    .perks {
        padding: 0 var(--space-md);
        box-sizing: border-box;
    }

    .perks-grid {
        padding: 0 var(--space-sm);
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .logo-container {
        height: 60vh;
        /* Compact height for small phones */
    }

    .main-logo {
        max-width: 200px;
        /* Small max-width for tiny screens */
        transform: translate(-50%, -50%);
        /* Ensure centering is maintained */
    }

    .main-logo.initial {
        transform: translate(-50%, -50%) scale(1.3);
        /* Minimal scale for small screens */
    }

    .hero-title {
        font-size: clamp(1.25rem, 3vw, 1.75rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 var(--space-xl);
    }

    .perks-title {
        font-size: clamp(1rem, 3vw, 1.5rem);
        padding: 0 var(--space-xl);
    }

    .perk-title {
        font-size: 1.25rem;
    }

    .perk-description {
        font-size: 0.875rem;
    }

    .footer-logo {
        height: 35px;
        width: auto;
        max-width: 150px;
    }

    .footer-center {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .footer-company-logo {
        height: 112px;
    }
}

/* Print styles */
@media print {

    .animated-bg,
    .gradient-orb {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .perk-box {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
    }

    .linkedin-button {
        background: var(--accent-blue);
        color: white;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.linkedin-button:focus {
    outline: 2px solid var(--accent-gray);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .perk-box {
        border-color: var(--white);
    }

    .footer-bottom {
        border-top-color: var(--white);
    }
}

/* Custom animation for smaller logo movement */
@keyframes smallFadeInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Contact Section Styles */
.contact-section {
    padding: var(--space-4xl) 0;
    text-align: center;
    /* Ensure Contact Us button is centered and vertically aligned */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
}

/* Hiring Banner Styles */
.hiring-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    color: var(--primary-black);
    z-index: 1000;
    padding: var(--space-sm) 0;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.hiring-banner-link {
    display: block;
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--transition-normal);
    padding: var(--space-sm) var(--space-lg);
    text-align: center; /* Ensure text is centered */
}

.hiring-banner-link:hover {
    color: var(--accent-gray);
    transform: scale(1.02);
}

.hiring-banner-link:focus {
    outline: 2px solid var(--accent-gray);
    outline-offset: 2px;
}

/* Adjust body padding to account for fixed banner */
body {
    padding-top: 60px;
}

.contact-section .contact-btn {
    margin: 0;
    display: inline-flex;
    /* ensure alignment matches other buttons */
    align-items: center;
    justify-content: center;
    width: 160px; /* Fixed width to match LinkedIn button */
}

.contact-section .linkedin-button {
    width: 160px; /* Fixed width to match Contact button */
}

.contact-section .learn-more-btn {
    width: 160px; /* Fixed width to match other buttons */
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--btn-height);
    padding: var(--space-md) var(--space-xl);
    font-size: 1.05rem;
    color: var(--primary-black);
    background: var(--white);
    border-radius: var(--radius-lg);
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.contact-btn:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-btn:focus {
    outline: 2px solid var(--accent-gray);
    outline-offset: 2px;
}

/* Mobile responsive for contact button */
@media (max-width: 768px) {
    .contact-btn {
        padding: var(--space-md) var(--space-xl);
        font-size: var(--text-base);
    }

    .hiring-tab {
        font-size: 0.95rem;
        padding: 0 var(--space-lg);
    }
}

@media (max-width: 480px) {
    .hiring-tab {
        font-size: 0.875rem;
        padding: 0 var(--space-md);
        letter-spacing: 0.03em;
    }
}

/* Contacts Page */
.contacts-page {
    background: var(--primary-black);
}

.contacts-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl) var(--space-xl);
    text-align: center;
}

.contacts-logo {
    width: min(66vw, 420px);
    height: auto;
    display: block;
    margin: 0 auto var(--space-lg);
}

.contacts-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: normal;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contacts-subtitle {
    font-family: var(--font-primary);
    color: var(--gray-400);
    margin-top: var(--space-sm);
}

.contacts-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-xl) var(--space-4xl);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl);
}

@media (max-width: 820px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--card-padding);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: var(--card-gap);
    align-items: flex-start;
    /* top-align the photo and text */
    position: relative;
    /* for absolute-positioned actions */
}

.contact-photo {
    width: var(--avatar-size-lg);
    height: var(--avatar-size-lg);
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: #111;
}

.contact-content {
    flex: 1;
}

.contact-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-role {
    font-family: var(--font-primary);
    color: var(--gray-400);
    margin-top: var(--space-xs);
}

.contact-actions {
    /* position actions in the lower-right corner */
    position: absolute;
    right: var(--space-lg);
    bottom: var(--space-lg);
    display: flex;
    gap: var(--space-md);
}

/* Make the More info button smaller when positioned to the right */
.contact-actions .contact-btn {
    /* slightly smaller visual for in-card buttons */
    height: calc(var(--btn-height) - 8px);
    padding: 0 var(--space-md);
    font-size: 0.95rem;
    border-radius: var(--radius-md);
}

/* Role lines - stacked */
.contact-role {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: var(--space-xs);
}

.contact-role-main {
    font-family: var(--font-primary);
    font-weight: 600;
}

.contact-role-sub {
    font-family: var(--font-primary);
    color: var(--gray-400);
    font-size: 0.95rem;
}

/* Stacked/mobile layout: center the button below the card */
@media (max-width: 820px) {
    .contact-card {
        align-items: center;
        /* center items when stacked */
        flex-direction: column;
        /* Remove left/right inner spacing on stacked cards and tighten vertical rhythm */
        padding: var(--space-sm) 0 var(--space-md);
        gap: var(--space-sm);
        text-align: center;
        /* Center cards and limit their width on small screens */
        width: 100%;
        max-width: 30vh;
        margin: 0 auto;
    }

    .contact-actions {
        position: static;
        margin-left: 0;
        margin-top: var(--space-md);
        justify-content: center;
        width: 100%;
    }

    .contact-actions .contact-btn {
        width: 160px;
    }

    /* Ensure the content area spans available width so text doesn't leave large side gutters */
    .contact-content {
        width: 100%;
        text-align: center;
        padding: 0 var(--space-sm);
    }

    /* Center the avatar above content and remove any implicit margins */
    .contact-photo {
        margin: 0 auto;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .contact-card {
        /* remove left/right padding so the card content touches edges on very small screens */
        padding: var(--space-md) 0;
        gap: var(--space-sm);
    }

    .contact-photo {
        /* bigger, more prominent avatar on phones */
        width: 112px;
        height: 112px;
    }

    .contact-name {
        font-size: 1.05rem;
    }

    .contact-role-sub {
        font-size: 0.95rem;
    }

    .contact-actions .contact-btn {
        width: 140px;
        padding: var(--space-sm) var(--space-md);
    }
}

.link-secondary {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
}

.link-secondary:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Pure CSS Modals via :target */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    z-index: 1000;
}

.modal:target {
    display: flex;
}

/* Mobile: ensure modals are properly centered */
@media (max-width: 650px) {
    .modal {
        padding: 0;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        margin: 0 var(--space-sm);
        padding: var(--space-md);
        width: 90%; /* More conservative for mobile screens */
        max-width: none; /* Remove max-width constraint */
    }
}

/* Comprehensive mobile optimization for phones */
@media (max-width: 480px) {
    .modal-content {
        width: 88%; /* More conservative width for very small screens */
        margin: 0 var(--space-xs);
        padding: var(--space-sm);
    }
    
    .modal-body {
        padding: var(--space-md);
        gap: var(--space-sm);
    }
    
    .modal-photo {
        width: 120px; /* Slightly smaller avatar on very small screens */
        height: 120px;
    }
    
    .modal-name {
        font-size: 1.25rem; /* Slightly smaller heading */
    }
    
    .modal-actions .contact-btn {
        min-width: 160px; /* Ensure button is touch-friendly */
        height: 48px; /* Larger touch target */
        font-size: 1rem;
    }
    
    .icon-btn {
        width: 48px; /* Larger touch targets for icon buttons */
        height: 48px;
        margin: var(--space-xs); /* Add spacing between buttons */
    }
    
    .action-buttons {
        flex-wrap: wrap; /* Allow buttons to wrap on very small screens */
        justify-content: center;
        gap: var(--space-sm);
    }
    
    .modal-close {
        width: 44px; /* Ensure close button is touch-friendly */
        height: 44px;
        top: 8px;
        right: 8px;
    }
    
    .action-buttons {
        flex-wrap: wrap; /* Allow buttons to wrap on very small screens */
        justify-content: center;
        gap: var(--space-sm);
    }
}

.modal-content {
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    /* More compact modal width: prefer content size but cap at 80% and 760px */
    width: clamp(360px, 50%, var(--modal-max-width));
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    /* above backdrop */
}

.modal-body {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: var(--space-xl);
    padding: var(--space-2xl);
}

@media (max-width: 640px) {
    .modal-body {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* Modal: stack content vertically with centered avatar */
.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--space-sm));
    padding: var(--modal-padding);
    max-width: 400px;
    margin: 0 auto;
}

.modal-photo {
    width: var(--avatar-size-xl);
    height: var(--avatar-size-xl);
    border-radius: 999px;
    /* perfectly round */
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.12);
    background: #111;
    box-shadow: var(--shadow-md);
}

.modal-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    align-items: center;
}

.modal-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}

.modal-role-main {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--white);
}

.modal-role-sub {
    font-family: var(--font-primary);
    color: var(--gray-400);
}

.modal-list {
    font-family: var(--font-primary);
    margin-top: var(--space-md);
    display: grid;
    gap: var(--space-xs);
    color: var(--gray-300);
}


.modal-actions {
    padding: var(--space-sm) 0 var(--space-md);
    display: flex;
    justify-content: center;
}

.action-buttons {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--btn-height);
    height: var(--btn-height);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    transition: all var(--transition-normal);
    text-decoration: none;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Place icon actions inline below modal text */
.modal-text .action-buttons {
    margin-top: var(--space-md);
}

/* Responsive buttons */
@media (max-width: 640px) {
    .contact-card .contact-actions {
        display: grid;
    }

    .contact-card .contact-btn {
        width: 100%;
        justify-content: center;
    }

    /* Save contact button should size to content and be centered */
    .modal-actions .contact-btn {
        width: auto;
        min-width: 140px;
        max-width: 90%;
        display: inline-flex;
        height: var(--btn-height);
        padding: 0 var(--space-lg);
        align-items: center;
        justify-content: center;
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 1.25rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Optional overlay anchor to close when clicking outside (link to #) */
.modal-overlay {
    display: none;
}

/* Backdrop link that closes the modal when clicked */
.modal-backdrop {
    position: absolute;
    inset: 0;
    display: block;
    background: transparent;
    /* visual handled by .modal */
}

@media (max-width: 480px) {
    .contact-btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--text-sm);
        width: 100%;
        max-width: 280px;
    }
}

/* Mobile: ensure the Contact Us button is centered and any empty action holder doesn't take space */
@media (max-width: 640px) {
    .contact-section {
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-md) 0;
    }

    .contact-section .contact-actions {
        display: none;
        /* empty element shouldn't affect layout on mobile */
    }

    .contact-section .contact-btn {
        width: auto;
        min-width: 160px;
        max-width: 90%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }
}

/* Hiring Page Styles */
.hiring-page {
    background: var(--primary-black);
}

.hiring-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl) var(--space-xl);
    text-align: center;
}

.hiring-logo {
    width: min(66vw, 420px);
    height: auto;
    display: block;
    margin: 0 auto var(--space-lg);
}

.hiring-subtitle {
    color: var(--gray-400);
    margin-top: var(--space-sm);
    font-size: 1.125rem;
}

.hiring-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl) var(--space-4xl);
}

.hiring-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.hiring-section {
    padding: 0;
    margin: 0;
}

.hiring-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: normal;
    text-align: center;
    margin-bottom: var(--space-3xl);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: normal;
    margin-bottom: var(--space-xl);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.2;
}

.section-description {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--white);
    margin-bottom: var(--space-xl);
    max-width: 800px;
}

.subsection-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: normal;
    margin: var(--space-2xl) 0 var(--space-lg);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.3;
}

.quote-section {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--white);
    padding: var(--space-2xl);
    margin: var(--space-2xl) 0;
    border-radius: var(--radius-lg);
    max-width: 800px;
}

.quote-text {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--white);
    font-style: italic;
    margin-bottom: var(--space-lg);
}

.quote-author {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    color: var(--gray-400);
    font-style: normal;
    font-weight: 600;
}

.offerings-list,
.features-list,
.use-cases-list,
.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 800px;
}

.offerings-list li,
.features-list li,
.use-cases-list li,
.requirements-list li {
    font-family: var(--font-primary);
    position: relative;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--white);
}

.offerings-list li::before,
.features-list li::before,
.use-cases-list li::before,
.requirements-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
}

.work-tracks-list {
    list-style: none;
    padding: 0;
    margin: var(--space-2xl) 0;
    max-width: 800px;
}

.work-tracks-list li {
    font-family: var(--font-primary);
    position: relative;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--white);
}

.work-tracks-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
}

.email-link {
    font-family: var(--font-primary);
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    text-underline-offset: 2px;
    transition: all var(--transition-normal);
}

.email-link:hover {
    color: var(--gray-300);
    text-decoration-color: var(--white);
}

.hiring-footer {
    margin-top: var(--space-5xl);
    padding: var(--space-3xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Responsive Design for Hiring Page */
@media (max-width: 768px) {
    .hiring-main {
        padding: 0 var(--space-lg) var(--space-3xl);
    }

    .hiring-content {
        gap: var(--space-4xl);
    }

    .hiring-title {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: var(--space-2xl);
    }

    .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: var(--space-lg);
    }

    .section-description {
        font-size: 1.125rem;
        margin-bottom: var(--space-lg);
    }

    .subsection-title {
        font-size: 1.25rem;
        margin: var(--space-xl) 0 var(--space-md);
    }

    .quote-section {
        padding: var(--space-xl);
        margin: var(--space-xl) 0;
    }

    .quote-text {
        font-size: 1.125rem;
    }

    .work-tracks-list li {
        font-size: 1rem;
        margin-bottom: var(--space-md);
    }

    .offerings-list li,
    .features-list li,
    .use-cases-list li,
    .requirements-list li {
        font-size: 1rem;
        margin-bottom: var(--space-md);
    }
}

@media (max-width: 480px) {
    .hiring-main {
        padding: 0 var(--space-md) var(--space-2xl);
    }

    .hiring-content {
        gap: var(--space-3xl);
    }

    .hiring-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
        margin-bottom: var(--space-xl);
    }

    .section-title {
        font-size: clamp(1.25rem, 3vw, 1.75rem);
        margin-bottom: var(--space-md);
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: var(--space-md);
    }

    .subsection-title {
        font-size: 1.125rem;
        margin: var(--space-lg) 0 var(--space-sm);
    }

    .quote-section {
        padding: var(--space-lg);
        margin: var(--space-lg) 0;
    }

    .quote-text {
        font-size: 1rem;
    }

    .work-tracks-list li {
        font-size: 0.95rem;
        margin-bottom: var(--space-sm);
        padding-left: var(--space-lg);
    }

    .offerings-list li,
    .features-list li,
    .use-cases-list li,
    .requirements-list li {
        padding-left: var(--space-lg);
        font-size: 0.95rem;
        margin-bottom: var(--space-sm);
    }
}