.ft-header__actions {
    align-items: center;
    gap: 18px;
}

.ft-header__sqas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    background: rgba(255,255,255,.94);
    border-radius: 4px;
    box-shadow: 0 4px 18px rgba(4,8,23,.12);
    transition: background-color .25s ease, box-shadow .25s ease;
}

.ft-header.is-scrolled .ft-header__sqas {
    background: transparent;
    box-shadow: none;
}

.ft-header__sqas-logo {
    width: auto;
    height: 50px;
    max-width: 118px;
    object-fit: contain;
}

.ft-footer-map {
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #e7e9ee;
}

.ft-footer-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Encoding-safe carousel arrows drawn with CSS. */
.ft-slider-arrow__icon {
    display: block;
    width: 22px;
    height: 22px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
}

.ft-slider-arrow--prev .ft-slider-arrow__icon {
    margin-left: 8px;
    transform: rotate(135deg);
}

.ft-slider-arrow--next .ft-slider-arrow__icon {
    margin-right: 8px;
    transform: rotate(-45deg);
}

.ft-scroll-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1080;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    background: var(--ft-yellow);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease, background-color .22s ease;
}

.ft-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.ft-scroll-top:hover,
.ft-scroll-top:focus-visible {
    background: var(--ft-navy);
}

.ft-scroll-top:focus-visible {
    outline: 3px solid rgba(250,183,0,.42);
    outline-offset: 3px;
}

.ft-scroll-top__icon {
    position: relative;
    display: block;
    width: 20px;
    height: 22px;
}

.ft-scroll-top__icon::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 50%;
    width: 11px;
    height: 11px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateX(-50%) rotate(-135deg);
}

.ft-scroll-top__icon::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 2px;
    height: 13px;
    background: currentColor;
    transform: translateX(-50%);
}

body.ft-menu-open .ft-scroll-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Homepage hero */
.ft-home-hero__copy {
    max-width: 860px;
}

.ft-home-hero__image--mountain {
    object-position: center center;
}

.ft-home-hero__image--refinery {
    object-position: center 58%;
}

.ft-home-services {
    padding-bottom: 110px;
}

/* Why Four Trans */
.ft-home-confidence {
    padding: 115px 0;
    background: var(--ft-navy);
    color: #fff;
}

.ft-home-confidence__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(55px, 7vw, 105px);
    align-items: center;
}

.ft-home-confidence__image-wrap {
    position: relative;
    min-height: 590px;
    overflow: hidden;
}

.ft-home-confidence__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.ft-home-confidence__badge {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: min(78%, 360px);
    padding: 28px 30px;
    background: var(--ft-yellow);
    color: #fff;
}

.ft-home-confidence__badge strong,
.ft-home-confidence__badge span {
    display: block;
}

.ft-home-confidence__badge strong {
    margin-bottom: 6px;
    font-size: 25px;
    font-weight: 600;
}

.ft-home-confidence__badge span {
    font-size: 14px;
    line-height: 1.55;
}

.ft-home-confidence__content h2 {
    margin: 0 0 28px;
    font-size: clamp(42px, 4.2vw, 66px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -1.4px;
}

.ft-home-confidence__content > p {
    margin: 0 0 18px;
    color: rgba(255,255,255,.72);
    font-size: 17px;
    line-height: 1.75;
}

.ft-home-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1px;
    margin: 38px 0 34px;
    background: rgba(255,255,255,.12);
}

.ft-home-proof {
    padding: 24px 24px 25px;
    background: var(--ft-navy);
}

.ft-home-proof strong,
.ft-home-proof span {
    display: block;
}

.ft-home-proof strong {
    margin-bottom: 8px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.ft-home-proof span {
    color: rgba(255,255,255,.62);
    font-size: 14px;
    line-height: 1.6;
}

.ft-home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    font-size: 13px;
    font-weight: 700;
}

.ft-home-text-link span {
    color: var(--ft-yellow);
    font-size: 23px;
    line-height: 1;
}

