:root {
    --font-family-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-family-sans-alt: 'poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

    --color-charcoal: #282828;
    --color-charcoal-rgb: 40, 40, 40;

    --color-dark-gray: #A8A8A8;
    --color-dark-gray-rgb: 168, 168, 168;

    --color-light-gray: #c2c2c2;
    --color-light-gray-rgb: 194, 194, 194;

    --color-cloud-gray: #e3e3e3;
    --color-cloud-gray-rgb: 227, 227, 227;

    --color-royal-blue: #2b65b5;
    --color-royal-blue-rgb: 43, 101, 181;

    --color-steel-blue: #2a4e7b;
    --color-steel-blue-rgb: 42, 78, 123;

    --color-bright-blue: #0066ff;
    --color-bright-blue-rgb: 0, 102, 255;

    --color-blue-gray: #5F6980;
    --color-blue-gray-rgb: 95, 105, 128;

    --color-brand-blue: #458FFF;
    --color-brand-blue-rgb: 69, 143, 255;

    --color-sky-blue: #82d3ff;
    --color-sky-blue-rgb: 130, 211, 255;

    --color-cobalt-blue: #3B6BB6;
    --color-cobalt-blue-rgb: 59, 107, 182;

    --color-powder-blue: #a0c5eb;
    --color-powder-blue-rgb: 160, 197, 235;

    --color-soft-blue-gray: #F2F4F7;
    --color-soft-blue-gray-rgb: 242, 244, 247;

    --color-mint-green: #73d785;
    --color-mint-green-rgb: 115, 215, 133;
}

.mona-sans-<uniquifier> {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.poppins {
  font-family: "poppins", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}

/* =========================
   RESET / NORMALIZE
========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* scroll-behavior is enabled via JS AFTER load (see main.js) so that
       arriving at a hash like /contact/#contact-form lands instantly on the
       section — matching the live site — instead of animating a scroll from
       the top. Smooth scrolling still applies to in-page anchor clicks. */
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    font-family: var(--font-family-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-charcoal);
    background-color: white;
}

html,
body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

b,
strong {
    font-weight: 700;
}

a {
    transition: all 0.3s ease;
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--color-bright-blue);
    text-decoration: none;
}

.content {
    font-size: clamp(16px, 1rem + 0.2vw, 18px);
    line-height: calc(100% + 10px);
    color: var(--color-blue-gray);
}

.content.fs-large {
    font-size: clamp(18px, 1.1rem + 0.4vw, 20px);
}

.content.fs-small {
    font-size: clamp(14px, 0.9rem + 0.2vw, 16px);
}

/* Content headings styled as h5 read better with a looser line-height. The hero's
   h5 (.heading-secondary) is a real <h5>, so it needs the same treatment to
   override the 1.1 heading default below. */
.content.h5,
.heading-secondary {
    line-height: 1.3;
}

/* =========================
   TYPOGRAPHY DEFAULTS
========================= */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: black;
    font-family: var(--font-family-sans);
    line-height: 1.1;
    font-weight: 600;
}

h1, .h1 {
    font-size: clamp(48px, 2rem + 3vw, 84px);
    letter-spacing: -0.04em;
}

h2, .h2 {
    font-size: clamp(44px, 2.75rem + 0.75vw, 62px);
    letter-spacing: -0.04em;
}

h3, .h3 {
    font-size: clamp(34px, 1.75rem + 2vw, 54px);
    letter-spacing: -0.04em;
}

h4, .h4 {
    font-size: clamp(28px, 1.2rem + 0.8vw, 34px);
}

h5, .h5 {
    font-size: clamp(20px, 1rem + 0.8vw, 28px);
}

h6, .h6 {
    font-size: clamp(18px, 0.95rem + 0.4vw, 20px);
}

table,
form,
blockquote,
dl,
ol,
p,
ul {
    margin-bottom: clamp(32px, 2.3px + 1.85vw, 40px);
}

h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child,
.h1:last-child,
.h2:last-child,
.h3:last-child,
.h4:last-child,
.h5:last-child,
.h6:last-child,
table:last-child,
form:last-child,
blockquote:last-child,
dl:last-child,
ol:last-child,
p:last-child,
ul:last-child {
    margin-bottom: 0;
}

/* =========================
   MEDIA DEFAULTS
========================= */

img,
video,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================
   FORM ELEMENTS
========================= */

input,
button,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* =========================
   LISTS
========================= */

ul,
ol {}

/* =========================
   LAYOUT HELPERS
========================= */

.container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

/* Breakpoints (Bootstrap-like) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1170px;
    }
}

@media (min-width: 1366px) {
    .container {
        max-width: 1310px;
    }
}

/* Container Fluid */
@media (min-width: 1024px) {
    .container-fluid {
        padding: 0 40px;
    }
}

