:root {
    --menuheight: 68px;
    --textcolor: #333338;
    --negativetextcolor: #FDFDFF;
    --sitebackground: #FDFDFF;
    --negativebackground: #333338;
    --linkcolor: #333338;
    --invertlinkcolor: #EEF;
    --invertlinkbackground: #773388;
    --headfeature: #DDDDE2;
    --heroedge: #B8B8BF;
    --heroinksoft: #5B5B63;
    --heroaction: #212127;
    --heroactiontext: #F7F7F9;
    --herotopspace: clamp(8rem, 11vw, 16rem);
    --heroanimduration: 520ms;
    --hero-scroll: 0;
    --heroshadowoffset: clamp(0.8rem, 2.2vw, 1.6rem);
    --listmarkercolor: rgba(51, 51, 56, 0.72);
    --listmarkerbg: rgba(51, 51, 56, 0.08);
    --listslashcolor: rgba(51, 51, 56, 0.82);
    --strongweight: 600;
}

* {
    margin:0;
    padding:0;
    box-sizing: border-box;
}
html {
    font-size: 10px;
}
body {
    font-family: hind, arial, sans-serif;
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    font-weight: 300;
    color: var(--textcolor);
    background-color: var(--sitebackground);
    margin: var(--menuheight) 0 0 0;
}

h1, h2, h3, h4 {
    font-family: "Playfair Display", bodoni, serif;
    line-height: 1.1em;
}

h1 {
    font-size: clamp(8rem, 20vw, 15rem);
    line-height: clamp(8rem, 20vw, 15rem);
}

h2 {
    font-size: clamp(15rem, 20vw, 27rem);
}

h3 {
    font-size: 4rem;
}

h4 {
    font-size: 2.5rem;
    margin: 0;
    text-align: center;
}

a {
    color: var(--linkcolor);
    text-decoration: none;
    position: relative;
}

a:hover {
    text-decoration-color: none;
    color: var(--linkcolor) !Important;
}

p a {
    transition-duration: 0.15s;
    box-shadow: inset 0 -0.9rem 0 0 rgba(200,200,200,0.8);
    padding: 0 0.25rem;
    line-height: 2rem;
    display: inline-block;
}

p a:hover {
    transition-duration: 0.4s;
    box-shadow: inset 0 -1.3em 0 rgba(200,200,200,0.8);
}

a:visited {
    color: var(--linkcolor);
}

a:focus-visible {
    outline: 3px solid var(--textcolor);
    outline-offset: 3px;
}

strong {
    font-weight: var(--strongweight);
}

#work a {
    color: var(--invertlinkcolor);
    box-shadow: inset 0 -0.9rem 0 0 var(--invertlinkbackground);
}

#work a:hover {
    color: var(--invertlinkcolor) !Important;
    box-shadow: inset 0 -1.3em 0 var(--invertlinkbackground);
}

header.hero {
    position: relative;
    width: min(1200px, calc(100% - clamp(1.6rem, 4vw, 4rem) - var(--heroshadowoffset)));
    margin: var(--herotopspace) auto clamp(10rem, 20vw, 14rem);
    padding-block: clamp(3.6rem, 11vw, 8rem);
    padding-inline: clamp(1.6rem, 4vw, 4rem);
    display: grid;
    gap: clamp(3rem, 8vw, 6.8rem);
    background:
        linear-gradient(105deg, transparent 0 58%, var(--headfeature) 58% 100%),
        linear-gradient(0deg, var(--sitebackground), var(--sitebackground));
    border: 1px solid var(--heroedge);
    box-shadow: var(--heroshadowoffset) var(--heroshadowoffset) 0 rgba(51, 51, 56, 0.13);
    overflow: hidden;
    transform: translateX(calc(var(--heroshadowoffset) * -0.5));
}

header.hero::before {
    content: "";
    position: absolute;
    left: -10%;
    top: 2rem;
    width: clamp(180px, 55vw, 450px);
    height: clamp(110px, 22vw, 220px);
    background: linear-gradient(90deg, rgba(51, 51, 56, 0.09), rgba(51, 51, 56, 0));
    transform:
        translate3d(calc(var(--hero-scroll) * 2.2rem), calc(var(--hero-scroll) * -1.2rem), 0)
        rotate(-6deg);
    pointer-events: none;
}

.hero__panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(2.8rem, 6.5vw, 4.8rem);
}

header.hero p {
    padding: 0;
    max-width: none;
}

.hero__kicker {
    margin: 0;
    font-size: clamp(1.4rem, 1.6vw, 1.8rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--heroinksoft);
}

