/* ==========================================================
   1. SHARED HELPERS
========================================================== */

:root {
    /* The fade-in used by .reveal in style.css. Any element that has BOTH
       .reveal and its own transition must repeat it, or the fade-in is lost. */
    --reveal: opacity 0.8s ease, transform 0.8s ease;
}

.section-heading > p:last-child { max-width: 760px; }
.section-heading.center > p:last-child { margin-inline: auto; }

.split-section > .reveal:first-child { align-self: start; }

/* Small sub-heading (yellow, uppercase) */
.sub-title {
    margin: 70px 0 24px;
    color: var(--yellow);
    font: 700 13px "Montserrat", sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.sub-title.first { margin-top: 0; }

/* Logo tile: white box that holds a partner logo.
   While there is no logo yet, .logo-slot shows a dashed placeholder. */
.logo-tile {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--white);
    border-radius: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo-tile img {
    max-width: 72%;
    max-height: 62%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.logo-tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--yellow); }
.logo-tile:hover img { filter: none; opacity: 1; }

.logo-slot {
    position: absolute;
    inset: 8px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 6px;
    padding: 8px;
    border: 1.5px dashed rgba(8, 29, 47, 0.3);
    border-radius: 10px;
    color: rgba(8, 29, 47, 0.6);
    text-align: center;
    font: 600 11px/1.3 "Montserrat", sans-serif;
}
.logo-slot i { color: var(--yellow); font-size: 22px; }

/* Name bar that slides up when a logo is hovered */
.logo-tile::after {
    content: attr(data-name);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 7px 10px;
    background: var(--navy);
    color: var(--white);
    text-align: center;
    font: 700 10px/1.3 "Montserrat", sans-serif;
    letter-spacing: 0.06em;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.logo-tile:hover::after { transform: translateY(0); }



/* ==========================================================
   2. HERO  (centred layout with jump links)
========================================================== */

.about-hero { min-height: 80vh; text-align: center; }

.about-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 780px;
    height: 780px;
    margin: -390px;
    border: 2px dashed rgba(243, 180, 41, 0.25);
    border-radius: 50%;
    animation: spin 60s linear infinite;
}

.about-hero h1,
.about-hero .hero-description { margin-inline: auto; }

.jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 44px;
}
.jump a {
    padding: 13px 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius);
    font: 600 14px "Montserrat", sans-serif;
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.jump a:hover {
    background: var(--yellow);
    color: var(--navy);
    border-color: var(--yellow);
    transform: translateY(-4px);
}


/* ==========================================================
   3. 01 WHO WE ARE
========================================================== */

/* Darker body text */
#who .section-content p {
    color: #0b1621;
    opacity: 1;
}


/* ==========================================================
   4. 02 CORE TECHNOLOGY DOMAINS
========================================================== */

/* Own 3-column grid, independent of the home page's 3 + 2 layout */
.domains .foundation-grid { grid-template-columns: repeat(3, 1fr); }
.domains .foundation-card,
.domains .foundation-card:nth-child(n) { grid-column: auto; }
.domains .foundation-card { min-height: 420px; }

.domain-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 0;
    margin-top: 0;
    list-style: none;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin-top 0.4s ease, opacity 0.4s ease;
}
.domain-tags li {
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 99px;
    font: 600 11px "Montserrat", sans-serif;
}

.foundation-card:hover .domain-tags { max-height: 90px; margin-top: 16px; opacity: 1; }

@media (hover: none) {
    .domain-tags { max-height: 90px; margin-top: 16px; opacity: 1; }
}

@media (max-width: 1000px) { .domains .foundation-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px)  { .domains .foundation-grid { grid-template-columns: 1fr; } }


/* ==========================================================
   5. 03 MISSION AND VISION
========================================================== */

/* Plain section, no background. Two grey bands, each running in from one edge of the screen,
   with a round photo sitting on the end of the band and standing a little taller than it. */
