* { 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.55) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

/* 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; }
}