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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Navigation Bar */
.navbar {
    position: relative;
    width: 100%;
    max-width: 1280px;
    background: transparent;
    z-index: 1000;
    padding: 1.5rem 0;
    margin: 0 auto;
}

.navbar.menu-active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.nav-container {
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.nav-logo {
    display: block;
    height: 16.245px;
}

.nav-logo svg {
    height: 100%;
    width: auto;
    display: block;
}

.dark-nav .nav-logo svg polygon,
.dark-nav .nav-logo svg path,
.dark-nav .nav-logo svg rect {
    fill: #25302f;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    margin-right: 0;
    align-items: center;
}

.nav-link {
    color: #f4ede5;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.dark-nav .nav-link {
    color: #25302f;
}

.nav-link:hover {
    opacity: 0.7;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #f4ede5;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.dark-nav .hamburger span {
    background: #25302f;
}

/* Hamburger to X animation - green circle with X */
.hamburger.active {
    width: 40px;
    height: 40px;
    background-color: #61b84c;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    gap: 0;
    position: relative;
}

.hamburger.active span:nth-child(1) {
    position: absolute;
    transform: rotate(45deg);
    background: #ffffff !important;
}

.hamburger.active span:nth-child(2) {
    position: absolute;
    transform: rotate(-45deg);
    background: #ffffff !important;
}

/* Hero button styles */
button,
.nav-cta-button {
    transition: background-color 0.3s ease;
}

button:hover,
.nav-cta-button:hover {
    background-color: #1c4531 !important;
}

button img,
.nav-cta-button img {
    transition: transform 0.3s ease;
}

button:hover img,
.nav-cta-button:hover img,
.see-next-link:hover img {
    transform: translateX(4px);
}

/* Headline and button size adjustment for small screens */
@media (max-width: 649px) {
    h1 {
        font-size: clamp(1.75rem, 5.5vw, 3.5rem) !important;
    }

    button {
        padding: 0.5rem 1.2rem !important;
        font-size: 0.8rem !important;
    }

    button img {
        height: 14px !important;
    }

    /* Keep privacy policy button same size as parent text */
    #privacy-policy-btn,
    #privacy-policy-btn span {
        padding: 0 !important;
        font-size: inherit !important;
    }
}

/* Mobile Navigation */
@media (max-width: 800px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        min-height: 100vh;
        min-height: 100dvh;
        background: #1c4531;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 10rem 2rem 2rem 2rem;
        gap: 2.5rem;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        overflow: hidden;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        width: auto;
        border-bottom: none;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation for menu items */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.35s; }

    .nav-menu.active .nav-link {
        font-size: 1.5rem !important;
        font-weight: 400 !important;
        color: #ffffff !important;
        text-align: left !important;
        display: inline-block;
        width: auto;
        border-bottom: none;
    }

    .nav-menu.active .nav-cta-button {
        display: none !important;
    }

    .navbar-black.menu-active .nav-link {
        color: #ffffff !important;
    }

    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 1001;
        margin-left: auto;
    }

    .navbar-black .hamburger span {
        background: #000000 !important;
    }

    .hamburger.active span {
        background: #ffffff !important;
    }

    .navbar-black.menu-active .nav-logo svg polygon,
    .navbar-black.menu-active .nav-logo svg path,
    .navbar-black.menu-active .nav-logo svg rect {
        fill: #ffffff !important;
    }

    .menu-active .nav-logo svg polygon,
    .menu-active .nav-logo svg path,
    .menu-active .nav-logo svg rect {
        fill: #ffffff !important;
    }

    .navbar-black.menu-active .hamburger span {
        background: #ffffff !important;
    }

    .nav-logo {
        z-index: 1001;
        display: block !important;
        height: 12.635px;
    }

    .menu-active .nav-logo svg polygon,
    .menu-active .nav-logo svg path,
    .menu-active .nav-logo svg rect,
    .menu-active .nav-logo svg {
        fill: #ffffff !important;
    }

    .menu-active .nav-logo img {
        filter: brightness(0) invert(1);
    }
}

.hero {
    background-color: #25302f;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo {
    max-width: 90%;
    width: 600px;
    height: auto;
    display: block;
}

.tagline {
    color: #f4ede5;
    font-size: 0.8rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    white-space: nowrap;
    opacity: 0;
    animation: fade-in 2.2s ease-in-out forwards;
}

.next-section {
    background-color: #25302f;
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
}

.section-content {
    width: 50%;
    padding-right: 2rem;
}

.section-headline {
    color: #d49c2a;
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    text-align: right;
    margin: 0 0 2rem 0;
}

.section-paragraph {
    color: #f4ede5;
    font-size: 0.875rem;
    line-height: 1.8;
    text-align: right;
    margin: 0;
    padding-bottom: 2.5rem;
    position: relative;
}

.section-paragraph::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10%;
    height: 1px;
    background-color: #f4ede5;
}

.section-subheadline {
    color: #d49c2a;
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    text-align: right;
    margin: 2.5rem 0 0 0;
}

.section-list {
    color: #f4ede5;
    font-size: 0.875rem;
    line-height: 1.8;
    text-align: right;
    margin: 1.5rem 0 0 0;
}

.image-container {
    width: 50%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-left: 2rem;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    pointer-events: none;
    overflow: visible;
}

.scroll-image {
    width: 100%;
    max-width: 150px;
    height: auto;
    position: absolute;
    top: -200px;
    overflow: visible;
}

.scroll-image .cart-ring {
    animation: spin 20s linear infinite;
    transform-origin: center;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.team-section {
    background-color: #25302f;
    min-height: 100vh;
    padding: 0 2rem 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-images {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 4rem;
    position: relative;
    max-width: 964px;
    margin: 0 auto;
}

.team-images::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #d49c2a;
}

.team-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #25302f;
    color: #d49c2a;
    padding: 0 1rem;
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    white-space: nowrap;
}

.team-image {
    width: 300px;
    height: 350px;
    display: block;
    border-radius: 15px;
    object-fit: cover;
    object-position: center top;
}

