/* Full-bleed video hero inspired by the supplied WEBv9 reference. */
html:not(.past-hero-load) #hero-background-wrap {
    visibility: visible;
}

#scroll-spacer {
    height: 165vh;
}

#master-scene.video-hero {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100svh;
    min-height: 40rem;
    display: block;
    overflow: hidden;
    background: #0a0a0c;
    z-index: 10;
    perspective: none;
    transform: translate3d(0, var(--hero-parallax-y, 0px), 0) scale(var(--hero-scroll-scale, 1)) !important;
    transform-origin: center top;
}

#sections-bg-layer {
    background-color: #eceeef;
    z-index: 0;
}

/* Dark footer continuous with the contact section. */
footer {
    background-color: #232324 !important;
    color: #fffefc;
    border-top: 1px solid rgba(255, 254, 252, 0.12);
}

footer .footer-links a,
footer .footer-social a,
footer .footer-bottom {
    color: #fffefc;
}

footer .footer-social a {
    background: transparent;
    border-color: rgba(255, 254, 252, 0.16);
}

footer .footer-social a:hover,
footer .footer-social a:focus-visible {
    background: rgba(255, 254, 252, 0.1);
    border-color: rgba(255, 254, 252, 0.28);
}

footer .footer-bottom {
    border-top-color: rgba(255, 254, 252, 0.1);
}

.video-hero #hero-background-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    opacity: 1;
    transform: none !important;
}

#hero-background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #0a0a0c;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 160ms ease;
}

#hero-background-video.is-ready {
    opacity: 1;
}

.hero-video-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 4, 6, 0.06) 0%, rgba(4, 4, 6, 0.02) 45%, rgba(4, 4, 6, 0.32) 100%),
        linear-gradient(180deg, rgba(4, 4, 6, 0.28) 0%, transparent 34%, rgba(4, 4, 6, 0.05) 52%, rgba(4, 4, 6, 0.78) 100%);
    pointer-events: none;
}

.video-hero #hero-content {
    position: absolute;
    inset: 0;
    z-index: 30;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 clamp(2rem, 4vw, 4.5rem) clamp(2.25rem, 4vh, 3.5rem);
    box-sizing: border-box;
    pointer-events: none;
    opacity: 1 !important;
    transform: none !important;
}

.video-hero #hero-title-parallax {
    width: min(52rem, 56vw);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    transform: none !important;
}

.hero-subtitle {
    max-width: 38rem;
    margin: 1.15rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(0.88rem, 1.08vw, 1.08rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.45;
    text-align: right;
}

.video-hero #hero-content h1 {
    width: 100%;
    margin: 0;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(3.4rem, 6.4vw, 7.35rem);
    font-weight: 400;
    letter-spacing: -0.065em;
    line-height: 0.9;
    white-space: nowrap;
    text-wrap: initial;
    text-align: right;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.26);
    opacity: 1 !important;
    transform: none !important;
}

.video-hero #hero-content h1 .hero-title-line {
    display: block;
    width: max-content;
    max-width: none;
    margin-left: auto;
    color: inherit;
    white-space: nowrap !important;
}

.video-hero #hero-content h1 .hero-title-period {
    color: #f21d2a;
}

body.hero-intro-pending #accueil-title > .hero-title-line {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translate3d(0, 105%, 0);
}

body.hero-intro-pending .hero-subtitle {
    opacity: 0;
    transform: translate3d(0, 1.25rem, 0);
}

body.hero-intro-pending .video-hero .hero-start-btn {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
    transform: translate3d(0, 0.75rem, 0);
}

@media (prefers-reduced-motion: reduce) {
    body.hero-intro-pending #accueil-title > .hero-title-line,
    body.hero-intro-pending .hero-subtitle,
    body.hero-intro-pending .video-hero .hero-start-btn {
        opacity: 1;
        clip-path: none;
        transform: none;
    }
}

/* Carry the hero's editorial typography through every section heading. */
#avantages .section-title,
#portfolio .portfolio-title,
#contact .contact-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    letter-spacing: -0.065em;
    line-height: 0.9;
}

nav .nav-logo img[src$="jules-45-ans.png"] {
    width: 100%;
    max-width: 15rem;
    height: auto;
    filter: none;
}

/* Editorial, full-width desktop navigation inspired by modular report layouts. */
@media (min-width: 901px) {
    nav {
        top: 0;
        left: 0;
        width: 100%;
        max-width: none;
        height: 4rem;
        display: grid;
        grid-template-columns: clamp(13.5rem, 20vw, 17rem) minmax(0, 1fr) clamp(18rem, 31vw, 25rem);
        align-items: stretch;
        gap: 0;
        padding: 0;
        border-bottom: 1px solid rgba(35, 35, 36, 0.34);
        background: #eceeef;
        box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
        transform: none;
    }

    nav .nav-pill {
        display: contents;
    }

    nav .nav-logo {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        padding: 0 0.5rem;
        justify-content: center;
        background: #232324;
        border-right: 1px solid rgba(236, 238, 239, 0.25);
    }

    nav .nav-logo img {
        width: 100%;
        max-width: 15rem;
        height: auto;
        filter: none;
    }

    nav .nav-right {
        grid-column: 3;
        grid-row: 1;
        display: flex;
        min-width: 0;
        gap: 0;
    }

    nav .nav-cta {
        width: 100%;
        min-width: 0;
        padding: 0 1.5rem;
        justify-content: space-between;
        border-radius: 0;
        box-shadow: none;
        background: #ed1c24;
        color: #fff;
        font-size: clamp(0.82rem, 1.15vw, 1rem);
        font-weight: 600;
        white-space: nowrap;
    }

    nav .nav-cta::before {
        border-radius: 0;
        background: #232324;
        transform: translateY(102%);
    }

    nav .nav-cta::after {
        content: "+";
        position: relative;
        font-size: 1.65rem;
        font-weight: 300;
        line-height: 1;
        transition: transform 260ms ease;
    }

    nav .nav-cta:hover,
    nav .nav-cta:focus-visible,
    nav .nav-cta:hover:visited,
    nav .nav-cta:focus-visible:visited {
        color: #fff;
    }

    nav .nav-cta:hover::before,
    nav .nav-cta:focus-visible::before {
        transform: translateY(0);
    }

    nav .nav-cta:hover::after,
    nav .nav-cta:focus-visible::after {
        transform: rotate(90deg);
    }

    nav .nav-links {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        justify-content: flex-end;
        align-items: stretch;
        min-width: 0;
        gap: 0;
        background: #eceeef;
    }

    nav .nav-links a,
    body.nav-on-light-bg nav .nav-links a {
        min-width: clamp(6.5rem, 11vw, 10rem);
        height: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        padding: 0 1rem;
        border-left: 1px solid rgba(35, 35, 36, 0.22);
        color: #232324;
        font-size: clamp(0.78rem, 1vw, 0.95rem);
        font-weight: 600;
        overflow: hidden;
    }

    nav .nav-links a::before,
    body.nav-on-light-bg nav .nav-links a::before {
        inset: 0;
        border-radius: 0;
        background: #232324;
        opacity: 1;
        transform: scaleY(0);
        transform-origin: bottom center;
        transition: transform 320ms cubic-bezier(0.22, 0.8, 0.24, 1);
    }

    nav .nav-links a:hover,
    nav .nav-links a:focus-visible,
    body.nav-on-light-bg nav .nav-links a:hover,
    body.nav-on-light-bg nav .nav-links a:focus-visible {
        color: #fff;
        outline: none;
    }

    nav .nav-links a:hover::before,
    nav .nav-links a:focus-visible::before,
    body.nav-on-light-bg nav .nav-links a:hover::before,
    body.nav-on-light-bg nav .nav-links a:focus-visible::before {
        transform: scaleY(1);
    }
}

/* Compact editorial navigation for mobile: logo | menu. */
@media (max-width: 900px) {
    nav {
        top: 0;
        left: 0;
        width: 100%;
        max-width: none;
        height: 3.6rem;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 3.6rem;
        align-items: stretch;
        gap: 0;
        padding: 0;
        border-bottom: 1px solid rgba(35, 35, 36, 0.34);
        background: #eceeef;
        box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
        transform: none;
        overflow: hidden;
    }

    nav .nav-pill {
        display: contents;
        padding: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    body.nav-on-light-bg nav .nav-pill,
    body.mobile-menu-open nav .nav-pill {
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    nav .nav-logo,
    body.mobile-menu-open nav .nav-logo {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
        max-width: none;
        height: 100%;
        padding: 0 0.9rem;
        background: #232324;
        border-right: 1px solid rgba(236, 238, 239, 0.25);
        opacity: 1;
        visibility: visible;
        overflow: hidden;
        pointer-events: auto;
    }

    nav .nav-logo img,
    body.mobile-menu-open nav .nav-logo img {
        width: auto;
        max-width: 10rem;
        height: auto;
        max-height: 1.8rem;
        object-fit: contain;
        object-position: left center;
        filter: none;
    }

    nav .nav-logo img[src$="jules-45-ans.png"],
    body.mobile-menu-open nav .nav-logo img[src$="jules-45-ans.png"] {
        width: auto;
        max-width: 9.5rem;
        max-height: 1.65rem;
    }

    nav .nav-links {
        display: none;
    }

    nav .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        min-height: 0;
        padding: 0;
        background: #eceeef;
        border-left: 1px solid rgba(35, 35, 36, 0.22);
        z-index: 201;
    }

    nav .hamburger span,
    nav .hamburger span::before,
    nav .hamburger span::after,
    body.nav-on-light-bg nav .hamburger span,
    body.nav-on-light-bg nav .hamburger span::before,
    body.nav-on-light-bg nav .hamburger span::after {
        width: 1.15rem;
        background: #232324;
    }

    nav .hamburger span {
        left: 50%;
        margin-left: -0.575rem;
    }

    nav .hamburger.is-open span {
        background: transparent !important;
    }

    nav .hamburger.is-open span::before,
    nav .hamburger.is-open span::after {
        background: #232324 !important;
    }

    nav .nav-right {
        display: none;
    }

    nav .nav-cta {
        width: 100%;
        min-width: 0;
        height: 100%;
        padding: 0 0.7rem;
        justify-content: space-between;
        gap: 0.4rem;
        border-radius: 0;
        box-shadow: none;
        background: #ed1c24;
        color: #fff;
        font-size: clamp(0.64rem, 2.7vw, 0.82rem);
        font-weight: 600;
        letter-spacing: -0.02em;
        line-height: 1.15;
        white-space: normal;
        text-align: left;
        overflow: hidden;
    }

    nav .nav-cta::before {
        border-radius: 0;
        background: #232324;
        transform: translateY(102%);
    }

    nav .nav-cta::after {
        content: "+";
        position: relative;
        flex-shrink: 0;
        font-size: 1.35rem;
        font-weight: 300;
        line-height: 1;
        transition: transform 260ms ease;
    }

    nav .nav-cta:hover,
    nav .nav-cta:focus-visible,
    nav .nav-cta:hover:visited,
    nav .nav-cta:focus-visible:visited {
        color: #fff;
    }

    nav .nav-cta:hover::before,
    nav .nav-cta:focus-visible::before {
        transform: translateY(0);
    }

    nav .nav-cta:hover::after,
    nav .nav-cta:focus-visible::after {
        transform: rotate(90deg);
    }

    /* Mobile navigation: modular editorial index using the site's new palette. */
    .mobile-menu-overlay {
        display: flex;
        position: fixed;
        inset: 3.6rem 0 0;
        z-index: 200;
        min-height: calc(100svh - 3.6rem);
        padding: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        overflow-x: hidden;
        overflow-y: auto;
        background: #eceeef;
        color: #232324;
        opacity: 1;
        visibility: hidden;
        pointer-events: none;
        clip-path: inset(0 0 100% 0);
        -webkit-clip-path: inset(0 0 100% 0);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transition: clip-path 560ms cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 560ms;
    }

    .mobile-menu-overlay.is-visible {
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

    .mobile-menu-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
        clip-path: inset(0 0 0 0);
        -webkit-clip-path: inset(0 0 0 0);
    }

    .mobile-menu-overlay .mobile-menu-logo {
        display: none;
    }

    .mobile-menu-overlay .mobile-nav-links {
        order: 1;
        flex: 1 0 auto;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, minmax(4.5rem, 1fr));
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0;
        list-style: none;
        counter-reset: mobile-menu-item;
        opacity: 1;
        transform: none;
    }

    .mobile-menu-overlay .mobile-nav-links a {
        counter-increment: mobile-menu-item;
        min-height: 0;
        display: grid;
        grid-template-columns: 2.7rem minmax(0, 1fr) 1.5rem;
        align-items: center;
        gap: 0.75rem;
        padding: 0.9rem 1rem;
        box-sizing: border-box;
        border: 0;
        border-bottom: 1px solid rgba(35, 35, 36, 0.28);
        border-radius: 0;
        background: transparent;
        color: #232324;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: clamp(1.8rem, 8.5vw, 3.25rem);
        font-weight: 400;
        letter-spacing: -0.06em;
        line-height: 0.92;
        text-decoration: none;
        opacity: 0;
        transform: translateY(1.4rem);
        transition: color 260ms ease, background-color 260ms ease, opacity 420ms ease, transform 620ms cubic-bezier(0.22, 0.8, 0.24, 1);
    }

    .mobile-menu-overlay .mobile-nav-links a::before {
        content: "[0" counter(mobile-menu-item) "]";
        align-self: start;
        padding-top: 0.2rem;
        font-family: 'Chivo', sans-serif;
        font-size: 0.62rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        line-height: 1;
    }

    .mobile-menu-overlay .mobile-nav-links a::after {
        content: "";
        width: 0.82rem;
        height: 0.82rem;
        box-sizing: border-box;
        justify-self: end;
        background-color: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2l12 12M6 14h8V6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2l12 12M6 14h8V6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / contain no-repeat;
        transition: transform 260ms ease;
    }

    .mobile-menu-overlay .mobile-nav-links a:hover,
    .mobile-menu-overlay .mobile-nav-links a:focus-visible,
    .mobile-menu-overlay .mobile-nav-links a:active {
        background: #232324;
        color: #fff;
        outline: none;
        transform: none;
    }

    .mobile-menu-overlay .mobile-nav-links a:hover::after,
    .mobile-menu-overlay .mobile-nav-links a:focus-visible::after {
        transform: translate(0.2rem, 0.2rem);
    }

    .mobile-menu-overlay.is-open .mobile-nav-links a {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-menu-overlay.is-open .mobile-nav-links a:nth-child(1) { transition-delay: 120ms; }
    .mobile-menu-overlay.is-open .mobile-nav-links a:nth-child(2) { transition-delay: 170ms; }
    .mobile-menu-overlay.is-open .mobile-nav-links a:nth-child(3) { transition-delay: 220ms; }
    .mobile-menu-overlay.is-open .mobile-nav-links a:nth-child(4) { transition-delay: 270ms; }

    .mobile-menu-overlay .mobile-menu-cta {
        order: 2;
        width: 100%;
        min-height: 4.6rem;
        margin: 0;
        padding: 1rem;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 0;
        border-radius: 0;
        background: #ed1c24;
        box-shadow: none;
        color: #fff;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: clamp(0.9rem, 4vw, 1.05rem);
        font-weight: 600;
        letter-spacing: -0.025em;
        text-decoration: none;
        opacity: 0;
        transform: translateY(1.2rem);
        transition: background-color 260ms ease, opacity 420ms ease 300ms, transform 620ms cubic-bezier(0.22, 0.8, 0.24, 1) 300ms;
    }

    .mobile-menu-overlay .mobile-menu-cta::after {
        content: "+";
        font-size: 1.7rem;
        font-weight: 300;
        line-height: 1;
    }

    .mobile-menu-overlay .mobile-menu-cta:hover,
    .mobile-menu-overlay .mobile-menu-cta:focus-visible {
        background: #232324;
        box-shadow: none;
        outline: none;
    }

    .mobile-menu-overlay .lang-switch {
        order: 3;
        align-self: stretch;
        min-height: 3.5rem;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        margin: 0;
        padding: 0;
        border: 0;
        border-bottom: 1px solid rgba(35, 35, 36, 0.25);
        border-radius: 0;
        background: #eceeef;
        box-shadow: none;
        opacity: 0;
        transform: translateY(1rem);
        transition: opacity 420ms ease 350ms, transform 620ms cubic-bezier(0.22, 0.8, 0.24, 1) 350ms;
    }

    .mobile-menu-overlay .lang-switch button,
    .mobile-menu-overlay .lang-switch a,
    .mobile-menu-overlay .lang-switch span {
        min-width: 0;
        min-height: 3.5rem;
        display: grid;
        place-items: center;
        padding: 0;
        border: 0;
        border-right: 1px solid rgba(35, 35, 36, 0.25);
        border-radius: 0;
        background: transparent;
        color: #232324;
        font-family: 'Chivo', sans-serif;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-decoration: none;
    }

    .mobile-menu-overlay .lang-switch > :last-child {
        border-right: 0;
    }

    .mobile-menu-overlay .lang-switch button.is-active,
    .mobile-menu-overlay .lang-switch span.is-active,
    .mobile-menu-overlay .lang-switch > .is-active {
        background: #ed1c24 !important;
        color: #fff !important;
    }

    .mobile-menu-overlay .lang-switch button:hover,
    .mobile-menu-overlay .lang-switch button:focus-visible,
    .mobile-menu-overlay .lang-switch a:hover,
    .mobile-menu-overlay .lang-switch a:focus-visible {
        background: rgba(35, 35, 36, 0.1);
        color: #232324;
    }

    .mobile-menu-overlay .mobile-menu-divider {
        display: none;
    }

    .mobile-menu-overlay .mobile-menu-social {
        order: 4;
        min-height: 4rem;
        display: flex;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(35, 35, 36, 0.25);
        opacity: 0;
        transform: translateY(1rem);
        transition: opacity 420ms ease 400ms, transform 620ms cubic-bezier(0.22, 0.8, 0.24, 1) 400ms;
    }

    .mobile-menu-overlay .mobile-menu-social a {
        width: 4rem;
        min-height: 4rem;
        display: grid;
        place-items: center;
        padding: 0;
        border: 0;
        border-right: 1px solid rgba(35, 35, 36, 0.25);
        border-radius: 0;
        background: transparent;
        color: #232324;
    }

    .mobile-menu-overlay .mobile-menu-social a:hover,
    .mobile-menu-overlay .mobile-menu-social a:focus-visible,
    .mobile-menu-overlay .mobile-menu-social a:active {
        background: #232324;
        border-color: rgba(35, 35, 36, 0.25);
        color: #fff;
        outline: none;
        transform: none;
    }

    .mobile-menu-overlay .mobile-menu-social a svg {
        width: 1.1rem;
        height: 1.1rem;
    }

    .mobile-menu-overlay.is-open .mobile-menu-cta,
    .mobile-menu-overlay.is-open .lang-switch,
    .mobile-menu-overlay.is-open .mobile-menu-social {
        opacity: 1;
        transform: translateY(0);
    }
}

.modular-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    width: 0.75rem;
    height: 0.75rem;
    border: 1px solid transparent;
    background: #ed1c24;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, -50%, 0);
    transform-origin: center;
    transition:
        width 180ms cubic-bezier(0.22, 0.8, 0.24, 1),
        height 180ms cubic-bezier(0.22, 0.8, 0.24, 1),
        background-color 160ms ease,
        border-color 160ms ease,
        opacity 160ms ease;
    will-change: left, top, width, height;
}

