
/* ==========================================
   OFF-ROUTE HOMEPAGE
========================================== */

.or-home-hero {
    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;
    justify-content: center;

    width: 100%;
    padding: 0 24px 40px;

    overflow: hidden;
    background: #fdfdfc;
    color: #1e1e1e;

    font-family: "Neue Montreal", "Helvetica Neue", sans-serif;
}

/* ==========================================
   SHARED GRID + WHITE VIGNETTE
========================================== */

.or-home-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background-image:
        linear-gradient(
            to right,
            rgba(30, 30, 30, 0.09) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(30, 30, 30, 0.09) 1px,
            transparent 1px
        );

    background-size: 50px 50px;
    background-position: center center;

    -webkit-mask-image: radial-gradient(
        ellipse 85% 75% at center,
        #000 30%,
        rgba(0, 0, 0, 0.85) 55%,
        rgba(0, 0, 0, 0.35) 78%,
        transparent 100%
    );

    mask-image: radial-gradient(
        ellipse 85% 75% at center,
        #000 30%,
        rgba(0, 0, 0, 0.85) 55%,
        rgba(0, 0, 0, 0.35) 78%,
        transparent 100%
    );
}

/* Header and content above grid */

.or-home-hero > :not(.or-home-grid) {
    position: relative;
    z-index: 2;
}

/* ==========================================
   HEADER
========================================== */

.or-home-hero .site-header {
    width: 100%;
    position: relative;
    z-index: 5;
}

/* ==========================================
   HERO CONTENT
========================================== */

.or-home-content {
    width: 100%;
    max-width: 1450px;
    margin: 10px auto 0;
    text-align: center;
}

.or-home-title {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin: 0;
    color: #080808;

    font-family: "Helvetica Neue", "Neue Montreal", sans-serif;
    font-size: 80px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.075em;
}

.or-home-title span {
    display: block;
}

.or-home-title em {
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.075em;
}

/* ==========================================
   SERVICES
========================================== */

.or-home-services {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 26px;
    margin: 48px auto 0;

    color: #171717;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
}

.or-home-services i {
    display: block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;

    border-radius: 50%;
    background: #d10b0c;
}

/* ==========================================
   BUTTONS
========================================== */

.or-home-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 20px;
    margin-top: 50px;
}

.or-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 20px 35px;

    border: 1px solid #d10b0c;
    border-radius: 0;

    font-family: "Helvetica Neue";
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.or-home-button-primary {
    background: #d10b0c;
    color: #ffffff;
}

.or-home-button-primary:hover {
    background: #ad0809;
    border-color: #ad0809;
    color: #ffffff;
}

.or-home-button-dark {
    background: #1e1e1e;
    color: #ffffff;
}

.or-home-button-dark:hover {
    background: #d10b0c;
    border-color: #d10b0c;
    color: #ffffff;
}

/* ==========================================
   PHYSICS - SAME HERO BACKGROUND
========================================== */

#offroute-physics {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 250px;

    margin: 0px auto 0;

    overflow: hidden;

    /* Transparent: shared grid remains visible */
    background: transparent;
    border: none;
    border-radius: 0;
}

#offroute-physics .or-pill {
    position: absolute;
    left: 0;
    top: 0;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 13px 21px;
    border-radius: 100px;

    white-space: nowrap;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;

    user-select: none;
    will-change: transform;
    box-sizing: border-box;
}

#offroute-physics .or-icon {
    font-size: 17px;
    line-height: 1;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {

    .or-home-hero {
        min-height: 850px;
        padding-bottom: 35px;
    }

    .or-home-content {
        margin-top: 55px;
    }

    .or-home-title {
        font-size: clamp(52px, 8vw, 76px);
    }

    .or-home-services {
        gap: 18px;
        margin-top: 38px;
    }

    .or-home-actions {
        gap: 15px;
        margin-top: 55px;
    }

    .or-home-button {
        min-width: 260px;
        min-height: 70px;
    }

    #offroute-physics {
        margin-top: 55px;
        height: 300px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .or-home-hero {
        min-height: auto;
        padding: 0 20px 30px;
    }

    .or-home-grid {
        background-size: 25px 25px;
    }

    .or-home-content {
        margin-top: 65px;
    }

    .or-home-title {
        font-size: clamp(42px, 10vw, 58px);
        line-height: 1.08;
        letter-spacing: -0.07em;
    }

    .or-home-title em {
        letter-spacing: -0.065em;
    }

    .or-home-services {
        max-width: 360px;
        gap: 12px;
        margin-top: 32px;
        font-size: 14px;
    }

    .or-home-services i {
        width: 5px;
        height: 5px;
        flex-basis: 5px;
    }

    .or-home-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 45px;
    }

    .or-home-button {
        width: 100%;
        max-width: 340px;
        min-width: 0;
        min-height: 62px;
        padding: 16px 22px;
        font-size: 19px;
    }

    #offroute-physics {
        height: 300px;
        margin-top: 45px;
    }

    #offroute-physics .or-pill {
        gap: 7px;
        padding: 10px 14px;
        font-size: 10px;
    }

    #offroute-physics .or-icon {
        font-size: 14px;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 380px) {

    .or-home-title {
        font-size: 39px;
    }

    .or-home-services {
        gap: 9px;
        font-size: 12px;
    }

    .or-home-actions {
        margin-top: 38px;
    }
}