/* Companies */
.ft-home-clients {
    position: relative;
    overflow: hidden;
    padding: 105px 0 115px;
    background: #f6f7f9;
}

.ft-home-clients__heading {
    max-width: 820px;
    margin: 0 auto 58px;
    text-align: center;
}

.ft-home-clients__heading h2 {
    margin: 0 0 18px;
    color: var(--ft-text);
    font-size: clamp(38px, 4vw, 62px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -1.2px;
}

.ft-home-clients__heading p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--ft-muted);
    font-size: 17px;
    line-height: 1.75;
}

.ft-logo-marquee {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    touch-action: pan-y;
    cursor: grab;
}

.ft-logo-marquee::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.ft-logo-marquee.is-dragging {
    cursor: grabbing;
}

.ft-logo-marquee__track {
    display: flex;
    align-items: stretch;
    gap: 30px;
    width: max-content;
    padding: 6px 0 10px;
    user-select: none;
    -webkit-user-select: none;
}

.ft-logo-item {
    display: flex;
    flex: 0 0 270px;
    align-items: center;
    justify-content: center;
    height: 138px;
    padding: 24px 30px;
    border: 1px solid rgba(14,23,59,.08);
    background: #fff;
    box-shadow: 0 8px 28px rgba(14,23,59,.05);
}

.ft-logo-item img {
    width: auto;
    height: auto;
    max-width: 212px;
    max-height: 80px;
    object-fit: contain;
    opacity: 1;
    filter: none;
    pointer-events: none;
    -webkit-user-drag: none;
    transition: transform .22s ease;
}

.ft-logo-item:hover img {
    transform: scale(1.04);
}

/* Process */
.ft-home-process {
    padding: 115px 0 125px;
    background: #fff;
}

.ft-home-process__heading {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    column-gap: 70px;
    align-items: end;
    margin-bottom: 58px;
}

.ft-home-process__heading .ft-eyebrow {
    grid-column: 1;
}

.ft-home-process__heading h2 {
    grid-column: 1;
    margin: 0;
    max-width: 580px;
    font-size: clamp(42px, 4.3vw, 66px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -1.3px;
}

.ft-home-process__heading p {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    max-width: 590px;
    color: var(--ft-muted);
    font-size: 18px;
    line-height: 1.75;
}

.ft-home-process__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    border-top: 1px solid var(--ft-border);
    border-bottom: 1px solid var(--ft-border);
}

.ft-home-step {
    min-height: 310px;
    padding: 34px 28px 38px;
    border-right: 1px solid var(--ft-border);
}

.ft-home-step:last-child {
    border-right: 0;
}

