:root {
    --navy-950: #081130;
    --navy-900: #0b1a3d;
    --navy-800: #122a5e;
    --navy-700: #1b3a78;
    --gold-500: #e2a53c;
    --gold-600: #c98a24;
    --cream-50: #f8f5ef;
    --cream-100: #f1ece1;
    --ink-900: #141c33;
    --slate-500: #5b6478;
    --acc-science: #e2a53c;
    --acc-ops: #2f7a6e;
    --acc-reg: #b5542c;
    --acc-people: #4a5aa8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--ink-900);
    background: var(--cream-50);
}

h1,
h2,
h3,
.font-display {
    font-family: 'Poppins', sans-serif;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: .75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-600);
}

.eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gold-500);
    transform: rotate(45deg);
    display: inline-block;
    flex-shrink: 0;
}

.eyebrow.on-dark {
    color: var(--gold-500);
}

.capsule {
    position: relative;
    width: 34px;
    height: 16px;
    border-radius: 9999px;
    overflow: hidden;
    display: inline-flex;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(8, 17, 48, .25);
}

.capsule span {
    flex: 1;
}

.capsule .half-a {
    background: var(--gold-500);
}

.capsule .half-b {
    background: var(--navy-900);
}

.capsule-lg {
    width: 46px;
    height: 20px;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.grain {
    background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 22px 22px;
}

.btn-gold {
    background: var(--gold-500);
    color: var(--navy-950);
    font-weight: 600;
    transition: transform .2s ease, background .2s ease;
}

.btn-gold:hover {
    background: var(--gold-600);
    transform: translateY(-2px);
}

.card-hover {
    transition: transform .3s ease, box-shadow .3s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -20px rgba(11, 26, 61, .35);
}

/* department filter pills */
.dept-pill {
    font-family: 'Inter', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    padding: .5rem 1.1rem;
    border-radius: 9999px;
    border: 1px solid rgba(20, 28, 51, .15);
    color: var(--slate-500);
    background: transparent;
    cursor: pointer;
    transition: all .25s ease;
    white-space: nowrap;
}

.dept-pill[data-active="true"] {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: #fff;
}

.dept-pill:hover {
    border-color: var(--navy-900);
    color: var(--navy-900);
}

.dept-pill[data-active="true"]:hover {
    color: #fff;
}

/* job card */
.job-card {
    border: 1px solid rgba(20, 28, 51, .1);
    border-radius: 1rem;
    background: #fff;
    transition: opacity .35s ease, transform .35s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}

.job-card.is-hidden {
    display: none;
}

.job-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--bar-color, var(--gold-500));
    opacity: 0;
    transition: opacity .3s ease;
}

.job-card:hover::before {
    opacity: 1;
}

.job-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .28rem .65rem;
    border-radius: 9999px;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #fff;
}

.apply-btn {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}

/* ===== APPLICATION MODAL ===== */
#apply-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}

#apply-modal.is-open {
    display: block;
}

#apply-modal .overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 11, 28, .72);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .3s ease;
}

#apply-modal.is-open .overlay {
    opacity: 1;
}

#apply-modal .sheet {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    padding: 2.5rem 1rem;
}

#apply-modal .panel {
    width: 100%;
    max-width: 920px;
    background: var(--navy-900);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5);
    transform: translateY(24px) scale(.98);
    opacity: 0;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
    margin: auto;
}

#apply-modal.is-open .panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#apply-modal .panel-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media(min-width:900px) {
    #apply-modal .panel-grid {
        grid-template-columns: 280px 1fr;
    }
}

.side-brief {
    background: var(--navy-950);
    padding: 2.25rem 2rem;
    position: relative;
}

.side-brief::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, .08);
    display: none;
}

@media(min-width:900px) {
    .side-brief::after {
        display: block;
    }
}

.step-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .85rem 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.step-item:first-of-type {
    border-top: none;
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 9999px;
    background: rgba(226, 165, 60, .15);
    color: var(--gold-500);
    font-size: .7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.field label {
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .6);
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-bottom: .4rem;
    display: block;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: .6rem;
    padding: .75rem .9rem;
    color: #fff;
    font-size: .9rem;
    transition: border-color .2s ease, background .2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(255, 255, 255, .35);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    background: rgba(255, 255, 255, .1);
}

.field select option {
    background: var(--navy-900);
    color: #fff;
}

.field input:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.file-drop {
    border: 1.5px dashed rgba(255, 255, 255, .25);
    border-radius: .6rem;
    padding: 1.1rem .9rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
    position: relative;
}

.file-drop:hover,
.file-drop.drag {
    border-color: var(--gold-500);
    background: rgba(226, 165, 60, .06);
}

.file-drop input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.modal-close {
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, .16);
    transform: rotate(90deg);
}

.checkbox-row {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
}

.checkbox-row input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--gold-500);
    flex-shrink: 0;
}

#apply-modal .success-view {
    display: none;
}

#apply-modal.is-success .form-view {
    display: none;
}

#apply-modal.is-success .success-view {
    display: flex;
}

.check-ring {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background: rgba(47, 122, 110, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.check-ring svg {
    width: 30px;
    height: 30px;
    stroke: var(--acc-ops);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
    border-radius: 9999px;
}