.team-image-2 {
    object-position: center 10%;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-info {
    margin-top: 1rem;
    text-align: center;
}

.team-name {
    color: #f4ede5;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.team-title {
    color: #f4ede5;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.white-section {
    background-color: #d49c2a;
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cart-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.cart-bg-icon {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.08;
    transition: opacity 0.3s ease;
}

.cart-bg-icon.active {
    opacity: 0.5;
}

.white-section-headline {
    color: #25302f;
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    line-height: 1.3;
    width: 100%;
    position: relative;
    z-index: 1;
}

.headline-break {
    display: inline-block;
    margin-bottom: 2rem;
}

.cream-section {
    background-color: #f4ede5;
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cream-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 1200px;
}

.cream-headline-wrapper {
    position: relative;
    padding-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.cream-headline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #d49c2a;
}

.cream-section-headline {
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    background-color: #f4ede5;
    color: #d49c2a;
    padding: 0 1rem;
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    white-space: nowrap;
}

.cream-section-subheadline {
    color: #25302f;
    font-size: 1.25rem;
    line-height: 1.4;
    text-align: center;
    margin: 0 0 4rem 0;
}

.cream-section-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.four-column-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.four-column-headline {
    color: #f4ede5;
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    padding: 4rem 2rem 2rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
}

.four-column-content {
    display: flex;
    flex: 1;
}

.column {
    flex: 1;
    padding: 7rem 2rem 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
}

.column-icon {
    max-width: 100%;
    height: auto;
    display: block;
}

.column-label {
    color: #d49c2a;
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

.column-description {
    color: #f4ede5;
    font-size: 0.875rem;
    line-height: 1.8;
    text-align: center;
    margin: 0;
}

.column-button {
    background-color: #ee352b;
    color: #f4ede5;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.column-button:hover {
    opacity: 0.8;
}

.column-1 {
    background-color: #242f2e;
}

.column-2 {
    background-color: #3a4645;
}

.column-3 {
    background-color: #505d5c;
}

.column-4 {
    background-color: #667473;
}

.new-cream-section {
    background-color: #f4ede5;
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.new-cream-section .section-content {
    width: 100%;
    max-width: 1200px;
    padding-right: 50%;
    text-align: right;
}

.new-cream-section .section-headline {
    color: #25302f;
    margin-bottom: 0.5rem;
}

.new-cream-section .section-paragraph {
    color: #25302f;
    font-size: 1.5rem;
    font-weight: 600;
}

.new-cream-button {
    display: inline-block;
    margin-top: 0.5rem;
}

.new-cream-icon-container {
    position: absolute;
    width: 50%;
    height: 100%;
    right: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    padding: 2rem;
    overflow: visible;
}

.new-cream-icon {
    width: 300px;
    height: auto;
    max-width: 100%;
    overflow: visible;
}

.cream-cart-ring {
    animation: spin 20s linear infinite;
    transform-origin: center;
}

.footer {
    background-color: #ee352b;
    padding: 4rem 2rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-logo {
    height: 20px;
}

.footer-logo svg {
    height: 100%;
    width: auto;
    display: block;
}

.footer-copyright {
    color: #f4ede5;
    font-size: 0.75rem;
    margin: 1rem 0 0 0;
}

.footer-text {
    color: #f4ede5;
    font-size: 0.75rem;
    margin: 0;
    padding-bottom: 1.5rem;
    position: relative;
    text-align: right;
}

.footer-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 5%;
    height: 2px;
    background-color: #f4ede5;
}

.footer-contact {
    color: #f4ede5;
    font-size: 0.75rem;
    margin: 1rem 0 0 0;
    text-align: right;
    line-height: 1.8;
}

.footer-contact-stroke {
    padding-top: 1.5rem;
    position: relative;
}

.footer-contact-stroke::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5%;
    height: 2px;
    background-color: #f4ede5;
}

.footer-email {
    color: #f4ede5;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-email:hover {
    opacity: 0.7;
}

/* Pure stroke drawing animation with simultaneous fill */
.letter-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    fill-opacity: 0;
    animation: draw-and-fill 2.2s ease-in-out forwards;
}

@keyframes draw-and-fill {
    0% {
        stroke-dashoffset: 1000;
        fill-opacity: 0;
        stroke-opacity: 1;
    }
    60% {
        stroke-dashoffset: 400;
        fill-opacity: 1;
        stroke-opacity: 0;
    }
    100% {
        stroke-dashoffset: 0;
        fill-opacity: 1;
        stroke-opacity: 0;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Large screens */
@media (min-width: 1080px) {
    .logo {
        width: 900px;
    }

    .tagline {
        font-size: 1.4rem;
    }
}

@media (min-width: 1200px) {
    .scroll-image {
        max-width: 195px;
    }
}

@media (min-width: 1275px) {
    h1 {
        font-size: clamp(3rem, 5.5vw, 5rem) !important;
    }
}

@media (min-width: 1446px) {
    h1 {
        font-size: clamp(2.5rem, 5.5vw, 4.5rem) !important;
    }
}

@media (min-width: 1444px) {
    .column-icon {
        max-width: 70%;
    }

    .four-column-headline {
        font-size: 3rem;
        padding-bottom: 0.5rem;
    }

    .column {
        padding: 10rem 2rem 2rem 2rem;
    }

    .white-section-headline {
        font-size: 4.5rem;
    }

    .cream-section-headline {
        font-size: 3rem;
    }

    .team-label {
        font-size: 3rem;
    }

    .nav-container {
        max-width: 1600px;
        padding: 0 2rem;
    }

    .footer-content {
        max-width: 1600px;
    }

    .footer {
        padding: 4rem 2rem 2rem 2rem;
    }

    .next-section {
        padding-bottom: 0;
    }

    .team-section {
        padding-top: 0;
        padding-bottom: 2rem;
        margin-top: -4rem;
    }

    .team-images {
        padding-top: 4rem !important;
    }

    .new-cream-section .section-content {
        max-width: 1600px;
    }
}

@media (min-width: 1028px) and (max-width: 1475px) {
    .next-section {
        padding-bottom: 0;
    }

    .team-section {
        padding-top: 0;
        margin-top: -4rem;
    }
}

/* Prevent scrollbars in three inset boxes by reducing top padding */
div[style*="background-color:#deefdb"] div[style*="top:1.5rem;left:1.5rem;width:72%"] {
    top: 1rem !important;
}

/* Maintain padding in "Top 3 things" carousel box */
.top-3-slide div[style*="padding:4rem 2rem 2rem 2rem"] {
    padding: 2rem !important;
    overflow: hidden !important;
}

/* Make headline giant */
.top-3-slide h2 {
    font-size: clamp(2rem, 8vw, 6rem) !important;
}

.top-3-slide p[style*="font-weight:200"] {
    font-size: clamp(0.8rem, 1.2vw, 1rem) !important;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .nav-logo {
        display: none;
    }

    .nav-container {
        justify-content: flex-end;
    }

    .hero {
        background-size: 100% 100%;
        aspect-ratio: 1400 / 680;
        min-height: auto;
    }

    .next-section {
        padding: 4rem 2rem;
    }

    .section-content {
        width: 100%;
        padding-right: 0;
    }

    .section-headline {
        text-align: left;
    }

    .section-paragraph {
        text-align: left;
    }

    .section-paragraph::after {
        left: 0;
        right: auto;
    }

    .section-subheadline {
        text-align: left;
    }

    .section-list {
        text-align: left;
    }

    .image-container {
        display: none;
    }

    .scroll-image {
        display: none;
    }

    .team-section {
        padding-top: 6rem;
    }

    .four-column-content {
        flex-direction: column;
    }

    .column {
        width: 100%;
        padding-top: 10rem;
    }

    .column-icon {
        max-width: 50%;
    }

    section {
        overflow-x: hidden;
    }

    .new-cream-icon-container {
        display: none;
    }

    .new-cream-section .section-content {
        text-align: left;
        padding-right: 0;
    }

    .new-cream-section .section-headline {
        font-size: 2.5rem;
    }

    /* Make headlines in three inset boxes smaller */
    div[style*="background-color:#1c4531"] div[style*="background-color:#deefdb"] p[style*="font-size:2.2rem"] {
        font-size: 1.4rem !important;
    }

    /* Make buttons in three inset boxes smaller */
    div[style*="background-color:#1c4531"] div[style*="background-color:#deefdb"] button {
        padding: 0.3rem 0.8rem !important;
        font-size: 0.6rem !important;
    }

    /* Make SVG images in three boxes smaller */
    div[style*="background-color:#deefdb"] img[src*="homepage_illustrations_plant.svg"],
    div[style*="background-color:#deefdb"] img[src*="wrench.svg"],
    div[style*="background-color:#deefdb"] img[src*="compass.svg"] {
        height: 6rem !important;
    }

    /* Reduce padding in green container */
    div[style*="background-color:#1c4531"][style*="padding:4rem"] {
        padding: 2rem !important;
    }

    /* Make arrow closer to "Why Traditional Lending Falls Short" text */
    div[style*="gap:1rem"][style*="margin-top:2rem"] {
        gap: 0rem !important;
    }

    /* Make carousel images smaller */
    .carousel-image img[style*="height"],
    .carousel-image object[style*="height"] {
        height: 10rem !important;
    }

    /* Make carousel images in slides 2 and 3 even smaller */
    .carousel-image[data-slide="2"] object[style*="height"] {
        height: 8rem !important;
    }

    .carousel-image[data-slide="3"] img[style*="height"] {
        height: 6rem !important;
    }

    /* Reduce padding in "Serving a variety of industries" section */
    div[style*="background-color:#f8f8f5"] div[style*="top:1.5rem;left:1.5rem;width:72%"] {
        top: 0.75rem !important;
        left: 0.75rem !important;
        width: 85% !important;
    }

    /* Match scrolling text padding to headline padding */
    div[style*="top:7rem;left:1.5rem;right:1.5rem;bottom:1.5rem"] {
        left: 0.75rem !important;
        right: 0.75rem !important;
        bottom: 0.75rem !important;
    }

    /* Break line after "a" in industries headline */
    .variety-break {
        display: block;
    }

    /* Maintain spacing between "See next" and "Let's talk" buttons */
    .top-3-slide div[style*="margin-top:2rem;gap:1rem"] {
        gap: 1.5rem !important;
    }

    /* Make "The top 3 things our clients are concerned about:" smaller */
    .top-3-slide p[style*="color:#5da566"] {
        font-size: clamp(0.65rem, 1.2vw, 1rem) !important;
    }

    /* Make paragraph closer to headline in all frames */
    .top-3-slide p[style*="font-weight:200"][style*="margin:1.5rem 0 0 0"] {
        margin-top: 0.75rem !important;
    }

    /* Make green box text smaller */
    .green-box-text p[style*="font-size:1.8rem"] {
        font-size: 1rem !important;
    }

    /* Stack new headline box content at 663px and smaller */
    .new-headline-slide {
        grid-template-columns: 1fr !important;
    }

    /* Reduce padding in "Capital built around your business" box on about page */
    div[style*="background-color:#16271a"][style*="padding:4rem"] {
        padding: 2rem !important;
    }

    /* Make "Capital built around your business." headline smaller */
    div[style*="background-color:#16271a"] h2[style*="font-size:3.5rem"] {
        font-size: 2.5rem !important;
    }

    /* Make paragraph text smaller and remove max-width constraint */
    div[style*="background-color:#16271a"] p[style*="font-size:1rem"] {
        font-size: 0.85rem !important;
        max-width: 100% !important;
    }

    /* Make subheads bigger */
    div[style*="background-color:#16271a"] p[style*="font-size:clamp"] {
        font-size: clamp(1rem, 1.8vw, 1.4rem) !important;
    }

    /* Reduce gap between columns */
    div[style*="background-color:#16271a"] div[style*="grid-template-columns:1fr 1fr;gap:6rem"] {
        gap: 3rem !important;
    }

    /* Balance padding in "Led by experienced experts" box */
    div[style*="background-color:#deefdb"][style*="padding:4rem 2rem"] {
        padding: 2rem !important;
    }

    /* Make disclaimer text smaller on solutions page */
    p[style*="font-size:0.875rem"][style*="color:#16271a"] {
        font-size: 0.7rem !important;
    }

    /* Adjust disclaimer box padding and gap */
    div[style*="background-color:#deefdb"][style*="padding:2rem"] {
        padding: 1.5rem !important;
        gap: 1rem !important;
    }

    /* Make asterisk icon smaller in disclaimer box */
    img[src*="ast.svg"] {
        height: 2.5rem !important;
    }

    /* Contact page - Make headlines in two boxes smaller */
    div[style*="background-color:#2f7a46"] p[style*="font-size:3rem"],
    div[style*="background-color:#deefdb"] p[style*="font-size:3rem"] {
        font-size: 1.5rem !important;
    }

    /* Contact page - Make buttons in two boxes smaller */
    div[style*="background-color:#2f7a46"] a.nav-cta-button[style*="padding:0.5rem 1.2rem"],
    div[style*="background-color:#deefdb"] a.nav-cta-button[style*="padding:0.5rem 1.2rem"] {
        padding: 0.35rem 0.9rem !important;
        font-size: 0.65rem !important;
    }

    /* Contact page - Make email image smaller and move up */
    img[src*="email.svg"][style*="height"] {
        height: 9rem !important;
    }

    /* Move email image up */
    div[style*="background-color:#2f7a46"] div[style*="bottom:-2.25rem"][style*="right:0.5rem"] {
        bottom: -1.75rem !important;
    }

    /* Contact page - Make calendar image smaller */
    img[src*="calendar.svg"][style*="height"] {
        height: 7rem !important;
    }

    /* Reduce padding in 40+ years box */
    .counter-box div[style*="top:1rem;left:1.5rem;width:72%"] {
        top: 0.5rem !important;
        left: 0.75rem !important;
        width: 85% !important;
    }

    /* Footer - Make logo smaller */
    footer img[src*="ChathamPines_logo.svg"] {
        height: 28px !important;
    }

    /* Footer - Make Schedule a call button smaller */
    footer a.nav-cta-button[style*="padding:0.5rem 1.2rem"] {
        padding: 0.35rem 0.9rem !important;
        font-size: 0.65rem !important;
    }

    /* Footer - Make Follow us text and LinkedIn icon smaller */
    footer span[style*="font-size:0.75rem"] {
        font-size: 0.6rem !important;
    }

    footer svg[width="20"] {
        width: 14px !important;
        height: 14px !important;
    }

    /* Footer - Make navigation links smaller */
    footer a[style*="font-size:0.75rem"] {
        font-size: 0.6rem !important;
    }

    /* Footer - Reduce padding */
    footer div[style*="padding:2rem 0"] {
        padding: 1rem 0 !important;
    }

    /* Footer - Make text under stroke smaller */
    footer p[style*="font-size:0.625rem"] {
        font-size: 0.5rem !important;
    }

    /* Contact page - Make "Greetings from Houston." smaller */
    h2[style*="font-size:6rem"][style*="color:#ffffff"] {
        font-size: 3.5rem !important;
    }
}

@media (max-width: 518px) {
    .hero-content {
        gap: 0.65rem;
    }

    .logo {
        width: 85%;
        max-width: 450px;
    }

    .tagline {
        font-size: 0.5rem;
    }
}

@media (max-width: 468px) {
    .new-cream-section .section-headline {
        font-size: 1.75rem;
    }

    .new-cream-section .section-paragraph {
        font-size: 1rem;
    }
}

@media (max-width: 430px) {
    /* Footer top section - stack and center all elements */
    footer > div:first-child {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }

    /* Center logo and make it bigger */
    footer > div:first-child > a[href="index.html"],
    footer > div:first-child > a[style*="margin-right:auto"] {
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 1rem !important;
        padding-bottom: 2rem !important;
        border-bottom: 1px solid #d3d3d3 !important;
        width: 100% !important;
        text-align: center !important;
    }

    footer > div:first-child > a[href="index.html"] img {
        height: 60px !important;
    }

    footer img[src*="ChathamPines_logo.svg"] {
        height: 60px !important;
    }

    /* Create two column layout - nav links left, button/follow us right */
    footer > div:first-child > div {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 0 !important;
        width: 100% !important;
    }

    /* Nav links column - left side */
    footer div[style*="border-left:1px solid #d3d3d3"] {
        align-items: flex-start !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
        order: 1 !important;
    }

    /* Button/Follow us column - right side */
    footer > div:first-child > div > div:first-child {
        order: 2 !important;
        align-items: flex-end !important;
        margin-right: 2rem !important;
    }

    /* Make Schedule a call button 50% bigger using scale */
    footer .nav-cta-button {
        transform: scale(1.5) !important;
        transform-origin: center !important;
    }

    /* Add space below button */
    footer .nav-cta-button {
        margin-bottom: 1.5rem !important;
    }

    /* Make Follow us text bigger */
    footer span[style*="font-size:0.75rem"] {
        font-size: 0.975rem !important;
    }

    /* Make LinkedIn icon bigger */
    footer a[href*="linkedin"] svg {
        width: 26px !important;
        height: 26px !important;
    }


    /* Remove left border from nav links container */
    footer > div:first-child > div > div[style*="border-left"] {
        border: none !important;
        border-left: none !important;
        padding-left: 0 !important;
    }

    footer div[style*="border-left:1px solid #d3d3d3"] {
        border-left: none !important;
        padding-left: 0 !important;
    }

    /* Left justify nav links text and make them bigger */
    footer > div:first-child > div[style*="border-left"] a {
        text-align: left !important;
        font-size: 0.975rem !important;
    }

    footer div[style*="border-left:1px solid #d3d3d3"] a {
        text-align: left !important;
        font-size: 0.975rem !important;
    }

    /* Footer - stack copyright and disclaimer vertically, centered */
    footer > div:last-child {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1rem !important;
    }

    footer > div:last-child > div {
        flex: none !important;
    }

    footer > div:last-child p {
        text-align: center !important;
    }

    #footer-disclaimer p {
        text-align: center !important;
    }

    /* Center privacy policy header and close button */
    #footer-privacy > div:first-child {
        justify-content: center !important;
    }

    /* Make close button same size as Privacy Policy heading */
    #footer-privacy #close-privacy {
        font-size: 0.625rem !important;
    }

    #footer-privacy #close-privacy svg {
        width: 10px !important;
        height: 10px !important;
    }

    /* Center privacy policy text */
    #footer-privacy p {
        text-align: center !important;
    }

    /* Make "Greetings from Houston." smaller */
    h2[style*="font-size:6rem"][style*="color:#ffffff"] {
        font-size: 2rem !important;
    }
}