#mission.section { padding: 64px 0 72px; overflow-x: hidden; overflow-x: clip; }

.mv { display: grid; gap: 20px; }

.mv-row {
    --circle: 280px;
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: var(--circle);
}
.mv-row.mission { grid-template-columns: 36% var(--circle) 1fr; }
.mv-row.vision  { grid-template-columns: 1fr var(--circle) 12%; }

/* The grey band. Mission: from the middle of the circle to the right edge of the screen.
   Vision: from the left edge of the screen to the middle of the circle. */
.mv-row::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 24px;
    bottom: 24px;
    background: var(--navy);
    box-shadow: 0 3px 5px rgba(8, 29, 47, 0.12);
}
.mv-row.mission::before { left: calc(36% + var(--circle) / 2); right: calc(50% - 50vw); }
.mv-row.vision::before  { left: calc(50% - 50vw); right: calc(12% + var(--circle) / 2); }

/* Heading (same text as before) with the two-line underline */
#mission .section-heading { margin: 0; padding-right: 24px; }
#mission .section-heading::after {
    content: "";
    display: block;
    width: 90px;
    height: 3px;
    margin-top: 24px;
    background: var(--navy);
    box-shadow: 0 6px 0 var(--yellow);
}

/* Circular photo. The border is always there (transparent), so hover never moves anything. */
.mv-photo {
    position: relative;
    z-index: 1;
    width: var(--circle);
    aspect-ratio: 1;
    overflow: hidden;
    background: #bdbbb2;
    border: 4px solid transparent;
    border-radius: 50%;
    transition: border-color 0.4s ease;
}
.mv-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
@media (hover: hover) {
    .mv-photo:hover { border-color: var(--yellow); }
    .mv-photo:hover img { transform: scale(1.08); }
}

/* Text inside the band */
.mv-copy { padding: 24px 0; }
.mv-row.mission .mv-copy { padding-left: 44px; }
.mv-row.vision .mv-copy { padding-right: 44px; text-align: right; }

.mv-title { color: var(--yellow); font: 700 clamp(30px, 3.2vw, 42px)/1.1 "Montserrat", sans-serif; }
.mv-title::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 12px; background: var(--yellow); }
.mv-row.vision .mv-title::after { margin-left: auto; }
.mv-lead { margin-top: 14px; color: var(--white); font-size: 15px; font-weight: 600; line-height: 1.65; }
.mv-text { margin-top: 10px; color: var(--white); font-size: 14px; line-height: 1.7; }

/* Smaller screens: heading, then the circle sitting on the top of a full-width band with the text under it */
@media (max-width: 1100px) {
    .mv { gap: 40px; }
    .mv-row,
    .mv-row.mission,
    .mv-row.vision { --circle: 220px; display: flex; flex-direction: column; min-height: 0; }
    .mv-row::before { display: none; }

    #mission .section-heading { margin-bottom: 32px; padding-right: 0; }

    .mv-photo { align-self: center; margin-bottom: calc(var(--circle) / -2); }
    .mv-row.vision .mv-photo { order: -1; }

    .mv-copy,
    .mv-row.mission .mv-copy,
    .mv-row.vision .mv-copy { position: relative; padding: calc(var(--circle) / 2 + 28px) 0 36px; text-align: left; }
    .mv-copy::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: 0;
        bottom: 0;
        left: calc(50% - 50vw);
        right: calc(50% - 50vw);
        background: var(--navy);
        box-shadow: 0 3px 5px rgba(8, 29, 47, 0.12);
    }
    .mv-row.vision .mv-title::after { margin-left: 0; }
}

@media (max-width: 600px) {
    .mv-row,
    .mv-row.mission,
    .mv-row.vision { --circle: 190px; }
}


/* ==========================================================
   6. 04 R&D AND INNOVATION  (centred heading, chips, one link)
========================================================== */

/* Click a topic on the left: its image fades in on the right and the text rises up under it. */
.rd-explorer {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: 56px;
    align-items: center;
}