.modular-cursor::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.82rem;
    height: 0.82rem;
    box-sizing: border-box;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 14L14 2M6 2h8v8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 14L14 2M6 2h8v8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / contain no-repeat;
    color: #fff;
    opacity: 0;
    transform: translate(calc(-50% - 0.12rem), calc(-50% + 0.12rem));
    transition: opacity 140ms ease, transform 180ms ease;
}

.modular-cursor.is-visible {
    opacity: 1;
}

.modular-cursor.is-link {
    width: 1.8rem;
    height: 1.8rem;
    border-color: #ed1c24;
    background: transparent;
}

.modular-cursor.is-nav-link {
    width: 2.15rem;
    height: 2.15rem;
    border-color: #fff;
    background: transparent;
}

.modular-cursor.is-logo {
    width: 1.8rem;
    height: 1.8rem;
    border-color: #eceeef;
    background: transparent;
}

.modular-cursor.is-cta {
    width: 2.15rem;
    height: 2.15rem;
    border-color: #fff;
    background: transparent;
}

.modular-cursor.is-project {
    width: 3.4rem;
    height: 3.4rem;
    border-color: #ed1c24;
    background: #ed1c24;
}

.modular-cursor.is-project::after {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.modular-cursor.is-on-red {
    border-color: #fff;
    background: #fff;
}

.modular-cursor.is-on-red.is-link,
.modular-cursor.is-on-red.is-nav-link,
.modular-cursor.is-on-red.is-logo,
.modular-cursor.is-on-red.is-cta {
    border-color: #fff;
    background: transparent;
}

.modular-cursor.is-on-red.is-project::after {
    color: #ed1c24;
}

/* Editorial index for the secondary project archive. */
#portfolio .portfolio-showcase-grid {
    width: min(1420px, calc(100% - clamp(2rem, 5vw, 6rem)));
    margin: clamp(3rem, 7vw, 7rem) auto 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    counter-reset: portfolio-showcase;
}

#portfolio .portfolio-showcase-grid .portfolio-showcase-group {
    display: contents;
}

#portfolio .portfolio-showcase-grid .portfolio-showcase-card {
    position: relative;
    grid-column: span 4;
    width: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.7rem, 1vw, 1rem);
    padding: clamp(0.7rem, 1vw, 1rem);
    padding-top: clamp(2.8rem, 3.5vw, 3.6rem);
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0;
    background: #232324;
    box-shadow: none;
    color: #fff;
    overflow: hidden;
    counter-increment: portfolio-showcase;
    transition: background-color 280ms ease, color 280ms ease;
}

/* The legacy portfolio reveal sets every card to opacity: 0. Cards added to the
   editorial index after that reveal initializes must remain independently visible. */
#portfolio .portfolio-showcase-grid .portfolio-showcase-card,
#portfolio .portfolio-showcase-grid .portfolio-showcase-card[style] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

#portfolio .portfolio-showcase-grid .portfolio-showcase-group .portfolio-showcase-card:nth-child(1) {
    grid-column: span 4;
}

#portfolio .portfolio-showcase-grid .portfolio-showcase-group .portfolio-showcase-card:nth-child(2) {
    grid-column: span 4;
}

#portfolio .portfolio-showcase-grid .portfolio-showcase-group .portfolio-showcase-card:nth-child(3) {
    grid-column: span 4;
}

#portfolio .portfolio-showcase-grid .portfolio-showcase-card::before {
    content: "[" counter(portfolio-showcase, decimal-leading-zero) "]";
    position: absolute;
    top: clamp(1rem, 1.5vw, 1.4rem);
    left: clamp(0.9rem, 1.5vw, 1.4rem);
    z-index: 2;
    font-family: 'Chivo', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

#portfolio .portfolio-showcase-grid .portfolio-showcase-card::after {
    content: "";
    position: absolute;
    top: clamp(0.85rem, 1.3vw, 1.25rem);
    right: clamp(0.9rem, 1.5vw, 1.4rem);
    z-index: 2;
    width: 0.9rem;
    height: 0.9rem;
    box-sizing: border-box;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 14L14 2M6 2h8v8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 14L14 2M6 2h8v8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 260ms cubic-bezier(0.22, 0.8, 0.24, 1);
}

#portfolio .portfolio-showcase-grid .portfolio-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 0;
    background: #151516;
    overflow: hidden;
}

#portfolio .portfolio-showcase-grid .portfolio-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: top center;
    filter: saturate(0.82) contrast(1.03);
    transform: none;
    transition: filter 420ms ease, transform 700ms cubic-bezier(0.22, 0.8, 0.24, 1);
}

#portfolio .portfolio-showcase-grid .portfolio-card-label {
    min-height: 3.65rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0;
    color: inherit;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.15rem, 1.55vw, 1.8rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

#portfolio .portfolio-showcase-grid .portfolio-card-url {
    flex: 0 0 auto;
    margin: 0;
    color: inherit;
    font-family: 'Chivo', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.055em;
    line-height: 1.2;
    opacity: 0.72;
    text-transform: uppercase;
}

#portfolio .portfolio-showcase-grid .portfolio-showcase-card:hover,
#portfolio .portfolio-showcase-grid .portfolio-showcase-card:focus-visible {
    background: #ed1c24;
    color: #fff;
    box-shadow: none;
    outline: none;
}

#portfolio .portfolio-showcase-grid .portfolio-showcase-card:hover::after,
#portfolio .portfolio-showcase-grid .portfolio-showcase-card:focus-visible::after {
    transform: translate(0.22rem, -0.22rem);
}

#portfolio .portfolio-showcase-grid .portfolio-showcase-card:hover .portfolio-card-image img,
#portfolio .portfolio-showcase-grid .portfolio-showcase-card:focus-visible .portfolio-card-image img {
    filter: saturate(1) contrast(1.02);
    transform: none;
}

@media (max-width: 1100px) {
    #portfolio .portfolio-showcase-grid .portfolio-showcase-card,
    #portfolio .portfolio-showcase-grid .portfolio-showcase-group .portfolio-showcase-card:nth-child(n) {
        grid-column: span 6;
    }
}

@media (max-width: 700px) {
    #avantages .section-title {
        font-size: clamp(2.45rem, 10.5vw, 3.5rem);
        line-height: 0.9;
        letter-spacing: -0.07em;
    }

    #contact .contact-title {
        width: calc(100% + 1.2rem);
        max-width: none;
        margin-right: -0.6rem;
        margin-left: -0.6rem;
        font-size: clamp(2rem, 7.9vw, 3.25rem);
    }

    #portfolio .portfolio-showcase-grid {
        width: 100vw;
        max-width: none;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        box-sizing: border-box;
        grid-template-columns: 1fr;
    }

    #portfolio .portfolio-showcase-grid .portfolio-showcase-card,
    #portfolio .portfolio-showcase-grid .portfolio-showcase-group .portfolio-showcase-card:nth-child(n) {
        grid-column: 1;
    }

    #portfolio .portfolio-showcase-grid .portfolio-card-label {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }
}

.modular-cursor.is-pressed {
    width: 0.55rem;
    height: 0.55rem;
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
    body.modular-cursor-active,
    body.modular-cursor-active a,
    body.modular-cursor-active button {
        cursor: none;
    }

    body.modular-cursor-active input,
    body.modular-cursor-active textarea,
    body.modular-cursor-active select,
    body.modular-cursor-active label {
        cursor: auto;
    }
}

@media (hover: none), (pointer: coarse), (max-width: 900px), (prefers-reduced-motion: reduce) {
    .modular-cursor {
        display: none;
    }
}

.video-hero .hero-start-btn {
    position: relative;
    box-sizing: border-box;
    min-width: min(100%, 23rem);
    max-width: 100%;
    margin-top: clamp(1.6rem, 3.5vh, 2.7rem);
    padding: 1.15rem 1.25rem 1.15rem 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.18rem;
    background: #f21d2a;
    box-shadow: 0 14px 38px rgba(116, 0, 8, 0.25);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(0.88rem, 1.05vw, 1.05rem);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    pointer-events: auto;
    overflow: hidden;
    transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.video-hero .hero-start-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.22) 48%, transparent 75%);
    transform: translateX(-120%);
    transition: transform 600ms ease;
}

