
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Newsreader:ital,opsz,wght@1,6..72,400&display=swap');


/* ==================================================
   ROOT VARIABLES
================================================== */

:root {
    --ink: #18231d;
    --paper: #f4f1ea;
    --cream: #e8e2d5;
    --rose: #b65d68;
    --leaf: #607968;
    --line: rgba(24, 35, 29, .18);
    --white: #fff;
}


/* ==================================================
   GLOBAL STYLES
================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "DM Sans", sans-serif;
}

a {
    color: inherit;
}


/* ==================================================
   NETWORK MAP
================================================== */

.map-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #dfe5dd;
    color: #54685b;
    overflow: hidden;
    transition: filter .8s, opacity .8s;
}

.map-stage:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(244, 241, 234, .95) 0%,
        rgba(244, 241, 234, .76) 46%,
        rgba(244, 241, 234, .38) 100%
    );
    transition: opacity .8s;
}

.map-stage svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Map continents */

.continents path {
    fill: rgba(96, 121, 104, .08);
    stroke: rgba(24, 35, 29, .19);
    stroke-width: 1;
}


/* Network routes */

.route {
    fill: none;
    stroke: rgba(24, 35, 29, .22);
    stroke-width: 1;
}

.route.offline {
    stroke-dasharray: 5 7;
    opacity: .45;
}


/* Network points */

.point {
    cursor: pointer;
}

.point circle {
    stroke: #f4f1ea;
    stroke-width: 2;
}

.point.hub circle {
    fill: #36b85a;
}

.point.node circle {
    fill: #36b85a;
}

.point.asset circle {
    fill: #36b85a;
}

.point.offline circle {
    fill: #777;
    opacity: .7;
}


/* Point labels */

.point text {
    opacity: 0;
    pointer-events: none;
    fill: #18231d;
    font: 600 11px "DM Sans";
    paint-order: stroke;
    stroke: #f4f1ea;
    stroke-width: 4px;
    transition: opacity .2s;
}

.map-active .point:hover text,
.map-active .point:focus text,
.map-active .point.open text {
    opacity: 1;
}


/* ==================================================
   NETWORK MAP LEGEND
================================================== */

.map-key {
    position: absolute;
    z-index: 2;
    left: 2rem;
    bottom: 2rem;
    display: flex;
    gap: 1rem;
    padding: .75rem 1rem;
    border: 1px solid var(--line);
    background: rgba(244, 241, 234, .9);
    font-size: .7rem;
    opacity: 0;
    transition: opacity .5s;
}

.map-key span {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.map-key i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #36b85a;
}

.map-key .node {
    background: #36b85a;
}

.map-key .asset {
    background: #36b85a;
}

.map-key .offline {
    background: #777;
}


/* ==================================================
   ACTIVE NETWORK MAP MODE
================================================== */

.map-active .map-stage:after {
    opacity: .06;
}

.map-active .map-key {
    opacity: 1;
}

.map-active #content,
.map-active footer {
    opacity: .06;
    pointer-events: none;
}

.map-active header {
    background: rgba(244, 241, 234, .87);
    backdrop-filter: blur(12px);
}


/* ==================================================
   HEADER
================================================== */

header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    padding: 0 clamp(1.2rem, 4vw, 4rem);
    border-bottom: 1px solid var(--line);
    transition: background .5s;
}


/* Wordmark */

.wordmark {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-decoration: none;
}

.wordmark svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
}

.wordmark small {
    display: block;
    font-size: .55rem;
    letter-spacing: .28em;
    color: var(--leaf);
    margin-top: .15rem;
}


/* ==================================================
   NAVIGATION
================================================== */

nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    font-size: .82rem;
}

nav a {
    text-decoration: none;
}

nav button,
.secondary,
.text-button {
    font: inherit;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}


/* Map toggle */

#map-toggle {
    border: 1px solid var(--line);
    padding: .7rem 1rem;
}

.map-active #map-toggle span {
    display: none;
}

#map-toggle b {
    display: none;
    font-size: 1.4rem;
}

.map-active #map-toggle b {
    display: block;
}


/* ==================================================
   MAIN CONTENT / FOOTER LAYERING
================================================== */

main,
footer {
    position: relative;
    z-index: 2;
    transition: opacity .6s;
}


/* ==================================================
   HERO SECTION
================================================== */