.rd-hint {
    margin-bottom: 10px;
    color: var(--yellow-hover);
    font: 700 11px "Montserrat", sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* --- topic list (plain rows, no boxes) --- */
.rd-item {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr 34px;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 22px 0;
    border: 0;
    border-bottom: 1px solid rgba(8, 29, 47, 0.15);
    background: none;
    color: var(--navy);
    text-align: left;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease, padding-left 0.4s ease;
}
.rd-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: width 0.5s ease;
}
.rd-item:hover { opacity: 0.85; }
.rd-item.active { opacity: 1; padding-left: 10px; }
.rd-item.active::after { width: 100%; }

.rd-item-num { color: var(--yellow-hover); font: 700 13px "Montserrat", sans-serif; letter-spacing: 0.1em; }
.rd-item-title { font: 600 clamp(17px, 1.7vw, 23px)/1.25 "Montserrat", sans-serif; }
.rd-item-plus {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--navy);
    border-radius: 50%;
    font-size: 12px;
    transition: transform 0.4s ease, background 0.3s, border-color 0.3s;
}
.rd-item.active .rd-item-plus { transform: rotate(45deg); background: var(--yellow); border-color: var(--yellow); }

/* --- stage: every panel sits in the same spot, only the active one shows --- */
.rd-stage { display: grid; }

.rd-panel {
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}
.rd-panel.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s ease, visibility 0s;
}

/* Image space: no box. The photo fades out softly on every side. */
.rd-art {
    position: relative;
    height: clamp(280px, 30vw, 400px);
    transform: scale(0.88);
    filter: blur(8px);
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.9s ease;
}
.rd-panel.active .rd-art { transform: none; filter: none; }

.rd-art img,
.rd-glow { position: absolute; inset: 0; width: 100%; height: 100%; }

.rd-art img {
    object-fit: cover;
    -webkit-mask-image: radial-gradient(ellipse 68% 68% at 50% 50%, #000 30%, transparent 100%);
            mask-image: radial-gradient(ellipse 68% 68% at 50% 50%, #000 30%, transparent 100%);
}

/* Soft glow that shows until a photo is added */
.rd-glow {
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(243, 180, 41, 0.35), rgba(8, 29, 47, 0.1) 55%, transparent 76%);
    color: var(--navy);
    font-size: 56px;
    opacity: 0.55;
}

/* Text that pops up under the image */
.rd-info {
    position: relative;
    z-index: 1;
    max-width: 540px;
    margin: -34px auto 0;
    text-align: center;
}
.rd-info > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rd-panel.active .rd-info > * { opacity: 1; transform: none; }
.rd-panel.active .rd-info > :nth-child(1) { transition-delay: 0.25s; }
.rd-panel.active .rd-info > :nth-child(2) { transition-delay: 0.35s; }
.rd-panel.active .rd-info > :nth-child(3) { transition-delay: 0.45s; }
.rd-panel.active .rd-info > :nth-child(4) { transition-delay: 0.55s; }

.rd-info small { color: var(--yellow-hover); font: 700 11px "Montserrat", sans-serif; letter-spacing: 0.14em; }
.rd-info h3 { margin-top: 10px; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; }
.rd-info p { margin-top: 12px; font-size: 15px; line-height: 1.75; opacity: 0.8; }

.rd-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; list-style: none; }
.rd-tags li {
    padding: 5px 12px;
    border: 1px solid rgba(8, 29, 47, 0.3);
    border-radius: 99px;
    font: 600 11px "Montserrat", sans-serif;
}

.note { margin-top: 40px; font-size: 14px; }
.note.center { text-align: center; }
.note a {
    color: var(--navy);
    font-weight: 700;
    border-bottom: 2px solid var(--yellow);
    transition: color 0.3s;
}
.note a:hover { color: var(--yellow-hover); }


