:root {
    --paper: #f6f6f3;
    --ink: #171916;
    --muted: #666b64;
    --line: rgba(25, 29, 24, .15);
    --accent: #6f736d;
    --font: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    width: min(1240px, calc(100% - 96px));
    margin-inline: auto;
}

.site-header {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 3;
}

.wordmark {
    display: inline-flex;
    align-items: center;
}

.wordmark img {
    display: block;
    width: auto;
    height: 54px;
}

.wordmark-dot, .period {
    color: var(--accent);
}

.main-nav {
    display: flex;
    gap: 34px;
    align-items: center;
}

.nav-link {
    font-size: 13px;
    color: #747870;
    transition: color .2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--ink);
}

.nav-link.active::after {
    content: "";
    display: block;
    height: 1px;
    background: var(--accent);
    margin-top: 6px;
}

.hero {
    min-height: 100svh;
    height: 100svh;
    min-height: 650px;
    max-height: 1100px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--paper);
}

.hero-image {
    position: absolute;
    inset: 0;
    background: url("assets/niafikra-africa-tech-background.png") center / cover no-repeat;
    opacity: 1;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 72%), linear-gradient(0deg, rgba(255, 255, 255, .16), transparent 24%);
}

.hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8px;
    padding-bottom: 35px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 10px;
    letter-spacing: 1.65px;
    font-weight: 600;
    color: #777b73;
    margin: 0 0 30px;
}

.eyebrow-line {
    width: 27px;
    height: 1px;
    background: var(--accent);
}

h1 {
    font-size: clamp(76px, 10.5vw, 142px);
    line-height: .94;
    letter-spacing: -.095em;
    font-weight: 500;
    margin: 0 0 28px;
}

.statement {
    max-width: 690px;
    font-size: clamp(24px, 3vw, 39px);
    line-height: 1.23;
    letter-spacing: -.055em;
    font-weight: 400;
    margin: 0;
}

.supporting-copy {
    color: var(--muted);
    font-size: 15px;
    margin: 22px 0 36px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 12px 16px;
    border: 1px solid rgba(23, 25, 22, .2);
    border-radius: 3px;
    background: rgba(255, 255, 255, .38);
    transition: background .2s, border-color .2s, transform .2s;
}

.product-link:hover {
    background: rgba(255, 255, 255, .8);
    border-color: rgba(23, 25, 22, .45);
    transform: translateY(-2px);
}

.product-label {
    font-size: 9px;
    letter-spacing: 1.2px;
    color: #777b73;
    font-weight: 700;
    padding-right: 7px;
    border-right: 1px solid var(--line);
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.4px;
}

.product-description {
    font-size: 11px;
    color: #777b73;
}

.arrow {
    color: var(--accent);
    font-size: 18px;
    margin-left: 2px;
}

.site-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 25px;
    color: #777b73;
    font-size: 11px;
    letter-spacing: .1px;
}

.contact-page {
    min-height: 100svh;
    position: relative;
    overflow-x: hidden;
}

.contact-background {
    position: absolute;
    inset: 0;
    min-height: 100%;
    background: url("assets/niafikra-africa-tech-background.png") center / cover no-repeat;
    opacity: .24;
    pointer-events: none;
}

.contact-main {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(50px, 10vw, 150px);
    padding-top: clamp(55px, 9vh, 100px);
    padding-bottom: 70px;
}

.contact-intro {
    padding-top: 20px;
}

.contact-intro .eyebrow {
    margin-bottom: 35px;
}

.contact-intro h1 {
    font-size: clamp(55px, 6.5vw, 88px);
    line-height: 1.02;
    letter-spacing: -.08em;
    margin-bottom: 25px;
}

.contact-lead {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    max-width: 440px;
}

.contact-details {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: clamp(24px, 3vw, 44px);
    max-width: 560px;
    margin: 55px 0 0;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.contact-detail dt {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #92968e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
    margin-bottom: 12px;
}

.contact-detail dt::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(111, 115, 109, .12);
}

.contact-detail dd {
    margin: 0;
    color: #555b53;
    font-size: 13px;
    line-height: 1.7;
}

.contact-detail a {
    color: var(--ink);
    border-bottom: 1px solid rgba(111, 115, 109, .35);
    transition: color .2s, border-color .2s;
}