.hero__name {
    margin: 0;
    max-width: min(7.8ch, 100%);
    line-height: 0.93;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    background-color: var(--headfeature);
    justify-self: start;
    padding-inline: clamp(0.8rem, 2.6vw, 1.4rem);
    padding-block-start: clamp(0.3rem, 0.9vw, 0.8rem);
    padding-block-end: clamp(0.8rem, 1.8vw, 1.6rem);
}

.hero__name span {
    display: block;
}

.hero__name span:nth-child(1) {
    font-size: clamp(5.8rem, 19vw, 17rem);
}

.hero__name span:nth-child(2) {
    font-size: clamp(5.1rem, 16.5vw, 15rem);
}

.hero__value {
    margin: 0;
    font-family: "Playfair Display", bodoni, serif;
    font-size: clamp(2rem, 4.1vw, 4.6rem);
    line-height: 1.08;
    max-width: min(20ch, 100%);
}

.hero__proof {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0;
    align-items: center;
    font-size: clamp(1.4rem, 1.9vw, 1.8rem);
    color: var(--heroinksoft);
    border-top: 1px solid var(--heroedge);
    padding: clamp(2.4rem, 5.2vw, 3.8rem) 0 0;
}

.hero__proof span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.hero__proof span + span::before {
    content: "\2022";
    margin: 0 0.7rem;
    color: var(--heroinksoft);
}

.hero-reveal {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity var(--heroanimduration) ease, transform var(--heroanimduration) ease;
}

body.is-ready .hero-reveal {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

body.is-ready .hero__proof.hero-reveal {
    transition-delay: 110ms;
}

body.is-ready .hero__panel {
    transform: translate3d(0, calc(var(--hero-scroll) * -1rem), 0);
}

body.is-ready .hero__proof {
    transform: translate3d(0, calc(var(--hero-scroll) * -0.7rem), 0);
    opacity: calc(1 - (var(--hero-scroll) * 0.24));
}

footer {
    padding: 4rem 0 4rem 0;
    text-align: center;
}

img {
    width: 100%;
}

article {
    padding: clamp(4rem, 8vw, 6rem) 0 4rem 0;
    overflow: hidden;
}

article p:first-child {
    margin: 2rem auto 0rem auto;
}

ul {
    margin: 0;
    padding: 0;
}

p {
    margin: 2rem auto 2rem auto;
    max-width: 50ch;
    line-height: 2.5rem;
    padding: 0 2rem;
}

nav {
    top: 0;
    position: fixed;
    display: flex;
    background-color: var(--sitebackground);
    height: var(--menuheight);
    width: 100%;
    transition: opacity 0.35s ease, top 0.35s ease;
    z-index: 20;
}

nav.hiddenmenu {   
    opacity: 0;
    top: calc(var(--menuheight) * -1);
}

nav > ul {
    list-style: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav > ul > li {
    text-align: center;
}

nav a {
    transition: all 0.3s ease-in;
    display: inline-block;
    box-sizing: content-box;
    padding: 0.8rem 1.8rem;
    margin: 0 0.3rem 0 0.3rem;
    color: var(--linkcolor);
    text-decoration: none;
    border: 2px solid var(--sitebackground);
    border-radius: 20px;
}

nav a:focus,
nav a:hover {
    background-position: 200% 50%;
    text-decoration-color: none;
    color: var(--linkcolor) !Important;
    border: 2px solid var(--textcolor);
    border-radius: 40px;
}

article h3 {
    margin: 3rem auto 0 auto;
    text-align: center;
}

article h4 {
    margin: clamp(4.2rem, 6.5vw, 6.4rem) auto clamp(1.1rem, 2vw, 2rem);
}

article h4 + p {
    margin-top: 0;
}

#labs article h4 {
    margin: clamp(1.2rem, 2vw, 1.8rem) auto clamp(0.8rem, 1.4vw, 1.4rem);
}

article :is(ul, ol) {
    margin: 0 auto;
    max-width: 50ch;
    padding: 0 2rem;
}

article li {
    margin: 0;
    font-size: clamp(1.7rem, 1.85vw, 2.05rem);
    line-height: 1.34;
}

article li + li {
    margin-top: clamp(0.45rem, 0.9vw, 0.9rem);
}

article ul {
    list-style: none;
    margin-top: clamp(0.4rem, 1vw, 0.9rem);
}

article ul li {
    position: relative;
    padding-left: clamp(1.8rem, 2.4vw, 2.4rem);
}

article ul li::before {
    content: "/";
    position: absolute;
    left: clamp(0.1rem, 0.3vw, 0.3rem);
    top: -0.02em;
    font-family: "Playfair Display", bodoni, serif;
    font-size: clamp(2rem, 2vw, 2.3rem);
    line-height: 1;
    color: var(--listslashcolor);
}

article ol {
    list-style: none;
    counter-reset: article-list-item;
}

article ol li {
    position: relative;
    counter-increment: article-list-item;
    padding-left: clamp(3.2rem, 4.5vw, 4.4rem);
}

article ol li::before {
    content: counter(article-list-item, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.05em;
    min-width: 2.2ch;
    padding-right: 0.6rem;
    font-family: "Playfair Display", bodoni, serif;
    font-size: clamp(1.5rem, 1.8vw, 1.9rem);
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--listmarkercolor);
    background:
        linear-gradient(to top, transparent 32%, var(--listmarkerbg) 32% 80%, transparent 80%);
}

section > h2 {
    text-align: center;
    margin: auto;
    line-height: clamp(11.8rem, 15.8vw, 21.2rem);
}

#work > article {
    --listmarkercolor: rgba(253, 253, 255, 0.8);
    --listmarkerbg: rgba(253, 253, 255, 0.16);
    --listslashcolor: #d15aff;
    background-color: var(--negativebackground);
    color:var(--negativetextcolor);
}

