:root {
    --navbar-height: 100px;
    --full-height: calc(100vh - var(--navbar-height));

    --color-primary: #EB5720;
    --color-primary-highlight: #EB5720;

    --color-secondary: #FFFFFF;

    --color-text: #FFFAFA;

    --grid-elements: 3;


    --main-color: var(--color-secondary);
    --alternative-color: var(--color-primary);
    --color-contrast: #000;
    --color-alternative-contrast: #FFFAFA;
}

h2 {
    line-height: 1em;
}

.site-navigation {
    background: #FFFAFA;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid var(--color-primary);
    position: relative;
    z-index: 1000;
}

.site-navigation a {
    text-decoration: none;
}

.site-navigation .u-container {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
}

.site-navigation .navbar-brand {
    display: block;
    margin-right: auto;
}


.mobile-menu {
    display: none;
}

@media (max-width: 800px) {
    .site-navigation .u-container {
        height: auto;
        padding: 1em;
        align-items: baseline;
    }

    .site-navigation {
        font-size: 0.8em;
    }

    .site-navigation .navbar-brand {
        display: flex;
        width: 100%;
        justify-content: space-between;

    }

    .mobile-menu {
        display: block;
        margin-left: auto;
        background: transparent;
        border: 0;
        font-size: 1em;
        color: inherit;
    }

    .navigation-links[data-hidden] {
        display: none;
    }

    .site-navigation .u-container {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .navigation-links {
        flex-direction: column;
    }
}


.navigation-links {
    display: flex;
    gap: 2em;
}

.navigation-links li {
    font-weight: bold;
}

nav a {
    position: relative;
    padding: 1em 0.5em;
    transition: color ease-in 0.2s;
    color: var(--color-primary);
}

nav a:hover::before {
    width: 100%;
}


nav a span {
    position: relative;
    z-index: 1;
}

nav a:before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    transform: translate(-50%, 0);
    background: var(--color-secondary);
    transition: ease-in 0.2s width;
}

.navbar-brand {
    color: var(--color-primary);
    font-weight: bold;
    text-transform: uppercase;
}

.navbar-brand span {}





/* HELPERS */
ul[role="presentation"] {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul[role="presentation"] li {
    margin: 0;
}

.wrap-word {
    display: inline-block;
    max-width: min-content;
}

.button {
    color: var(--alternative-color);
    text-decoration: none;
    border: 2px solid var(--alternative-color);
    padding: 0.5em 1em;
    background: transparent;
}

.button:hover,
.button.active {
    background-color: var(--alternative-color);
    color: var(--color-alternative-contrast);
}

.section-see-more {
    text-align: right;
    margin: 1em 0;
}

.project-card {
    max-width: 100%;
    text-decoration: none;
    color: var(--alternative-color);
    display: flex;
    height: 100%;
    flex-direction: column;
}

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

.project-card .project-card-info {
    margin-bottom: 1em;
    padding-bottom: 1em;
    position: relative;
    flex: 1;
}

.project-card-info::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50%;
    height: 1px;
    opacity: 0.2;
    background: var(--alternative-color);
    transform: translate(-50%, 0);
    transition: width 0.1s ease-in, height 0.1s 0.05s ease-in;
}

.project-card:hover .project-card-info::after {
    width: 100%;
    height: 5px;
}

.project-card h3 {
    padding: 0.5em 0 0.75em 0;
    font-size: var(--step-1);
    margin: 0;
    color: var(--color-contrast);
}

.project-card p {
    margin: 0;
    padding: 0;
    color: var(--alternative-color);
}

.hide {
    display: none;
}

.project-card img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all ease-in 0.2s;
}

.project-card-thumbnail {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    position: relative;
}

.grid-container {
    container: grid / inline-size;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-elements), 1fr);
    gap: 1em;
    container: project-grid / inline-size;
}

@container grid (max-width: 700px) {
    .project-grid {
        --grid-elements: 1;
    }
}

.project-card:hover img {
    max-width: 130%;
    width: 130%;
}

