/* ===== css/base.css ===== */
*{
    box-sizing: border-box;
   
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Outfit", sans-serif;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

:root {
    --float-dock-clearance: 0px;
}

.skip-link {
    position: absolute;
    top: -3rem;
    left: 1rem;
    z-index: 1000;
    padding: 0.65rem 1rem;
    background: #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
}

.skip-link:focus {
    top: 1rem;
    outline: 2px solid #b20000;
    outline-offset: 2px;
}

/* ===== css/layout.css ===== */
:is(.page__shell, .hero, .services) {
    margin: 10px;
    padding: 10px 0;
    background: linear-gradient(180deg, #F0F0F0 0%, #FFFFFF 100%);
    border-radius: 8px;
    /* optional rounded corners */
}

.site-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
}

.site-nav__logo {
    order: 2;
}

.site-nav__cluster--left {
    order: 1;
}

.site-nav__cluster--right {
    order: 3;
}

.site-nav__toggle {
    display: none;
    order: 4;
}

.site-nav__panel,
.site-nav__panel-inner {
    display: contents;
}

.site-nav__cluster--left,
.site-nav__cluster--right {
    margin-inline: 40px;
    display: flex;
    gap: 20px;
}

.site-nav__cluster--left a,
.site-nav__cluster--right a {
    text-transform: uppercase;
    margin-inline: 60px;
    text-decoration: none;
    font-size: 12px;
    color: #000000;
    font-weight: 400;
    transition: color 0.2s ease;
}

.site-nav__cluster--left a.is-active,
.site-nav__cluster--right a.is-active,
.site-nav__cluster--left a[aria-current="page"],
.site-nav__cluster--right a[aria-current="page"] {
    color: #b20000;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #b20000;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* Hero nav is white on red — keep active readable with white underline */
main > div:is(.page__shell, .hero, .services) .site-nav__cluster--left a.is-active,
main > div:is(.page__shell, .hero, .services) .site-nav__cluster--right a.is-active,
main > div:is(.page__shell, .hero, .services) .site-nav__cluster--left a[aria-current="page"],
main > div:is(.page__shell, .hero, .services) .site-nav__cluster--right a[aria-current="page"] {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

.site-nav__logo img {
    height: 40px;
}

:is(.about__body, .hero__body) {
    display: flex;
    align-items: center;
    max-width: 1300px;
    margin: 40px auto 20px auto;
}

:is(.about__copy, .hero__copy, .services__copy) {
    flex: 1;
}

/* In-page anchor for footer "team" link until a team section exists */
/* Discover / in-page anchors — match Services stop position
   (Services uses ~clamp(56px, 10vh, 96px) inner top pad before the label) */
:root {
    --discover-scroll-pad: clamp(56px, 10vh, 96px);
}

#about {
    /* Space below bottom-of-hero slogan into About */
    scroll-margin-top: var(--discover-scroll-pad);
}

#services {
    scroll-margin-top: 0;
}

#team,
#faq {
    scroll-margin-top: var(--discover-scroll-pad);
}

#careers {
    /* Section top pad is calc(88px + 56px); compensate so CAREERS lands like Services */
    scroll-margin-top: calc(var(--discover-scroll-pad) - 88px - 56px);
}

#blogs {
    /* Section top pad is 140px */
    scroll-margin-top: calc(var(--discover-scroll-pad) - 140px);
}

@media (max-width: 640px) {
    #careers {
        scroll-margin-top: calc(var(--discover-scroll-pad) - 56px);
    }
}

.site-footer__scroll-anchor {
    height: 0;
    scroll-margin-top: 96px;
}

/* Footer */
.site-footer {
    margin: 10px 10px 6px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(136.24deg, #B20000 24.16%, #000000 75.54%);

    color: #ffffff;
    font-family: "Outfit", sans-serif;
}

.site-footer__inner {
    padding: 56px 20px 28px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

/* Beat later .container { padding: 0 20px } which was wiping footer vertical padding */
.site-footer .site-footer__inner {
    padding: 56px 20px 28px;
}

.site-footer:has(.site-footer__cta) .site-footer__inner {
    padding-top: 72px;
    padding-bottom: 28px;
}

.site-footer__cta {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px 48px;
    flex-wrap: wrap;
}

.site-footer__eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.site-footer__heading {
    margin: 0;
    max-width: 640px;
    font-size: clamp(36px, 8vw, 88px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.5px;
    text-transform: lowercase;
    color: #ffffff;
}

.site-footer__cta-text {
    display: flex;
    flex-direction: column;
    flex: 1 1 320px;
    min-width: 0;
    max-width: 560px;
}

.site-footer__review {
    margin: auto 0 0;
    max-width: 440px;
    padding-bottom: 0;
    width: 100%;
}

.site-footer__review-viewport {
    overflow: hidden;
    width: 100%;
}

.site-footer__review-track {
    display: flex;
    width: 100%;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.site-footer__review-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.site-footer__review-quote {
    margin: 0 0 24px;
    padding: 0;
    border: none;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    min-height: 5.4em;
}

.site-footer__review-quote::before {
    content: "“";
}

.site-footer__review-quote::after {
    content: "”";
}

.site-footer__review-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-footer__review-photo {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.12);
}

.site-footer__review-meta {
    min-width: 0;
}

.site-footer__review-name {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.site-footer__review-role {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer__review-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.site-footer__review-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    outline: none;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.site-footer__review-btn:hover,
.site-footer__review-btn:focus-visible {
    color: #ffffff;
}

.site-footer__review-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.site-footer__review-btn--next {
    color: #ffffff;
}

.site-footer__review-btn--next:hover,
.site-footer__review-btn--next:focus-visible {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer__review-btn svg {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__review-track {
        transition: none;
    }
}

.site-footer__form {
    flex: 1;
    min-width: min(100%, 360px);
    max-width: 560px;
    margin-left: auto;
}

.site-footer__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.site-footer__field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-footer__field--full {
    grid-column: 1 / -1;
}

.site-footer__label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 400;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.9);
}

.site-footer__form-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.site-footer__field input:not([type="checkbox"]):not([type="radio"]),
.site-footer__field select,
.site-footer__field textarea {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 8px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: #000000;
    background: #ffffff;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.site-footer__field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666666' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
    accent-color: #b20000;
}

.site-footer__field select option:checked,
.site-footer__field select option:hover {
    background-color: #b20000;
    background: #b20000 linear-gradient(0deg, #b20000 0%, #b20000 100%);
    color: #ffffff;
}

/* Custom footer select ? native option hover can't use theme color on Windows browsers */
.site-footer__select {
    position: relative;
    width: 100%;
}

.site-footer__select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background-image: none !important;
}

.site-footer__select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 8px;
    padding: 12px 14px;
    padding-right: 36px;
    font-family: inherit;
    font-size: 15px;
    color: #000000;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666666' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    text-align: left;
    cursor: pointer;
}

.site-footer__select-trigger:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 2px;
}

.site-footer__select-trigger.is-placeholder {
    color: #888888;
}

.site-footer__select-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 30;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    max-height: 220px;
    overflow-y: auto;
}

.site-footer__select.is-open .site-footer__select-menu {
    display: block;
}

.site-footer__select-option {
    padding: 10px 14px;
    font-size: 15px;
    color: #000000;
    cursor: pointer;
}

.site-footer__select-option:hover,
.site-footer__select-option.is-active,
.site-footer__select-option[aria-selected="true"] {
    background: #b20000;
    color: #ffffff;
}

.site-footer__field textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.45;
}

.site-footer__field input:not([type="checkbox"]):not([type="radio"])::placeholder,
.site-footer__field textarea::placeholder {
    color: #888888;
}

.site-footer__form-row input[type="email"] {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    color: #000000;
    background: transparent;
    outline: none;
}

.site-footer__form-row input::placeholder {
    color: #888888;
}

.site-footer__form .site-footer__form-button {
    flex-shrink: 0;
    padding: 8px 32px;
    border: none;
    border-radius: 6px;
    margin-top: 16px;
    background: #ffffff;
    color: #b20000;
    font-family: inherit;
    float: right;
    font-size: 14px;
    font-weight: 600;
    text-transform: lowercase;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(178, 0, 0, 0.25);
}

/* Keep floated submit from collapsing footer flow */
.site-footer__form::after {
    content: "";
    display: table;
    clear: both;
}

.site-footer__form-row button:hover {
    background: #fafafa;
}

.site-footer__form-row button:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 2px;
}

.site-footer__form input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.site-footer__form select:focus-visible,
.site-footer__form textarea:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 2px;
}

.site-footer__form-status {
    clear: both;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.site-footer__form-status.is-success {
    color: #d4edda;
}

.site-footer__form-status.is-error {
    color: #ffd6d6;
}

.site-footer__consent {
    margin-top: 2px;
}

.site-footer__consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    text-transform: none;
    cursor: pointer;
}

.site-footer__consent-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    background: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-footer__consent-label input[type="checkbox"]:checked {
    background-color: #b20000;
    border-color: #b20000;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.2 5 8.7 9.5 3.8' stroke='%23ffffff' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}

.site-footer__consent-label input[type="checkbox"]:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.site-footer__consent-label span {
    flex: 1;
    min-width: 0;
}

.site-footer__honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.site-footer__form .site-footer__form-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.site-footer__rule {
    border: none;
    height: 1px;
    margin: 28px 0;
    background: rgba(255, 255, 255, 0.14);
}

.site-footer__nav-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 56px;
    row-gap: 28px;
    flex: 1 1 auto;
    min-width: min(100%, 560px);
    width: 100%;
    max-width: 720px;
}

.site-footer__col {
    min-width: 0;
}

.site-footer__col-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    text-transform: lowercase;
    color: #ffffff;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__links li {
    margin-bottom: 10px;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    text-transform: lowercase;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

.site-footer__link-underline {
    text-decoration: underline;
}

.site-footer__slogan {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0;
    line-height: 1.05;
}

.site-footer__slogan span {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: -1px;
    color: #ffffff;
}

.site-footer__brand {
    margin: 32px 0 20px;
    display: block;
    width: 100%;
    line-height: 0;
}

.site-footer__brand-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    filter: brightness(0) invert(1);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.site-footer__copy {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.85);
}

.site-footer__social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    /* border-radius: 50%;
    background: #ffffff;
    color: #b20000; */
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.site-footer__social-link:hover {
    transform: scale(1.06);
    opacity: 0.95;
}

.site-footer__social-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}


  .back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 16px;
    border: none;
    background: linear-gradient(180deg, #000000 0%, #B20000 100%);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: .2s;
  }
  .back-to-top:hover{
    background-color: #444;
  }
  .back-to-top:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
  }
/* Mobile nav only ? desktop layout unchanged above */
@media (max-width: 768px) {
    .site-nav {
        position: relative;
        display: block;
        padding: 12px 16px 0;
    }

    .site-nav__logo {
        display: block;
        padding-right: 52px;
    }

    .site-nav__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 8px;
        right: 16px;
        width: 44px;
        height: 44px;
        padding: 0;
        background: #ffffff;
        border: 1px solid #d3d3d3;
        border-radius: 8px;
        cursor: pointer;
    }

    .site-nav__toggle:focus-visible {
        outline: 2px solid #b20000;
        outline-offset: 2px;
    }

    .site-nav__toggle-icon {
        display: block;
        width: 22px;
        height: 2px;
        background: #111111;
        border-radius: 1px;
        position: relative;
        transition: background 0.2s ease;
    }

    .site-nav__toggle-icon::before,
    .site-nav__toggle-icon::after {
        content: "";
        position: absolute;
        left: 0;
        width: 22px;
        height: 2px;
        background: #111111;
        border-radius: 1px;
        transition: transform 0.2s ease, top 0.2s ease;
    }

    .site-nav__toggle-icon::before {
        top: -7px;
    }

    .site-nav__toggle-icon::after {
        top: 7px;
    }

    .site-nav.is-menu-open .site-nav__toggle-icon {
        background: transparent;
    }

    .site-nav.is-menu-open .site-nav__toggle-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .site-nav.is-menu-open .site-nav__toggle-icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .site-nav__panel {
        display: grid;
        grid-template-rows: 0fr;
        width: 100%;
        margin-top: 0;
        overflow: hidden;
        border-top: 1px solid transparent;
        position: relative;
        z-index: 1;
        transition:
            grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            border-color 0.35s ease;
    }

    .site-nav.is-menu-open .site-nav__panel {
        grid-template-rows: 1fr;
        margin-top: 12px;
        border-top-color: #e0e0e0;
    }

    .site-nav__panel-inner {
        display: block;
        min-height: 0;
        overflow: hidden;
        background: #ffffff;
        padding: 12px 20px 16px;
        opacity: 0;
        transform: translateY(-10px);
        transition:
            opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .site-nav:not(.is-menu-open) .site-nav__panel,
    .site-nav:not(.is-menu-open) .site-nav__panel-inner {
        background: transparent;
    }

    .site-nav:not(.is-menu-open) .site-nav__panel-inner {
        padding-top: 0;
        padding-bottom: 0;
    }

    .site-nav.is-menu-open .site-nav__panel-inner {
        opacity: 1;
        transform: translateY(0);
    }

    .site-nav__cluster--left,
    .site-nav__cluster--right {
        display: block;
        margin-inline: 0;
        width: 100%;
        gap: 0;
    }

    .site-nav__cluster--left a,
    .site-nav__cluster--right a {
        display: block;
        margin-inline: 0;
        padding: 14px 8px;
        font-size: 14px;
        color: #000000;
        border-bottom: 1px solid #f0f0f0;
    }

    main > div:is(.page__shell, .hero, .services) .site-nav__panel-inner .site-nav__cluster--left a,
    main > div:is(.page__shell, .hero, .services) .site-nav__panel-inner .site-nav__cluster--right a {
        color: #000000;
    }

    .site-nav__cluster--left a:hover,
    .site-nav__cluster--right a:hover,
    main > div:is(.page__shell, .hero, .services) .site-nav__panel-inner .site-nav__cluster--left a:hover,
    main > div:is(.page__shell, .hero, .services) .site-nav__panel-inner .site-nav__cluster--right a:hover {
        color: #B20000;
    }

    .site-nav__cluster--left a.is-active,
    .site-nav__cluster--right a.is-active,
    .site-nav__cluster--left a[aria-current="page"],
    .site-nav__cluster--right a[aria-current="page"],
    main > div:is(.page__shell, .hero, .services) .site-nav__panel-inner .site-nav__cluster--left a.is-active,
    main > div:is(.page__shell, .hero, .services) .site-nav__panel-inner .site-nav__cluster--right a.is-active,
    main > div:is(.page__shell, .hero, .services) .site-nav__panel-inner .site-nav__cluster--left a[aria-current="page"],
    main > div:is(.page__shell, .hero, .services) .site-nav__panel-inner .site-nav__cluster--right a[aria-current="page"] {
        color: #b20000;
        text-decoration: underline;
        text-decoration-color: #b20000;
        text-decoration-thickness: 2px;
        text-underline-offset: 6px;
        font-weight: 600;
    }

    .site-nav__cluster--right a:last-child {
        border-bottom: none;
    }

    body.nav-menu-open {
        overflow: hidden;
    }

    @media (prefers-reduced-motion: reduce) {
        .site-nav__panel,
        .site-nav__panel-inner {
            transition: none;
        }

        .site-nav__panel-inner {
            opacity: 1;
            transform: none;
        }

        .site-nav:not(.is-menu-open) .site-nav__panel {
            display: none;
        }

        .site-nav.is-menu-open .site-nav__panel {
            display: grid;
            grid-template-rows: 1fr;
        }
    }

    :is(.about__body, .hero__body) {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
        margin: 24px 16px 32px;
        max-width: none;
    }

    main > div:is(.page__shell, .hero, .services) {
        min-height: 0;
        padding-bottom: 0;
    }

    main > div:is(.page__shell, .hero, .services) :is(.about__body, .hero__body) {
        margin: 36px auto 28px;
        flex: 0 1 auto;
        align-self: center;
        align-items: center;
        justify-content: center;
        padding-inline: 16px;
        padding-top: 20px;
        max-width: 1300px;
    }

    :is(.about__copy, .hero__copy, .services__copy) {
        flex: none;
        order: 1;
    }

    :is(.about__copy, .hero__copy, .services__copy) h1 {
        font-size: clamp(32px, 9vw, 44px);
        line-height: 1.08;
        letter-spacing: -1px;
    }

    :is(.about__copy, .hero__copy, .services__copy) p {
        font-size: 15px;
        line-height: 1.5;
    }

    :is(.about__copy, .hero__copy, .services__copy) p br {
        display: none;
    }

    :is(.banner-visual, .hero__visual) {
        flex: none;
        order: 2;
        width: 100%;
        text-align: center;
    }

    :is(.about__visual-inner, .hero__visual-inner) {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    main > div:is(.page__shell, .hero, .services) :is(.about__visual-inner, .hero__visual-inner) {
        max-width: 380px;
    }

    main > div:is(.page__shell, .hero, .services) :is(.about__illustration, .hero__illustration) {
        max-height: 340px;
    }

    :is(.about__illustration, .hero__illustration) {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .about__rectangle {
        width: 52%;
        right: 8%;
    }

    @keyframes heroRectangleIn {
        from {
            opacity: 0;
            transform: translate3d(40px, -50%, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(0, -50%, 0);
        }
    }

    @keyframes heroIllustrationIn {
        0% {
            opacity: 0;
            transform: translate3d(18px, 0, 0);
        }
        40% {
            opacity: 1;
        }
        100% {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    :is(.steps-banner, .process__steps-banner) {
        width: unset;
        height: unset;
        padding: 20px;
        font-size: clamp(28px, 8vw, 40px);
    }
    .products__card--large .products__image img  {
        object-fit: contain;
        height: unset;
    }
    .what-we-do{
        margin: 30px 0;
    }
    .about__visual img {
        max-width: 100%;
        width: 100%;
        left: 0 !important;
    }

    #about .about__body {
        flex-direction: column;
        gap: 28px;
    }

    #about .about__visual {
        order: 2;
        width: 100%;
        flex: none;
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }

    #about .about__visual-inner {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    #about .about__visual :is(.about__illustration, .hero__illustration) {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    #about .about__visual .about__rectangle {
        width: 52%;
        right: 8%;
        transform: translate3d(0, -50%, 0);
    }

    #about :is(.about__copy, .services__copy) {
        order: 1;
        flex: none;
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }
    :is(.about, .process) {
        padding: 30px 0;
        margin: 0 10px;
    }

    #process:is(.about, .process) {
        margin-top: 0;
        margin-bottom: 0;
        border-radius: 0;
        padding: 72px 0;
    }

    .products {
        margin: 0 10px 10px;
        padding: 0 0 140px;
        border-radius: 0 0 8px 8px;
    }

    #about:is(.about, .process) {
        margin: -96px 10px 0;
        border-radius: 0;
        padding-top: 112px;
        padding-bottom: 40px;
        box-shadow: none;
    }

    #services:is(.page__shell, .hero, .services) {
        margin: 0 10px 0;
        border-radius: 0;
        padding-top: 0;
        padding-bottom: 0;
        background: #ffffff;
    }

    #services:is(.page__shell, .hero, .services)::before {
        height: 96px;
    }

    #services:is(.page__shell, .hero, .services) > .services,
    #services:is(.page__shell, .hero, .services) > .services__body {
        padding-top: 48px;
        padding-bottom: 0;
    }

    main > div:is(.page__shell, .hero, .services) {
        margin: 10px 10px 0;
        border-radius: 8px 8px 0 0;
    }

    .team__header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 28px;
    }

    .team__heading {
        font-size: 32px;
    }

    .team__viewport {
        height: 428px; /* 384 + 44 */
        min-height: 428px;
    }

    .team__card {
        border-radius: 14px;
    }

    .testimonials-header {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .testimonials-heading {
        font-size: 32px;
    }

    #slider-3 {
        gap: 16px;
    }

    .testimonial-card {
        padding: 20px;
    }
}
@media (max-width: 992px) {
   .faq__layout {
    grid-template-columns: unset;
   }
}