/* ==========================================================
   7. 05 STRATEGIC PARTNERSHIPS  (four towers of looping logos)
========================================================== */

.partner-towers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tower {
    --tile: clamp(130px, calc((100vh - 500px) / 2.2), 210px);   /* logo box size (shrinks on short screens so heading + logos fit in one view) */
    --gap: 18px;          /* space between boxes */
    --dur: 44s;           /* time for one full loop */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    transition: border-color 0.4s, background 0.4s;
}
.tower:hover { border-color: rgba(243, 180, 41, 0.55); background: rgba(243, 180, 41, 0.06); }

/* The window the logos travel through. The faded top and bottom edges
   are the "start" and "end" of the tower. */
.tower-view {
    height: clamp(250px, calc(100vh - 500px), 560px);
    padding: 0 20px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
}

.tower-track {
    animation: tower-up var(--dur) linear infinite;
    will-change: transform;
}
.tower.down .tower-track { animation-name: tower-down; }
/* every second tower starts half a box further along, so the rows are staggered */
.tower:nth-child(even) .tower-track { animation-delay: calc(var(--dur) / -16); }

/* the tower under the pointer stops; the other three keep moving */
.tower:hover .tower-track { animation-play-state: paused; }

@keyframes tower-up   { to { transform: translateY(-50%); } }
@keyframes tower-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }

.tower .logo-tile {
    width: min(var(--tile), 100%);
    aspect-ratio: 1;
    margin: 0 auto var(--gap);
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
/* logos are in full colour all the time */
.tower .logo-tile img { max-width: 76%; max-height: 76%; filter: none; opacity: 1; }
/* hover only shows the name bar (and pauses the tower): no lift, no outline */
.tower .logo-tile:hover { transform: none; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28); }

/* empty boxes that keep every tower the same length */
.tower .logo-tile.blank {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}
.tower .logo-tile.blank::after { display: none; }
.tower .logo-tile.blank:hover { transform: none; box-shadow: none; }


/* Title and text alignment across all towers */
.tower-label {
    padding: 28px 26px 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tower-num {
    display: block;
    color: var(--yellow);
    font: 700 12px "Montserrat", sans-serif;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-bottom: 14px;
}

.tower-label h3 {
    margin: 0;
    min-height: 2.4em;
    font-size: 20px;
    line-height: 1.2;
}

.tower-note {
    margin-top: 8px;
    min-height: 3.2em;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.65;
}

/* Touch screens: keep the name bar visible */
@media (hover: none) {
    .tower .logo-tile::after {
        transform: none;
    }
}



/* Place headings at the top of all four towers */
.tower {
    flex-direction: column-reverse;
}

/* Consistent spacing for headings at the top */
.tower-label {
    padding: 20px 24px 4px;
}

/* Compact section heading, so the heading and the logos fit in one screen */
#partners.section { padding: 56px 0 48px; }
#partners .section-heading { margin-bottom: 26px; }
#partners h2 { font-size: clamp(28px, 3.3vw, 42px); }


/* ==========================================================
   8. 06 INSTITUTIONAL COLLABORATION
========================================================== */

.gov-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.gov-card {
    position: relative;
    overflow: hidden;
    grid-column: span 2;
    padding: 28px;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
    transition: var(--reveal), translate 0.3s ease, box-shadow 0.3s ease;
}

/* Photo on the right that fades out toward the left, into the blue */
.gov-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;            /* keeps the photo subtle; raise towards 0.5 for stronger */
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%);
            mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%);
    transition: transform 0.6s ease;
}
.gov-card > *:not(.gov-bg) { position: relative; z-index: 1; }
.gov-card.wide { grid-column: span 3; }
/* Hover: card lifts, gets a yellow outline, the photo zooms and the tag turns yellow */
.gov-card:hover { translate: 0 -6px; box-shadow: 0 0 0 2px var(--yellow), 0 18px 34px rgba(8, 29, 47, 0.3); }
.gov-card:hover .gov-bg { transform: scale(1.07); }