@media (min-width: 1440px) {
    .container-fluid {
        padding: 0 80px;
    }
}

.page-section,
.inner-section {
    padding: clamp(48px, calc(38.4px + 3vw), 96px) 0;
}

/* .page-section.half-padding,
.inner-section.half-padding {
    padding: clamp(20px, calc(12px + 4vw), 80px) 0;
} */

/* =========================
   UTILITIES (optional)
========================= */
.bg-sky-blue {
    background-color: var(--color-sky-blue) !important;
}

.bg-cobalt-blue {
    background-color: var(--color-cobalt-blue) !important;
}

.bg-brand-blue {
    background-color: var(--color-brand-blue) !important;
}

.bg-cloud-gray {
    background-color: var(--color-cloud-gray) !important;
}

.bg-soft-blue-gray {
    background-color: var(--color-soft-blue-gray) !important;
}

.bg-charcoal {
    background-color: var(--color-charcoal) !important;
}

.bg-sky-blue .heading,
.bg-sky-blue .content,
.bg-cobalt-blue .heading,
.bg-cobalt-blue .content,
.bg-brand-blue .heading,
.bg-brand-blue .content,
.bg-charcoal .heading,
.bg-charcoal .content {
    color: white;
}

.gap-4 {
    gap: 4px;
}

.gap-4-0 {
    gap: 4px 0;
}

.gap-8 {
    gap: 8px;
}

.gap-8-0 {
    gap: 8px 0;
}

.gap-12 {
    gap: 12px;
}

.gap-12-0 {
    gap: 12px 0;
}

.gap-15 {
    gap: 15px;
}

.gap-15-0 {
    gap: 15px 0;
}

.gap-16 {
    gap: 16px;
}

.gap-16-0 {
    gap: 16px 0;
}

.gap-24 {
    gap: 24px;
}

.gap-24-0 {
    gap: 24px 0;
}

.gap-30 {
    gap: 30px;
}

.gap-30-0 {
    gap: 30px 0;
}

.gap-32 {
    gap: 32px;
}

.gap-32-0 {
    gap: 32px 0;
}

.gap-40 {
    gap: 40px;
}

.gap-40-0 {
    gap: 40px 0;
}

.gap-48 {
    gap: 48px;
}

.gap-48-0 {
    gap: 48px 0;
}

.gap-0-50 {
    gap: 0 50px;
}

.row {
    --bs-gutter-x: 2rem;
}

.eyebrow {
    position: relative;
    font-size: 16px;
    line-height: 24px;
    padding-left: 36px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background: url("../images/3b8QXeZBa3UU0wTjhDyYPc2U.svg") center center / contain no-repeat;
    position: absolute;
    left: 0;
    top: 0;
}

.sub-heading {
    color: var(--color-secondary);
    font-size: clamp(18px, 1.05rem + 0.2vw, 20px);
    letter-spacing: 0.02em;
    margin-top: 1rem;
    font-weight: 500;
}

.btn {
    cursor: pointer;
    display: inline-block;
    padding: 17px 24px;
    border-width: 2px;
    border-radius: 60px;
    letter-spacing: unset;
    text-indent: unset;
    text-transform: unset;
    text-align: center;
    font-size: clamp(16px, 1rem + 0.2vw, 18px);
    font-weight: 600;
    line-height: calc(100% + 4px);
    transition: all 0.3s ease;
}

.btn:hover,
.btn:focus {
    text-decoration: none;
}

.btn.btn-action {
    background-color: white;
    border-color: var(--color-charcoal);
    color: var(--color-charcoal);
}

.btn.btn-action svg {
    stroke: var(--color-charcoal);
    transition: transform 0.4s ease-in-out;
}

.btn.btn-action:hover,
.btn.btn-action:focus {
    background-color: var(--color-charcoal);
    border-color: var(--color-charcoal);
    color: white;
}

.btn.btn-action:hover svg,
.btn.btn-action:focus svg {
    stroke: white;
    transform: rotate(360deg);
}

.btn.btn-action-white {
    background-color: white;
    border-color: white;
    color: var(--color-charcoal);
}

.btn.btn-action-white svg {
    stroke: var(--color-charcoal);
    transition: transform 0.4s ease-in-out;
}

.btn.btn-action-white:hover,
.btn.btn-action-white:focus {
    background-color: white;
    border-color: white;
    color: var(--color-charcoal);
}

.btn.btn-action-white:hover svg,
.btn.btn-action-white:focus svg {
    stroke: var(--color-charcoal);
    transform: rotate(360deg);
}

