@import url('https://fonts.googleapis.com/css2?family=DM+Mono&family=DM+Sans:wght@400;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --ink: #151515;
    --paper: #f3f1eb;
    --lime: #d9ff3f;
    --orange: #ff5b35;
    --muted: #70706c;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px "DM Sans", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.wrap {
    width: min(1180px, calc(100% - 50px));
    margin: auto;
}


/* =========================================
   SCROLL PROGRESS
   ========================================= */

.progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--lime);
    z-index: 99;
    width: 0;
}


/* =========================================
   HEADER
   ========================================= */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 20;

    background: rgba(243, 241, 235, 0.87);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.nav {
    height: 76px;

    width: min(1180px, calc(100% - 50px));
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font: 700 17px "Space Grotesk";
}

.logo b {
    display: inline-grid;
    place-items: center;

    background: var(--ink);
    color: var(--lime);

    width: 31px;
    height: 31px;

    margin-right: 8px;
}

nav {
    display: flex;
    gap: 28px;
    align-items: center;

    font-size: 13px;
    font-weight: 700;
}

nav a {
    transition: opacity 0.2s ease;
}

nav a:hover {
    opacity: 0.55;
}

.pill {
    background: var(--ink);
    color: white;

    padding: 11px 17px;

    border-radius: 99px;
}

.hamb {
    display: none;

    background: none;
    border: 0;

    font-size: 22px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    min-height: 100vh;

    padding: 145px 0 80px;

    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 50px;
}


/* Small section labels */

.kicker {
    font: 11px "DM Mono";
    letter-spacing: 1.6px;
    text-transform: uppercase;

    color: #777;
}

.kicker span {
    float: right;
}


/* Main headline */

.hero h1 {
    font:
        700
        clamp(55px, 7vw, 96px)
        / 0.9
        "Space Grotesk";

    letter-spacing: -5px;

    margin: 20px 0;
}

.hero h1 em {
    font-style: normal;

    color: transparent;

    -webkit-text-stroke: 1.5px var(--ink);
}

.hero h3 {
    font:
        600
        20px
        "Space Grotesk";
}

.hero p:not(.kicker) {
    color: var(--muted);

    max-width: 620px;
}


/* Hero buttons */

.actions {
    display: flex;

    gap: 25px;

    align-items: center;

    margin-top: 30px;

    font-size: 13px;
    font-weight: 700;
}

.btn {
    display: inline-block;

    border: 0;

    border-radius: 99px;

    background: var(--ink);
    color: white;

    padding: 14px 20px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.15);
}


/* =========================================
   HERO GRAPHIC
   ========================================= */

.art {
    height: 560px;

    position: relative;

    display: grid;
    place-items: center;
}


/* Orange card behind */

.back,
.front {
    position: absolute;

    width: min(410px, 75vw);

    aspect-ratio: 1.05;

    border-radius: 28px;
}

.back {
    background: var(--orange);

    transform:
        rotate(-9deg)
        translate(-15px, 20px);

    box-shadow:
        15px 20px var(--ink);
}


/* Lime front card */

.front {
    background: var(--lime);

    transform: rotate(5deg);

    padding: 25px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.12);

    transition: margin 0.15s ease-out;
}

.front small {
    font:
        9px
        "DM Mono";

    letter-spacing: 1px;
}


/* Pixel logo */

.front #pixels {
    width: 250px;

    max-width: 70%;

    aspect-ratio: 1;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(10, 1fr);

    gap: 5px;

    transform: rotate(-5deg);
}

#pixels i {
    background: var(--ink);

    border-radius: 2px;
}

#pixels i.off {
    opacity: 0.08;
}


/* Orbit */

.orbit {
    position: absolute;

    width: 560px;
    height: 320px;

    border:
        1px solid
        rgba(0, 0, 0, 0.12);

    border-radius: 50%;

    transform: rotate(-22deg);
}


/* Little "you are here" label */

.art label {
    position: absolute;

    bottom: 5px;
    left: 7%;

    background: white;

    border: 1px solid #ddd;

    padding: 10px 13px;

    font:
        10px
        "DM Mono";

    box-shadow:
        6px 7px var(--ink);

    transform: rotate(-4deg);
}

.art label i {
    display: inline-block;

    width: 6px;
    height: 6px;

    margin-left: 5px;

    background: var(--orange);

    border-radius: 50%;
}


/* Scroll indicator */

.scroll {
    position: absolute;

    bottom: 22px;
    left: 50%;

    font:
        10px
        "DM Mono";

    color: #888;
}