/* Dedicated About / Products / Services / Blogs pages */
.page > :is(.page__shell, .hero, .services) {
    background: #ffffff;
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* ===== css/components.css ===== */
/* FAQ section — top gap from Blogs bottom 140px; own bottom 140px */
.faq {
    background: #ffffff;
    padding: 0 0 140px;
}

.faq__layout {
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 48px 88px;
    align-items: start;
}

.faq__label {
    margin-bottom: 0;
}

.faq__title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.08;
    margin: 14px 0 0;
    text-transform: lowercase;
    letter-spacing: -1.2px;
    color: #000000;
}

.faq__accordion {
    min-width: 0;
}

.faq__item {
    border-bottom: 1px solid #d3d3d3;
}


/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 40px;
}

.testimonials-title {
    flex: 1;
}

.testimonials-label {
    display: block;
    color: #B20000;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.testimonials-heading {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: -1px;
    color: #000000;
}

.testimonials-nav {
    display: flex;
    gap: 12px;
    align-self: flex-start;
}

.testimonials-nav-btn {
    width: 30px;
    height: 3px;
    border: 2px solid #B20000;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B20000;
    transition: all 0.3s ease;
}
.testimonials-section .owl-item {
    /* Let Owl set widths; never force a desktop item size on mobile */
    min-width: 0;
}

@media (min-width: 769px) {
    .testimonials-section .owl-item {
        width: 650px;
    }
}
.owl-dots {
    display: none;
}
.testimonials-section .active:first-child {
    opacity: .5;
}
.testimonials-nav-btn:hover {
    background: #B20000;
    color: #FFFFFF;
}

.testimonials-nav-btn:focus-visible {
    outline: 2px solid #B20000;
    outline-offset: 2px;
}

#slider-3 {
    display: flex;
    gap: 20px;
}

.testimonial-item {
    flex: 1;
    min-width: 0;
}

.testimonial-card {
    border: 1px solid  #B20000;
    flex-direction: column;
    background: #FDFAFA;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    display: flex;
    gap: 20px;
   

    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.testimonial-quote {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: #333333;
    letter-spacing: -0.2px;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    align-items: center;
}

.testimonial-rating .star {
    color: #FFA500;
    font-size: 16px;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    text-transform: lowercase;
}

.author-title {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: #808080;
    text-transform: lowercase;
}
/* --- Team reel carousel --- */
.team {
    position: relative;
    z-index: 1;
    /* Top gap from Products bottom 140px — do not stack */
    padding: 0 0 48px;
    background: #ffffff;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.team .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.team__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.team__label {
    display: block;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b20000;
}

.team__heading {
    margin: 0;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.8px;
    text-transform: lowercase;
    color: #111111;
}

:is(.team__controls, .blogs__controls) {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-shrink: 0;
}

.team .team__nav-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #9a9a9a;
    outline: none;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.team .team__nav-btn:hover,
.team .team__nav-btn:focus-visible {
    color: #111111;
}

.team .team__nav-btn:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 3px;
}

.team .team__nav-btn--next {
    color: #b20000;
}

.team .team__nav-btn--next:hover,
.team .team__nav-btn--next:focus-visible {
    color: #8f0000;
}


/* Used after click-to-activate remounts onto the middle copy ? must be invisible */
.team__track.is-remounting .team__card,
.team__track.is-remounting .team__card-photo,
.team__track.is-remounting .team__card-info {
    transition: none !important;
}

.team__track.is-remounting .team__card::after {
    transition: none !important;
}

.team__card {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    cursor: pointer;
    background: #cfcfcf;
    width: 300px;
    height: 600px;
    /* Kill 1px hairline under rounded overflow:hidden cards */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transition:
        width 0.75s cubic-bezier(0.4, 0, 0.2, 1),
        height 0.75s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.team__card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
    border-radius: inherit;
    opacity: 1;
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.team__card:not(.is-active) .team__card-photo {
    filter: grayscale(1);
}

.team__card.is-active {
    width: 500px;
    height: 640px;
    /* Figma: red (left/top) ? black (right/bottom) */
    background: linear-gradient(136.24deg, #b20000 24.16%, #000000 75.54%);
    z-index: 2;
}

.team__card.is-active .team__card-photo {
    filter: none;
}

.team__card.is-active::after {
    opacity: 0;
}

.team__card:not(.is-active) .team__card-info {
    visibility: hidden;
    opacity: 0;
}

.team__card-info {
    position: absolute;
    top: 32px;
    left: 32px;
    right: 28px;
    z-index: 3;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
        visibility 0s linear 0.65s;
    pointer-events: none;
}

.team__card.is-active .team__card-info {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
        opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
        visibility 0s linear 0s;
}

.team__card-role {
    margin: 0 0 8px;
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    font-style: normal;
    font-size: 16px;
    line-height: 23.04px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #ffffff;
    max-width: 100%;
}

.team__card-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.team__card-name {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 30px;
    line-height: 34px;
    letter-spacing: 0;
    color: #ffffff;
}

.team__card-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    pointer-events: none;
}

.team__card.is-active .team__card-linkedin {
    pointer-events: auto;
}

.team__card-linkedin:hover,
.team__card-linkedin:focus-visible {
    background: #ffffff;
    color: #b20000;
    transform: translateY(-1px);
}

.team__card-linkedin:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.team__card-linkedin svg {
    display: block;
}

.team__card-media {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    width: 100%;
    /* Figma active image area: 500 ? 548.98 ? +2px covers bottom hairline */
    height: calc(85.78% + 3px);
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    background: transparent;
}

.team__card-photo {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center bottom;
    user-select: none;
    transform: scale(1.02);
    transform-origin: center bottom;
    transition: filter 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1100px) {
    .team__viewport {
        height: 514px; /* 470 + 44 */
        min-height: 514px;
    }

    .team__card-name {
        font-size: clamp(18px, 3.5vw, 30px);
        line-height: 1.13;
    }

    .team__card-role {
        font-size: clamp(11px, 2vw, 16px);
        line-height: 1.44;
    }
}

@media (max-width: 768px) {
    .team__viewport {
        height: 428px; /* 384 + 44 */
        min-height: 428px;
        touch-action: pan-x;
    }

    .team__card {
        width: 180px;
        height: 360px;
        border-radius: 18px;
    }

    .team__card.is-active {
        width: 300px;
        height: 384px;
    }

    .team__card-info {
        top: 20px;
        left: 20px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .team__viewport {
        height: 364px; /* 320 + 44 */
        min-height: 364px;
    }

    .team__card {
        width: 150px;
        height: 300px;
        border-radius: 16px;
    }

    .team__card.is-active {
        width: 250px;
        height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team__track,
    .team__card,
    .team__card-photo,
    .team__card-info {
        transition: none;
    }
}

/* ?? Sticky floating dock (center bottom) ?? */
@property --float-dock-laser-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.float-dock {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: min(960px, calc(100vw - 32px));
    padding: 18px 16px 16px;
    min-height: 84px;
    box-sizing: border-box;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.58) 0%,
        rgba(255, 255, 255, 0.32) 48%,
        rgba(255, 255, 255, 0.42) 100%
    );
    color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 18px;
    backdrop-filter: blur(22px) saturate(165%);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        inset 0 -1px 0 rgba(255, 255, 255, 0.18);
    font-family: "Outfit", sans-serif;
    overflow: visible;
    isolation: isolate;
    --float-dock-laser-angle: 0deg;
}

/* Laser stroke that continuously circulates the dock border */
.float-dock::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 4;
    background: conic-gradient(
        from var(--float-dock-laser-angle),
        transparent 0deg,
        transparent 292deg,
        rgba(178, 0, 0, 0.1) 318deg,
        rgba(178, 0, 0, 0.45) 336deg,
        rgba(178, 0, 0, 0.85) 348deg,
        #b20000 354deg,
        #b20000 360deg
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: floatDockLaserSpin 2.8s linear infinite;
}

@keyframes floatDockLaserSpin {
    to {
        --float-dock-laser-angle: 360deg;
    }
}

.float-dock__clock {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 0;
    padding-right: 4px;
}

.float-dock__time {
    font-size: clamp(1.15rem, 2.2vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: #b20000;
    white-space: nowrap;
}

.float-dock__unit {
    font-size: 0.55em;
    font-weight: 400;
    letter-spacing: 0;
    vertical-align: baseline;
}

.float-dock__datetime {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.2;
    color: #666666;
    white-space: nowrap;
}

.float-dock__divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(0, 0, 0, 0.14) 20%,
        rgba(0, 0, 0, 0.14) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    flex-shrink: 0;
}

.float-dock__products {
    display: flex;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    /* Room so hover lift is not clipped by the scroll container */
    padding: 10px 4px 6px;
    margin: -10px -4px -6px;
}

.float-dock__products::-webkit-scrollbar {
    display: none;
}

.float-dock__product {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    text-decoration: none;
    color: #333333;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.float-dock__product:hover {
    background: rgba(178, 0, 0, 0.12);
    border-color: rgba(178, 0, 0, 0.4);
    transform: translateY(-3px);
    color: #b20000;
    box-shadow:
        0 6px 16px rgba(178, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.float-dock__product:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 2px;
}

.float-dock__product-icon {
    display: block;
    flex-shrink: 0;
}

.float-dock__product-icon--trace {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.float-dock__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: lowercase;
    white-space: nowrap;
    color: #ffffff;
    background: #b20000;
    border: 2px solid #b20000;
    border-radius: 12px;
    box-sizing: border-box;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.float-dock__cta-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
}

.float-dock__cta--secondary {
    background: #ffffff;
    color: #b20000;
    border-color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.float-dock__cta--secondary:hover {
    background: #b20000;
    color: #ffffff;
    border-color: #b20000;
    transform: translateY(-1px);
    box-shadow: none;
}

.float-dock__cta:hover {
    background: #8f0000;
    border-color: #8f0000;
    transform: translateY(-1px);
}

.float-dock__cta:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    :root {
        --float-dock-clearance: 0px;
    }

    .float-dock {
        gap: 8px;
        padding: 12px 10px 12px;
        min-height: 64px;
        bottom: 12px;
        max-width: calc(100vw - 24px);
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .float-dock::-webkit-scrollbar {
        display: none;
    }

    .float-dock__clock {
        min-width: 0;
        display: none;
    }

    .float-dock__time {
        font-size: 1.25rem;
    }

    .float-dock__product {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
    }

    .float-dock__cta {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .back-to-top {
        bottom: 88px;
        right: 16px;
        z-index: 85;
    }
}

@media (max-width: 640px) {
    :root {
        --float-dock-clearance: 0px;
    }

    .float-dock {
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
        max-width: none;
        justify-content: flex-start;
        border-radius: 14px;
        gap: 6px;
        padding: 10px 8px;
        min-height: 58px;
    }

    .float-dock__cta-group {
        gap: 6px;
        margin-left: auto;
    }

    .float-dock__cta--secondary {
        display: inline-flex;
        padding: 10px 12px;
        font-size: 0.75rem;
    }

    .float-dock__cta {
        padding: 10px 12px;
    }

    .back-to-top {
        bottom: 78px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-dock__product {
        transition: none;
    }

    .float-dock::before {
        animation: none;
        background: linear-gradient(
            135deg,
            rgba(178, 0, 0, 0.35),
            #b20000,
            rgba(178, 0, 0, 0.35)
        );
    }
}

.float-dock__theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.38);
    color: #333333;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.float-dock__theme:hover {
    background: rgba(178, 0, 0, 0.12);
    border-color: rgba(178, 0, 0, 0.4);
    color: #b20000;
    transform: translateY(-3px);
    box-shadow:
        0 6px 16px rgba(178, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.float-dock__theme:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 2px;
}

.float-dock__theme-icon {
    display: none;
}

.float-dock__theme-icon--moon {
    display: block;
}

html[data-theme="dark"] .float-dock__theme-icon--moon {
    display: none;
}

html[data-theme="dark"] .float-dock__theme-icon--sun {
    display: block;
}

/* Dark theme */
html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="dark"] body {
    background-color: #0d0d0d;
    color: #e8e8e8;
}

html[data-theme="dark"] .page__shell,
html[data-theme="dark"] .services {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
}

html[data-theme="dark"] main > .hero,
html[data-theme="dark"] .site-header--home + main > .hero {
    background: linear-gradient(
        180deg,
        #b20000 0%,
        #b20000 34%,
        #a00000 46%,
        #7a0a0a 58%,
        #4a1212 70%,
        #2a1414 80%,
        #161212 90%,
        #0d0d0d 100%
    );
}

html[data-theme="dark"] :is(.section-slogan, .hero__slogan) p,
html[data-theme="dark"] :is(.section-slogan, .hero__slogan) p span {
    color: #ffffff;
}

/* Clear tip so the hero dark fade shows through — no second dark gradient band */
html[data-theme="dark"] #about:is(.about, .process) {
    background: linear-gradient(
        180deg,
        rgba(13, 13, 13, 0) 0%,
        rgba(13, 13, 13, 0) 100px,
        rgba(13, 13, 13, 0.25) 130px,
        rgba(13, 13, 13, 0.65) 155px,
        #0d0d0d 180px,
        #101010 45%,
        #141414 72%,
        #161616 100%
    );
}

html[data-theme="dark"] #services:is(.page__shell, .hero, .services) {
    background: #121212;
}

html[data-theme="dark"] #services:is(.page__shell, .hero, .services)::before {
    background: linear-gradient(
        180deg,
        #161616 0%,
        rgba(22, 22, 22, 0.55) 40%,
        rgba(18, 18, 18, 0) 100%
    );
}

html[data-theme="dark"] #process:is(.about, .process) {
    background: linear-gradient(
        180deg,
        #121212 0%,
        #101010 45%,
        #0d0d0d 100%
    );
}

html[data-theme="dark"] #process:is(.about, .process)::after {
    background: linear-gradient(
        180deg,
        rgba(13, 13, 13, 0) 0%,
        rgba(13, 13, 13, 0.55) 50%,
        #0d0d0d 100%
    );
}

html[data-theme="dark"] .site-nav__cluster--left a,
html[data-theme="dark"] .site-nav__cluster--right a {
    color: #e8e8e8;
}

html[data-theme="dark"] .site-nav__cluster--left a:hover,
html[data-theme="dark"] .site-nav__cluster--right a:hover {
    color: #b20000;
}

html[data-theme="dark"] .site-nav__cluster--left a.is-active,
html[data-theme="dark"] .site-nav__cluster--right a.is-active,
html[data-theme="dark"] .site-nav__cluster--left a[aria-current="page"],
html[data-theme="dark"] .site-nav__cluster--right a[aria-current="page"] {
    color: #b20000;
    text-decoration-color: #b20000;
}

