@font-face {
    font-family: "Helvetica Neue Pro";
    src: url("fonts/helvetica-neue/HelveticaNeueLTPro-UltLt.otf") format("opentype");
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: "Helvetica Neue Pro";
    src: url("fonts/helvetica-neue/HelveticaNeueLTPro-UltLtIt.otf") format("opentype");
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: "Helvetica Neue Pro";
    src: url("fonts/helvetica-neue/HelveticaNeueLTPro-Th.otf") format("opentype");
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: "Helvetica Neue Pro";
    src: url("fonts/helvetica-neue/HelveticaNeueLTPro-ThIt.otf") format("opentype");
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: "Helvetica Neue Pro";
    src: url("fonts/helvetica-neue/HelveticaNeueLTPro-Lt.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Helvetica Neue Pro";
    src: url("fonts/helvetica-neue/HelveticaNeueLTPro-LtIt.otf") format("opentype");
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: "Helvetica Neue Pro";
    src: url("fonts/helvetica-neue/HelveticaNeueLTPro-LtEx.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-stretch: expanded;
}

@font-face {
    font-family: "Helvetica Neue Pro";
    src: url("fonts/helvetica-neue/HelveticaNeueLTPro-Roman.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Helvetica Neue Pro";
    src: url("fonts/helvetica-neue/HelveticaNeueLTPro-Ex.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-stretch: expanded;
}

@font-face {
    font-family: "Helvetica Neue Pro";
    src: url("fonts/helvetica-neue/HelveticaNeueLTPro-It.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Helvetica Neue Pro";
    src: url("fonts/helvetica-neue/HelveticaNeueLTPro-Md.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Helvetica Neue Pro";
    src: url("fonts/helvetica-neue/HelveticaNeueLTPro-MdIt.otf") format("opentype");
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: "Helvetica Neue Pro";
    src: url("fonts/helvetica-neue/HelveticaNeueLTPro-Bd.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Helvetica Neue Pro";
    src: url("fonts/helvetica-neue/HelveticaNeueLTPro-BdIt.otf") format("opentype");
    font-weight: 700;
    font-style: italic;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family:
        "Helvetica Neue Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #eae9e5;
    color: #222;
    line-height: 1.3;
    letter-spacing: -0.1px;
}

.container {
    max-width: 1540px;
    margin: 0 auto;
    padding: 0 60px 60px 60px;
}

.site-header {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.15;
}

.site-header h1 {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.15;
}

.site-header hr {
    border: none;
    border-top: 1px solid #484847;
}

.site-header {
    display: none;
}

hr {
    border: none;
    border-top: 1px solid #484847;
    margin-top: 25px;
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.sidebar {
    width: 240px;
    position: fixed;
    left: 45px;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100vh - 120px);
}

.sidebar h1 {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.15;
}

.nav-links {
    margin-top: 70px;
    font-size: 21px;
    font-weight: 400;
}

.nav-links a {
    display: block;
    color: #222;
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-direction: column;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: black;
    display: inline-block;
    /* allow sizing to text */
    padding-right: 1em;
    /* optional small gap */
}

.nav-links a.active::after {
    content: " ←";
    /* add space before the arrow here */
    position: static;
    /* disables absolute positioning */
    display: inline;
    /* keep it inline with text */
    color: black;
}

.contact-links {
    position: fixed;
    bottom: 30px;
    left: 45px;
    /* adjust based on your layout */
    font-size: 17px;
    font-weight: 400;
    color: #2b2b2b;
}

.contact-links p {
    margin-bottom: 0px;
}

.contact-links-mobile {
    bottom: 30px;
    /* adjust based on your layout */
    font-size: 22.5px;
    font-weight: 400;
    color: #2b2b2b;
    padding-bottom: 30px;
}

.contact-links-mobile a {
    text-decoration: underline dotted;
}

.contact-links-mobile a:hover {
    text-decoration: underline;
}



.main-content {
    margin-top: 48px;
    margin-left: 330px;
    width: calc(100% - 240px);
}

.intro-right h2 {
    font-size: 90px;
    font-weight: 400;
    margin-bottom: 30px;
    margin-top: 65px;
    line-height: 1;
    letter-spacing: -2px;
}

.section-title {
    margin-top: 100px;
    font-size: 46px;
    font-weight: 400;
    margin-bottom: 15px;
}

#experience {
    margin-bottom: 80px;
}

#experience hr {
    border: none;
    border-top: 1px solid #484847;
    margin-top: 68px;
    margin-bottom: 28px;
}

#experience hr:first-of-type {
    margin-top: 5px;
    /* override for the first */
}

.about-section hr {
    border: none;
    border-top: 1px solid #484847;
    margin-top: 5px;
    margin-bottom: 30px;
}

/* New Grid Layout */
.experience-item-grid {
    display: grid;
    grid-template-columns: auto 28% 1fr;
    column-gap: 30px;
    align-items: start;
    margin-bottom: 40px;
}

.experience-number {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.5;
    transform: scaleY(0.97);
}

/* Everything in the red box */
.experience-left-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.experience-company {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.5;
    transform: scaleY(0.97);
}

.experience-text {
    font-size: 15.5px;
    line-height: 1.3;
    font-weight: 400;
}

.team-title {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-top: 5px;
    margin-bottom: 19px;
}

.team-members {
    columns: 2;
    font-size: 14.75px;
    line-height: 1.3;
}

.team-member {
    margin-bottom: 1px;
}

/* Everything in the blue box */
.experience-right {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.experience-role-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.experience-title {
    font-size: 21px;
    font-weight: 400;
    transform: scaleY(0.97);
}

.experience-date {
    font-size: 21px;
    font-weight: 400;
    transform: scaleY(0.97);
}

/* Carousel */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.3s ease-in-out;
}


.carousel-item {
    flex: 0 0 100%;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.carousel-nav button {
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 35px;
    background: none;
}


.about-section {
    margin-top: 50px;
}

.contact-section {
    margin-top: 10px;
}

.contact-section a {
    color: black;
    padding-right: 1em;
}

.contact-section hr {
    border: none;
    border-top: 1px solid #484847;
    margin-top: 5px;
    margin-bottom: 30px;
}



.about-content {
    display: flex;
    margin-top: 60px;
    align-items: flex-start;
}

.about-image {
    width: 320px;
    height: auto;
    margin-right: 30px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
}

.hide-in-grid {
    display: none;
    /* Ensures it overrides other styles */
}

.hideondesktop {
    display: none;
}

.arrow {
    position: relative;
    top: -2.5px;
    /* raise it up slightly */
    font-size: 0.9em;
    /* optional: make it a bit smaller */
}

.contact-links a {
    text-decoration: underline dotted;
    color: inherit;

}

.contact-links a:hover {
    text-decoration: underline;
}

.cascade-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    white-space: nowrap;
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(16px);
        filter: blur(1px);
    }

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


@media (max-width: 768px) {
    .site-header {
        padding-top: 35px;
        padding-right: 46px;
        display: block;
        position: fixed;
        top: 0;
        width: 100%;
        background-color: #eae9e5;
        z-index: 1000;
        transition: padding 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
        /* Smoother easing */
        will-change: padding;
        /* Optimize for performance */
    }

    .carousel-nav button {
        color: white;
        border: none;
        padding: 5px;
        cursor: pointer;
        font-size: 25px;
        background: none;
    }

    #experience hr {
        border: none;
        border-top: 1px solid #484847;
        margin-top: 5px;
        margin-bottom: 25px;
    }

    .section-title {
        margin-top: 200px;
        font-size: 36px;
        font-weight: 400;
        margin-bottom: -1px;
    }

    .contact-title {
        margin-top: 50px;
        font-size: 36px;
        font-weight: 400;
        margin-bottom: -1px;
    }

    .team-title {
        text-transform: uppercase;
        font-size: 13px;
        letter-spacing: 0.5px;
        margin-top: -5px;
        margin-bottom: 19px;
    }

    .team-members {
        columns: 2;
        font-size: 19px;
        line-height: 1.3;
    }

    .team-member {
        margin-bottom: 3px;
    }

    .experience-item-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile-first layout flow */
    .experience-header-mobile {
        order: 1;
        display: flex;
        justify-content: space-between;
        font-weight: 400;
        margin-top: -4px;
    }

    .experience-left-content {
        gap: 9px;
    }

    .experience-number {
        font-size: 24px;
        font-weight: 400;
        line-height: 1.1;
        transform: scaleY(0.97);
    }

    .experience-company {
        font-size: 24px;
        font-weight: 400;
        line-height: 1.1;
        transform: scaleY(0.97);
    }

    .hide-in-grid {
        display: inline;
        /* Ensures it overrides other styles */
    }

    .hideondesktop {
        display: inline;
    }

    .hideonmobile {
        display: none;
    }

    .carousel {
        order: 2;
        width: 100%;
    }

    .carousel img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .experience-role-row {
        order: 3;
        display: flex;
        justify-content: space-between;
        margin-top: 5px;
        margin-bottom: 15px;
    }

    .experience-title {
        font-size: 13px;
        font-weight: 400;
        text-transform: uppercase;
        font-variant: small-caps;
        letter-spacing: 0.5px;
    }

    .experience-date {
        font-size: 13px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 5 px;
    }

    .experience-text {
        order: 4;
        font-size: 19px;
        line-height: 1.4;
    }

    .experience-team {
        order: 5;
        margin-top: 15px;
    }

    .site-header.scrolled {
        padding-top: 19px;
    }

    .site-header hr {
        margin-top: 12;
    }

    .site-header h1 {
        display: block;
        line-height: 1.23;
        font-size: 1.2rem;
    }

    .container {
        padding: 80px 23px 18px 23px;
    }

    .header-content {
        padding: 0 20px;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        margin-top: 0px;
    }

    .main-content h2 {
        font-size: 32px;
    }

    .intro-right h2,
    .intro-right p {
        font-size: clamp(2.4rem, 10vw, 2.7rem);
        margin-bottom: 20px;
        letter-spacing: -1.2px;
        word-spacing: -0.04em;
        line-height: 1.05;
        max-width: 87vw;
        font-weight: 400;
        margin-top: 25px;
    }

    .intro-right hr {
        display: none;
    }

    .experience-item {
        flex-direction: column;
    }

    .experience-left,
    .experience-right {
        width: 100%;
        padding-right: 0;
    }

    .experience-right {
        margin-top: 20px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        width: 100%;
        margin: 0 auto 20px;
    }

    .about-text {
        font-size: 19px;
        line-height: 1.4;
    }

    .experience-number:not(.experience-header-mobile .experience-number) {
        display: none;
    }
}