body {
    margin: 0;
    font-size: var(--bs-body-font-size);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
    text-align: var(--bs-body-text-align);
    background-color: var(--bs-body-bg);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

:root,
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "futura-pt", sans-serif;
    font-style: normal;
    font-weight: 400;
    --bs-body-font-size: 1.125rem;
    --bs-body-line-height: 1.26;
    --bs-body-color: #000;
    --bs-link-color-rgb: 0, 0, 0;
    --bs-link-color-rgb-dark: 255, 255, 255;
    --bs-link-hover-color-rgb: 255, 0, 0;
    --portfolio-red: #E81E1E;
    --portfolio-black: #000;
    --portfolio-white: #fff;
    --portfolio-gray-200: #7F7F7F;
}

/* Fonts */

@font-face {
font-family:"futura-pt"; /*Futura PT Heavy*/
src:url("../fonts/futura-pt-heavy.woff2") format("woff2"),
    url("../fonts/futura-pt-heavy.woff") format("woff"),
    url("../fonts/futura-pt-heavy.otf") format("opentype");
font-display:auto;font-style:normal;font-weight:700;font-stretch:normal;
}

@font-face {
font-family:"futura-pt"; /*Futura PT Book*/
src:url("../fonts/futura-pt-book.woff2") format("woff2"),
    url("../fonts/futura-pt-book.woff") format("woff"),
    url("../fonts/futura-pt-book.otf") format("opentype");
font-display:auto;font-style:normal;font-weight:400;font-stretch:normal;
}

@font-face {
font-family:"futura-pt"; /*Futura PT Medium*/
src:url("../fonts/futura-pt-medium.woff2") format("woff2"),
    url("../fonts/futura-pt-medium.woff") format("woff"),
    url("../fonts/futura-pt-medium.otf") format("opentype");
font-display:auto;font-style:normal;font-weight:500;font-stretch:normal;
}

@font-face {
font-family:"futura-pt-bold"; /*Futura PT Bold*/
src:url("../fonts/futura-pt-bold.woff2") format("woff2"),
    url("../fonts/futura-pt-bold.woff") format("woff"),
    url("../fonts/futura-pt-bold.otf") format("opentype");
font-display:auto;font-style:normal;font-weight:700;font-stretch:normal;
}

@font-face {
font-family:"nb-architekt-r-regular"; /*NB Architekt*/
src:url("../fonts/nb_architekt_r_regular-webfont.woff2") format("woff2");
font-display:auto;font-style:normal;font-weight:normal;font-stretch:normal;
}

/* Typography */

a {
    text-decoration: underline;
    text-decoration-style: dotted;
}

a {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}

.dark a {
    color: var(--bs-link-color-rgb-dark);
}

p {
    margin-top: 0;
    margin-bottom: 1.3rem;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-family:"futura-pt-bold";
}

h1 {
    margin: 0;
    font-size: 3.9rem;
    letter-spacing: -0.19rem;
    line-height: 1.19;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.08rem;
    line-height: 1.19;
}

dl, ol, ul {
    margin-top: 0;
    margin-bottom: 1rem;
}

img, svg {
    vertical-align: middle;
}

.img-fluid {
    display: block;
    max-width: 100%;
    height: auto;
}

.img-round {
    border-radius: 6px;
}

.main-link {
    padding-bottom: 1.05rem;
    font-family: "futura-pt-bold";
    font-size: 0.84rem;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--portfolio-red);
}

.main-link:hover {
    color: var(--bs-body-color);
}

.subtitle-small {
    align-self: end;
    margin-bottom: 1.3rem;
    font-family: "futura-pt-bold";
    font-size: 0.84rem;
    text-transform: uppercase;
}

.subtitle-small:after {
    content: "";
    display: inline-block;
    width: 0.563rem;
    height: 0.563rem;
    margin-left: 0.363rem;
    background-color: var(--portfolio-red);
}

.subtitle-small.left:after { display: none; }

.subtitle-small.left:before {
    content: "";
    display: inline-block;
    width: 0.563rem;
    height: 0.563rem;
    margin-right: 0.363rem;
    background-color: var(--portfolio-red);
}

.gray-200 {
    color: var(--portfolio-gray-200);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.9rem;
    }

    .subtitle-small {
        margin-bottom: 0.7rem;
    }
}

/* Base Layout */