@media (max-width: 450px) {
    .column {
        padding: 12rem 2rem 12rem 2rem;
    }

    .footer-content {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .footer-left {
        margin-top: 3rem;
    }

    .footer-right {
        width: 100%;
    }

    .footer-text {
        font-size: 0.65rem;
        text-align: left;
        padding-bottom: 1rem;
    }

    .footer-text::after {
        left: 0;
        right: auto;
    }

    .footer-contact {
        font-size: 0.65rem;
        text-align: left;
    }

    .footer-contact-stroke::before {
        left: 0;
        right: auto;
    }

    .footer-copyright {
        font-size: 0.65rem;
    }

    .footer-logo {
        height: 16px;
    }

    .white-section-headline {
        font-size: 1.5rem;
    }

    .white-section {
        min-height: 50vh;
    }

    .team-images::before {
        display: none;
    }

    .team-label {
        background-color: transparent;
    }

    .cream-section {
        min-height: 50vh;
        padding: 2rem 1rem;
    }

    .cream-section-headline {
        font-size: 1.25rem;
        white-space: normal;
    }

    .cream-headline-wrapper::before {
        display: none;
    }

    .cream-section-subheadline {
        font-size: 0.875rem;
        margin: 0 0 2rem 0;
    }

    .cream-section-image {
        max-width: 100%;
        height: auto;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
    /* Make SVG images in homepage three boxes smaller */
    img[src*="homepage_illustrations_plant.svg"],
    img[src*="wrench.svg"],
    img[src*="compass.svg"] {
        height: 10rem !important;
    }
}

@media (max-width: 1080px) {
    /* Contact page - Make headlines in two boxes smaller */
    p[style*="font-size:3rem"] {
        font-size: 2.2rem !important;
    }

    /* Contact page - Make buttons smaller */
    a.nav-cta-button[style*="padding:0.5rem 1.2rem"] {
        padding: 0.45rem 1.1rem !important;
        font-size: 0.75rem !important;
    }


    /* Move email image up */
    div[style*="background-color:#2f7a46"] div[style*="bottom:-2.25rem"] {
        bottom: -2rem !important;
    }
}

@media (max-width: 1024px) {
    /* Make "Serving a variety of industries" headline smaller */
    .industries-headline {
        font-size: 1.8rem !important;
    }

    /* Make headlines in top three inset boxes smaller */
    .three-boxes-header ~ div p[style*="font-size:2.2rem"] {
        font-size: 1.8rem !important;
    }

    /* Step down counter-box headline and constrain to top half */
    .counter-headline {
        font-size: clamp(1.3rem, 3vw, 1.8rem) !important;
    }

    .counter-headline span[style*="font-size:3.5rem"] {
        font-size: clamp(2rem, 4.8vw, 2.8rem) !important;
    }

    .counter-box > div[style*="top:1rem;left:1.5rem;width:72%"] {
        bottom: 50%;
    }
}

@media (max-width: 1024px) {

    /* Make buttons in top three inset boxes smaller */
    .three-boxes-header ~ div button {
        padding: 0.45rem 1.1rem !important;
        font-size: 0.75rem !important;
    }

    /* Make SVG images in top three boxes smaller */
    img[src*="homepage_illustrations_plant.svg"],
    img[src*="wrench.svg"],
    img[src*="compass.svg"] {
        height: 9rem !important;
    }

    /* Reduce padding for content in three boxes with cream background */
    div[style*="background-color:#deefdb"] div[style*="top:1.5rem;left:1.5rem;width:72%"] {
        top: 1.25rem !important;
        left: 1.25rem !important;
        width: 75% !important;
    }

    /* Hide buttons in horizontal carousel box */
    .carousel-slide button {
        display: none !important;
    }

    /* Make carousel images smaller */
    .carousel-image img,
    .carousel-image object {
        height: 14rem !important;
    }

    /* Make slide 3 clock image even smaller */
    .carousel-image[data-slide="3"] img {
        height: 10rem !important;
    }

    /* Make contact page box images smaller */
    img[src*="email.svg"][style*="height"],
    img[src*="calendar.svg"][style*="height"] {
        height: 9rem !important;
    }

    /* Make 40+ years box headline smaller */
    .counter-box p:not(.counter-headline) {
        font-size: 1.8rem !important;
    }

    .counter-box p:not(.counter-headline) span[style*="font-size:3.5rem"] {
        font-size: 2.8rem !important;
    }

    /* Make navigate image smaller */
    img[src*="navigate.svg"] {
        height: 16rem !important;
    }

    /* Contact page - Make headlines in two boxes smaller */
    p[style*="font-size:3rem"] {
        font-size: 2.2rem !important;
    }

    /* Contact page - Make buttons smaller */
    a.nav-cta-button[style*="padding:0.5rem 1.2rem"] {
        padding: 0.45rem 1.1rem !important;
        font-size: 0.75rem !important;
    }


    /* Move email image up */
    div[style*="background-color:#2f7a46"] div[style*="bottom:-2.25rem"] {
        bottom: -2rem !important;
    }

    /* Green box - Make images smaller */
    .green-box-svg img {
        height: 22rem !important;
    }

    /* Green box - Make text smaller */
    .green-box-text p {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 910px) {
    /* Green box - Make images smaller and adjust position to maintain top spacing */
    .green-box-svg {
        top: -2.5rem !important;
    }

    .green-box-svg img {
        height: 18rem !important;
    }
}

@media (max-width: 941px) {
    /* Stack headline and paragraph vertically in three boxes section */
    .three-boxes-header {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    /* Make headlines in three inset boxes smaller */
    .three-boxes-header ~ div p[style*="font-size:2.2rem"] {
        font-size: 1.5rem !important;
    }

    /* Make buttons in three inset boxes smaller */
    .three-boxes-header ~ div button {
        padding: 0.4rem 1rem !important;
        font-size: 0.7rem !important;
    }

    /* Make SVG images in three boxes smaller */
    img[src*="homepage_illustrations_plant.svg"],
    img[src*="wrench.svg"],
    img[src*="compass.svg"] {
        height: 8rem !important;
    }

    /* Reduce padding for content in three boxes with cream background */
    div[style*="background-color:#deefdb"] div[style*="top:1.5rem;left:1.5rem;width:72%"] {
        top: 1rem !important;
        left: 1rem !important;
        width: 80% !important;
    }

    /* Hide buttons in horizontal carousel box */
    .carousel-slide button {
        display: none !important;
    }

    /* Make carousel images smaller */
    .carousel-image img,
    .carousel-image object {
        height: 12rem !important;
    }

    /* Make slide 3 clock image even smaller */
    .carousel-image[data-slide="3"] img {
        height: 9rem !important;
    }

    /* Make carousel subheads smaller */
    .carousel-slide p[style*="font-size:1.2rem"] {
        font-size: 1rem !important;
    }

    /* Make scrolling industry text smaller */
    .industry-scroll p {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 885px) {
    /* Make 40+ years box headline smaller */
    .counter-box p:not(.counter-headline) {
        font-size: 1.5rem !important;
    }

    .counter-box p:not(.counter-headline) span[style*="font-size:3.5rem"] {
        font-size: 2.4rem !important;
    }

    /* Make navigate image smaller and reposition */
    img[src*="navigate.svg"] {
        height: 14rem !important;
    }

    /* Move navigate image up and right */
    div[style*="bottom:-4rem;right:1.5rem"] {
        bottom: -3.5rem !important;
        right: 0.5rem !important;
    }

    /* Make carousel images smaller in slides 2 and 3 */
    .carousel-image[data-slide="2"] object {
        height: 11rem !important;
    }

    .carousel-image[data-slide="3"] img {
        height: 8rem !important;
    }
}


/* White background page */
.white-bg {
    background: #ffffff;
}

/* Black navbar for white background pages */
.navbar-black .nav-logo svg polygon,
.navbar-black .nav-logo svg path,
.navbar-black .nav-logo svg rect {
    fill: #000000 !important;
}

.navbar-black .nav-link {
    color: #000000 !important;
}

.navbar-black .hamburger span {
    background: #000000 !important;
}

/* Work page */
.work-page {
    padding-top: 100px;
    min-height: 100vh;
}

.work-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #000000;
    text-align: left;
    font-size: 3.2rem;
    font-weight: normal;
    margin: 1.4rem 0 0 0;
    padding: 0 2rem;
}

.work-description {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #000000;
    text-align: left;
    font-size: 1rem;
    font-weight: normal;
    margin: 3rem 0 0 0;
    padding: 0 2rem;
}

.work-tag {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #777777;
    font-size: 0.75rem;
    font-weight: normal;
    background: #e8e8e8;
    padding: 0.35rem 0.7rem;
    margin: 0.9rem 0.3rem 0 2rem;
    border-radius: 4px;
    display: inline-block;
}

.work-tag:first-of-type {
    margin-left: 2rem;
}

.work-tag:not(:first-of-type) {
    margin-left: -2px;
}

.video-container {
    position: relative;
    padding: 56.25% 0 0 0;
    margin: 3rem 2rem 0 2rem;
    width: calc(100% - 4rem);
    border-radius: 20px;
}

.video-container.video-container-tight {
    margin-top: 1rem;
}

.video-container iframe {
    border-radius: 0;
}

.work-middle-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #000000;
    text-align: left;
    font-size: 2rem;
    font-weight: normal;
    margin: 5.5rem 0 8.5rem 0;
    padding: 0 2rem 0 calc(50% + 2rem);
}

@media (max-width: 1040px) {
    .work-title {
        font-size: 2.72rem;
    }

    .work-middle-text {
        padding: 0 2rem;
        font-size: 1.7rem;
    }
}

/* Work page - navbar stays fixed */
.white-bg .navbar {
    /* Inherits position: fixed and z-index: 1000 from base .navbar */
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 3rem 2rem 0 2rem;
}

@media (max-width: 800px) {
    .work-title {
        font-size: 2.31rem;
    }

    .work-middle-text {
        font-size: 1.45rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .work-footer-text-row {
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    .work-footer-text-row .work-footer-text {
        margin: 0;
        padding: 0;
    }

    .work-footer-text-row .work-footer-text::after {
        display: none;
    }

    .work-footer-text-row:last-of-type {
        margin: 0;
    }

    .work-footer-text-row:last-of-type .work-footer-text {
        margin-bottom: 3rem;
        padding-bottom: 0;
    }

    .work-footer-text-row:last-of-type .work-footer-text::after {
        display: none !important;
    }

    .work-footer-about-text {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-right: 0;
    }

    .work-footer-text-row:first-child {
        margin-bottom: 0;
    }

    .work-footer-text-row:first-child .work-footer-text {
        margin-bottom: 0;
        padding-bottom: 0;
        position: relative;
    }

    .work-footer-text-row:first-child .work-footer-text::after {
        display: none !important;
    }

    .work-footer-text-row:first-child::after {
        display: none;
    }

    .work-footer-contact-info {
        display: flex;
        gap: 4rem !important;
        margin-top: 3rem;
        margin-bottom: 3rem;
        padding-bottom: 3rem;
        position: relative;
    }

    .work-footer-contact-info::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        height: 1px;
        background: rgba(255, 255, 255, 0.3);
    }

    .work-footer-location {
        margin: 0;
        padding: 0;
    }

    .work-footer-email {
        margin: 0;
        padding: 0;
        text-align: left;
    }

    .work-footer-about-text {
        padding-right: 0;
    }

    .work-footer-copyright {
        text-align: left !important;
    }
}

.video-square {
    position: relative;
    padding-top: 100%;
    width: 100%;
    overflow: hidden;
}

.video-square iframe {
    border-radius: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-square-left iframe {
    width: 120%;
    height: 120%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-square-right iframe {
    width: 100%;
    height: 100%;
}

.video-footer-stroke {
    position: relative;
    margin-top: 8rem;
    padding-top: 1rem;
    padding-bottom: 3rem;
    width: 100%;
}

.video-footer-stroke::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.3);
}


.video-footer-stroke .work-title {
    margin: 0 2rem;
    padding: 0;
}

.video-footer-stroke .work-description {
    margin: 3rem 2rem 0 2rem;
    padding: 0;
}

.video-footer-stroke > .work-tag:nth-child(4) {
    margin-left: 2rem !important;
}

.video-footer-stroke > .work-tag:nth-child(5) {
    margin-left: -2px !important;
}

.next-project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 2rem 4rem 2rem;
}

.back-to-top-container-centered {
    text-align: center;
    margin: 4rem 0 2rem 0;
}

.back-to-top-arrow {
    color: #777777;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.back-to-top-centered {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #777777;
    font-size: 1rem;
    font-weight: normal;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-top-centered:hover {
    color: #777777;
    text-decoration: underline;
}

.next-project-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #777777;
    font-size: 1rem;
    font-weight: normal;
    text-align: left;
    margin: 0;
    padding: 0;
}

.back-to-top {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #777777;
    font-size: 1rem;
    font-weight: normal;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: #777777;
    text-decoration: underline;
}

.next-project-preview {
    width: calc(100% - 4rem);
    height: 200px;
    margin: 0 2rem;
    overflow: hidden;
    position: relative;
}

.next-project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Hero image */
.hero-image-container {
    width: 100%;
    height: calc(56.25vw - 175px);
    position: relative;
    background: #cccccc;
    margin-top: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-text-box {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #777777;
    font-size: 1.171875rem;
    font-weight: normal;
    background: #e8e8e8;
    padding: 0 1.09375rem;
    border-radius: 6.25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.234375rem;
    height: 2.8125em;
    box-sizing: border-box;
}

.hero-text-animated {
    position: relative;
    overflow: hidden;
    width: 5.625em;
    height: 2.8125em;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: inset(0);
}

.hero-text-animated .hero-text-word {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.6s ease-in-out;
}

.hero-text-animated .hero-text-word.active {
    transform: translateY(0);
}

.hero-text-animated .hero-text-word.exit {
    transform: translateY(-100%);
}

.hero-text-reverse .hero-text-word {
    transform: translateY(-100%);
}

.hero-text-reverse .hero-text-word.active {
    transform: translateY(0);
}

.hero-text-reverse .hero-text-word.exit {
    transform: translateY(100%);
}

@keyframes rollUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100%);
    }
}

@keyframes rollIn {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.hero-subtitle-container {
    text-align: center;
    margin: 4rem 0 2rem 0;
}

.hero-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #777777;
    font-size: 1rem;
    font-weight: normal;
    margin: 0;
    padding: 0;
}

.hero-arrow {
    color: #777777;
    font-size: 1rem;
    margin-top: 0.75rem;
}

.project-section {
    position: relative;
    margin-bottom: 8rem;
    padding-bottom: 8rem;
}

.work-page .project-section {
    padding-bottom: 4rem;
    margin-bottom: 6rem;
}

.project-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    color: inherit;
}

