/* Experience page: intro, career track (Gantt), boarding-pass role cards.
   No hover effects by design. */

.experience-intro h1 {
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.experience-intro p {
    font-size: 1.15rem;
    max-width: 720px;
}

/* ===== Career track (light) ===== */
.career-track {
    --row-h: 62px;
    --head-h: 40px;
    padding: 26px 30px 28px;
    background: white;
    color: var(--text-black);
    border: 3px solid var(--bg-black);
    border-radius: var(--radius-card);
    box-shadow: 8px 8px 0 var(--bg-black);
}

.track-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--bg-black);
}

.track-head h2 {
    font-size: 1.35rem;
    font-weight: 900;
    text-transform: uppercase;
}

.track-hint {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.6;
}

.track {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
}

/* ----- Row labels ----- */
.track-corner {
    height: var(--head-h);
}

.track-label {
    height: var(--row-h);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 18px;
    color: var(--text-black);
    text-decoration: none;
    border-top: 2px dashed rgba(0, 0, 0, 0.18);
}

.track-label img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
    padding: 3px;
    background: white;
    border: 2px solid var(--bg-black);
    border-radius: 10px;
}

.track-label div {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.track-label strong {
    font-size: 0.98rem;
    font-weight: 800;
}

.track-label span {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.65;
}

/* ----- Chart ----- */
.track-chart {
    position: relative;
    padding-top: var(--head-h);
    border-left: 3px solid var(--bg-black);
}

.track-bands {
    position: absolute;
    inset: 0;
}

.track-band {
    position: absolute;
    top: 0;
    bottom: 0;
    background: white;
}

.track-band.is-odd {
    background: #fff6c7;
}

.track-years {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--head-h);
}

.track-year {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
}

.track-year.is-narrow {
    visibility: hidden;
}

.track-lane {
    position: relative;
    height: var(--row-h);
    border-top: 2px dashed rgba(0, 0, 0, 0.18);
}

/* ----- Bars ----- */
.track-bar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 14px;
    border: 2px solid var(--bg-black);
    border-radius: 10px;
    color: var(--text-black);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 3px 3px 0 var(--bg-black);
    z-index: 1;
}

.track-bar strong {
    position: relative;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.1;
}

.track-bar span {
    position: relative;
    font-family: 'Space Mono', monospace;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* first company: white with a light hatch */
.track-bar.company-0 {
    background:
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.07) 0 2px, transparent 2px 9px),
        white;
}

/* second company: yellow */
.track-bar.company-1 {
    background: var(--bg-yellow);
}

.track-bar.company-2 {
    background: #ffe9a8;
}

/* an ongoing role ends in moving warning stripes */
.track-bar.is-current {
    padding-right: 46px;
}

.track-bar.is-current::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    border-left: 2px solid var(--bg-black);
    background: repeating-linear-gradient(45deg,
            var(--bg-black) 0 5px, var(--bg-yellow) 5px 10px);
    background-size: 14px 14px;
    animation: track-stripes 0.8s linear infinite;
}

@keyframes track-stripes {
    from { background-position: 0 0; }
    to { background-position: 14px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .track-bar.is-current::after {
        animation: none;
    }
}

/* ----- Today marker ----- */
.track-today {
    position: absolute;
    top: 8px;
    bottom: -6px;
    width: 0;
    border-left: 2px dashed var(--bg-black);
    z-index: 2;
    pointer-events: none;
}

.track-today span {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1px 9px;
    background: var(--bg-yellow);
    border: 2px solid var(--bg-black);
    border-radius: 999px;
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ===== Boarding-pass roles ===== */
.pass-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.exp-item {
    scroll-margin-top: 30px;
}

.pass {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    background: white;
    border: 3px solid var(--bg-black);
    border-radius: var(--radius-card);
    box-shadow: 8px 8px 0 var(--bg-black);
    overflow: hidden;
}

/* linked from another page (#exp-...) */
.exp-item.is-target .pass {
    outline: 4px solid var(--bg-black);
    outline-offset: 6px;
}

.pass-main {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pass-head {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 3px solid var(--bg-black);
}

.pass-logo {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    object-fit: contain;
    padding: 6px;
    border: 2px solid var(--bg-black);
    border-radius: 12px;
}

.pass-title {
    flex-grow: 1;
}

.pass-company {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pass-title h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.stamp {
    flex-shrink: 0;
    padding: 6px 14px;
    border: 3px solid var(--bg-black);
    border-radius: 8px;
    background: var(--bg-yellow);
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: rotate(-8deg);
    box-shadow: 3px 3px 0 var(--bg-black);
}

.pass-points {
    padding-left: 1.2em;
    display: flex;
    flex-direction: column;
    gap: 10px;
    line-height: 1.6;
}

/* ----- Project cards inside a role ----- */
.proj-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px 16px;
    border: 2px solid var(--bg-black);
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--bg-black);
}

.proj-now {
    background: var(--bg-yellow);
}

.proj-live {
    background: white;
}

.proj-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.proj-head h4 {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
}

.proj-card p {
    line-height: 1.6;
}

.proj-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px;
    border: 2px solid var(--bg-black);
    border-radius: 999px;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.proj-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
}

/* in progress: white tag on yellow, pulsing dot */
.tag-now {
    background: white;
}

.tag-now::before {
    animation: now-pulse 1.6s ease-in-out infinite;
}

/* live: yellow tag on white, steady dot */
.tag-live {
    background: var(--bg-yellow);
}

@keyframes now-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
    .tag-now::before {
        animation: none;
    }
}