*, ::after, ::before {
    box-sizing: border-box;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.align-items-center {
    align-items: center !important;
}

.grid {
    display: grid;
    grid-template-rows: repeat(var(--bs-rows, 1), 1fr);
    grid-template-columns: repeat(var(--bs-columns, 12), 1fr);
    gap: var(--bs-gap, 1.5rem);
}

.grid .g-col-3 {
    grid-column: auto / span 3;
}

.grid .g-col-4 {
    grid-column: auto / span 4;
}

.grid .g-col-12 {
    grid-column: auto / span 12;
}

@media (min-width: 576px) {
    .grid .g-col-sm-4 {
        grid-column: auto / span 4;
    }

    .grid .g-col-sm-6 {
        grid-column: auto / span 6;
    }
}

.container-xxl {
    max-width: 1536px;
    margin-left: auto;
    margin-right: auto;
}

.container-xxl.px-5 {
    padding-right: 2.5rem !important;
    padding-left: 2.5rem !important;
}

.main-section {
    padding-top: 7.72rem;
    padding-bottom: 7.72rem;
}

.main-section.dark {
    color: var(--portfolio-white);
    background-color: var(--portfolio-black);
}

.main-section.gray {
    background-color: #d5d5d5;
}

.main-section .section-header {
    padding-bottom: 4.05rem;
}

.main-section .section-header .subtitle-small {
    margin-bottom: 0.6rem;
}

@media (max-width: 818px) {
    .homepage .main-section .section-header {
        flex-direction: column-reverse;
    }

    .home-section .subtitle-small {
        align-self: unset;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 768px) {
    .container-xxl.px-5 {
        padding-right: 1.25rem !important;
        padding-left: 1.25rem !important;
    }

    .main-section .section-header {
        padding-bottom: 3.05rem;
    }
}

/* Main Header */

.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.main-header {
    height: 69px;
    border-bottom: 1px solid #d1d1d1;
}

.dark .main-header {
    border-bottom-color: #363636;
}

.main-logo {
    display: block;
    margin: 0;
    font-size: 1.225rem;
    font-family: "futura-pt-bold";
    line-height: 0.91;
    color: var(--portfolio-red);
    text-transform: uppercase;
    text-decoration: none;
}

.main-header .nav a {
    margin-right: 3rem;
    padding-bottom: 0;
    border: none;
    text-decoration: none;
}

.main-header .nav a:hover {
    color: var(--bs-body-color);
}

/* Main Footer */

.main-footer {
    height: 69px;
    margin-top: 8.75rem;
    border-top: 1px solid #d1d1d1;
    border-bottom: 0;
}

.dark .main-footer {
    border-top-color: #363636;
}

.main-footer .nav a {
    padding-left: 5.25rem;
    padding-bottom: 0;
    border: none;
    text-decoration: none;
    color: var(--portfolio-black);
}

.dark .main-footer .nav a {
    color: var(--portfolio-white);
}

.main-footer .subtitle-small {
    margin-bottom: 0;
}

.main-footer .subtitle-small:after {
    display: none;
}

@media (max-width: 612px) {
    .main-footer {
        flex-direction: column;
        align-items: flex-start !important;
        height: auto;
        padding: 1.5rem 0 1.3rem 0;
    }

    .main-footer .nav {
        flex-direction: column;
    }

    .main-footer .nav a {
        padding-left: 0;
    }

    .main-footer .subtitle-small {
        margin-bottom: 1rem;
    }
}

/* Hero Home */

.hero-home .develop {
    visibility: hidden;
}

.homepage.develop .hero-home .develop {
    visibility: visible;
}

.hero-home {
    height: calc(91.5vh - 69px);
    min-height: 527px;
    max-height: 692px;
    padding-top: 0;
    padding-bottom: 0;
}

.hero-home .grid.container {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0;
    width: 100%;
    overflow: hidden;
}

.hero-home .grid.design,
.hero-home .grid.develop {
    grid-template-columns: 3rem 1fr 1fr 3rem;
    grid-row: 1;
    grid-column: 1;
    gap: 0;
    transform: translateY(-1.8vh); /* offset content from the top */
}

@media (max-height: 680px) { /* remove offset on smaller screens */
    .hero-home .grid.design,
    .hero-home .grid.develop {
        transform: none;
    }
}

.hero-home .col-2 {
    padding-left: 2.6rem;
}

.hero-home .col-dots-2 {
    align-items: end;
}

.hero-home .grid-dot div {
    position: relative;
    width: 10px;
    height: 4px;
    background-color: var(--portfolio-black);
}

.hero-home .grid-dot:first-child {
    flex-basis: 33%;
}

.hero-home .grid-dot:last-child {
    margin-top: auto;
}

.hero-home .grid-dot:first-child div { /* offset top grid dots */
    margin-top: -26px;
}

.hero-home .grid-dot:last-child div { /* offset bottom grid dots */
    transform: translateY(24px);
}

.hero-home .col-dots-2 .grid-dot:first-child div:after { /* DEV text */
    content: "DEV";
    position: absolute;
    top: 27px;
    left: -160.7px;
    font-family:"futura-pt-bold";
    font-size: 7.45rem;
    letter-spacing: -0.6rem;
    line-height: 4.6rem;
    color: #E0E0E0;
}

.hero-home .design .col-dots-2 .grid-dot:first-child div:after {
    color: #000;
    opacity: 0.12;
}

.hero-home .subtitle-small {
    margin: 0;
    padding: 0;
    line-height: 0.5rem;
    writing-mode: sideways-lr;
}

.hero-home .subtitle-small:after {
    display: none;
}

.hero-home img, .hero-home svg {
    display: block;
    margin-left: auto;
    max-width: 100%;
    height: auto;
}

.hero-home .heading-container {
     transform-origin: bottom left;
}

.hero-home h1 {
    position: relative;
    display: inline-block;
    margin-bottom: 0;
    font-size: 4.688rem;
    font-weight: normal;
    line-height: 4rem;
    letter-spacing: -0.25rem;
    text-transform: uppercase;
}

.hero-home p {
    max-width: 29.125rem;
    margin-bottom: 0;
    padding-left: 0.3rem;
}

/* Hero home - Designer */

.hero-home .grid.design {
    container-type: inline-size;
    z-index: 1;
}

.hero-home .design h1.designer {
    margin:  min(7.9vw, 116px) 0 0 -106.2px;
    padding: 0.3rem 0;
    line-height: 0;
    background-color: #fff;
    outline: 0.9rem solid #fff;
}

.hero-home .design h1.designer:after {
    content: "";
    display: inline-block;
    margin-left: 0.5rem;
    width: 31px;
    height: 51px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="31" height="51" fill="none"><path fill="%23000" d="M22 0h9L9 51H0L22 0Z"/></svg>') no-repeat center / contain;
}

.hero-home .design h1.developer:after {
    content: "";
    display: inline-block;
    position: absolute;
    bottom: 0.285rem;
    width: 3rem;
    height: 0.375rem;
    margin-left: 0.5rem;
    background-color: var(--portfolio-red);
}

.hero-home .design h1.developer {
    margin-bottom: 2.5rem;
}

/* Hero home - Developer */

.develop .header-container,
.develop .hero-home {
    background-color: #212121;
}

.develop .main-logo,
.develop .main-header .nav a,
.develop .main-header .nav a:hover {
    color: #C6C6C6;
}

.hero-home .grid.develop {
    pointer-events: none;
    z-index: 2;
}

.hero-home .grid.develop > * { /* prevent dev headings from causing column grow */
    min-width: 0;
}

.hero-home .develop .grid-dot div {
    background-color: #898989;
}

.hero-home .develop .col-dots-2 .grid-dot:first-child div:after { /* DEV text */
    content: "DEV";
    position: absolute;
    left: -155px;
    font-family:"nb-architekt-r-regular";
    font-size: 6.788rem;
    letter-spacing: 0;
    line-height: 4.1rem;
    color: rgba(255, 255, 255, 0.07);
}

.hero-home .develop .subtitle-small {
    padding: 0px;
    font-family: nb-architekt-r-regular;
    font-size: 0.838rem;
    color: rgb(109, 109, 109);
}

.hero-home .develop .designer-container,
.hero-home .develop .developer-container {
    display: inline-block;
    max-width: 0;
    vertical-align: middle;
    overflow: hidden;
}

.hero-home .develop .designer-container {
    margin: min(7.6vw, 111.7px) 0 0 -106.2px;
    background-color: #F0B56D;
}

.hero-home .develop .developer-container {
    margin-bottom: 2.2rem;
    background-color: #D06AA7;
}

.hero-home .develop h1 {
    padding: 0 0.3rem 0.5rem 0.6rem;
    line-height: 3.88rem;
    font-family:"nb-architekt-r-regular";
    font-size: 3.963rem;
    letter-spacing: 0.23rem;
    color: var(--portfolio-black);
    -webkit-font-smoothing: auto;
}

.hero-home .develop h1:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: -0.9rem;
    width: 0.90rem;
    height: 4.4rem;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none"><rect width="100%" height="100%" fill="%23212121"/><path fill="%23F0B56D" d="M0 0h7v7H0zM7 7h7v7H7z"/></svg>');
    background-size: contain;
}

.hero-home .develop h1.developer:after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none"><rect width="100%" height="100%" fill="%23212121"/><path fill="%23D06AA7" d="M0 0h7v7H0zM7 7h7v7H7z"/></svg>');
}