/* =========================================
   MOVING TICKER
   ========================================= */

.ticker {
    overflow: hidden;

    white-space: nowrap;

    background: var(--ink);

    color: white;
}

.ticker div {
    display: inline-block;

    padding: 15px 0;

    font:
        600
        13px
        "Space Grotesk";

    animation:
        marquee
        22s
        linear
        infinite;
}

@keyframes marquee {

    to {
        transform: translateX(-50%);
    }

}


/* =========================================
   GENERAL SECTIONS
   ========================================= */

.section {
    padding: 125px 0;
}

.section h2 {
    font:
        700
        clamp(42px, 5.7vw, 75px)
        / 0.95
        "Space Grotesk";

    letter-spacing: -4px;

    margin:
        20px
        0
        55px;
}

.section h2 em {
    font-style: normal;

    color: #888;
}


/* =========================================
   INTERACTIVE BROWSER
   ========================================= */

.browser {
    background: white;

    border:
        1px solid
        #222;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        18px 22px var(--ink);
}


/* Browser top bar */

.bar {
    height: 50px;

    border-bottom:
        1px solid
        #ddd;

    padding: 17px;

    font:
        10px
        "DM Mono";

    color: #888;
}


/* Browser content */

.demo {
    display: grid;

    grid-template-columns: 65px 1fr;

    min-height: 470px;
}


/* Fake browser sidebar */

.demo aside {
    border-right:
        1px solid
        #ddd;

    padding: 28px;

    text-align: center;

    font:
        10px
        "DM Mono";

    color: #aaa;
}


/* Browser main */

.demo main {
    padding:
        55px
        8%;
}

.demo main > small {
    font:
        10px
        "DM Mono";

    color: #999;
}

.demo h3 {
    font:
        700
        clamp(32px, 4vw, 55px)
        / 1
        "Space Grotesk";

    letter-spacing: -2px;
}


/* Choices */

.choices {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;
}

.choices button {
    text-align: left;

    border:
        1px solid
        #d5d3cc;

    background: #f7f6f2;

    padding: 18px;

    border-radius: 10px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.choices button:hover,
.choices button.active {
    background: var(--lime);

    transform: translateY(-3px);
}

.choices small {
    display: block;

    color: #888;

    margin-top: 5px;
}

.demo main p:last-child {
    font:
        11px
        "DM Mono";

    color: #777;

    margin-top: 28px;
}


/* =========================================
   DARK SECTION
   ========================================= */

.dark {
    background: var(--ink);

    color: white;
}

.dark h2 span {
    color: var(--lime);
}


/* Service list */

.things article {
    display: grid;

    grid-template-columns:
        70px
        1fr
        30px;

    gap: 25px;

    padding: 28px 0;

    border-top:
        1px solid
        #444;

    transition:
        padding 0.25s ease;
}

.things article:last-child {
    border-bottom:
        1px solid
        #444;
}

.things article:hover {
    padding-left: 15px;
}

.things article > b {
    font:
        11px
        "DM Mono";

    color: #777;
}

.things h3 {
    font:
        600
        34px
        "Space Grotesk";

    margin: 0;
}

.things p {
    color: #aaa;

    margin: 4px 0;

    max-width: 650px;
}

.things strong {
    color: var(--lime);

    font-size: 22px;
}


/* =========================================
   TECHNOLOGY SECTION
   ========================================= */

.techgrid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 90px;

    align-items: center;
}

.techgrid > div > p:last-child {
    color: var(--muted);

    max-width: 500px;

    font-size: 17px;
}


/* Technology orbit */

.tech {
    height: 500px;

    border:
        1px dashed
        #bbb;

    border-radius: 50%;

    position: relative;
}


/* Centre */

.tech b {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    width: 100px;
    height: 100px;

    border-radius: 50%;

    background: var(--ink);

    color: var(--lime);

    display: grid;

    place-items: center;

    font:
        700
        24px
        "Space Grotesk";
}


/* Technology bubbles */

.tech i {
    position: absolute;

    background: white;

    border:
        1px solid
        #222;

    border-radius: 99px;

    padding: 10px 14px;

    font:
        11px
        "DM Mono";

    box-shadow:
        5px 6px var(--ink);

    font-style: normal;
}

.tech i:nth-child(2) {
    top: 10%;
    left: 18%;
}

.tech i:nth-child(3) {
    top: 22%;
    right: 5%;
}