.contact-detail a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.contact-panel {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(25, 29, 24, .1);
    padding: clamp(25px, 4vw, 42px);
    box-shadow: 0 18px 60px rgba(30, 35, 25, .035);
}

.contact-panel h2 {
    font-size: 22px;
    letter-spacing: -.7px;
    margin: 0 0 8px;
}

.panel-copy {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 28px;
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    font-size: 11px;
    font-weight: 600;
    margin: 17px 0 8px;
}

form input, form textarea {
    width: 100%;
    border: 1px solid rgba(25, 29, 24, .16);
    border-radius: 2px;
    background: rgba(255, 255, 255, .7);
    padding: 13px 14px;
    color: var(--ink);
    font: 13px var(--font);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    resize: vertical;
}

form input:focus, form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(111, 115, 109, .1);
}

form input::placeholder, form textarea::placeholder {
    color: #a0a39d;
}

.submit-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 0;
    background: var(--ink);
    color: white;
    padding: 15px 17px;
    margin-top: 23px;
    font: 600 12px var(--font);
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.submit-button:hover {
    background: #343a32;
    transform: translateY(-1px);
}

.submit-button span {
    color: #b8bcb5;
    font-size: 17px;
}

.form-note {
    color: #858980;
    font-size: 10px;
    line-height: 1.5;
    margin: 12px 0 0;
}

.mail-fallback {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mail-fallback[hidden] {
    display: none;
}

.mail-fallback a,
.mail-fallback button {
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    padding: 9px 13px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.mail-fallback a:hover,
.mail-fallback button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 760px) {
    .wrap {
        width: min(100% - 40px, 600px);
    }

    .site-header {
        height: 76px;
    }

    .wordmark img {
        height: 44px;
    }

    .main-nav {
        gap: 22px;
    }

    .hero {
        height: auto;
        min-height: 100svh;
        max-height: none;
    }

    .hero-image {
        background-position: center center;
    }

    .hero-shade {
        background: linear-gradient(90deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .46)), linear-gradient(0deg, rgba(255, 255, 255, .55), transparent 45%);
    }

    .hero-content {
        min-height: calc(100svh - 145px);
        padding-top: 45px;
        padding-bottom: 55px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 1.25px;
        margin-bottom: 25px;
    }

    h1 {
        font-size: clamp(68px, 17vw, 105px);
        margin-bottom: 24px;
    }

    .statement {
        font-size: clamp(26px, 7vw, 36px);
        max-width: 540px;
    }

    .supporting-copy {
        font-size: 14px;
        margin: 18px 0 30px;
    }

    .product-link {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }

    .product-label {
        flex-basis: 100%;
        border: 0;
        padding: 0 0 3px;
    }

    .site-footer {
        font-size: 10px;
        gap: 15px;
    }

    .contact-main {
        grid-template-columns: 1fr;
        gap: 38px;
        padding-top: 42px;
        padding-bottom: 45px;
    }

    .contact-intro {
        padding-top: 0;
    }

    .contact-intro h1 {
        font-size: clamp(54px, 13vw, 76px);
    }

    .contact-details {
        margin-top: 34px;
        grid-template-columns: 1fr 1fr;
        gap: 26px 30px;
    }

    .contact-detail:first-child {
        grid-column: 1 / -1;
    }

    .contact-panel {
        padding: 25px 21px;
    }
}

@media (max-width: 390px) {
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .product-description {
        flex-basis: 100%;
        padding-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}


.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
}

.nav-cta:hover {
    background: #555952;
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .main-nav {
        gap: 14px;
    }

    .nav-link {
        font-size: 12px;
    }

    .nav-cta {
        min-height: 37px;
        padding: 0 13px;
        font-size: 11px;
    }

    .hero-shade {
        background: linear-gradient(90deg, rgba(255, 255, 255, .80), rgba(255, 255, 255, .42) 75%),
        linear-gradient(0deg, rgba(255, 255, 255, .5), transparent 45%);
    }
}

@media (max-width: 420px) {
    .wrap {
        width: calc(100% - 32px);
    }

    .main-nav {
        gap: 10px;
    }

    .nav-cta {
        padding: 0 10px;
        font-size: 10px;
    }
}