.btn.btn-action-black {
    background-color: var(--color-charcoal);
    border-color: var(--color-charcoal);
    color: white;
}

.btn.btn-action-black:hover,
.btn.btn-action-black:focus {
    background-color: rgba(var(--color-charcoal-rgb), 0.85);
    border-color: rgba(var(--color-charcoal-rgb), 0.85);
    color: white;
}

.btn.btn-back {
    padding: 0;
    border-width: 0;
    border-radius: 0;
}

.btn.btn-back svg {
    stroke: var(--color-charcoal);
    transition: margin 0.5s ease-in-out;
}

.btn.btn-back:hover svg,
.btn.btn-back:focus svg {
    margin-right: 4px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    border-width: 1px;
}

.btn.no-icon::after {
    display: none;
}

/* =========================
   TWO COLUMNS SECTION
========================= */
.two-columns .two-columns-inner {
  display: grid;
  gap: 3rem 0;
}

.two-columns .content-wrap,
.two-columns .image-wrap,
.two-columns .embed-wrap {
  width: 100%;
}

.two-columns .image-wrap .image-inner {
    position: relative;
    z-index: 2;
}

.two-columns .image-wrap .image-inner .image {
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 10px;
}

@media (min-width: 992px) {
  .two-columns .two-columns-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .two-columns .content-wrap {
    padding-right: 30px;
  }

  .two-columns.reverse .content-wrap {
    order: 2;
    padding-left: 30px;
    padding-right: 0;
  }
}

@media (min-width: 1200px) {
  .two-columns .content-wrap {
    padding-right: 60px;
  }

  .two-columns.reverse .content-wrap {
    padding-left: 60px;
    padding-right: 0;
  }
}

/* =========================
   TWO COLUMNS EXPANDED
========================= */

.two-columns-expanded {
    position: relative;
    padding: 0;
}

.two-columns-expanded .inner-section {
    position: relative;
}

.two-columns-expanded .container {
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .two-columns-expanded .content-wrap {
        width: 50%;
        max-width: 580px;
        padding-left: 0;
        padding-right: 30px;
    }

    .two-columns-expanded .image-wrap {
        position: absolute;
        top: 0;
        left: 50%;
        width: 50%;
        height: 100%;
    }

    .two-columns-expanded.reverse .content-wrap {
        margin-left: auto;
        padding-left: 30px;
        padding-right: 0;
    }

    .two-columns-expanded.reverse .image-wrap {
        left: 0;
    }
}

.two-columns-expanded .image-wrap .image-inner {
    width: 100%;
    height: 100%;
}