.video-hero .hero-start-btn::after {
    content: none;
}

.video-hero .hero-start-btn span {
    position: relative;
    font-size: 1.25em;
    transition: transform 220ms ease;
}

.video-hero .hero-start-btn:hover,
.video-hero .hero-start-btn:focus-visible {
    background: #ff2331;
    box-shadow: 0 18px 46px rgba(116, 0, 8, 0.38);
    transform: translateY(-3px);
}

.video-hero .hero-start-btn:hover::before,
.video-hero .hero-start-btn:focus-visible::before {
    transform: translateX(120%);
}

.video-hero .hero-start-btn:hover span,
.video-hero .hero-start-btn:focus-visible span {
    transform: translate(3px, -3px);
}

.floating-lang-switch {
    right: auto;
    left: 2rem;
}

#scroll-reminder {
    display: none !important;
}

/* Sharp-corner visual system: numbered steps, controls, cards, media and CTAs. */
*,
*::before,
*::after {
    border-radius: 0 !important;
}

.rounded-corners,
#avantages .rounded-corners {
    border-radius: 0 !important;
}

#avantages {
    padding-top: clamp(7rem, 12vh, 10rem);
    background-color: #eceeef !important;
}

/* Compact editorial benefits list, inspired by indexed studio service tables. */
#avantages .avantages-feature-row,
#avantages .third-benefit {
    width: 100% !important;
    min-height: clamp(8.5rem, 12vw, 11.5rem) !important;
    height: auto !important;
    margin: 0 !important;
    padding: clamp(1.25rem, 2.2vw, 2rem) clamp(1rem, 2.5vw, 2.5rem) !important;
    display: grid !important;
    grid-template-columns: minmax(4.5rem, 0.55fr) minmax(0, 1.9fr) minmax(16rem, 1fr) !important;
    align-items: center !important;
    gap: clamp(1rem, 2.5vw, 3rem) !important;
    box-sizing: border-box;
    border-top: 1px solid rgba(35, 35, 36, 0.82) !important;
    background-color: transparent;
    color: #232324;
    overflow: hidden;
    transition: background-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1), color 300ms ease;
}

#avantages .benefit-row-4 {
    border-top: 1px solid rgba(35, 35, 36, 0.82) !important;
    border-bottom: 1px solid rgba(35, 35, 36, 0.82) !important;
}

#avantages .benefit-row-4::before,
#avantages .benefit-row-4::after {
    content: none !important;
    display: none !important;
}

#avantages .benefit-row-1 {
    margin-top: clamp(4rem, 8vw, 8rem) !important;
}

#avantages .benefit-row-2 {
    transform: none !important;
}

#avantages .avantage-feature-left {
    display: contents !important;
}

#avantages .avantage-step {
    grid-column: 1;
    width: clamp(3rem, 4vw, 3.8rem) !important;
    height: clamp(3rem, 4vw, 3.8rem) !important;
    display: grid !important;
    place-items: center;
    margin: 0 !important;
    background: transparent !important;
    border: 1px solid currentColor;
    color: inherit !important;
    font-family: 'Chivo', sans-serif;
    font-size: clamp(0.82rem, 1vw, 1rem) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

#avantages .avantage-text,
#avantages .third-benefit-text {
    grid-column: 2;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    color: inherit !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4.2vw, 4.6rem) !important;
    font-weight: 400 !important;
    line-height: 0.98 !important;
    letter-spacing: -0.06em !important;
    text-align: left !important;
}

#avantages .benefit-row-description {
    grid-column: 3;
    max-width: 32rem;
    margin: 0;
    color: inherit;
    font-family: 'Chivo', sans-serif;
    font-size: clamp(0.72rem, 0.95vw, 0.9rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

#avantages .avantage-image-placeholder,
#avantages .benefit-banners { display: none !important; }

#avantages .avantages-feature-row,
#avantages .third-benefit {
    overflow: visible;
    isolation: isolate;
    z-index: 1;
}

#avantages .avantages-feature-row:hover,
#avantages .third-benefit:hover { z-index: 20; }

#avantages .avantages-feature-row > .avantage-image-placeholder,
#avantages .third-benefit > .benefit-hover-preview {
    position: absolute !important;
    top: 50% !important;
    left: 67% !important;
    z-index: 8 !important;
    display: block !important;
    width: clamp(16rem, 28vw, 31rem) !important;
    height: calc(100% + clamp(3rem, 6vw, 6rem)) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transform: translate(-50%, -50%) scale(0.76) rotate(-1.5deg) !important;
    transform-origin: center;
    transition: opacity 180ms ease, visibility 0s linear 280ms, transform 380ms cubic-bezier(0.18, 0.9, 0.2, 1) !important;
}

#avantages .benefit-row-2 > .avantage-image-placeholder {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none;
    overflow: visible;
    transform: translate(-50%, -50%) scale(0.72) rotate(1.5deg) !important;
}

#avantages .benefit-row-3 > .benefit-hover-preview {
    transform: translate(-50%, -50%) scale(0.76) rotate(1.2deg) !important;
}

#avantages .benefit-row-4 > .avantage-image-placeholder {
    transform: translate(-50%, -50%) scale(0.76) rotate(-1deg) !important;
}

#avantages .avantages-feature-row:hover > .avantage-image-placeholder,
#avantages .third-benefit:hover > .benefit-hover-preview {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1) rotate(0deg) !important;
    transition-delay: 40ms, 0s, 0s !important;
}

#avantages .avantages-feature-row > .avantage-image-placeholder .benefit-1-image,
#avantages .benefit-hover-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transform: none !important;
}

#avantages .benefit-row-2 .benefit-2-container {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
}

#avantages .benefit-row-2 .benefit-2-device-wrap {
    opacity: 1 !important;
    transform: none !important;
}

#avantages .benefit-row-4 .benefit-4-video-wrap {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
}

#avantages .benefit-row-4 video {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
}

#avantages .benefit-hover-preview--brand {
    display: block !important;
    overflow: visible;
    padding: 0 !important;
}

#avantages .benefit-hover-preview--brand img {
    position: absolute;
    top: 50%;
    width: 58% !important;
    height: 90% !important;
    object-fit: contain;
    filter: drop-shadow(0 1rem 1.4rem rgba(20, 20, 22, 0.26));
    transform-origin: center;
}

#avantages .benefit-hover-preview--brand img:nth-child(1) {
    left: 0;
    z-index: 1;
    transform: translateY(-50%) rotate(-4deg) !important;
}

#avantages .benefit-hover-preview--brand img:nth-child(2) {
    left: 42%;
    z-index: 3;
    transform: translateY(-50%) rotate(3deg) !important;
}

#avantages .benefit-row-1:hover { background-color: #ed1c24; color: #fff; }
#avantages .benefit-row-2:hover,
#avantages .benefit-row-3:hover,
#avantages .benefit-row-4:hover { background-color: #ed1c24; color: #fff; }

/* Keep the editorial hover colour, without displaying media previews. */
#avantages .avantages-feature-row > .avantage-image-placeholder,
#avantages .third-benefit > .benefit-hover-preview {
    display: none !important;
}

@media (max-width: 760px) {
    #avantages .avantages-feature-row.benefit-4-row,
    #avantages .avantages-feature-row.benefit-row-4 {
        margin-top: 0 !important;
    }

    #avantages .avantages-feature-row,
    #avantages .third-benefit {
        grid-template-columns: 3.3rem minmax(0, 1fr) !important;
        gap: 0.85rem 1rem !important;
        padding: 1.25rem 1rem !important;
    }

    #avantages .avantage-step {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 3rem !important;
        height: 3rem !important;
    }

    #avantages .avantage-text,
    #avantages .third-benefit-text {
        grid-column: 2;
        font-size: clamp(1.8rem, 8vw, 3rem) !important;
    }

    #avantages .benefit-row-description {
        grid-column: 2;
        font-size: 0.68rem;
    }

    #avantages .avantages-feature-row > .avantage-image-placeholder,
    #avantages .third-benefit > .benefit-hover-preview {
        display: none !important;
    }
}

#portfolio,
#contact {
    background-color: #232324 !important;
}

/* Featured case studies: an original modular adaptation of editorial UX portfolios. */
#portfolio .featured-projects {
    width: 100vw;
    margin: 0 calc(50% - 50vw) clamp(8rem, 14vw, 14rem);
    color: #fff;
}

#portfolio .featured-projects-header {
    display: block;
    padding: 0 clamp(1.5rem, 4vw, 4.5rem) clamp(4rem, 8vw, 7rem);
}

#portfolio .featured-projects-title {
    margin: 0;
    max-width: 100%;
    padding-right: 0.06em;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(4rem, 8.8vw, 9rem);
    font-weight: 400;
    line-height: 0.84;
    letter-spacing: -0.045em;
    word-spacing: 0.07em;
    white-space: normal;
    text-wrap: balance;
    overflow: visible;
}

#portfolio .featured-title-line {
    display: inline;
}

#portfolio .featured-title-line + .featured-title-line::before {
    content: " ";
}


#portfolio .featured-project-card {
    width: 100%;
    min-height: clamp(38rem, 76vh, 52rem);
    display: grid;
    grid-template-columns: clamp(10rem, 28vw, 28rem) minmax(0, 1fr);
    color: #fff;
    background: transparent;
    border-top: 1px solid rgba(236, 238, 239, 0.5);
    box-shadow: none;
    overflow: visible;
    text-decoration: none;
}

#portfolio .featured-project-card:last-child {
    border-bottom: 1px solid rgba(236, 238, 239, 0.5);
}

#portfolio .featured-project-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

#portfolio .featured-project-rail {
    padding: clamp(1.5rem, 3vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    background: #eceeef;
    color: #232324;
    transition: background-color 320ms ease, color 320ms ease;
}

#portfolio .featured-project-card:hover .featured-project-rail {
    background: #ed1c24;
    color: #fff;
}

#portfolio .featured-project-index,
#portfolio .featured-project-rail-label {
    font-family: 'Chivo', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#portfolio .featured-project-rail-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

#portfolio .featured-project-arrow {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    font-size: 1.2rem;
}

#portfolio .featured-project-stage {
    min-width: 0;
    padding: clamp(1.5rem, 3.5vw, 4rem);
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
    grid-template-rows: auto 1fr auto;
    gap: clamp(2rem, 4vw, 4.5rem);
    background: #232324;
    transition: background-color 320ms ease;
}

#portfolio .featured-project-card:hover .featured-project-stage {
    background: #1b1b1c;
}

#portfolio .featured-project-name {
    grid-column: 1 / -1;
    margin: 0;
    align-self: start;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(4rem, 9.5vw, 9.5rem);
    font-weight: 400;
    line-height: 0.8;
    letter-spacing: -0.075em;
    will-change: transform, opacity;
}

#portfolio .featured-project-media {
    grid-column: 1;
    align-self: end;
    width: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    background: #181819;
}

#portfolio .featured-project-media img,
#portfolio .featured-project-media video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

#portfolio .featured-project-copy {
    grid-column: 2;
    align-self: end;
    will-change: transform, opacity;
}

#portfolio .featured-project-media,
#portfolio .featured-project-rail,
#portfolio .featured-projects-title {
    will-change: transform, opacity, clip-path;
}

#portfolio .featured-project-copy p {
    margin: 0 0 2rem;
    font-family: 'Chivo', sans-serif;
    font-size: clamp(0.88rem, 1.2vw, 1.05rem);
    line-height: 1.55;
}

#portfolio .featured-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

#portfolio .featured-project-meta li {
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(236, 238, 239, 0.38);
    font-family: 'Chivo', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

#portfolio .featured-project-link-label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #ed1c24;
    font-family: 'Chivo', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#portfolio > .portfolio-title {
    margin-top: 0;
}

#portfolio .featured-title-lens {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;
    width: clamp(8rem, 12vw, 13rem);
    aspect-ratio: 1;
    box-sizing: border-box;
    border: clamp(0.58rem, 0.8vw, 0.9rem) solid #ed1c24;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 1rem 2.8rem rgba(0, 0, 0, 0.12);
    opacity: var(--featured-lens-opacity, 0);
    transform: translate3d(var(--featured-lens-x, 100vw), var(--featured-lens-y, 40vh), 0)
        translate(-50%, -50%) rotate(var(--featured-lens-rotation, -18deg))
        scale(var(--featured-lens-scale, 0.8));
    transform-origin: center;
    pointer-events: none;
    will-change: transform, opacity;
}

#portfolio .featured-title-lens::after {
    content: "";
    position: absolute;
    top: 88%;
    left: 88%;
    width: 52%;
    height: clamp(0.58rem, 0.8vw, 0.9rem);
    border-radius: 999px !important;
    background: #ed1c24;
    transform: rotate(45deg);
    transform-origin: left center;
}

#portfolio .featured-projects-header.has-featured-reveal .featured-projects-title {
    -webkit-mask-image: radial-gradient(
        circle var(--featured-reveal-radius, 0px) at var(--featured-reveal-x, 100%) var(--featured-reveal-y, 50%),
        #000 0 88%,
        transparent 100%
    );
    mask-image: radial-gradient(
        circle var(--featured-reveal-radius, 0px) at var(--featured-reveal-x, 100%) var(--featured-reveal-y, 50%),
        #000 0 88%,
        transparent 100%
    );
    will-change: transform, -webkit-mask-image, mask-image;
}

