/* =========================================================
   1. VARIABLES AND BASE WRAPPER
   ========================================================= */

.crew-page {
    background: #fafaf7;
    color: #1d1d1f;
}

/* =========================================================
   2. DYNAMIC HERO SECTION & SINGLE-LINE TYPEWRITER
   ========================================================= */

.crew-hero-section {
    padding: 110px 0 120px;
    background: #000000;
    color: #ffffff;
}

.crew-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 70px;
    align-items: center;
}

.crew-hub-badge {
    display: inline-block;
    color: #cfff04;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.crew-typewriter-heading {
    margin: 0 0 28px;
    color: #ffffff;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.crew-heading-prefix,
.crew-heading-suffix {
    display: block;
    color: #ffffff;
}

.crew-dynamic-line {
    display: block;
    white-space: nowrap;
    overflow: visible;
}

.crew-dynamic-text {
    color: #cfff04;
    border-right: 3px solid #cfff04;
    padding-right: 4px;
    animation: cursor-blink 0.8s step-end infinite;
}

@keyframes cursor-blink {
    from, to { border-color: transparent; }
    50% { border-color: #cfff04; }
}

.crew-hero-lead {
    max-width: 620px;
    margin-bottom: 35px;
    color: #c9cccd;
    font-size: 1.12rem;
    line-height: 1.68;
}

.crew-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    padding: 16px 28px;
    border-radius: 8px;
    background: #cfff04;
    color: #000000;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary-action:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary-action {
    display: inline-flex;
    align-items: center;
    padding: 16px 28px;
    border: 2px solid #333333;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-secondary-action:hover {
    border-color: #cfff04;
    color: #cfff04;
}

.crew-hero-media {
    position: relative;
    width: 100%;
}

.crew-media-frame {
    position: relative;
    width: 100%;
    min-height: 440px;
    border-radius: 20px;
    overflow: hidden;
    background: #111111;
    border: 1px solid #222222;
}

.crew-media-card {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.crew-media-card.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.crew-media-card svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* =========================================================
   3. INVITATION & FILTERABLE ROLES SECTION
   ========================================================= */

.crew-openings-section {
    padding: 110px 0 120px;
    background: #fafaf7;
}

.crew-invite-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 70px;
    align-items: start;
    margin-bottom: 60px;
}

.crew-invite-left h2 {
    font-size: clamp(2.4rem, 4.2vw, 3.8rem);
    line-height: 1.08;
    color: #000000;
    margin: 0;
}

.crew-invite-right .lead {
    font-size: 1.15rem;
    color: #4f5961;
    line-height: 1.65;
    margin-bottom: 24px;
}

.crew-pill-group-label {
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4f5961;
    margin-bottom: 14px;
}

.crew-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.crew-pill-btn {
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid #d2d2d7;
    background: #ffffff;
    color: #1d1d1f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crew-pill-btn.is-active,
.crew-pill-btn:hover {
    background: #000000;
    border-color: #000000;
    color: #cfff04;
}

.crew-departments-grid {
    display: grid;
    gap: 28px;
}

.crew-dept-row {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 50px;
    padding: 48px;
    background: #ffffff;
    border: 1px solid #e5e5e7;
    border-radius: 20px;
    align-items: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.03);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.crew-dept-info h3 {
    font-size: 1.85rem;
    margin-bottom: 12px;
    color: #000000;
}

.crew-dept-info p {
    color: #555555;
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 22px;
}

.crew-dept-link {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    background: #111111;
    color: #ffffff;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}

.crew-dept-link:hover {
    background: #cfff04;
    color: #000000;
}

.crew-dept-jobs {
    display: grid;
    gap: 16px;
}

.crew-job-card {
    padding: 22px 26px;
    background: #f7f7f3;
    border: 1px solid #e7e7e2;
    border-radius: 12px;
}

.crew-job-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.crew-job-header h4 {
    font-size: 1.18rem;
    color: #000000;
    margin: 0;
}

.crew-job-badge {
    padding: 4px 10px;
    border-radius: 4px;
    background: #000000;
    color: #cfff04;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.crew-job-card p {
    color: #555558;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.crew-job-apply-link {
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 900;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
}

.crew-job-apply-link:hover {
    color: #4f5961;
}

.crew-empty-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px;
    border: 2px dashed #d2d2d7;
    border-radius: 12px;
    background: #fafaf7;
}

.crew-empty-cross {
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 1.6rem;
    color: #86868b;
    line-height: 1;
}

.crew-empty-box p {
    margin: 0;
    color: #86868b;
    font-weight: 700;
    font-size: 1.02rem;
}

/* =========================================================
   4. HIRING PROCESS (VERTICAL ACCORDION)
   ========================================================= */

.crew-process-section {
    padding: 110px 0 120px;
    background: #000000;
    color: #ffffff;
}

.crew-process-header {
    margin-bottom: 45px;
}

.crew-process-header h2 {
    font-size: clamp(2.4rem, 4.5vw, 4.2rem);
    color: #ffffff;
    margin-top: 10px;
}

.crew-vertical-accordion {
    display: flex;
    height: 380px;
    gap: 12px;
    width: 100%;
}

.crew-acc-panel {
    position: relative;
    flex: 0 0 75px;
    background: #141414;
    border: 1px solid #282828;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.4s cubic-bezier(0.2, 0, 0, 1), background 0.3s ease;
}

.crew-acc-panel.is-open {
    flex: 1 1 500px;
    background: #1a1a1a;
    border-color: #383838;
}

.crew-acc-trigger {
    position: absolute;
    top: 0;
    left: 0;
    width: 75px;
    height: 100%;
    background: transparent;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    color: #ffffff;
    cursor: pointer;
    z-index: 2;
}

.crew-acc-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.crew-acc-panel.is-open .crew-acc-title {
    color: #cfff04;
}

.crew-acc-icon {
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 1.5rem;
    color: #cfff04;
    line-height: 1;
}

.crew-acc-drawer {
    position: absolute;
    top: 0;
    left: 75px;
    right: 0;
    bottom: 0;
    padding: 45px 50px 45px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
    pointer-events: none;
}

.crew-acc-panel.is-open .crew-acc-drawer {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.crew-acc-drawer h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.crew-acc-drawer p {
    color: #c9cccd;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 580px;
    margin: 0;
}

/* =========================================================
   5. COMPACT OVERLAY BENEFITS SLIDER
   ========================================================= */

.crew-benefits-section {
    padding: 110px 0 120px;
    background: #e7e7e2;
}

.crew-benefits-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 40px;
    align-items: stretch;
}

.crew-benefits-nav-card {
    height: 520px;
    padding: 40px 44px;
    background: #ffffff;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 24px rgba(0,0,0,0.03);
}

.crew-benefits-nav-card h2 {
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    color: #000000;
    line-height: 1.08;
    margin: 0 0 20px 0;
}

.crew-benefit-tabs {
    display: grid;
    gap: 8px;
}

.crew-benefit-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: #f7f7f3;
    color: #1d1d1f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crew-tab-arrow {
    font-size: 1.1rem;
    color: #86868b;
    transition: transform 0.2s ease, color 0.2s ease;
}

.crew-benefit-tab:hover {
    background: #000000;
    color: #ffffff;
}

.crew-benefit-tab.is-active {
    background: #000000;
    color: #ffffff;
}

.crew-benefit-tab.is-active .crew-tab-arrow {
    color: #cfff04;
    transform: translate(2px, -2px);
}

.crew-benefit-display-card {
    position: relative;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
    background: #111111;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.crew-benefit-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.crew-benefit-backdrop.slide-out {
    transform: translateX(100%);
    opacity: 0;
}

.crew-benefit-backdrop.slide-in-prep {
    transform: translateX(-100%);
    opacity: 0;
}

.crew-benefit-backdrop.slide-in {
    transform: translateX(0);
    opacity: 1;
}

.benefit-backdrop-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.crew-benefit-overlay-pane {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 50px 48px;
    background: linear-gradient(180deg, rgba(17,17,17,0.35) 0%, rgba(17,17,17,0.92) 55%, #111111 100%);
}

.crew-benefit-overlay-pane h3 {
    font-size: clamp(1.4rem, 2.1vw, 1.9rem);
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 14px;
}

.crew-benefit-overlay-pane p {
    font-size: 1rem;
    color: #d2d2d7;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 520px;
}

.btn-brewarchy-cta {
    display: inline-block;
    align-self: flex-start;
    padding: 12px 24px;
    border-radius: 30px;
    background: #000000;
    border: 1px solid #333333;
    color: #cfff04;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-brewarchy-cta:hover {
    background: #cfff04;
    border-color: #cfff04;
    color: #000000;
}

/* =========================================================
   6. TALENT INTAKE SECTION & CARD
   ========================================================= */

.crew-apply-section {
    padding: 110px 0 120px;
    background: #ffffff;
}

.crew-page .detail-intake-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 50px;
    padding: 50px;
    border: 2px solid #000000;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    scroll-margin-top: 175px;
    margin-bottom: 0;
}

/* =========================================================
   7. RESPONSIVE BREAKPOINTS
   ========================================================= */

@media (max-width: 1000px) {
    .crew-hero-grid,
    .crew-invite-header,
    .crew-dept-row,
    .crew-benefits-wrapper,
    .crew-page .detail-intake-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .crew-benefits-nav-card,
    .crew-benefit-display-card {
        height: auto;
        min-height: 480px;
    }

    .crew-vertical-accordion {
        flex-direction: column;
        height: auto;
    }

    .crew-acc-panel {
        flex: none;
        height: 80px;
    }

    .crew-acc-panel.is-open {
        flex: none;
        height: auto;
        min-height: 240px;
    }

    .crew-acc-trigger {
        position: relative;
        width: 100%;
        height: 80px;
        flex-direction: row;
        padding: 0 30px;
    }

    .crew-acc-title {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .crew-acc-drawer {
        position: relative;
        left: 0;
        top: 0;
        padding: 0 30px 35px;
    }
}

@media (max-width: 600px) {
    .crew-hero-section,
    .crew-openings-section,
    .crew-process-section,
    .crew-benefits-section,
    .crew-apply-section {
        padding: 60px 0;
    }

    .crew-dept-row,
    .crew-benefits-nav-card,
    .crew-benefit-display-card,
    .crew-page .detail-intake-card {
        padding: 30px 20px;
    }
}