.hero-home .develop h1.designer {
    background-color: #F0B56D;
}

.hero-home .develop h1.developer {
    background-color: #D06AA7;
}

.hero-home .develop .col-2 p {
    margin-bottom: 0.188rem;
    padding: 0;
    font-family:"nb-architekt-r-regular";
    font-size: 0.938rem;
    line-height: 1.05rem;
    color: #6D6D6D;
}

/* Hero Home animations start */

.hero-home .trigger-anim { cursor: pointer; }

.hero-home .grid.design {
    transition: opacity 50ms ease-in-out;
}

main.develop .hero-home .grid.design {
    opacity: 0;
}

.header-container, .hero-home {
    transition: background-color 100ms ease-in-out;
}

.main-header {
    transition: border-color 100ms ease-in-out;
}

.develop .main-header {
    border-bottom-color: rgb(47, 47, 47);
}

.hero-home .grid.develop {
    opacity: 0;
    transition: opacity 100ms ease-in-out;
}

main.develop .hero-home .grid.develop {
    opacity: 1;
}

/* tweak DESIGNER border animation */

.hero-home .design h1.designer {
    transition: background-color 200ms linear, outline-color 200ms linear;
}

main.develop .hero-home .design h1.designer {
    background-color: rgba(255, 255, 255, 0);
    outline-color: rgba(255, 255, 255, 0);
}