.two-columns-expanded .image-wrap .image-inner .image {
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.two-columns-expanded .image-wrap .image-inner .image::before {
    content: "";
    display: block;
    padding-bottom: 100%;
}

/* =========================
   SITE HEADER
========================= */
.site-header {
    padding: 10px 0;
    position: relative;
    width: 100%;
    z-index: 99;
    border-bottom: 1px solid var(--color-light-gray);
    transition: height .8s ease;
}

.site-header.menu-open {
    min-height: 100vh;
}

.site-header .logo-wrap .logo {
    width: 198px;
    height: 60px;
    display: block;
    background: url("../images/logo@2x.png") center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
}

.site-header .menu-toggler {
    width: 92px;
    gap: 8px;
}

.site-header .menu-toggler .hamburger-bar {
    width: 100%;
    height: 1px;
    background-color: var(--color-charcoal);
}

.site-header .menu-toggler.active .hamburger-bar {
    width: 48%;
    height: 2px;
    left: 26%;
}

.site-header .menu-toggler.active .hamburger-bar:nth-child(1) {
    transform: rotate(45deg);
    top: 6px;
    position: relative;
}

.site-header .menu-toggler.active .hamburger-bar:nth-child(2) {
    transform: rotate(-45deg);
    top: -4px;
    position: relative;
}

.site-header .menu-toggler.active .hamburger-bar:nth-child(3) {
    display: none;
}

.site-header .primary-menu {
    /* Reaches the live 63px by ~1280px wide (old clamp only maxed near 1920px).
       line-height 1.2 ≈ 76px at 63px and scales down on mobile. */
    font-size: clamp(28px, calc(16px + 3.7vw), 63px);
    line-height: 1.2;
    font-weight: 600;
    display: flex;
    flex-flow: column;
    gap: 0;
    padding-top: 30px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .8s ease, opacity .8s ease;
    position: relative;
    top: 3rem;
}

.site-header .primary-menu.active {
    max-height: 600px;
    opacity: 1;
}

/* The divider lives on the link (see .primary-menu li a) as a persistent
   background line, so the hover underline traces the exact same row and never
   stacks into a thick double line. */

.site-header .primary-menu.active li {
    opacity: 1;
    animation: navItemIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-header .primary-menu.active li:nth-child(1) { animation-delay: .10s; }
.site-header .primary-menu.active li:nth-child(2) { animation-delay: .18s; }
.site-header .primary-menu.active li:nth-child(3) { animation-delay: .26s; }
.site-header .primary-menu.active li:nth-child(4) { animation-delay: .34s; }
.site-header .primary-menu.active li:nth-child(5) { animation-delay: .42s; }
.site-header .primary-menu.active li:nth-child(6) { animation-delay: .50s; }
.site-header .primary-menu.active li:nth-child(7) { animation-delay: .58s; }
.site-header .primary-menu.active li:nth-child(8) { animation-delay: .66s; }
.site-header .primary-menu.active li:nth-child(9) { animation-delay: .74s; }
.site-header .primary-menu.active li:nth-child(10) { animation-delay: .82s; }

.site-header .primary-menu li a {
    color: var(--color-charcoal);
    display: flex;
    flex-flow: row;
    gap: 10px;
    padding: 8px 0;
    background-image:
        linear-gradient(var(--color-charcoal) 0 0),
        linear-gradient(var(--color-light-gray) 0 0);
    background-position: 0 100%, 0 100%;
    background-size: 0% 2px, 100% 1px;
    background-repeat: no-repeat;
    transition: background-size 0.8s, background-position 0s 0.8s, text-indent 0.8s ease;
    text-indent: 0;
}


.site-header .primary-menu li a:hover,
.site-header .primary-menu li a:focus {
    color: var(--color-charcoal);
    text-decoration: none;
    background-position: 100% 100%, 0 100%;
    background-size: 100% 2px, 100% 1px;
    text-indent: -1px;
}

.site-header .primary-menu li a::before {
    content: '';
    font-size: 14px;
    font-weight: 400;
    transition: top .8s ease;
    position: relative;
    top: .5em;
}

.site-header .primary-menu li a:hover::before,
.site-header .primary-menu li a:focus::before {
    top: calc(.5em + 1px);
}

.site-header .primary-menu li:nth-child(1) a::before { content: '01'; }
.site-header .primary-menu li:nth-child(2) a::before { content: '02'; }
.site-header .primary-menu li:nth-child(3) a::before { content: '03'; }
.site-header .primary-menu li:nth-child(4) a::before { content: '04'; }
.site-header .primary-menu li:nth-child(5) a::before { content: '05'; }
.site-header .primary-menu li:nth-child(6) a::before { content: '06'; }
.site-header .primary-menu li:nth-child(7) a::before { content: '07'; }
.site-header .primary-menu li:nth-child(8) a::before { content: '08'; }
.site-header .primary-menu li:nth-child(9) a::before { content: '09'; }
.site-header .primary-menu li:nth-child(10) a::before { content: '10'; }

.site-header .primary-menu li.current-active a {
    pointer-events: none;
}

@media (max-width: 1199px) {
    .site-header .logo-wrap .logo {
        width: 150px;
        height: 46px;
    }
}

@media (max-width: 991px) {
    .site-header .header-cta .btn {
        padding: 10px 24px;
    }

    .site-header .menu-toggler {
        width: 69px;
    }
}

@media (max-width: 767px) {
    .site-header .header-cta {
        margin-left: auto;
    }

    .site-header .header-cta .btn {
        padding: 10px 15px;
    }

    .site-header .menu-toggler {
        width: 36px;
        margin-left: 15px;
    }
}

@media (max-width: 374px) {
    .site-header .logo-wrap .logo {
        width: 118px;
        height: 36px;
    }

    /* NB: the source clone had `.menu-toggle` here (missing the "r"), so this
       never applied and the toggler kept its 15px margin, squeezing the header
       gaps to ~4px on very narrow phones. */
    .site-header .header-cta,
    .site-header .menu-toggler {
        margin-left: unset;
    }

    .site-header .header-cta .btn {
        padding: 10px;
    }
}

/* The navbar is `justify-content: space-between`, so the centre item (the Contact
   button) only lands dead-centre when the two flanking items are equal width.
   The toggler carries a margin that makes up the difference, so it must always
   equal (logo width - toggler width) at each breakpoint:
     >=1200 : 198 - 92 = 106
     992-1199: 150 - 92 = 58
     768-991 : 150 - 69 = 81   <- toggler narrows to 69px here
   Below 768 the button is intentionally right-aligned (margin-left: auto). */
@media (min-width: 768px) {
    .site-header .menu-toggler {
        margin-left: 58px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .site-header .menu-toggler {
        margin-left: 81px;
    }
}

@media (min-width: 1200px) {
    .site-header .menu-toggler {
        margin-left: 106px;
    }
}

/* =========================
   HERO SECTION
========================= */
#hero .heading {
    font-size: clamp(50px, 2.5rem + 4vw, 98px);
    letter-spacing: -.06em;
    line-height: 1.05;
}

#hero .image-wrap .image,
#hero .video-wrap .video {
    border-radius: 40px;
    height: 140px;
    overflow: hidden;
}

#hero .image-wrap .image img,
#hero .video-wrap .video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1199px) {
    #hero .image-wrap .image,
    #hero .video-wrap .video {
        border-radius: 24px;
        height: 80px;
    }

    #hero .content-wrap .row {
        gap: 16px 0;
        margin-right: -8px;
        margin-left: -8px;
    }

    #hero .content-wrap .row > div {
        padding-right: 8px;
        padding-left: 8px;
    }
}

