:root {
    --bg: #fff;
    --fg: #0a0a0a;
    --muted: #676767;
    --line: #dedede;
    --surface: #f3f3f3;
    --pad: clamp(1.25rem, 5vw, 7rem);
    --content: 72rem;
    --ease: cubic-bezier(.2, .8, .2, 1)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden
}

body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--fg);
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.48;
    -webkit-font-smoothing: antialiased
}

body.menu-open {
    overflow: hidden
}

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

img {
    display: block;
    max-width: 100%
}

button {
    font: inherit
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 100;
    padding: .75rem 1rem;
    background: #000;
    color: #fff
}

.skip-link:focus {
    top: 1rem
}

.site-header {
    height: clamp(7rem, 12vw, 10.5rem);
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: inline-flex;
    align-items: center;
    width: clamp(9rem, 14vw, 14rem);
    line-height: 1
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 617.824/211.9;
    object-fit: contain
}

.brand-mark {
    display: none
}

.menu-toggle {
    position: relative;
    z-index: 60;
    width: 4.25rem;
    height: 4.25rem;
    border: 0;
    background: transparent;
    display: grid;
    place-content: center;
    gap: .55rem;
    cursor: pointer;
    color: var(--fg);
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation
}

.menu-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px
}

.menu-open .menu-toggle {
    color: #fff
}

.menu-toggle span {
    display: block;
    width: 3.4rem;
    height: .42rem;
    border-radius: 99px;
    background: currentColor;
    transition: transform .35s var(--ease), opacity .2s
}

.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(.97rem) rotate(45deg)
}

.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0
}

.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-.97rem) rotate(-45deg)
}

.nav-panel {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #0a0a0a;
    color: #fff;
    padding: clamp(8rem, 15vh, 12rem) var(--pad) 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);
    transition: .35s var(--ease)
}

.menu-open .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: none
}

.nav-links {
    display: grid;
    gap: .15rem
}

.nav-links a {
    font-size: clamp(2.6rem, 7vw, 7.5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.045em;
    width: max-content
}

.nav-links a::after {
    content: "";
    display: block;
    width: 0;
    height: .08em;
    background: #fff;
    transition: width .35s var(--ease)
}

.nav-links a:hover::after, .nav-links a:focus-visible::after {
    width: 100%
}

.nav-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 3rem;
    color: #c8c8c8
}

.main {
    padding: 0 var(--pad)
}

.hero {
    min-height: calc(100svh - clamp(7rem, 12vw, 10.5rem));
    display: grid;
    grid-template-columns:minmax(8rem, 18rem) minmax(0, var(--content));
    align-content: center;
    column-gap: clamp(2rem, 5vw, 6rem);
    padding: 3rem 0 8rem
}

.hero-copy {
    grid-column: 2
}

.eyebrow {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 1.35rem
}

.hero h1, .page-hero h1 {
    font-size: clamp(2.6rem, 5.1vw, 4rem);
    line-height: .98;
    letter-spacing: 0em;
    margin: 0 0 2.2rem;
    font-weight: 900;
    max-width: 27ch
}

.lead {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.4;
    margin: 0;
    max-width: 66ch
}

.hero-contact {
    grid-column: 2;
    margin-top: clamp(5rem, 11vh, 9rem);
    display: grid;
    grid-template-columns:3.5rem 1fr;
    gap: 1.5rem;
    align-items: start
}

.comma {
    font-size: 7rem;
    font-weight: 900;
    line-height: .4;
    transform: rotate(7deg);
    transform-origin: center
}

.contact-block {
    font-size: clamp(1.1rem, 1.45vw, 1.55rem);
    line-height: 1.45
}

.contact-block strong {
    display: block
}

.contact-block p {
    margin: 0 0 1.6rem
}