/* H1 containers */

main.develop .hero-home .develop .designer-container {
    animation:
        expandWidth 0.6s cubic-bezier(0.71, 0, 0, 1) forwards,
        blink 95ms linear 450ms forwards;
}

main.develop .hero-home .develop .developer-container {
    animation:
        expandWidth 0.6s cubic-bezier(0.71, 0, 0, 1) 200ms forwards,
        blink 95ms linear 650ms forwards;
}

@keyframes expandWidth {
    to {
        max-width: 400px;
        padding-right: 0.81rem;
    }
}

@keyframes blink {
    0%   { opacity: 0; }
    33%  { opacity: 1; }
    66%  { opacity: 0; }
    100% { opacity: 1; }
}

/* blinking cursor */

.hero-home .design h1.developer::after {
    opacity: 1;
    animation: cursorBlink 1s infinite steps(1, end);
}

@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Hero Home animations end */

/* Hero Home media queries */

@media (max-width: 1060px) {

    /* Design */

    .hero-home .design .col-2 {
        padding-left: calc(8.5vw - 3rem);
    }

    .hero-home .design h1.designer {
        margin-left: -10vw;
        outline-width: calc(5.9vw - 3rem);
    }

    .hero-home .design h1.developer {
        margin-bottom: calc(8.5vw - 3rem);
    }

    .hero-home .design .col-dots-2 .grid-dot:first-child div:after {
        left: -16.2cqw;
        top: -0.5cqw;
        font-size: max(5rem, min(7.45rem, 11vw)); /* min, max, scale factor*/
    }

    .hero-home .develop .col-dots-2 .grid-dot:first-child div:after {
        left: -13.8cqw;
        top: -0.7cqw;
        font-size: max(5rem, min(6.788rem, 9.8vw)); /* min, max, scale factor*/
    }

    /* Develop */

    .hero-home .develop .col-2 {
        padding-left: calc(8.5vw - 3rem);
    }

    .hero-home .develop h1 {
        font-size: max(3rem, min(4.688rem, 6vw));
        line-height: max(2rem, min(4rem, 5.9vw));
    }

    .hero-home .develop .designer-container {
        margin-left: -10vw;
    }

    @keyframes expandWidth {
        to {
            max-width: 39.5vw;
            padding-right: 0.81rem;
        }
    }
}

@media (max-width: 924px) {
    .hero-home .grid-dot:first-child div {
        margin-top: -63px;
    }

    .hero-home .grid-dot:last-child div {
        bottom: -54px;
    }
}

/* Media queries mobile */