@media (min-width: 821px) {
    #portfolio {
        padding-top: 0;
    }

    #portfolio .featured-projects {
        --featured-mobile-bg: #eceeef;
        --featured-mobile-fg: #232324;
        margin-bottom: 0;
        background-color: var(--featured-mobile-bg);
        color: var(--featured-mobile-fg);
        transition: background-color 120ms linear, color 120ms linear;
    }

    #portfolio .featured-projects::after {
        content: "";
        display: block;
        width: 100%;
        height: 62vh;
    }

    #portfolio .featured-projects-header {
        --featured-title-entry: 0;
        --featured-title-line-one-x: -105vw;
        --featured-title-line-two-x: 105vw;
        --featured-title-line-one-rotation: -4deg;
        --featured-title-line-two-rotation: 4deg;
        --featured-accent-x: 26vw;
        --featured-accent-y: 10vh;
        --featured-accent-rotation: -32deg;
        --featured-accent-scale: 0.45;
        --featured-accent-opacity: 0;
        position: relative;
        min-height: 300vh;
        box-sizing: border-box;
        display: block;
        padding: 0 clamp(2rem, 4vw, 5rem);
        color: inherit;
        overflow: clip;
    }

    #portfolio .featured-projects-header::before {
        content: none;
    }

    #portfolio .featured-projects-header::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 1px;
        background: currentColor;
        opacity: 0.42;
        transform: scaleX(var(--featured-title-entry));
        transform-origin: left center;
    }

    #portfolio .featured-projects-title {
        position: sticky;
        top: 0;
        z-index: 1;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        font-size: clamp(6rem, 11vw, 11rem);
        line-height: 0.8;
        pointer-events: none;
    }

    #portfolio .featured-title-line {
        display: block;
        width: max-content;
        max-width: 100%;
        will-change: transform;
    }

    #portfolio .featured-title-line + .featured-title-line::before {
        content: none;
    }

    #portfolio .featured-title-line:first-child {
        transform: translate3d(var(--featured-title-line-one-x), 0, 0)
            rotate(var(--featured-title-line-one-rotation));
        transform-origin: left center;
    }

    #portfolio .featured-title-line:last-child {
        align-self: flex-end;
        transform: translate3d(var(--featured-title-line-two-x), 0, 0)
            rotate(var(--featured-title-line-two-rotation));
        transform-origin: right center;
    }

    #portfolio .featured-project-card {
        min-height: 100vh;
        grid-template-columns: 1fr;
        border-top: 0;
        background: transparent;
        color: inherit;
    }

    #portfolio .featured-project-card + .featured-project-card {
        border-top: 1px solid rgba(139, 140, 141, 0.72);
    }

    #portfolio .featured-project-rail {
        display: none;
    }

    #portfolio .featured-projects-list {
        background: transparent;
        color: inherit;
    }

    #portfolio .featured-project-stage {
        min-height: 100vh;
        box-sizing: border-box;
        padding: clamp(4rem, 8vh, 7rem) clamp(2rem, 4vw, 5rem);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: clamp(1.5rem, 3vh, 2.5rem);
        background: transparent;
        color: inherit;
    }

    #portfolio .featured-project-card:hover .featured-project-stage {
        background: transparent;
    }

    #portfolio .featured-project-name,
    #portfolio .featured-project-media,
    #portfolio .featured-project-copy {
        grid-column: auto;
    }

    #portfolio .featured-project-name {
        color: inherit;
        font-size: clamp(6rem, 10.5vw, 11rem);
        line-height: 0.82;
    }

    #portfolio .featured-project-media {
        align-self: center;
        width: min(68vw, 72rem);
        aspect-ratio: auto;
        background: transparent;
    }

    #portfolio .featured-project-copy {
        align-self: flex-end;
        width: min(34rem, 38vw);
        max-width: 100%;
    }

    #portfolio .featured-project-copy p {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 820px) {
    #portfolio {
        padding-top: 0;
    }

    #portfolio .featured-projects {
        --featured-mobile-bg: #eceeef;
        --featured-mobile-fg: #232324;
        margin-bottom: 0;
        background-color: var(--featured-mobile-bg);
        color: var(--featured-mobile-fg);
        transition: background-color 120ms linear, color 120ms linear;
    }

    #portfolio .featured-projects::after {
        content: "";
        display: block;
        width: 100%;
        height: 68svh;
    }

    #portfolio > .portfolio-title {
        font-size: clamp(3.25rem, 14vw, 5rem);
        line-height: 0.86;
    }

    #portfolio > .portfolio-title .letter-space {
        display: block;
        width: 0;
        height: 0;
        overflow: hidden;
    }

    #portfolio .featured-projects-header {
        --featured-title-entry: 0;
        --featured-title-line-one-x: -105vw;
        --featured-title-line-two-x: 105vw;
        --featured-title-line-one-rotation: -4deg;
        --featured-title-line-two-rotation: 4deg;
        --featured-accent-x: 26vw;
        --featured-accent-y: 10vh;
        --featured-accent-rotation: -32deg;
        --featured-accent-scale: 0.45;
        --featured-accent-opacity: 0;
        position: relative;
        min-height: 300svh;
        box-sizing: border-box;
        display: block;
        padding: 0 1rem;
        color: inherit;
        overflow: clip;
    }

    #portfolio .featured-projects-header::before {
        content: none;
    }

    #portfolio .featured-title-lens {
        width: clamp(4.25rem, 20vw, 6rem);
        border-width: clamp(0.34rem, 1.8vw, 0.52rem);
    }

    #portfolio .featured-title-lens::after {
        height: clamp(0.34rem, 1.8vw, 0.52rem);
    }

    #portfolio .featured-projects-header::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 1px;
        background: currentColor;
        opacity: 0.42;
        transform: scaleX(var(--featured-title-entry));
        transform-origin: left center;
    }

    #portfolio .featured-projects-title {
        position: sticky;
        top: 3.5rem;
        z-index: 1;
        min-height: calc(100svh - 3.5rem);
        display: flex;
        flex-direction: column;
        justify-content: center;
        font-size: clamp(3.8rem, 16vw, 6.4rem);
        line-height: 0.82;
        pointer-events: none;
    }

    #portfolio .featured-title-line {
        display: block;
        width: max-content;
        max-width: 100%;
        white-space: nowrap;
        will-change: transform;
    }

    #portfolio .featured-title-line + .featured-title-line::before {
        content: none;
    }

    #portfolio .featured-title-line:first-child {
        transform: translate3d(var(--featured-title-line-one-x), 0, 0)
            rotate(var(--featured-title-line-one-rotation));
        transform-origin: left center;
    }

    #portfolio .featured-title-line:last-child {
        align-self: flex-end;
        transform: translate3d(var(--featured-title-line-two-x), 0, 0)
            rotate(var(--featured-title-line-two-rotation));
        transform-origin: right center;
    }

    #portfolio .featured-project-card {
        min-height: calc(100svh - 3.5rem);
        grid-template-columns: 1fr;
        border-top: 0;
        background: transparent;
        color: inherit;
    }

    #portfolio .featured-project-card + .featured-project-card {
        border-top: 1px solid #8b8c8d;
    }

    #portfolio .featured-project-rail {
        display: none;
    }

    #portfolio .featured-projects-list {
        background: transparent;
        color: inherit;
    }

    #portfolio .featured-project-stage {
        min-height: calc(100svh - 3.5rem);
        box-sizing: border-box;
        padding: clamp(2.5rem, 8vh, 5rem) 1rem clamp(2rem, 7vh, 4rem);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: clamp(1rem, 2.5vh, 1.5rem);
        background: transparent;
        color: inherit;
    }

    #portfolio .featured-project-card:hover .featured-project-stage {
        background: transparent;
    }

    #portfolio .featured-project-name,
    #portfolio .featured-project-media,
    #portfolio .featured-project-copy {
        grid-column: auto;
    }

    #portfolio .featured-project-name {
        color: inherit;
        font-size: clamp(3.6rem, 16vw, 6rem);
        line-height: 0.84;
    }

    #portfolio .featured-project-media {
        align-self: auto;
        aspect-ratio: auto;
        background: transparent;
    }

    #portfolio .featured-project-copy {
        align-self: auto;
        max-width: 34rem;
    }

    #portfolio .featured-project-copy p {
        margin-bottom: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #portfolio .featured-projects {
        transition: none;
    }
}

/* Full-screen project detail sheet layered above the current page. */
body.project-overlay-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.project-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100vh;
    height: 100dvh;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    background: #eceeef;
    color: #232324;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 102%, 0);
    transition: transform 680ms cubic-bezier(0.18, 0.88, 0.22, 1), visibility 0s linear 680ms;
}

.project-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
}

.project-overlay__topbar {
    position: sticky;
    top: 0;
    z-index: 4;
    min-height: 4.25rem;
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    align-items: stretch;
    background: rgba(236, 238, 239, 0.96);
    border-bottom: 1px solid rgba(35, 35, 36, 0.35);
    backdrop-filter: blur(14px);
}

.project-overlay__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #ed1c24;
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

.project-overlay__close {
    position: relative;
    width: 4.25rem;
    height: 4.25rem;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-right: 1px solid rgba(35, 35, 36, 0.35);
    background: #232324;
    color: #fff;
    font-size: 0;
    cursor: pointer;
    transition: background-color 220ms ease, color 220ms ease;
}

.project-overlay__close::before,
.project-overlay__close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.15rem;
    height: 2px;
    background: currentColor;
    transform-origin: center;
}

.project-overlay__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.project-overlay__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.project-overlay__close:hover,
.project-overlay__close:focus-visible {
    background: #ed1c24;
    outline: none;
}

.project-overlay__site {
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    font-family: 'Chivo', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.project-overlay__counter {
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    border-left: 1px solid rgba(35, 35, 36, 0.22);
    font-family: 'Chivo', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
}

.project-overlay__content {
    padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem) clamp(5rem, 10vw, 10rem);
    transition: opacity 260ms ease, transform 260ms ease;
}

.project-overlay.is-switching .project-overlay__content {
    opacity: 0;
    transform: translateY(1rem);
}

.project-overlay__title {
    max-width: 13ch;
    margin: 0 0 clamp(3rem, 7vw, 7rem);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(4rem, 12vw, 12rem);
    font-weight: 400;
    line-height: 0.8;
    letter-spacing: -0.075em;
    overflow-wrap: anywhere;
    opacity: 0;
    transform: translateY(4rem);
    transition: opacity 520ms ease 180ms, transform 760ms cubic-bezier(0.18, 0.88, 0.22, 1) 140ms;
}

.project-overlay.is-open .project-overlay__title {
    opacity: 1;
    transform: translateY(0);
}

.project-overlay__media {
    width: 100%;
    min-height: min(68vw, 50rem);
    display: grid;
    place-items: center;
    background: #232324;
    overflow: hidden;
    opacity: 0;
    transform: translateY(5rem);
    transition: opacity 600ms ease 260ms, transform 820ms cubic-bezier(0.18, 0.88, 0.22, 1) 220ms;
}

.project-overlay.is-open .project-overlay__media {
    opacity: 1;
    transform: translateY(0);
}

.project-overlay__media img,
.project-overlay__media video {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    display: block;
    object-fit: contain;
}

.project-overlay__details {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr);
    gap: clamp(2rem, 6vw, 7rem);
    padding-top: clamp(2rem, 5vw, 5rem);
    opacity: 0;
    transform: translateY(3rem);
    transition: opacity 520ms ease 380ms, transform 700ms cubic-bezier(0.18, 0.88, 0.22, 1) 340ms;
}

.project-overlay.is-open .project-overlay__details {
    opacity: 1;
    transform: translateY(0);
}