.feature-image {
    margin-left: calc(var(--pad) * -1);
    margin-right: calc(var(--pad) * -1);
    width: calc(100% + (var(--pad) * 2));
    max-width: none;
    height: min(62vw, 45rem);
    overflow: hidden
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.section {
    padding: clamp(5rem, 11vw, 10rem) 0;
    border-top: 1px solid var(--line)
}

.section-grid {
    display: grid;
    grid-template-columns:minmax(8rem, 18rem) minmax(0, var(--content));
    column-gap: clamp(2rem, 5vw, 6rem)
}

.section-content {
    grid-column: 2
}

.section h2 {
    font-size: clamp(2.35rem, 4vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -.04em;
    margin: 0 0 2.5rem;
    max-width: 18ch
}

.prose {
    max-width: 48rem
}

.prose p {
    font-size: clamp(1.15rem, 1.55vw, 1.5rem);
    margin: 0 0 1.5rem
}

.principles {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 4rem
}

.principle {
    background: #fff;
    min-height: 19rem;
    padding: clamp(1.6rem, 3vw, 3.25rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.principle-index {
    font-size: .9rem;
    color: var(--muted)
}

.principle h3 {
    font-size: clamp(2.1rem, 3.5vw, 2rem);
    letter-spacing: 0em;
    margin: 0;
    line-height: 1
}

.principle p {
    max-width: 25rem;
    margin: 1.5rem 0 0;
    color: #333;
    min-height: 5rem;
}

.statement {
    background: #0a0a0a;
    color: #fff;
    margin-left: calc(var(--pad) * -1);
    margin-right: calc(var(--pad) * -1);
    width: calc(100% + (var(--pad) * 2));
    max-width: none;
    padding: clamp(6rem, 13vw, 12rem) var(--pad)
}

.statement p {
    font-size: clamp(3rem, 7vw, 8rem);
    font-weight: 900;
    line-height: .94;
    letter-spacing: -.055em;
    margin: 0;
    max-width: 13ch
}

.page-hero {
    padding: clamp(3rem, 8vw, 8rem) 0 clamp(5rem, 10vw, 9rem);
    display: grid;
    grid-template-columns:minmax(8rem, 18rem) minmax(0, var(--content));
    column-gap: clamp(2rem, 5vw, 6rem)
}

.page-hero > div {
    grid-column: 2
}

.page-content {
    display: grid;
    grid-template-columns:minmax(8rem, 18rem) minmax(0, var(--content));
    column-gap: clamp(2rem, 5vw, 6rem);
    padding-bottom: clamp(6rem, 12vw, 11rem)
}

.page-content article {
    grid-column: 2;
    max-width: 53rem
}

.page-content h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    margin: 3.2rem 0 1.3rem
}

.page-content p {
    font-size: clamp(1.15rem, 1.45vw, 1.42rem);
    margin: 0 0 1.45rem
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-weight: 800;
    border-bottom: 2px solid;
    padding-bottom: .3rem
}

.site-footer {
    padding: clamp(4rem, 8vw, 7rem) var(--pad);
    background: #0a0a0a;
    color: #fff;
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 4rem
}

.footer-brand {
    width: clamp(10rem, 17vw, 17rem)
}

.footer-brand img {
    display: block;
    width: 100%;
    height: auto
}

.footer-meta {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 2rem
}

.footer-meta p {
    margin: 0;
    color: #c7c7c7
}

.footer-meta strong {
    color: #fff
}

.reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity .8s var(--ease), transform .8s var(--ease)
}

.reveal.is-visible {
    opacity: 1;
    transform: none
}

@media (max-width: 850px) {
    .site-header {
        height: 7rem
    }

    .brand {
        width: 10rem
    }

    .menu-toggle {
        width: 3.5rem;
        height: 3.5rem
    }

    .menu-toggle span {
        width: 2.7rem;
        height: .34rem
    }

    .menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(.89rem) rotate(45deg)
    }

    .menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-.89rem) rotate(-45deg)
    }

    .hero, .section-grid, .page-hero, .page-content {
        grid-template-columns:1fr
    }

    .hero-copy, .hero-contact, .section-content, .page-hero > div, .page-content article {
        grid-column: 1
    }

    .hero {
        align-content: start;
        padding-top: 5rem
    }

    .hero-contact {
        margin-top: 5rem
    }

    .lead {
        font-size: 1.45rem
    }

    .principles {
        grid-template-columns:1fr
    }

    .principle {
        min-height: 15rem
    }

    .site-footer {
        grid-template-columns:1fr
    }

    .footer-meta {
        grid-template-columns:1fr 1fr
    }
}