.pass-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pass-section h3 {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.75;
}

/* ----- Stub ----- */
.pass-stub {
    position: relative;
    padding: 24px 22px;
    background: var(--bg-yellow);
    border-left: 3px dashed var(--bg-black);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* punched holes on the perforation */
.pass-stub::before,
.pass-stub::after {
    content: '';
    position: absolute;
    left: -15px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-yellow);
    border: 3px solid var(--bg-black);
}

.pass-stub::before {
    top: -16px;
}

.pass-stub::after {
    bottom: -16px;
}

.pass-stub span {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.pass-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pass-dates strong,
.pass-duration strong {
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pass-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 16px;
    border-top: 2px solid var(--bg-black);
}

.pass-stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    min-height: 92px;
    padding: 12px 12px 10px;
    background: white;
    border: 2px solid var(--bg-black);
    border-radius: 10px;
    box-shadow: 3px 3px 0 var(--bg-black);
}

/* an odd card out spans the full width */
.pass-stat:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    min-height: 0;
}

.pass-stat strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.pass-stat span {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
}

@media (max-width: 860px) {
    .pass {
        grid-template-columns: minmax(0, 1fr);
    }

    .pass-stub {
        border-left: none;
        border-top: 3px dashed var(--bg-black);
    }

    .pass-stub::before,
    .pass-stub::after {
        display: none;
    }

    .track {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .track-label img {
        display: none;
    }
}

/* ===== Interactive pipeline widget (Data Scientist stub) ===== */
.pipe {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 14px;
    background: white;
    border: 2px solid var(--bg-black);
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--bg-black);
}

.pipe-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.pipe-head > span,
.lat-head > span {
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pipe-run {
    padding: 3px 10px;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--bg-yellow);
    border: 2px solid var(--bg-black);
    border-radius: 999px;
    cursor: pointer;
}

.pipe-run:disabled {
    opacity: 0.5;
    cursor: default;
}

/* vertical stepper */
.pipe-steps {
    list-style: none;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 14px;
    padding-left: 30px;
}

.pipe-steps::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: repeating-linear-gradient(var(--bg-black) 0 4px, transparent 4px 8px);
}

.pipe-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    opacity: 0.35;
}

.pipe-steps li::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid var(--bg-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 900;
}

.pipe-steps b {
    font-size: 0.88rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pipe-steps small {
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
}

.pipe-steps li.is-active {
    opacity: 1;
}

.pipe-steps li.is-active::before {
    background: var(--bg-yellow);
    animation: step-pop 0.6s ease infinite alternate;
}

.pipe-steps li.is-done {
    opacity: 1;
}

.pipe-steps li.is-done::before {
    content: '\2713';
    background: var(--bg-black);
    color: var(--bg-yellow);
}

@keyframes step-pop {
    from { transform: scale(1); }
    to { transform: scale(1.25); }
}

/* latency toggle */
.lat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 2px dashed rgba(0, 0, 0, 0.25);
}

.lat-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lat-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
}

.lat-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.lat-track {
    position: relative;
    width: 38px;
    height: 20px;
    flex-shrink: 0;
    background: white;
    border: 2px solid var(--bg-black);
    border-radius: 999px;
    transition: background 0.25s ease;
}

.lat-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: var(--bg-black);
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.lat-switch input:checked + .lat-track {
    background: var(--bg-yellow);
}

.lat-switch input:checked + .lat-track::after {
    transform: translateX(18px);
}

.lat-switch input:focus-visible + .lat-track {
    outline: 3px solid var(--bg-black);
    outline-offset: 2px;
}

.lat-bar {
    height: 14px;
    background: #f3f4f6;
    border: 2px solid var(--bg-black);
    border-radius: 6px;
    overflow: hidden;
}

.lat-fill {
    height: 100%;
    width: 2.5%;
    background: repeating-linear-gradient(45deg, var(--bg-black) 0 4px, var(--bg-yellow) 4px 8px);
    transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.lat-read {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.lat-value {
    white-space: nowrap;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.lat-note {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: right;
}

@media (prefers-reduced-motion: reduce) {
    .pipe-steps li.is-active::before {
        animation: none;
    }

    .lat-fill {
        transition: none;
    }
}