.ft-home-step > span {
    display: block;
    margin-bottom: 72px;
    color: var(--ft-yellow-hover);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.ft-home-step h3 {
    margin: 0 0 14px;
    font-size: 25px;
    font-weight: 600;
}

.ft-home-step p {
    margin: 0;
    color: var(--ft-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Closing CTA */
.ft-home-cta {
    position: relative;
    min-height: 570px;
    overflow: hidden;
    background: var(--ft-navy);
}

.ft-home-cta__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.ft-home-cta__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(4,8,23,.88) 0%, rgba(4,8,23,.69) 46%, rgba(4,8,23,.25) 100%);
}

.ft-home-cta__inner {
    position: relative;
    z-index: 2;
    min-height: 570px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.ft-home-cta__copy {
    max-width: 760px;
    color: #fff;
}

.ft-home-cta__copy h2 {
    margin: 0 0 22px;
    font-size: clamp(46px, 5vw, 76px);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -1.5px;
}

.ft-home-cta__copy p {
    max-width: 650px;
    margin: 0 0 32px;
    color: rgba(255,255,255,.82);
    font-size: 18px;
    line-height: 1.7;
}

@media (max-width: 1180px) {
    .ft-header__actions {
        gap: 12px;
    }

    .ft-header__sqas {
        padding: 6px 8px;
    }

    .ft-header__sqas-logo {
        height: 42px;
        max-width: 98px;
    }

    .ft-footer-map {
        height: 360px;
    }

    .ft-home-confidence {
        padding: 90px 0;
    }

    .ft-home-confidence__grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .ft-home-confidence__image-wrap {
        min-height: 500px;
    }

    .ft-home-confidence__content {
        max-width: 820px;
    }

    .ft-home-clients {
        padding: 90px 0 100px;
    }

    .ft-logo-marquee__track {
        gap: 24px;
    }

    .ft-logo-item {
        flex-basis: 235px;
        height: 122px;
        padding: 20px 26px;
    }

    .ft-logo-item img {
        max-width: 185px;
        max-height: 68px;
    }

    .ft-home-process {
        padding: 95px 0 105px;
    }

    .ft-home-process__heading {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ft-home-process__heading .ft-eyebrow,
    .ft-home-process__heading h2,
    .ft-home-process__heading p {
        grid-column: 1;
        grid-row: auto;
    }

    .ft-home-process__grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .ft-home-step:nth-child(2) {
        border-right: 0;
    }

    .ft-home-step:nth-child(-n+2) {
        border-bottom: 1px solid var(--ft-border);
    }
}

@media (max-width: 767px) {
    .ft-header__actions {
        gap: 8px;
    }

    .ft-header__sqas {
        padding: 5px 7px;
    }

    .ft-header__sqas-logo {
        height: 36px;
        max-width: 82px;
    }

    .ft-footer-map {
        height: 310px;
    }

    .ft-scroll-top {
        right: 18px;
        bottom: 18px;
        width: 46px;
        height: 46px;
    }

    .ft-home-hero__image--mountain {
        object-position: 55% center;
    }

    .ft-home-hero__image--refinery {
        object-position: center center;
    }

    .ft-home-services {
        padding-bottom: 75px;
    }

    .ft-home-confidence {
        padding: 72px 0;
    }

    .ft-home-confidence__image-wrap {
        min-height: 380px;
    }

    .ft-home-confidence__badge {
        width: calc(100% - 30px);
        padding: 22px 24px;
    }

    .ft-home-confidence__content h2 {
        font-size: clamp(38px, 11vw, 52px);
    }

    .ft-home-proof-grid {
        grid-template-columns: 1fr;
    }

    .ft-home-clients {
        padding: 72px 0 82px;
    }

    .ft-home-clients__heading {
        margin-bottom: 42px;
        text-align: left;
    }

    .ft-home-clients__heading h2 {
        font-size: clamp(36px, 11vw, 50px);
    }

    .ft-home-clients__heading p {
        font-size: 16px;
    }

    .ft-logo-marquee__track {
        gap: 18px;
    }

    .ft-logo-item {
        flex-basis: 195px;
        height: 104px;
        padding: 17px 21px;
    }

    .ft-logo-item img {
        max-width: 154px;
        max-height: 58px;
    }

    .ft-home-process {
        padding: 78px 0 85px;
    }

    .ft-home-process__heading {
        margin-bottom: 42px;
    }

    .ft-home-process__heading h2 {
        font-size: clamp(38px, 11vw, 52px);
    }

    .ft-home-process__heading p {
        font-size: 16px;
    }

    .ft-home-process__grid {
        grid-template-columns: 1fr;
    }

    .ft-home-step,
    .ft-home-step:nth-child(2),
    .ft-home-step:last-child {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--ft-border);
    }

    .ft-home-step:last-child {
        border-bottom: 0;
    }

    .ft-home-step > span {
        margin-bottom: 38px;
    }

    .ft-home-cta,
    .ft-home-cta__inner {
        min-height: 520px;
    }

    .ft-home-cta__shade {
        background: rgba(4,8,23,.74);
    }

    .ft-home-cta__copy h2 {
        font-size: clamp(42px, 12vw, 58px);
    }

    .ft-home-cta__copy p {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ft-scroll-top {
        transition: none;
    }
}