@media (max-width: 520px) {
    body {
        font-size: 16px
    }

    .site-header {
        padding-top: .5rem
    }

    .hero {
        min-height: auto;
        padding-top: 3.25rem;
        padding-bottom: 5rem
    }

    .hero h1, .page-hero h1 {
        font-size: 2.7rem
    }

    .lead {
        font-size: 1.3rem;
        line-height: 1.42
    }

    .hero-contact {
        grid-template-columns:2rem 1fr;
        gap: 1rem
    }

    .comma {
        font-size: 5rem
    }

    .contact-block {
        font-size: 1.05rem
    }

    .feature-image {
        height: 75vw
    }

    .principle {
        min-height: 13rem
    }

    .footer-meta {
        grid-template-columns:1fr
    }

    .nav-links a {
        font-size: 2.65rem
    }

    .statement p {
        font-size: 3.2rem
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important
    }

    .reveal {
        opacity: 1;
        transform: none
    }
}


/* Layout based on the approved dineo visual */
body {
    background-color: #fff;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .05) 24rem, rgba(255, 255, 255, .82) 45rem, #fff 62rem),
    url("../img/abstract-commerce.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: max(100%, 1200px) auto;
}

.site-header {
    position: relative;
    z-index: 10;
    background: transparent
}

.main {
    position: relative;
    background: transparent
}

.page-hero {
    padding-top: clamp(2.5rem, 6vw, 6rem);
    padding-bottom: clamp(3.5rem, 7vw, 6rem)
}

.page-content {
    padding-bottom: clamp(4rem, 8vw, 7rem)
}

.site-footer {
    background: transparent;
    color: var(--fg);
    grid-template-columns:minmax(8rem, 18rem) minmax(0, var(--content));
    column-gap: clamp(2rem, 5vw, 6rem);
    padding-top: clamp(2rem, 4vw, 4rem);
    padding-bottom: clamp(6rem, 11vw, 11rem);
}

.footer-contact {
    grid-column: 2;
    display: grid;
    grid-template-columns:2.4rem minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
    max-width: 34rem;
}

.footer-comma {
    font-size: 6rem;
    font-weight: 900;
    line-height: .42;
    transform: rotate(7deg);
    transform-origin: center;
    margin-top: .3rem;
}

.footer-details {
    font-size: clamp(1.05rem, 1.2vw, 1.28rem);
    line-height: 1.45
}

.footer-details p {
    margin: 0 0 1.55rem;
    color: var(--fg)
}

.footer-details strong {
    color: var(--fg)
}

.footer-legal {
    font-size: .95rem;
    color: var(--muted)
}

.footer-legal a {
    text-decoration: underline;
    text-underline-offset: .18em
}

@media (max-width: 850px) {
    body {
        background-size: auto 48rem;
        background-position: center top
    }

    .site-footer {
        grid-template-columns:1fr
    }

    .footer-contact {
        grid-column: 1
    }
}

@media (max-width: 520px) {
    body {
        background-size: auto 37rem;
        background-position: center top
    }

    .site-footer {
        padding-top: 1rem
    }

    .footer-contact {
        grid-template-columns:1.8rem 1fr;
        gap: 1rem
    }

    .footer-comma {
        font-size: 4.7rem
    }
}