.highlight-card {
    background: var(--alternative-color);
    color: var(--color-alternative-contrast);
    overflow: hidden;
}

.highlight-card .highlight-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    font-size: 0;
    line-height: 0;
}

.highlight-card .highlight-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.highlight-card-description {
    padding: 1em 1em 2em 1em;
}

.highlights-grid {
    --elements: 4;
    display: grid;
    grid-template-columns: repeat(var(--elements), 1fr);
    margin: 2em 0;
    gap: 3em;
}

@container grid (max-width: 1100px) {
    .highlights-grid {
        --elements: 2;
    }
}

@container grid (max-width: 700px) {
    .highlights-grid {
        --elements: 1;
    }
}

.highlight-role {
    font-weight: bold;
    text-transform: uppercase;
}

.highlight-card h3 {
    font-weight: bold;
}

.highlight-card .button {
    --background: var(--color-primary);
    --color: var(--color-text);
}

.section-right {
    text-align: right;
}


.project-filters {
    gap: 1em;
    display: flex;
    margin-bottom: 2em !important;
}

.project-filters li {
    margin: 1em 0;
}

.site-about-wrapper h1 {
    line-height: 1em;
}

@media (max-width: 800px) {
    .project-filters {
        flex-direction: column;
    }

    h1 {
        font-size: 2.5em;
    }
}


footer.site-footer {
    margin-top: auto;
    text-align: center;
    display: block;
    overflow: auto;
    padding-top: 5em;
}



.about-sections {
    --grid-elements: 3;
    display: grid;
    grid-template-columns: repeat(var(--grid-elements), 1fr);
}

@container grid (max-width: 700px) {
    .about-sections {
        --grid-elements: 1;
    }
}

.site-about-header {
    background: var(--color-primary);
    color: #FFFAFA;
    padding: 5em 0;
}

h1 {
    color: var(--color-primary);
}


.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 5px solid var(--color-primary);
}

.timeline li {
    position: relative;
    padding: 1em;
    font-size: 1.5em;
}

.timeline li::before {
    display: block;
    content: '';
    width: 20px;
    aspect-ratio: 1;
    border-radius: 1000px;
    background-color: var(--color-primary);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(calc(-50% - 3px), -50%);
}


.timeline-company {
    display: flex;
    align-items: stretch;
    --timeline-color: var(--color-primary);
}


.timeline-company>* {
    width: 50%;
}

.timeline-company .company-logo {
    text-align: right;
}

.company-logo {
    padding: 2em;
}

.company-logo img {
    box-sizing: border-box;
    max-width: 170px;
    width: 100%;
    height: auto;
    margin: auto;
    filter: grayscale(100%);
    transition: ease-in 0.2s filter;
}


.timeline-company-progression-container {
    display: flex;
    align-items: center;
    border-left: 5px solid var(--timeline-color);
}


.progression-role,
.company-logo {
    transform-origin: left center;
    animation: timeline-role-in linear forwards, timeline-role-out linear forwards;
    animation-timeline: view();
    animation-range: entry, exit;
}

.company-logo {
    transform-origin: right center;
}


@media (max-width: 800px) {
    .timeline-company {
        flex-direction: column;
    }

    .timeline-company>* {
        width: 100%;
    }

    .timeline-company .company-logo {
        border-left: 5px solid var(--timeline-color);
        text-align: left;
        padding-bottom: 0.5em;
    }

    .progression-role,
    .company-logo {
        animation: none;
    }
}


.progression {
    width: 100%;
}

.progression-role {
    justify-content: space-between;
    position: relative;
    padding: 1em 2em;
}

.progression-role::before {
    display: block;
    content: '';
    width: 20px;
    aspect-ratio: 1;
    border: 5px solid var(--color-primary);
    background-color: #FFFAFA;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(calc(-50% - 2px), -50%);
    border-radius: 9999px;
}

.career-role {
    font-weight: bold;
    font-size: 1.2em;
    color: var(--color-primary);
}

.role-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5em;
    opacity: 0;
    transition: ease-in 0.2s opacity;
}

.timeline-company:hover .role-tags {
    opacity: 1;
}

