/* ========================
   ABOUT PAGE STYLES
======================== */

:root {
    --divider-light: #E0E2EA;
    --divider-dark:  #C3C6D3;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    background: #ffffff;
    color: #0a1833;
    -webkit-font-smoothing: antialiased;
    padding-top: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 9999;
    background: #0a1833;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    border-radius: 4px;
}
.skip-link:focus { left: 8px; }

/* ========================
   ABOUT HERO
======================== */
.about-hero {
    display: flex;
    width: 100%;
    height: clamp(400px, calc(100vh - 180px), 720px);
    gap: 0;
    margin-top: 0;
    background: #ffffff;
}

.about-hero__side {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    flex: 1;
}

.about-hero__image {
    position: absolute;
    bottom: 0;
    height: 100%;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.about-hero__image--default { opacity: 1; }
.about-hero__image--hover   { opacity: 0; pointer-events: none; }

.about-hero__side:hover .about-hero__image--default { opacity: 0; }
.about-hero__side:hover .about-hero__image--hover   { opacity: 1; pointer-events: auto; }

.about-hero__left .about-hero__image {
    right: 0;
    left: auto;
    justify-content: flex-end;
}
.about-hero__left .about-hero__image img {
    width: auto;
    height: clamp(300px, 80%, 600px);
    object-fit: contain;
    display: block;
}

.about-hero__right .about-hero__image {
    left: 0;
    right: auto;
    justify-content: flex-start;
}
.about-hero__right .about-hero__image img {
    width: auto;
    height: clamp(300px, 80%, 600px);
    object-fit: contain;
    display: block;
}

.about-tags {
    position: absolute;
    z-index: 10;
}

.about-hero__left:hover,
.about-hero__right:hover { background: #ffffff; }

/* Anchored to the centre-side edge of each half (right edge for left side,
   left edge for right side) so the distance-from-centre is what scales/caps */
.about-hero__left .about-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 42px;
    right: 55%;
    top: 50%;
    transform: translateY(-50%);
}

.about-hero__right .about-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 42px;
    left: 55%;
    top: 50%;
    transform: translateY(-50%);
}

/* Above 1280px, hold the tag columns at the distance-from-centre they had
   at 1280px instead of letting them drift further away as the screen widens */
@media (min-width: 1280px) {
    .about-hero__left .about-tags  { right: 352px; }
    .about-hero__right .about-tags { left: 352px; }
}

.about-tag {
    color: #0A1833;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.15px;
    white-space: nowrap;
    opacity: 0;
}

