:root {

      --red: #f01523;
	--maroon: #970811;
    --blue: #535682;
    --yellow: #e0a030;
    --green: #21622f;
	--slogan:#f4ca80; 
	--teal:#16a6a6;
--purple: #662a81;
	--khaki: #6a7e27;
	--deep-blue: #0d4553;
	--gold: #855a1d;
	--link: #8a90df;

    --font-main: "Segoe UI", "Helvetica Neue", Arial, sans-serif;

    --bg: #02242c;
    --panel: #02242c;
    --line: rgba(255,255,255,0.20);
    --text: #f4f5f5;
    --muted: #8eabb0;

--link-purple: #a37ab6;
--link-red: #fa5a64;
--link-khaki: #a6b379;
--link-green: #77d18b;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-main);
    font-weight: 300;
    letter-spacing: 0.2px;
    transition: background-color 220ms ease, color 220ms ease;
}

button {
    font: inherit;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

body {
    background: var(--bg);
    color: var(--text);
}

/* ---------- TOP BAR ---------- */

.topbar {
    position: fixed;
    z-index: 20;

    top: 0;
    left: 0;
    right: 0;

    height: 76px;
    padding: 12px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

  background: rgba(2, 36, 44, 0.84);
    border-bottom: 0px solid rgba(255,255,255,0.28);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-button {
    height: 35px;
    min-width: 108px;
    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.42);
    border-radius: 0;

    background: var(--green);
    color: #fff;

    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.7px;

    cursor: pointer;
    text-decoration: none;

    transition:
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
}

.control-button:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.home-button {
    text-decoration: none;
}

.back-button,
.home-button {
    font-size: 24px;
}

.language-button { min-width: 118px; font-size: 13px; letter-spacing: 1px; }

/* ---------- MAIN ---------- */

.explore-map {
    width: min(1180px, 92vw);
    min-height: 100vh;
    margin: 0 auto;

    padding-top: 130px;
    padding-bottom: 110px;
}

/* ---------- CENTRAL NODE ---------- */

.central-statement {
    width: min(500px, 72vw);
    min-height: 220px;

    margin: 82px auto 0;

    background: var(--green);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.central-number {
    margin-bottom: 18px;
    color: #fff;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 3px;
}

.central-statement h1 {
    margin: 0;
    color: #fff;

    font-size: clamp(30px, 3.2vw, 49px);
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0.8px;
}

.central-statement p {
    margin: 20px 0 0;
    color: #fff;
    font-size: 32px;
    font-weight: 300;
}

/* ---------- INTRO ---------- */

.page-intro {
    width: 760px;
    max-width: 90vw;
    margin: 92px auto 0;
    text-align: center;
}

.intro-question {
    margin: 0;
    color: var(--muted);

    font-size: 35px;
    line-height: 1.4;
    font-weight: 300;
}

/* ---------- METRO ---------- */

.concept-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 132px;
}

.concept {
    min-height: 150px;
    padding: 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    border: 1px solid transparent;
    appearance: none;
    cursor: pointer;

    transition:
        background-color 300ms ease,
        color 300ms ease,
        transform 180ms ease,
        border-color 180ms ease;
}

.concept:hover {
    background: #000 !important;
    color: #fff !important;
    transform: none;
}

.concept[aria-expanded="true"] {
    transform: none;
    border: 2px solid #fff;
}

.concept-number {
    margin-bottom: 16px;
    font-size: 11px;
    letter-spacing: 3px;
    opacity: 0.8;
}

.concept h2 {
    margin: 0;
    font-size: clamp(21px, 2vw, 32px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: 0.4px;
}

.concept p {
    max-width: 220px;
    margin: 15px 0 0;
    font-size: 16px;
    line-height: 1.3;
}

/* ---------- TILE COLOURS ---------- */

.concept-personal {
    background: var(--green);
    color: #fff;
}

.concept-work {
    background: var(--blue);
    color: #fff;
}

.concept-collaboration {
    background: var(--yellow);
    color: #000;
}

.concept-agents {
    background: #970811;
    color: #fff;
}

.concept-future {
    background: var(--khaki);
    color: #fff;
}

/* ---------- PANELS ---------- */

.tab-panels {
    width: 100%;
    margin-top: 30px;
}

.tab-panel {
    display: none;

    width: min(920px, 94%);
    margin: 0 auto;
    padding: 48px 54px 52px;

    background: var(--panel);
    text-align: center;

    animation: panelIn 220ms ease both;
}

.tab-panel.is-open {
    display: block;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-number {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 3px;
}

.tab-panel h2 {
    margin: 0 0 30px;
    color: var(--text);

    font-size: clamp(27px, 3vw, 40px);
    line-height: 1.15;
    font-weight: 300;
}

.tab-panel p {
    max-width: 720px;
    margin: 0 auto 22px;

    color: var(--text);
    font-size: 19px;
    line-height: 1.55;
    font-weight: 300;
}

.panel-emphasis {
    margin-top: 38px !important;
    font-size: 24px !important;
}

.panel-accent-line {
    color: var(--link-khaki) !important;
    font-size: 28px !important;
    letter-spacing: 0.6px;
}

.panel-words {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;

    margin: 28px auto 42px;

    color: var(--link);
    font-size: 23px;
    letter-spacing: 4px;
}

/* ---------- PANEL TITLE COLOURS ---------- */

.panel-personal h2 {
    color: #77d18b;
}

.panel-work h2 {
    color: var(--link);
}

.panel-collaboration h2 {
    color: var(--slogan);
}

.panel-agents h2 {
    color: var(--link-red);
}

.panel-future h2 {
    color: #a6b379;
}

/* ---------- POSSIBILITY GRID ---------- */

.possibility-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    margin: 38px auto 42px;

    border: 1px solid var(--line);
}

.possibility-grid div {
    min-height: 105px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;

    background: rgba(0,165,26,0.08);
    color: var(--text);

    font-size: 14px;
    letter-spacing: 1px;

    border-right: 1px solid var(--line);
}

.possibility-grid div:last-child {
    border-right: 0;
}

/* ---------- AGENT FLOW ---------- */

.agent-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    gap: 0;
    margin: 38px auto 42px;
}

.agent-flow span {
    padding: 14px 20px;

    border: 1px solid var(--line);
    color: var(--text);

    font-size: 14px;
    letter-spacing: 1px;
}

.agent-flow span + span {
    border-left: 0;
}

/* ---------- CLOSING ---------- */

.closing-statement {
    margin: 92px auto 0;
    text-align: center;
}

.closing-statement p {
    margin: 0;

    font-size: clamp(24px, 2.5vw, 36px);
    line-height: 1.3;

    font-weight: 300;
    letter-spacing: 0.4px;
}

.closing-statement p + p {
    margin-top: 10px;
    color: var(--muted);
}

/* ---------- NEXT ---------- */

.next-step {
    margin: 74px auto 0;
    text-align: center;
}

.next-step > p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 1.8px;
}

