/* Homepage additions: hero call to action, Proxima POS spotlight, closing CTA band. */
:root {
    --thi-navy: #082248;
    --thi-navy-deep: #051833;
    --thi-blue: #1352AE;
    --thi-yellow: #F3C008;
    --thi-ink: #1F2937;
    --thi-muted: #5B6B8C;
}

/* ---------- Shared buttons ---------- */
.thi-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.thi-btn i {
    font-size: 0.85em;
    transition: transform 0.2s ease;
}

.thi-btn:hover i {
    transform: translateX(4px);
}

.thi-btn:focus-visible {
    outline: 3px solid var(--thi-yellow);
    outline-offset: 3px;
}

.thi-btn--yellow {
    background: var(--thi-yellow);
    color: var(--thi-navy);
}

.thi-btn--yellow:hover {
    color: var(--thi-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(243, 192, 8, 0.35);
}

.thi-btn--ghost {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.thi-btn--ghost:hover {
    border-color: var(--thi-yellow);
    color: var(--thi-yellow);
}

.thi-btn--navy {
    background: var(--thi-navy);
    color: #fff;
}

.thi-btn--navy:hover {
    color: var(--thi-yellow);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(8, 34, 72, 0.35);
}

.thi-btn--navy-outline {
    border-color: var(--thi-navy);
    color: var(--thi-navy);
}

.thi-btn--navy-outline:hover {
    background: var(--thi-navy);
    color: #fff;
}

/* ---------- Section system: every homepage section uses these ---------- */
.home-section {
    padding: 112px 24px;
    background: #fff;
    overflow: hidden;
}

.home-section--light {
    background-color: #F5F7FB;
}

.home-section--navy,
.home-section--blue {
    color: #fff;
}

.home-section--navy {
    background-color: var(--thi-navy-deep);
    background-image:
        radial-gradient(ellipse 50% 60% at 15% 0%, rgba(19, 82, 174, 0.45), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: auto, 48px 48px, 48px 48px;
}

.home-section--blue {
    background-image: linear-gradient(120deg, var(--thi-blue), var(--thi-navy));
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head--left {
    margin-left: 0;
    text-align: left;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--thi-blue);
}

.section-head h2,
.cta-band h2 {
    text-wrap: balance;
}

.section-head h2 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    color: var(--thi-navy);
}

.section-head h2 span {
    color: var(--thi-blue);
}

.section-head p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--thi-muted);
}

/* Dark sections: white titles, yellow accents */
.home-section--navy .section-eyebrow,
.home-section--blue .section-eyebrow,
.home-section--navy .section-head h2 span,
.home-section--blue .section-head h2 span {
    color: var(--thi-yellow);
}

.home-section--navy .section-head h2,
.home-section--blue .section-head h2 {
    color: #fff;
}

.home-section--navy .section-head p,
.home-section--blue .section-head p {
    color: rgba(255, 255, 255, 0.75);
}

/* ---------- Intro ---------- */
.home-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 72px;
}

.home-intro .section-head {
    margin-bottom: 32px;
}

.home-intro-img {
    width: 100%;
    height: auto;
}

/* ---------- Services ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-grid li {
    margin: 0;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    padding: 28px 24px;
    border: 1px solid #E3E8F1;
    border-radius: 18px;
    background: #fff;
    color: var(--thi-navy);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    color: var(--thi-navy);
    transform: translateY(-6px);
    border-color: var(--thi-yellow);
    box-shadow: 0 18px 36px rgba(8, 34, 72, 0.12);
}

.service-card img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.service-card h3 {
    flex: 1;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.15;
}

.service-card span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--thi-blue);
}

.service-card span i {
    margin-left: 4px;
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.service-card:hover span i {
    transform: translateX(4px);
}

/* ---------- Slogan band ---------- */
.home-slogan-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 48px;
}

.home-slogan .section-head {
    margin-bottom: 0;
}

.home-slogan-art dotlottie-player {
    display: block;
    width: 100%;
    max-width: 320px;
    height: 320px;
    margin-left: auto;
}

/* ---------- How we partner ---------- */
.partner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 72px;
}

.partner-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.partner-cards li {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 28px 24px;
    border-radius: 18px;
    background: #F5F7FB;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--thi-navy);
}

.partner-cards li:nth-child(2),
.partner-cards li:nth-child(3) {
    background: var(--thi-navy);
    color: #fff;
}

.partner-cards img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.partner-copy h3 {
    margin: 0 0 16px;
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--thi-navy);
}

.partner-copy p {
    margin: 0 0 28px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--thi-muted);
}

/* ---------- Approach (dark) ---------- */
.approach-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.approach-list li {
    display: grid;
    grid-template-columns: 80px 1fr 1.4fr 96px;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    transition: background-color 0.25s ease;
}