@media (max-width: 768px) {
    .main-header .nav a {
        margin: 0 0 0 3rem;
    }

    .hero-home {
        height: unset;
        max-height: unset;
        min-height: unset;
        padding-top: 15.1vw;
        padding-bottom: 7.72rem;
    }

    .hero-home .grid.container { align-items: start; }

    .hero-home .grid.design,
    .hero-home .grid.develop {
        grid-template-columns: 1.8rem 1fr 1fr 1.8rem;
        grid-template-rows: 1fr;
        transform: none;
    }

    .hero-home .grid.container .col-1,
    .hero-home .grid.container .col-2 {
        grid-column: 2 / 4;
        padding: unset;
    }

    .hero-home .grid.container .col-1 {
        grid-row: 1;
        margin-bottom: 7.1vw;
    }

    .hero-home .grid.container .col-2 {
        grid-row: 2;
    }

    .hero-home img, .hero-home svg {
        margin: 0 auto;
        width: 70vw;
    }

    .hero-home .col-2 .heading-container,
    .hero-home .col-2 p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-home .col-2 p {
        width: 70vw;
        max-width: unset;
        padding: 0;
    }

    /* grid dots */

    .hero-home .col-dots-1,
    .hero-home .col-dots-2 {
        grid-row: span 2;
    }

    .hero-home .grid-dot,
    .hero-home .grid-dot div {
        margin: unset !important;
        bottom: unset !important;
        transform: none !important;
        flex-basis: unset !important;
    }

    .hero-home .grid-dot:nth-child(1) {
        height: 71.3cqw;
    }

    .hero-home .develop .grid-dot:nth-child(1) { /* tweak middle dot in develop*/
        height: 66.3cqw;
    }

    .hero-home .grid-dot:nth-child(3) {
        flex-grow: 1;
        align-content: end;
    }

    .hero-home .col-dots-2 .grid-dot:first-child div:after { /* DEV text */
        display: none;
    }

    /* Design */

    .hero-home .heading-container {
        width: 70vw;
        margin-bottom: 6.1vw;
    }

    .hero-home .design h1.designer,
    .hero-home .design h1.developer {
        margin: 0 0 0 -0.3rem;
        padding: unset;
        font-size: clamp(2rem, 13vw, 4.66rem);
        line-height: 65.5%;
        outline: none;
    }

    .hero-home .design h1.designer:after { /* slash */
        position: absolute;
        bottom: -0.4vw;
        width: 10%;
        height: 102.9%;
    }

    .hero-home .design h1.developer:after { /* cursor */
        width: 14%;
        height: 14%;
        bottom: -0.4vw;
    }

    /* Develop */

    .hero-home .develop .designer-container,
    .hero-home .develop .developer-container {
        margin: 0;
    }

    .hero-home .develop h1.designer,
    .hero-home .develop h1.developer {
        margin: 0;
        font-size: clamp(2rem, 10.5vw, 3.963rem);
        line-height: 92.5%;
    }

    @keyframes expandWidth {
        to {
            max-width: 80vw;
            padding-right: 0.81rem;
        }
    }

    .hero-home .develop h1:after {
        width: 4%;
        height: 100%;
    }

    .hero-home .develop .col-2 p {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0;
    }
}

/* Hero Home media queries end */

/* Home */

.home-section h1 {
    text-transform: uppercase;
}

.project-card {
    margin-bottom: 4.6rem;
}

.main-section .project-card:last-child {
    margin-bottom: 1rem;
}

.project-card .img-container {
    width: 100%;
}

.project-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 6px;
}

.project-card h2 {
    padding-top: 1.2rem;
    margin-bottom: 0.7rem;
    font-family: "futura-pt";
    font-weight:500;
    font-size: 1.75rem;
    letter-spacing: normal;
    color: var(--portfolio-white) !important;
}

.project-card .category {
    font-weight:500;
    font-size: 0.813rem;
    color: #787878;
    text-transform: uppercase;
}

.project-card a,
.project-card a:hover {
    text-decoration: none;
}

.home-section.logos {
    padding-bottom: 8.8rem;
}

/* Photography */

.photography .grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.photography .g-col-12 {
    position: relative;
    grid-column: span 1;
}

.photography .g-col-12:hover .photo-metadata {
    opacity: 1;
}

.photography .photo-metadata {
    opacity: 0;
    position: absolute;
    bottom: 0;
    width: calc(100% - 20px);
    margin: 0 0 0.625rem 0.625rem;
    padding: 1.05rem;
    border-radius: 0.375rem;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 200ms ease-in-out;
}

.photography .photo-metadata p {
    margin: 0;
    font-family:"nb-architekt-r-regular";
    font-size: 0.813rem;
    color: #787878;
}

.photography .photo-metadata p:first-of-type {
    color: #A2A2A2;
}

/* Logo Grid */

.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    box-shadow: inset 1px 1px 0 0px #a8a8a8;
}

.logo-cell {
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 1px 1px 0 0px #a8a8a8;
}

