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

:root {
    /*
     * Responsive sizing so the site feels consistent between desktop and mobile.
     * We use fluid values (clamp) rather than hard breakpoints wherever possible.
     */
    --gutter: clamp(18px, 4vw, 60px);
    /* Header/banner gutters are slightly tighter than the main page gutter per the design reference. */
    --header-gutter: clamp(14px, 3vw, 40px);
    --section-pad-y: clamp(56px, 8vw, 80px);
    --base-font: clamp(16px, 1.15vw, 18px);
    /* Navigation labels */
    /* NOTE: Use a readable scale on desktop while remaining visually distinct from the logo. */
    /* Target ~16–18px on desktop for readability. */
    --nav-font: clamp(16px, 1.15vw, 18px);
    --nav-font-effective: var(--nav-font);

    /* Banner/utility text sizing. (Used by the green top bar.) */
    /* Increased by ~50% per request. */
    --banner-font: clamp(16px, 1.3vw, 18px);

    --small-font: clamp(11px, 0.85vw, 12px);

    /* Shared pill label typography (hero kicker + lime pill, and matching section kickers).
       Adjust this single value to scale those labels site-wide. */
    --hero-pill-font: calc(var(--small-font) * 1.89);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.5;
    /* Increased from 1.35 for professional readability */
    overflow-x: hidden;
    font-size: var(--base-font);
    -webkit-font-smoothing: antialiased;
}

p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    margin-bottom: 1.25em;
}

/* Navigation Logic */

#page-container .page {
    display: none;
}

#page-container .page.active {
    display: block;
}