.approach-list li:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.approach-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--thi-yellow);
}

.approach-list h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.approach-list p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
}

.approach-list img {
    width: 96px;
    height: 72px;
    object-fit: contain;
    opacity: 0.9;
}

/* ---------- Client logos ---------- */
.logo-marquee {
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logo-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 8px 12px 16px;
    list-style: none;
    animation: logo-scroll 36s linear infinite;
}

.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

/* Every logo gets the same tile. The logo files have uneven transparent margins and
   some are off-centre, so each image in index.html carries measured values:
   --zoom evens out the visual size, --dx/--dy move the logo back to the tile centre.
   Both were measured for a 200x112 tile; --k scales the offsets for smaller tiles. */
.logo-track li {
    position: relative;
    width: 200px;
    height: 112px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #E3E8F1;
    border-radius: 16px;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-track li:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(8, 34, 72, 0.1);
}

/* Pinned to the tile so the image box is exactly tile-sized (a percentage
   height inside an auto-height tile would fall back to the image's own ratio) */
.logo-track img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform:
        translate(calc(var(--dx, 0px) * var(--k, 1)), calc(var(--dy, 0px) * var(--k, 1)))
        scale(var(--zoom, 1));
}

@keyframes logo-scroll {
    to { transform: translateX(-100%); }
}

/* ---------- Tech stack ---------- */
.stack-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stack-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 14px 26px 14px 18px;
    border: 1px solid #E3E8F1;
    border-radius: 999px;
    background: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--thi-navy);
}

.stack-list img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* ---------- Hero ---------- */
.header .sub-title {
    max-width: 720px;
    margin: 0 auto 32px;
    padding: 0 16px;
    font-size: clamp(1.15rem, 0.9rem + 1vw, 1.6rem);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    animation: hero-rise 0.8s 1.2s ease both;
}

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Intro CTA (restores the removed "Let's get started") ---------- */
.intro-actions {
    margin-top: 28px;
}

/* ---------- Proxima POS spotlight ---------- */
.proxima-spotlight {
    position: relative;
    overflow: hidden;
    padding: 112px 24px;
    color: #fff;
    background-color: var(--thi-navy-deep);
    background-image:
        radial-gradient(ellipse 60% 70% at 85% 40%, rgba(19, 82, 174, 0.55), transparent 70%),
        radial-gradient(ellipse 35% 45% at 10% 100%, rgba(243, 192, 8, 0.12), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
}

.spotlight-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 72px;
    max-width: 1200px;
    margin: 0 auto;
}

.spotlight-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--thi-yellow);
}

.spotlight-eyebrow::before {
    content: "";
    width: 36px;
    height: 3px;
    background: var(--thi-yellow);
}

.spotlight-title {
    margin: 0 0 20px;
    font-size: clamp(2.8rem, 1.6rem + 4.5vw, 5.2rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.spotlight-title span {
    color: var(--thi-yellow);
}

.spotlight-lede {
    max-width: 520px;
    margin: 0 0 36px;
    font-size: 1.25rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.spotlight-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
    counter-reset: feature;
}

.spotlight-features li {
    position: relative;
    margin: 0;
    padding: 0 0 0 52px;
    line-height: 1.45;
    counter-increment: feature;
}

.spotlight-features li::before {
    content: counter(feature, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--thi-yellow);
}

.spotlight-features strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.15rem;
    font-weight: 700;
}

.spotlight-features span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.68);
}

.spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

.spotlight-price {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.spotlight-price b {
    font-size: 1.35rem;
    color: #fff;
}

.spotlight-platforms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin: 24px 0 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.spotlight-platforms a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.spotlight-platforms a:hover {
    border-color: var(--thi-yellow);
    color: var(--thi-yellow);
}

/* Product "stage": offset yellow block behind a white card, slightly tilted */
.spotlight-stage {
    position: relative;
    justify-self: center;
    width: min(100%, 500px);
}

.spotlight-stage::before {
    content: "";
    position: absolute;
    inset: 28px -28px -28px 28px;
    border-radius: 28px;
    background: var(--thi-yellow);
    transform: rotate(3deg);
}

.spotlight-card {
    position: relative;
    padding: 36px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
}

.spotlight-stage:hover .spotlight-card {
    transform: rotate(0deg) translateY(-6px);
}

.spotlight-card img {
    display: block;
    width: 100%;
    height: auto;
}

.spotlight-badge {
    position: absolute;
    left: -24px;
    bottom: 32px;
    padding: 12px 20px;
    border-radius: 14px;
    background: var(--thi-navy);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    transform: rotate(-2deg);
}

.spotlight-badge b {
    display: block;
    font-size: 1.5rem;
    color: var(--thi-yellow);
}

.spotlight-industries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1200px;
    margin: 72px auto 0;
    padding: 0;
    list-style: none;
}