@media (max-width: 991px) {
    #hero .content-wrap .row {
        gap: 8px 0;
        margin-right: -4px;
        margin-left: -4px;
    }

    #hero .content-wrap .row > div {
        padding-right: 4px;
        padding-left: 4px;
    }
}

/* =========================
   SERVICES SECTION
========================= */
#services .accordion-list .accordion-item {
    padding: 22px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

#services .accordion-list .accordion-heading a {
    text-decoration: none;
    display: flex;
    gap: 16px;
    position: relative;
    padding-right: 32px;
    color: var(--color-charcoal);
    font-weight: 600;
}

#services .accordion-list .accordion-heading a .icon {
    width: 34px;
    height: 34px;
    display: block;
    transition: transform 0.4s ease-in-out;
}

#services .accordion-list .accordion-heading a:hover .icon,
#services .accordion-list .accordion-heading a:focus .icon {
    transform: rotate(360deg);
}

#services .accordion-list .accordion-heading a .icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
    aspect-ratio: 1/1;
}

#services .accordion-list .accordion-heading a .text {
    display: block;
    line-height: 34px;
}

#services .accordion-list .accordion-heading a .toggle-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

#services .accordion-list .accordion-heading a .toggle-icon::before,
#services .accordion-list .accordion-heading a .toggle-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-charcoal);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#services .accordion-list .accordion-heading a .toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

#services .accordion-list .accordion-heading a:not(.collapsed) .toggle-icon::after {
    display: none;
}

#services .accordion-list .accordion-content .content {
    color: var(--color-blue-gray);
}

@media (max-width: 374px) {
    #services .accordion-list .accordion-heading {}
}

/* =========================
   FEATURED GRID
========================= */
.featured-grid {}
.featured-grid .item {}
.featured-grid .item .wrap {
    background-color: var(--color-soft-blue-gray);
    position: relative;
    border-radius: 6.40609% / 6.40609%;
    overflow: hidden;
}

.featured-grid .item .wrap .link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}

.featured-grid .item .wrap .image {
    position: relative;
    overflow: hidden;
}

.featured-grid .item .wrap .image::before {
    content: '';
    display: block;
    padding-bottom: 78.20512820512821%;
}

.featured-grid .item .wrap .image img {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
    transition: transform 0.5s ease;
    will-change: transform;
}

.featured-grid .item:hover .wrap .image img,
.featured-grid .item:focus .wrap .image img {
    transform: scale(1.1);
}

.featured-grid .item .wrap .info {
    padding: 0 40px;
    margin-bottom: 32px;
}

@media (max-width: 991px) {
    .featured-grid .item .wrap .info {
        padding: 0 24px;
        margin-bottom: 24px;
    }
}

@media (max-width: 575px) {
    .featured-grid .item .wrap .info {
        padding: 0 15px;
    }
}

/* =========================
   SERVICE & SUPPORT
========================= */
#serviceandsupport {}

.sas-grid {}
.sas-grid .item {}
.sas-grid .item .wrap {}
.sas-grid .item .wrap .icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 10px;
    background-color: var(--color-soft-blue-gray);
    border-radius: 100px;
}

.sas-grid .item .wrap .icon svg {
    width: 20px;
    height: 20px;
}

.sas-grid .item .wrap .heading {
    font-size: clamp(16px, 1rem + 0.2vw, 18px);
}