.next-button {
    width: 250px;
 min-height: 100px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: var(--yellow);
    color: #000;

    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1px;

    text-decoration: none;

    transition:
        background-color 300ms ease,
        transform 180ms ease;
}

.next-button:visited,
.next-button:hover,
.next-button:focus,
.next-button:active {
    text-decoration: none;
}

.next-button:hover {
    background: #000;
    color: #fff;
    transform: translateY(-3px);
}

.next-button span {
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 3px;
}
/* ---------- RESPONSIVE ---------- */

@media (max-width: 1000px) {
    .concept-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {

    .topbar {
        height: 68px;
        padding: 10px 12px;
    }

    .control-button {
        height: 42px;
        min-width: 76px;
        padding: 0 14px;
        font-size: 12px;
    }

    .explore-map {
        width: 92vw;
        padding-top: 110px;
    }

    .central-statement {
        width: 100%;
        min-height: 190px;
        margin-top: 58px;
    }

    .concept-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
        gap: 18px;
    }

    .concept {
        min-height: 150px;
    }

    .tab-panel {
        width: 100%;
        padding: 38px 22px 42px;
    }

    .possibility-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .agent-flow {
        flex-direction: column;
    }

    .agent-flow span {
        width: 100%;
    }

    .agent-flow span + span {
        border-left: 1px solid var(--line);
        border-top: 0;
    }
}


.concept {
    transition:
        background-color 900ms ease,
        color 900ms ease,
        transform 180ms ease;
}

.concept:hover {
    background: #000 !important;
    color: #fff !important;
    transform: none;
}



@media (max-width: 480px) {

    .control-button {
        min-width: 50px;
        padding: 0 8px;
        font-size: 11px;
    }

    .concept h2 {
        font-size: 28px;
    }

    .tab-panel p {
        font-size: 18px;
    }

    .possibility-grid {
        grid-template-columns: 1fr;
    }
}