.role-tags li {
    font-size: 0.8em;
    background: #CCC;
    padding: 0.5em;
    border-radius: 5px;
}

.section-secondary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding-bottom: 4em;
    clear: both;
    --main-color: var(--color-secondary);
    --alternative-color: var(--color-primary);
    --color-contrast: #000;
    --color-alternative-contrast: #FFFAFA;

}

.section-primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding-bottom: 4em;
    clear: both;
    /* overflow: auto; */
    --main-color: var(--color-primary);
    --alternative-color: var(--color-secondary);
    --color-contrast: #FFFAFA;
    --color-alternative-contrast: var(--color-primary);
}

.section-primary h2,
.section-secondary h2 {
    color: var(--alternative-color);
}


.section-timeline {
    padding-bottom: 3em;
}

.force-color-white {
    color: #FFFAFA;
}

.site-expertise-list {
    line-height: 1.5em;
}

.site-expertise-list li {
    margin-bottom: 0.5em;
}


.force-header-white h2 {
    color: #FFFAFA;
}

.progression-role:hover::after {
    display: block;
    content: '';
    width: 12px;
    aspect-ratio: 1;
    background-color: var(--color-secondary);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(calc(-50% - 2px), -50%);
    border-radius: 9999px;
}

.small-logo img {
    transform: scale(0.55);
    transform-origin: right center;
}


.shark-image-alt {
    display: none;

    animation: second-shark linear forwards;
    animation-timeline: view();
}

.shark-image {
    display: block;
}

.sticky-shark:hover .shark-image-alt {
    display: block;
}

.sticky-shark:hover .shark-image {
    display: none;
}

.sticky-shark {
    position: relative;
}

.sticky-shark picture:first-child::after {
    display: block;
    content: '';
    width: 80%;
    aspect-ratio: 1 / 1.7;
    background: var(--color-secondary);
    position: absolute;
    z-index: -1;
    top: 10%;
    left: 10%;
    border-radius: 50%;
    filter: blur(4em);
    transition: ease-in 0.2s filter;
}

.sticky-shark:hover picture::after {
    filter: blur(10em);
}


.site-project-header.section-primary {
    overflow: hidden;
}


.image-carousel {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: grid;
    font-size: 0;
    line-height: 0;
    grid:
        "a a a a b b"
        "a a a a c c"
        "d d d e e e"
        "f f f g g g";
    gap: 1rem;
}

@media (max-width: 800px) {
    .image-carousel {
        display: block;
    }

    .image-carousel img {
        padding: 1rem 0;
    }
}

.image-carousel[data-disable-grid] {
    display: block;
}

.image-carousel[data-disable-grid] img {
    padding: 1rem 0;
    height: auto;
    aspect-ratio: initial;
}

.image-carousel[data-count="2"] {
    grid: "a" "b";
}

.image-carousel[data-count="4"] {
    grid: "a b" "c d";
}

.image-carousel li {
    position: relative;
}

.image-carousel img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.image-carousel[data-count="2"] img {
    aspect-ratio: auto;
    height: auto;
}

.image-carousel li:first-child {
    grid-area: a;
}

.image-carousel li:nth-child(2) {
    grid-area: b;
}

.image-carousel li:nth-child(3) {
    grid-area: c;
}

.image-carousel li:nth-child(4) {
    grid-area: d;
}


.image-carousel li:nth-child(5) {
    grid-area: e;
}

.image-carousel li:nth-child(6) {
    grid-area: f;
}

.image-carousel li:nth-child(7) {
    grid-area: g;
}

.columns {
    display: flex;
    gap: 1em;
    width: 100%;
    max-width: 100%;
}

.columns.center {
    align-items: center;
}

.no-top-padding .clear {
    padding-top: 1em !important;
}

.project-main-text .section-primary .clear,
.project-main-text .section-secondary .clear {
    padding: 4em 0;
}

.project-main-text .section-primary,
.project-main-text .section-secondary {
    padding: 0;
}

.project-main-text a {
    color: inherit;
}

.columns .section {
    flex: 1;
}