.video-container-work {
    margin-top: 1.5rem;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: #cccccc;
    position: absolute;
    top: 0;
    left: 0;
}

/* Work page footer */
.work-footer {
    background: #000000;
    padding: 4rem 0 2rem 0;
    margin-top: 0;
}

.work-footer-content {
    padding: 0 2rem;
}

.work-footer-text-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 6rem;
    position: relative;
}

.work-footer-text-row::after {
    content: '';
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.work-footer-text-row .work-footer-text {
    margin: 0;
    padding: 0;
}

.work-footer-text-row .work-footer-text::after {
    display: none;
}

.work-footer-contact-info {
    display: flex;
    gap: 10rem;
}

.work-footer-location {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #ffffff;
    font-size: 1rem;
    font-weight: normal;
    text-align: left;
    margin: 0;
    padding: 0;
}

.work-footer-email {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #ffffff;
    font-size: 1rem;
    font-weight: normal;
    text-decoration: underline;
}

.work-footer-email:hover {
    color: #777777;
    text-decoration: underline;
}

.work-footer-email:visited,
.work-footer-email:active,
.work-footer-email:focus {
    color: #ffffff;
    text-decoration: underline;
}

.work-footer-about-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #ffffff;
    font-size: 1rem;
    font-weight: normal;
    text-align: left;
    margin: 0;
    padding: 0 6rem 0 0;
    line-height: 1.4;
}