#labs {
    background-color: var(--negativebackground);
}

#labs > h2 {
    color: var(--negativetextcolor);
}

#labs > article {
    display: flex;
    flex-flow: column;
    background-color: var(--negativetextcolor);
}

#labs article:nth-child(2n) img {
    transform: rotateZ(-4deg) translateX(-9%);
    width: 120%;
    margin-top: 1rem;
}

#labs article:nth-child(2n+1) img {
    transform: rotateZ(4deg) translateX(-11%);
    width: 120%;
    margin-top: 4rem;
}

#contact {
    padding: clamp(2.4rem, 5vw, 5.2rem) 0 clamp(3.2rem, 6vw, 6.8rem);
}

#contact div {
    font-family: "Playfair Display", bodoni, serif;
    background-color: var(--headfeature);
    width: fit-content;
    max-width: min(92%, 700px);
    margin: auto;
    padding: clamp(3.2rem, 8vw, 6.4rem) clamp(2rem, 6vw, 4rem);
}

#contact h3 {
    margin-top: 0;
    margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

#contact p {
    margin: 0;
    max-width: none;
    padding: 0;
    line-height: 1.5;
}

#contact p + p {
    margin-top: clamp(1rem, 2.4vw, 1.8rem);
}

#contact p a {
    padding: 0.2rem 0.35rem;
    line-height: 1.35;
}

#contact h2 {
    font-size: clamp(9rem, 20vw, 27rem);
    line-height: 1.5;
}

@media screen and (min-width: 1000px) {
    header.hero {
        margin-top: clamp(5.6rem, 7vw, 9rem);
        margin-bottom: clamp(10.4rem, 16vw, 14.8rem);
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        align-items: end;
    }

    .hero__panel {
        grid-column: 1;
        gap: clamp(2rem, 2.4vw, 2.6rem);
    }

    .hero__proof {
        grid-column: 1 / -1;
        font-size: clamp(1.5rem, 1.7vw, 2rem);
        padding: 1.4rem 0;
        gap: 0.4rem 0;
        align-items: center;
        border-bottom: 1px solid var(--heroedge);
    }

    #labs div {
        max-width: 50ch;
        padding: 0;
    }

    #labs article:nth-child(2n+1) img {
        transform: rotateZ(4deg) translateX(-15%);
    }

    #labs article:nth-child(2n) img {
        transform: rotateZ(-4deg) translateX(2%);
    }

    #labs article {
        flex-flow: row;
        align-items: center;
    }

    #labs article:nth-child(2n+1) {
        flex-flow: row-reverse;
    }

    #labs img {
        width: 100%;
    }

}

@media screen and (min-width: 1200px) {
    h3 {
        font-size: 5.5rem;
    }

    h4 {
        font-size: 3.75rem;
        text-align: center;
    }

    p {
        line-height: 3.2rem;
        max-width: 50ch;
    }

    article :is(ul, ol) {
        max-width: 50ch;
    }

    nav > ul > li a {
        margin: 0 1rem;
        width: 8rem;
    }

    #labs div {
        max-width: 50ch;
        padding: 0 7rem;
    }

    #labs img {
        width: 120%;
    }
}

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

    .hero-reveal,
    body.is-ready .hero-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    body.is-ready .hero__proof {
        opacity: 1;
    }

    nav {
        transition: none;
    }
}
