/* experience.css — The PM-years dark card, the education grid, and the 3D orbit of
   former company logos.

   Extracted from the old components.css. LOAD ORDER MATTERS: these files were
   cut as contiguous slices of one stylesheet, so they must stay linked in this
   order or the cascade changes:
     timeline -> testimonials -> contact -> track-record -> contact-dark -> chrome -> experience -> dark-theme
*/

/* The PM years: one dark card, deliberately unlike the project cards */
.pm-card {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    padding: clamp(1.5rem, 3.5vw, 3.5rem);
    margin-top: var(--space-md);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.pm-card-head {
    display: flex;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.pm-card-intro {
    flex: 1 1 320px;
    min-width: 0;
}

.pm-kicker {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-accent-light);
    margin: 0 0 12px;
}

.pm-title {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 16px;
}

.pm-links a {
    color: var(--color-accent-light);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.pm-links a:hover {
    text-decoration: underline;
}

.pm-companies {
    flex: 1 1 340px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.pm-company {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    grid-template-areas:
        "logo name arrow"
        "logo role arrow";
    column-gap: 14px;
    align-items: center;
    text-align: left;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.pm-company:hover,
.pm-company:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.pm-company img {
    grid-area: logo;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.pm-company-name {
    grid-area: name;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.pm-company-role {
    grid-area: role;
    font-size: 0.78rem;
    opacity: 0.6;
}

.pm-company-arrow {
    grid-area: arrow;
    font-size: 1.1rem;
    opacity: 0.4;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.pm-company:hover .pm-company-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Testimonial marquee inside the dark card */
.pm-testimonials {
    margin: 0 calc(-1 * clamp(1.5rem, 3.5vw, 3.5rem));
    padding: 0 clamp(1.5rem, 3.5vw, 3.5rem);
}

.pm-card .testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.pm-card .testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.pm-card .testimonial-excerpt {
    color: rgba(255, 255, 255, 0.85);
}

.pm-card .testimonial-info h4 {
    color: #fff;
}

.pm-card .testimonial-info p {
    color: rgba(255, 255, 255, 0.55);
}

.pm-card .testimonials-ask {
    color: rgba(255, 255, 255, 0.5);
}

.pm-card .testimonials-ask a {
    color: var(--color-accent-light);
}

/* Education grid — compact credentials between the filters and the timeline */
.education-section {
    margin-top: var(--space-md);
    margin-bottom: var(--space-lg);
}

.education-heading {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.5;
    margin: 0 0 var(--space-sm);
    color: var(--color-text);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: var(--space-sm);
}

.education-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.education-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.education-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.education-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.education-credential {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    background: rgba(var(--color-accent-rgb), 0.08);
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    padding: 3px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.education-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: var(--color-text);
}

.education-org {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.7;
}

.education-period {
    font-size: 0.75rem;
    margin: 2px 0 0;
    opacity: 0.5;
}

/* Experience summary: a small lead line, a 3D orbit of former
   employers (tap to open the project modal), and a resume link.
   The full timeline lives on resume.html */
.experience-summary {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.credits-line {
    font-size: clamp(1.25rem, 2.6vw, 1.9rem);
    font-weight: 600;
    line-height: 1.8;
    color: var(--color-text);
    margin: var(--space-md) auto 0;
    max-width: 800px;
}

/* Inline logo chips inside the sentence, tap to open the case study */
.credit-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.14em 0.5em;
    margin: 0 0.08em;
    border-radius: 0.45em;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font: inherit;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    white-space: nowrap;
    vertical-align: baseline;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.credit-chip img {
    width: 1.1em;
    height: 1.1em;
    border-radius: 0.28em;
    object-fit: cover;
}

.credit-chip:hover,
.credit-chip:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(var(--color-accent-rgb), 0.45);
    box-shadow: 0 6px 16px rgba(var(--color-accent-rgb), 0.25);
}

.credits-links {
    margin-top: var(--space-md);
}

.credits-links a {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.credits-links a:hover {
    text-decoration: underline;
}