.hero {
    min-height: calc(100vh - 88px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding:
        clamp(4rem, 9vw, 9rem)
        clamp(1.2rem, 9vw, 9rem);
    max-width: 890px;
}


/* Eyebrow */

.eyebrow {
    font-size: .72rem;
    letter-spacing: .2em;
    color: var(--leaf);
    font-weight: 600;
}


/* Hero heading */

.hero h1 {
    font-size: clamp(4rem, 10vw, 8.8rem);
    line-height: .78;
    letter-spacing: -.06em;
    margin: 1.5rem 0 2.2rem;
    font-weight: 500;
}

.hero h1 em,
.intro h2 em {
    font-family: "Newsreader", serif;
    font-weight: 400;
    color: var(--rose);
}


/* Hero description */

.lede {
    font-size: clamp(1rem, 1.8vw, 1.28rem);
    line-height: 1.65;
    max-width: 38rem;
}


/* ==================================================
   HERO ACTIONS
================================================== */

.hero-actions {
    display: flex;
    gap: .75rem;
    margin-top: 2rem;
}

.primary,
.secondary {
    display: inline-block;
    text-decoration: none;
    padding: 1rem 1.25rem;
    border: 1px solid var(--ink);
    font-size: .86rem;
}

.primary {
    background: var(--ink);
    color: var(--paper);
}

.secondary {
    background: rgba(244, 241, 234, .6);
}


/* ==================================================
   NETWORK STATUS NOTE
================================================== */

.network-note {
    display: flex;
    gap: 1rem;
    margin-top: 4rem;
    color: var(--leaf);
    font-size: .72rem;
}

.network-note span:first-child:before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rose);
    margin-right: .5rem;
}


/* ==================================================
   SHARED SECTION SPACING
================================================== */

.intro,
.network-story,
.final {
    padding:
        clamp(5rem, 10vw, 10rem)
        clamp(1.2rem, 9vw, 9rem);
}


/* ==================================================
   INTRO SECTION
================================================== */

.intro {
    background: var(--ink);
    color: var(--paper);
}

.intro h2,
.network-story h2,
.final h2 {
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .96;
    max-width: 850px;
    margin: 1rem 0;
}

.intro > p:last-child {
    max-width: 570px;
    line-height: 1.7;
    color: #b9c1bc;
}


/* ==================================================
   CONNECTIONS GRID
================================================== */

.connections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--cream);
    padding: clamp(2rem, 5vw, 5rem);
    gap: 1px;
}


/* Individual connection card */

.connection {
    position: relative;
    min-height: 440px;
    padding: 2rem;
    overflow: hidden;
    background: var(--paper);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.connection > span {
    font-size: .68rem;
    letter-spacing: .17em;
    color: var(--leaf);
}

.connection h3 {
    font: 400 clamp(2rem, 3vw, 3.4rem) "Newsreader", serif;
    font-style: italic;
    margin: 4rem 0 1rem;
}

.connection p {
    line-height: 1.7;
    color: #566159;
    max-width: 25rem;
}

.connection b {
    font-size: .8rem;
    margin-top: auto;
}


/* ==================================================
   CONNECTION PETAL DECORATION
================================================== */

.connection .petal {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 1px solid currentColor;
    border-radius: 70% 35% 70% 35%;
    right: -115px;
    bottom: -120px;
    transform: rotate(28deg);
    opacity: .14;
    transition: transform .7s;
}

.connection:hover .petal {
    transform: rotate(48deg) scale(1.2);
}


/* ==================================================
   INDIVIDUAL CONNECTION COLORS
================================================== */

.promo {
    color: #784b51;
}

.intel {
    color: #4a5b50;
}


/* ==================================================
   NETWORK STORY
================================================== */

.network-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    background: #dfe5dd;
}

.network-story p {
    line-height: 1.8;
    max-width: 500px;
}

.text-button {
    padding: 0;
    border-bottom: 1px solid;
    margin-top: 1rem;
}


/* ==================================================
   FINAL CALL TO ACTION
================================================== */

.final {
    background: var(--rose);
    color: #fff;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.final .primary {
    border-color: #fff;
    background: #fff;
    color: var(--rose);
    margin-top: 2rem;
}


/* ==================================================
   FOOTER
================================================== */

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    background: var(--ink);
    color: var(--paper);
    font-size: .72rem;
}

footer div:last-child {
    display: flex;
    gap: 1.2rem;
}


/* ==================================================
   COMING SOON PAGES
================================================== */

.soon {
    background: #dfe5dd;
}

.soon .hero {
    max-width: 1000px;
}

.soon header {
    border-bottom-color: rgba(24, 35, 29, .15);
}


/* ==================================================
   RESPONSIVE DESIGN
   TABLET / MOBILE
================================================== */

@media (max-width: 800px) {

    /* Header */

    header {
        min-height: 72px;
    }

    nav > a {
        display: none;
    }


    /* Hero */

    .hero {
        min-height: calc(100vh - 72px);
    }


    /* Connections */

    .connections {
        grid-template-columns: 1fr;
    }

    .connection {
        min-height: 350px;
    }


    /* Network story */

    .network-story {
        grid-template-columns: 1fr;
        gap: 1rem;
    }


    /* Network map key */

    .map-key {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        flex-wrap: wrap;
    }


    /* Footer */

    footer {
        padding: 2rem 1.2rem;
        align-items: flex-start;
        gap: 2rem;
        flex-direction: column;
    }

}