.gov-logos {
    display: flex;
    gap: 12px;
}

/* Keep the white logo box at its existing size */
.gov-logos .logo-tile {
    flex: none;
    width: 150px;
    height: 150px;
}

/* Make the logo larger inside the white box */
.gov-logos .logo-tile img {
    width: 90%;
    height: 85%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    display: block;
    filter: none;          /* full colour by default */
    opacity: 1;
}

.gov-tag {
    display: inline-block;
    margin-top: 24px;
    padding: 5px 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 99px;
    font: 700 11px "Montserrat", sans-serif;
    letter-spacing: 0.12em;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.gov-card:hover .gov-tag { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }

.gov-card h3 { margin-top: 16px; font-size: 21px; line-height: 1.25; text-shadow: 0 2px 14px rgba(8, 29, 47, 0.9); }
.gov-card p { margin-top: 8px; font-size: 14px; line-height: 1.7; opacity: 0.85; text-shadow: 0 2px 14px rgba(8, 29, 47, 0.9); }


/* ==========================================================
   9. 07 JOURNEY
========================================================== */

.journey-scroller {
    position: relative;
    padding: 0 6vw;
    overflow-x: auto;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
}
.journey-scroller::-webkit-scrollbar { display: none; }
.journey-scroller.dragging { cursor: grabbing; }

.journey-track {
    position: relative;
    display: flex;
    width: max-content;
    height: 540px;
}

/* the dashed road */
.journey-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 3px dashed rgba(8, 29, 47, 0.3);
}

/* --- one milestone --- */
.milestone {
    position: relative;
    flex: 0 0 330px;
    opacity: 0.45;
    transition: opacity 0.4s;
}
.milestone:hover { opacity: 0.85; }
.milestone.active { opacity: 1; }

.milestone-node {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    display: grid;
    place-items: center;
    background: var(--card);
    border: 3px solid var(--navy);
    border-radius: 50%;
    color: var(--navy);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}
.milestone-node:hover { background: var(--yellow); transform: scale(1.15); }

.milestone-card {
    position: absolute;
    left: 14px;
    right: 14px;
    padding: 24px;
    background: var(--card);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}
.milestone-card small { color: var(--yellow-hover); font: 700 11px "Montserrat", sans-serif; letter-spacing: 0.14em; }
.milestone-card h3 { margin-top: 8px; font-size: 20px; line-height: 1.2; }
.milestone-card p { margin-top: 8px; font-size: 14px; line-height: 1.7; opacity: 0.75; }

/* line from card to node */
.milestone-card::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    height: 22px;
    background: var(--navy);
    opacity: 0.4;
}

/* odd milestones: card above the line. even: card below. */
.milestone:nth-of-type(odd) .milestone-card { bottom: calc(50% + 46px); }
.milestone:nth-of-type(odd) .milestone-card::after { top: 100%; }
.milestone:nth-of-type(even) .milestone-card { top: calc(50% + 46px); }
.milestone:nth-of-type(even) .milestone-card::after { bottom: 100%; }

.milestone.active .milestone-card {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 18px 34px rgba(8, 29, 47, 0.3);
}
.milestone.active .milestone-card small { color: var(--yellow); }

/* --- the walking robot --- */
.journey-walker {
    position: absolute;
    top: 50%;
    left: 0;               /* set by JS */
    z-index: 3;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    display: grid;
    place-items: center;
    background: var(--white);
    border: 3px solid var(--yellow);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(8, 29, 47, 0.35);
    color: var(--yellow);
    font-size: 26px;
    pointer-events: none;
    transition: left 0.7s cubic-bezier(0.6, 0.1, 0.2, 1);
}
.journey-walker img { width: 70%; height: 70%; object-fit: contain; animation: walker-bob 1.6s ease-in-out infinite; }
.journey-walker.moving img { animation: walker-wiggle 0.25s ease-in-out infinite alternate; }