.work-footer-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #ffffff;
    font-size: 1rem;
    font-weight: normal;
    text-align: left;
    margin: 0 0 6rem 0;
    padding-bottom: 3rem;
    position: relative;
}

.work-footer-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.work-footer-logo {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 6rem;
}

.work-footer-copyright {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #777777;
    font-size: 0.75rem;
    font-weight: normal;
    text-align: right;
    margin: 6rem 0 0 0;
}

/* Contact Page - Email and Calendar Boxes Scaling */
/* These rules ONLY affect the two boxes on contact.html */

/* Smooth transitions up to 100% size */
@media (max-width: 1200px) {
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#2f7a46"] p,
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#deefdb"] p {
        font-size: 2.8rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="email.svg"],
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="calendar.svg"] {
        height: 11rem !important;
    }

    /* Scale green box on home page */
    .green-box-text p {
        font-size: 1.7rem !important;
    }

    .green-box-svg img {
        height: 24rem !important;
    }

    /* Scale counter box */
    .counter-box p:not(.counter-headline) span[style*="font-size:3.5rem"] {
        font-size: 3.3rem !important;
    }

    .counter-box p:not(.counter-headline)[style*="font-size:2.2rem"] {
        font-size: 2.1rem !important;
    }

    .counter-box img[src*="navigate.svg"] {
        height: 19rem !important;
    }

}