.spotlight-industries li {
    margin: 0;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Hero button jumps here; keep the heading clear of the fixed navbar */
#products {
    scroll-margin-top: 72px;
}

.thi-btn:hover .fa-arrow-down {
    transform: translateY(3px);
}

/* Border instead of text-decoration: font.css removes link underlines with !important */
.spotlight-link {
    padding-bottom: 3px;
    border-bottom: 2px solid var(--thi-yellow);
    color: #fff;
    font-weight: 600;
}

.spotlight-link:hover {
    color: var(--thi-yellow);
}

.spotlight-divider {
    max-width: 1200px;
    margin: 104px auto;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    opacity: 1;
}

/* Second product mirrors the first: visual left, tilted the other way */
.spotlight-inner--flip {
    grid-template-columns: 0.95fr 1.05fr;
}

.spotlight-inner--flip .spotlight-stage::before {
    inset: 28px 28px -28px -28px;
    transform: rotate(-3deg);
}

.spotlight-inner--flip .spotlight-card {
    transform: rotate(2deg);
}

.spotlight-inner--flip .spotlight-badge {
    left: auto;
    right: -24px;
    transform: rotate(2deg);
}

/* Proxima Appoint booking card, drawn in HTML instead of a screenshot */
.appoint-mock {
    padding: 28px;
    color: var(--thi-ink);
}

.appoint-mock-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E5E7EB;
}

.appoint-mock-head span {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--thi-muted);
}

.appoint-mock-head b {
    font-size: 1.1rem;
    color: var(--thi-navy);
}

.appoint-mock-list {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.appoint-mock-list li {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.appoint-mock-list time {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--thi-muted);
    font-variant-numeric: tabular-nums;
}

.appoint-slot {
    display: block;
    padding: 10px 14px;
    border-left: 4px solid var(--thi-blue);
    border-radius: 8px;
    background: #EEF3FB;
    font-weight: 700;
    color: var(--thi-navy);
}

.appoint-slot small {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--thi-muted);
}

.appoint-slot--alt {
    border-left-color: var(--thi-navy);
    background: #F1F3F7;
}

.appoint-slot--walkin {
    border-left-color: var(--thi-yellow);
    background: #FEF8E1;
}

.appoint-mock-foot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #E8F6EE;
    color: #17703E;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Staggered reveal (class added by the observer in index.html) */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: calc(var(--i, 0) * 110ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Process road ---------- */
.process-road {
    --road-h: 34px;
    --drive: 5.6s;
    padding: 112px 24px;
    background-color: #F5F7FB;
    background-image: radial-gradient(rgba(8, 34, 72, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    overflow: hidden;
}

.process-road .section-head {
    margin-bottom: 72px;
}

.road-wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Desktop: straight road across the middle, stops alternate above and below */
.road {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto var(--road-h) auto;
    column-gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The road itself: a real grid item filling the middle row, carrying the car */
.road-lane {
    position: relative;
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    background:
        repeating-linear-gradient(90deg, var(--thi-yellow) 0 18px, transparent 18px 34px) center / 100% 3px no-repeat,
        var(--thi-navy);
    box-shadow: 0 8px 18px rgba(8, 34, 72, 0.25);
}

.road-stop {
    display: grid;
    grid-row: 1 / 4;
    grid-template-rows: subgrid;
    justify-items: center;
    margin: 0;
    padding: 0;
}

.road-stop:nth-child(1) { grid-column: 1; }
.road-stop:nth-child(2) { grid-column: 2; }
.road-stop:nth-child(3) { grid-column: 3; }
.road-stop:nth-child(4) { grid-column: 4; }
.road-stop:nth-child(5) { grid-column: 5; }
.road-stop:nth-child(6) { grid-column: 6; }
.road-stop:nth-child(7) { grid-column: 7; }

.road-marker {
    z-index: 2;
    grid-row: 2;
    align-self: center;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 4px solid #C9D2E3;
    border-radius: 50%;
    background: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--thi-muted);
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.road-card {
    position: relative;
    padding: 18px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(8, 34, 72, 0.08);
    text-align: center;
}

/* Odd stops sit below the road, even stops above it */
.road-stop:nth-child(odd) .road-card {
    grid-row: 3;
    align-self: start;
    margin-top: 28px;
}

.road-stop:nth-child(even) .road-card {
    grid-row: 1;
    align-self: end;
    margin-bottom: 28px;
}

/* Short post connecting each card to its marker */
.road-card::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    height: 28px;
    background: #C9D2E3;
}

.road-stop:nth-child(odd) .road-card::before { bottom: 100%; }
.road-stop:nth-child(even) .road-card::before { top: 100%; }

.road-card h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--thi-navy);
}