@keyframes walker-bob { 50% { transform: translateY(-4px); } }
@keyframes walker-wiggle { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }

/* --- arrows, progress bar and counter --- */
.journey-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}
.journey-progress { flex: 1; height: 4px; background: rgba(8, 29, 47, 0.15); border-radius: 4px; overflow: hidden; }
.journey-progress span { display: block; width: 0; height: 100%; background: var(--yellow); transition: width 0.3s; }
.journey-count { min-width: 64px; font: 700 13px "Montserrat", sans-serif; letter-spacing: 0.12em; }

.journey-btn {
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--navy);
    border-radius: 50%;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}
.journey-btn:hover { background: var(--navy); color: var(--white); }
.journey-btn:disabled { opacity: 0.3; pointer-events: none; }


/* ==========================================================
   08 TEAM  
========================================================== */

.team-row {
    container-type: inline-size;      /* lets the bio keep a fixed width while the card widens */
    display: flex;
    gap: 14px;
    height: clamp(440px, 36vw, 560px);
}

.team-card {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    background: #0d2840;
    border-radius: var(--radius);
    outline: none;
    cursor: pointer;
    transition: flex-grow 0.55s cubic-bezier(0.65, 0, 0.25, 1), box-shadow 0.4s ease;
}
/* the open card widens, the others get narrower */
.team-card.is-open { flex-grow: 2.8; box-shadow: 0 0 0 2px rgba(243, 180, 41, 0.55), 0 22px 40px rgba(0, 0, 0, 0.35); }
.team-row.has-open .team-card:not(.is-open) { flex-grow: 0.85; }
.team-card:focus-visible { box-shadow: 0 0 0 2px var(--yellow); }

.team-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    background: #0d2840;
    transition: filter 0.5s ease;
}
.team-row.has-open .team-card:not(.is-open) .team-photo { filter: brightness(0.75) saturate(0.7); }

/* Name and designation sit at the bottom of every card, all the time */
.team-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px 20px;
    background: linear-gradient(to top, rgba(8, 29, 47, 0.92) 0%, rgba(8, 29, 47, 0.5) 28%, transparent 55%);
}
/* stronger shade fades in behind the biography when a card is open */
.team-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 29, 47, 0.97) 0%, rgba(8, 29, 47, 0.88) 50%, transparent 92%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.team-card.is-open .team-overlay::before { opacity: 1; }
.team-overlay > * { position: relative; }

.team-overlay h3 { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.15; }
.team-role { margin-top: 5px; color: var(--yellow); font: 600 12px/1.4 "Montserrat", sans-serif; }

/* Biography: opens by growing its own height (no scrollbar, nothing is cut off) */
.team-reveal {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.5s cubic-bezier(0.65, 0, 0.25, 1), opacity 0.3s ease;
}
.team-reveal-inner { min-height: 0; overflow: hidden; width: calc(45cqw - 80px); }   /* fixed width, so the text does not re-wrap while the card widens */
.team-card.is-open .team-reveal { grid-template-rows: 1fr; opacity: 1; transition-delay: 0s, 0.2s; }

.team-tag { display: block; color: var(--yellow); font: 700 11px "Montserrat", sans-serif; letter-spacing: 0.14em; }
.team-bio { margin: 10px 0 0; font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, 0.9); }
.team-bio::after { content: ""; display: block; width: 44px; height: 2px; margin: 16px 0 18px; background: var(--yellow); }

/* Tablet: two portraits across, tap to open */
@media (max-width: 1000px) {
    .team-row { container-type: normal; display: grid; grid-template-columns: repeat(2, 1fr); height: auto; gap: 16px; }
    .team-card,
    .team-card.is-open,
    .team-row.has-open .team-card:not(.is-open) { height: 420px; }
    .team-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .team-reveal-inner { width: auto; }
    .team-overlay h3 { font-size: 19px; }

    /* little + button: shows that the card can be tapped */
    .team-card::after {
        content: "+";
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 2;
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: var(--yellow);
        color: var(--navy);
        font: 700 20px/1 "Montserrat", sans-serif;
        transition: transform 0.4s ease;
    }
    .team-card.is-open::after { transform: rotate(45deg); }
}