.columns .section img {
    display: block;
    width: 100%;
    height: auto;
}

.columns .section.twice-width {
    flex: 2;
}

.columns .section.trice-width {
    flex: 3;
}


@media (max-width: 900px) {
    .columns {
        display: block;
    }
}

.video-center {
    display: flex;
}

.video-center iframe {
    margin: auto;
}

.u-container .section-primary,
.u-container .section-secondary {
    position: relative;
    overflow: visible;
}

.u-container .section-primary::before,
.u-container .section-secondary::before {
    content: '';
    display: block;
    height: 100%;
    width: 100vw;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: -1;
}


.u-container .section-primary::before {
    background: var(--color-primary);
}


.u-container .section-secondary::before {
    background: var(--color-secondary);
}

.clear {
    clear: both;
    overflow: auto;
}

.image-caption {
    opacity: 0.9;
    text-align: left;
    display: inline-block;
    font-size: 0.8em !important;
    line-height: 1.3em;
    padding-top: 0.2em;
}

.image-with-caption {
    display: flex;
    flex-direction: column;
    margin: 1em auto;
    align-items: space-around;
    max-width: 65%;
}

.image-with-caption>p {
    margin: 0;
    padding: 0;
}

.image-with-caption picture {
    font-size: 0;
}

.image-with-caption img {
    width: 100%;
    height: auto;
    aspect-ratio: initial;
}

.site-project-header {
    text-align: center;
}

.site-project-header h1 {
    line-height: 0.9em;
    margin: 1em auto 0.5em auto;
}

.site-project-header h2 {
    margin: 0 auto;
    padding: 0;
    font-weight: 200;
    line-height: 1.3em;
    font-size: 1.5em;
}

.section-padding {
    padding: 2em 0;

}


body {
    min-height: 100vh;
    background: #FFFAFA;
}


.projects-page .project-grid h3 {
    color: var(--color-primary);
}

.site-project-single-section .project-main-text {
    padding: 0em;
    clear: both;
    overflow: auto;
}



/** SINGLE PAGE, EVEN SMALLER GRID */

.site-project-single-section .u-container:not(.section-carousel) {
    max-width: calc(0.6 * var(--grid-max-width));
}

.site-project-single-section h3 {
    padding-bottom: 0rem;
    margin-bottom: 0.5em;
}

.section-timeline h2 {
    color: var(--color-primary);
}