/* Site header (avoid styling section <header> elements) */
.site-header {
    background: #fff;
    /* Align navigation left (avoid space-between centering) and tighten horizontal inset. */
    padding: 18px var(--header-gutter);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Ensure section headers render normally (do not inherit the sticky site header layout) */
main header,
section header {
    background: transparent;
    padding: 0;
    display: block;
    border: 0;
    position: static;
    top: auto;
    z-index: auto;
    gap: 0;
}

.logo {
    /* Larger brand mark per mockup */
    font-size: clamp(28px, 2.2vw, 36px);
    font-weight: 700;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.logo a {
    font-size: clamp(28px, 2.2vw, 36px);
    font-weight: 700;
    letter-spacing: -0.5px;
    cursor: pointer;
    text-decoration: none;
    color: #000;
}
.logo a:hover {
    text-decoration: none;
    color: #000;
}

nav {
    display: flex;
    gap: clamp(16px, 2.2vw, 28px);
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #000;
    /* Slightly larger navigation labels per mockup */
    font-size: var(--nav-font-effective);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    background: #f6f6f6;
    border: 1px solid #e9e9e9;
    border-radius: 999px;
    padding: 10px;
    cursor: pointer;
    width: 46px;
    height: 46px;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #000;
    margin: 4px 0;
    transition: transform 200ms ease, opacity 200ms ease;
}

/* Hamburger -> X when open */
body.nav-open #nav-toggle .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.nav-open #nav-toggle .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

body.nav-open #nav-toggle .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Overlay behind the mobile menu */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
    z-index: 90;
}

body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Prevent background scroll when menu is open */
body.nav-open {
    overflow: hidden;
}

nav a:hover {
    opacity: 0.7;
}

nav a.active-link {
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
    text-decoration-color: #CCFF00;
}

.header-cta {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.btn-header {
    /* Matches the reference where "Book a Call" reads like a top-nav label. */
    background: transparent;
    color: #000;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    font-size: var(--nav-font-effective);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-header:hover {
    opacity: 0.9;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* Green Banner */
.green-banner {
    background: #CCFF00;
    padding: 12px var(--header-gutter);
    text-align: center;
    font-size: var(--banner-font);
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Backgrounds */
.bg-light {
    background: #F5F5F5;
}

.bg-white {
    background: #fff;
}

.bg-lime {
    background: #CCFF00;
}

/* Section */
/*
 * Sections should align strictly with the container gutter.
 * Apply vertical padding on the section and let .container control horizontal inset.
 */
section {
    padding: var(--section-pad-y) 0;
}

/* Home hero background treatment mirrors the reference (soft grey wash). */
.home-hero {
    background: linear-gradient(180deg, #F0F0F0 0%, #F5F5F5 100%);
}

/* Hero Section */
.hero-title {
    /* Default headline scale (section titles, internal pages). */
    font-size: clamp(38px, 4.8vw, 68px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 50px;
    letter-spacing: -1.5px;
    /* Tighter for premium look */
    text-wrap: balance;
    text-align: left;
}

/* Home hero headline is larger per the reference. */
.home-hero .hero-title {
    font-size: clamp(46px, 6.2vw, 92px);
    margin-bottom: clamp(28px, 4.5vw, 56px);
}

.hero-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(36px, 5vw, 80px);
    align-items: start;
    text-align: left;
}

/* Home hero matches the design reference: kicker + pill on the left, paragraph on the right. */
.home-hero .hero-title {
    font-size: clamp(46px, 6.4vw, 92px);
    margin-bottom: clamp(34px, 4.8vw, 56px);
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

/* Carousel Styles */
.hero-title-carousel {
    position: relative;
    min-height: 1.2em;
}

.carousel-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    /* Faster fade so messages don't overlap/linger */
    transition: opacity 0.35s ease-in-out;
    text-align: left;
}

.carousel-message.active {
    position: relative;
    opacity: 1;
}

.home-hero .hero-content {
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: clamp(40px, 7vw, 140px);
}

/* Prevent cramped two-column hero on small tablets/mobile (avoids pill text clipping) */
@media (max-width: 920px) {
    .home-hero .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-text {
        max-width: none;
    }
}

.home-hero .hero-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-kicker {
    font-size: var(--hero-pill-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.label-button {
    color: #000;
    background: #CCFF00;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: var(--hero-pill-font);
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    line-height: 1.15;
}

/* Ensure label-button looks consistent when used as an <a> */
.label-button,
.label-button:link,
.label-button:visited {
    color: #000;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.label-button:focus,
.label-button:focus-visible {
    outline: none;
}



.hero-text {
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.6;
    max-width: 550px;
}

/* Video Section */
.image-section {
    position: relative;
    overflow: visible;
    width: 100%;
    height: 560px;
    background: #000 center/cover no-repeat;
    margin: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Per-section video thumbnails */
#benefits-video-section {
    background-image: url('https://img.youtube.com/vi/eH_0KMaAzbQ/maxresdefault.jpg');
}

#resources-video-section {
    background-image: url('https://img.youtube.com/vi/yLRkOes3NbA/maxresdefault.jpg');
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background: #000;
}

.video-container.active {
    display: block;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s;
}

.play-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.play-button {
    width: 80px;
    height: 80px;
    background: #CCFF00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #000;
    line-height: 1;
    padding-left: 5px;
    transition: transform 0.2s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    transform: scale(1.1);
}

.image-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #CCFF00;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-caption {
    background: #F5F5F5;
    padding: 16px 0;
    text-align: left;
}

.video-caption p {
    margin: 0;
    font-size: 22.5px;
    font-weight: 500;
    color: #333;
    font-style: italic;
}

/* Grids */
.benefits-grid,
.clients-grid,
.tech-grid,
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 50px;
}

/* Benefits page layout (matches provided reference) */
.benefits-hero .hero-content {
    align-items: flex-start;
}

.benefits-hero .hero-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefits-title {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.8px;
    margin: 0 0 28px;
    text-align: left;
}

.benefits-fit-body {
    max-width: 980px;
    margin: 0;
    text-align: left;
}

.benefits-fit-body p {
    text-align: left;
}

.benefits-testimonial {
    padding-top: clamp(38px, 5.4vw, 74px);
    padding-bottom: clamp(38px, 5.4vw, 74px);
}

.testimonial-wrap {
    max-width: 980px;
}

.testimonial-quote {
    font-size: clamp(24px, 4.2vw, 44px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.9px;
    margin: 0 0 18px;
}

.testimonial-source {
    font-size: 14px;
    line-height: 1.4;
    color: #111;
}

.benefits-note {
    margin-top: 26px;
    max-width: 520px;
    margin-left: auto;
}

.benefits-note-label {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}

.benefits-note-text {
    font-size: 14px;
    line-height: 1.6;
}

/* Benefits: "Automation that fits" section */
.benefits-fit-body {
    max-width: 860px;
}

.benefits-fit-body p {
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.7;
    margin: 0 0 16px;
    color: #111;
}

.benefits-fit-body p:last-child {
    margin-bottom: 0;
}

.benefits-case-cta {
    margin-top: 34px;
    padding: clamp(26px, 3.5vw, 42px) clamp(18px, 3vw, 34px);
    background: #F5F5F5;
    border: 1px solid #e5e5e5;
    text-align: center;
}

.benefits-case-cta-prompt {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    letter-spacing: -0.4px;
    margin: 0 0 14px;
}

.benefits-case-cta-button {
    margin: 0 0 14px;
}

.benefits-case-cta-support {
    font-size: 14px;
    line-height: 1.6;
    color: #111;
    max-width: 740px;
    margin: 0 auto;
}

.benefits-cta {
    padding-top: clamp(26px, 4vw, 46px);
    padding-bottom: clamp(52px, 7vw, 84px);
}

.benefits-cta-panel {
    margin-top: 0;
}

/* Benefit Cards (Benefits page): dynamic swap/expand like homepage cards */
.benefits-swap-grid {
    gap: 18px;
}

.benefit-card {
    position: relative;
    overflow: visible;
    overflow: hidden;
    cursor: pointer;
    /* Ensure all cards render as equal-height tiles in the grid.
       Grid items are stretched to the tallest card in each row; without a
       background on the parent (and a full-height front layer) shorter cards
       can appear visually misaligned at the bottom edge. */
    background: #000;
    outline: 2px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, outline-color 0.25s ease;
}

.benefit-card:hover,
.benefit-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    outline-color: rgba(0, 255, 255, 0.85);
}

.benefit-front {
    background: #000;
    color: #fff;
    padding: 40px 30px;
    min-height: 170px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.25s ease;
}

.benefit-front h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    margin: 0;
}

.benefit-front .checkmark {
    color: #CCFF00;
    font-size: 32px;
    font-weight: 700;
    text-align: right;
}

.benefit-detail {
    position: absolute;
    inset: 0;
    padding: 34px 30px;
    padding-bottom: 70px;
    background: #00FFFF;
    color: #000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.benefit-detail-text {
    margin: 0;
    font-size: 20px;
    line-height: 1.18;
    letter-spacing: -0.2px;
    max-width: 92%;
}

.benefit-detail-check {
    position: absolute;
    right: 18px;
    bottom: 14px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.benefit-card.swap-card:hover .benefit-front,
.benefit-card.swap-card:focus-visible .benefit-front,
.benefit-card.swap-card.is-expanded .benefit-front {
    opacity: 0;
}

.benefit-card.swap-card:hover .benefit-detail,
.benefit-card.swap-card:focus-visible .benefit-detail,
.benefit-card.swap-card.is-expanded .benefit-detail {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Ensure front layer isn't interactive when detail is shown */
.benefit-card.swap-card:hover .benefit-front,
.benefit-card.swap-card.is-expanded .benefit-front {
    pointer-events: none;
}

/* Client Card */
.client-card {
    background: #000;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, outline-color 0.25s ease;
    outline: 2px solid transparent;
}

.client-card:hover,
.client-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    outline-color: rgba(0, 255, 255, 0.9);
}

.client-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #333 0%, #111 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.3s;
}

.client-card:hover .client-image img {
    filter: grayscale(0%) contrast(1.1);
}

.client-content {
    padding: 30px;
    color: #fff;
    min-height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.client-content h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
}

.client-content h3 {
    font-size: 18px;
}

.arrow {
    color: #00FFFF;
    font-size: 32px;
    font-weight: 700;
}

.client-card:hover .arrow,
.client-card:focus-visible .arrow {
    transform: translateX(3px);
}

.arrow {
    transition: transform 0.25s ease;
}

/* Home: Who We Work With section */
.home-workwith {
    padding-top: clamp(34px, 5vw, 64px);
    padding-bottom: clamp(14px, 2vw, 24px);
    /* Reduced from 68px/78px to bring next section closer */
    position: relative;
    overflow: visible;
}

.workwith-grid {
    margin-top: 0;
}

.workwith-head {
    margin-bottom: clamp(28px, 4vw, 48px);
}

.workwith-title {
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.7px;
    margin: 0;
    text-align: left;
}

/* Home: What We Do (Section 3) */
.home-whatwedo {
    padding-top: clamp(14px, 2vw, 24px);
    /* Reduced from 64px */
    padding-bottom: clamp(34px, 5vw, 64px);
    position: relative;
    overflow: visible;
}


.whatwedo-head {
    margin-bottom: clamp(18px, 2.8vw, 30px);
    max-width: 980px;
    padding-bottom: clamp(14px, 2.2vw, 22px);
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

.whatwedo-kicker {
    font-size: var(--hero-pill-font);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 12px;
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #000;
    border-radius: 999px;
}

.whatwedo-title {
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.7px;
    margin: 0;
    color: #000;
    text-align: left;
}

.whatwedo-body {
    max-width: 980px;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.2px;
    color: #000;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

.whatwedo-body p {
    margin: 0 0 14px;
    text-align: left;
}

.whatwedo-body p:last-child {
    margin-bottom: 0;
}



.workwith-head {
    margin-bottom: clamp(18px, 2.8vw, 34px);
    max-width: 980px;
    text-align: left;
    margin-left: 0;
}

.workwith-kicker {
    font-size: var(--hero-pill-font);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 12px;
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #000;
    border-radius: 999px;
}

.workwith-title {
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -0.7px;
    margin: 0;
    color: #000;
    max-width: 980px;
}

/* Swap/expand cards (homepage framework): reveal detailed copy + checkmark on hover/focus.
   Uses an overlay so layout does not jump. */
.swap-card {
    position: relative;
    overflow: visible;
}

.swap-card .client-front,
.swap-card .process-front {
    transition: opacity 0.25s ease;
}

.workwith-card.swap-card {
    height: 360px;
}

.workwith-card .client-front {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.workwith-card .client-detail {
    position: absolute;
    inset: 0;
    padding: 28px 26px;
    background: #00FFFF;
    color: #000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.workwith-card .client-detail-text {
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.2px;
    max-width: 90%;
}

.workwith-card .client-detail-check {
    position: absolute;
    right: 18px;
    bottom: 14px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.workwith-card.swap-card:hover .client-front,
.workwith-card.swap-card:focus-visible .client-front,
.workwith-card.swap-card.is-expanded .client-front {
    opacity: 0;
}

.workwith-card.swap-card:hover .client-detail,
.workwith-card.swap-card:focus-visible .client-detail,
.workwith-card.swap-card.is-expanded .client-detail {
    opacity: 1;
    pointer-events: auto;
}

/* Process cards swap */
.process-card.swap-card {
    position: relative;
    overflow: visible;
    overflow: hidden;
}

.process-card .process-detail {
    position: absolute;
    inset: 0;
    padding: 34px 30px;
    /* Ensure longer copy is not clipped in the expanded state */
    overflow: auto;
    /* Reserve space so the checkmark doesn’t sit on top of text */
    padding-bottom: 70px;
    background: #00FFFF;
    color: #000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.process-card .process-detail .process-icon,
.process-card .process-detail .process-number {
    color: #000;
}

.process-card .process-detail-heading {
    margin-top: 14px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.3px;
    max-width: 92%;
}

.process-card .process-detail-text {
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.2px;
    max-width: 92%;
}

.process-card .process-detail-check {
    position: absolute;
    right: 18px;
    bottom: 14px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.process-card.swap-card:hover .process-front,
.process-card.swap-card:focus-visible .process-front,
.process-card.swap-card.is-expanded .process-front {
    opacity: 0;
}

.process-card.swap-card:hover .process-detail,
.process-card.swap-card:focus-visible .process-detail,
.process-card.swap-card.is-expanded .process-detail {
    opacity: 1;
    pointer-events: auto;
}

/* Home: Quote/stat section */
/* Keep the homepage quote styled identically to the Resources quote band. */
.home-quote {
    padding: 0;
    background: transparent;
    text-align: left;
}

/* Home: “How we work” process cards */
.home-process {
    padding-top: clamp(44px, 6vw, 76px);
    padding-bottom: clamp(60px, 7vw, 92px);
}

.process-head {
    max-width: 980px;
    margin: 0 auto clamp(22px, 3vw, 36px);
    padding-bottom: clamp(14px, 2.2vw, 22px);
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

.process-kicker {
    font-size: var(--hero-pill-font);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 12px;
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #000;
    border-radius: 999px;
}

.process-section-title {
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -0.7px;
    margin: 0 auto 12px;
    color: #000;
}

.process-intro {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.2px;
    color: #000;
    max-width: 860px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.process-card {
    background: #000;
    color: #fff;
    /* Taller cards so expanded copy fits comfortably */
    min-height: 320px;
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    cursor: pointer;
    outline: 2px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, outline-color 0.25s ease;
}

.process-card:hover,
.process-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    outline-color: rgba(0, 255, 255, 0.9);
}

.process-icon {
    color: #00FFFF;
    margin-bottom: 18px;
}

.process-number {
    color: #00FFFF;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.process-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.process-arrow {
    margin-top: auto;
    align-self: flex-end;
    color: #00FFFF;
    font-size: 34px;
    font-weight: 700;
    transition: transform 0.25s ease;
}

.process-card:hover .process-arrow,
.process-card:focus-visible .process-arrow {
    transform: translateX(3px);
}

.process-note {
    grid-column: 3 / span 2;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    padding-top: 8px;
    align-items: start;
}

.process-note-label {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.process-note-text {
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    max-width: 520px;
}

.process-note-text p {
    margin: 0 0 10px;
}

.process-note-text p:last-child {
    margin-bottom: 0;
}

.process-note-text p {
    margin: 0 0 10px;
}

.process-note-text p:last-child {
    margin-bottom: 0;
}

/* Home: Green CTA panel */
.cta-panel {
    background: #CCFF00;
    padding: clamp(42px, 6vw, 70px) clamp(22px, 4vw, 48px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.cta-panel h2 {
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.6px;
}

.cta-panel .cta-body {
    margin: 0;
    max-width: 760px;
    font-size: 16px;
    line-height: 1.55;
    color: #111;
}

.cta-button {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.cta-panel-phone .cta-button {
    padding: 16px 40px;
    font-size: 18px;
}

.cta-panel-phone .cta-alt-contact {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

.cta-panel-phone .cta-alt-contact a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* Insight Card */
.insight-card {
    background: #F5F5F5;
    padding: 40px 30px;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    transition: background 0.3s;
}

.insight-card:hover {
    background: #fff;
}

.insight-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 20px;
}

.insight-card h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.insight-card h3 {
    font-size: 28px;
}

.insight-card p {
    font-size: 15px;
    color: #444;
    margin-bottom: 30px;
}

/* Impact Cards */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.impact-card {
    background: #00FFFF;
    padding: 50px 40px;
}

.impact-card h3 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.impact-card p {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact Form */
.contact-form {
    background: #000;
    padding: 60px;
    margin-top: 50px;
    border-radius: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-primary {
    display: inline-block;
    background: #000;
    color: #CCFF00;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-submit {
    background: #CCFF00;
    color: #000;
    width: 100%;
    margin-top: 10px;
}

/* Tech Grid */
.tech-card {
    background: #fff;
    padding: 40px 20px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    text-align: center;
    border: 1px solid #e5e5e5;
}

/* Note Box */
.note-box {
    margin-top: 40px;
    max-width: 500px;
}

.note-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.note-box p {
    font-size: 14px;
    line-height: 1.6;
}


/* Inline link */
.inline-link {
    color: #000;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

/* Team */
.team-grid {
    display: grid;
    /*
     * Use auto-fit so the last row doesn't leave an empty column.
     * This keeps cards evenly distributed (e.g., 5 cards -> 3 + 2).
     */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    align-items: stretch;
    /* Allow hovered cards to visually sit above neighbors when scaled. */
    position: relative;
    overflow: visible;
}

.team-card {
    background: #F5F5F5;
    border: 1px solid #e5e5e5;
    padding: 35px 30px;
    /* Make the full card area consistent and avoid layout jitter. */
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: visible;
    z-index: 0;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 180ms ease;
    will-change: transform;
    cursor: pointer;
}

/* Hover highlight (desktop / mouse only)
   - Scale card without reflow
   - Bring to front via z-index
   - De-emphasize siblings while hovering within the grid
*/


.team-avatar {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto 18px;
    aspect-ratio: 1 / 1;
    object-position: center;
}

.team-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.team-role {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #444;
    margin-bottom: 14px;
}

.team-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #222;
    margin-bottom: 12px;
}

.team-card p:last-child {
    margin-bottom: 0;
}

/* Case studies */
.case-study-card {
    background: #F5F5F5;
    border: 1px solid #e5e5e5;
    padding: 55px 50px;
}

.case-study-header {
    margin-bottom: 35px;
    text-align: center;
}

.case-study-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.case-study-subtitle {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #444;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 35px;
}

.case-study-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 22px 0 12px;
}

.case-study-section-title:first-child {
    margin-top: 0;
}

.case-list {
    padding-left: 18px;
    line-height: 1.7;
    font-size: 15px;
}

.case-list li {
    margin-bottom: 8px;
}

.case-study-figure {
    margin-top: 20px;
}

.case-study-figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #fff;
}

/* Toast */
#toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #CCFF00;
    color: #000;
    text-align: center;
    border-radius: 50px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    font-weight: 700;
}

#toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

/* Footer */
footer {
    background: #000;
    color: #fff;
    padding: 60px var(--gutter) 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(24px, 5vw, 60px);
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: #CCFF00;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer-address {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.8;
    margin: 0;
}

.footer-column h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 12px;
    opacity: 0.6;
}

@media (max-width: 1024px) {

    /* Keep the same design system, just tighten a few spacings */
    nav {
        gap: 14px;
    }

    .benefits-grid,
    .tech-grid,
    .footer-grid,
    .clients-grid,
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .process-note {
        grid-column: 1 / -1;
        grid-template-columns: 90px 1fr;
    }

    .case-study-grid {
        gap: 34px;
    }
}

@media (max-width: 768px) {

    /* Mobile: maintain the same visual style, but stack grids and use a menu toggle. */
    .site-header {
        gap: 12px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    nav#main-nav {
        /* Off-canvas drawer for a more modern mobile menu */
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(86vw, 360px);
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 92px 18px 22px;
        border-left: 1px solid #e5e5e5;
        box-shadow: -24px 0 60px rgba(0, 0, 0, 0.12);
        gap: 8px;
        transform: translateX(110%);
        transition: transform 240ms ease;
        z-index: 95;
    }

    body.nav-open nav#main-nav {
        transform: translateX(0);
    }

    nav#main-nav a {
        padding: 14px 14px;
        border-radius: 14px;
        font-size: 16px;
        font-weight: 650;
        width: 100%;
    }

    nav#main-nav a:hover,
    nav#main-nav a:focus {
        background: #f3f3f3;
        opacity: 1;
    }

    nav#main-nav a.active-link {
        background: #f7ffe0;
        text-decoration: none;
    }

    .hero-content,
    .benefits-grid,
    .tech-grid,
    .footer-grid,
    .clients-grid,
    .process-grid,
    .insights-grid,
    .impact-grid,
    .form-grid,
    .team-grid,
    .case-study-grid {
        grid-template-columns: 1fr;
    }

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

    .process-note {
        grid-column: 1 / -1;
    }

    .hero-title {
        margin-bottom: 32px;
    }

    .image-section {
        height: 340px;
    }

    .process-note {
        grid-template-columns: 1fr;
    }

    /* Keep CTA text-sized on mobile as well. */
    .btn-header {
        padding: 0;
        font-size: var(--nav-font-effective);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(38px, 10.5vw, 52px);
    }

    .home-hero .hero-title {
        font-size: clamp(44px, 11.5vw, 58px);
    }

    .team-avatar {
        width: 150px;
        height: 150px;
    }

    .case-study-card {
        padding: 40px 26px;
    }
}


/* Home hero: scale adjustments requested */
.home-hero .hero-text {
    font-size: clamp(19px, 1.5vw, 22px);
}

/* About: keep all 5 team cards in a single row on desktop */
@media (min-width: 1200px) {
    #about-us .team-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    /* Tighten spacing so 5 cards fit comfortably on common desktop widths. */
    #about-us .team-card {
        padding: 24px 18px;
    }

    #about-us .team-avatar {
        width: 120px;
        height: 120px;
        margin-bottom: 14px;
    }

    #about-us .team-card h3 {
        font-size: 18px;
    }

    #about-us .team-role {
        font-size: 11px;
    }

    #about-us .team-card p {
        font-size: 13px;
    }
}

/* Resources page (match reference layout) */
.resources-hero .hero-title {
    font-size: clamp(46px, 6.4vw, 92px);
    margin-bottom: clamp(34px, 4.8vw, 56px);
}

.resources-hero .hero-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

.resources-hero-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

.resources-kicker {
    font-size: var(--hero-pill-font);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000;
}

.resources-section-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 40px;
    letter-spacing: -0.6px;
    line-height: 1.1;
    text-align: left;
}

.resources-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.logo-tile {
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
    will-change: transform;
}

.logo-tile:hover {
    transform: translateY(-6px);
}

.logo-tile:focus-visible {
    outline: 2px solid #000;
    outline-offset: 4px;
}

.logo-tile img {
    width: 100%;
    height: auto;
    display: block;
}

.resources-quote {
    padding: 0;
    background: transparent;
}

.resources-quote-layout {
    display: block;
}

.resources-quote-title {
    text-align: left;

    margin: 0;
    font-size: clamp(34px, 4.2vw, 56px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.3px;
}

.resources-quote-source {
    margin-top: 10px;
    font-size: 14px;
    color: #222;
}

.resources-note {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    align-items: start;
}

.resources-note-label {
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.resources-note-text {
    font-size: 14px;
    line-height: 1.6;
    color: #222;
    max-width: 420px;
}

@media (max-width: 980px) {
    .resources-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-quote-layout {
        display: block;
    }

    .resources-note {
        grid-template-columns: 80px 1fr;
    }
}


.label-button * {
    text-decoration: none;
    color: inherit;
}


/* Resources quote section */
.resources-quote-panel {
    max-width: 1100px;
    margin: 0;

    background: transparent;
    padding: clamp(28px, 4vw, 54px);
    box-sizing: border-box;
}

.resources-quote-panel .resources-quote-title {
    max-width: 980px;
}

@media (max-width: 800px) {}



/* Resources quote layout to match mock */
.resources-quote-band {
    background: #ededed;
    padding-top: clamp(44px, 6vw, 86px);
    padding-bottom: clamp(44px, 6vw, 86px);

    /* force full-bleed across viewport even inside centered wrappers */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

.resources-quote-panel {
    background: transparent;
    padding: 0;
    box-sizing: border-box;
}

.resources-quote-note-area {
    background: #fff;
    padding-top: clamp(34px, 4.5vw, 64px);
    padding-bottom: clamp(34px, 4.5vw, 64px);
}

.resources-quote-note-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(30px, 5vw, 80px);
    align-items: start;
}

/* Note block sits under the quote, aligned to the right column */
.resources-quote-note-grid .resources-note {
    grid-template-columns: 90px 1fr;
}

@media (max-width: 800px) {
    .resources-quote-note-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .resources-quote-note-grid>div:first-child {
        display: none;
    }

    .resources-quote-note-grid .resources-note {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* --- BOOKING DASHBOARD (v1.76) --- */
.calendar-embed {
    margin-top: 40px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.calendar-embed iframe {
    width: 100%;
    height: 750px;
    border: 0;
    display: block;
    background: #fff;
}

.calendar-dashboard {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    margin-top: 40px;
    min-height: 750px;
}

.dashboard-sidebar {
    width: 280px;
    background: #000;
    color: #fff;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.dashboard-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #CCFF00;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #CCFF00;
    border-radius: 50%;
    box-shadow: 0 0 10px #CCFF00;
    animation: dashboardPulse 2s infinite;
}

@keyframes dashboardPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.dashboard-nav h4 {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.dashboard-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-nav li {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    color: #aaa;
}

.dashboard-nav li.active {
    background: #1a1a1a;
    color: #CCFF00;
}

.dashboard-nav li:hover:not(.active) {
    background: #111;
    color: #fff;
}

.dashboard-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #222;
}

.dashboard-footer p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    text-align: left !important;
}

.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    padding: 24px 40px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.dashboard-content {
    flex: 1;
    position: relative;
    background: #fcfcfc;
}

@media (max-width: 991px) {
    .calendar-dashboard {
        flex-direction: column;
        min-height: auto;
    }

    .dashboard-sidebar {
        width: 100%;
        padding: 24px;
        gap: 20px;
    }

    .dashboard-nav ul {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .dashboard-nav li {
        white-space: nowrap;
    }

    .dashboard-footer {
        display: none;
    }
}