@media (min-width: 992px) {
    .sas-grid {
        margin-left: -24px;
        margin-right: -24px;
        gap: 48px 0;
    }

    .sas-grid > div {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* =========================
   PARTNERS WITH
========================= */
.primary-partners img {
    max-height: 216px;
    display: block;
    margin: 0 auto;
}

.logo-marquee-wrapper {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 12.5%, rgb(0, 0, 0) 87.5%, rgba(0, 0, 0, 0) 100%);
}

.logo-marquee-wrapper .logo-marquee-track {
    width: max-content;
    animation: 14s linear infinite logo-marquee;
    display: flex;
    position: relative;
}

/* Pause on hover */
.logo-marquee-wrapper:hover .logo-marquee-track {
    animation-play-state: paused;
}

.logo-marquee-wrapper .logo-marquee .item {
    flex: none;
}

@keyframes logo-marquee {
    0% {
        transform: translate(0)
    }

    to {
        transform: translate(-50%)
    }
}

/* =========================
   LETS AUTOMATE
========================= */
#lets-automate {}

#lets-automate .content-wrap {
    padding: 120px 80px 64px;
    gap: 96px;
}

#lets-automate .heading {
    font-size: clamp(48px, calc(40.8px + 2.25vw), 84px);
    line-height: 1.05;
}

#lets-automate .content-inner {
    gap: 32px;
}

#lets-automate .footer-menu {
    font-family: var(--font-family-sans);
    font-weight: 600;
    font-size: 14px;
}

#lets-automate .footer-menu li a {
    color: white;
    background-image: linear-gradient(white 0 0);
    background-position: 0 100%;
    background-size: 0% 1px;
    background-repeat: no-repeat;
    transition: background-size 0.3s, background-position 0s 0.3s;
}

#lets-automate .footer-menu li a:hover,
#lets-automate .footer-menu li a:focus {
    color: white;
    text-decoration: none;
    background-position: 100% 100%;
    background-size: 100% 1px;
}

#lets-automate .copyright-text {
    color: var(--color-soft-blue-gray);
    font-family: var(--font-family-sans);
    font-size: 14px;
}

@media (max-width: 1199px) {
    #lets-automate .content-wrap {
        padding: 96px 56px;
        gap: 80px;
    }
}

@media (max-width: 991px) {
    #lets-automate .content-wrap {
        padding: 64px 16px;
        gap: 64px;
    }
}

/* =========================
   SITE FOOTER
========================= */
#contact-footer {
    background: linear-gradient(rgba(var(--color-royal-blue-rgb), 0.04) 0%, rgba(var(--color-royal-blue-rgb), 0.08) 100%);
    font-family: var(--font-family-sans-alt);
}

#contact-footer h6 {
    color: var(--color-steel-blue);
    letter-spacing: -1px;
    font-family: var(--font-family-sans-alt);
    font-weight: 400;
}

#contact-footer .social-links {
    margin-top: 32px;
}

#contact-footer .contact-information,
#contact-footer .working-hours {
    font-size: clamp(16px, 1rem + 0.2vw, 18px);
}

#contact-footer .legal-menu {
    font-size: clamp(14px, 0.9rem + 0.2vw, 16px);
}

#contact-footer .copyright-text {
    font-size: clamp(14px, 0.9rem + 0.2vw, 16px);
}

@media (min-width: 992px) {
    #contact-footer .social-links {
        margin-top: 80px;
    }
}


/* =========================
   SECTION HIGHLIGHT
========================= */
.section-highlight {}

.section-highlight .content-wrap {
    border-radius: 32px;
    padding: 48px 24px;
}

.section-highlight .image-wrap .image img {
    object-fit: cover;
    width: 100%;
}

@media (min-width: 992px) {
    .section-highlight .content-wrap {
        border-radius: 40px;
        padding: 48px;
    }
}

/* =========================
   CONTACT FORM
========================= */
.form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px 0;
}

.form-wrapper .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 0;
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}

.form-wrapper .form-row .form-field {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
}

.form-wrapper .form-field > label {
    display: none;
}

.form-wrapper .form-field input[type="text"],
.form-wrapper .form-field input[type="email"],
.form-wrapper .form-field textarea {
    appearance: none;
    -webkit-appearance: none;
    background-color: white;
    border-width: 1px;
    border-style: solid;
    border-color: #8888881a;
    border-radius: 10px;
    font-size: clamp(14px, 0.9rem + 0.2vw, 16px);
    line-height: 16px;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    transition: all 0.3s ease;
}

.form-wrapper .form-field textarea {
    height: 200px;
}

.form-wrapper .form-field input[type="text"]:focus,
.form-wrapper .form-field input[type="email"]:focus,
.form-wrapper .form-field textarea:focus {
    color: var(--color-charcoal);
    background-color: white;
    border-color: var(--color-sky-blue);
    font-family: var(--font-family-sans);
    outline: 0;
    box-shadow: unset;
}

