/* =========================================================
   AMEMOR — BUILD
   ---------------------------------------------------------
   Visual language:
   - thin sans-serif typography
   - no rounded corners
   - size / spacing / colour create hierarchy
   - graph-like rather than conventional webpage layout
   - quiet controls
   - no unnecessary decoration
   ========================================================= */

: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;
	--red-dark: #970811;
  --font-main:"Segoe UI","Helvetica Neue",Arial,sans-serif;

     --bg: #02242c;
    --panel: #02242c;
    --line: rgba(255,255,255,0.20);
    --text: #f4f5f5;
    --muted: #8eabb0;
    --white: #fff;}
--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;
}


/* ---------- THEMES ---------- */

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(--blue);
    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 MAP ---------- */

.build-map {
    position: relative;

    width: min(1180px, 92vw);
    min-height: 100vh;

    margin: 0 auto;

    padding-top: 130px;
    padding-bottom: 110px;
}


/* ---------- CENTRAL NODE ---------- */

.central-statement {
    position: relative;

    width: min(500px, 72vw);
    min-height: 220px;

    margin: 82px auto 0;

    background: var(--blue);

    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: 300;
    letter-spacing: 0.8px;
}

.central-statement p {
    margin: 20px 0 0;

    color: #fff;

    font-size: 26px;
    font-weight: 300;
}


/* ---------- INTRO ---------- */

.page-intro {
    width: 650px;
    max-width: 90vw;

    margin: 100px auto 0;

    text-align: center;
}

.intro-question {
    margin: 0;

    color: var(--muted);

    font-size: 35px;
    line-height: 1.4;
    font-weight: 300;
}


/* ---------- METRO TAB TILES ---------- */

.concept-grid {
    position: relative;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;

    margin-top: 100px;
}

.concept {
    min-height: 150px;
    padding: 18px 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    border: 1px solid transparent;
    appearance: none;

    cursor: pointer;

    transition:
        transform 180ms ease,
        background-color 180ms ease,
        color 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;
    font-weight: 300;
    letter-spacing: 3px;
    opacity: 0.8;
}

.concept h2 {
    margin: 0;

    font-size: clamp(20px, 1.7vw, 28px);
    line-height: 1.05;

    font-weight: 350;
    letter-spacing: 0.5px;
}

.concept p {
    max-width: 220px;

    margin: 15px 0 0;

    font-size: 16px;
    line-height: 1.3;
    font-weight: 300;
}


/* ---------- TAB COLOURS ---------- */

.concept-foundation {
    background: var(--blue);
    color: #fff;
}

.concept-memory {
    background: var(--deep-blue);
    color: #fff;
}

.concept-context {
    background: var(--teal);
    color: #fff;
}

.concept-relevance {
    background: var(--green);
    color: #fff;
}

.concept-continuity {
    background: var(--red-dark);
    color: #fff;
}

.concept {
    transition:
        background-color 800ms ease,
        color 800ms ease,
        transform 580ms ease;
}

.concept:hover {
    background: #000 !important;
    color: #fff !important;
    transform: none;
}

/* ---------- TAB 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);

    border: 0 solid var(--line);

    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 TYPOGRAPHY ---------- */

.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: #75fcfc !important;
    font-size: 24px !important;
    letter-spacing: 0.6px;
}

.panel-words {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 10px 24px;

    margin: 28px auto 42px;

    color: var(--yellow);

    font-size: 18px;
    letter-spacing: 4px;
}


/* ---------- PANEL TITLE COLOURS ---------- */

.panel-foundation h2 {
    color: #9a9fe8;
}

.panel-memory h2 {
    color: #528794;
}

.panel-context h2 {
    color: #75fcfc;
}

.panel-relevance h2 {
    color: #77d18b;
}

.panel-continuity h2 {
    color: #fa5a64;
}


/* ---------- CONTEXT PANEL ---------- */

.context-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    margin: 38px auto 42px;

    border: 1px solid var(--line);
}

.context-grid div {
    min-height: 105px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;

    background: rgba(22,116,201,0.08);

    color: var(--text);

    font-size: 14px;
    letter-spacing: 1px;

    border-right: 1px solid var(--line);
}

.context-grid div:last-child {
    border-right: 0;
}


/* ---------- RELEVANCE PANEL ---------- */

.relevance-list {
    width: min(720px, 100%);

    margin: 38px auto 42px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.relevance-list span {
    padding: 14px 18px;

    border-left: 3px solid var(--green);

    background: rgba(0,165,26,0.08);

    color: var(--text);

    font-size: 16px;
    letter-spacing: 0.7px;
}


/* ---------- CONTINUITY PANEL ---------- */

.continuity-list {
    width: min(720px, 100%);

    margin: 38px auto 42px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.continuity-list span {
    padding: 14px 18px;

    border-left: 3px solid var(--red);

    background: rgba(230,0,0,0.08);

    color: var(--text);

    font-size: 16px;
    letter-spacing: 0.7px;
}


/* ---------- CLOSING STATEMENT ---------- */

.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 STEP ---------- */

.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(--green);
    color: #fff;

    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1px;

    text-decoration: none;

    transition:
        background-color 180ms ease,
        transform 180ms ease;
}

.next-button:visited,
.next-button:hover,
.next-button:focus,
.next-button:active {
    text-decoration: none;
}

.next-button span {
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 3px;
}

.next-button:hover {
    background: #000;
    color: #fff;
    transform: translateY(-3px);
}
/* ---------- RESPONSIVE ---------- */

@media (max-width: 1000px) {

    .concept-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .concept h2 {
        font-size: 24px;
    }
}

@media (max-width: 760px) {

    .topbar {
        height: 68px;
        padding: 10px 12px;
    }

    .control-button {
        height: 42px;
        min-width: 76px;
        padding: 0 14px;
        font-size: 12px;
    }

    .build-map {
        width: 92vw;
        padding-top: 110px;
    }

    .page-intro {
        width: 100%;
        margin-top: 34px;
    }

    .intro-question {
        font-size: 21px;
    }

    .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;
    }

    .context-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .closing-statement {
        margin-top: 60px;
    }

    .closing-statement p {
        font-size: 24px;
    }
}

@media (max-width: 480px) {

    .topbar-left,
    .topbar-right {
        gap: 4px;
    }

    .control-button {
        min-width: 50px;
        padding: 0 8px;
        font-size: 11px;
    }

    .concept h2 {
        font-size: 30px;
    }

    .tab-panel p {
        font-size: 18px;
    }

    .context-grid {
        grid-template-columns: 1fr;
    }

    .context-grid div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .context-grid div:last-child {
        border-bottom: 0;
    }
}