.logo-cell.expanded {
    z-index: 100;
    box-shadow: 0.7px 0.7px 0 0px #4b4b4b;
    background-color: #d5d5d5;
    transition: width 0.3s ease, height 0.3s ease, top 0.3s ease, left 0.3s ease, border-width 0.3s ease;
}

.logo-cell img {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.logo-cell:hover img.first {
    transform: translate(-50%, -50%) scale(1.1);
}

.logo-cell img.first {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 39.6%;
    height: 39.6%;
    object-fit: contain;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.3s cubic-bezier(0.11, 0.57, 0.35, 1);
}

.logo-cell img.tall {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    object-position: top;
    transform: translateY(0);
    transition: transform 4s ease-in-out, opacity 0.5s ease-in-out;
}

.logo-cell img.active {
    opacity: 1;
}

.logo-cell .description {
    opacity: 0;
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    font-weight: 500;
    font-size: 0.78rem;
    color: #787878;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.11, 0.57, 0.35, 1);
}

.logo-cell:hover .description {
    opacity: 1;
}

.logo-cell.expanded:hover .description {
    display: none;
}

.logo-cell-placeholder {
    aspect-ratio: 1;
    visibility: hidden;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s linear;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 576px) {
    .logo-cell .description {
        display: none;
    }
}

/* Project Pages */

.project-header-dark .main-logo,
.project-header-dark .main-header .nav a,
.project-header-dark .main-header .nav a:hover {
    color: var(--portfolio-white);
}

.project-header-light .main-logo {
    color: var(--portfolio-black);
}

.project .main-header {
    border-bottom: 0;
}

.hero-project {
    margin-top: -69px;
    margin-bottom: 5.2rem;
    padding: 0;
}

.project .main-section {
    margin-bottom: 5.7rem;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .hero-project {
        background-position: center;
    }
}

/* Project Intro */

.project-intro {
    padding-top: 0;
    margin-bottom: 7.72rem;
}

.project-intro .header {
    margin-bottom: 2.2rem;
    padding-bottom: 4.625rem;
    border-bottom: 1px solid #E5E5E5;
}

.project-intro .main-container {
    display: grid;
    grid-template-columns: 60.1% 1fr;
    gap: 6.063rem;
}

.project-meta div {
    display: flex;
    border-bottom: 1px solid #E5E5E5;
}

.project-meta p {
    width: 50%;
    margin: 1rem 0;
}

.project-meta div p:first-child {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4rem;
    color: #B2B2B2;
    text-transform: uppercase;
}

.project-meta div:first-child p {
    margin-top: 0;
}

@media (max-width: 1040px) {
    .project-intro .main-container {
        grid-template-columns: 1fr;
    }
}

/* Project Gallery */

.project-gallery {
    padding-top: 0;
}

.project-gallery .main-container {
    margin-bottom: 5rem;
    gap: 1.25rem;
}

.project-gallery .header {
    margin-bottom: 3.2rem;
}

.project-gallery .copy > div {
    max-width: 685px;
}

.project-gallery .copy p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .project-gallery .main-container {
        gap: 0.625rem;
    }

    .project-gallery .header {
        margin-bottom: 2.2rem;
    }

    .project-gallery .grid {
        gap: 0.625rem;
    }
}

/* Icon Gallery */

.project-gallery.icons .header {
    margin-bottom: 1.6rem;
}

.icon-gallery .header {
    border-bottom: 1px solid #000;
}

.icon-gallery .header.empty {
    height: 1.95rem;
}

.icon-gallery h5 {
    margin-bottom: 0.6rem;
    font-size: 1.063rem;
    text-transform: uppercase;
}

.icon-gallery .icon-big .icon-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background-image: url("../images/icon-gallery-grid.svg");
    background-size: contain;
    container-type: inline-size;
}

.icon-gallery .icon-big .icon-container img {
    opacity: 0;
    position: absolute;
    width: 100%;
}

.icon-gallery .icon-big .icon-container img.active {
    opacity: 1;
}

.icon-gallery .icon-thumbs .icon-container {
    --bs-columns: 6;
    gap: 0.6cqw; /* gap relative to .icon-container width */
}

.icon-gallery .icon-thumbs .icon-thumb {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    aspect-ratio: 1;
    min-width: 0; /* Safari fix for imgs not resizing */
}

.icon-gallery .icon-thumbs .icon-thumb.active {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    aspect-ratio: 1;
    background-color: var(--portfolio-black);
}

.icon-gallery .icon-thumbs .icon-thumb img {
    width: 71%;
}

.icon-gallery .icon-thumbs .icon-thumb.active img {
    filter: invert(1);
}

