* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; overflow: hidden; }
@font-face {
    font-family: "BDO Grotesk Light";
    src: url(/res/BDOGrotesk-Light.woff2);
    font-weight: normal;
}
@font-face {
    font-family: "BDO Grotesk Regular";
    src: url(/res/BDOGrotesk-Regular.woff2);
    font-weight: normal;
}
body {
    background: black;
    color: white;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    font-family: "BDO Grotesk Regular", sans-serif;
    font-style: normal;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; }
a, button {
    color: white;
    text-decoration: none;
}
a:focus, button:focus { outline: none; }
header, footer {
    padding: 0 24px;
    padding-right: calc(24px + var(--sb, 0px));
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99;
    mix-blend-mode: difference;
}
header {
    top: 24px;
}
footer {
    bottom: 24px;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}
footer.active {
    opacity: 1;
}
ul {
    margin: 24px 0 0 0;
    padding: 0;
    list-style: none;
}
section {
    position: relative;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
section video,
section picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
section video,
section picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
section video::-webkit-media-controls,
section video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}
section:not(.contact) > a {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
section.active {
    opacity: 1;
}

/* Typography */
p {
    line-height: 1.5;
    letter-spacing: -0.25px;
}
div p:not(:first-of-type) { margin-top: 24px; }
p.lead {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
small {
    font-size: 12px;
    opacity: 0.5;
}
h1, h2, h3, h4 { font-weight: normal; }
h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}
h2 {
    font-size: 56px;
    letter-spacing: -1px;
    line-height: 1.1;
    font-family: "BDO Grotesk Light", sans-serif;
}
h3 {
    display: inline-block;
    margin-top: 24px;
    font-size: 20px;
    opacity: 0.75;
    line-height: 1;
}
h4 { font-size: 16px; line-height: 1; }

/* Components */
.button {
    background: white;
    color: black;
    padding: 0 16px;
    display: inline-block;
    border-radius: 24px;
    height: 48px;
    line-height: 48px;
}
.grid {
    display: flex;
}
.grid > :nth-child(3), .grid > :nth-child(4) {
    text-align: right;
}
.grid > :last-child {
    text-align: right;
}

/* Attributes */
.center { text-align: center; }
.mobile-break { display: none; }

/* Info */
aside {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 100;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-in-out;
    padding: 96px 24px 48px;
}
#info-panel.open {
    opacity: 1;
    pointer-events: auto;
}
#info-close {
    position: fixed;
    z-index: 101;
    top: 24px;
    right: calc(24px + var(--sb, 0px));
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 40px;
    height: 40px;
}
/*aside div:not(:first-child) { margin-top: 48px; }*/
aside li { font-size: 25px; letter-spacing: -0.25px; }
aside li { line-height: 1.2; }
aside li span { display: block; }
.experience li:not(:first-child) { margin-top: 24px; }
.experience .meta { font-family: "BDO Grotesk Light", sans-serif; opacity: 0.5; }

/* Sections */
.antidote > a, .capel > a { background: rgba(0,0,0,0.2); }
.antidote .logo {
    width: 300px;
}
.capel .logo {
    width: 192px;
}
.anotherme .logo {
    width: 320px;
}
.invader .logo {
    width: 400px;
}
.default img {
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: calc(100% - 48px);
    height: auto;
    z-index: 1;
    mix-blend-mode: difference;
}
.contact {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact div {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 0 16px;
    gap: 24px;
}

/* WebGL surfaces */
#hero canvas,
.contact .shader-frame canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.contact .shader-frame {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #000;
}
.contact .shader-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

/* Newsletter */
body.newsletter {
    position: relative;
    display: grid;
    height: 100vh;
    height: 100dvh;
    min-height: 520px;
    overflow: hidden;
    scroll-snap-type: none;
    background-position: center;
    background-size: cover;
}
body.newsletter main {
    position: relative;
    width: min(100%, 480px);
    align-self: center;
}
body.newsletter p.lg {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    line-height: 125%;
}
body.newsletter main > p:not(.lg):not(.form-status) {
    max-width: 440px;
}
body.newsletter .newsletter-logo {
    display: block;
    width: 100%;
    aspect-ratio: 343 / 136;
    margin-bottom: 24px;
    background: white;
    -webkit-mask: url(/res/logo-newsletter.svg) center / contain no-repeat;
    mask: url(/res/logo-newsletter.svg) center / contain no-repeat;
    mix-blend-mode: difference;
}
body.newsletter form {
    display: flex;
    gap: 24px;
    margin-top: 68px;
}
body.newsletter input {
    border: 1px solid white;
    background: transparent;
    color: white;
    display: inline-block;
    height: 48px;
    line-height: 48px;
    padding: 0 16px;
    width: 100%;
    border-radius: 0;
    font: inherit;
    outline: none;
}
body.newsletter input::placeholder {
    color: rgba(255,255,255,0.9);
}
body.newsletter button {
    border: 1px solid black;
    background: black;
    color: white;
    display: inline-block;
    height: 48px;
    line-height: 48px;
    flex: 0 0 200px;
    cursor: pointer;
    border-radius: 0;
    font: inherit;
}
body.newsletter .form-status {
    margin-top: 24px;
    font-size: 14px;
    text-align: center;
    line-height: 1;
    opacity: 0.75;
}
@media screen and (max-width: 767px){
    body.newsletter {
        background-image: url(/res/newsletter-mobile.jpg);
        background-position: center top;
        min-height: 680px;
        align-items: start;
        padding: 183px 24px 24px;
    }
    body.newsletter main {
        width: 100%;
        align-self: start;
    }
    body.newsletter form {
        display: block;
        margin-top: 80px;
    }
    body.newsletter input,
    body.newsletter button {
        width: 100%;
    }
    body.newsletter button {
        margin-top: 12px;
    }
}
@media screen and (min-width: 768px){
    body.newsletter {
        background-image: url(/res/newsletter-desktop.jpg);
        justify-items: center;
        padding-top: 6px;
    }
    body.newsletter main {
        margin-left: 10px;
    }
    body.newsletter input {
        flex: 3;
    }
    body.newsletter button {
        flex: 1;
    }
}

/* Breakpoints */
@media screen and (min-width: 768px){
    .grid > * { flex: 1; }
    p.lead { font-size: 32px; }

    .summary {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 48px;
    }
    .summary p { margin: 0 !important; }
    .summary .lead { grid-column: 1 / 3; grid-row: 1; }
    .summary .bio:nth-of-type(1) { grid-column: 1 / 3; grid-row: 2; }
    .summary .bio:nth-of-type(2) { grid-column: 3 / 5; grid-row: 2; }

    .grid-lg {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 48px;
        margin-top: 48px;
    }
    .experience { grid-column: 1 / 3; }
    .clients { grid-column: 3; }
    .services { grid-column: 4; }
    .experience ul {
        columns: 2;
        column-gap: 48px;
    }
    .experience li { break-inside: avoid; }
}

@media screen and (max-width: 767px){
    h3 { font-size: 16px; }
    .mobile-break { display: block; }
    header { top: 16px; padding-inline: 16px; }
    #info-close { top: 16px; right: 16px; }
    footer { bottom: 16px; padding-inline: 16px; }
    .grid { justify-content: space-between; }
    p.lead { word-wrap: break-word; display: block; }
    .default img { bottom: 16px; left: 16px; width: calc(100% - 32px); }
    .antidote .logo { width: 256px; }
    .anotherme .logo { width: 256px; }
    .invader .logo { width: 320px; }
    .grid-lg div { margin-top: 48px; }
}