/* Phone: one portrait per row */
@media (max-width: 650px) {
    .team-row { grid-template-columns: 1fr; }
    .team-card,
    .team-card.is-open,
    .team-row.has-open .team-card:not(.is-open) { height: 460px; }
}


/* ==========================================================
   11. 09 BOARD OF MENTORS
========================================================== */

.mentor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mentor-card {
    display: flex;
    flex-direction: column;
    padding: 28px 26px;
    background: var(--card);
    border-radius: var(--radius);
    transition: var(--reveal), translate 0.3s ease, background 0.3s, color 0.3s, box-shadow 0.3s;
}
.mentor-card:hover {
    translate: 0 -8px;
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 20px 36px rgba(8, 29, 47, 0.25);
}

.mentor-card > span { color: var(--yellow-hover); font: 700 12px "Montserrat", sans-serif; letter-spacing: 0.1em; }
.mentor-card h3 { margin-top: 18px; font-size: 19px; line-height: 1.2; }
.mentor-role { display: block; margin-top: 8px; color: var(--yellow-hover); font: 600 12px/1.5 "Montserrat", sans-serif; }
.mentor-card p { margin-top: 16px; font-size: 13px; line-height: 1.75; opacity: 0.75; }

.mentor-photo { width: 200px; max-width: 100%; aspect-ratio: 4 / 5; margin: 18px auto 0; overflow: hidden; border-radius: 14px; }
.mentor-photo > .photo-placeholder,
.mentor-photo > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
/* Hover the card: the photo zooms in just a little */
.mentor-card:hover .mentor-photo > img { transform: scale(1.07); }

/* Button: hover turns it yellow; click it to open or close the bio beneath */
.mentor-more {
    align-self: flex-start;
    margin-top: 18px;
    padding: 9px 18px;
    border: 1.5px solid rgba(128, 128, 128, 0.6);
    border-radius: 99px;
    background: transparent;
    color: inherit;
    font: 600 11px "Montserrat", sans-serif;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.mentor-more i { margin-left: 6px; font-size: 10px; transition: transform 0.3s; }
.mentor-more:hover,
.mentor-card.open .mentor-more { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.mentor-more:hover i,
.mentor-card.open .mentor-more i { transform: rotate(180deg); }

.mentor-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease;
}
.mentor-card.open .mentor-extra { max-height: 560px; opacity: 1; }

.mentor-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; }
.mentor-tags li {
    padding: 5px 12px;
    border: 1px solid rgba(128, 128, 128, 0.5);
    border-radius: 99px;
    font: 600 11px "Montserrat", sans-serif;
}


/* ==========================================================
   12. RESPONSIVE
========================================================== */

@media (max-width: 1100px) {
    /* Partner towers go two across */
    .partner-towers { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
    .rd-explorer { grid-template-columns: 1fr; gap: 32px; }
    .rd-stage { order: -1; }

    .gov-grid { grid-template-columns: repeat(2, 1fr); }
    .gov-card,
    .gov-card.wide { grid-column: span 1; }
    .gov-featured { grid-column: span 2; }

    .mentor-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
    .rd-art { height: 260px; }
    .about-hero::after { width: 480px; height: 480px; margin: -240px; }

    .gov-grid,
    .mentor-grid { grid-template-columns: 1fr; }
    .partner-towers { grid-template-columns: 1fr; }
    .tower-view { height: 480px; }

    .gov-featured { grid-column: span 1; }

    .milestone { flex-basis: 290px; }

}
.logo-text {
    color: #FFFFFF;
    font: 500 18px/1 "Times New Roman", Times, serif;
    letter-spacing: 0.14em;
    white-space: nowrap;
}