.icon-gallery .navigation {
    cursor: pointer;
    user-select: none;
    width: 1.313rem;
    height: 0.625rem;
    margin-right: 0.75rem;
    margin-bottom: 1.25rem;
}

.icon-gallery .navigation.next {
    transform: scale(-1);
}

/* Icon Gallery thumb numbers */

.icon-thumbs .icon-container {
    counter-reset: item-counter;
}

.icon-gallery .icon-thumb {
    counter-increment: item-counter;
}

.icon-gallery .icon-thumb:before {
    content: counter(item-counter, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: 0;
    font-family: "Menlo", "Lucida Sans Typewriter", Courier, monospace;
    font-size: 10px;
    color: #BFBFBF;
}

.icon-gallery .icon-thumb.active:before {
    opacity: 0;
}

@media (max-width: 1046px) {
    .icon-gallery .g-col-4,
    .icon-gallery .g-col-3 {
        grid-column: auto / span 6;
    }
}

@media (max-width: 576px) {
    .icon-gallery .g-col-4,
    .icon-gallery .g-col-3 {
        grid-column: auto / span 12;
    }

    .icon-gallery .icon-big {
        margin-bottom: 0.7rem;
    }

    .icon-gallery .icon-thumbs .header {
        text-align: right;
    }
}

/* Alvic */

.alvic .hero-project {
    height: 556px;
    background-image: url("../images/project-alvic-hero.webp");
    background-size: cover;
}

.alvic .hero-project img {
    width: 192px;
    height: 40px;
}

.alvic .auto-dimensioning .main-container {
    grid-template-columns: 49.46% 1fr;
}

.alvic .auto-dimensioning .main-container .col {
    grid-column: span 1;
}

@media (max-width: 576px) {
    .alvic .auto-dimensioning .main-container {
        grid-template-columns: 1fr;
    }
}

/* Lunik */

.lunik .hero-project {
    height: 556px;
    background-image: url("../images/project-lunik-hero.webp");
    background-size: cover;
}

.lunik .hero-project img {
    width: 124px;
}

.lunik .logo-variations {
    margin-bottom: 3.075rem;
    border-radius: 6px;
    background-color: #0D0E14;
}

.lunik .logo-variations .grid {
    gap: 0;
}

.lunik .logo-variations .g-col-12 {
    position: relative;
    aspect-ratio: 0.93;
    padding: 1.563rem;
}

.lunik .logo-variations .g-col-12:before {
    content: "";
    position: absolute;
    right: 0;
    width: 1px;
    height: calc(100% - 3.163rem);
    border-left: 1px dashed #403F38;
}

@media (max-width: 576px) {
    .lunik .logo-variations .g-col-12 {
        aspect-ratio: 1.03;
    }

    .lunik .logo-variations .g-col-12:before {
        bottom: 0;
        left: 25px;
        width: calc(100% - 2.963rem);
        height: 1px;
        border-left: none;
        border-bottom: 1px dashed #403F38;
    }
}

.lunik .logo-variations .subtitle-small {
    position: absolute;
    top: 1.363rem;
    left: 1.563rem;
    color: #78766D;
}

.lunik .logo-variations .subtitle-small.left:before {
    background-color: #78766D;
}

.lunik .logo-variations .logo1 {
    width: 33.8%;
}

.lunik .logo-variations .logo2 {
    width: 42.1%;
}

.lunik .logo-variations .logo3 {
    width: 30.4%;
    margin-top: 3.2%;
}

.lunik .typo-title {
    width: 28vw;
    margin-bottom: 2.6vw;
}

.lunik .typo-image {
    margin-bottom: 1.663rem;
}

.lunik .custom-grid {
    display: grid;
    grid-template-columns: 52.4% 1fr;
    align-items: center;
}

.lunik .custom-grid.video2 {
    margin-bottom: 5.6rem;
}

.lunik .video2 .video-container {
    position: relative;
    container-type: inline-size;
}

.lunik .video2 video {
    position: absolute;
    width: 96.3cqw;
    top: 4.6cqw;
    left: 1.1cqw;
    border-radius: 0 0 6px 6px;
}

.lunik .visuals-copy {
    padding: 6.8vw;
}

.lunik .visuals-copy p:last-of-type {
    margin-bottom: 0;
}

.lunik .web-design h1 {
    padding-top: 0.5rem;
    line-height: 0.99;
}

.lunik .laptop-video { /*735.51*/
    position: relative;
}

.lunik .laptop-video img { /*735.51*/
    position: relative;
    z-index: 10;
}

.lunik .laptop-video video { /*735.51*/
    position: absolute;
    top: 8.7%;
    left: 18%;
    width: 54.9%;
    z-index: 1;
}

.lunik .custom-align {
    display: grid !important;
    justify-content: space-between;
    grid-template-columns: auto auto;
    gap: 20px;
    container-type: inline-size;
}

.lunik .custom-align img {
    object-fit: cover;
}

.lunik .custom-align.align1 img:first-child { width: 69.4cqw; height: 100%; }
.lunik .custom-align.align1 img:last-child { width: 35.5cqw; }

.lunik .custom-align.align2 video { width: 32.5cqw; }
.lunik .custom-align.align2 img:last-child { width: 65.95cqw; height: 100%; }

.lunik .custom-align.align3 {
    grid-template-columns: 24.24% 1fr;
}

.lunik .custom-align.align3 > div img:nth-child(-n+2) { margin-bottom: 1.25rem; }

.lunik .custom-align.align3 > img {
    height: 100%;
    width: 100%; /* Safari height fix */
}

@media (max-width: 967px) {
    .lunik .custom-grid {
        grid-template-columns: 1fr;
    }

    .lunik .visuals-copy {
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .lunik .visuals-copy {
        padding-left: 0;
        padding-right: 0;
    }

    .lunik .custom-align,
    .lunik .custom-align.align3 {
        gap: 0.625rem;
    }

    .lunik .custom-align.align3 > div img:nth-child(-n+2) {
        margin-bottom: 0.625rem;
    }
}

@media (max-width: 576px) {
    .lunik .custom-align,
    .lunik .custom-align.align3 {
        grid-template-columns: 1fr;
    }

    .lunik .custom-align img,
    .lunik .custom-align video {
        width: 100% !important;
    }

    .lunik .custom-align.align1 img:first-child,
    .lunik .custom-align.align2 img:last-child,
    .lunik .custom-align.align3 > img {
        height: auto; /* Safari height fix */
    }
}

/* VoiceVoice */

.voicevoice .hero-project {
    height: 556px;
    background-image: url("../images/project-voicevoice-hero.webp");
    background-size: cover;
    background-position: center;
}

.voicevoice .sitemap {
    container-type: inline-size; /* controls size of sitemap image */
}

.voicevoice .sitemap .wrapper {
    padding: 3.063rem 3.363rem 1.863rem 3.363rem;
    border: 1px solid #E8E8E8;
    background-color: #F4F4F4;
}

.voicevoice .sitemap .main-container {
    margin-bottom: 0;
}

.voicevoice .sitemap img {
    width: calc(100cqw - 4.7rem);
    margin-left: -0.85rem;
}

.voicevoice .video1 .video-container {
    position: relative;
    container-type: inline-size;
}

.voicevoice .video1 video {
    position: absolute;
    width: 76.2cqw;
    top: 21.9cqw;
    left: 12cqw;
}

.voicevoice .video1 > div img {
    border: 1px solid #ebebeb;
}

@media (max-width: 768px) {
    .voicevoice .sitemap .wrapper {
        padding: 2.063rem 2.363rem 2.363rem 2.363rem;
    }

    .voicevoice .sitemap img {
        width: calc(100cqw - 2.8rem);
    }
}

/* Bio */

.bio {
    --bs-body-color: #fff;
    background-color: var(--portfolio-black);
}

.bio .main-section .col2 p {
    margin-bottom: 1.5rem;
}

.bio .main-section .col2 p:last-of-type {
    margin-bottom: 4.3rem;
}

.hero-bio {
    padding-top: 7.12rem;
    padding-bottom: 9.3rem;
}

.hero-bio .col1 {
    padding-top: 0.8rem;
    flex-basis: 39.7%;
    flex-shrink: 50;
    min-width: 20.25rem;
}

.hero-bio .col2 {
    flex-shrink: 1;
    width: clamp(10rem, 47rem, 47rem);
}

.hero-bio h1 {
    font-size: 4.375rem;
    line-height: 1.05;
    margin-bottom: 5rem;
}

.hero-bio .intro {
    margin-bottom: 3.7rem;
}

@media (max-width: 1014px) {
    .hero-bio {
        flex-direction: column;
    }

    .hero-bio .col2 {
        width: auto;
    }
}

@media (max-width: 768px) {
    .hero-bio h1 {
        font-size: 2.9rem;
    }
}

/* Video Player */

.video-container {
    position: relative;
}

.replay-button {
    position: absolute;
    bottom: 2%;
    right: 2%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.replay-button.show {
    opacity: 1;
    visibility: visible;
}

.replay-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.replay-icon {
    width: 24px;
    height: 24px;
    fill: white;
}