/* Home header over red/dark hero — white nav only while menu is closed / desktop */
html[data-theme="dark"] .site-header--home .site-nav:not(.is-menu-open) .site-nav__cluster--left a,
html[data-theme="dark"] .site-header--home .site-nav:not(.is-menu-open) .site-nav__cluster--right a {
    color: #ffffff;
}

html[data-theme="dark"] .site-header--home .site-nav:not(.is-menu-open) .site-nav__cluster--left a:hover,
html[data-theme="dark"] .site-header--home .site-nav:not(.is-menu-open) .site-nav__cluster--right a:hover {
    color: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] .site-header--home .site-nav:not(.is-menu-open) .site-nav__cluster--left a.is-active,
html[data-theme="dark"] .site-header--home .site-nav:not(.is-menu-open) .site-nav__cluster--right a.is-active,
html[data-theme="dark"] .site-header--home .site-nav:not(.is-menu-open) .site-nav__cluster--left a[aria-current="page"],
html[data-theme="dark"] .site-header--home .site-nav:not(.is-menu-open) .site-nav__cluster--right a[aria-current="page"] {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

@media (min-width: 769px) {
    html[data-theme="dark"] .site-header--home .site-nav__cluster--left a,
    html[data-theme="dark"] .site-header--home .site-nav__cluster--right a {
        color: #ffffff;
    }

    html[data-theme="dark"] .site-header--home .site-nav__cluster--left a:hover,
    html[data-theme="dark"] .site-header--home .site-nav__cluster--right a:hover {
        color: rgba(255, 255, 255, 0.85);
    }

    html[data-theme="dark"] .site-header--home .site-nav__cluster--left a.is-active,
    html[data-theme="dark"] .site-header--home .site-nav__cluster--right a.is-active,
    html[data-theme="dark"] .site-header--home .site-nav__cluster--left a[aria-current="page"],
    html[data-theme="dark"] .site-header--home .site-nav__cluster--right a[aria-current="page"] {
        color: #ffffff;
        text-decoration-color: #ffffff;
    }
}

html[data-theme="dark"] .site-header--home .site-nav__logo img {
    filter: brightness(0) invert(1);
}

html[data-theme="dark"] .site-header--home .site-nav__toggle {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

html[data-theme="dark"] .site-header--home .site-nav__toggle-icon,
html[data-theme="dark"] .site-header--home .site-nav__toggle-icon::before,
html[data-theme="dark"] .site-header--home .site-nav__toggle-icon::after {
    background: #ffffff;
}

html[data-theme="dark"] main > div:is(.page__shell, .hero, .services) .site-nav__cluster--left a,
html[data-theme="dark"] main > div:is(.page__shell, .hero, .services) .site-nav__cluster--right a {
    color: #ffffff;
}

html[data-theme="dark"] main > div:is(.page__shell, .hero, .services) .site-nav__cluster--left a.is-active,
html[data-theme="dark"] main > div:is(.page__shell, .hero, .services) .site-nav__cluster--right a.is-active,
html[data-theme="dark"] main > div:is(.page__shell, .hero, .services) .site-nav__cluster--left a[aria-current="page"],
html[data-theme="dark"] main > div:is(.page__shell, .hero, .services) .site-nav__cluster--right a[aria-current="page"] {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

html[data-theme="dark"] :is(.about__copy, .hero__copy, .services__copy),
html[data-theme="dark"] :is(.about__copy, .hero__copy, .services__copy) h1,
html[data-theme="dark"] :is(.about__copy, .hero__copy, .services__copy) p,
html[data-theme="dark"] :is(.about__copy, .services__copy) :is(h1, h2),
html[data-theme="dark"] :is(.about__copy, .services__copy) p,
html[data-theme="dark"] #about :is(.about__copy, .services__copy) > p:not(:is(.tagline, .hero__tagline)),
html[data-theme="dark"] #services .services__copy > p:not(:is(.tagline, .hero__tagline)),
html[data-theme="dark"] .faq__title,
html[data-theme="dark"] .faq__question,
html[data-theme="dark"] .author-name,
html[data-theme="dark"] .what-we-do .service-card p {
    color: #e8e8e8;
}

html[data-theme="dark"] :is(.about__copy, .services__copy) span,
html[data-theme="dark"] .faq__label,
html[data-theme="dark"] :is(.process-content, .process__content) p,
html[data-theme="dark"] .testimonial-quote,
html[data-theme="dark"] .author-title,
html[data-theme="dark"] .float-dock__datetime {
    color: #a0a0a0;
}

html[data-theme="dark"] #about :is(.about__copy, .services__copy) > span {
    color: #B20000;
}

html[data-theme="dark"] .services__grid .services__item {
    background: #1a1a1a;
    border-color: #333333;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    color: #e8e8e8;
}

html[data-theme="dark"] .services__grid .services__item:hover {
    background-color: #b20000;
    border-color: #b20000;
    box-shadow: 0 12px 28px rgba(178, 0, 0, 0.35);
    color: #ffffff;
}

html[data-theme="dark"] .services__grid .services__item:hover svg rect[fill="white"] {
    fill: #ffffff;
    stroke: #ffffff;
    stroke-width: 1;
}

html[data-theme="dark"] .services__grid .services__item:hover svg [fill="#B20000"] {
    fill: none;
    stroke: #b20000;
    stroke-width: 1;
    stroke-linejoin: round;
    stroke-linecap: round;
}

html[data-theme="dark"] .services__grid .services__item:hover svg :not(rect)[stroke="#B20000"] {
    fill: none;
    stroke: #b20000;
}

html[data-theme="dark"] .what-we-do .service-card {
    background: #1a1a1a;
    border-color: #b20000;
}

html[data-theme="dark"] .what-we-do .service-card:hover {
    background-color: #b20000;
    border-color: #b20000;
    box-shadow: 0 12px 28px rgba(178, 0, 0, 0.35);
}

html[data-theme="dark"] .what-we-do .service-card:hover h3,
html[data-theme="dark"] .what-we-do .service-card:hover p {
    color: #ffffff;
}

html[data-theme="dark"] .products__card:not(.products__card--explore):not(.products__card--title) {
    background: #1a1a1a;
}

html[data-theme="dark"] .products__card--title {
    background: #4E3162;
    border-color: #4E3162;
    color: #ffffff;
}

html[data-theme="dark"] .products__card--explore {
    background: linear-gradient(135deg, #4a3a6b 0%, #6b4c8a 100%);
}

html[data-theme="dark"] .products__card--description .products__description,
html[data-theme="dark"] .products__card--features .products__features li {
    color: #c4b5d4;
}

html[data-theme="dark"] .faq {
    background: #0d0d0d;
}

html[data-theme="dark"] .blogs {
    background: #141414;
}

html[data-theme="dark"] .blogs__title {
    color: #e8e8e8;
}

html[data-theme="dark"] .blogs__lead,
html[data-theme="dark"] .blogs__item-excerpt {
    color: #b0b0b0;
}

html[data-theme="dark"] .blogs__item-link {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: #b20000;
}

html[data-theme="dark"] .blogs__item-link:hover,
html[data-theme="dark"] .blogs__item-link:focus-visible {
    border-color: rgba(178, 0, 0, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .blogs__item-title {
    color: #e8e8e8;
}

html[data-theme="dark"] .blogs__nav .blogs__nav-btn:disabled {
    color: #666666;
}

html[data-theme="dark"] .faq__item {
    border-bottom-color: #333333;
}

html[data-theme="dark"] .faq__trigger,
html[data-theme="dark"] .faq__panel p,
html[data-theme="dark"] .services__grid .services__item h3,
html[data-theme="dark"] .services__grid .services__list li,
html[data-theme="dark"] .testimonials-title h2 {
    color: #e8e8e8;
}

html[data-theme="dark"] .faq__icon::before,
html[data-theme="dark"] .faq__icon::after {
    background: #e8e8e8;
}

html[data-theme="dark"] .services__grid .services__item:hover h3,
html[data-theme="dark"] .services__grid .services__item:hover .services__list li {
    color: #ffffff;
}

html[data-theme="dark"] .testimonial-card {
    background: #1a1a1a;
}

html[data-theme="dark"] .testimonials-section {
    background: #0d0d0d;
}

html[data-theme="dark"] .team,
html[data-theme="dark"] .products {
    background: #0d0d0d;
}

html[data-theme="dark"] .page--careers > :is(.page__shell, .hero, .services) {
    background: #0d0d0d;
}

html[data-theme="dark"] .page--careers .team {
    background: #0d0d0d;
}

html[data-theme="dark"] .page--careers .team::before {
    content: none;
    display: none;
}

html[data-theme="dark"] .careers {
    background: #181818;
}

html[data-theme="dark"] .careers::before {
    background: linear-gradient(
        180deg,
        #0d0d0d 0%,
        #0d0d0d 22%,
        rgba(13, 13, 13, 0.65) 48%,
        rgba(24, 24, 24, 0) 100%
    );
}

html[data-theme="dark"] .careers::after {
    background: linear-gradient(
        180deg,
        rgba(24, 24, 24, 0) 0%,
        rgba(13, 13, 13, 0.5) 58%,
        #0d0d0d 100%
    );
}

html[data-theme="dark"] .careers__heading {
    color: #e8e8e8;
}

html[data-theme="dark"] .careers__lead,
html[data-theme="dark"] .careers__form-status {
    color: #b0b0b0;
}

html[data-theme="dark"] .careers__openings-title,
html[data-theme="dark"] .careers__opening-role {
    color: #e8e8e8;
}

html[data-theme="dark"] .careers__openings-search input {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    color: #111111;
}

html[data-theme="dark"] .careers__openings-search input::placeholder,
html[data-theme="dark"] .careers__openings-search-icon {
    color: #888888;
}

html[data-theme="dark"] .careers__opening-card {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .careers__opening-meta,
html[data-theme="dark"] .careers__opening-desc,
html[data-theme="dark"] .careers__openings-empty,
html[data-theme="dark"] .careers__openings-meta {
    color: #a8a8a8;
}

html[data-theme="dark"] .careers__label-field {
    color: #d0d0d0;
}

html[data-theme="dark"] .careers__field input,
html[data-theme="dark"] .careers__field select {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    color: #111111;
}

html[data-theme="dark"] .careers__salary {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .careers__salary-currency {
    color: #555555;
    background: rgba(0, 0, 0, 0.04);
    border-right-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .careers__salary input[type="number"] {
    background: transparent;
    color: #111111;
}

html[data-theme="dark"] .careers__form .site-footer__select-trigger {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666666' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    border-color: rgba(0, 0, 0, 0.12);
    color: #111111;
}

html[data-theme="dark"] .careers__field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666666' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .careers__form .site-footer__select-trigger.is-placeholder,
html[data-theme="dark"] .careers__field input::placeholder {
    color: #9a9a9a;
}

html[data-theme="dark"] .careers__form .site-footer__select-menu {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .careers__form .site-footer__select-option {
    color: #111111;
}

html[data-theme="dark"] .careers__upload-btn {
    color: #ffffff;
    border-color: #b20000;
}

html[data-theme="dark"] .careers__upload-btn:hover {
    background: #b20000;
    color: #ffffff;
    border-color: #b20000;
}

html[data-theme="dark"] .careers__upload-name {
    color: #999999;
}

html[data-theme="dark"] .careers__upload-name.is-selected {
    color: #e8e8e8;
}

html[data-theme="dark"] .careers__form-status.is-success {
    color: #7dcea0;
}

html[data-theme="dark"] .careers__form-status.is-error {
    color: #ff8a8a;
}

html[data-theme="dark"] .team__heading,
html[data-theme="dark"] .section__header :is(h1, h2),
html[data-theme="dark"] #process :is(.process-content, .process__content) h3 {
    color: #e8e8e8;
}

html[data-theme="dark"] .float-dock {
    background: linear-gradient(
        155deg,
        rgba(40, 40, 40, 0.55) 0%,
        rgba(18, 18, 18, 0.38) 50%,
        rgba(28, 28, 28, 0.48) 100%
    );
    color: #e8e8e8;
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .float-dock::before {
    background: conic-gradient(
        from var(--float-dock-laser-angle),
        transparent 0deg,
        transparent 292deg,
        rgba(178, 0, 0, 0.12) 318deg,
        rgba(255, 80, 80, 0.55) 336deg,
        #ff7a7a 348deg,
        #ffffff 354deg,
        #b20000 360deg
    );
}

html[data-theme="dark"] .float-dock__divider {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.18) 20%,
        rgba(255, 255, 255, 0.18) 80%,
        rgba(255, 255, 255, 0) 100%
    );
}

html[data-theme="dark"] .float-dock__product,
html[data-theme="dark"] .float-dock__theme {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: #e0e0e0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .float-dock__product:hover,
html[data-theme="dark"] .float-dock__theme:hover {
    background: rgba(178, 0, 0, 0.22);
    border-color: rgba(178, 0, 0, 0.5);
    color: #ff6b6b;
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .float-dock__cta--secondary {
    color: #b20000;
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: none;
}

html[data-theme="dark"] .float-dock__cta--secondary:hover {
    color: #ffffff;
    background: #b20000;
    border-color: #b20000;
    box-shadow: none;
}

html[data-theme="dark"] .site-nav__toggle {
    background: #1a1a1a;
    border-color: #333333;
    color: #e8e8e8;
}

html[data-theme="dark"] .site-nav__toggle-icon,
html[data-theme="dark"] .site-nav__toggle-icon::before,
html[data-theme="dark"] .site-nav__toggle-icon::after {
    background: #e8e8e8;
}

/* Closed drawer must stay transparent — otherwise a black strip shows on the hero */
html[data-theme="dark"] .site-nav:not(.is-menu-open) .site-nav__panel,
html[data-theme="dark"] .site-nav:not(.is-menu-open) .site-nav__panel-inner {
    background: transparent;
}

html[data-theme="dark"] .site-nav.is-menu-open .site-nav__panel,
html[data-theme="dark"] .site-nav.is-menu-open .site-nav__panel-inner {
    background: #121212;
}

@media (max-width: 768px) {
    html[data-theme="dark"] .site-nav__toggle {
        background: #1a1a1a;
        border-color: #333333;
    }

    html[data-theme="dark"] .site-header--home .site-nav:not(.is-menu-open) .site-nav__panel,
    html[data-theme="dark"] .site-header--home .site-nav:not(.is-menu-open) .site-nav__panel-inner {
        background: transparent;
        border-top-color: transparent;
    }
}

/* Form modals (Get in touch / Join us) */
html.form-modal-open {
    overflow: hidden;
}

.form-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.form-modal[hidden] {
    display: none !important;
}

.form-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.form-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.58);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.form-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: min(92vh, 920px);
    overflow: auto;
    border-radius: 14px;
    padding: 28px 24px 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    transform: translateY(12px) scale(0.985);
    transition: transform 0.22s ease;
}

.form-modal.is-open .form-modal__dialog {
    transform: translateY(0) scale(1);
}

.form-modal--contact .form-modal__dialog {
    background: linear-gradient(136.24deg, #b20000 24.16%, #000000 75.54%);
    color: #ffffff;
}

.form-modal--careers .form-modal__dialog {
    background: #ececec;
    color: #111111;
}

html[data-theme="dark"] .form-modal--careers .form-modal__dialog {
    background: #181818;
    color: #e8e8e8;
}

.form-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.form-modal--careers .form-modal__close {
    border-color: rgba(0, 0, 0, 0.16);
    background: rgba(255, 255, 255, 0.7);
    color: #111111;
}

html[data-theme="dark"] .form-modal--careers .form-modal__close {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #e8e8e8;
}

.form-modal__close:hover,
.form-modal__close:focus-visible {
    background: #b20000;
    border-color: #b20000;
    color: #ffffff;
    outline: none;
}

.form-modal__header {
    margin: 0 36px 20px 0;
}

.form-modal__title {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-transform: lowercase;
}

.form-modal__title--contact {
    font-size: clamp(28px, 4.5vw, 42px);
    color: #ffffff;
}

.form-modal__title--careers {
    font-size: 40px;
    color: #111111;
}

html[data-theme="dark"] .form-modal__title--careers {
    color: #e8e8e8;
}

.form-modal__lead {
    margin: 10px 0 0;
}

.form-modal .site-footer__form {
    flex: none;
    margin-left: 0;
    max-width: none;
    width: 100%;
    min-width: 0;
}

.form-modal .careers__form {
    width: 100%;
}

.form-modal__dialog:has(.site-footer__select.is-open) {
    overflow: visible;
}

@media (max-width: 768px) {
    .form-modal .careers__form-grid,
    .careers__form-grid {
        grid-template-columns: 1fr;
    }

    .form-modal__dialog:has(.site-footer__select.is-open) {
        overflow: auto;
    }

    .form-modal .site-footer__select.is-open .site-footer__select-menu {
        max-height: min(220px, 40vh);
        overflow-y: auto;
    }
}

@media (max-width: 640px) {
    .form-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .form-modal__dialog {
        width: 100%;
        max-height: 92dvh;
        max-height: 92vh;
        border-radius: 16px 16px 10px 10px;
        padding: 22px 16px 18px;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .form-modal__title--careers {
        font-size: 32px;
    }

    .form-modal .site-footer__form-grid,
    .form-modal .careers__form-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .form-modal,
    .form-modal__dialog {
        transition: none;
    }
}


html[data-theme="dark"] .page > :is(.page__shell, .hero, .services),
html[data-theme="dark"] .page--about #about:is(.about, .process),
html[data-theme="dark"] .page--services #services:is(.page__shell, .hero, .services),
html[data-theme="dark"] .page--products .products,
html[data-theme="dark"] .page--blogs .blogs {
    background: #0d0d0d;
}

html[data-theme="dark"] .page--services .services__section,
html[data-theme="dark"] .page--services .services__cta {
    background: #0d0d0d;
}

html[data-theme="dark"] .page--services .services__section--alt {
    background: #141414;
}

html[data-theme="dark"] .page--services .services__section h2,
html[data-theme="dark"] .page--services .services__cta-copy h2,
html[data-theme="dark"] .page--services .services__card h3,
html[data-theme="dark"] .page--services .services__process-step h3,
html[data-theme="dark"] .page--services .services__chips li {
    color: #e8e8e8;
}

html[data-theme="dark"] .page--services .services__lead,
html[data-theme="dark"] .page--services .services__card p,
html[data-theme="dark"] .page--services .services__process-step p,
html[data-theme="dark"] .page--services .services__cta-copy p:not(.section__label) {
    color: #b0b0b0;
}

html[data-theme="dark"] .page--services .services__card,
html[data-theme="dark"] .page--services .services__cta-inner {
    background: #1a1a1a;
    border-color: #333333;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .page--services .services__section--alt .services__card {
    background: #1a1a1a;
}

html[data-theme="dark"] .page--services .services__card:hover {
    border-color: #b20000;
    box-shadow: 0 16px 32px rgba(178, 0, 0, 0.2);
}

html[data-theme="dark"] .page--services .services__process-slab {
    opacity: 0.22;
}

html[data-theme="dark"] .page--services .services__process-step {
    background: #1a1a1a;
    border-color: #333333;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .page--services .services__process-step:hover,
html[data-theme="dark"] .page--services .services__process-step:focus-within {
    background-color: #b20000;
    border-color: #b20000;
    box-shadow: 0 16px 32px rgba(178, 0, 0, 0.28);
}

html[data-theme="dark"] .page--services .services__process-step:hover h3,
html[data-theme="dark"] .page--services .services__process-step:hover p,
html[data-theme="dark"] .page--services .services__process-step:hover .services__process-icon,
html[data-theme="dark"] .page--services .services__process-step:focus-within h3,
html[data-theme="dark"] .page--services .services__process-step:focus-within p,
html[data-theme="dark"] .page--services .services__process-step:focus-within .services__process-icon {
    color: #ffffff;
}

html[data-theme="dark"] .page--services .services__chips li {
    background: #1a1a1a;
    border-color: #333333;
}

html[data-theme="dark"] .page--services .services__chips li:hover {
    border-color: #b20000;
    color: #ff6b6b;
}

:is(.about__copy, .hero__copy, .services__copy) button,
.btn {
    margin-top: 20px;
    padding: 16px 24px;
    background-color: #B20000;
    color: #FFFFFF;
    border: 2px solid #B20000;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
    text-transform: lowercase;
    box-sizing: border-box;
}

:is(.about__actions, .hero__actions) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

:is(.about__actions, .hero__actions) .btn {
    margin-top: 0;
}

.btn--secondary {
    background-color: transparent;
    color: #B20000;
    border-color: #B20000;
}

.btn--secondary:hover {
    background-color: #B20000;
    color: #ffffff;
}

.btn:hover {
    background-color: #8f0000;
    border-color: #8f0000;
    color: #ffffff;
}

.btn:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 3px;
}

/* Soft periodic nudge to draw attention to CTAs */
@keyframes ctaAttract {
    0%,
    70%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    74% {
        transform: translate3d(-4px, 0, 0) rotate(-1deg);
    }
    78% {
        transform: translate3d(4px, 0, 0) rotate(1deg);
    }
    82% {
        transform: translate3d(-3px, 0, 0) rotate(-0.6deg);
    }
    86% {
        transform: translate3d(3px, 0, 0) rotate(0.6deg);
    }
    90% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
}

.btn:not(.btn--secondary),
.products__explore-link,
.careers__explore-btn,
.site-footer__form .site-footer__form-button {
    animation: ctaAttract 2.8s ease-in-out infinite;
    transform-origin: center center;
    will-change: transform;
}

.btn--secondary {
    animation: none;
}

.btn:hover,
.btn:focus-visible,
.products__explore-link:hover,
.products__explore-link:focus-visible,
.careers__explore-btn:hover,
.careers__explore-btn:focus-visible,
.site-footer__form .site-footer__form-button:hover,
.site-footer__form .site-footer__form-button:focus-visible {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .products__explore-link,
    .careers__explore-btn,
    .site-footer__form .site-footer__form-button {
        animation: none;
        will-change: auto;
    }
}

/* ===== css/pages/home.css ===== */
/* Hero only ? theme color fill that blends into About */
.site-header--home {
    margin: 0;
    padding: 10px 0 0;
    background: transparent;
    border-radius: 8px 8px 0 0;
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 50;
}

main > div:is(.page__shell, .hero, .services) {
    background: linear-gradient(
        180deg,
        #b20000 0%,
        #b20000 48%,
        #b50808 54%,
        #bb1818 60%,
        #c53030 66%,
        #d05050 72%,
        #dc7878 78%,
        #e8a4a4 84%,
        #f0c8c8 89%,
        #f6e0e0 93%,
        #faf0f0 96%,
        #fcf7f7 98%,
        #ffffff 100%
    );
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 10px 0 0;
    box-sizing: border-box;
    margin: 10px 10px 0;
    border-radius: 8px 8px 0 0;
    position: relative;
    z-index: 1;
}

.site-header--home + main > .hero {
    margin-top: 10px;
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 88px;
    /* Extra bottom room so the red→white fade continues under About */
    padding-bottom: 120px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    /* Single continuous red → pink → white (About stays clear over this) */
    background: linear-gradient(
        180deg,
        #b20000 0%,
        #b20000 36%,
        #b50808 46%,
        #bb1818 54%,
        #c53030 62%,
        #d05050 70%,
        #dc7878 78%,
        #e8a4a4 85%,
        #f0c8c8 90%,
        #f6e0e0 94%,
        #faf0f0 97%,
        #ffffff 100%
    );
}

/* Avoid double top spacing: nav clearance lives on .hero, not extra body margin */
.site-header--home + main > .hero .hero__body {
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
}

.site-header--home + main > .hero .hero__slogan {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    margin-top: auto;
    padding: 12px 24px 8px;
    text-align: center;
    width: 100%;
    background: transparent;
}

.site-header--home + main > .hero .hero__slogan p,
.site-header--home + main > .hero .hero__slogan p span {
    color: #ffffff;
    opacity: 1;
    font-weight: 700;
    text-shadow: none;
}

.site-header--home .site-nav__logo img {
    filter: brightness(0) invert(1);
}

.site-header--home .site-nav__logo a:focus-visible {
    outline-color: #FFFFFF;
}

@media (max-width: 768px) {
    .site-header--home .site-nav__toggle {
        background: transparent;
        border-color: rgba(255, 255, 255, 0.45);
        z-index: 2;
    }

    .site-header--home .site-nav__toggle-icon,
    .site-header--home .site-nav__toggle-icon::before,
    .site-header--home .site-nav__toggle-icon::after {
        background: #ffffff;
    }

    /* Overlay nav on mobile — keeps toggle/menu above the hero */
    .site-header--home {
        position: absolute;
        top: 10px;
        left: 10px;
        right: 10px;
        margin: 0;
        padding: 10px 0 0;
        width: auto;
        max-width: none;
        box-sizing: border-box;
        z-index: 50;
        background: transparent;
        pointer-events: none;
    }

    .site-header--home .site-nav,
    .site-header--home .site-nav__logo,
    .site-header--home .site-nav__toggle,
    .site-header--home .site-nav__panel {
        pointer-events: auto;
    }

    .site-header--home + main > .hero {
        margin-top: 10px;
        margin-bottom: 0;
        border-radius: 8px 8px 0 0;
        min-height: 50vh;
        min-height: 50dvh;
        padding-top: 72px;
        padding-bottom: 96px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .site-header--home + main > .hero .hero__body {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        align-self: stretch;
        gap: 16px;
        margin: 0;
        padding: 8px 20px 4px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .site-header--home + main > .hero .hero__copy {
        text-align: left;
        order: 1;
        width: 100%;
    }

    .site-header--home + main > .hero .hero__copy h1 {
        font-size: clamp(30px, 8.5vw, 40px);
        line-height: 1.1;
        margin: 0 0 12px;
    }

    .site-header--home + main > .hero .hero__copy p {
        margin: 0;
        max-width: 34rem;
    }

    .site-header--home + main > .hero .hero__tagline {
        margin: 0 0 10px;
        font-size: 13px;
        letter-spacing: 0.04em;
    }

    .site-header--home + main > .hero .hero__actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: 18px;
        gap: 10px;
        position: relative;
        z-index: 5;
    }

    .site-header--home + main > .hero .hero__actions .btn {
        flex: 0 1 auto;
        max-width: none;
        text-align: center;
    }

    /* Outline secondary disappears on pale gradient — keep join us readable */
    .site-header--home + main > .hero .hero__actions .btn--secondary {
        background-color: #ffffff;
        color: #b20000;
        border-color: #ffffff;
        box-shadow: inset 0 0 0 2px #b20000;
    }

    .site-header--home + main > .hero .hero__actions .btn--secondary:hover,
    .site-header--home + main > .hero .hero__actions .btn--secondary:focus-visible {
        background-color: #b20000;
        color: #ffffff;
        border-color: #ffffff;
        box-shadow: none;
    }

    .site-header--home + main > .hero .hero__visual {
        order: 2;
        width: 100%;
        text-align: left;
    }

    .site-header--home + main > .hero .hero__visual-inner {
        width: 100%;
        max-width: 340px;
        margin: 0;
    }

    .site-header--home + main > .hero .hero__illustration {
        display: block;
        width: 100%;
        height: auto;
        max-height: min(280px, 58vw);
        object-fit: contain;
        margin: 0;
    }

    .site-header--home + main > .hero .hero__slogan {
        position: static;
        top: auto;
        transform: none;
        margin-top: 12px;
        padding: 0 20px 4px;
        width: 100%;
        text-align: left;
        background: transparent;
    }

    .site-header--home + main > .hero .hero__slogan p {
        font-size: clamp(14px, 3.8vw, 20px);
        letter-spacing: 1.5px;
        gap: 0.65em;
        white-space: nowrap;
        justify-content: flex-start;
        align-items: center;
        opacity: 1;
        color: #ffffff;
        text-shadow: none;
    }

    .site-header--home + main > .hero .hero__slogan p span {
        color: #ffffff;
        opacity: 1;
    }

    .site-header--home .site-nav.is-menu-open .site-nav__panel {
        border-top-color: rgba(255, 255, 255, 0.28);
    }

    .site-header--home .site-nav.is-menu-open .site-nav__panel-inner {
        background: #ffffff;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    }

    html:not([data-theme="dark"]) .site-header--home .site-nav.is-menu-open .site-nav__cluster--left a,
    html:not([data-theme="dark"]) .site-header--home .site-nav.is-menu-open .site-nav__cluster--right a {
        color: #111111;
    }

    html:not([data-theme="dark"]) .site-header--home .site-nav.is-menu-open .site-nav__cluster--left a:hover,
    html:not([data-theme="dark"]) .site-header--home .site-nav.is-menu-open .site-nav__cluster--right a:hover {
        color: #b20000;
    }

    html:not([data-theme="dark"]) .site-header--home .site-nav.is-menu-open .site-nav__cluster--left a.is-active,
    html:not([data-theme="dark"]) .site-header--home .site-nav.is-menu-open .site-nav__cluster--right a.is-active,
    html:not([data-theme="dark"]) .site-header--home .site-nav.is-menu-open .site-nav__cluster--left a[aria-current="page"],
    html:not([data-theme="dark"]) .site-header--home .site-nav.is-menu-open .site-nav__cluster--right a[aria-current="page"] {
        color: #b20000;
        text-decoration-color: #b20000;
    }

    /* Dark mode mobile drawer — solid panel, light links, visible toggle */
    html[data-theme="dark"] .site-header--home .site-nav__toggle {
        background: transparent;
        border-color: rgba(255, 255, 255, 0.55);
    }

    html[data-theme="dark"] .site-header--home .site-nav__toggle-icon,
    html[data-theme="dark"] .site-header--home .site-nav__toggle-icon::before,
    html[data-theme="dark"] .site-header--home .site-nav__toggle-icon::after {
        background: #ffffff;
    }

    html[data-theme="dark"] .site-header--home .site-nav.is-menu-open .site-nav__panel {
        border-top-color: #333333;
        background: #121212;
    }

    html[data-theme="dark"] .site-header--home .site-nav.is-menu-open .site-nav__panel-inner {
        background: #121212;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    }

    html[data-theme="dark"] .site-header--home .site-nav.is-menu-open .site-nav__cluster--left a,
    html[data-theme="dark"] .site-header--home .site-nav.is-menu-open .site-nav__cluster--right a {
        color: #e8e8e8;
        border-bottom-color: #2a2a2a;
    }

    html[data-theme="dark"] .site-header--home .site-nav.is-menu-open .site-nav__cluster--left a:hover,
    html[data-theme="dark"] .site-header--home .site-nav.is-menu-open .site-nav__cluster--right a:hover {
        color: #ff4d4d;
    }

    html[data-theme="dark"] .site-header--home .site-nav.is-menu-open .site-nav__cluster--left a.is-active,
    html[data-theme="dark"] .site-header--home .site-nav.is-menu-open .site-nav__cluster--right a.is-active,
    html[data-theme="dark"] .site-header--home .site-nav.is-menu-open .site-nav__cluster--left a[aria-current="page"],
    html[data-theme="dark"] .site-header--home .site-nav.is-menu-open .site-nav__cluster--right a[aria-current="page"] {
        color: #ff4d4d;
        text-decoration-color: #ff4d4d;
    }

    html[data-theme="dark"] .site-nav__cluster--left a,
    html[data-theme="dark"] .site-nav__cluster--right a {
        border-bottom-color: #2a2a2a;
    }

    html[data-theme="dark"] .site-nav.is-menu-open .site-nav__panel {
        border-top-color: #333333;
    }
}

@media (max-width: 480px) {
    .site-header--home + main > .hero {
        min-height: 50vh;
        min-height: 50dvh;
        padding-top: 68px;
        padding-bottom: 88px;
    }

    .site-header--home + main > .hero .hero__body {
        gap: 14px;
        margin: 0;
        padding: 4px 16px 0;
    }

    .site-header--home + main > .hero .hero__illustration {
        max-height: min(240px, 60vw);
    }

    .site-header--home + main > .hero .hero__actions .btn {
        flex: 0 1 auto;
        max-width: none;
    }

    .site-header--home + main > .hero .hero__slogan {
        margin-top: 10px;
        padding: 0 16px 2px;
    }
}

@media (min-width: 769px) {
    .site-header--home .site-nav__cluster--left a,
    .site-header--home .site-nav__cluster--right a {
        color: #FFFFFF;
    }

    .site-header--home .site-nav__cluster--left a:hover,
    .site-header--home .site-nav__cluster--right a:hover {
        color: rgba(255, 255, 255, 0.85);
    }

    .site-header--home .site-nav__cluster--left a.is-active,
    .site-header--home .site-nav__cluster--right a.is-active,
    .site-header--home .site-nav__cluster--left a[aria-current="page"],
    .site-header--home .site-nav__cluster--right a[aria-current="page"] {
        color: #ffffff;
        text-decoration-color: #ffffff;
    }
}

main > div:is(.page__shell, .hero, .services) :is(.about__body, .hero__body) {
    flex: 0 1 auto;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: clamp(40px, 7vh, 88px);
    margin-bottom: clamp(24px, 4vh, 48px);
    margin-left: auto;
    margin-right: auto;
    padding-top: clamp(24px, 4vh, 48px);
    padding-inline: clamp(1.5rem, 4vw, 2.5rem);
    min-height: 0;
    width: 100%;
    max-width: 1300px;
    box-sizing: border-box;
}

main > div:is(.page__shell, .hero, .services) .site-nav__cluster--left a,
main > div:is(.page__shell, .hero, .services) .site-nav__cluster--right a {
    color: #FFFFFF;
}

main > div:is(.page__shell, .hero, .services) .site-nav__cluster--left a:hover,
main > div:is(.page__shell, .hero, .services) .site-nav__cluster--right a:hover {
    color: rgba(255, 255, 255, 0.85);
}

main > div:is(.page__shell, .hero, .services) .site-nav__logo img {
    filter: brightness(0) invert(1);
}

main > div:is(.page__shell, .hero, .services) .site-nav__logo a:focus-visible {
    outline-color: #FFFFFF;
}

main > div:is(.page__shell, .hero, .services) :is(.about__copy, .hero__copy, .services__copy) {
    color: #FFFFFF;
}

main > div:is(.page__shell, .hero, .services) :is(.about__copy, .hero__copy, .services__copy) h1 {
    color: #FFFFFF;
}

main > div:is(.page__shell, .hero, .services) :is(.about__copy, .hero__copy, .services__copy) p {
    color: rgba(255, 255, 255, 0.88);
}

main > div:is(.page__shell, .hero, .services) :is(.about__copy, .hero__copy, .services__copy) :is(.tagline, .hero__tagline) {
    color: #FFFFFF;
    opacity: 0.95;
}

main > div:is(.page__shell, .hero, .services) .btn {
    background-color: #FFFFFF;
    color: #B20000;
    border-color: #FFFFFF;
    font-weight: 600;
}

main > div:is(.page__shell, .hero, .services) .btn:hover {
    background-color: #f5f5f5;
    border-color: #f5f5f5;
    color: #8f0000;
}

main > div:is(.page__shell, .hero, .services) .btn--secondary {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

main > div:is(.page__shell, .hero, .services) .btn--secondary:hover {
    background-color: #FFFFFF;
    color: #B20000;
    border-color: #FFFFFF;
}

main > div:is(.page__shell, .hero, .services) .btn:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 3px;
}

@media (min-width: 769px) {
    main > div:is(.page__shell, .hero, .services) :is(.about__copy, .hero__copy, .services__copy) {
        flex: 0 0 38%;
        padding-left: 0;
    }

    main > div:is(.page__shell, .hero, .services) :is(.banner-visual, .hero__visual) {
        flex: 1 1 60%;
        text-align: right;
        padding-right: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    main > div:is(.page__shell, .hero, .services) :is(.about__visual-inner, .hero__visual-inner) {
        width: 100%;
        max-width: min(100%, 42rem);
        margin-left: auto;
        margin-right: 0;
        position: relative;
        left: 0;
    }

    main > div:is(.page__shell, .hero, .services) :is(.about__illustration, .hero__illustration) {
        width: 100%;
        max-width: 100%;
        max-height: clamp(340px, 52vh, 620px);
        height: auto;
        object-fit: contain;
    }

    main > div:is(.page__shell, .hero, .services) .about__rectangle {
        width: 58%;
    }
}

:is(.about, .process) {
    background: linear-gradient(180deg, #FFFFFF 0%, #F0F0F0 100%);
    margin: 10px;
    padding: 50px 0;
    border-radius: 8px;
    /* optional rounded corners */

}

/* Process keeps its gradient; soft fade into Products at the bottom */
#process:is(.about, .process) {
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
    /* Equal visual gap above heading and below steps */
    padding: 140px 0;
}

@media (max-width: 768px) {
    #process:is(.about, .process) {
        padding: 72px 0;
    }
}

#process:is(.about, .process)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    /* Short edge blend only — must not eat into the 140px spacing */
    height: 32px;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        180deg,
        rgba(240, 240, 240, 0) 0%,
        rgba(255, 255, 255, 0.55) 50%,
        #ffffff 100%
    );
}

#process :is(.our-process, .process__body) {
    position: relative;
    z-index: 1;
    padding-bottom: 0;
}

/* Slogan on the hero ? About gradient merge (mid fade) */
main > div:is(.page__shell, .hero, .services) :is(.section-slogan, .hero__slogan) {
    position: absolute;
    left: 0;
    right: 0;
    top: 76%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0 24px;
    background: transparent;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
    pointer-events: none;
}

:is(.section-slogan, .hero__slogan) p {
    margin: 0;
    color: #ffffff;
    font-size: clamp(22px, 3.2vw, 40px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    word-spacing: 0.85em;
    opacity: 0.9;
    pointer-events: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.85em;
    line-height: 1.2;
    white-space: nowrap;
}

:is(.section-slogan, .hero__slogan) p span {
    display: inline;
}

/* About sits on the hero fade — top stays clear so ONE gradient blends through */
#about:is(.about, .process) {
    position: relative;
    z-index: 2;
    margin: -120px 10px 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 100px,
        rgba(255, 255, 255, 0.28) 130px,
        rgba(255, 255, 255, 0.7) 155px,
        #ffffff 180px,
        #ffffff 42%,
        #fbfbfb 62%,
        #f7f7f7 80%,
        #f0f0f0 100%
    );
    padding-top: clamp(132px, 16vh, 168px);
    padding-bottom: clamp(48px, 8vh, 88px);
}

#about:is(.about, .process) > :is(.about__body, .hero__body) {
    margin-top: 0;
}

/* Services keeps solid white; soft top overlay bridges from About's #f0f0f0 */
#services:is(.page__shell, .hero, .services) {
    margin: 0 10px 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: #ffffff;
    /* Bottom gap owned by Process (140px) — do not stack */
    padding: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#services:is(.page__shell, .hero, .services)::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: clamp(80px, 16vh, 160px);
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        180deg,
        #f0f0f0 0%,
        rgba(240, 240, 240, 0.55) 40%,
        rgba(255, 255, 255, 0) 100%
    );
}

#services:is(.page__shell, .hero, .services) > .services,
#services:is(.page__shell, .hero, .services) > .services__body {
    position: relative;
    z-index: 1;
    padding-top: clamp(56px, 10vh, 96px);
    /* Bottom gap owned by Process (140px) — do not stack */
    padding-bottom: 0;
}


/* Hero copy ? soft rise + blur dissolve (staggered) */
@keyframes heroCopyIn {
    from {
        opacity: 0;
        transform: translate3d(0, 1.5rem, 0);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

@keyframes heroTaglineIn {
    from {
        opacity: 0;
        transform: translate3d(0, 0.75rem, 0);
        filter: blur(6px);
    }
    to {
        opacity: 0.95;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translate3d(0, 2.25rem, 0);
        filter: blur(14px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

:is(.about__copy, .hero__copy, .services__intro) > :is(.tagline, .hero__tagline),
:is(.about__copy, .hero__copy, .services__intro) > h1,
:is(.about__copy, .hero__copy, .services__intro) > h2,
:is(.about__copy, .hero__copy, .services__intro) > span,
:is(.about__copy, .hero__copy, .services__intro) > p:not(:is(.tagline, .hero__tagline)),
:is(.about__copy, .hero__copy, .services__intro) > :is(.about__actions, .hero__actions),
:is(.about__copy, .hero__copy, .services__intro) > .services__copy {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hero plays on load */
:is(.page__shell, .hero, .services) > :is(.about__body, .hero__body) > :is(.about__copy, .hero__copy, .services__intro) > :is(.tagline, .hero__tagline) {
    animation-name: heroTaglineIn;
    animation-duration: 0.8s;
    animation-delay: 0.1s;
}

:is(.page__shell, .hero, .services) > :is(.about__body, .hero__body) > :is(.about__copy, .hero__copy, .services__intro) > h1 {
    animation-name: heroTitleIn;
    animation-duration: 1s;
    animation-delay: 0.22s;
}

:is(.page__shell, .hero, .services) > :is(.about__body, .hero__body) > :is(.about__copy, .hero__copy, .services__intro) > p:not(:is(.tagline, .hero__tagline)) {
    animation-name: heroCopyIn;
    animation-duration: 0.9s;
    animation-delay: 0.4s;
}

:is(.page__shell, .hero, .services) > :is(.about__body, .hero__body) > :is(.about__copy, .hero__copy, .services__intro) > :is(.about__actions, .hero__actions) {
    animation-name: heroCopyIn;
    animation-duration: 0.85s;
    animation-delay: 0.55s;
}

/* About plays when scrolled into view (.is-in) */
#about :is(.about__copy, .hero__copy, .services__intro).is-in > span {
    animation-name: heroTaglineIn;
    animation-duration: 0.8s;
    animation-delay: 0.1s;
}

#about :is(.about__copy, .hero__copy, .services__intro).is-in > :is(h1, h2) {
    animation-name: heroTitleIn;
    animation-duration: 1s;
    animation-delay: 0.22s;
}

#about :is(.about__copy, .hero__copy, .services__intro).is-in > p {
    animation-name: heroCopyIn;
    animation-duration: 0.9s;
    animation-delay: 0.4s;
}

#about :is(.about__copy, .hero__copy, .services__intro).is-in > :is(.about__actions, .hero__actions) {
    animation-name: heroCopyIn;
    animation-duration: 0.85s;
    animation-delay: 0.55s;
}

/* Services intro plays when scrolled into view (.is-in) */
#services :is(.about__copy, .hero__copy, .services__intro).is-in > .section__label {
    animation-name: heroTaglineIn;
    animation-duration: 0.8s;
    animation-delay: 0.1s;
}

#services :is(.about__copy, .hero__copy, .services__intro).is-in > :is(h1, h2) {
    animation-name: heroTitleIn;
    animation-duration: 1s;
    animation-delay: 0.22s;
}

#services :is(.about__copy, .hero__copy, .services__intro).is-in > .services__copy {
    animation-name: heroCopyIn;
    animation-duration: 0.9s;
    animation-delay: 0.4s;
}

#services :is(.about__copy, .hero__copy, .services__intro).is-in > :is(.about__actions, .hero__actions) {
    animation-name: heroCopyIn;
    animation-duration: 0.85s;
    animation-delay: 0.55s;
}

@media (prefers-reduced-motion: reduce) {
    :is(.about__copy, .hero__copy, .services__intro) > :is(.tagline, .hero__tagline),
    :is(.about__copy, .hero__copy, .services__intro) > h1,
    :is(.about__copy, .hero__copy, .services__intro) > h2,
    :is(.about__copy, .hero__copy, .services__intro) > span,
    :is(.about__copy, .hero__copy, .services__intro) > p:not(:is(.tagline, .hero__tagline)),
    :is(.about__copy, .hero__copy, .services__intro) > :is(.about__actions, .hero__actions),
    :is(.about__copy, .hero__copy, .services__intro) > .services__copy {
        opacity: 1;
        filter: none;
        transform: none;
        animation: none;
    }

    :is(.about__copy, .hero__copy, .services__intro) > :is(.tagline, .hero__tagline),
    #about :is(.about__copy, .hero__copy, .services__intro) > span,
    #services :is(.about__copy, .hero__copy, .services__intro) > .section__label {
        opacity: 0.95;
    }
}

@media (min-width: 769px) {
    :is(.about__copy, .hero__copy, .services__copy) {
        flex: 0 0 42%;
    }

    :is(.banner-visual, .hero__visual) {
        flex: 1 1 58%;
    }
}

:is(.about__copy, .hero__copy, .services__copy) h1 {
    margin: 0;
    font-size: 50px;
    line-height: 50px;
    letter-spacing: -1.68px;
}

:is(.about__copy, .hero__copy, .services__copy) p {
    color: #808080;
}

:is(.about__copy, .hero__copy, .services__copy) :is(.tagline, .hero__tagline) {
    color: #B20000;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
}

.site-nav__logo a {
    display: inline-block;
    line-height: 0;
}

.site-nav__logo a:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 4px;
    border-radius: 4px;
}