@keyframes animate-in {
    0% {
        transform: translateY(100%);
        opacity: 0.5;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes animate-right {
    0% {
        transform: translateX(calc(30% + var(--animation-end)));
        opacity: 0.5;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}


.slide-in {
    --animation-end: 0%;
    animation: linear animate-in forwards;
    opacity: 0;
    animation-range: entry;
    animation-timeline: view(block calc(50% - var(--animation-end)) var(--animation-end));
}

.slide-in:nth-child(2) {
    --animation-end: 5%;
}

.slide-in:nth-child(3) {
    --animation-end: 10%;
}

.slide-in:nth-child(4) {
    --animation-end: 15%;
}

.slide-right {
    opacity: 0.5;
    transform: translateX(30%);
    --animation-end: 0%;
    animation: linear animate-right forwards;
    animation-range-start: var(--animation-end);
    animation-range-end: 30%;
    animation-timeline: view();
}

.shark-attach {
    background: yellow;
}

@keyframes shark-out {
    exit 0% {}

    exit 0.001% {
        transform: translateY(0%);
    }

    exit 100% {
        transform: translateY(100%);
    }
}

.force-zindex {
    position: relative;
    z-index: 10;
}

.shark-container {
    height: 100vh;
}

.shark-container .shark {
    max-height: 100%;

    width: 50%;
}

.container-padding {
    padding: 2em;
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    grid-template-areas:
        "description frame";
}

.payment-grid .payment-frame {
    min-width: 450px;
}

.payment-grid .payment-description {
    padding: 2em;
}
  .two-columns {
    display: flex;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 10px; /* Space between columns */
    padding: 10px;
  }

  .left-column {
    flex: 1; /* Allows it to take up space */
  }

  .right-column {
    flex: 1; /* Allows it to take up space */
    display: flex; /* Enable flexbox in the right column */
    flex-direction: column; /* Stack the boxes vertically */
    padding: 10px;
  }

  .vertical-list {
    list-style-type: none; /* Remove default bullet points */
  }

  .vertical-list li {
    padding: 10px; /* Optional padding */
    border: 1px solid #ccc; /* Optional border for visibility */
    margin-bottom: 5px; /* Space between items */
  }

.event-container {
    align-items: center;
    display: flex;
    flex-direction: column;
}

.event-row {
    align-items: center;
    display: grid;
    gap: 1em;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    padding: 1em;
}

.event-row a {
    align-self: center;
    text-align: center;
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas:
        "title shark"
        "about xxx";
}


.header-grid .header-title {
    grid-area: title;
    min-height: 70vh;
    display: grid;
    align-items: center;
}

.header-background {
    object-fit: cover;
    position: absolute;
    width: 100%;
    z-index: -10;
}

.header-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.header-content {
    width: 80%;
}

.header-content h1 {
    color: var(--color-secondary);
    font-size: var(--step-5);
}

.header-grid .header-shark {
    grid-area: shark;
}

.header-grid .header-about {
    grid-area: about;
}

.header-shark {
    position: sticky;

    top: 10%;
    transform: translate(0, -10%);
    z-index: 2;
    animation: shark-out linear forwards;
    animation-timeline: view();
}


.sticky-shark .shark {
    width: 100%;
}


.sticky-shark {
    height: calc(min(150%, 100vh));
}

.sticky-shark picture {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    transform: translateY(-3%);
}

.sticky-shark picture img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin-inline: auto;
}

.header-about {
    position: relative;
    overflow: visible;
    box-shadow: calc(-200px) 0 0 var(--color-secondary);

}

.header-about::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 100% !important;
    width: 100vw;
    height: 100%;
    background: var(--color-secondary);
    z-index: 1 !important;

}

@keyframes slide-in {
    0% {
        transform: translateY(50%);
        opacity: 0.5;
    }

    100% {
        transform: translateY(0%);
        opacity: 1;
    }
}

@keyframes slide-out {
    0% {
        transform: translateY(0%);
        opacity: 1;
    }

    100% {
        transform: translateY(-50%);
        opacity: 0.5;
    }
}

@keyframes animTitle {
    0% {
        transform: translateY(0%);
    }

    100% {
        transform: translateY(40%);
        opacity: 0;
    }

}


.about-content {
    position: relative;
    z-index: 3;
    padding: 2em 1em 1em 0;
}

@supports (animation-timeline: view()) {
    .header-title {
        animation: animTitle linear forwards;
        animation-timeline: view();
        animation-range: exit;
    }

    .about-content {
        animation: slide-in linear forwards,
            slide-out linear forwards;
        animation-timeline: view();
        animation-range: entry, exit;
    }
}

@keyframes timeline-role-in {
    0% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes timeline-role-out {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0.6);
    }
}


@media (max-width: 800px) {
    .header-grid {
        grid-template: 'title' 'about';
    }

    .header-shark {
        display: none;
    }
}

@keyframes wave {

    0%,
    20%,
    40%,
    60%,
    80%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    50%,
    90% {
        transform: rotate(50deg);
    }

    30%,
    70% {
        transform: rotate(-50deg);
    }
}

.wave {
    padding-right: 0.3em;
    animation: wave linear forwards;
    animation-timeline: scroll();
    animation-range: 0 50vh;
    display: inline-block;
    transform-origin: 80% 80%;
}


@media (prefers-reduced-motion) {

    .wave,
    .header-title,
    .slide-in,
    .slide-right,
    .shark-out,
    .header-shark,
    .about-content,
    .company-logo,
    .progression-role,
    .shark-image-alt,
    .shark-image {
        animation: none;
    }

    .slide-right,
    .slide-in {
        opacity: 1;
        transform: none;
    }

    .header-shark {
        position: relative !important;
    }
}