.about-hero__left .about-tag {
    transform: translate(30px, 0);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.about-hero__left:hover .about-tag { opacity: 1; transform: translate(0, 0); }
.about-hero__left .about-tag:nth-child(1) { transition-delay: 0ms; }
.about-hero__left .about-tag:nth-child(2) { transition-delay: 60ms; }
.about-hero__left .about-tag:nth-child(3) { transition-delay: 120ms; }
.about-hero__left .about-tag:nth-child(4) { transition-delay: 180ms; }
.about-hero__left .about-tag:nth-child(5) { transition-delay: 240ms; }

.about-hero__right .about-tag {
    transform: translate(-30px, 0);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.about-hero__right:hover .about-tag { opacity: 1; transform: translate(0, 0); }
.about-hero__right .about-tag:nth-child(1) { transition-delay: 0ms; }
.about-hero__right .about-tag:nth-child(2) { transition-delay: 60ms; }
.about-hero__right .about-tag:nth-child(3) { transition-delay: 120ms; }
.about-hero__right .about-tag:nth-child(4) { transition-delay: 180ms; }
.about-hero__right .about-tag:nth-child(5) { transition-delay: 240ms; }

/* ========================
   DESCRIPTION
======================== */
.about-description {
    width: 100%;
    padding: 120px max(154px, calc((100% - 872px) / 2));
    font-family: 'Satoshi', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: #0a1833;
    box-sizing: border-box;
}

.about-desc-p {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-desc-p.is-loaded { opacity: 1; transform: translateY(0); }

/* ========================
   PROFESSIONAL JOURNEY
======================== */
.journey-section {
    width: 100%;
    padding: 0 max(154px, calc((100% - 872px) / 2)) 120px;
    box-sizing: border-box;
}

.journey-heading {
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #0a1833;
    text-align: center;
    margin-bottom: 64px;
}

.journey-list {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.journey-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.journey-item.is-loaded { opacity: 1; transform: translateY(0); }

.journey-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.journey-logo {
    width: 96px;
    height: 96px;
    border-radius: 0;
    background: #dddddd;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.journey-logo img { width: 100%; height: 100%; object-fit: contain; }

.journey-logo--initials {
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #0a1833;
    letter-spacing: -0.5px;
}

.journey-info { display: flex; flex-direction: column; gap: 8px; }

.journey-company {
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #000000;
    line-height: normal;
}

.journey-role {
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #4B5563;
    line-height: normal;
}

.journey-years {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 16px;
    color: #1F2937;
    white-space: nowrap;
}

.journey-item--group { flex-direction: column; align-items: stretch; gap: 0; }

.journey-group-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 16px;
}

.journey-subroles {
    padding-left: 120px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.journey-subrole {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.journey-subrole-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #C3C6D3;
    flex-shrink: 0;
    margin-right: 16px;
}

.journey-subrole-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.journey-subrole-role {
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #0a1833;
}

.journey-subrole-years {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 16px;
    color: #1F2937;
    opacity: 0.5;
    white-space: nowrap;
}

/* Footer styles → footer.css (loaded via footer-loader.js) */

/* ========================
   RESPONSIVE
======================== */
@media (prefers-reduced-motion: reduce) {
    .about-hero__side { transition: none !important; }
    .about-tag         { transition: none !important; }
}

@media (max-width: 1440px) {
    .about-hero { aspect-ratio: auto; min-height: 600px; }
}

@media (max-width: 1140px) {
    .about-hero         { min-height: 500px; }
    .about-description  { padding-left: 60px; padding-right: 60px; }
    .journey-section    { padding-left: 60px; padding-right: 60px; }
    /* footer responsive → footer.css */
}

@media (max-width: 768px) {
    .about-hero         { margin-top: 72px; min-height: 400px; }
    .about-hero__left .about-tags,
    .about-hero__right .about-tags { display: none; }
    .about-description  { padding: 80px 24px; font-size: 16px; }
    .journey-section    { padding-left: 24px; padding-right: 24px; padding-bottom: 80px; }
    .journey-heading    { font-size: 20px; margin-bottom: 32px; }
    .journey-list       { gap: 24px; }
    .journey-item       { flex-wrap: wrap; gap: 8px; }
    .journey-logo       { width: 48px; height: 48px; }
    .journey-left       { gap: 12px; flex: 1; }
    .journey-role       { font-size: 14px; }
    .journey-company    { font-size: 16px; }
    .journey-years      { font-size: 14px; width: 100%; padding-left: 60px; }
    .journey-subroles   { padding-left: 60px; }
    /* footer responsive → footer.css */
}

/* ========================
   DARK MODE
======================== */
[data-theme="dark"] body { background: #0f131b; }
[data-theme="dark"] .about-hero { background: #0f131b; }
[data-theme="dark"] .about-hero__left:hover,
[data-theme="dark"] .about-hero__right:hover { background: #0f131b; }
[data-theme="dark"] .about-tag { color: #ffffff; }
[data-theme="dark"] .about-description { color: #ffffff; }
[data-theme="dark"] .journey-heading { color: #ffffff; }
[data-theme="dark"] .journey-logo { background: #4B5563; }
[data-theme="dark"] .journey-company { color: #ffffff; }
[data-theme="dark"] .journey-role { color: #9CA3AF; }
[data-theme="dark"] .journey-years { color: #9CA3AF; }
[data-theme="dark"] .journey-subrole-dot { background: #4B5563; }
[data-theme="dark"] .journey-subrole-role { color: #ffffff; }
[data-theme="dark"] .journey-subrole-years { color: #9CA3AF; }