:is(.about__copy, .services__copy) :is(h1, h2) {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: normal;
}

:is(.about__copy, .services__copy) span {
    color: #B20000;
    margin: 0;
    font-weight: 500;
    font-size: 14px;
}

:is(.about__copy, .services__copy) p {
    color: #000000;
}

#about :is(.about__copy, .services__copy) > p:not(:is(.tagline, .hero__tagline)) {
    text-align: justify;
}

/* About layout ? live-site hero visual on the right */
#about .about__body {
    align-items: center;
    position: relative;
}

#about :is(.about__copy, .services__copy) {
    flex: 1;
    position: relative;
    z-index: 3; /* keep ABOUT tag above hero fade overlap */
}

#about :is(.about__copy, .services__copy) > span {
    display: inline-block;
    position: relative;
    z-index: 3;
    color: #B20000;
}

#about .about__visual {
    flex: 1;
    min-width: 0;
    text-align: right;
}

#about .about__visual-inner {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
}

#about .about__visual :is(.about__illustration, .hero__illustration) {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translate3d(72px, 0, 0);
    animation: none;
    pointer-events: none;
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

#about .about__visual .about__rectangle {
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 1;
    width: 54%;
    height: auto;
    opacity: 1;
    transform: translate3d(0, -50%, 0);
    transform-origin: center bottom;
    clip-path: inset(100% 0 0 0);
    animation: none;
    pointer-events: none;
    transition: clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: clip-path;
}