.tech i:nth-child(4) {
    bottom: 14%;
    right: 10%;
}

.tech i:nth-child(5) {
    bottom: 7%;
    left: 22%;
}

.tech i:nth-child(6) {
    top: 50%;
    left: -3%;
}

.tech i:nth-child(7) {
    top: 55%;
    right: -4%;
}


/* =========================================
   ORANGE / HONEST SECTION
   ========================================= */

.orange {
    background: var(--orange);
}

.honest {
    display: grid;

    grid-template-columns:
        280px
        1fr;

    gap: 100px;

    align-items: center;
}


/* Stamp */

.stamp {
    width: 220px;
    height: 220px;

    border:
        3px solid
        var(--ink);

    border-radius: 50%;

    display: grid;

    place-items: center;

    text-align: center;

    font:
        700
        25px / 1
        "Space Grotesk";

    transform: rotate(9deg);

    position: relative;
}

.stamp::after {
    content: "";

    position: absolute;

    inset: 12px;

    border:
        1px dashed
        var(--ink);

    border-radius: 50%;
}

.stamp small {
    position: absolute;

    bottom: 32px;

    font:
        11px
        "DM Mono";
}

.honest h2 {
    margin-bottom: 25px;
}

.honest h2 em {
    color: white;
}

.honest p:not(.kicker) {
    max-width: 700px;
}


/* =========================================
   LIME PHILOSOPHY SECTION
   ========================================= */

.lime {
    background: var(--lime);
}

.quote {
    font:
        700
        clamp(55px, 9vw, 120px)
        / 0.86
        "Space Grotesk";

    letter-spacing: -7px;

    margin:
        60px
        0
        90px;
}

.quote span {
    color: transparent;

    -webkit-text-stroke:
        2px
        var(--ink);
}

.foot {
    border-top:
        1px solid
        var(--ink);

    padding-top: 18px;

    font:
        11px
        "DM Mono";
}


/* =========================================
   CONTACT
   ========================================= */

.contactgrid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 100px;
}

.contact h2 {
    font-size:
        clamp(55px, 7vw, 95px);

    margin-bottom: 20px;
}

.contact p:not(.kicker) {
    color: var(--muted);

    max-width: 450px;

    font-size: 18px;
}

.question {
    font:
        700
        140px
        "Space Grotesk";

    color: var(--orange);

    transform: rotate(-12deg);
}


/* Form */

form label {
    display: block;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 18px;
}

input,
textarea {
    display: block;

    width: 100%;

    margin-top: 7px;

    padding: 14px;

    border:
        1px solid
        #d5d2c9;

    border-radius: 9px;

    background: var(--paper);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    border-color: var(--ink);

    box-shadow:
        0 0 0 3px
        rgba(217, 255, 63, 0.55);
}

textarea {
    min-height: 145px;

    resize: vertical;
}

form small {
    display: block;

    color: #888;

    margin-top: 12px;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    background: var(--ink);

    color: white;

    padding: 35px 0;

    font:
        11px
        "DM Mono";
}


/* =========================================
   TABLET / MOBILE
   ========================================= */

@media (max-width: 850px) {

    .wrap,
    .nav {
        width: calc(100% - 30px);
    }

    nav {
        display: none;
    }

    .hamb {
        display: block;
    }

    .mobile-nav.open {
        display: flex;

        flex-direction: column;

        gap: 20px;

        padding:
            20px
            15px
            25px;

        border-top:
            1px solid
            #ddd;

        font-weight: 700;
    }

    .hero {
        padding-top: 125px;
    }

    .hero-grid,
    .techgrid,
    .honest,
    .contactgrid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .hero h1 {
        letter-spacing: -3px;
    }

    .art {
        height: 430px;
    }

    .section {
        padding: 85px 0;
    }

    .choices {
        grid-template-columns: 1fr;
    }

    .tech {
        max-width: 520px;

        margin: auto;
    }

    .quote {
        letter-spacing: -4px;
    }

    .scroll {
        display: none;
    }
}


/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 520px) {

    .hero h1 {
        font-size: 52px;
    }

    .back,
    .front {
        width: 78vw;
    }

    .orbit {
        width: 100%;

        height: 230px;
    }

    .things article {
        grid-template-columns:
            40px
            1fr
            20px;
    }

    .things h3 {
        font-size: 28px;
    }

    .tech {
        height: 380px;
    }

    .question {
        font-size: 100px;
    }

    .actions {
        flex-direction: column;

        align-items: flex-start;
    }

}