.project-overlay__description {
    max-width: 44rem;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.6rem, 3.2vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.project-overlay__aside {
    align-self: start;
}

.project-overlay__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.project-overlay__meta li {
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(35, 35, 36, 0.42);
    font-family: 'Chivo', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.project-overlay__live-link {
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.25rem;
    background: #ed1c24;
    color: #fff;
    font-family: 'Chivo', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
}

.project-overlay__live-link:hover,
.project-overlay__live-link:focus-visible {
    background: #232324;
    outline: none;
}

/* FORTIA — an editorial, motion-led case study inside the project sheet. */
.project-overlay.is-fortia .project-overlay__media {
    min-height: 0;
    aspect-ratio: 1920 / 1040;
    background: transparent;
    transform: translate3d(0, var(--fortia-hero-shift, 0px), 0) scale(var(--fortia-hero-scale, 1));
    transform-origin: center top;
    will-change: transform;
}

.project-overlay.is-fortia .project-overlay__content > .project-overlay__media {
    display: grid;
}

.project-overlay.is-fortia .project-overlay__media video {
    background: transparent;
}

.project-overlay.is-fortia.is-open .project-overlay__title {
    transform: translate3d(var(--fortia-title-shift, 0px), 0, 0);
    will-change: transform;
}

.project-overlay__case-study:empty {
    display: none;
}

.project-overlay__related {
    margin-top: clamp(6rem, 12vw, 13rem);
    padding-top: clamp(2.5rem, 5vw, 5rem);
    border-top: 1px solid rgba(35, 35, 36, 0.48);
}

.project-overlay__related-header {
    display: grid;
    grid-template-columns: minmax(9rem, 0.22fr) minmax(0, 0.78fr);
    gap: clamp(1rem, 4vw, 4rem);
    align-items: start;
    margin-bottom: clamp(3rem, 7vw, 7rem);
}

.project-overlay__related-header > span {
    padding-top: 0.55rem;
    font: 600 0.68rem/1 'Chivo', sans-serif;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.project-overlay__related-header h3 {
    max-width: 10ch;
    margin: 0;
    font: 400 clamp(3.2rem, 8vw, 9rem)/0.88 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.065em;
}

.project-overlay__related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: rgba(35, 35, 36, 0.45);
    border: 1px solid rgba(35, 35, 36, 0.45);
}

.project-overlay__related-card {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #eceeef;
    color: #232324;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 260ms ease, color 260ms ease;
}

.project-overlay__related-media {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    padding: clamp(0.8rem, 1.5vw, 1.5rem);
    background: transparent;
    overflow: hidden;
}

.project-overlay__related-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 550ms cubic-bezier(0.18, 0.88, 0.22, 1);
}

.project-overlay__related-copy {
    position: relative;
    min-height: clamp(7.5rem, 11vw, 11rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.25rem, 2.5vw, 2.5rem);
    border-top: 1px solid rgba(35, 35, 36, 0.3);
}

.project-overlay__related-copy strong {
    max-width: 12ch;
    font: 400 clamp(2rem, 4.2vw, 5rem)/0.92 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.055em;
}

.project-overlay__related-copy small {
    margin-top: 0.8rem;
    font: 600 0.65rem/1 'Chivo', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-overlay__related-copy i {
    position: absolute;
    right: clamp(1.25rem, 2.5vw, 2.5rem);
    bottom: clamp(1.25rem, 2.5vw, 2.5rem);
    font: normal 400 clamp(1.3rem, 2vw, 2rem)/1 'Plus Jakarta Sans', sans-serif;
}

/* Draw link arrows with CSS so mobile platforms cannot substitute emoji glyphs. */
.video-hero .hero-start-btn > span[aria-hidden="true"],
#portfolio .featured-project-link-label > span[aria-hidden="true"],
.project-overlay__live-link > span[aria-hidden="true"],
.project-overlay__related-copy > i[aria-hidden="true"] {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    flex: 0 0 0.9rem;
    box-sizing: border-box;
    font-size: 0 !important;
    line-height: 0;
}

#portfolio .featured-project-arrow {
    font-size: 0;
}

.video-hero .hero-start-btn > span[aria-hidden="true"]::before,
#portfolio .featured-project-link-label > span[aria-hidden="true"]::before,
#portfolio .featured-project-arrow::before,
.project-overlay__live-link > span[aria-hidden="true"]::before,
.project-overlay__related-copy > i[aria-hidden="true"]::before {
    content: "";
    display: block;
    width: 0.9rem;
    height: 0.9rem;
    box-sizing: border-box;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 14L14 2M6 2h8v8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 14L14 2M6 2h8v8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / contain no-repeat;
}

.project-overlay__related-card:hover,
.project-overlay__related-card:focus-visible {
    background: #ed1c24;
    color: #fff;
    outline: none;
}

.project-overlay__related-card:hover .project-overlay__related-media img,
.project-overlay__related-card:focus-visible .project-overlay__related-media img {
    transform: scale(1.025);
}

@media (max-width: 760px) {
    .project-overlay__related-header,
    .project-overlay__related-grid {
        grid-template-columns: 1fr;
    }

    .project-overlay__related-header {
        gap: 1.5rem;
    }
}

.fortia-case-study {
    margin-top: clamp(5rem, 10vw, 10rem);
    border-top: 1px solid rgba(35, 35, 36, 0.45);
    counter-reset: fortia-scene;
}

.fortia-case-study__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
    gap: clamp(2rem, 7vw, 8rem);
    padding: clamp(3rem, 7vw, 7rem) 0 clamp(5rem, 10vw, 10rem);
    opacity: 0;
    transform: translateY(4rem);
    transition: opacity 700ms ease, transform 950ms cubic-bezier(0.18, 0.88, 0.22, 1);
}

.fortia-case-study__intro.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fortia-case-study__marker {
    position: absolute;
    width: 0.8rem;
    height: 0.8rem;
    background: #ed1c24;
}

.fortia-case-study__intro h3 {
    max-width: 12ch;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(3rem, 7.2vw, 8rem);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -0.065em;
    transform: translate3d(var(--fortia-intro-shift, 0px), 0, 0);
    will-change: transform;
}

.fortia-case-study__intro p {
    align-self: end;
    max-width: 34rem;
    margin: 0;
    font-family: 'Chivo', sans-serif;
    font-size: clamp(0.92rem, 1.35vw, 1.2rem);
    line-height: 1.55;
}

/* Interactive architectural blueprint for the FORTIA custom assets. */
.fortia-blueprint {
    position: relative;
    display: grid;
    grid-template-columns: minmax(17rem, 0.34fr) minmax(0, 1fr);
    min-height: calc(100vh - 4.25rem);
    border-top: 1px solid rgba(35, 35, 36, 0.55);
    border-bottom: 1px solid rgba(35, 35, 36, 0.55);
    opacity: 0;
    transform: translateY(4rem);
    transition: opacity 650ms ease, transform 850ms cubic-bezier(0.18, 0.88, 0.22, 1);
}

.fortia-blueprint.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fortia-blueprint::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.28;
    background-image: linear-gradient(rgba(35, 35, 36, 0.13) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 35, 36, 0.13) 1px, transparent 1px);
    background-size: 3rem 3rem;
    background-position: var(--blueprint-grid-shift, 0px) var(--blueprint-grid-shift, 0px);
}

.fortia-blueprint__index {
    border-right: 1px solid rgba(35, 35, 36, 0.55);
}

.fortia-blueprint__label {
    min-height: 4rem;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(35, 35, 36, 0.45);
    font-family: 'Chivo', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fortia-blueprint__item {
    width: 100%;
    min-height: clamp(4.25rem, 7vh, 5.5rem);
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 0;
    border-bottom: 1px solid rgba(35, 35, 36, 0.28);
    background: rgba(236, 238, 239, 0.72);
    color: #232324;
    text-align: left;
    cursor: pointer;
    transition: background-color 220ms ease, color 220ms ease, padding-left 280ms ease;
}

.fortia-blueprint__item span {
    font: 600 0.68rem/1 'Chivo', sans-serif;
}

.fortia-blueprint__item strong {
    font: 500 clamp(0.82rem, 1.05vw, 1rem)/1.15 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.025em;
}

.fortia-blueprint__item:hover,
.fortia-blueprint__item:focus-visible {
    padding-left: 1.35rem;
    outline: none;
}

.fortia-blueprint__item.is-active {
    background: #232324;
    color: #fff;
}

.fortia-blueprint__item.is-active span {
    color: #ed1c24;
}

.fortia-blueprint__stage {
    min-width: 0;
    padding: clamp(1rem, 2.5vw, 2.5rem);
}

.fortia-blueprint__stage-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    font: 600 0.68rem/1 'Chivo', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fortia-blueprint__media {
    position: relative;
    width: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    aspect-ratio: 1920 / 1020;
    border: 1px solid rgba(35, 35, 36, 0.55);
    background: transparent;
    overflow: visible;
    transition: opacity 220ms ease, transform 420ms cubic-bezier(0.18, 0.88, 0.22, 1), clip-path 420ms cubic-bezier(0.18, 0.88, 0.22, 1), filter 420ms ease;
}

.fortia-blueprint__media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: transparent;
}

.fortia-blueprint__axis {
    position: absolute;
    z-index: 2;
    padding: 0.3rem 0.4rem;
    background: #eceeef;
    font: 600 0.58rem/1 'Chivo', sans-serif;
    letter-spacing: 0.08em;
}

.fortia-blueprint__axis.axis-x { left: -1px; bottom: -1px; }
.fortia-blueprint__axis.axis-y { top: -1px; right: -1px; }

.fortia-blueprint__crosshair {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.1rem;
    height: 1.1rem;
    border: 1px solid #ed1c24;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.fortia-blueprint__crosshair::before,
.fortia-blueprint__crosshair::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: #ed1c24;
    transform: translate(-50%, -50%);
}

.fortia-blueprint__crosshair::before { width: 2.4rem; height: 1px; }
.fortia-blueprint__crosshair::after { width: 1px; height: 2.4rem; }

.fortia-blueprint__details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    padding-top: clamp(1.5rem, 3vw, 3rem);
    transition: opacity 180ms ease, transform 320ms ease;
}

.fortia-blueprint__asset-label,
.fortia-blueprint__format {
    display: block;
    margin-bottom: 0.75rem;
    font: 600 0.64rem/1 'Chivo', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fortia-blueprint__details h4 {
    max-width: 13ch;
    margin: 0;
    font: 400 clamp(2rem, 4.2vw, 4.8rem)/0.92 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.055em;
}

.fortia-blueprint__details p {
    margin: 0 0 1.5rem;
    font: 400 clamp(0.82rem, 1vw, 1rem)/1.55 'Chivo', sans-serif;
}

.fortia-blueprint__stage.is-mobile .fortia-blueprint__media {
    width: min(100%, 27rem);
    margin-inline: auto;
    aspect-ratio: 474 / 1020;
}

.fortia-blueprint__stage.is-switching .fortia-blueprint__details {
    opacity: 0;
    transform: translateY(1rem);
}

.fortia-blueprint__stage[data-transition="expand"].is-switching .fortia-blueprint__media { opacity: 0; transform: scaleX(0.35); }
.fortia-blueprint__stage[data-transition="orbit"].is-switching .fortia-blueprint__media { opacity: 0; transform: rotate(-5deg) scale(0.88); filter: blur(12px); }
.fortia-blueprint__stage[data-transition="pan"].is-switching .fortia-blueprint__media { opacity: 0; transform: translateX(-12%); }
.fortia-blueprint__stage[data-transition="diagonal"].is-switching .fortia-blueprint__media { opacity: 0; clip-path: polygon(100% 0, 100% 0, 0 100%, 0 100%); }
.fortia-blueprint__stage[data-transition="zoom"].is-switching .fortia-blueprint__media { opacity: 0; transform: scale(1.16); }
.fortia-blueprint__stage[data-transition="aperture"].is-switching .fortia-blueprint__media { opacity: 0; clip-path: inset(48% 0); }
.fortia-blueprint__stage[data-transition="portrait"].is-switching .fortia-blueprint__media { opacity: 0; transform: translateY(8%) scaleY(0.78); }

@media (max-width: 900px) {
    .fortia-blueprint {
        grid-template-columns: 1fr;
    }

    .fortia-blueprint__index {
        border-right: 0;
        border-bottom: 1px solid rgba(35, 35, 36, 0.55);
    }

    .fortia-blueprint__item {
        min-height: 4rem;
    }

    .fortia-blueprint__details {
        grid-template-columns: 1fr;
    }
}

/* Interactive media index — compact selection with one stationary viewer. */
.fortia-media-index {
    display: grid;
    grid-template-columns: minmax(19rem, 0.42fr) minmax(0, 0.58fr);
    align-items: start;
    min-height: calc(100vh - 4.25rem);
    border-top: 1px solid rgba(35, 35, 36, 0.55);
    opacity: 0;
    transform: translateY(4rem);
    transition: opacity 650ms ease, transform 850ms cubic-bezier(0.18, 0.88, 0.22, 1);
}

.fortia-media-index.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fortia-media-index__list {
    border-right: 1px solid rgba(35, 35, 36, 0.55);
}

.fortia-media-index__label {
    min-height: 4rem;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 1.25rem;
    border-bottom: 1px solid rgba(35, 35, 36, 0.45);
    font: 600 0.68rem/1 'Chivo', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fortia-media-index__item {
    width: 100%;
    min-height: clamp(5rem, 9vh, 7rem);
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr) 1.5rem;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 0;
    border-bottom: 1px solid rgba(35, 35, 36, 0.28);
    background: transparent;
    color: #232324;
    text-align: left;
    cursor: pointer;
    transition: background-color 260ms ease, color 260ms ease, padding-left 320ms cubic-bezier(0.18, 0.88, 0.22, 1);
}

.fortia-media-index__number {
    font: 600 0.68rem/1 'Chivo', sans-serif;
}

.fortia-media-index__item strong {
    font: 400 clamp(1rem, 1.55vw, 1.55rem)/1.05 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.035em;
}

.fortia-media-index__arrow {
    opacity: 0;
    transform: translate(-0.5rem, 0.5rem);
    transition: opacity 220ms ease, transform 300ms ease;
}

.fortia-media-index__item:hover,
.fortia-media-index__item:focus-visible {
    padding-left: 1.65rem;
    outline: none;
}

.fortia-media-index__item.is-active {
    background: #ed1c24;
    color: #fff;
}

.fortia-media-index__item.is-active .fortia-media-index__arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.fortia-media-index__viewer {
    position: sticky;
    top: 4.75rem;
    min-width: 0;
    padding: clamp(1rem, 2.5vw, 2.5rem);
}

.fortia-media-index__viewer-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    font: 600 0.68rem/1 'Chivo', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fortia-media-index__media {
    width: 100%;
    display: grid;
    place-items: center;
    aspect-ratio: 1920 / 1020;
    background: transparent;
    overflow: visible;
    transition: opacity 220ms ease, transform 420ms cubic-bezier(0.18, 0.88, 0.22, 1), clip-path 420ms cubic-bezier(0.18, 0.88, 0.22, 1), filter 420ms ease;
}

.fortia-media-index__media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: transparent;
}

.fortia-media-index__details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.85fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    padding-top: clamp(1.25rem, 2.5vw, 2.5rem);
    transition: opacity 180ms ease, transform 320ms ease;
}