#about .about__visual-inner.is-bar-in .about__rectangle {
    clip-path: inset(0 0 0 0);
}

#about .about__visual-inner.is-cards-in :is(.about__illustration, .hero__illustration) {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    #about .about__visual .about__rectangle {
        clip-path: none;
        transition: none;
        will-change: auto;
    }

    #about .about__visual :is(.about__illustration, .hero__illustration) {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

@media (min-width: 769px) {
    #about :is(.about__copy, .services__copy) {
        flex: 0 0 42%;
        padding-left: clamp(1rem, 4vw, 2rem);
        padding-right: 0;
    }

    #about .about__visual {
        flex: 1 1 58%;
        padding-right: clamp(1rem, 4vw, 2rem);
        padding-left: 0;
    }

    #about .about__visual-inner {
        width: 100%;
        max-width: 100%;
    }

    #about .about__visual .about__rectangle {
        width: 54%;
    }
}

/* Hero visual ? matches former banner-image footprint (1776px master) */
:is(.banner-visual, .hero__visual) {
    flex: 1;
    min-width: 0;
    text-align: right;
}

:is(.about__visual-inner, .hero__visual-inner) {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
}

:is(.about__illustration, .hero__illustration) {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translate3d(28px, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    animation: heroIllustrationIn 1.35s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
    will-change: opacity, transform;
    pointer-events: none;
}

.about__rectangle,
.services__intro-rectangle {
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 1;
    width: 54%;
    height: auto;
    opacity: 0;
    transform: translate3d(72px, -50%, 0);
    transform-origin: center right;
    animation: heroRectangleIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
    pointer-events: none;
}

@keyframes heroRectangleIn {
    from {
        opacity: 0;
        transform: translate3d(72px, -50%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, -50%, 0);
    }
}

@keyframes heroIllustrationIn {
    0% {
        opacity: 0;
        transform: translate3d(28px, 0, 0);
    }
    40% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about__rectangle,
    .services__intro-rectangle {
        animation: none;
        opacity: 1;
        transform: translate3d(0, -50%, 0);
    }

    :is(.about__illustration, .hero__illustration) {
        animation: none;
        opacity: 1;
        transform: none;
        will-change: auto;
    }
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Keep footer vertical padding when .container is also applied */
.site-footer .container.site-footer__inner,
.site-footer .site-footer__inner.container {
    padding: 56px 20px 28px;
}

.site-footer:has(.site-footer__cta) .container.site-footer__inner,
.site-footer:has(.site-footer__cta) .site-footer__inner.container {
    padding-top: 72px;
    padding-bottom: 28px;
}

@media (max-width: 768px) {
    .site-footer .container.site-footer__inner,
    .site-footer .site-footer__inner.container {
        padding: 36px 16px 18px;
    }

    .site-footer:has(.site-footer__cta) .container.site-footer__inner,
    .site-footer:has(.site-footer__cta) .site-footer__inner.container {
        padding-top: 48px;
        padding-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .site-footer .container.site-footer__inner,
    .site-footer .site-footer__inner.container {
        padding: 28px 14px 14px;
    }

    .site-footer:has(.site-footer__cta) .container.site-footer__inner,
    .site-footer:has(.site-footer__cta) .site-footer__inner.container {
        padding-top: 40px;
        padding-bottom: 14px;
    }
}

.section__label {
    color: #B20000;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
}

/* What We Do Section */
.what-we-do {
    margin: 80px 0;
    /* background-color: #F9F9F9; */
}

.section__header :is(h1, h2) {
    font-size: clamp(28px, 6vw, 40px);
    font-weight: 700;
    margin: 0 0 40px 0;
}

.section__header :is(h1, h2):has(+ .services__copy) {
    margin-bottom: 16px;
}

/* Match About text column width + typography */
#services .services__copy {
    flex: none;
    width: 100%;
    margin: 0 0 40px;
}

#services .services__copy > p:not(:is(.tagline, .hero__tagline)) {
    text-align: justify;
}

@media (min-width: 769px) {
    #services .services__copy {
        width: 42%;
        max-width: none;
    }
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* About section cards (what we do) */
.what-we-do .service-card {
    border: 2px solid #B20000;
    border-radius: 20px;
    padding: 24px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.what-we-do .service-card:hover {
    background-color: #B20000;
    border-color: #B20000;
    box-shadow: 0 12px 28px rgba(178, 0, 0, 0.2);
}

.what-we-do .service-card:hover h3,
.what-we-do .service-card:hover p {
    color: #ffffff;
}

.what-we-do .service-card:hover .services__icon svg [fill="#B20000"] {
    fill: #ffffff;
}

.what-we-do .service-card:hover .services__icon svg [stroke="#B20000"] {
    stroke: #ffffff;
}

.what-we-do .services__icon {
    align-self: flex-end;
}

.what-we-do .service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: capitalize;
    transition: color 0.3s ease;
}

.what-we-do .service-card p {
    color: #000000;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Our services section cards ? directional smooth reveals */
.services__grid .services__item {
    padding: 24px;
    border-radius: 20px;
    border: 2px solid #d3d3d3;
    background: #F0F0F0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    opacity: 0;
    filter: blur(2px);
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.35s ease,
        border-color 0.3s ease,
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity, filter;
}

.services__grid .services__item[data-reveal-from="left"] {
    transform: translate3d(-56px, 0, 0);
}

.services__grid .services__item[data-reveal-from="right"] {
    transform: translate3d(56px, 0, 0);
}

.services__grid .services__item[data-reveal-from="top"] {
    transform: translate3d(0, -48px, 0);
}

.services__grid .services__item[data-reveal-from="bottom"] {
    transform: translate3d(0, 48px, 0);
}

.services__grid .services__item.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .services__grid .services__item,
    .services__grid .services__item[data-reveal-from="left"],
    .services__grid .services__item[data-reveal-from="right"],
    .services__grid .services__item[data-reveal-from="top"],
    .services__grid .services__item[data-reveal-from="bottom"] {
        opacity: 1;
        transform: none;
        filter: none;
        transition:
            background-color 0.3s ease,
            color 0.3s ease,
            box-shadow 0.3s ease,
            border-color 0.3s ease;
    }
}

.services__grid .services__item svg {
    width: 50px;
    height: 50px;
}

.services__grid .services__item svg [fill="#B20000"] {
    fill: #808080;
    transition: fill 0.3s ease;
}

.services__grid .services__item svg [stroke="#B20000"] {
    stroke: #808080;
    transition: stroke 0.3s ease;
}

.services__grid .services__item h3 {
    color: #000000;
    transition: color 0.3s ease;
}

.services__grid .services__item .services__list li {
    transition: color 0.3s ease;
}

.services__grid .services__item:hover {
    background-color: #B20000;
    border-color: #B20000;
    box-shadow: 0 12px 28px rgba(178, 0, 0, 0.2);
}

.services__grid .services__item:hover h3,
.services__grid .services__item:hover .services__list li {
    color: #ffffff;
}

.services__grid .services__item:hover svg rect[fill="white"] {
    fill: #ffffff;
    stroke: #ffffff;
    stroke-width: 1;
}

.services__grid .services__item:hover svg [fill="#B20000"] {
    fill: none;
    stroke: #b20000;
    stroke-width: 1;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.services__grid .services__item:hover svg :not(rect)[stroke="#B20000"] {
    fill: none;
    stroke: #b20000;
}

/* Our Process Section */

@keyframes processSlideIn {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes processBannerSlide {
    from {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* Layout */
:is(.process-container, .process__container) {
    display: flex;
    align-items: stretch;
    gap: 0;
}

:is(.process-main, .process__main) {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

:is(.process-items, .process__items) {
    /* Clip at the about__body?s right edge so steps emerge from there */
    overflow: hidden;
    flex: 1;
    min-width: 0;
    padding-top: 40px;
    padding-left: 40px;
    padding-bottom: 0;
}

/* Keep overflow:hidden while step 5 animates so it still clips at the
   about__body edge. Unlock only after the sequence completes. */
:is(.process-container, .process__container).is-complete :is(.process-items, .process__items) {
    overflow: visible;
}

/* Space below steps so about__body overhangs past step 5 —
   keep this inside content; section padding stays equal top/bottom */
:is(.process-main, .process__main)::after {
    content: "";
    display: block;
    height: 40px;
    pointer-events: none;
    flex-shrink: 0;
}

:is(.process-items, .process__items)::after {
    content: none;
    display: none;
}

/* 5th fade line ? outside :is(.process-items, .process__items) so overflow:hidden cannot clip it */
:is(.process-end-line, .process__end-line) {
    display: block;
    width: calc(100% - 40px);
    max-width: 960px;
    height: 1px;
    margin: 12px 0 0 40px;
    border: 0;
    padding: 0;
    background: linear-gradient(90deg, #B20000 0%, rgba(178, 0, 0, 0.12) 100%);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s ease, opacity 0.35s ease;
    pointer-events: none;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

:is(.process-container, .process__container).is-complete :is(.process-end-line, .process__end-line),
:is(.process-end-line, .process__end-line).is-visible {
    opacity: 1 !important;
    transform: scaleX(1) !important;
}

:is(.process-slide, .process__slide) {
    opacity: 0;
    transform: translate3d(-100%, 0, 0);
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    pointer-events: none;
}

/* Reserve full column height as soon as the sequence starts so APPROACH
   is full size immediately (does not grow with each step). */
:is(.process-container, .process__container).is-started :is(.process-slide, .process__slide) {
    max-height: none;
    margin-bottom: 4px;
    overflow: visible;
}

:is(.process-slide, .process__slide).is-active {
    visibility: visible;
    max-height: none;
    margin-bottom: 4px;
    overflow: visible;
    pointer-events: auto;
    animation: processSlideIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

:is(.process-container, .process__container).is-complete :is(.process-slide, .process__slide).is-active {
    max-height: none;
    overflow: visible;
}

:is(.process-container, .process__container).is-started :is(.steps-banner, .process__steps-banner) {
    animation: processBannerSlide 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

:is(.process-container, .process__container):not(.is-started) :is(.steps-banner, .process__steps-banner) {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
}

:is(.process-divider, .process__divider) {
    border: 0;
    height: 1px;
    margin: 12px 0 18px;
    padding: 0;
    display: block;
    width: 100%;
    max-width: 100%;
    background-color: transparent;
    background-image: linear-gradient(90deg, #B20000 0%, rgba(178, 0, 0, 0.12) 100%);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 0% 1px;
    opacity: 0;
    /* Avoid transform ? conflicts with parent processSlideIn translate and can hide lines */
    transform: none;
    transition: background-size 0.45s ease, opacity 0.35s ease;
    flex-shrink: 0;
}

:is(.process-slide, .process__slide).is-active :is(.process-divider, .process__divider),
:is(.process-container, .process__container).is-complete :is(.process-slide, .process__slide).is-active :is(.process-divider, .process__divider) {
    opacity: 1;
    background-size: 100% 1px;
    transform: none;
}

:is(.process-slide, .process__slide):is(.process-content5, .process__content5).is-active {
    max-height: none;
    overflow: visible;
    margin-bottom: 0;
    padding-bottom: 0;
}

:is(.process-slide, .process__slide).is-active :is(.process-image, .process__image) img {
    animation: processSlideIn 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.12s both;
}

@media (prefers-reduced-motion: reduce) {
    :is(.process-slide, .process__slide) {
        opacity: 1;
        transform: none;
        visibility: visible;
        max-height: none;
        overflow: visible;
        pointer-events: auto;
    }

    :is(.process-slide, .process__slide).is-active {
        animation: none;
    }

    :is(.process-container, .process__container):not(.is-started) :is(.steps-banner, .process__steps-banner),
    :is(.process-container, .process__container).is-started :is(.steps-banner, .process__steps-banner) {
        opacity: 1;
        animation: none;
        clip-path: none;
    }

    :is(.process-slide, .process__slide) :is(.process-divider, .process__divider) {
        opacity: 1;
        background-size: 100% 1px;
        transform: none;
    }

    :is(.process-end-line, .process__end-line) {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Approach about__body ? in-flow so the original clip-path reveal still works */
:is(.process-steps, .process__steps) {
    flex: 0 0 200px;
    width: 200px;
    align-self: stretch;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

:is(.steps-banner, .process__steps-banner) {
    flex: 1 1 auto;
    width: 200px;
    align-self: stretch;
    background: linear-gradient(180deg, #1a1a1a 0%, #1a1a1a 60%, #B20000 100%);
    color: white;
    writing-mode: sideways-lr;
    text-orientation: mixed;
    padding: 40px 10px;
    font-size: 100px;
    box-sizing: border-box;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Right content */
:is(.process-items, .process__items) :is(.process-content1, .process__content1) {
    max-width: 450px;
    width: 100%;
  }
  
  :is(.process-items, .process__items) :is(.process-content2, .process__content2) {
    max-width: 570px;
    width: 100%;
  }
  
  :is(.process-items, .process__items) :is(.process-content3, .process__content3) {
    max-width: 680px;
    width: 100%;
  }
  
  :is(.process-items, .process__items) :is(.process-content4, .process__content4) {
    max-width: 830px;
    width: 100%;
  }

  :is(.process-items, .process__items) :is(.process-content5, .process__content5) {
    max-width: 960px;
    width: 100%;
  }

/* Each item */
:is(.process-item, .process__item) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Left content (number + text) */
:is(.left, .process__lead) {
    display: flex;
    flex-direction: column;
}

/* Number */
:is(.process-number, .process__number) {
    font-size: 36px;
    font-weight: bold;
    color: #B20000;
}

/* Text */
:is(.process-content, .process__content) h3 {
    margin: 8px 0 4px;
    font-size: 18px;
}

:is(.process-content, .process__content) p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Image */
:is(.process-image, .process__image) img {
    display: block;
}

:is(.process-image, .process__image) svg {
    width: 120px;
    height: 120px;
    text-align: right;
}

@media (max-width: 768px) {
    :is(.process-item, .process__item) {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    :is(.process-number, .process__number) {
        font-size: clamp(28px, 8vw, 36px);
    }

    :is(.process-image, .process__image) {
        align-self: flex-end;
    }

    :is(.process-image, .process__image) svg {
        width: clamp(72px, 22vw, 120px);
        height: clamp(72px, 22vw, 120px);
    }
}

/* ===== css/pages/products.css ===== */
/* Products Grid Section — equal 140px top/bottom (same as FAQ)
   Top gap comes from Process bottom 140px — do not stack */
.products {
    margin: 0 10px 10px;
    padding: 0 0 140px;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
}

.products__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: .5fr;
    gap: 20px;
    margin-top: 40px;
}

.products__card {
    border-radius: 12px;
    padding: 24px;
    border: 2px solid #4E3162;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}



/* Title Box - First card (Trace brand tab) */
.products__card--title {
    grid-column: 1;
    grid-row: 1;
    background: #4E3162;
    border: 2px solid #4E3162;
    color: #ffffff;
}

.products__card--title .products__header {
    margin: auto;
    color: #ffffff;
}

.products__card--title .products__header svg {
    color: #ffffff;
    display: block;
    max-width: 100%;
    height: auto;
}

/* Description Box - Second card */
.products__card--description {
    grid-column: 1;
    grid-row: 2;
}

.products__card--description .products__description {
    margin: 0;
    color: #4E3162;
    font-size: 16px;
    line-height: 1.7;
}

/* Features Box - Third card */
.products__card--features {
    grid-column: 1;
    grid-row: 3;
}

.products__card--features .products__features ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.products__card--features .products__features li {
    color: #4E3162;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: none;
}

/* Large image - Right side spanning 3 rows */
.products__card--large {
    grid-column: 2;
    grid-row: 1 / span 3;
    border: unset !important;
    padding: 0;

}

/* .products__card--large .products__image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
} */

.products__card--large .products__image img {
    width: 100%;
    height: 540px;
}

/* Explore Button - Full width at bottom */
.products__card--explore {
    grid-column: 1 / -1;
    grid-row: 4;
    background: linear-gradient(135deg, #4a3a6b 0%, #6b4c8a 100%);
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}



.products__explore-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: clamp(22px, 7vw, 36px);
    font-weight: 600;
    width: 100%;
    transition: gap 0.3s ease;
}

.products__explore-link:hover,
.products__explore-link:focus-visible {
    gap: 24px;
}

.products__card--explore .products__explore-link {
    animation: ctaAttract 2.8s ease-in-out infinite;
    transform-origin: center center;
}

.products__explore-link svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

/* Old explore button styles (for any other uses) */

.services {
    padding: 40px 0 0;
}

.services__grid--two {
    gap: 40px;
}

.services__view-more {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
}

.services__view-more .btn {
    margin-top: 0;
}

.services__grid .services__list li {
    padding: 8px 0;
    color: #000000;
}

@media (max-width: 1024px) {
    .products__grid {
        grid-template-columns: 1fr;
    }

    .products__card--title,
    .products__card--description,
    .products__card--features {
        grid-column: 1;
    }

    .products__card--large {
        grid-column: 1;
        grid-row: auto;
    }

    .products__card--explore {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .services__grid {
        grid-template-columns: 1fr;
    }

    .products__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .products__card--title,
    .products__card--description,
    .products__card--features,
    .products__card--large,
    .products__card--explore {
        grid-column: 1;
        grid-row: auto;
    }

    :is(.process-container, .process__container) {
        flex-direction: column;
    }

    :is(.process-main, .process__main) {
        width: 100%;
    }

    :is(.process-items, .process__items) {
        padding-top: 0;
        padding-left: 0;
        padding-bottom: 0;
        overflow: visible;
    }

    :is(.process-main, .process__main)::after {
        height: 24px;
    }

    :is(.process-end-line, .process__end-line) {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    :is(.process-steps, .process__steps) {
        position: static;
        width: 100%;
        height: auto;
        flex: none;
        align-self: stretch;
        display: block;
    }

    :is(.steps-banner, .process__steps-banner) {
        position: static;
        top: auto;
        bottom: auto;
        left: auto;
        flex: none;
        align-self: auto;
        writing-mode: horizontal-tb;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 20px;
        font-size: 40px;
    }

    .faq__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq__title {
        font-size: 32px;
    }

    .faq__question {
        font-size: 16px;
    }

    .site-footer__inner {
        padding: 36px 16px 18px;
    }

    .site-footer .site-footer__inner {
        padding: 36px 16px 18px;
    }

    .site-footer:has(.site-footer__cta) .site-footer__inner {
        padding-top: 48px;
        padding-bottom: 18px;
    }

    .site-footer__cta {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
    }

    .site-footer__cta-text {
        flex: 1 1 auto;
        max-width: none;
        min-width: 0;
    }

    .site-footer__heading {
        font-size: clamp(34px, 10vw, 52px);
        letter-spacing: -0.6px;
        line-height: 1.02;
        max-width: none;
    }

    .site-footer__review {
        max-width: none;
        margin-top: 4px;
    }

    .site-footer__review-quote {
        font-size: 14px;
        min-height: 0;
    }

    .site-footer__form {
        max-width: none;
        margin-left: 0;
        min-width: 0;
        width: 100%;
    }

    .site-footer__form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .site-footer__field input:not([type="checkbox"]):not([type="radio"]),
    .site-footer__field select,
    .site-footer__field textarea,
    .site-footer__select-trigger {
        font-size: 16px; /* avoid iOS zoom on focus */
    }

    .site-footer__form .site-footer__form-button {
        float: none;
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin-top: 20px;
        padding: 14px 20px;
        text-align: center;
    }

    .site-footer__consent-label {
        gap: 10px;
        font-size: 13px;
        line-height: 1.45;
    }

    .site-footer__nav-row {
        flex-direction: column;
        gap: 28px;
        align-items: stretch;
    }

    .site-footer__nav-row--legal {
        padding-top: 8px;
    }

    .site-footer__slogan {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .site-footer__slogan span {
        font-size: clamp(28px, 9vw, 44px);
    }

    .site-footer__columns {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 24px;
        max-width: none;
        min-width: 0;
        width: 100%;
    }

    .site-footer__brand {
        margin: 24px 0 16px;
    }

    .site-footer__brand-logo {
        width: min(100%, 240px);
        max-width: 100%;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 0;
    }

    .site-footer__copy {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .site-footer__social {
        flex-wrap: wrap;
        gap: 10px;
    }

    .site-footer__rule {
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .site-footer {
        margin: 8px 8px 4px;
        border-radius: 8px;
    }

    .site-footer .site-footer__inner,
    .site-footer__inner {
        padding: 28px 14px 14px;
    }

    .site-footer:has(.site-footer__cta) .site-footer__inner {
        padding-top: 40px;
        padding-bottom: 14px;
    }

    .site-footer__heading {
        font-size: clamp(30px, 9.5vw, 42px);
        line-height: 1.02;
    }

    .site-footer__columns {
        row-gap: 22px;
    }

    .site-footer__brand-logo {
        width: min(100%, 200px);
    }

    .site-footer__social-link {
        width: 36px;
        height: 36px;
    }

    .site-footer__social-link svg {
        width: 26px;
        height: 26px;
    }
}


.page--products .products {
    margin: 0;
    padding: 24px 0 140px;
    border-radius: 0;
}

/* ===== css/pages/blogs.css ===== */
/* Blogs section — equal 140px top/bottom (same as Products / FAQ) */
.blogs {
    background: #ffffff;
    padding: 140px 0;
}

.blogs__inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.blogs__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.blogs__header-text {
    max-width: 36rem;
    min-width: 0;
}

.blogs__label {
    margin-bottom: 12px;
}

.blogs__title {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.8px;
    text-transform: lowercase;
    color: #111111;
}

.blogs__lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: #000000;
}

.blogs__nav .blogs__nav-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #b20000;
    outline: none;
    transition: color 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.blogs__nav .blogs__nav-btn:hover:not(:disabled),
.blogs__nav .blogs__nav-btn:focus-visible:not(:disabled) {
    color: #8f0000;
}

.blogs__nav .blogs__nav-btn:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 3px;
}

.blogs__nav .blogs__nav-btn:disabled {
    color: #c4c4c4;
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
}

.blogs__viewport {
    container-type: inline-size;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.blogs__viewport::-webkit-scrollbar {
    display: none;
}

.blogs__track {
    display: flex;
    gap: 20px;
    width: max-content;
    min-width: 100%;
}

.blogs__item {
    /* Match previous 3-column card width; do not shrink when a 4th card is added */
    flex: 0 0 calc((100cqi - 40px) / 3);
    min-width: 0;
}

.blogs__item-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.blogs__item-link:hover,
.blogs__item-link:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(178, 0, 0, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.blogs__item-link:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 3px;
}

.blogs__item-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ececec;
}

.blogs__item-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.blogs__item-link:hover .blogs__item-media img,
.blogs__item-link:focus-visible .blogs__item-media img {
    transform: scale(1.04);
}

.blogs__item-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 20px;
}

.blogs__item-date {
    display: block;
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b20000;
}

.blogs__item-title {
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: #111111;
}

.blogs__item-excerpt {
    margin: 0 0 20px;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #000000;
}

.blogs__item-cta {
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: lowercase;
    color: #b20000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blogs__view-more {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
}

.blogs__view-more .btn {
    margin-top: 0;
}

@media (max-width: 900px) {
    .blogs__header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .blogs__item {
        flex-basis: min(340px, 85cqi);
    }
}

@media (prefers-reduced-motion: reduce) {
    .blogs__viewport {
        scroll-behavior: auto;
    }

    .blogs__item-link,
    .blogs__item-media img {
        transition: none;
    }

    .blogs__item-link:hover,
    .blogs__item-link:focus-visible {
        transform: none;
    }

    .blogs__item-link:hover .blogs__item-media img,
    .blogs__item-link:focus-visible .blogs__item-media img {
        transform: none;
    }
}



.faq__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: inherit;
}

.faq__trigger:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 2px;
}

.faq__question {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    text-transform: lowercase;
    line-height: 1.35;
}

.faq__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid #b20000;
    position: relative;
    color: #b20000;
}

.faq__icon::before,
.faq__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid #b20000;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__item:not(.is-open) .faq__icon::before {
    /* width: 2px; */
    height: 10px;
    transform: translate(-50%, -50%);
}

.faq__item:not(.is-open) .faq__icon::after {
    width: 10px;
    /* height: 2px; */
    transform: translate(-50%, -50%);
}

.faq__item.is-open .faq__icon::before {
    width: 11px;
    /* height: 2px; */
    transform: translate(-50%, -50%) rotate(45deg);
}

.faq__item.is-open .faq__icon::after {
    width: 11px;
    /* height: 2px; */
    transform: translate(-50%, -50%) rotate(-45deg);
}

.faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    padding-bottom: 0;
    transition:
        grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        padding-bottom 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__item.is-open .faq__panel {
    grid-template-rows: 1fr;
    padding-bottom: 28px;
}

.faq__panel[hidden] {
    display: none;
}

.faq__panel p {
    margin: 0;
    min-height: 0;
    overflow: hidden;
    max-width: 720px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: #000000;
}

@media (prefers-reduced-motion: reduce) {
    .faq__panel {
        transition: none;
    }

    .faq__icon::before,
    .faq__icon::after {
        transition: none;
    }
}

.page--blogs .blogs {
    padding: 24px 0 140px;
}

.page--blogs .blogs__nav {
    display: none;
}

.page--blogs .blogs__viewport {
    overflow: visible;
}

.page--blogs .blogs__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    width: 100%;
}

.page--blogs .blogs__item {
    flex: none;
    width: 100%;
}

.page--blogs .blogs__reader {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    margin: 8px 0 0;
    scroll-margin-top: clamp(56px, 10vh, 96px);
}

.page--blogs .blogs__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
    margin-bottom: 64px;
}

.page--blogs .blogs__sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 24px;
}

.page--blogs .blogs__side-block {
    min-width: 0;
}

.page--blogs .blogs__side-title {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: #111111;
}

.page--blogs .blogs__side-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page--blogs .blogs__side-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 88px;
    padding: 8px;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page--blogs .blogs__side-card:hover,
.page--blogs .blogs__side-card:focus-visible,
.page--blogs .blogs__side-card.is-active {
    border-color: #b20000;
    box-shadow: 0 0 0 1px #b20000;
}

.page--blogs .blogs__side-card:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 2px;
}

.page--blogs .blogs__side-card-media {
    display: block;
    width: 88px;
    height: 72px;
    overflow: hidden;
    border-radius: 8px;
    background: #f2f2f2;
}

.page--blogs .blogs__side-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page--blogs .blogs__side-card-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 6px;
}

.page--blogs .blogs__side-card-date {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b20000;
}

.page--blogs .blogs__side-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: #111111;
}

.page--blogs .blogs__reader-media {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #f2f2f2;
    aspect-ratio: 21 / 9;
}

.page--blogs .blogs__reader-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page--blogs .blogs__reader-copy {
    width: 100%;
    max-width: none;
    margin: 32px 0 0;
    padding: 0;
    text-align: left;
}

.page--blogs .blogs__reader-date {
    display: block;
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b20000;
}

.page--blogs .blogs__reader-title {
    margin: 0 0 24px;
    font-size: clamp(32px, 4.4vw, 48px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.8px;
    text-transform: lowercase;
    color: #111111;
}

.page--blogs .blogs__reader-body {
    display: grid;
    gap: 18px;
}

.page--blogs .blogs__reader-body p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #000000;
}

.page--blogs .blogs__reader-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.page--blogs .blogs__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.page--blogs .blogs__action:hover,
.page--blogs .blogs__action:focus-visible {
    border-color: #b20000;
    color: #b20000;
}

.page--blogs .blogs__action:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 2px;
}

.page--blogs .blogs__action-icon {
    flex-shrink: 0;
}

.page--blogs .blogs__action-count {
    min-width: 1.2em;
    color: inherit;
}

.page--blogs .blogs__action--like.is-liked {
    border-color: #b20000;
    background: rgba(178, 0, 0, 0.08);
    color: #b20000;
}

.page--blogs .blogs__action--like.is-liked .blogs__action-icon path {
    fill: #b20000;
    stroke: #b20000;
}

.page--blogs .blogs__list-header {
    margin: 0 0 28px;
}

.page--blogs .blogs__list-title {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.4px;
    text-transform: lowercase;
    color: #111111;
}

.page--blogs .blogs__item {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page--blogs .blogs__item:hover,
.page--blogs .blogs__item:focus-within {
    transform: translateY(-3px);
    border-color: rgba(178, 0, 0, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.page--blogs .blogs__item.is-active {
    border-color: #b20000;
    box-shadow: 0 0 0 1px #b20000;
}

.page--blogs .blogs__item .blogs__item-link {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    background: transparent;
}

.page--blogs .blogs__item .blogs__item-link:hover,
.page--blogs .blogs__item .blogs__item-link:focus-visible {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.page--blogs .blogs__item .blogs__item-body {
    padding-bottom: 12px;
}

.page--blogs .blogs__item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-top: auto;
    padding: 0 22px 20px;
}

.page--blogs .blogs__item-actions .blogs__action {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .page--blogs .blogs__layout {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-bottom: 48px;
    }

    .page--blogs .blogs__sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .page--blogs .blogs__track {
        grid-template-columns: 1fr;
    }

    .page--blogs .blogs__item {
        flex-basis: auto;
    }

    .page--blogs .blogs__reader-media {
        aspect-ratio: 16 / 10;
    }

    .page--blogs .blogs__sidebar {
        grid-template-columns: 1fr;
    }
}

html[data-theme="dark"] .page--blogs .blogs__reader-title,
html[data-theme="dark"] .page--blogs .blogs__list-title,
html[data-theme="dark"] .page--blogs .blogs__side-title,
html[data-theme="dark"] .page--blogs .blogs__side-card-title {
    color: #ffffff;
}

html[data-theme="dark"] .page--blogs .blogs__reader-body p {
    color: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] .page--blogs .blogs__reader-media,
html[data-theme="dark"] .page--blogs .blogs__side-card-media {
    background: #1a1a1a;
}

html[data-theme="dark"] .page--blogs .blogs__action {
    background: #141414;
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

html[data-theme="dark"] .page--blogs .blogs__action:hover,
html[data-theme="dark"] .page--blogs .blogs__action:focus-visible,
html[data-theme="dark"] .page--blogs .blogs__action--like.is-liked {
    border-color: #b20000;
    color: #ff6b6b;
}

html[data-theme="dark"] .page--blogs .blogs__action--like.is-liked {
    background: rgba(178, 0, 0, 0.2);
}

html[data-theme="dark"] .page--blogs .blogs__item {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .page--blogs .blogs__item:hover,
html[data-theme="dark"] .page--blogs .blogs__item:focus-within {
    border-color: rgba(178, 0, 0, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .page--blogs .blogs__item.is-active {
    border-color: #b20000;
    box-shadow: 0 0 0 1px #b20000;
}

html[data-theme="dark"] .page--blogs .blogs__side-card.is-active,
html[data-theme="dark"] .page--blogs .blogs__side-card:hover,
html[data-theme="dark"] .page--blogs .blogs__side-card:focus-visible {
    border-color: #b20000;
    box-shadow: 0 0 0 1px #b20000;
}

/* ===== css/pages/careers.css ===== */
/* --- Careers --- */
.careers {
    position: relative;
    z-index: 0;
    /* Overlap Team so the top fade sits flush against the team background */
    margin-top: -56px;
    /* Bottom gap owned by Blogs (140px) — do not stack */
    padding: calc(88px + 56px) 0 0;
    background: #ececec;
    overflow: hidden;
}

/* Soft blend into Team (above) and Blogs (below) */
.careers::before,
.careers::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 0;
}

.careers::before {
    top: 0;
    height: clamp(140px, 24vh, 240px);
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #ffffff 22%,
        rgba(255, 255, 255, 0.7) 48%,
        rgba(236, 236, 236, 0) 100%
    );
}

.careers::after {
    bottom: 0;
    height: clamp(96px, 16vh, 160px);
    background: linear-gradient(
        180deg,
        rgba(236, 236, 236, 0) 0%,
        rgba(255, 255, 255, 0.55) 58%,
        #ffffff 100%
    );
}

.careers__layout {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
    gap: 48px 64px;
    align-items: start;
}

.careers__intro,
.careers__form {
    margin-top: 0;
    padding-top: 0;
}

.careers__label {
    margin: 0 0 12px;
}

.careers__heading {
    margin: 0 0 16px;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.8px;
    text-transform: lowercase;
    color: #111111;
}

.careers__lead {
    margin: 0;
    max-width: 28ch;
    font-size: 16px;
    line-height: 1.55;
    color: #000000;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.careers__openings {
    margin-top: 36px;
    max-width: 420px;
}

.careers__openings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.careers__openings-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: #111111;
}

.careers__openings-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.careers__openings-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #9a9a9a;
    cursor: pointer;
    transition: color 0.2s ease;
}

.careers__openings-btn:hover,
.careers__openings-btn:focus-visible {
    color: #b20000;
}

.careers__openings-btn:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 2px;
}

.careers__openings-btn--next {
    color: #b20000;
}

.careers__openings-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.careers__openings-search {
    position: relative;
    display: block;
    margin-bottom: 14px;
}

.careers__openings-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
    pointer-events: none;
}

.careers__openings-search input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px 12px 42px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    color: #111111;
    background: rgba(255, 255, 255, 0.92);
    outline: none;
}

.careers__openings-search input:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 2px;
    border-color: rgba(178, 0, 0, 0.45);
}

.careers__openings-search input::placeholder {
    color: #9a9a9a;
}

.careers__openings-viewport {
    overflow: hidden;
    border-radius: 14px;
}

.careers__openings-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.careers__opening-card {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px 20px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.careers__opening-role {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111111;
    text-transform: lowercase;
}

.careers__opening-meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #666666;
}

.careers__opening-meta span {
    display: inline-flex;
    align-items: center;
}

.careers__opening-meta span + span::before {
    content: "?";
    margin-right: 12px;
    color: #b20000;
}

.careers__opening-desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #000000;
}

.careers__opening-apply {
    align-self: flex-start;
    margin-top: 4px;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #b20000;
    text-transform: lowercase;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.careers__opening-apply:hover,
.careers__opening-apply:focus-visible {
    color: #8f0000;
}

.careers__opening-apply:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 3px;
}

.careers__openings-meta {
    margin: 10px 0 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: #888888;
    letter-spacing: 0.02em;
}

.careers__openings-empty {
    margin: 12px 0 0;
    font-size: 0.92rem;
    color: #666666;
}

.careers__explore {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 40px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.careers__explore-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #b20000 0%, #8f0000 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 600;
    transition: gap 0.3s ease, filter 0.2s ease;
}

.careers__explore-btn:hover,
.careers__explore-btn:focus-visible {
    gap: 24px;
    filter: brightness(1.05);
}

.careers__explore-btn:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 3px;
}

.careers__explore-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* Standalone careers page — no Team overlap */
.page--careers .careers {
    margin-top: 0;
    padding: 48px 0 80px;
}

.page--careers .careers::before {
    height: clamp(64px, 10vh, 96px);
}

.page--careers > :is(.page__shell, .hero, .services) {
    background: #ffffff;
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.page--careers .jobs-board {
    padding-bottom: 48px;
    background: transparent;
}

/* Same background as Careers above — no fade needed */
.page--careers .team {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding: 72px 0 64px;
    background: #ffffff;
    overflow: hidden;
}

.page--careers .team::before {
    content: none;
    display: none;
}

/* —— Careers page: LinkedIn-style jobs board —— */
.jobs-board {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px 72px;
    box-sizing: border-box;
}

.jobs-board__header {
    margin-bottom: 28px;
}

.jobs-board__heading-row {
    display: block;
    margin: 0 0 16px;
    max-width: 100%;
}

.jobs-board__heading-row .careers__heading {
    margin: 0;
}

.jobs-board__empty-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(52vh, 480px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background: #fafafa;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.jobs-board__empty-screen[hidden] {
    display: none !important;
}

.jobs-board__empty-screen-inner {
    max-width: 36ch;
    padding: 40px 28px;
    text-align: center;
}

.jobs-board__empty-screen-title {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111111;
}

.jobs-board__empty-screen-copy {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #555555;
}

.jobs-board__shell[hidden] {
    display: none !important;
}

.jobs-board__lead {
    max-width: 42ch;
    margin-top: 8px;
    color: #555555;
}

.jobs-board__shell {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.jobs-board__list-pane {
    display: flex;
    flex-direction: column;
    /* Height follows the detail column; content here does not grow the row */
    height: 0;
    min-height: 100%;
    overflow: hidden;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    background: #fafafa;
}

.jobs-board__list-top {
    flex-shrink: 0;
    padding: 18px 16px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.jobs-board__list-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.jobs-board__list-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: #111111;
}

.jobs-board__count {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: #888888;
    white-space: nowrap;
}

.jobs-board__search {
    margin: 0;
}

.jobs-board__list {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
    /* Scrollbar only when openings exceed the detail pane height */
    scrollbar-gutter: auto;
}

.jobs-board__list-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    margin: 0 0 8px;
    padding: 14px 14px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.jobs-board__list-item:hover {
    border-color: rgba(178, 0, 0, 0.25);
}

.jobs-board__list-item.is-active {
    border-color: #b20000;
    background: #fff8f8;
    box-shadow: inset 3px 0 0 #b20000;
}

.jobs-board__list-item:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 2px;
}

.jobs-board__list-item-role {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111111;
}

.jobs-board__list-item-meta {
    font-size: 0.82rem;
    font-weight: 500;
    color: #666666;
}

.jobs-board__list-item-summary {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #555555;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jobs-board__list-item-posted {
    font-size: 0.75rem;
    font-weight: 500;
    color: #888888;
}

.jobs-board__detail-pane {
    min-width: 0;
    overflow: visible;
    background: #ffffff;
}

.jobs-board__detail-inner {
    padding: 28px 28px 40px;
}

.jobs-board__detail-back {
    display: none;
    margin: 0 0 16px;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #b20000;
    cursor: pointer;
}

.jobs-board__detail-back:hover,
.jobs-board__detail-back:focus-visible {
    color: #8f0000;
}

.jobs-board__detail-eyebrow {
    margin: 0 0 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666666;
}

.jobs-board__detail-role {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #111111;
}

.jobs-board__detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 22px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555555;
}

.jobs-board__detail-meta span + span::before {
    content: "·";
    margin-right: 14px;
    color: #b20000;
}

.jobs-board__detail-section {
    margin-bottom: 28px;
}

.jobs-board__detail-section h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111111;
}

.jobs-board__detail-section p,
.jobs-board__detail-apply-lead {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #333333;
}

.jobs-board__detail-section ul {
    margin: 0;
    padding-left: 1.15em;
}

.jobs-board__detail-section li {
    margin: 0 0 8px;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #333333;
}

.jobs-board__detail-apply-block {
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.jobs-board__detail-apply-lead {
    margin-bottom: 18px !important;
}

.jobs-board__detail-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 40px;
    color: #888888;
    text-align: center;
}

.jobs-board .careers__position-filled {
    cursor: default;
    color: #111111;
    background: #f3f3f3;
}

html[data-theme="dark"] .jobs-board .careers__position-filled {
    color: #e8e8e8;
    background: #101010;
}

.jobs-board .careers__form {
    margin-top: 8px;
}

.jobs-board .careers__form[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .jobs-board__shell {
        grid-template-columns: 1fr;
        overflow: hidden;
    }

    .jobs-board__list-pane {
        height: auto;
        min-height: 0;
        max-height: min(62vh, 560px);
        border-right: none;
        overflow: hidden;
    }

    .jobs-board__detail-pane {
        display: none;
        overflow: visible;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .jobs-board.is-detail-mobile .jobs-board__list-pane {
        display: none;
    }

    .jobs-board.is-detail-mobile .jobs-board__detail-pane {
        display: block;
    }

    .jobs-board__detail-back {
        display: inline-flex;
    }

    .jobs-board__detail-inner {
        padding: 20px 18px 36px;
    }
}

html[data-theme="dark"] .jobs-board__lead,
html[data-theme="dark"] .jobs-board__empty-screen-copy,
html[data-theme="dark"] .jobs-board__list-item-summary,
html[data-theme="dark"] .jobs-board__detail-section p,
html[data-theme="dark"] .jobs-board__detail-section li,
html[data-theme="dark"] .jobs-board__detail-apply-lead {
    color: #b0b0b0;
}

html[data-theme="dark"] .jobs-board__empty-screen {
    background: #141414;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

html[data-theme="dark"] .jobs-board__empty-screen-title {
    color: #e8e8e8;
}

html[data-theme="dark"] .jobs-board__shell {
    background: #141414;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

html[data-theme="dark"] .jobs-board__list-pane {
    background: #101010;
    border-right-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .jobs-board__list-top,
html[data-theme="dark"] .jobs-board__detail-pane,
html[data-theme="dark"] .jobs-board__list-item {
    background: #1a1a1a;
}

html[data-theme="dark"] .jobs-board__list-title,
html[data-theme="dark"] .jobs-board__list-item-role,
html[data-theme="dark"] .jobs-board__detail-role,
html[data-theme="dark"] .jobs-board__detail-section h3 {
    color: #e8e8e8;
}

html[data-theme="dark"] .jobs-board__list-item.is-active {
    background: rgba(178, 0, 0, 0.12);
    border-color: #b20000;
}

html[data-theme="dark"] .jobs-board__detail-apply-block {
    border-top-color: rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
    .careers__openings-track {
        transition: none;
    }
}

.careers__form {
    width: 100%;
    min-width: 0;
    position: relative;
}

.careers__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.careers__field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.careers__field--full {
    grid-column: 1 / -1;
}

.careers__label-field {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    text-transform: lowercase;
    color: #333333;
}

.careers__field input,
.careers__field select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: #111111;
    background: rgba(255, 255, 255, 0.92);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.careers__field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666666' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: rgba(255, 255, 255, 0.92);
    padding-right: 36px;
    cursor: pointer;
}

.careers__field input:focus-visible,
.careers__field select:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 2px;
    border-color: rgba(178, 0, 0, 0.45);
}

.careers__field input::placeholder {
    color: #9a9a9a;
}

.careers__salary {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.careers__salary:focus-within {
    outline: 2px solid #b20000;
    outline-offset: 2px;
    border-color: rgba(178, 0, 0, 0.45);
}

.careers__salary-currency {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #555555;
    background: rgba(0, 0, 0, 0.04);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    user-select: none;
    pointer-events: none;
}

.careers__salary input[type="number"] {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 12px 14px;
    -moz-appearance: textfield;
}

.careers__salary input[type="number"]::-webkit-outer-spin-button,
.careers__salary input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.careers__salary input[type="number"]:focus-visible {
    outline: none;
    border-color: transparent;
}

.careers__form .site-footer__select-trigger {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.92);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666666' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    color: #111111;
    padding-right: 36px;
}

.careers__form .site-footer__select-trigger.is-placeholder {
    color: #9a9a9a;
}

.careers__form .site-footer__select-menu {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.careers__upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.careers__upload .careers__form-button {
    margin-top: 0;
    margin-left: auto;
}

.careers__upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.careers__upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1.5px solid #b20000;
    background: transparent;
    color: #b20000;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: lowercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.careers__upload-btn:hover {
    background: #b20000;
    color: #ffffff;
}

.careers__upload-input:focus-visible + .careers__upload-btn {
    outline: 2px solid #b20000;
    outline-offset: 3px;
}

.careers__upload-name {
    font-size: 14px;
    color: #666666;
    min-width: 0;
    word-break: break-word;
}

.careers__upload-name.is-selected {
    color: #111111;
    font-weight: 500;
}

.careers__form-button {
    margin-top: 0;
    padding: 12px 24px;
    border: 2px solid #b20000;
    border-radius: 12px;
    background: #b20000;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: lowercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.careers__form-button:hover {
    background: #8f0000;
    border-color: #8f0000;
    transform: translateY(-1px);
}

.careers__form-button:focus-visible {
    outline: 2px solid #b20000;
    outline-offset: 3px;
}

.careers__form-button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.careers__form-status {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: #555555;
    min-height: 1.2em;
}

.careers__form-status.is-success {
    color: #1b6b3a;
}

.careers__form-status.is-error {
    color: #b20000;
}

@media (max-width: 900px) {
    .careers__layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .careers__lead {
        max-width: none;
    }

    .careers__openings {
        max-width: none;
    }

    .careers__explore {
        margin-top: 28px;
    }
}

@media (max-width: 768px) {
    .careers {
        padding: 64px 0 0;
    }

    .careers__form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .careers {
        padding: 56px 0 0;
    }
}

.team__viewport {
    width: 100%;
    overflow: hidden;
    touch-action: pan-x;
    cursor: grab;
    padding: 16px 0 28px;
    /* Lock to active card height so FAQ below doesn't shift mid-transition */
    box-sizing: border-box;
}

@media (min-width: 1101px) {
    .team__viewport {
        height: 684px; /* 640 active + 44 vertical padding */
        min-height: 684px;
    }
}

@media (max-width: 1100px) and (min-width: 769px) {
    .team__viewport {
        height: 514px;
        min-height: 514px;
    }
}

@media (max-width: 768px) {
    .team__viewport {
        height: 428px; /* 384 + 44 */
        min-height: 428px;
    }

    .team__card {
        width: 180px;
        height: 360px;
        border-radius: 18px;
    }

    .team__card.is-active {
        width: 300px;
        height: 384px;
    }
}

@media (max-width: 480px) {
    .team__viewport {
        height: 364px; /* 320 + 44 */
        min-height: 364px;
    }

    .team__card {
        width: 150px;
        height: 300px;
        border-radius: 16px;
    }

    .team__card.is-active {
        width: 250px;
        height: 320px;
    }
}

.team__viewport:active {
    cursor: grabbing;
}

.team__track {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 20px;
    height: 100%;
    will-change: transform;
    transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.team__track.is-jumping {
    transition: none !important;
}

/* ===== css/pages/about.css ===== */
.page--about #about:is(.about, .process) {
    margin: 0;
    background: #ffffff;
    padding-top: 24px;
    padding-bottom: clamp(64px, 10vh, 120px);
}

.page--about #about:is(.about, .process) > :is(.about__body, .hero__body) {
    margin-top: 0;
}

/* ===== css/pages/services.css ===== */
.page--services #services:is(.page__shell, .hero, .services) {
    margin: 0;
    background: #ffffff;
    overflow: visible;
}

.page--services #services:is(.page__shell, .hero, .services)::before {
    content: none;
    display: none;
}

.page--services #services:is(.page__shell, .hero, .services) > .services,
.page--services #services:is(.page__shell, .hero, .services) > .services__body {
    padding-top: 24px;
    padding-bottom: 48px;
}

.page--services .services__intro-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 56px);
    margin-bottom: 48px;
}