@media (max-width: 1100px) {
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#2f7a46"] p,
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#deefdb"] p {
        font-size: 2.6rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="email.svg"],
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="calendar.svg"] {
        height: 10.5rem !important;
    }

    .green-box-text p {
        font-size: 1.6rem !important;
    }

    .green-box-svg img {
        height: 22rem !important;
    }

    .counter-box p:not(.counter-headline) span[style*="font-size:3.5rem"] {
        font-size: 3.1rem !important;
    }

    .counter-box p:not(.counter-headline)[style*="font-size:2.2rem"] {
        font-size: 2rem !important;
    }

    .counter-box img[src*="navigate.svg"] {
        height: 18rem !important;
    }
}

@media (max-width: 1000px) {
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#2f7a46"] p,
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#deefdb"] p {
        font-size: 2.4rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="email.svg"],
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="calendar.svg"] {
        height: 10rem !important;
    }

    .green-box-text p {
        font-size: 1.5rem !important;
    }

    .green-box-svg img {
        height: 20rem !important;
    }

    .counter-box p:not(.counter-headline) span[style*="font-size:3.5rem"] {
        font-size: 2.9rem !important;
    }

    .counter-box p:not(.counter-headline)[style*="font-size:2.2rem"] {
        font-size: 1.9rem !important;
    }

    .counter-box img[src*="navigate.svg"] {
        height: 17rem !important;
    }

}

@media (max-width: 965px) {
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#2f7a46"] p,
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#deefdb"] p {
        font-size: 2.2rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="email.svg"],
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="calendar.svg"] {
        height: 9rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div a.nav-cta-button {
        font-size: 0.7rem !important;
        padding: 0.4rem 1rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div a.nav-cta-button img {
        height: 11px !important;
    }

    .green-box-text p {
        font-size: 1.4rem !important;
    }

    .green-box-svg img {
        height: 18rem !important;
    }

    .counter-box p:not(.counter-headline) span[style*="font-size:3.5rem"] {
        font-size: 2.7rem !important;
    }

    .counter-box p:not(.counter-headline)[style*="font-size:2.2rem"] {
        font-size: 1.8rem !important;
    }

    .counter-box img[src*="navigate.svg"] {
        height: 16rem !important;
    }
}

@media (max-width: 850px) {
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#2f7a46"] p,
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#deefdb"] p {
        font-size: 2rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="email.svg"],
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="calendar.svg"] {
        height: 8.5rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div a.nav-cta-button {
        font-size: 0.65rem !important;
        padding: 0.35rem 0.9rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div a.nav-cta-button img {
        height: 10px !important;
    }

    .counter-box p:not(.counter-headline) span[style*="font-size:3.5rem"] {
        font-size: 2.5rem !important;
    }

    .counter-box p:not(.counter-headline)[style*="font-size:2.2rem"] {
        font-size: 1.7rem !important;
    }

    .counter-box img[src*="navigate.svg"] {
        height: 15rem !important;
    }

}

@media (max-width: 800px) {
    .counter-box p:not(.counter-headline) span[style*="font-size:3.5rem"] {
        font-size: 2.3rem !important;
    }

    .counter-box p:not(.counter-headline)[style*="font-size:2.2rem"] {
        font-size: 1.6rem !important;
    }

    .counter-box img[src*="navigate.svg"] {
        height: 14rem !important;
    }
}


@media (max-width: 750px) {
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#2f7a46"] p,
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#deefdb"] p {
        font-size: 1.8rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="email.svg"],
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="calendar.svg"] {
        height: 8rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div a.nav-cta-button {
        font-size: 0.6rem !important;
        padding: 0.3rem 0.8rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div a.nav-cta-button img {
        height: 9px !important;
    }

    .counter-box p:not(.counter-headline) span[style*="font-size:3.5rem"] {
        font-size: 2.1rem !important;
    }

    .counter-box p:not(.counter-headline)[style*="font-size:2.2rem"] {
        font-size: 1.5rem !important;
    }

    .counter-box img[src*="navigate.svg"] {
        height: 13rem !important;
    }
}

@media (max-width: 700px) {
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#2f7a46"] p,
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#deefdb"] p {
        font-size: 1.9rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="email.svg"],
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="calendar.svg"] {
        height: 8rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div > div[style*="position:absolute"][style*="top"] {
        top: 1.2rem !important;
        left: 1.2rem !important;
    }

    .counter-box p:not(.counter-headline) span[style*="font-size:3.5rem"] {
        font-size: 2.2rem !important;
    }

    .counter-box p:not(.counter-headline)[style*="font-size:2.2rem"] {
        font-size: 1.6rem !important;
    }

    .counter-box img[src*="navigate.svg"] {
        height: 13.5rem !important;
    }
}

@media (max-width: 663px) {
    /* Stack boxes vertically */
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] {
        flex-direction: column !important;
    }

    /* Make boxes taller when stacked */
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="padding-top:41.67%"] {
        padding-top: 110% !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#2f7a46"] p,
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#deefdb"] p {
        font-size: 2.5rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="email.svg"],
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="calendar.svg"] {
        height: 10rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div > div[style*="position:absolute"][style*="top"] {
        top: 1.5rem !important;
        left: 1.5rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div a.nav-cta-button {
        font-size: 0.8rem !important;
        padding: 0.5rem 1.2rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div a.nav-cta-button img {
        height: 14px !important;
    }
}

@media (max-width: 577px) {
    /* Scale down industries headline at narrower width */
    .industries-headline[style*="font-size:2.2rem"] {
        font-size: 2.6rem !important;
    }
}

@media (max-width: 500px) {
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#2f7a46"] p,
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div[style*="background-color:#deefdb"] p {
        font-size: 2rem !important;
    }

    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="email.svg"],
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="calendar.svg"] {
        height: 8rem !important;
    }

    /* Scale down green box from 663px reference */
    .green-box-text p[style*="font-size:1.8rem"] {
        font-size: 2.2rem !important;
    }

    .green-box-svg img[style*="height:26rem"] {
        height: 28rem !important;
    }

    #green-box-next img[style*="height:20px"] {
        height: 26px !important;
    }

    /* Scale down Relationships box */
    #typewriter-text {
        font-size: 3.4rem !important;
    }

    /* Scale down counter box from 663px reference */
    .counter-box p:not(.counter-headline) span[style*="font-size:3.5rem"] {
        font-size: 3.8rem !important;
    }

    .counter-box p:not(.counter-headline)[style*="font-size:2.2rem"] {
        font-size: 2.4rem !important;
    }

    .counter-box img[src*="navigate.svg"] {
        height: 18rem !important;
    }

    /* Scale down industries box from 663px reference */
    .industries-headline[style*="font-size:2.2rem"] {
        font-size: 2.4rem !important;
    }

    .industries-headline[style*="margin:0 0 1rem 0"] {
        margin-bottom: 0.85rem !important;
    }

    .industry-scroll p[style*="font-size:0.95rem"] {
        font-size: 1rem !important;
    }
}