.form-wrapper .form-field input[type="text"]::placeholder,
.form-wrapper .form-field input[type="email"]::placeholder,
.form-wrapper .form-field textarea::placeholder {
    color: #999;
    opacity: 1; /* Firefox */
}

.form-wrapper .form-footer .btn {
    min-width: unset;
    width: 100%;
    max-width: 100%;
}

/* Honeypot spam trap — visually hidden from real users. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Contact form status message. */
.form-wrapper .form-status {
    margin-top: 16px;
    font-size: clamp(14px, 0.9rem + 0.2vw, 16px);
    line-height: 1.4;
}

.form-wrapper .form-status.is-success {
    color: #1e874b;
}

.form-wrapper .form-status.is-error {
    color: #c0392b;
}

@media (min-width: 576px) {
    .form-wrapper .form-row .form-field {
        flex: 0 0 auto;
        width: 50%;
    }
}

#contact-form .heading  {
    font-size: clamp(28px, 1.5rem + 1vw, 42px);
}

/* =========================
   SERVICE & SUPPORT PAGE
========================= */

body.serviceandsupport #contact-form .form-wrapper {
    max-width: 690px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    body.serviceandsupport #contact-form .form-wrapper {
        padding-right: 18px;
    }
}

/* =========================
   RESOURCES PAGE
========================= */
.resources-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-areas:
        "featured top top"
        "featured bottom-left bottom-right";
}

.resources-grid .resource-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    padding: 30px;
}

.resources-grid .resource-card--featured {
    grid-area: featured;
    background-color: var(--color-powder-blue);
}

.resources-grid .resource-card:nth-child(2) {
    grid-area: top;
    background-color: var(--color-mint-green);
}

.resources-grid .resource-card:nth-child(3) {
    grid-area: bottom-left;
    background-color: var(--color-mint-green);
}

.resources-grid .resource-card:nth-child(4) {
    grid-area: bottom-right;
    background-color: var(--color-powder-blue);
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: var(--font-family-sans);
}

.resource-list li a {
    color: var(--color-charcoal);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.resource-list li a:hover,
.resource-list li a:focus {
    color: var(--color-charcoal);
    opacity: 0.6;
}

@media (max-width: 991px) {
    .resources-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "featured"
            "top"
            "bottom-left"
            "bottom-right";
    }
}

/* =========================
   CONTACT PAGE
========================= */

.follow-list {
    border-bottom: 1px solid #4b4b4b;
}

.follow-list li {
    padding: 15px 0;
    border-top: 1px solid #4b4b4b;
}

.follow-list li a {
    color: white;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.follow-list li a:hover,
.follow-list li a:focus {
    color: white;
    opacity: 0.85;
}


body.contact #overview .content-wrap,
body.contact #contact-form .content-wrap,
body.pacdrive #contact-form .content-wrap {
    border-radius: 32px;
    padding: 48px 24px;
}

body.contact #contact-form .form-wrapper,
body.pacdrive #contact-form .form-wrapper {
    max-width: 1024px;
    margin: 0 auto;
}

body.contact .form-wrapper .form-field textarea,
body.pacdrive .form-wrapper .form-field textarea {
    height: 400px;
}

@media (min-width: 992px) {
    body.contact #overview .content-wrap,
    body.contact #contact-form .content-wrap,
    body.pacdrive #contact-form .content-wrap {
        border-radius: 40px;
        padding: 48px;
    }
}

@media (min-width: 1200px) {
    body.contact #overview .content-wrap,
    body.contact #contact-form .content-wrap,
    body.pacdrive #contact-form .content-wrap {
        padding: 96px 40px;
    }

    body.contact #overview .content-wrap .row {
        position: relative;
    }

    body.contact #overview .content-wrap .row::before {
        content: '';
        display: block;
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        width: 1px;
        height: 100%;
        background-color: #4b4b4b;
    }
}

/* =========================
   MACHINE PAGE
========================= */
.product-details {
    display: flex;
    flex-direction: column;
}

.product-details .detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.product-details .detail dt,
.product-details .detail dd {
    white-space: pre-wrap;
    word-break: break-word;
    word-wrap: break-word;
    flex: 1 0 0;
    width: 1px;
    height: auto;
    position: relative;
}

.product-details .detail dd {
    margin-bottom: 0;
    text-align: right;
}

.featured-media .media img {
    border-radius: 40px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    max-height: 750px;
    object-position: center;
    object-fit: cover;
}

/* Opt-in taller featured image on desktop (+100px). */
@media (min-width: 992px) {
    .featured-media .media img.media-tall {
        max-height: 850px;
    }
}

/* Opt-out of the cover crop — show the image full at its natural aspect,
   scaled to 75% (25% smaller) and centered. */