.page--services .services__intro-row .services__intro {
    flex: 1 1 46%;
    min-width: 0;
}

.page--services .services__intro-visual {
    flex: 1 1 48%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: flex-start;
    padding-top: 2.5rem;
}

.page--services .services__intro-visual-inner {
    position: relative;
    display: block;
    width: 100%;
    max-width: min(100%, 26rem);
    transform: translateX(-5.5rem);
}

.page--services .services__intro-rectangle {
    width: 68%;
    height: 92%;
    left: -10%;
    right: auto;
    top: 40%;
    object-fit: fill;
}

.page--services .services__intro-illustration {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
}

.page--services #services .services__copy {
    width: 100%;
    max-width: none;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .page--services .services__intro-row {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
        margin-bottom: 36px;
    }

    .page--services .services__intro-visual {
        justify-content: center;
        order: -1;
        padding-top: 0.75rem;
    }

    .page--services .services__intro-visual-inner {
        max-width: 17rem;
        margin: 0 auto;
        transform: none;
        overflow: hidden;
    }

    .page--services .services__intro-rectangle {
        width: 68%;
        height: 92%;
        left: 0;
        right: auto;
        top: 40%;
        object-fit: fill;
    }

    .page--services .services__intro-illustration {
        max-width: none;
        margin: 0;
        transform: none;
    }
}