.road-card p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.45;
    color: var(--thi-muted);
}

/* The car drives the road once; each stop lights up as the car reaches it */
.road-car {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 0;
    display: none;
    font-size: 30px;
    line-height: 1;
    color: var(--thi-yellow);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

@keyframes road-drive {
    from { left: -40px; }
    to { left: calc(100% - 40px); }
}

@media (min-width: 992px) {
    .road-car {
        display: block;
        transform: translateY(-50%);
    }

    .process-road.is-visible .road-car {
        animation: road-drive var(--drive) linear forwards;
    }

    .process-road.is-visible .road-marker {
        transition-delay: calc((var(--i) + 0.5) / 7 * var(--drive));
    }
}

.process-road.is-visible .road-marker {
    border-color: var(--thi-yellow);
    background: var(--thi-yellow);
    color: var(--thi-navy);
    transform: scale(1.08);
}

/* Tablets and phones: the road runs down the left edge */
@media (max-width: 991.98px) {
    .process-road {
        padding: 80px 20px;
    }

    .process-head {
        margin-bottom: 48px;
    }

    .road {
        grid-template-columns: 52px 1fr;
        grid-template-rows: none;
        row-gap: 20px;
        column-gap: 20px;
    }

    .road-lane {
        display: none;
    }

    .road::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 9px;
        width: var(--road-h);
        border-radius: 999px;
        box-shadow: 0 8px 18px rgba(8, 34, 72, 0.25);
        background:
            repeating-linear-gradient(180deg, var(--thi-yellow) 0 18px, transparent 18px 34px) center / 3px 100% no-repeat,
            var(--thi-navy);
    }

    .road-stop,
    .road-stop:nth-child(n) {
        grid-column: 1 / -1;
        grid-row: auto;
        grid-template-rows: none;
        grid-template-columns: subgrid;
        align-items: center;
        justify-items: stretch;
    }

    .road-marker {
        grid-row: 1;
        grid-column: 1;
    }

    .road-stop:nth-child(n) .road-card {
        grid-row: 1;
        grid-column: 2;
        margin: 0;
        text-align: left;
    }

    .road-card::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .process-road.is-visible .road-car {
        animation: none;
        display: none;
    }

    .process-road .road-marker {
        transition: none;
    }
}

/* ---------- Closing CTA band ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    padding: 96px 24px;
    background: var(--thi-yellow);
    color: var(--thi-navy);
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(8, 34, 72, 0.05) 22px 24px);
}

.cta-band-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-band h2 {
    margin: 0 0 8px;
    font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.cta-band p {
    margin: 0;
    font-size: 1.2rem;
    color: rgba(8, 34, 72, 0.8);
}

.cta-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* The footer waves sit right under the yellow band on the homepage, so give them its colour */
body #siteFooter .footer-waves {
    background: var(--thi-yellow);
}

/* ---------- Small screens ---------- */
@media (max-width: 1100px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .approach-list li {
        grid-template-columns: 64px 1fr 1.4fr;
    }

    .approach-list img {
        display: none;
    }
}

@media (max-width: 900px) {
    .home-section {
        padding: 80px 20px;
    }

    .home-intro,
    .home-slogan-inner,
    .partner-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .home-intro-img {
        max-width: 480px;
        margin: 0 auto;
    }

    .home-slogan-art dotlottie-player {
        max-width: 220px;
        height: 220px;
        margin: 0 auto;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .approach-list li {
        grid-template-columns: 56px 1fr;
        gap: 8px 20px;
    }

    .approach-list p {
        grid-column: 2;
    }

    .logo-track {
        gap: 16px;
        padding: 8px 8px 16px;
    }

    .logo-track li {
        --k: 0.75;
        width: 150px;
        height: 84px;
    }

    .proxima-spotlight {
        padding: 80px 20px;
    }

    .spotlight-inner {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .spotlight-stage {
        order: -1;
        width: min(100% - 28px, 420px);
    }

    .spotlight-badge {
        left: -12px;
    }

    .spotlight-inner--flip .spotlight-badge {
        right: -12px;
    }

    .spotlight-divider {
        margin: 72px auto;
    }
}

@media (max-width: 560px) {
    .spotlight-features,
    .partner-cards {
        grid-template-columns: 1fr;
    }

    .service-grid {
        gap: 12px;
    }

    .service-card {
        padding: 20px 16px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .spotlight-card {
        padding: 24px;
    }

    .cta-band {
        padding: 72px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-track {
        animation: none;
    }

    .reveal,
    .hero-actions {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }
}