@media (max-width: 663px) {
    /* Stack contact form columns */
    form[action="submit-form.php"] {
        flex-direction: column !important;
    }

    /* Reduce padding on Need something fast section when stacked */
    div[style*="background-color:#16271a"][style*="padding:1.5rem"][style*="margin-top:5px"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Stack What we offer section on solutions page */
    body div[style*="background-color:#16271a"][style*="padding:4rem"] div[style*="display:grid"][style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    /* Add top margin to second grid to maintain spacing */
    body div[style*="background-color:#16271a"][style*="padding:4rem"] div[style*="display:grid"][style*="grid-template-columns:1fr 1fr"]:last-of-type {
        margin-top: 3rem !important;
    }

    /* Hide divider strokes when stacked */
    body div[style*="background-color:#16271a"][style*="padding:4rem"] div[style*="display:grid"] > div div[style*="height:1px"] {
        display: none !important;
    }

    /* Reset button bottom margins for consistent spacing */
    body div[style*="background-color:#16271a"][style*="padding:4rem"] div[style*="display:grid"] > div button {
        margin-bottom: 0 !important;
    }

    /* Reset paragraph bottom margins for consistent spacing on about page */
    body div[style*="background-color:#16271a"][style*="padding:4rem"] div[style*="display:grid"] > div p[style*="margin:0 0 2.5rem 0"] {
        margin-bottom: 0 !important;
    }

    /* Adjust Your growth partner section on about page */
    body div[style*="background-color:#16271a"][style*="padding:4rem"] div[style*="display:grid"] > div img[src*="growth.svg"] {
        margin-top: -0.5rem !important;
    }

    /* Stack 3-column layout on home page */
    div[style*="display:flex;gap:5px;margin:2rem 2rem 0 2rem"] {
        flex-direction: column !important;
    }

    /* Scale green box text and images BIGGER when stacked at 663px */
    .green-box-text p[style*="font-size:1.8rem"] {
        font-size: 2.6rem !important;
    }

    .green-box-svg img[style*="height:26rem"] {
        height: 32rem !important;
    }

    #green-box-next img[style*="height:20px"] {
        height: 30px !important;
    }

    /* Scale Relationships box text BIGGER at 663px */
    #typewriter-text {
        font-size: 4rem !important;
    }

    /* Stack counter box row (image carousel + counter box) */
    div[style*="display:flex;gap:5px;margin:5px 2rem 0 2rem"] {
        flex-direction: column !important;
    }

    /* Change all boxes in the row to tall rectangles when stacked */
    div[style*="display:flex;gap:5px;margin:5px 2rem 0 2rem"] > div[style*="padding-top:41.67%"] {
        padding-top: 125% !important;
    }

    #image-carousel[style*="padding-top:41.67%"] {
        padding-top: 125% !important;
    }

    .counter-box[style*="padding-top:41.67%"] {
        padding-top: 125% !important;
    }

    /* Add more padding to counter box text container */
    .counter-box > div[style*="position:absolute"][style*="top:1rem"][style*="left:1.5rem"] {
        top: 2rem !important;
        left: 2rem !important;
        width: 85% !important;
    }

    /* Scale counter box BIGGER when stacked at 663px */
    .counter-box p:not(.counter-headline) span[style*="font-size:3.5rem"] {
        font-size: 4.5rem !important;
    }

    .counter-box p:not(.counter-headline)[style*="font-size:2.2rem"] {
        font-size: 2.8rem !important;
    }

    .counter-box img[src*="navigate.svg"] {
        height: 20rem !important;
    }

    /* Stack three boxes vertically at 663px - keep split structure */
    .three-boxes-row {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    /* Make boxes shorter */
    .three-box {
        min-height: 350px !important;
    }

    /* Resize text */
    .three-boxes-row .three-box .three-box-top .three-box-text {
        font-size: 3rem !important;
    }

    /* Resize images */
    .three-boxes-row .three-box .three-box-bottom .three-box-image {
        height: 12rem !important;
    }

    /* Resize buttons */
    .three-boxes-row .three-box .three-box-top .three-box-button {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
    }

}

@media (max-width: 663px) {
    /* Hide carousel subheads on mobile */
    .carousel-slide p[style*="font-weight:200"][style*="font-size:1.2rem"] {
        display: none !important;
    }

    /* Make carousel boxes taller on mobile */
    #carousel-container {
        padding-top: 50% !important;
    }

    /* Keep headlines on left half */
    #carousel-container .carousel-slide[style] {
        width: 50% !important;
        left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* Scale carousel headlines */
    .carousel-slide p[style*="font-size:2.2rem"] {
        font-size: 2rem !important;
    }

    /* Keep images on right half */
    .carousel-image {
        right: 0 !important;
        width: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Adjust slide 1 pie chart */
    #pie-chart-drop {
        right: -2rem !important;
    }

    #pie-chart-drop img {
        height: 22rem !important;
    }

    /* Adjust slide 2 bar chart */
    #bar-chart-img {
        height: 18rem !important;
    }

    /* Adjust slide 3 time image */
    .carousel-image[data-slide="3"] img[src="images/time-1.svg"] {
        height: 18rem !important;
    }
}

@media (max-width: 550px) {
    /* Scale down carousel elements */
    #carousel-container .carousel-slide[style] {
        left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .carousel-slide p[style*="font-size:2.2rem"] {
        font-size: 1.6rem !important;
    }

    #pie-chart-drop img {
        height: 18rem !important;
    }

    #bar-chart-img {
        height: 15rem !important;
    }

    .carousel-image[data-slide="3"] img[src="images/time-1.svg"] {
        height: 15rem !important;
    }
}

@media (max-width: 450px) {
    /* Scale down carousel elements further */
    #carousel-container .carousel-slide[style] {
        left: 1rem !important;
        padding-right: 1rem !important;
    }

    .carousel-slide p[style*="font-size:2.2rem"] {
        font-size: 1.3rem !important;
    }

    #pie-chart-drop img {
        height: 14rem !important;
    }

    #bar-chart-img {
        height: 12rem !important;
    }

    .carousel-image[data-slide="3"] img[src="images/time-1.svg"] {
        height: 16rem !important;
    }
}

@media (max-width: 350px) {
    /* Scale down carousel elements for smallest screens */
    #carousel-container .carousel-slide[style] {
        left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .carousel-slide p[style*="font-size:2.2rem"] {
        font-size: 1.1rem !important;
    }

    #pie-chart-drop img {
        height: 11rem !important;
    }

    #bar-chart-img {
        height: 9rem !important;
    }

    .carousel-image[data-slide="3"] img[src="images/time-1.svg"] {
        height: 9rem !important;
    }
}

@media (max-width: 489px) {
    /* Make carousel navigation text and button smaller */
    div[style*="display:flex;align-items:center;margin-top:2rem"] p[style*="Why Traditional Lending Falls Short"] {
        font-size: 0.7rem !important;
    }

    #carousel-next {
        font-size: 0.7rem !important;
    }

    #carousel-next span {
        font-size: 0.7rem !important;
    }

    #carousel-next img {
        height: 10px !important;
    }

    /* Make slide 3 image bigger */
    .carousel-image[data-slide="3"] img[src="images/time-1.svg"] {
        height: 20rem !important;
    }
}