html[data-theme="dark"] .page--services .services__intro-illustration {
    filter: brightness(0.96) saturate(1.05);
}

/* Services page — extra sections */
.page--services .services__section {
    padding: clamp(64px, 8vw, 96px) 0;
    background: #ffffff;
}

.page--services .services__section--alt {
    background: #f5f5f5;
}

.page--services .services__section h2,
.page--services .services__cta-copy h2 {
    font-size: clamp(32px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.8px;
    text-transform: lowercase;
    color: #111111;
    margin: 12px 0 16px;
}

.page--services .services__lead {
    max-width: 40rem;
    margin: 0 0 40px;
    font-size: 16px;
    line-height: 1.55;
    color: #333333;
}

.page--services .services__card-grid {
    display: grid;
    gap: 24px;
}

.page--services .services__card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page--services .services__card-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page--services .services__card {
    padding: 28px 24px;
    border-radius: 20px;
    border: 2px solid #d3d3d3;
    background: #f0f0f0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.page--services .services__section--alt .services__card {
    background: #ffffff;
}

.page--services .services__card:hover {
    border-color: #b20000;
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(178, 0, 0, 0.12);
}

.page--services .services__card-index {
    display: block;
    color: #b20000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.page--services .services__card h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: lowercase;
    margin: 12px 0 10px;
    color: #111111;
}

.page--services .services__card--compact h3 {
    margin-top: 0;
}

.page--services .services__card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #333333;
}