.featured-media .media img.media-uncropped {
    height: auto;
    max-height: none;
    object-fit: contain;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
}

/* More space between the two capability columns on desktop (adds central gap
   only — Bootstrap's negative row margins keep the outer edges aligned, so the
   block stays full width). Applies to all machine pages' capabilities section. */
@media (min-width: 1200px) {
    #capabilities .content-wrap .row {
        --bs-gutter-x: 4rem;
    }
}

body.machine #overview .heading {
    font-size: clamp(48px, 2rem + 2vw, 72px);
}

body.machine #capabilities .heading {
    font-size: clamp(32px, 1.5rem + 1vw, 42px);
}


/* =========================
   MACHINE PAGE
========================= */
.useful-links {}
.useful-links li {}
.useful-links li a {}
.useful-links li a svg {
    stroke: var(--color-charcoal);
    transition: margin 0.5s ease-in-out;
}

.useful-links li a:hover,
.useful-links li a:focus {
    color: var(--color-charcoal);
}

.useful-links li a:hover svg,
.useful-links li a:focus svg {
    margin-right: 8px;
}


/* =========================
   PAGE TRANSITION
========================= */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    background: white;
    clip-path: circle(0 at 50% 50%);
    transform: scale(0.98);
    opacity: 0;
    will-change: clip-path, transform, opacity;
}

.page-transition.active {
    animation: orbitTransition 1.2s cubic-bezier(.83,0,.17,1) forwards;
}

@keyframes orbitTransition {
    0% {
        clip-path: circle(0 at 50% 50%);
        transform: scale(.98);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    100% {
        clip-path: circle(150vmax at 50% 50%);
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================
   SCROLL / LOAD REVEAL
   Native replacement for WOW.js + Animate.css. Reproduces the live
   orbitri.com (Framer) reveal exactly: opacity 0 -> 1 with
   translateY(150px) -> 0, driven by a spring (stiffness 250, damping 40,
   mass 1 => damping ratio ~1.27, overdamped, no overshoot) expressed as a
   CSS linear() easing sampled from that spring. Elements keep the original
   `.wow` hook + `data-wow-delay` from the markup; main.js adds `.is-visible`
   via IntersectionObserver (on load for the hero, on scroll for the rest).
========================= */
:root {
    --reveal-duration: 1.197s;
    --reveal-ease: linear(
        0.0002, 0.1787, 0.4143, 0.5964, 0.7223, 0.8109, 0.8713, 0.9124,
        0.9404, 0.9595, 0.9724, 0.9812, 0.9871, 0.9913, 0.994, 0.996,
        0.9972, 0.9981, 0.9987, 0.9991, 0.9994, 0.9996, 0.9997, 0.9998, 0.9999
    );
}

/* Hidden pre-reveal state — applied only when JS is available so that
   no-JS visitors (and search engines) always see the content. */
.js .wow {
    opacity: 0.001;
    transform: perspective(1200px) translateY(150px);
}

.js .wow.is-visible {
    opacity: 1;
    transform: perspective(1200px) translateY(0);
    transition:
        transform var(--reveal-duration) var(--reveal-ease),
        opacity var(--reveal-duration) var(--reveal-ease);
}

@media (prefers-reduced-motion: reduce) {
    .js .wow,
    .js .wow.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Inner media reveal (hero): the image/video slides up inside its
   overflow-hidden frame rather than the whole tile translating — matching the
   live site's per-image upward reveal. Every hero item reveals together on
   load (no per-row stagger), so the hero enters as a whole. */
.js .img-reveal {
    overflow: hidden;
}

.js .img-reveal img,
.js .img-reveal video {
    transform: translateY(101%);
}

.js .img-reveal.is-visible img,
.js .img-reveal.is-visible video {
    transform: translateY(0);
    transition: transform var(--reveal-duration) var(--reveal-ease);
}

@media (prefers-reduced-motion: reduce) {
    .js .img-reveal img,
    .js .img-reveal video {
        transform: none;
        transition: none;
    }
}

/* Instant reveal — content already on screen when arriving via the page
   transition shows at once (no spring-up), so the wipe is the only load
   effect. Below-the-fold content still animates in on scroll. */
.js .wow.reveal-instant {
    opacity: 1;
    transform: none;
    transition: none;
}

.js .img-reveal.reveal-instant img,
.js .img-reveal.reveal-instant video {
    transform: none;
    transition: none;
}

/* Mobile-menu item entrance — items slide in from the left with a fade. Eased
   with easeOutQuint so the item enters quickly then settles gently, giving a
   smooth slide (the old version used plain `ease` with no fade, which whooshed
   through the middle and felt abrupt). */
@keyframes navItemIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