.fortia-media-index__asset-label,
.fortia-media-index__format {
    display: block;
    margin-bottom: 0.7rem;
    font: 600 0.62rem/1 'Chivo', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fortia-media-index__details h4 {
    margin: 0;
    font: 400 clamp(1.8rem, 3.3vw, 3.7rem)/0.94 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.055em;
}

.fortia-media-index__details p {
    margin: 0 0 1.25rem;
    font: 400 clamp(0.78rem, 0.95vw, 0.95rem)/1.5 'Chivo', sans-serif;
}

.fortia-media-index__viewer.is-mobile .fortia-media-index__media {
    width: min(100%, 25rem);
    margin-inline: auto;
    aspect-ratio: 474 / 1020;
}

.fortia-media-index__viewer.is-switching .fortia-media-index__details {
    opacity: 0;
    transform: translateY(1rem);
}

.fortia-media-index__viewer[data-transition="expand"].is-switching .fortia-media-index__media { opacity: 0; transform: scaleX(0.35); }
.fortia-media-index__viewer[data-transition="orbit"].is-switching .fortia-media-index__media { opacity: 0; transform: rotate(-5deg) scale(0.88); filter: blur(12px); }
.fortia-media-index__viewer[data-transition="pan"].is-switching .fortia-media-index__media { opacity: 0; transform: translateX(-14%); }
.fortia-media-index__viewer[data-transition="diagonal"].is-switching .fortia-media-index__media { opacity: 0; clip-path: polygon(100% 0, 100% 0, 0 100%, 0 100%); }
.fortia-media-index__viewer[data-transition="zoom"].is-switching .fortia-media-index__media { opacity: 0; transform: scale(1.16); }
.fortia-media-index__viewer[data-transition="aperture"].is-switching .fortia-media-index__media { opacity: 0; clip-path: inset(48% 0); }
.fortia-media-index__viewer[data-transition="portrait"].is-switching .fortia-media-index__media { opacity: 0; transform: translateY(8%) scaleY(0.78); }

@media (max-width: 900px) {
    .fortia-media-index {
        grid-template-columns: 1fr;
    }

    .fortia-media-index__list {
        border-right: 0;
    }

    .fortia-media-index__viewer {
        position: relative;
        top: auto;
    }

    .fortia-media-index__details {
        grid-template-columns: 1fr;
    }
}

/* Continuous film-strip case study. */
.fortia-filmstrip {
    position: relative;
    border-top: 1px solid rgba(35, 35, 36, 0.65);
    opacity: 0;
    transform: translateY(4rem);
    transition: opacity 650ms ease, transform 850ms cubic-bezier(0.18, 0.88, 0.22, 1);
}

.fortia-filmstrip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fortia-filmstrip__header {
    position: sticky;
    top: 4.25rem;
    z-index: 5;
    min-height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 3.5rem;
    background: #232324;
    color: #fff;
    font: 600 0.68rem/1 'Chivo', sans-serif;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.fortia-filmstrip__track {
    position: relative;
    padding-inline: 3.5rem;
}

.fortia-filmstrip__track::before,
.fortia-filmstrip__track::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: 1.7rem;
    pointer-events: none;
    background-color: #232324;
    background-image: radial-gradient(circle, #eceeef 0 0.3rem, transparent 0.33rem);
    background-size: 100% 2.25rem;
    background-position: center var(--filmstrip-offset, 0px);
}

.fortia-filmstrip__track::before { left: 0; }
.fortia-filmstrip__track::after { right: 0; }

.fortia-filmstrip__frame {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1rem, 2.2vw, 2.4rem);
    align-items: center;
    min-height: 100vh;
    padding: clamp(4rem, 12vh, 8rem) clamp(1rem, 2vw, 2rem);
    border-top: 1px solid rgba(35, 35, 36, 0.34);
    opacity: 0;
    transform: translateX(-4rem);
    transition: opacity 650ms ease, transform 900ms cubic-bezier(0.18, 0.88, 0.22, 1);
}

.fortia-filmstrip__frame:nth-child(even) {
    transform: translateX(4rem);
}

.fortia-filmstrip__frame.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.fortia-filmstrip__frame::before {
    content: attr(data-frame);
    position: absolute;
    right: 1.25rem;
    bottom: 0.2rem;
    z-index: -1;
    color: rgba(35, 35, 36, 0.055);
    font: 400 clamp(9rem, 22vw, 23rem)/0.78 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.1em;
}

.fortia-filmstrip__meta {
    grid-column: 1;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-top: 0.5rem;
    font: 600 0.58rem/1.2 'Chivo', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fortia-filmstrip__media {
    grid-column: 2 / span 8;
    min-width: 0;
    display: grid;
    place-items: center;
    background: transparent;
}

.fortia-filmstrip__media > video {
    width: 100%;
    height: auto;
    max-height: 76vh;
    display: block;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 1.5rem 2.5rem rgba(20, 20, 22, 0.13));
}

.fortia-filmstrip__notes {
    grid-column: 10 / span 3;
    align-self: center;
}

.fortia-filmstrip__notes > span,
.fortia-filmstrip__notes small {
    display: block;
    margin-bottom: 1rem;
    font: 600 0.62rem/1 'Chivo', sans-serif;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.fortia-filmstrip__notes h4 {
    margin: 0 0 1.25rem;
    font: 400 clamp(2rem, 3.8vw, 4.3rem)/0.94 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.055em;
}

.fortia-filmstrip__notes p {
    margin: 0 0 1.5rem;
    font: 400 clamp(0.78rem, 0.95vw, 0.95rem)/1.55 'Chivo', sans-serif;
}

.fortia-filmstrip__notes small {
    margin: 0;
    color: rgba(35, 35, 36, 0.68);
}

.fortia-filmstrip__frame:nth-child(even) .fortia-filmstrip__meta {
    grid-column: 12;
    text-align: right;
}

.fortia-filmstrip__frame:nth-child(even) .fortia-filmstrip__media {
    grid-column: 5 / span 8;
    grid-row: 1;
}

.fortia-filmstrip__frame:nth-child(even) .fortia-filmstrip__notes {
    grid-column: 1 / span 3;
    grid-row: 1;
}

.fortia-filmstrip__frame:nth-child(even)::before {
    right: auto;
    left: 1.25rem;
}

.fortia-filmstrip__frame.is-comparison {
    min-height: 115vh;
}

.fortia-filmstrip__comparison {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(9rem, 0.27fr);
    gap: clamp(1rem, 2vw, 2rem);
    align-items: end;
}

.fortia-filmstrip__compare {
    min-width: 0;
}

.fortia-filmstrip__compare > span {
    display: block;
    margin-bottom: 0.75rem;
    font: 600 0.6rem/1 'Chivo', sans-serif;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.fortia-filmstrip__compare video {
    width: 100%;
    height: auto;
    max-height: 76vh;
    display: block;
    object-fit: contain;
    background: transparent;
}

.fortia-filmstrip__compare.is-mobile video {
    max-height: 72vh;
}

@media (max-width: 900px) {
    .fortia-filmstrip__header {
        top: 3.75rem;
        padding-inline: 2.5rem;
    }

    .fortia-filmstrip__track {
        padding-inline: 2.25rem;
    }

    .fortia-filmstrip__track::before,
    .fortia-filmstrip__track::after {
        width: 1.1rem;
    }

    .fortia-filmstrip__frame,
    .fortia-filmstrip__frame:nth-child(even) {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 5rem 1rem;
    }

    .fortia-filmstrip__meta,
    .fortia-filmstrip__frame:nth-child(even) .fortia-filmstrip__meta,
    .fortia-filmstrip__media,
    .fortia-filmstrip__frame:nth-child(even) .fortia-filmstrip__media,
    .fortia-filmstrip__notes,
    .fortia-filmstrip__frame:nth-child(even) .fortia-filmstrip__notes {
        grid-column: 1;
        grid-row: auto;
        text-align: left;
    }

    .fortia-filmstrip__meta {
        display: grid;
        grid-template-columns: repeat(3, auto);
        justify-content: space-between;
        margin-bottom: 1rem;
    }

    .fortia-filmstrip__notes {
        margin-top: 2rem;
    }

    .fortia-filmstrip__comparison {
        grid-template-columns: 1fr;
    }

    .fortia-filmstrip__compare.is-mobile {
        width: min(100%, 18rem);
        justify-self: center;
    }
}

/* Guided website tour — one continuous route through the finished experience. */
.fortia-guided-tour {
    position: relative;
    display: grid;
    grid-template-columns: minmax(12rem, 0.2fr) minmax(0, 0.8fr);
    align-items: start;
    border-top: 1px solid rgba(35, 35, 36, 0.5);
}

.fortia-guided-tour__rail {
    position: sticky;
    top: 4.25rem;
    z-index: 4;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: calc(100vh - 4.25rem);
    padding: 1.5rem 1rem;
    border-right: 1px solid rgba(35, 35, 36, 0.42);
    background: rgba(236, 238, 239, 0.94);
    backdrop-filter: blur(14px);
}

.fortia-guided-tour__rail > p {
    margin: 0 0 1.5rem;
    font: 600 0.66rem/1 'Chivo', sans-serif;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.fortia-guided-tour__progress {
    position: absolute;
    left: 1.22rem;
    top: 4.6rem;
    bottom: 1.8rem;
    width: 1px;
    background: rgba(35, 35, 36, 0.25);
}

.fortia-guided-tour__progress span {
    position: absolute;
    inset: 0;
    background: #ed1c24;
    transform: scaleY(var(--fortia-tour-progress, 0));
    transform-origin: top center;
    will-change: transform;
}

.fortia-guided-tour__nav-item {
    position: relative;
    width: 100%;
    min-height: clamp(3.3rem, 6.2vh, 4.25rem);
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.45rem;
    align-items: center;
    padding: 0.55rem 0.25rem;
    border: 0;
    background: transparent;
    color: rgba(35, 35, 36, 0.48);
    text-align: left;
    cursor: pointer;
    transition: color 240ms ease, transform 280ms ease;
}

.fortia-guided-tour__nav-item::before {
    content: '';
    position: absolute;
    left: -0.12rem;
    top: 50%;
    width: 0.72rem;
    height: 0.72rem;
    border: 1px solid currentColor;
    background: #eceeef;
    transform: translateY(-50%);
}

.fortia-guided-tour__nav-item span {
    grid-column: 1;
    padding-left: 0.75rem;
    font: 600 0.58rem/1 'Chivo', sans-serif;
}

.fortia-guided-tour__nav-item strong {
    grid-column: 2;
    font: 500 clamp(0.7rem, 0.85vw, 0.84rem)/1.12 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

.fortia-guided-tour__nav-item:hover,
.fortia-guided-tour__nav-item:focus-visible {
    color: #232324;
    transform: translateX(0.2rem);
    outline: none;
}

.fortia-guided-tour__nav-item.is-active {
    color: #232324;
}

.fortia-guided-tour__nav-item.is-active::before {
    border-color: #ed1c24;
    background: #ed1c24;
}

.fortia-guided-tour__route {
    position: relative;
    min-width: 0;
}

.fortia-guided-tour__route::before {
    content: '';
    position: absolute;
    left: clamp(1rem, 2vw, 2rem);
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(237, 28, 36, 0.28);
}

.fortia-guided-tour__scene {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
    min-height: 100vh;
    padding: clamp(4rem, 11vh, 8rem) clamp(1rem, 3vw, 3rem);
    border-top: 1px solid rgba(35, 35, 36, 0.3);
    opacity: 0;
    transform: translateY(4rem);
    transition: opacity 650ms ease, transform 900ms cubic-bezier(0.18, 0.88, 0.22, 1);
}

.fortia-guided-tour__scene.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fortia-guided-tour__scene::before {
    content: '';
    position: absolute;
    left: calc(clamp(1rem, 2vw, 2rem) - 0.3rem);
    top: 50%;
    width: 0.62rem;
    height: 0.62rem;
    background: #ed1c24;
    transform: translateY(-50%);
}

.fortia-guided-tour__media {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    padding-left: clamp(1.5rem, 3vw, 3rem);
    background: transparent;
}

.fortia-guided-tour__media video {
    width: 100%;
    height: auto;
    max-height: 78vh;
    display: block;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 1.5rem 2.5rem rgba(20, 20, 22, 0.12));
}

.fortia-guided-tour__annotation {
    grid-column: 1;
    grid-row: 1;
    display: block;
    min-width: 0;
    padding-left: clamp(1.5rem, 3vw, 3rem);
}

.fortia-guided-tour__annotation > span {
    display: block;
    margin-bottom: 1.2rem;
    font: 600 0.62rem/1 'Chivo', sans-serif;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.fortia-guided-tour__annotation h4 {
    margin: 0 0 1.25rem;
    font: 400 clamp(3rem, 5.2vw, 6.25rem)/0.92 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.055em;
    overflow-wrap: anywhere;
}

.fortia-guided-tour__annotation p {
    max-width: 44rem;
    margin: 0;
    padding-bottom: 1.25rem;
    font: 400 clamp(0.9rem, 1.15vw, 1.1rem)/1.6 'Chivo', sans-serif;
}

.fortia-guided-tour__scene:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
}

.fortia-guided-tour__scene:nth-child(even) .fortia-guided-tour__media {
    grid-column: 1;
    grid-row: 2;
    padding-left: clamp(1.5rem, 3vw, 3rem);
    padding-right: 0;
}

.fortia-guided-tour__scene:nth-child(even) .fortia-guided-tour__annotation {
    grid-column: 1;
    grid-row: 1;
    padding-left: clamp(1.5rem, 3vw, 3rem);
}

.fortia-guided-tour__scene.is-mobile {
    grid-template-columns: minmax(18rem, 0.38fr) minmax(0, 0.62fr);
    align-items: center;
}

.fortia-guided-tour__scene.is-mobile .fortia-guided-tour__annotation {
    grid-column: 1;
    grid-row: 1;
    display: block;
}

.fortia-guided-tour__scene.is-mobile .fortia-guided-tour__annotation h4 {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    overflow-wrap: normal;
    word-break: normal;
}

.fortia-guided-tour__scene.is-mobile .fortia-guided-tour__media {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    place-items: center;
    padding-left: 0;
}

.fortia-guided-tour__scene.is-mobile .fortia-guided-tour__media video {
    width: auto;
    max-width: 100%;
    max-height: 82vh;
}

@media (max-width: 900px) {
    .fortia-guided-tour {
        grid-template-columns: 1fr;
    }

    .fortia-guided-tour__rail {
        top: 3.75rem;
        min-height: 0;
        display: flex;
        gap: 0.5rem;
        padding: 0.65rem 1rem;
        border-right: 0;
        border-bottom: 1px solid rgba(35, 35, 36, 0.35);
        overflow-x: auto;
    }

    .fortia-guided-tour__rail > p,
    .fortia-guided-tour__progress,
    .fortia-guided-tour__nav-item strong {
        display: none;
    }

    .fortia-guided-tour__nav-item {
        flex: 0 0 2.6rem;
        min-height: 2.6rem;
        display: grid;
        place-items: center;
        padding: 0;
    }

    .fortia-guided-tour__nav-item::before {
        left: 50%;
        top: 50%;
        width: 2.3rem;
        height: 2.3rem;
        transform: translate(-50%, -50%);
    }

    .fortia-guided-tour__nav-item span {
        position: relative;
        z-index: 1;
        padding: 0;
    }

    .fortia-guided-tour__scene,
    .fortia-guided-tour__scene:nth-child(even) {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-block: 5rem;
    }

    .fortia-guided-tour__media,
    .fortia-guided-tour__scene:nth-child(even) .fortia-guided-tour__media,
    .fortia-guided-tour__annotation,
    .fortia-guided-tour__scene:nth-child(even) .fortia-guided-tour__annotation {
        grid-column: 1;
        grid-row: auto;
        padding-left: 1.5rem;
        padding-right: 0;
    }

    .fortia-guided-tour__annotation {
        margin-top: 2rem;
    }
}

/* FORTIA editorial showcase — a dark, media-led narrative with varied pacing. */
.project-overlay.is-fortia .project-overlay__case-study {
    margin-right: calc(clamp(1rem, 4vw, 4rem) * -1);
    margin-left: calc(clamp(1rem, 4vw, 4rem) * -1);
}

.project-overlay.is-fortia .fortia-case-study {
    position: relative;
    margin-top: clamp(5rem, 10vw, 10rem);
    border-top: 0;
    background: #111112;
    color: #f5f5f3;
    overflow: clip;
}

.project-overlay.is-fortia .fortia-case-study__intro {
    position: relative;
    min-height: min(78rem, 105vh);
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
    align-items: end;
    padding: clamp(6rem, 12vw, 13rem) clamp(1.5rem, 5vw, 5rem);
    border-bottom: 1px solid rgba(245, 245, 243, 0.18);
}

.project-overlay.is-fortia .fortia-case-study__intro::after {
    content: 'FORTIA';
    position: absolute;
    right: clamp(1rem, 4vw, 4rem);
    top: 1rem;
    color: rgba(245, 245, 243, 0.045);
    font: 400 clamp(8rem, 26vw, 30rem)/0.8 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.09em;
    pointer-events: none;
}

.project-overlay.is-fortia .fortia-case-study__intro h3 {
    position: relative;
    z-index: 1;
    max-width: 10ch;
    color: #f5f5f3;
    font-size: clamp(3.8rem, 9vw, 10rem);
}

.project-overlay.is-fortia .fortia-case-study__intro p {
    position: relative;
    z-index: 1;
    color: rgba(245, 245, 243, 0.72);
}

.project-overlay.is-fortia .fortia-case-study__marker {
    z-index: 2;
    left: 0;
    top: clamp(4rem, 8vw, 8rem);
}

.project-overlay.is-fortia .fortia-guided-tour {
    display: block;
    border-top: 0;
    background: #111112;
}

.project-overlay.is-fortia .fortia-guided-tour__rail {
    position: sticky;
    top: 4.25rem;
    z-index: 8;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(10rem, 1.6fr) repeat(8, minmax(3.2rem, 0.55fr));
    gap: 0;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(245, 245, 243, 0.2);
    background: rgba(17, 17, 18, 0.92);
    color: #f5f5f3;
    backdrop-filter: blur(18px);
}

.project-overlay.is-fortia .fortia-guided-tour__rail > p {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 1.5rem;
    border-right: 1px solid rgba(245, 245, 243, 0.18);
}

.project-overlay.is-fortia .fortia-guided-tour__progress {
    left: 0;
    right: 0;
    top: auto;
    bottom: -1px;
    width: auto;
    height: 2px;
    background: transparent;
}

.project-overlay.is-fortia .fortia-guided-tour__progress span {
    background: #ed1c24;
    transform: scaleX(var(--fortia-tour-progress, 0));
    transform-origin: left center;
}

.project-overlay.is-fortia .fortia-guided-tour__nav-item {
    min-height: 4rem;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0;
    border-right: 1px solid rgba(245, 245, 243, 0.14);
    color: rgba(245, 245, 243, 0.42);
}

.project-overlay.is-fortia .fortia-guided-tour__nav-item::before,
.project-overlay.is-fortia .fortia-guided-tour__nav-item strong {
    display: none;
}

.project-overlay.is-fortia .fortia-guided-tour__nav-item span {
    grid-column: 1;
    padding: 0;
    font-size: 0.66rem;
}

.project-overlay.is-fortia .fortia-guided-tour__nav-item:hover,
.project-overlay.is-fortia .fortia-guided-tour__nav-item:focus-visible,
.project-overlay.is-fortia .fortia-guided-tour__nav-item.is-active {
    background: #ed1c24;
    color: #fff;
    transform: none;
}

.project-overlay.is-fortia .fortia-guided-tour__route::before {
    display: none;
}

.project-overlay.is-fortia .fortia-guided-tour__scene,
.project-overlay.is-fortia .fortia-guided-tour__scene:nth-child(even) {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 7rem);
    min-height: 125vh;
    padding: clamp(7rem, 13vw, 14rem) clamp(1.5rem, 5vw, 5rem);
    border-top: 1px solid rgba(245, 245, 243, 0.16);
    background: #111112;
    color: #f5f5f3;
    opacity: 1;
    transform: none;
    overflow: hidden;
}

.project-overlay.is-fortia .fortia-guided-tour__scene::before {
    left: 0;
    top: clamp(7rem, 13vw, 14rem);
    transform: none;
}

.project-overlay.is-fortia .fortia-guided-tour__scene::after {
    content: attr(data-scene-number);
    position: absolute;
    right: -0.04em;
    top: 0.02em;
    color: rgba(245, 245, 243, 0.035);
    font: 400 clamp(12rem, 34vw, 38rem)/0.8 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.09em;
    pointer-events: none;
}

.project-overlay.is-fortia .fortia-guided-tour__annotation,
.project-overlay.is-fortia .fortia-guided-tour__scene:nth-child(even) .fortia-guided-tour__annotation {
    position: relative;
    z-index: 2;
    width: min(100%, 72rem);
    padding: 0;
    opacity: 0;
    transform: translateY(3.5rem);
    transition: opacity 650ms ease 100ms, transform 900ms cubic-bezier(0.18, 0.88, 0.22, 1) 80ms;
}

.project-overlay.is-fortia .fortia-guided-tour__annotation h4 {
    max-width: 13ch;
    color: #f5f5f3;
    font-size: clamp(2.75rem, 5.5vw, 6.5rem);
}

.project-overlay.is-fortia .fortia-guided-tour__annotation p {
    max-width: 46rem;
    color: rgba(245, 245, 243, 0.68);
    font-size: clamp(0.95rem, 1.25vw, 1.18rem);
}

.project-overlay.is-fortia .fortia-guided-tour__media,
.project-overlay.is-fortia .fortia-guided-tour__scene:nth-child(even) .fortia-guided-tour__media {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0;
    opacity: 0;
    clip-path: inset(8% 0 8% 0);
    transform: translateY(5rem);
    transition: opacity 700ms ease 180ms, clip-path 1000ms cubic-bezier(0.18, 0.88, 0.22, 1) 120ms, transform 1100ms cubic-bezier(0.18, 0.88, 0.22, 1) 100ms;
}

.project-overlay.is-fortia .fortia-guided-tour__media video {
    max-height: none;
    filter: none;
}

.project-overlay.is-fortia .fortia-guided-tour__scene.is-visible .fortia-guided-tour__annotation,
.project-overlay.is-fortia .fortia-guided-tour__scene.is-visible .fortia-guided-tour__media {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
}

.project-overlay.is-fortia .fortia-guided-tour__scene:nth-child(3n + 2) .fortia-guided-tour__annotation,
.project-overlay.is-fortia .fortia-guided-tour__scene:nth-child(3n + 2) .fortia-guided-tour__media {
    width: 82%;
    margin-left: auto;
}

.project-overlay.is-fortia .fortia-guided-tour__scene:nth-child(3n) .fortia-guided-tour__annotation {
    width: 76%;
    margin-left: 12%;
    text-align: center;
}

.project-overlay.is-fortia .fortia-guided-tour__scene:nth-child(3n) .fortia-guided-tour__annotation h4,
.project-overlay.is-fortia .fortia-guided-tour__scene:nth-child(3n) .fortia-guided-tour__annotation p {
    margin-right: auto;
    margin-left: auto;
}

.project-overlay.is-fortia .fortia-guided-tour__scene:nth-child(3n) .fortia-guided-tour__media {
    width: 72%;
    margin-right: auto;
    margin-left: auto;
}

.project-overlay.is-fortia .fortia-guided-tour__scene.is-mobile {
    min-height: 115vh;
    grid-template-columns: minmax(18rem, 0.38fr) minmax(0, 0.62fr);
    align-items: center;
    background: #ed1c24;
}

.project-overlay.is-fortia .fortia-guided-tour__scene.is-mobile::after {
    color: rgba(255, 255, 255, 0.08);
}

.project-overlay.is-fortia .fortia-guided-tour__scene.is-mobile .fortia-guided-tour__annotation,
.project-overlay.is-fortia .fortia-guided-tour__scene.is-mobile .fortia-guided-tour__media {
    width: 100%;
    margin: 0;
}

.project-overlay.is-fortia .fortia-guided-tour__scene.is-mobile .fortia-guided-tour__annotation h4,
.project-overlay.is-fortia .fortia-guided-tour__scene.is-mobile .fortia-guided-tour__annotation p {
    color: #fff;
}

.project-overlay.is-fortia .fortia-guided-tour__scene.is-mobile .fortia-guided-tour__annotation h4 {
    font-size: clamp(2.5rem, 4.2vw, 4.75rem);
}

@media (max-width: 900px) {
    .project-overlay.is-fortia .fortia-guided-tour__rail {
        top: 3.75rem;
        display: flex;
        padding: 0;
    }

    .project-overlay.is-fortia .fortia-guided-tour__rail > p {
        display: none;
    }

    .project-overlay.is-fortia .fortia-guided-tour__nav-item {
        flex: 1 0 2.8rem;
    }

    .project-overlay.is-fortia .fortia-case-study__intro {
        min-height: 90vh;
        grid-template-columns: 1fr;
    }

    .project-overlay.is-fortia .fortia-guided-tour__scene,
    .project-overlay.is-fortia .fortia-guided-tour__scene:nth-child(even),
    .project-overlay.is-fortia .fortia-guided-tour__scene.is-mobile {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-block: 7rem;
    }

    .project-overlay.is-fortia .fortia-guided-tour__scene:nth-child(3n + 2) .fortia-guided-tour__annotation,
    .project-overlay.is-fortia .fortia-guided-tour__scene:nth-child(3n + 2) .fortia-guided-tour__media,
    .project-overlay.is-fortia .fortia-guided-tour__scene:nth-child(3n) .fortia-guided-tour__annotation,
    .project-overlay.is-fortia .fortia-guided-tour__scene:nth-child(3n) .fortia-guided-tour__media,
    .project-overlay.is-fortia .fortia-guided-tour__scene.is-mobile .fortia-guided-tour__annotation,
    .project-overlay.is-fortia .fortia-guided-tour__scene.is-mobile .fortia-guided-tour__media {
        width: 100%;
        margin: 0;
        text-align: left;
    }

    .project-overlay.is-fortia .fortia-guided-tour__scene.is-mobile .fortia-guided-tour__annotation,
    .project-overlay.is-fortia .fortia-guided-tour__scene.is-mobile .fortia-guided-tour__media {
        grid-column: 1;
        grid-row: auto;
    }
}

.fortia-chapter {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2.5rem);
    align-items: start;
    min-height: 145vh;
    padding: 12vh 0 24vh;
    border-top: 1px solid rgba(35, 35, 36, 0.36);
    isolation: isolate;
}

.fortia-chapter::after {
    content: attr(data-scene);
    position: absolute;
    right: 0;
    bottom: 5vh;
    z-index: -1;
    color: rgba(35, 35, 36, 0.055);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(8rem, 24vw, 26rem);
    font-weight: 400;
    line-height: 0.75;
    letter-spacing: -0.1em;
    pointer-events: none;
}

.fortia-chapter__copy {
    grid-column: 1 / span 4;
    position: sticky;
    top: 31vh;
    align-self: start;
    z-index: 3;
    padding: clamp(1.25rem, 2.2vw, 2.2rem);
    background: rgba(236, 238, 239, 0.88);
    border: 1px solid rgba(35, 35, 36, 0.28);
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(2.5rem);
    transition: opacity 520ms ease, transform 760ms cubic-bezier(0.18, 0.88, 0.22, 1);
    will-change: transform, opacity;
}

.fortia-chapter:nth-child(even) .fortia-chapter__copy {
    grid-column: 9 / span 4;
    grid-row: 1;
}

.fortia-chapter.is-visible .fortia-chapter__copy {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.fortia-chapter__index {
    display: block;
    margin-bottom: clamp(1.5rem, 3vw, 3rem);
    font-family: 'Chivo', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.fortia-chapter__copy h4 {
    margin: 0 0 1.25rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 4.5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.fortia-chapter__copy p {
    max-width: 31rem;
    margin: 0;
    font-family: 'Chivo', sans-serif;
    font-size: clamp(0.82rem, 1.05vw, 1rem);
    line-height: 1.55;
}

.fortia-chapter__media {
    grid-column: 5 / span 8;
    position: sticky;
    top: 12vh;
    z-index: 1;
    min-height: 0;
    display: grid;
    place-items: center;
    height: 76vh;
    aspect-ratio: auto;
    background: transparent;
    overflow: visible;
    clip-path: inset(var(--fortia-clip-y, 0%) var(--fortia-clip-x, 0%));
    transform: translate3d(var(--fortia-media-x, 0px), var(--fortia-media-shift, 0px), 0) scale(var(--fortia-media-scale, 0.91)) rotate(var(--fortia-media-rotate, 0deg));
    transform-origin: center;
    will-change: transform, clip-path;
}

.fortia-chapter:nth-child(even) .fortia-chapter__media {
    grid-column: 1 / span 8;
    grid-row: 1;
}

.fortia-chapter__media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 1.6rem 2.4rem rgba(21, 21, 22, 0.14));
    transform: translate3d(var(--fortia-video-x, 0px), var(--fortia-video-shift, 0px), 0) scale(1.06);
    will-change: transform;
}

/* Seven scenes, seven related but individual compositions. */
.fortia-chapter.scene-1 .fortia-chapter__media {
    grid-column: 5 / span 8;
}

.fortia-chapter.scene-1 .fortia-chapter__copy {
    grid-column: 1 / span 4;
}

.fortia-chapter.scene-1::before {
    content: '';
    position: absolute;
    left: 28%;
    top: 20vh;
    width: 0.7rem;
    height: 28vh;
    background: #ed1c24;
}

.fortia-chapter.scene-2 .fortia-chapter__media {
    grid-column: 1 / span 7;
    clip-path: none;
    transform-origin: 25% 50%;
}

.fortia-chapter.scene-2 .fortia-chapter__copy {
    grid-column: 9 / span 4;
}

.fortia-chapter.scene-3 {
    min-height: 165vh;
}

.fortia-chapter.scene-3 .fortia-chapter__media {
    grid-column: 5 / span 8;
    height: 80vh;
    clip-path: none;
}

.fortia-chapter.scene-3 .fortia-chapter__copy {
    grid-column: 1 / span 3;
    top: 23vh;
}

.fortia-chapter.scene-3::after {
    right: auto;
    left: 0;
}

.fortia-chapter.scene-4 .fortia-chapter__media {
    grid-column: 6 / span 7;
    clip-path: polygon(0 var(--fortia-clip-y, 0%), 100% 0, 100% calc(100% - var(--fortia-clip-y, 0%)), 0 100%);
}

.fortia-chapter.scene-4 .fortia-chapter__copy {
    grid-column: 1 / span 4;
    top: 37vh;
}

.fortia-chapter.scene-5 {
    min-height: 175vh;
}

.fortia-chapter.scene-5 .fortia-chapter__media {
    grid-column: 4 / span 9;
    height: 82vh;
    clip-path: none;
}

.fortia-chapter.scene-5 .fortia-chapter__copy {
    grid-column: 1 / span 3;
    top: 28vh;
}

.fortia-chapter.scene-5::after {
    right: 50%;
    transform: translateX(50%);
}

.fortia-chapter.scene-6 .fortia-chapter__media {
    grid-column: 1 / span 8;
    clip-path: inset(var(--fortia-clip-y, 0%) 0);
}

.fortia-chapter.scene-6 .fortia-chapter__copy {
    grid-column: 9 / span 4;
    top: 39vh;
}

.fortia-chapter.scene-7 {
    min-height: 155vh;
}

.fortia-chapter.scene-7 .fortia-chapter__media {
    grid-column: 7 / span 5;
    clip-path: none;
}

.fortia-chapter.scene-7 .fortia-chapter__copy {
    grid-column: 1 / span 5;
    top: 27vh;
}

.fortia-chapter.scene-7::after {
    bottom: 18vh;
}

/* Individual entrance directions. Once revealed, every copy panel stays still. */
.fortia-chapter.scene-1 .fortia-chapter__copy {
    transform: translate3d(-5rem, 0, 0);
}

.fortia-chapter.scene-2 .fortia-chapter__copy {
    transform: translate3d(5rem, 0, 0);
    background: #232324;
    color: #fff;
}

.fortia-chapter.scene-3 .fortia-chapter__copy {
    transform: translate3d(0, 6rem, 0);
    background: transparent;
    border-left: 0.7rem solid #ed1c24;
    backdrop-filter: none;
}

.fortia-chapter.scene-4 .fortia-chapter__copy {
    transform: translate3d(0, -6rem, 0);
}

.fortia-chapter.scene-5 .fortia-chapter__copy {
    transform: scale(0.72);
    transform-origin: left center;
    background: transparent;
    backdrop-filter: none;
}

.fortia-chapter.scene-6 .fortia-chapter__copy {
    transform: translate3d(4rem, 0, 0);
    clip-path: inset(0 0 0 100%);
}

.fortia-chapter.scene-7 .fortia-chapter__copy {
    transform: translate3d(-3rem, 0, 0);
    filter: blur(14px);
    background: transparent;
    backdrop-filter: none;
}

.fortia-chapter.scene-1.is-visible .fortia-chapter__copy,
.fortia-chapter.scene-2.is-visible .fortia-chapter__copy,
.fortia-chapter.scene-3.is-visible .fortia-chapter__copy,
.fortia-chapter.scene-4.is-visible .fortia-chapter__copy,
.fortia-chapter.scene-5.is-visible .fortia-chapter__copy,
.fortia-chapter.scene-6.is-visible .fortia-chapter__copy,
.fortia-chapter.scene-7.is-visible .fortia-chapter__copy {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
    filter: none;
}

.fortia-chapter.scene-1 .fortia-chapter__media { opacity: 0; transition: opacity 750ms ease; }
.fortia-chapter.scene-1.is-visible .fortia-chapter__media { opacity: 1; }

.fortia-chapter.scene-2 .fortia-chapter__media { opacity: 0; filter: blur(18px); transition: opacity 850ms ease, filter 1000ms ease; }
.fortia-chapter.scene-2.is-visible .fortia-chapter__media { opacity: 1; filter: none; }

.fortia-chapter.scene-3 .fortia-chapter__media { opacity: 0; transition: opacity 500ms steps(5, end); }
.fortia-chapter.scene-3.is-visible .fortia-chapter__media { opacity: 1; }

.fortia-chapter.scene-4 .fortia-chapter__media,
.fortia-chapter.scene-5 .fortia-chapter__media,
.fortia-chapter.scene-6 .fortia-chapter__media,
.fortia-chapter.scene-7 .fortia-chapter__media { opacity: 0; transition: opacity 700ms ease; }

.fortia-chapter.scene-4.is-visible .fortia-chapter__media,
.fortia-chapter.scene-5.is-visible .fortia-chapter__media,
.fortia-chapter.scene-6.is-visible .fortia-chapter__media,
.fortia-chapter.scene-7.is-visible .fortia-chapter__media { opacity: 1; }

.fortia-chapter.is-mobile .fortia-chapter__media {
    min-height: 0;
    width: min(100%, 34rem);
    justify-self: center;
    clip-path: none;
    transform: translate3d(var(--fortia-media-x, 0px), var(--fortia-media-shift, 0px), 0) rotate(var(--fortia-media-rotate, 0deg));
}

.fortia-chapter.is-mobile video {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transform: translate3d(0, var(--fortia-video-shift, 0px), 0);
}

@media (max-width: 760px) {
    .project-overlay__topbar {
        grid-template-columns: 3.75rem minmax(0, 1fr);
        min-height: 3.75rem;
    }

    .project-overlay__close {
        width: 3.75rem;
        height: 3.75rem;
    }

    .project-overlay__counter {
        display: none;
    }

    .project-overlay__title {
        font-size: clamp(3.5rem, 18vw, 6.5rem);
    }

    .project-overlay__media {
        min-height: 58vw;
    }

    .project-overlay__details {
        grid-template-columns: 1fr;
    }

    .fortia-case-study__intro {
        grid-template-columns: 1fr;
        padding-bottom: 5rem;
    }

    .fortia-case-study__marker {
        position: static;
    }

    .fortia-chapter,
    .fortia-chapter:nth-child(even) {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 5rem 0;
    }

    .fortia-chapter__copy,
    .fortia-chapter:nth-child(even) .fortia-chapter__copy,
    .fortia-chapter__media,
    .fortia-chapter:nth-child(even) .fortia-chapter__media {
        grid-column: 1;
        grid-row: auto;
    }

    .fortia-case-study .fortia-chapter__copy,
    .fortia-case-study .fortia-chapter__media {
        grid-column: 1;
        grid-row: auto;
    }

    .fortia-chapter__copy {
        position: relative;
        top: auto;
        margin-bottom: 1.5rem;
        backdrop-filter: none;
    }

    .fortia-chapter__media,
    .fortia-chapter:nth-child(even) .fortia-chapter__media {
        position: relative;
        top: auto;
        height: auto;
        min-height: 0;
        aspect-ratio: 1920 / 1020;
        clip-path: none;
        transform: none;
    }

    .fortia-chapter.is-mobile .fortia-chapter__media {
        min-height: 38rem;
        aspect-ratio: auto;
    }

    .fortia-chapter__media video {
        transform: none;
    }

    .fortia-chapter::after,
    .fortia-chapter.scene-1::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-overlay,
    .project-overlay__title,
    .project-overlay__media,
    .project-overlay__details {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .fortia-case-study__intro,
    .fortia-chapter__copy,
    .fortia-chapter__media {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.hero-panel-transition {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    width: 100vw;
    height: 100svh;
    pointer-events: none;
    overflow: hidden;
    visibility: hidden;
    --transition-bg-opacity: 0;
    --transition-line-0-y: 105vh;
    --transition-line-1-y: 105vh;
    --transition-line-2-y: 105vh;
    --transition-line-3-y: 105vh;
    --transition-line-4-y: 105vh;
}

.hero-panel-transition.is-active {
    visibility: visible;
}

.hero-panel-transition__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #232324;
    -webkit-mask-image:
        linear-gradient(#000 0 0),
        linear-gradient(#000 0 0),
        linear-gradient(#000 0 0),
        linear-gradient(#000 0 0),
        linear-gradient(#000 0 0);
    -webkit-mask-size: 20.2% 100%, 20.2% 100%, 20.2% 100%, 20.2% 100%, 20.2% 100%;
    -webkit-mask-position:
        0 var(--transition-line-0-y),
        25% var(--transition-line-1-y),
        50% var(--transition-line-2-y),
        75% var(--transition-line-3-y),
        100% var(--transition-line-4-y);
    -webkit-mask-repeat: no-repeat;
    mask-image:
        linear-gradient(#000 0 0),
        linear-gradient(#000 0 0),
        linear-gradient(#000 0 0),
        linear-gradient(#000 0 0),
        linear-gradient(#000 0 0);
    mask-size: 20.2% 100%, 20.2% 100%, 20.2% 100%, 20.2% 100%, 20.2% 100%;
    mask-position:
        0 var(--transition-line-0-y),
        25% var(--transition-line-1-y),
        50% var(--transition-line-2-y),
        75% var(--transition-line-3-y),
        100% var(--transition-line-4-y);
    mask-repeat: no-repeat;
    will-change: mask-position, -webkit-mask-position;
    contain: strict;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-panel-transition__video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-panel-transition__line {
    position: relative;
    z-index: 1;
    flex: 0 0 20%;
    width: 20%;
    height: 100%;
    background: transparent;
    transform: translate3d(0, 105%, 0) scaleX(1.01);
    transform-origin: center center;
    will-change: transform;
}

@media (max-width: 900px) {
    #master-scene.video-hero {
        min-height: 34rem;
    }

    .video-hero #hero-content {
        justify-content: flex-start;
        min-width: 0;
        padding: 0 1.15rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
        overflow-x: hidden;
    }

    .video-hero #hero-title-parallax {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        align-items: flex-end;
    }

    .video-hero #hero-content h1 {
        font-size: clamp(2.35rem, 10.4vw, 5.1rem);
        line-height: 0.94;
    }

    .video-hero #hero-content h1 .hero-title-line {
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
        font-size: clamp(0.98rem, 3.4vw, 1.18rem);
        line-height: 1.4;
    }

    .video-hero .hero-start-btn {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        gap: 0.85rem;
        padding: 1.05rem 1rem 1.05rem 1.15rem;
        overflow: hidden;
    }
}

@media (max-width: 560px) {
    .hero-video-shade {
        background: linear-gradient(180deg, rgba(4, 4, 6, 0.28), transparent 28%, rgba(4, 4, 6, 0.83) 100%);
    }

    .hero-subtitle {
        margin-top: 0.95rem;
        font-size: clamp(1rem, 4.1vw, 1.12rem);
        line-height: 1.38;
    }

    .video-hero #hero-content h1 {
        font-size: clamp(2.45rem, 11.6vw, 4.35rem);
    }

    .video-hero .hero-start-btn {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-top: 1.35rem;
        padding: 0.95rem 0.9rem 0.95rem 1.05rem;
        gap: 0.7rem;
        font-size: clamp(0.82rem, 3.6vw, 0.95rem);
    }

}

@media (max-width: 380px) {
    nav {
        grid-template-columns: minmax(0, 1fr) 3.4rem;
        height: 3.4rem;
    }

    .video-hero #hero-content {
        padding-inline: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-hero .hero-start-btn,
    .video-hero .hero-start-btn::before,
    .video-hero .hero-start-btn span {
        transition: none;
    }
}