@media (max-width: 480px) {
    /* Make carousel headlines smaller */
    #carousel-container .carousel-slide p[style*="font-size:2.2rem"] {
        font-size: 0.95rem !important;
    }

    /* Make top page headline bigger */
    h1[style*="clamp(2.25rem,5.5vw,4rem)"] {
        font-size: 2.4rem !important;
    }

    /* Make "Doing what traditional banks" headline smaller */
    h2[style*="font-size:3.5rem"] {
        font-size: 2.5rem !important;
    }

}

@media (max-width: 500px) {
    /* Scale down three boxes below 500px */
    .three-boxes-row .three-box .three-box-top .three-box-text {
        font-size: 3rem !important;
    }

    .three-boxes-row .three-box .three-box-bottom .three-box-image {
        height: 10rem !important;
    }

    .three-boxes-row .three-box .three-box-top .three-box-button {
        font-size: 0.8rem !important;
    }
}


@media (max-width: 430px) {
    /* Scale down three boxes below 430px */
    .three-boxes-row .three-box .three-box-top .three-box-text {
        font-size: 2.5rem !important;
    }

    .three-boxes-row .three-box .three-box-bottom .three-box-image {
        height: 8rem !important;
    }

    .three-boxes-row .three-box .three-box-top .three-box-button {
        font-size: 0.75rem !important;
    }
}

/* Carousel viewport - clip horizontally during transitions at all screen sizes */
.lending-carousel-viewport {
    overflow-x: hidden;
    overflow-y: visible;
}

@media (max-width: 663px) {
    /* Set minimum readable size for counter-box headline - smaller than tablet but still headline-sized */
    .counter-headline {
        font-size: 2.4rem !important;
        line-height: 1.1 !important;
    }

    .counter-headline span[style*="font-size:3.5rem"] {
        font-size: 3.6rem !important;
    }

    /* Lending box mobile behavior below 663px - simplified spacious layout */

    /* Make box tall and spacious, matching box above */
    div[style*="background-color:#5da466"][style*="border-radius:0px"][style*="margin-top:5px"] {
        grid-template-columns: 1fr !important;
        grid-template-rows: 1fr auto !important;
        min-height: 450px !important;
        padding: 2rem 1.5rem !important;
    }

    /* Content area with headline and subhead stacked */
    div[style*="background-color:#5da466"][style*="border-radius:0px"][style*="margin-top:5px"] > div[style*="position:relative"] {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    /* Show subhead on mobile with proper spacing */
    .lending-slide p[style*="font-weight:200"] {
        display: block !important;
        margin-top: 1rem !important;
        line-height: 1.6 !important;
        padding-bottom: 0.5rem !important;
    }

    /* Arrow at bottom of box */
    #lending-next-button {
        height: auto !important;
        padding: 1.5rem !important;
        justify-self: center !important;
        align-self: end !important;
    }

    /* Match headline size to box above */
    .lending-slide p[style*="'Instrument Serif'"] {
        font-size: clamp(2.5rem, 5.5vw, 5.5rem) !important;
        line-height: 1.05 !important;
    }

    /* Style industries box at 663px - match counter box padding */
    div[style*="top:1.5rem"][style*="left:1.5rem"][style*="width:72%"] .industries-headline {
        padding-left: 0.5rem !important;
    }

    /* Adjust industries content wrapper padding */
    .industries-content-wrapper {
        top: 2rem !important;
        left: 2rem !important;
        right: 2rem !important;
        bottom: 2rem !important;
    }

    /* Adjust spacing between headline and scroll */
    .industries-headline[style*="margin:0 0 1rem 0"] {
        margin-bottom: 1rem !important;
    }

    /* Make industry scroll list bigger at 663px */
    .industry-scroll p[style*="font-size:0.95rem"] {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 430px) {
    /* Step down counter-headline at 430px and below for small phones */
    .counter-headline {
        font-size: 1.55rem !important;
    }

    .counter-headline span[style*="font-size:3.5rem"] {
        font-size: 2.35rem !important;
    }
}

@media (max-width: 663px) and (min-width: 578px) {
    /* Make industries headline 3.5rem only between 663px and 578px */
    .industries-headline[style*="font-size:2.2rem"] {
        font-size: 3.5rem !important;
    }
}

@media (max-width: 663px) {
    /* Stack Led by experienced experts section on about page */
    div[style*="background-color:#deefdb"][style*="margin:2rem 2rem 0 2rem"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 2rem !important;
    }

    /* Change vertical divider to horizontal */
    div[style*="background-color:#deefdb"][style*="margin:2rem 2rem 0 2rem"] > div[style*="width:1px"][style*="background-color:#44321b"] {
        width: 10rem !important;
        height: 1px !important;
        align-self: flex-start !important;
    }

    /* Left align the 40+ years section */
    div[style*="background-color:#deefdb"][style*="margin:2rem 2rem 0 2rem"] > div[style*="flex:1"] {
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }

    div[style*="background-color:#deefdb"][style*="margin:2rem 2rem 0 2rem"] > div[style*="flex:1"] > div {
        align-items: flex-start !important;
    }

    /* Make 40+ bigger to align with years of experience width */
    div[style*="background-color:#deefdb"][style*="margin:2rem 2rem 0 2rem"] > div[style*="flex:1"] > div > p[style*="font-size:clamp(5rem, 10vw, 10rem)"] {
        font-size: 5.8rem !important;
    }
}

@media (max-width: 987px) {
    /* Fixed CTA button changes on mobile */
    #fixed-cta span {
        font-size: 0.9rem !important;
    }

    #fixed-cta span::before {
        content: "Schedule a call" !important;
    }

    #fixed-cta span {
        font-size: 0 !important;
    }

    #fixed-cta span::before {
        font-size: 0.9rem !important;
    }

    /* Hide text inside the green button, keep arrow */
    #fixed-cta .nav-cta-button {
        font-size: 0 !important;
        padding: 0.5rem !important;
        border-radius: 50% !important;
        width: 35px !important;
        height: 35px !important;
        gap: 0 !important;
    }

    #fixed-cta .nav-cta-button img {
        height: 14px !important;
        width: auto !important;
    }
}

@media (max-width: 430px) {
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="email.svg"],
    body div[style*="background-color:#16271a"][style*="margin:2rem 2rem 0 2rem"] > div[style*="display:flex;gap:5px"] > div img[src*="calendar.svg"] {
        height: 7rem !important;
    }

    /* Scale down green box further for smallest screens */
    .green-box-text p[style*="font-size:1.8rem"] {
        font-size: 1.8rem !important;
    }

    .green-box-svg img[style*="height:26rem"] {
        height: 24rem !important;
    }

    #green-box-next img[style*="height:20px"] {
        height: 22px !important;
    }

    /* Scale down Relationships box further */
    #typewriter-text {
        font-size: 2.8rem !important;
    }

    /* Scale down counter box further for smallest screens */
    .counter-box p:not(.counter-headline) span[style*="font-size:3.5rem"] {
        font-size: 3.2rem !important;
    }

    .counter-box p:not(.counter-headline)[style*="font-size:2.2rem"] {
        font-size: 2rem !important;
    }

    .counter-box img[src*="navigate.svg"] {
        height: 16rem !important;
    }

    /* Scale down industries box further for smallest screens */
    .industries-headline[style*="font-size:2.2rem"] {
        font-size: 2.2rem !important;
    }

    .industries-headline[style*="margin:0 0 1rem 0"] {
        margin-bottom: 0.7rem !important;
    }

    .industry-scroll p[style*="font-size:0.95rem"] {
        font-size: 0.9rem !important;
    }

}

@media (max-width: 375px) {
    /* Size for counter-headline on very small phones - comfortably readable */
    .counter-headline {
        font-size: 1.5rem !important;
    }

    .counter-headline span[style*="font-size:3.5rem"] {
        font-size: 2.35rem !important;
    }

    /* Reduce padding on counter box for smaller screens */
    .counter-box > div[style*="position:absolute"][style*="top:1rem"][style*="left:1.5rem"] {
        top: 1.5rem !important;
        left: 1.5rem !important;
    }
}