.page--services .services__process-section {
    overflow: hidden;
}

.page--services .services__process-stage {
    position: relative;
    margin-top: 8px;
    padding: clamp(28px, 4vw, 48px) 0 8px;
}

.page--services .services__process-slab {
    position: absolute;
    left: 6%;
    right: 14%;
    top: 18%;
    bottom: 18%;
    background: #b20000;
    opacity: 0.1;
    border-radius: 28px;
    transform: skewX(-12deg);
    pointer-events: none;
}

.page--services .services__process-curve {
    position: absolute;
    left: 2%;
    right: 2%;
    top: 18px;
    height: 120px;
    width: auto;
    pointer-events: none;
    z-index: 0;
}

.page--services .services__process-curve-line {
    stroke: #b20000;
    stroke-width: 2.4;
    stroke-linecap: round;
    fill: none;
}

.page--services .services__process-curve circle {
    fill: #b20000;
}

.page--services .services__process {
    list-style: none;
    margin: 36px 0 0;
    padding: 0 0 48px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    position: relative;
    z-index: 1;
}

.page--services .services__process-step {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 24px 20px 22px;
    border-radius: 20px;
    border: 2px solid #d3d3d3;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    transition:
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease,
        transform 0.25s ease,
        box-shadow 0.35s ease;
}

.page--services .services__process-step:nth-child(1) {
    transform: translateY(36px);
}

.page--services .services__process-step:nth-child(2) {
    transform: translateY(12px);
}

.page--services .services__process-step:nth-child(3) {
    transform: translateY(-8px);
}

.page--services .services__process-step:nth-child(4) {
    transform: translateY(12px);
}

.page--services .services__process-step:nth-child(5) {
    transform: translateY(36px);
}

.page--services .services__process-step:hover,
.page--services .services__process-step:focus-within {
    background-color: #b20000;
    border-color: #b20000;
    box-shadow: 0 16px 32px rgba(178, 0, 0, 0.22);
    color: #ffffff;
}

.page--services .services__process-step:nth-child(1):hover {
    transform: translateY(32px);
}

.page--services .services__process-step:nth-child(2):hover {
    transform: translateY(8px);
}

.page--services .services__process-step:nth-child(3):hover {
    transform: translateY(-12px);
}

.page--services .services__process-step:nth-child(4):hover {
    transform: translateY(8px);
}

.page--services .services__process-step:nth-child(5):hover {
    transform: translateY(32px);
}

.page--services .services__process-ghost {
    position: absolute;
    right: -6px;
    top: -18px;
    font-size: clamp(64px, 7vw, 84px);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    color: #b20000;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    transition: color 0.35s ease, opacity 0.35s ease;
}

.page--services .services__process-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    color: #b20000;
    position: relative;
    z-index: 1;
    transition: color 0.35s ease;
}

.page--services .services__process-icon svg {
    width: 28px;
    height: 28px;
}

.page--services .services__process-step h3 {
    font-size: 20px;
    font-weight: 700;
    text-transform: lowercase;
    margin: 0 0 8px;
    color: #111111;
    position: relative;
    z-index: 1;
    transition: color 0.35s ease;
}

.page--services .services__process-step p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #333333;
    position: relative;
    z-index: 1;
    transition: color 0.35s ease;
}

.page--services .services__process-step:hover .services__process-icon,
.page--services .services__process-step:hover h3,
.page--services .services__process-step:hover p,
.page--services .services__process-step:focus-within .services__process-icon,
.page--services .services__process-step:focus-within h3,
.page--services .services__process-step:focus-within p {
    color: #ffffff;
}

.page--services .services__process-step:hover .services__process-ghost,
.page--services .services__process-step:focus-within .services__process-ghost {
    color: #ffffff;
    opacity: 0.18;
}

.page--services .services__process-loop {
    position: relative;
    z-index: 1;
    margin: 56px 0 0;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b20000;
}

.page--services .services__process-loop::before {
    content: "";
    display: inline-block;
    width: 42px;
    height: 10px;
    margin-right: 10px;
    vertical-align: middle;
    background: transparent;
    border-left: 2px solid #b20000;
    border-bottom: 2px solid #b20000;
    border-bottom-left-radius: 12px;
}

.page--services .services__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
}

.page--services .services__chips li {
    padding: 12px 20px;
    border-radius: 999px;
    border: 2px solid #d3d3d3;
    background: #ffffff;
    font-size: 15px;
    font-weight: 600;
    color: #111111;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.page--services .services__chips li:hover {
    border-color: #b20000;
    color: #b20000;
}

.page--services .faq--services {
    padding: clamp(64px, 8vw, 96px) 0;
}

.page--services .services__cta {
    padding: 0 0 clamp(64px, 8vw, 96px);
    background: #ffffff;
}

.page--services .services__cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: clamp(32px, 4vw, 48px) clamp(28px, 4vw, 56px);
    border-radius: 20px;
    border: 2px solid #d3d3d3;
    background: #f0f0f0;
}

.page--services .services__cta-copy p:not(.section__label) {
    margin: 0;
    max-width: 36rem;
    font-size: 16px;
    line-height: 1.55;
    color: #333333;
}

.page--services .services__cta .btn {
    flex-shrink: 0;
    margin-top: 0;
}

@media (max-width: 1100px) {
    .page--services .services__card-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page--services .services__process {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 8px;
        padding-bottom: 0;
    }

    .page--services .services__process-curve,
    .page--services .services__process-slab {
        display: none;
    }

    .page--services .services__process-step,
    .page--services .services__process-step:nth-child(1),
    .page--services .services__process-step:nth-child(2),
    .page--services .services__process-step:nth-child(3),
    .page--services .services__process-step:nth-child(4),
    .page--services .services__process-step:nth-child(5),
    .page--services .services__process-step:hover,
    .page--services .services__process-step:nth-child(1):hover,
    .page--services .services__process-step:nth-child(2):hover,
    .page--services .services__process-step:nth-child(3):hover,
    .page--services .services__process-step:nth-child(4):hover,
    .page--services .services__process-step:nth-child(5):hover {
        transform: none;
    }

    .page--services .services__process-loop {
        margin-top: 24px;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page--services .services__card-grid--three,
    .page--services .services__card-grid--four {
        grid-template-columns: 1fr;
    }

    .page--services .services__cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page--services .services__card,
    .page--services .services__chips li,
    .page--services .services__process-step {
        transition: none;
    }

    .page--services .services__card:hover,
    .page--services .services__process-step,
    .page--services .services__process-step:nth-child(1),
    .page--services .services__process-step:nth-child(2),
    .page--services .services__process-step:nth-child(3),
    .page--services .services__process-step:nth-child(4),
    .page--services .services__process-step:nth-child(5),
    .page--services .services__process-step:hover,
    .page--services .services__process-step:nth-child(1):hover,
    .page--services .services__process-step:nth-child(2):hover,
    .page--services .services__process-step:nth-child(3):hover,
    .page--services .services__process-step:nth-child(4):hover,
    .page--services .services__process-step:nth-child(5):hover {
        transform: none;
    }
}

/* ===== css/pages/legal.css ===== */
.legal--privacy , .legal--terms {
    margin-block: 60px;
}
.legal--privacy  h4 {
    color: #808080;
    font-size: 16px;
}
.legal--terms h4 {
    color: #808080;
    font-size: 16px;

}
.legal__content .legal__item {
    margin-bottom: 70px;
    overflow-wrap: anywhere;
}

.legal__content {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.site-footer__nav-row--legal {
    padding-top: 48px;
}

html[data-theme="dark"] .legal--privacy h1,
html[data-theme="dark"] .legal--privacy h2,
html[data-theme="dark"] .legal--privacy h3,
html[data-theme="dark"] .legal--terms h1,
html[data-theme="dark"] .legal--terms h2,
html[data-theme="dark"] .legal--terms h3,
html[data-theme="dark"] .legal--privacy p,
html[data-theme="dark"] .legal--privacy li,
html[data-theme="dark"] .legal--terms p,
html[data-theme="dark"] .legal--terms li {
    color: #e8e8e8;
}

html[data-theme="dark"] .legal--privacy h4,
html[data-theme="dark"] .legal--terms h4 {
    color: #a0a0a0;
}
