/* Main Styles — N.Sani Construction
   Turner Authority + Wealthsimple Editorial */

/* ============================================
   BASE STYLES
   ============================================ */
html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    line-height: var(--leading-normal);
    letter-spacing: 0.1px;
    color: var(--color-text-primary);
    background-color: #F5F5F5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Tiempos Text — tighter tracking globally (-0.6px) */
.section-heading,
.bento__title,
.cluster-popup__name,
.contact-form__heading,
.contact-form__info-title,
.contact-form__success-text,
.contact__heading,
.cta-banner__heading,
.difference__card-title,
.difference__heading,
.faq__heading,
.featured__title,
.door-reveal__heading,
.fm-cluster-count,
.footer__logo-text,
.footer__tagline,
.map-popup__title,
.metrics__number,
.metrics__suffix,
.pillar__number,
.pillar__title,
.project-card__title,
.project-detail__added-value-heading,
.project-detail__approach-num,
.project-detail__approach-step-title,
.project-detail__approach-tag,
.project-detail__approach-title,
.project-detail__breakdown-heading,
.project-detail__breakdown-item-title,
.project-detail__breakdown-tag,
.project-detail__carousel-title,
.project-detail__cta-banner-heading,
.project-detail__details-col-title,
.project-detail__faq-question,
.project-detail__faq-title,
.project-detail__hero-sector,
.project-detail__hero-title,
.project-detail__highlight-title,
.project-detail__scope-heading,
.project-detail__stats-value,
.project-detail__timeline-content-title,
.project-detail__timeline-date,
.project-detail__timeline-tag,
.project-detail__timeline-title,
.project-detail__video-showcase-heading,
.project-gallery__text-card-heading,
.project-gallery__title,
.project-list__name,
.project-modal__metric-value,
.project-modal__title,
.project-popup__name,
.projects__hero-title,
.story__card-title,
.story__heading,
.testimonials__heading,
.testimonials__logo--initials,
.testimonials__name,
.trusted-by__headline {
    letter-spacing: -0.6px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-black);
    color: var(--color-pure-white);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-pill);
    z-index: var(--z-modal);
    transition: top var(--duration-base) var(--ease-out);
    font-size: var(--text-sm);
}

.skip-link:focus {
    top: var(--space-4);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Section Variants */
.section--white {
    background: #F5F5F5;
    padding: var(--section-padding) 0;
}

.section--offwhite {
    background: var(--color-offwhite);
    padding: var(--section-padding) 0;
}

.section--navy {
    background: var(--color-navy);
    padding: var(--section-padding) 0;
}

/* Shared Typography Components */
.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: var(--space-4);
}

.section-label--light {
    color: var(--color-orange);
}

.section-heading {
    font-family: var(--font-heading);
    font-size: var(--text-section);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tighter);
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
}

.section-heading--light {
    color: var(--color-text-on-dark);
}

.section-intro {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: var(--text-max-width);
    line-height: var(--leading-normal);
}

.section-intro--light {
    color: var(--color-text-on-dark-muted);
}

.section-body {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-5);
    max-width: var(--text-max-width);
}

.section-header {
    margin-bottom: var(--space-16);
}

.section-header--center {
    text-align: center;
}

.section-header--center .section-intro {
    margin-left: auto;
    margin-right: auto;
}

/* Link Arrow — Turner style orange arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-orange);
    transition: gap var(--duration-base) var(--ease-out);
    margin-top: var(--space-4);
}

.link-arrow:hover {
    gap: var(--space-4);
}

.link-arrow i {
    font-size: 1.1em;
    transition: transform var(--duration-base) var(--ease-out);
}

.link-arrow:hover i {
    transform: translateX(2px);
}


/* ============================================
   HERO — Straka Bold Gold
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 115vh;
    min-height: 600px;
    overflow: visible;
    background: #FFFFFF;
}

.hero-gold {
    z-index: 10;
    position: relative;
    background-color: #FFFFFF;
    background-image:
        linear-gradient(rgba(50, 48, 47, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 48, 47, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(50, 48, 47, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 48, 47, 0.03) 1px, transparent 1px);
    background-size: 160px 160px, 160px 160px, 40px 40px, 40px 40px;
}
.hero-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, #FFFFFF, transparent);
    z-index: 1;
    pointer-events: none;
}

.hero-gold .hero__bg {
    top: 0;
}

.hero-gold .hero__image {
    z-index: 5;
    /* Cap at the skyscraper image's native width (2400px) and center it.
       Without this the image is stretched to 100% of an ultra-wide viewport
       (3440px+) — upscaled past its source resolution and overflowing the
       section. Below a 2400px viewport this max-width is inert, so normal
       desktop and the <=1000px mobile layout are unchanged. The element is
       position:absolute with left:0/right:0, so margin-inline:auto centers
       the capped box within the section. */
    max-width: 2400px;
    margin-inline: auto;
}

/* Hero Gold: section height + image height both scale with vw
   so the layout stays proportional at every screen size. */
.hero-gold {
    height: clamp(420px, 80vw, 115vh);
    min-height: 420px;
    padding-bottom: clamp(40px, 8vw, 0px);
}

/* On narrower screens: image crops tall instead of becoming a sliver,
   and stops hanging below the section. */
@media (max-width: 1000px) {
    .hero-gold .hero__image {
        bottom: 0;
        top: 0;
    }

    .hero-gold .hero__image-img {
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }
}

.hero__bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-gold);
    z-index: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: clip-path;
}

/* Hero Layout — left-aligned, vertically centered.
   `width: calc(100% - 8%)` so the 8% left margin doesn't push the element
   past the right edge of the hero (was: width: 100% + margin-left: 8% =
   108%, overflowing the viewport and producing horizontal scroll on
   mobile because iOS Safari doesn't reliably clip it via body overflow). */
.hero__layout {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: calc(100% - 8%);
    max-width: 1400px;
    height: 100%;
    padding: 0 var(--container-padding);
    margin: 0 auto 0 8%;
    transform: translateY(-6%);
}

/* Hero Content — everything stacked left */
.hero__content {
    position: relative;
    z-index: 2;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    max-width: 50%;
}

.hero__content--left {
    text-align: left;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: #0A1119;
    margin: 0;
}

.hero__title-line {
    display: block;
    white-space: nowrap;
    opacity: 0;
}

.hero__title-line.hero__title-line--split {
    opacity: 1;
}

/* Individual letter spans (injected by JS) */
.hero__title-letter {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo),
                transform 0.5s var(--ease-out-expo);
    will-change: transform, opacity;
}

/* After entrance animation completes, remove transition so scroll droop is instant */
.hero--droop-ready .hero__title-letter {
    transition: none;
}

/* Letters from the left */
[data-letter-direction="left"] .hero__title-letter {
    transform: translateX(-40px);
}

/* Letters from the right */
[data-letter-direction="right"] .hero__title-letter {
    transform: translateX(40px);
}

/* Revealed state */
.hero--loaded .hero__title-letter {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Hero Skyscraper Image: full-width, inside hero__bg, clips with shrink ---- */
.hero__image {
    position: absolute;
    bottom: -15%;
    left: 0;
    right: 0;
    z-index: 3;
    pointer-events: none;
    will-change: transform;
}

.hero__image-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ---- Construction Video: center-bottom, blended transparent ---- */
.hero__building {
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: clamp(320px, 50vw, 700px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s var(--ease-out-expo) 0.3s;
}

.hero--loaded .hero__building {
    opacity: 1;
}

.hero__building-video {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: cover;
    border-radius: var(--radius-lg);
    mix-blend-mode: multiply;
}

/* ---- Circular "Let's Talk" Badge ---- */
.hero__badge {
    position: relative;
    z-index: 4;
    width: 160px;
    height: 160px;
}

/* Outer ring — thin border */
.hero__badge-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1.5px solid var(--color-gray-300);
    color: var(--color-navy);
    position: relative;
    transition: transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
}

.hero__badge-link:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(12, 27, 42, 0.15);
}

/* Rotating SVG text between outer and inner circles */
.hero__badge-text {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: rotateBadge 15s linear infinite;
}

.hero__badge-text text {
    font-family: var(--font-display);
    font-size: 11.5px;
    font-weight: var(--font-semibold);
    fill: var(--color-navy);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

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

/* Inner circle — border ring containing "Let's talk" */
.hero__badge-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 1.5px solid var(--color-gray-300);
    z-index: 1;
    line-height: 1.15;
}

.hero__badge-label {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: var(--font-semibold);
    color: var(--color-navy);
    display: block;
}

/* ---- "What do you want to build?" CTA ---- */
.hero__build-cta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 2.25rem;
    background: var(--color-white);
    border: 1.5px solid var(--color-gray-300);
    border-radius: 100px;
    color: var(--color-navy);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: var(--font-medium);
    letter-spacing: 0.01em;
    min-width: 220px;
    transition: transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out),
                background var(--duration-base) var(--ease-out),
                color var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out);
    cursor: pointer;
    white-space: nowrap;
}

.hero__build-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(12, 27, 42, 0.12);
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
}

.hero__build-cta-text {
    line-height: 1;
}

.hero__build-cta-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-navy);
    color: var(--color-white);
    font-size: 0.9rem;
    transition: transform 0.3s var(--ease-out);
}

.hero__build-cta:hover .hero__build-cta-arrow {
    transform: translateY(3px);
}

/* ---- Hero Responsive ---- */
@media (max-width: 1024px) {
    .hero__layout {
        margin: 0 auto 0 6%;
    }
    .hero__content {
        max-width: 60%;
    }
    .hero__title {
        font-size: clamp(2.2rem, 5vw, 56px);
    }
    .hero__badge-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 600px;
        padding-top: 72px;
    }
    .hero__layout {
        margin: 0 auto 0 4%;
    }
    .hero__content {
        max-width: 80%;
    }
    .hero__title {
        font-size: clamp(2.2rem, 7vw, 56px);
    }
    .hero__building {
        width: clamp(240px, 65vw, 400px);
        bottom: -60px;
    }
}

@media (max-width: 480px) {
    .hero__layout {
        margin: 0 auto 0 3%;
    }
    .hero__content {
        max-width: 90%;
    }
    .hero__title {
        font-size: clamp(2.2rem, 9vw, 56px);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* ============================================
   TRUST METRICS — Dark Navy Bar
   ============================================ */
.metrics {
    background: var(--color-navy);
    padding: var(--space-16) 0;
    padding-top: calc(var(--space-16) + 120px);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .metrics {
        padding-top: calc(var(--space-16) + 60px);
    }
}

.metrics__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-10);
}

@media (min-width: 768px) {
    .metrics__container {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }
}

.metrics__item {
    text-align: center;
    flex: 1;
}

.metrics__number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: var(--font-bold);
    line-height: 1;
    color: var(--color-pure-white);
}

.metrics__suffix {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: var(--font-bold);
    color: var(--color-orange);
    margin-left: 2px;
}

.metrics__label {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-regular);
    color: var(--color-text-on-dark-muted);
    letter-spacing: var(--tracking-wide);
    margin-top: var(--space-2);
}

.metrics__divider {
    display: none;
}

@media (min-width: 768px) {
    .metrics__divider {
        display: block;
        width: 1px;
        height: 60px;
        background: rgba(255, 255, 255, 0.12);
    }
}


/* ============================================
   ABOUT — Zigzag Blocks
   ============================================ */
.about {
    overflow: hidden;
}

.zigzag {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    align-items: center;
    margin-bottom: var(--section-padding);
}

.zigzag:last-child {
    margin-bottom: 0;
}

@media (min-width: 900px) {
    .zigzag {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-20);
    }
}

.zigzag__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.zigzag__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
}

/* Reverse order on desktop */
@media (min-width: 900px) {
    .zigzag--reverse .zigzag__text {
        order: -1;
    }
}



/* ============================================
   SERVICES — Bento Grid
   ============================================ */
.bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .bento {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(180px, auto);
    }
    .bento__item--a { grid-column: 1 / 3; grid-row: 1 / 3; }
    .bento__item--b { grid-column: 3; grid-row: 1; }
    .bento__item--c { grid-column: 3; grid-row: 2; }
    .bento__item--d { grid-column: 1; grid-row: 3; }
    .bento__item--e { grid-column: 3; grid-row: 3 / 5; }
    .bento__item--f { grid-column: 1 / 3; grid-row: 4; }
    .bento__item--g { grid-column: 1; grid-row: 5; }
    .bento__item--h { grid-column: 2; grid-row: 5; }
    .bento__item--i { grid-column: 3; grid-row: 5; }
}

/* Small bento cards */
.bento__item {
    background: var(--color-navy-light);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: border-color var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento__item:hover {
    border-color: rgba(232, 101, 45, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Featured bento cards with background images */
.bento__item--featured {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    min-height: 240px;
    justify-content: flex-end;
    padding: var(--space-8);
}

.bento__item--featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.bento__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 27, 42, 0.85) 0%, rgba(12, 27, 42, 0.3) 50%, rgba(12, 27, 42, 0.15) 100%);
    transition: background var(--duration-base) var(--ease-out);
}

.bento__item--featured:hover .bento__overlay {
    background: linear-gradient(to top, rgba(12, 27, 42, 0.9) 0%, rgba(12, 27, 42, 0.4) 50%, rgba(12, 27, 42, 0.2) 100%);
}

.bento__content {
    position: relative;
    z-index: 1;
}

.bento__icon {
    font-size: 1.75rem;
    color: var(--color-orange);
    margin-bottom: var(--space-3);
    display: block;
}

.bento__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--color-pure-white);
    margin-bottom: var(--space-2);
    line-height: var(--leading-tight);
}

.bento__desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--leading-normal);
    max-width: 400px;
}

.service-card__icon {
    font-size: 1.75rem;
    color: var(--color-orange);
    margin-bottom: var(--space-4);
    display: block;
    transition: transform var(--duration-base) var(--ease-out-back),
                color var(--duration-base) var(--ease-out);
}

.bento__item:hover .service-card__icon {
    transform: scale(1.15) rotate(-5deg);
    color: var(--color-orange-light);
}

.bento__icon {
    transition: transform var(--duration-base) var(--ease-out-back);
}

.bento__item--featured:hover .bento__icon {
    transform: scale(1.1) rotate(-3deg);
}

.service-card__title {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-pure-white);
    margin-bottom: var(--space-2);
}

.service-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-on-dark-muted);
    line-height: var(--leading-normal);
}


/* ============================================
   PROJECTS — Featured Hero
   ============================================ */
.projects__hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.projects__hero-image-wrap {
    position: absolute;
    inset: 0;
}

.projects__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s linear;
}

.projects__hero:hover .projects__hero-img {
    transform: scale(1.03);
}

.projects__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(12, 27, 42, 0.85) 0%,
        rgba(12, 27, 42, 0.3) 40%,
        rgba(12, 27, 42, 0.1) 100%
    );
}

.projects__hero-content {
    position: relative;
    z-index: 1;
    padding: var(--space-12) var(--container-padding);
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.projects__hero-sector {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-4);
    color: var(--color-pure-white);
}

.projects__hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-bold);
    color: var(--color-pure-white);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tighter);
    margin-bottom: var(--space-4);
    max-width: 700px;
}

.projects__hero-desc {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.75);
    line-height: var(--leading-normal);
    max-width: 560px;
    margin-bottom: var(--space-8);
}

.projects__hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-pure-white);
    background: var(--color-orange);
    padding: var(--space-3) var(--space-8);
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}

.projects__hero-cta:hover {
    background: var(--color-orange-light);
    box-shadow: 0 8px 24px rgba(232, 101, 45, 0.3);
}

.projects__hero-cta i {
    transition: transform var(--duration-base) var(--ease-out);
}

.projects__hero-cta:hover i {
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .projects__hero {
        min-height: 50vh;
    }
    .projects__hero-title {
        font-size: var(--text-3xl);
    }
}

/* ============================================
   PROJECTS — Filter Bar
   ============================================ */
.projects__filter {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
    .projects__filter {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.projects__filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

@media (max-width: 767px) {
    .projects__filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: var(--space-2);
    }
    .projects__filter-pills::-webkit-scrollbar {
        display: none;
    }
}

.projects__pill {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-text-secondary);
    background: transparent;
    border: 1.5px solid var(--color-gray-200);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    flex-shrink: 0;
}

.projects__pill:hover {
    color: var(--color-orange);
    border-color: var(--color-orange);
}

.projects__pill--active {
    color: var(--color-pure-white);
    background: var(--color-orange);
    border-color: var(--color-orange);
}

.projects__count {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    white-space: nowrap;
}

/* ============================================
   PROJECTS — Staggered Grid
   ============================================ */
.projects__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
}

/* ============================================
   PROJECTS — Project Card
   ============================================ */
.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    cursor: pointer;
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    transition: transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out),
                opacity var(--duration-slow) var(--ease-out);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 1024px) {
    .project-card--featured {
        grid-column: span 2;
    }
}

.project-card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.project-card--tall .project-card__image-wrap {
    aspect-ratio: 2 / 3;
}

.project-card--featured .project-card__image-wrap {
    aspect-ratio: 16 / 9;
}

.project-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.project-card:hover .project-card__img {
    transform: scale(1.05);
}

.project-card__info {
    padding: var(--space-5) var(--space-6);
}

.project-card__sector {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-pure-white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-2);
}

.project-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-1);
}

.project-card--featured .project-card__title {
    font-size: var(--text-2xl);
}

.project-card__year {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
}

.project-card__arrow {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: all var(--duration-base) var(--ease-out-back);
    z-index: 2;
    opacity: 0;
    transform: scale(0.8);
}

.project-card:hover .project-card__arrow {
    opacity: 1;
    transform: scale(1);
    background: var(--color-orange);
    color: var(--color-pure-white);
}

/* Filter animation states */
.project-card--hidden {
    display: none;
}

.project-card--entering {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
}

@media (max-width: 767px) {
    .project-card--featured {
        grid-column: span 1;
    }
    .project-card--tall .project-card__image-wrap {
        aspect-ratio: 3 / 2;
    }
}


/* ============================================
   PROJECTS — Location Map (Seamless)
   ============================================ */
.projects__map-section {
    margin-top: var(--space-24);
}

.projects__map-header {
    margin-bottom: var(--space-8);
}

.projects__map-wrap {
    position: relative;
    margin-left: calc(-1 * var(--container-padding));
    margin-right: calc(-1 * var(--container-padding));
    background: var(--color-offwhite);
    padding: 0;
    overflow: hidden;
}

.projects__map {
    width: 100%;
    height: 500px;
    position: relative;
    /* Desaturate + warm to match #F8F6F3 off-white */
    filter: saturate(0.06) sepia(0.35) brightness(1.04) contrast(0.85);
    transition: filter 0.6s var(--ease-out);
}

/* Warm tint overlay to push white tiles toward off-white */
.projects__map::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(248, 246, 243, 0.25);
    pointer-events: none;
    z-index: 399;
    mix-blend-mode: multiply;
}


@media (min-width: 768px) {
    .projects__map {
        height: 580px;
    }
}

@media (min-width: 1024px) {
    .projects__map {
        height: 650px;
    }
}

/* Override Leaflet default bg to match page */
#projects-map,
#projects-map .leaflet-container {
    background: #F8F6F3 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

#projects-map .leaflet-tile-pane {
    opacity: 0.92;
}

/* Hide Leaflet chrome for seamless look */
.projects__map .leaflet-control-zoom {
    border: none !important;
    box-shadow: none !important;
    margin: var(--space-4) !important;
}

.projects__map .leaflet-control-zoom a {
    background: rgba(12, 27, 42, 0.7) !important;
    color: var(--color-pure-white) !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 16px !important;
    border-radius: var(--radius-sm) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s ease !important;
}

.projects__map .leaflet-control-zoom a:hover {
    background: var(--color-black) !important;
}

.projects__map .leaflet-control-zoom-in {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
    margin-bottom: 1px !important;
}

.projects__map .leaflet-control-zoom-out {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
}

/* Custom Leaflet popup — dark card */
.projects__map .leaflet-popup-content-wrapper {
    background: var(--color-navy);
    color: var(--color-pure-white);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    padding: 0;
    font-family: var(--font-body);
}

.projects__map .leaflet-popup-content {
    margin: 0;
    min-width: 220px;
}

.projects__map .leaflet-popup-tip {
    background: var(--color-navy);
}

.projects__map .leaflet-popup-close-button {
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    top: 8px;
    right: 10px;
}

.projects__map .leaflet-popup-close-button:hover {
    color: var(--color-orange);
}

/* Popup animation */
.projects__map .leaflet-popup {
    transition: opacity 0.2s ease;
}

.map-popup {
    padding: var(--space-4) var(--space-5);
}

.map-popup__sector {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-pure-white);
    padding: 2px var(--space-3);
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-2);
}

.map-popup__title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-pure-white);
    line-height: var(--leading-tight);
    margin-bottom: 2px;
}

.map-popup__year {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-3);
}

.map-popup__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-orange);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-body);
    transition: gap var(--duration-fast) var(--ease-out);
}

.map-popup__cta:hover {
    gap: var(--space-2);
}

/* External Map Popups — rendered in <body>, never clipped.
   Motion: house sliding-pill curve (matches .co-about__indicator). */
.ext-popup {
    position: fixed;
    z-index: 299;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.92);
    transform-origin: var(--popup-origin, center left);
    transition: opacity 320ms cubic-bezier(0.4, 0, 0.1, 1),
                visibility 320ms cubic-bezier(0.4, 0, 0.1, 1),
                transform 520ms cubic-bezier(0.4, 0, 0.1, 1);
}

.ext-popup--right {
    --popup-origin: center left;
}

.ext-popup--left {
    --popup-origin: center right;
}

.ext-popup--visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.ext-popup:not(.ext-popup--visible) {
    transition: opacity 220ms cubic-bezier(0.4, 0, 0.1, 1),
                visibility 220ms cubic-bezier(0.4, 0, 0.1, 1),
                transform 320ms cubic-bezier(0.4, 0, 0.1, 1);
}

/* ---- Connector SVG ---- */
.ext-popup-cone {
    position: fixed;
    z-index: 298;
    pointer-events: none;
}

.ext-popup-cone__dot {
    opacity: 0;
    transform-origin: center;
    transform: scale(0);
    transition: opacity 0.15s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ext-popup-cone--visible .ext-popup-cone__dot {
    opacity: 1;
    transform: scale(1);
}

.ext-popup-cone__line,
.ext-popup-cone__line--border {
    opacity: 0;
    transition: opacity 0.15s ease 0.08s;
}

.ext-popup-cone--visible .ext-popup-cone__line,
.ext-popup-cone--visible .ext-popup-cone__line--border {
    opacity: 1;
}

.ext-popup-cone:not(.ext-popup-cone--visible) .ext-popup-cone__dot,
.ext-popup-cone:not(.ext-popup-cone--visible) .ext-popup-cone__line,
.ext-popup-cone:not(.ext-popup-cone--visible) .ext-popup-cone__line--border {
    transition-delay: 0s;
    transition-duration: 0.12s;
}

/* ---- Projects popup ---- */
.ext-popup--projects {
    background: var(--color-navy);
    color: var(--color-pure-white);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    overflow: visible;
    font-family: var(--font-body);
}

.ext-popup--projects .map-popup {
    overflow: hidden;
    border-radius: var(--radius-md);
}

/* ---- Fullscreen popup — sliding-pill aesthetic (matches .co-about__indicator) ---- */
.ext-popup--fullscreen {
    background: var(--color-pure-white);
    color: #1A1A1A;
    border-radius: 18px;
    overflow: visible;
    font-family: var(--font-body);
    min-width: 360px;
    border: 0.5px solid #d8d8d4;
    box-shadow: 0 22px 50px -28px rgba(0, 0, 0, 0.22),
                0 2px 6px rgba(0, 0, 0, 0.04);
}

.ext-popup--fullscreen .project-popup {
    overflow: hidden;
    border-radius: 18px;
}

.ext-popup--fullscreen .project-popup__img {
    filter: none;
    border-bottom: 0.5px solid #c8c8c8;
}

.ext-popup--fullscreen .project-popup__name {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: -0.015em;
    text-transform: none;
    color: #111;
}

.ext-popup--fullscreen .project-popup__address {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #aaa;
}

.ext-popup--fullscreen .project-popup__desc {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 400;
    color: #bbb;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .ext-popup--fullscreen {
        min-width: 280px;
        max-width: 320px;
    }
}

/* Legend — subtle inline below header */
.projects__map-legend {
    position: absolute;
    bottom: var(--space-6);
    left: var(--container-padding);
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.projects__legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    letter-spacing: var(--tracking-wide);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-pill);
    transition: color var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
}

.projects__legend-item:hover {
    color: var(--color-text-primary);
    background: rgba(0, 0, 0, 0.04);
}

.projects__legend-item--active {
    color: var(--color-text-primary);
    background: rgba(0, 0, 0, 0.06);
    font-weight: var(--font-semibold);
}

.projects__legend-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

@media (max-width: 767px) {
    .projects__map-legend {
        left: var(--space-3);
        right: var(--space-3);
        bottom: var(--space-3);
        justify-content: center;
    }
}


/* ============================================
   PROJECT MODAL — Lightbox
   ============================================ */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-slow) var(--ease-out),
                visibility var(--duration-slow) var(--ease-out);
}

.project-modal--open {
    opacity: 1;
    visibility: visible;
}

.project-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 27, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.project-modal__container {
    position: relative;
    z-index: 1;
    width: 90vw;
    max-width: 960px;
    max-height: 90vh;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: scale(0.95) translateY(20px);
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.project-modal--open .project-modal__container {
    transform: scale(1) translateY(0);
}

.project-modal__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text-primary);
    font-size: 1.25rem;
    z-index: 5;
    cursor: pointer;
    border: none;
    transition: background var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
}

.project-modal__close:hover {
    background: var(--color-orange);
    color: var(--color-pure-white);
    transform: rotate(90deg);
}

.project-modal__hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.project-modal__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-modal__hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, transparent 100%);
}

.project-modal__body {
    padding: var(--space-8) var(--space-10) var(--space-10);
}

.project-modal__header {
    margin-bottom: var(--space-6);
}

.project-modal__sector {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-pure-white);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-3);
}

.project-modal__title {
    font-family: var(--font-heading);
    font-size: var(--text-section);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tighter);
    margin-bottom: var(--space-2);
}

.project-modal__year {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.project-modal__desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-8);
    max-width: var(--text-max-width);
}

.project-modal__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-offwhite);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-8);
}

.project-modal__metric {
    text-align: center;
}

.project-modal__metric-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-1);
}

.project-modal__metric-value {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
}

.project-modal__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.project-modal__gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform var(--duration-base) var(--ease-out);
    cursor: pointer;
}

.project-modal__gallery-img:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .project-modal__container {
        width: 95vw;
        max-height: 95vh;
    }
    .project-modal__body {
        padding: var(--space-6) var(--space-6) var(--space-8);
    }
    .project-modal__metrics {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    .project-modal__gallery {
        grid-template-columns: 1fr 1fr;
    }
}


/* ============================================
   FIVE PILLARS — Accordion with Progress Line
   ============================================ */
.pillars__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
}

@media (min-width: 900px) {
    .pillars__layout {
        grid-template-columns: 1fr 1.4fr;
        gap: var(--space-20);
        align-items: start;
    }
}

.pillars__header {
    position: sticky;
    top: 120px;
}

.pillars__accordion {
    position: relative;
}

/* Progress line — background track */
.pillars__accordion::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-gray-100);
}

/* Progress line — orange fill driven by scroll */
.pillars__accordion::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    width: 2px;
    height: var(--pillar-progress, 0%);
    background: var(--color-orange);
    z-index: 1;
    transition: height 0.1s linear;
}

.pillar {
    position: relative;
    margin-bottom: var(--space-2);
}

.pillar__header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    width: 100%;
    padding: var(--space-5) var(--space-5) var(--space-5) var(--space-10);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background var(--duration-fast) var(--ease-out);
    border-radius: var(--radius-md);
}

.pillar__header:hover {
    background: var(--color-offwhite);
}

/* Dot on progress line */
.pillar__dot {
    position: absolute;
    left: 4px;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-gray-300);
    z-index: 1;
    transition: all var(--duration-base) var(--ease-out);
}

.pillar--active .pillar__dot {
    background: var(--color-orange);
    border-color: var(--color-orange);
    box-shadow: 0 0 0 4px rgba(232, 101, 45, 0.2);
}

.pillar__number {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--color-gray-400);
    min-width: 28px;
    transition: color var(--duration-base) var(--ease-out);
}

.pillar--active .pillar__number {
    color: var(--color-orange);
}

.pillar__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    flex: 1;
    line-height: var(--leading-tight);
    transition: color var(--duration-base) var(--ease-out);
}

.pillar--active .pillar__title {
    color: var(--color-navy);
}

.pillar__icon {
    font-size: 1.5rem;
    color: var(--color-gray-300);
    transition: color var(--duration-base) var(--ease-out);
}

.pillar--active .pillar__icon {
    color: var(--color-orange);
}

.pillar__chevron {
    font-size: 1.25rem;
    color: var(--color-gray-400);
    transition: transform var(--duration-base) var(--ease-out);
}

.pillar--active .pillar__chevron {
    transform: rotate(180deg);
    color: var(--color-orange);
}

.pillar__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-out),
                padding var(--duration-slow) var(--ease-out);
    padding: 0 var(--space-5) 0 var(--space-10);
    margin-left: var(--space-10);
}

.pillar--active .pillar__body {
    max-height: 300px;
    padding: 0 var(--space-5) var(--space-6) var(--space-10);
}

.pillar__desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
    max-width: 520px;
    padding-left: calc(28px + var(--space-4));
}


/* ============================================
   CLIENTS — Marquee Ticker
   ============================================ */
.clients {
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: var(--space-4);
}

.marquee__track {
    display: inline-flex;
    gap: var(--space-12);
    will-change: transform;
}

.marquee__track--left {
    animation: marqueeLeft 40s linear infinite;
}

.marquee__track--right {
    animation: marqueeRight 45s linear infinite;
}

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

.marquee__item {
    font-family: var(--font-body);
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.15);
    transition: color var(--duration-fast) var(--ease-out);
    cursor: default;
    flex-shrink: 0;
    padding: var(--space-3) 0;
}

.marquee__item:hover {
    color: var(--color-orange);
}

@keyframes marqueeLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}


/* ============================================
   CONTACT — Full-Bleed Split + Glass Card
   ============================================ */
.contact {
    position: relative;
    margin-bottom: var(--section-padding);
}

.contact__split {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 800px;
}

@media (min-width: 1024px) {
    .contact__split {
        grid-template-columns: 55% 45%;
    }
}

/* Left: Image Side */
.contact__image-side {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.contact__bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(12, 27, 42, 0.7) 0%, rgba(12, 27, 42, 0.3) 100%);
}

.contact__info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-10);
    z-index: 1;
}

@media (min-width: 1024px) {
    .contact__info-overlay {
        padding: var(--space-12);
        right: auto;
        max-width: 500px;
    }
}

.contact__heading {
    font-family: var(--font-heading);
    font-size: var(--text-section);
    font-weight: var(--font-bold);
    color: var(--color-pure-white);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-8);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.contact__detail {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

.contact__detail i {
    font-size: 1.25rem;
    color: var(--color-orange);
}

.contact__detail a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--duration-fast) var(--ease-out);
}

.contact__detail a:hover {
    color: var(--color-orange);
}

.contact__map {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Right: Form Side */
.contact__form-side {
    background: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-10);
}

@media (min-width: 1024px) {
    .contact__form-side {
        padding: var(--space-16) var(--space-12);
    }
}

.contact__glass-card {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
}

@media (min-width: 1024px) {
    .contact__glass-card {
        margin-left: -80px;
        position: relative;
        z-index: 2;
    }
}

.contact__form-intro {
    font-size: var(--text-sm);
    color: var(--color-text-on-dark-muted);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-8);
}

/* Contact Form */
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .contact-form__row {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form__group {
    margin-bottom: var(--space-4);
}

.contact-form__row .contact-form__group {
    margin-bottom: 0;
}

/* Floating label pattern */
.contact-form__group--float {
    position: relative;
}

/* Animated underline on focus */
.contact-form__group--float::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-orange);
    transition: width 0.4s var(--ease-out-expo), left 0.4s var(--ease-out-expo);
}

.contact-form__group--float:focus-within::after {
    width: 100%;
    left: 0;
}

.contact-form__group--float .contact-form__label {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: all var(--duration-base) var(--ease-out);
    margin-bottom: 0;
}

.contact-form__group--float .contact-form__textarea ~ .contact-form__label {
    top: var(--space-4);
    transform: none;
}

.contact-form__group--float .contact-form__input:focus ~ .contact-form__label,
.contact-form__group--float .contact-form__input:not(:placeholder-shown) ~ .contact-form__label {
    top: 6px;
    transform: none;
    font-size: var(--text-xs);
    color: var(--color-orange);
}

.contact-form__group--float .contact-form__textarea:focus ~ .contact-form__label,
.contact-form__group--float .contact-form__textarea:not(:placeholder-shown) ~ .contact-form__label {
    top: 4px;
    font-size: var(--text-xs);
    color: var(--color-orange);
}

.contact-form__input {
    width: 100%;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-pure-white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-5) var(--space-4) var(--space-2);
    transition: border-color var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
}

.contact-form__input:focus {
    outline: none;
    border-color: var(--color-orange);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form__input::placeholder {
    color: transparent;
}

.contact-form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
}

.contact-form__select option {
    background: var(--color-navy);
    color: var(--color-pure-white);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form__submit {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-pure-white);
    background: #000000;
    padding: var(--space-4) var(--space-10);
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
    margin-top: var(--space-4);
    width: 100%;
    justify-content: center;
}

.contact-form__submit:hover {
    background: #222222;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.contact-form__submit i {
    font-size: 1.1em;
    transition: transform var(--duration-base) var(--ease-out);
}

.contact-form__submit:hover i {
    transform: translateX(3px);
}


/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: var(--color-offwhite);
    padding: clamp(80px, 10vw, 140px) 0;
}

.cta-banner__container {
    text-align: center;
}

.cta-banner__heading {
    font-family: var(--font-heading);
    font-size: var(--text-section);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tighter);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.cta-banner__heading em {
    font-style: italic;
    color: var(--color-orange);
}

.cta-banner__sub {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-10);
}

.cta-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--color-pure-white);
    background: var(--color-orange);
    padding: var(--space-5) var(--space-10);
    border-radius: var(--radius-pill);
    transition: all var(--duration-base) var(--ease-out);
}

.cta-banner__btn:hover {
    background: var(--color-orange-light);
    box-shadow: 0 8px 24px rgba(232, 101, 45, 0.3);
}

.cta-banner__btn i {
    transition: transform var(--duration-base) var(--ease-out);
}

.cta-banner__btn:hover i {
    transform: translateX(3px);
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-navy-deep);
    padding: var(--space-16) 0 var(--space-8);
}

.footer__top {
    padding-bottom: var(--space-10);
    border-bottom: none;
    margin-bottom: var(--space-10);
}

.footer__logo {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-wider);
    color: var(--color-pure-white);
    display: block;
    margin-bottom: var(--space-3);
}

.footer__tagline {
    font-size: var(--text-sm);
    color: var(--color-text-on-dark-muted);
    font-style: italic;
    font-family: var(--font-heading);
    margin-bottom: var(--space-5);
}

.footer__social {
    display: flex;
    gap: var(--space-4);
}

.footer__social a {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
}

.footer__social a:hover {
    color: var(--color-orange);
    transform: translateY(-2px);
}

/* Footer Nav */
.footer__nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    padding-bottom: var(--space-10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
    .footer__nav {
        grid-template-columns: repeat(5, 1fr);
    }
}

.footer__col-title {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-pure-white);
    margin-bottom: var(--space-4);
    letter-spacing: var(--tracking-wide);
}

.footer__links li {
    margin-bottom: var(--space-2);
}

.footer__links a,
.footer__links li {
    font-size: var(--text-sm);
    color: var(--color-text-on-dark-muted);
    line-height: var(--leading-relaxed);
}

.footer__links a {
    position: relative;
    transition: color var(--duration-fast) var(--ease-out);
}

.footer__links a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration-base) var(--ease-out-expo);
}

.footer__links a:hover {
    color: var(--color-orange);
}

.footer__links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Newsletter */
.footer__col--newsletter {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .footer__col--newsletter {
        grid-column: auto;
    }
}

.footer__newsletter-text {
    font-size: var(--text-sm);
    color: var(--color-text-on-dark-muted);
    margin-bottom: var(--space-4);
    line-height: var(--leading-normal);
}

.footer__newsletter-form {
    display: flex;
    gap: 0;
}

.footer__newsletter-input {
    flex: 1;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-pure-white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    padding: var(--space-3) var(--space-4);
}

.footer__newsletter-input:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(232, 101, 45, 0.2);
}

.footer__newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.footer__newsletter-btn {
    background: var(--color-orange);
    color: var(--color-pure-white);
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out);
}

.footer__newsletter-btn:hover {
    background: var(--color-orange-light);
}

/* Footer Bottom */
.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: var(--space-8);
}

.footer__bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--color-orange);
    opacity: 0.5;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .footer__bottom::before {
        left: 0;
        transform: none;
    }
}

.footer__copyright {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.35);
}

.footer__legal {
    display: flex;
    gap: var(--space-6);
}

.footer__legal a {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.35);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer__legal a:hover {
    color: var(--color-orange);
}


/* ============================================
   DIFFERENCE — Typographic Stats
   ============================================ */
.difference {
    padding: clamp(3rem, 6vw, 6rem) 0 0;
    background: var(--color-pure-white);
}

.difference .container {
    max-width: 1440px;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

/* Header */
.difference__header {
    margin-bottom: clamp(48px, 6vw, 88px);
}

.difference__label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-5);
}

.difference__heading {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: var(--font-regular);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tighter);
    color: var(--color-text-primary);
    max-width: 22ch;
}

/* Stats row */
.difference__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 4vw, 64px);
}

.difference__stat {
    padding-top: 0;
}

/* Big number */
.difference__stat-number {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 7vw, 7rem);
    font-weight: var(--font-bold);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--color-text-primary);
    display: block;
    margin-bottom: var(--space-4);
}

.difference__stat-plus {
    font-weight: var(--font-light);
    color: #FF3B30;
}

/* Thin rule under number */
.difference__stat-rule {
    width: 40px;
    height: 2px;
    background: #FF3B30;
    margin-bottom: var(--space-5);
}

.difference__stat-title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
    letter-spacing: var(--tracking-tight);
}

.difference__stat-desc {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: #888;
    line-height: var(--leading-normal);
    max-width: 34ch;
}

/* Bottom fade into next section */
.difference::after {
    content: '';
    display: block;
    height: clamp(80px, 10vw, 140px);
    background: linear-gradient(to bottom, var(--color-pure-white), #F5F5F5);
    margin: clamp(48px, 6vw, 88px) calc(-1 * clamp(1.5rem, 4vw, 4rem)) 0;
}

/* Responsive */
@media (max-width: 768px) {
    .difference__stats {
        grid-template-columns: 1fr;
        gap: clamp(40px, 8vw, 56px);
    }

    .difference__stat-number {
        font-size: clamp(3.5rem, 12vw, 5rem);
    }
}


/* ============================================
   FILMSTRIP VIDEO — Parallax Video on Scroll
   ============================================ */
/* filmstrip-video styles moved to assets/css/orbital-video.css */

/* ============================================
   FEATURED PROJECT — Tab Showcase
   ============================================ */
.featured {
    position: relative;
    background: #ffffff;
    padding-bottom: 0;
    z-index: 1;
}

.featured__bg {
    position: relative;
    z-index: 2;
    background-color: #FFFFFF;
    padding: 0;
    overflow: hidden;
    transition: background-color 0.6s ease;
}

/* Fade map section into white below */
.featured__bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, #FFFFFF);
    z-index: 0;
    pointer-events: none;
    transition: background 0.6s ease;
}

.featured__bg--dark {
    background-color: #000000;
}

.featured__bg--dark::before {
    background: linear-gradient(to bottom, #F0E4D4, #000000);
}

/* ============================================
   FEATURED — Section header
   ============================================ */
.featured .container {
    max-width: 1800px;
}

.featured__header {
    position: relative;
    padding: clamp(1.5rem, 2.5vw, 2rem) 0 clamp(1.25rem, 2vw, 1.75rem);
}


/* Ghost watermark word — inline, right side, baseline-aligned with title */
.featured__header-ghost {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 9vw, 10rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--color-text-primary);
    opacity: 0.07;
    pointer-events: none;
    user-select: none;
    flex-shrink: 0;
}

/* Title wrapper — flex row, both texts share baseline */
.featured__title-wrap {
    display: flex;
    justify-content: space-between;
    gap: clamp(1rem, 2vw, 2rem);
}

/* Main display title — 20% smaller than original 7.5rem max */
.featured__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: var(--font-regular);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tighter);
    color: var(--color-text-primary);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Top annotation bar — label left, sectors right */
.featured__header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.2rem;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 1;
}

.featured__header-label {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(50, 48, 47, 0.38);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.featured__header-sectors {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

/* Dark mode */
.featured__bg--dark .featured__title {
    color: #FAF4EB;
}

.featured__bg--dark .featured__header-ghost {
    color: #FAF4EB;
}

.featured__bg--dark .featured__header-label,
.featured__bg--dark .featured__header-sectors {
    color: rgba(250, 244, 235, 0.35);
}

.featured__bg--dark .featured__header-bar {
    border-bottom-color: rgba(250, 244, 235, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .featured__header-ghost {
        font-size: clamp(4rem, 20vw, 8rem);
    }
}


/* TEAM — extracted to assets/css/team.css */

/* ============================================
   STORY (legacy) — kept for reference
   ============================================ */
.story {
    padding: 0 0 var(--section-padding);
    background: #F5F5F5;
}

.story .container {
    max-width: 1440px;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.story__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 4vw, 48px);
}

@media (min-width: 900px) {
    .story__layout {
        grid-template-columns: 1.10fr 1.09fr;
        gap: clamp(48px, 5vw, 90px);
    }
}

/* Left Column */
.story__left {
    display: flex;
    flex-direction: column;
}

.story__label-row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.story__label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.story__label-line {
    flex: 1;
    height: 1px;
    background: var(--color-gray-200);
}

.story__heading {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: var(--font-regular);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tighter);
    color: var(--color-text-primary);
    margin-bottom: 16px;
}

/* Slider Card */
.story__card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 780px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: clamp(24px, 3vw, 48px);
}

.story__card-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0;
}

.story__card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: opacity var(--duration-slow) var(--ease-out);
}

.story__card-overlay {
    position: relative;
    z-index: 1;
    background: var(--color-pure-white);
    border-radius: 20px;
    padding: clamp(20px, 3vw, 32px);
    margin: auto var(--space-4) var(--space-4) var(--space-4);
}

.story__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.story__card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    font-size: 1.6rem;
    color: var(--color-text-primary);
    transition: all var(--duration-base) var(--ease-out);
}

.story__card-dots {
    display: flex;
    gap: var(--space-2);
}

.story__card-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-gray-200);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out);
}

.story__card-dot--active {
    background: var(--color-text-primary);
}

.story__card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.story__card-desc {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
    margin: 0;
}

/* Right Column */
.story__right {
    display: flex;
    flex-direction: column;
}

.story__image {
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: clamp(20px, 3vw, 32px);
    flex: 1;
    min-height: 390px;
}

.story__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story__text {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
    margin-top: clamp(16px, 2.5vw, 24px);
    margin-bottom: clamp(28px, 3.5vw, 40px);
    max-width: 540px;
}

.story__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-pure-white);
    background: var(--color-text-primary);
    border-radius: var(--radius-pill);
    padding: var(--space-5) var(--space-8);
    text-decoration: none;
    width: fit-content;
    transition: background var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out);
}

.story__cta:hover {
    background: var(--color-black);
    transform: translateY(-1px);
}

.story__cta i {
    font-size: 1.1rem;
    transition: transform var(--duration-base) var(--ease-out);
}

.story__cta:hover i {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
    .story__card {
        min-height: 320px;
    }

    .story__image {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .story__card {
        min-height: 280px;
    }
}


/* ============================================
   INQUIRY BAR — Floating CTA
   ============================================ */
.inquiry-bar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 0 var(--container-padding);
    margin-top: -100px;
    margin-bottom: var(--space-16);
}

.inquiry-bar__wrapper {
    max-width: 1100px;
    width: 100%;
}

/* Tabs — gray strip, active tab is white and merges into card */
.inquiry-bar__tabs {
    display: inline-flex;
    background: #ECECEC;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.inquiry-bar__tab {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: var(--font-medium);
    color: var(--color-gray-900);
    background: transparent;
    border: none;
    padding: var(--space-4) var(--space-8);
    cursor: pointer;
    transition: background 0.35s ease, font-weight 0.15s ease;
}

.inquiry-bar__tab:hover {
    background: var(--color-pure-white);
}

.inquiry-bar__tab--active {
    color: var(--color-gray-900);
    font-weight: var(--font-semibold);
    background: var(--color-pure-white);
}

/* Card — white body below tabs */
.inquiry-bar__card {
    background: var(--color-pure-white);
    border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    padding: var(--space-10) var(--space-12);
    overflow: hidden;
}

/* Form — slot-machine reel scroll */
.inquiry-bar__form {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.inquiry-bar__form.is-spinning {
    animation: slotReel 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slotReel {
    0%   { transform: translateY(0);    opacity: 1; }
    35%  { transform: translateY(100%); opacity: 0; }
    36%  { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0);    opacity: 1; }
}

.inquiry-bar__field {
    flex: 1;
    position: relative;
}

.inquiry-bar__input,
.inquiry-bar__select {
    width: 100%;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    color: var(--color-gray-900);
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--color-gray-200);
    padding: var(--space-3) 0;
    outline: none;
    transition: border-color var(--duration-base) var(--ease-out);
    appearance: none;
    -webkit-appearance: none;
}

.inquiry-bar__input::placeholder {
    color: var(--color-gray-400);
}

.inquiry-bar__input:focus,
.inquiry-bar__select:focus {
    border-color: var(--color-gray-900);
}

/* Select dropdown arrow */
.inquiry-bar__field--select::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--color-gray-400);
    pointer-events: none;
}

.inquiry-bar__select option[value=""][disabled] {
    color: var(--color-gray-400);
}

/* Submit button */
.inquiry-bar__submit {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-pure-white);
    background: var(--color-black);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-10);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out);
    flex-shrink: 0;
}

.inquiry-bar__submit:hover {
    background: var(--color-black);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .inquiry-bar {
        margin-top: -40px;
        padding: 0 var(--space-4);
    }

    .inquiry-bar__card {
        padding: var(--space-10) var(--space-6);
    }

    .inquiry-bar__form {
        flex-direction: column;
        gap: var(--space-5);
    }

    .inquiry-bar__field {
        width: 100%;
    }

    .inquiry-bar__submit {
        width: 100%;
        padding: var(--space-4);
        text-align: center;
    }
}


/* ============================================
   TRUSTED BY — Client Logo Marquee
   ============================================ */
.trusted-by {
    background: #FFFFFF;
    padding: var(--space-16) 0 8rem;
    position: relative;
}

.trusted-by::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: none;
    pointer-events: none;
}

.trusted-by__layout {
    display: flex;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    gap: var(--space-12);
}

.trusted-by__text {
    flex: 0 0 340px;
    position: relative;
    z-index: 2;
}

.trusted-by__headline {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--font-medium);
    line-height: var(--leading-tight);
    color: var(--color-gray-900);
}

.trusted-by__marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.trusted-by__track {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    width: max-content;
    animation: trustedByScroll 25s linear infinite;
}

.trusted-by__logo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.trusted-by__logo svg,
.trusted-by__logo img {
    width: calc(var(--logo-w, 100px) * 1.4);
    height: calc(var(--logo-h, 40px) * 1.4);
    display: block;
    object-fit: contain;
    filter: grayscale(100%);
    mix-blend-mode: multiply;
}

.trusted-by__name {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

@keyframes trustedByScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Trusted By — Responsive */
@media (max-width: 768px) {
    .trusted-by__layout {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-8);
    }

    .trusted-by__text {
        flex: none;
        width: 100%;
    }

    .trusted-by__headline {
        font-size: var(--text-2xl);
    }

    .trusted-by__marquee {
        width: 100%;
    }
}


/* ============================================
   TESTIMONIALS — Scrolling Feedback
   ============================================ */
.filmstrip-spacer {
    background: #fff;
    width: 100%;
    height: 24px;
}

@media (max-width: 1023px) {
    .filmstrip-spacer {
        height: 16px;
    }
}

.testimonials {
    background: linear-gradient(to bottom, #fff 0%, #fff 85%, #F5F5F5 100%);
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.testimonials::before,
.testimonials::after {
    display: none;
}

.testimonials__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-16);
    margin: 0 auto;
    padding: clamp(40px, 5vw, 60px) clamp(32px, 5vw, 80px);
    border-radius: 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.testimonials__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #D4E6F1;
    border-radius: 0;
    z-index: -1;
}

.testimonials__bgmap {
    position: absolute;
    top: -650px;
    bottom: -650px;
    left: 0;
    right: 0;
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
    will-change: transform;
}

.testimonials__bgmap .leaflet-container {
    width: 100%;
    height: 100%;
    background: #FFFFFF;
}

.testimonials__bgmap .leaflet-control-attribution,
.testimonials__bgmap .leaflet-control-zoom {
    display: none !important;
}

.testimonials__columns,
.testimonials__content {
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .testimonials__inner {
        grid-template-columns: 1.2fr 1fr;
        gap: clamp(48px, 5vw, 80px);
        align-items: stretch;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Scrolling Columns */
.testimonials__columns {
    position: relative;
    overflow: hidden;
    margin: 0;
    margin-left: 80px;
}

.testimonials__col {
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(50% - 2px);
    overflow: hidden;
}

.testimonials__col:first-child {
    left: 0;
}

.testimonials__col:last-child {
    right: 0;
}

.testimonials__track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    will-change: transform;
    padding: 0 12px;
    margin: 0 -12px;
}

[data-scroll-dir="up"] .testimonials__track {
    animation: testimonialScrollUp 60s linear infinite;
    animation-play-state: paused;
}

[data-scroll-dir="down"] .testimonials__track {
    animation: testimonialScrollDown 60s linear infinite;
    animation-play-state: paused;
}

.testimonials--ready [data-scroll-dir="up"] .testimonials__track,
.testimonials--ready [data-scroll-dir="down"] .testimonials__track {
    animation-play-state: running;
}

@keyframes testimonialScrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes testimonialScrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* Card */
.testimonials__card {
    background: transparent;
    border-radius: 10px;
    padding: clamp(12px, 1.5vw, 16px);
    border: none;
    flex-shrink: 0;
    max-width: 90%;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(6px, 0.8vw, 10px);
    cursor: pointer;
}

.testimonials__card:hover {
    box-shadow: none;
}

/* Company Logo — hero of the card */
img.testimonials__logo {
    display: block;
    width: 120px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: transparent;
    filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.4));
}

/* Initials fallback for companies without a logo */
.testimonials__logo--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: var(--radius-md);
    background: var(--color-gray-100);
    color: var(--color-gray-600);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-4);
}

.testimonials__name {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-primary);
    line-height: var(--leading-tight);
    margin-bottom: 2px;
}

.testimonials__location {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-2);
}

.testimonials__quote {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--font-light);
    line-height: var(--leading-normal);
    color: var(--color-text-tertiary);
}

/* Right Content */
.testimonials__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(80px, 10vw, 140px) 0;
}

.testimonials__heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tighter);
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
}

.testimonials__desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-10);
    max-width: 480px;
}

.testimonials__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-pure-white);
    background: #E8443A;
    border: 2px solid #FFFFFF;
    border-radius: var(--radius-pill);
    padding: var(--space-5) var(--space-10);
    text-decoration: none;
    transition: background var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
    width: fit-content;
}

.testimonials__cta:hover {
    background: #E8443A;
    transform: translateY(-2px);
}

.testimonials__cta i {
    font-size: 2.25em;
    transition: transform var(--duration-base) var(--ease-out);
}

.testimonials__cta:hover i {
    transform: translateX(3px);
}

/* Responsive — below 1024px: vertical marquees become horizontal, full-bleed */
@media (max-width: 1023px) {
    .testimonials {
        padding-top: var(--space-12);
    }

    .testimonials::before,
    .testimonials::after {
        height: 140px;
    }

    /* Reorder: text on top, marquees below */
    .testimonials__inner {
        display: flex;
        flex-direction: column-reverse;
        overflow: hidden;
    }

    /* Text / CTA — centered above marquees */
    .testimonials__content {
        text-align: center;
        align-items: center;
    }

    .testimonials__desc {
        max-width: 560px;
    }

    /* Mobile/tablet CTA — sized up for thumb-friendly tap target */
    .testimonials__cta {
        font-size: var(--text-lg);
        padding: var(--space-4) var(--space-8);
        gap: var(--space-3);
        border-width: 2px;
    }

    .testimonials__cta i {
        font-size: 1.8em;
    }

    /* Marquee columns — full bleed, break out of inner padding */
    .testimonials__columns {
        display: flex;
        flex-direction: column;
        gap: 12px;
        height: auto;
        margin: 0 calc(-1 * clamp(32px, 5vw, 80px));
        width: calc(100% + 2 * clamp(32px, 5vw, 80px));
        overflow: hidden;
    }

    .testimonials__col {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        overflow: hidden;
        width: 100%;
    }

    /* Tracks become horizontal rows */
    .testimonials__track {
        flex-direction: row;
        padding: 6px 0;
        margin: 0;
    }

    .testimonials__card {
        flex-shrink: 0;
    }

    .testimonials__logo--initials {
        width: 72px;
        height: 72px;
    }

    /* Override vertical keyframes with horizontal */
    [data-scroll-dir="up"] .testimonials__track {
        animation: testimonialScrollLeft 40s linear infinite;
    }

    [data-scroll-dir="down"] .testimonials__track {
        animation: testimonialScrollRight 40s linear infinite;
    }
}

@keyframes testimonialScrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes testimonialScrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@media (max-width: 1023px) {
    .testimonials__name,
    .testimonials__location {
        display: none;
    }
}


/* ============================================
   CONTACT FORM — Get in Touch
   ============================================ */
.contact-form {
    background: #F5F5F5;
    padding: var(--section-padding) 0;
    margin-bottom: var(--section-padding);
}

.contact-form .container {
    max-width: 1600px;
}

.contact-form__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.contact-form__label-line {
    width: 60px;
    height: 1px;
    background: var(--color-gray-300);
}

.contact-form__label-text {
    font-size: var(--text-sm);
    font-weight: var(--font-regular);
    color: var(--color-text-secondary);
    letter-spacing: var(--tracking-wide);
}

.contact-form__heading {
    font-family: var(--font-heading);
    font-size: var(--text-section);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: var(--space-16);
    line-height: var(--leading-tight);
}

.contact-form__layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: var(--space-16);
    max-width: 1600px;
    margin: 0 auto;
    align-items: start;
}

/* Left: Contact Info */
.contact-form__info {
    padding-top: var(--space-4);
}

.contact-form__info-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-8);
}

.contact-form__info-block {
    margin-bottom: var(--space-6);
}

.contact-form__info-block p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

.contact-form__info-link {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    line-height: var(--leading-relaxed);
    transition: color var(--duration-base) var(--ease-out);
}

.contact-form__info-link:hover {
    color: var(--color-text-primary);
}

.contact-form__info-link--inline {
    display: inline;
}

.contact-form__info-link--phone {
    display: inline-block;
    font-weight: var(--font-semibold);
    color: var(--color-black);
    border: 2px solid var(--color-black);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-4);
    margin-top: var(--space-2);
    transition: background var(--duration-base) var(--ease-out),
                color var(--duration-base) var(--ease-out);
}

.contact-form__info-link--phone:hover {
    background: var(--color-black);
    color: var(--color-pure-white);
}

.contact-form__info-divider {
    width: 100%;
    max-width: 240px;
    height: 1px;
    background: var(--color-gray-200);
    margin: var(--space-6) 0;
}

/* Right: Form Card */
.contact-form__card {
    background: var(--color-pure-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    box-shadow: none;
}

.contact-form__form {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 7px;
    row-gap: 7px;
}

.contact-form__field {
    position: relative;
}

.contact-form__field--full {
    width: 100%;
}

.contact-form__input {
    width: 100%;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    color: var(--color-gray-900);
    background: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-12) var(--space-4) var(--space-3);
    outline: none;
    transition: border-color var(--duration-base) var(--ease-out),
                background var(--duration-base) var(--ease-out);
    appearance: none;
    -webkit-appearance: none;
}

.contact-form__input::placeholder {
    color: var(--color-gray-400);
}

.contact-form__input:focus {
    background: var(--color-white);
}

.contact-form__select {
    cursor: pointer;
}

.contact-form__select option[value=""][disabled] {
    color: var(--color-gray-400);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 160px;
}

.contact-form__icon {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-black);
    font-size: 1.1rem;
    pointer-events: none;
}

.contact-form__icon--textarea {
    top: var(--space-5);
    transform: none;
}

.contact-form__submit {
    width: 100%;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-pure-white);
    background: #FF3B30;
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-8);
    cursor: pointer;
    transition: background var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out);
    margin-top: var(--space-2);
}

.contact-form__submit:hover {
    background: #E0322A;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 59, 48, 0.35);
}

/* Success State */
.contact-form__success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-16) var(--space-8);
    animation: contactFadeIn 0.5s var(--ease-out) forwards;
}

.contact-form__card--success .contact-form__form {
    display: none;
}

.contact-form__card--success .contact-form__success {
    display: flex;
}

@keyframes contactFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Animated Checkmark */
.contact-form__success-check {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-6);
}

.contact-form__checkmark {
    width: 80px;
    height: 80px;
}

.contact-form__checkmark-circle {
    stroke: #27ae60;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-miterlimit: 10;
    animation: checkCircle 0.6s var(--ease-out) forwards;
}

.contact-form__checkmark-tick {
    stroke: #27ae60;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkTick 0.35s 0.4s var(--ease-out) forwards;
}

@keyframes checkCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes checkTick {
    to { stroke-dashoffset: 0; }
}

.contact-form__success-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-8);
}

.contact-form__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    background: none;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-pill);
    padding: var(--space-3) var(--space-6);
    cursor: pointer;
    transition: color var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out);
}

.contact-form__back:hover {
    color: var(--color-text-primary);
    border-color: var(--color-gray-400);
}

/* Responsive */
@media (max-width: 1023px) {
    .contact-form__layout {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .contact-form__info {
        text-align: center;
    }

    .contact-form__info-divider {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .contact-form__row {
        grid-template-columns: 1fr;
    }

    /* Mobile: form goes near edge-to-edge with tight card padding
       so inputs get the most horizontal space possible. */
    .contact-form .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }

    .contact-form__card {
        padding: var(--space-2);
    }
}


/* FAQ styles moved to faq.css */


/* ============================================
   FUN FACTS / STATS
   ============================================ */
.fun-facts {
    padding: clamp(20px, 2.5vw, 36px) var(--space-6);
    padding-bottom: calc(var(--section-padding) * 1.5);
    background: #F5F5F5;
}

.fun-facts__inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.fun-facts__subtitle {
    font-size: 0.95rem;
    color: var(--color-dark-gray, #555);
    margin-bottom: var(--space-20);
    letter-spacing: 0.02em;
}

.fun-facts__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.fun-facts__card {
    padding: var(--space-10) var(--space-6);
    border-left: 1px solid #ccc;
}

.fun-facts__card:first-child {
    border-left: none;
}

.fun-facts__label {
    font-size: 0.85rem;
    color: var(--color-dark-gray, #666);
    margin-bottom: var(--space-4);
    line-height: 1.4;
}

.fun-facts__number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--color-navy, #1a1a2e);
    line-height: 1;
}

.fun-facts__plus {
    font-weight: 400;
    font-size: 0.5em;
    vertical-align: super;
    color: var(--color-dark-gray, #666);
}

@media (max-width: 1023px) {
    .fun-facts__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .fun-facts__card:nth-child(4) {
        border-left: none;
    }
}

@media (max-width: 600px) {
    .fun-facts__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fun-facts__card:nth-child(3) {
        border-left: none;
    }

    .fun-facts__card:nth-child(4) {
        border-left: 1px solid #ccc;
    }
}


/* ============================================
   FULL-SCREEN PROJECT MAP
   ============================================ */
.fullscreen-map {
    width: 100%;
    padding: 4rem 0 14rem;
    position: relative;
    background-color: #FFFFFF;
    background-image:
        linear-gradient(rgba(50, 48, 47, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 48, 47, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(50, 48, 47, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 48, 47, 0.03) 1px, transparent 1px);
    background-size: 160px 160px, 160px 160px, 40px 40px, 40px 40px;
    isolation: isolate;
    z-index: 2;
    overflow: hidden;
}

.fullscreen-map::before,
.fullscreen-map::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 1;
}

.fullscreen-map::before {
    height: 300px;
}

.fullscreen-map::after {
    height: 100px;
}

.fullscreen-map::before {
    top: 0;
    background: linear-gradient(to bottom, #FFFFFF, transparent);
}

.fullscreen-map::after {
    bottom: 0;
    background: linear-gradient(to bottom, transparent, #FFFFFF);
}

.fullscreen-map__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-6);
    padding: var(--space-8) 8rem var(--space-8) 2rem;
    border-top: 1px solid rgba(50, 48, 47, 0.15);
    position: relative;
    z-index: 2;
}

.fullscreen-map__stats {
    display: flex;
    gap: 0;
    align-items: flex-end;
}

.fullscreen-map__stat {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-right: clamp(1rem, 1.5vw, 1.5rem);
}

.fullscreen-map__stat + .fullscreen-map__stat {
    padding-left: clamp(1rem, 1.5vw, 1.5rem);
}

.fullscreen-map__stat::after {
    display: none;
}

.fullscreen-map__stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: var(--tracking-tighter);
    color: var(--color-text-primary);
}

.fullscreen-map__stat-plus {
    font-size: 0.55em;
    vertical-align: super;
    font-weight: 400;
}

.fullscreen-map__stat-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(50, 48, 47, 0.45);
}

.fullscreen-map__title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-4);
}

.fullscreen-map__eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    text-align: right;
}

.fullscreen-map__title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 11vw, 9.5rem);
    font-weight: var(--font-regular);
    line-height: 0.95;
    letter-spacing: var(--tracking-tighter);
    text-align: right;
    color: var(--color-gray-100);
    margin: 0;
}

.fullscreen-map__card {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.fullscreen-map__card .fullscreen-map__map {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: calc(100% + 120px);
}

.fullscreen-map__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}


.fullscreen-map__map {
    width: 100%;
    height: 100%;
    background: #FFFFFF !important;
}

#fullscreen-map-leaflet {
    background: #FFFFFF !important;
}

.fullscreen-map .container {
    max-width: 1800px;
}

/* Project List Carousel — tattoo / parchment style */
.project-list__wrap {
    position: relative;
    margin-top: var(--space-8);
}

.project-list__track {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scrollbar-width: none;
    padding: var(--space-6) 0 var(--space-8) 0;
}

.project-list__track::-webkit-scrollbar {
    display: none;
}

.project-list__card {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5) var(--space-4) var(--space-4);
    background: #F5F7FA;
    border-radius: var(--radius-lg);
    box-shadow: 0 3px 12px rgba(58, 70, 84, 0.1);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    flex-shrink: 0;
    overflow: hidden;
    border: 1.5px solid rgba(58, 70, 84, 0.12);
    position: relative;
}

.project-list__card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(232, 68, 58, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.project-list__card:hover {
    box-shadow: 0 6px 24px rgba(58, 70, 84, 0.18);
    border-color: rgba(58, 70, 84, 0.22);
    transform: translateY(-2px);
}

/* Client logo tile — replaces the old red map-pin icon in carousel cards */
.project-list__logo {
    width: 104px;
    height: 72px;
    flex-shrink: 0;
    object-fit: contain;
    padding: 12px 16px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(58, 70, 84, 0.1);
}

.project-list__icon {
    font-size: 22px;
    color: var(--color-gold);
    flex-shrink: 0;
}

.project-list__thumb {
    width: 120px;
    height: 120px;
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
}

.project-list__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.project-list__name {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: #3A4654;
    line-height: var(--leading-tight);
    white-space: nowrap;
}

.project-list__address {
    font-size: var(--text-xs);
    color: #8694A3;
    line-height: var(--leading-normal);
    white-space: nowrap;
}

.project-list__actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: var(--space-3);
}

.project-list__action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid rgba(58, 70, 84, 0.15);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    color: #8694A3;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.project-list__action svg {
    width: 15px;
    height: 15px;
}

.project-list__action--details:hover {
    background: #fff;
    color: #3A4654;
    border-color: #3A4654;
    transform: scale(1.1);
}

.project-list__action--zoom:hover {
    background: #fff;
    color: #3A4654;
    border-color: #3A4654;
    transform: scale(1.1);
}

.project-list__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(58, 70, 84, 0.15);
    background: #F5F7FA;
    color: #3A4654;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(58, 70, 84, 0.12);
}

.project-list__btn:hover {
    background: #3A4654;
    color: #F5F7FA;
    border-color: #3A4654;
}

.project-list__btn--left {
    left: -18px;
}

.project-list__btn--right {
    right: -18px;
}

.project-list__btn.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    /* Full-bleed: break the carousel out of the container so the track
       spans edge to edge of the viewport */
    .fullscreen-map .project-list__wrap {
        margin-left: calc(-1 * var(--container-padding));
        margin-right: calc(-1 * var(--container-padding));
    }

    .project-list__card {
        padding: var(--space-2) var(--space-3);
    }

    .project-list__logo {
        width: 84px;
        height: 56px;
        padding: 9px 12px;
    }

    .project-list__action {
        width: 28px;
        height: 28px;
    }

    .project-list__action svg {
        width: 13px;
        height: 13px;
    }

    /* No arrow buttons on mobile — the marquee auto-scrolls and is swipeable */
    .project-list__btn {
        display: none;
    }
}

.fm-pin-icon {
    background: none !important;
    border: none !important;
}

/* Pin marker — no transform/filter transitions to avoid GPU rasterization */
.fullscreen-map__map .leaflet-marker-icon {
    cursor: pointer;
}

.fullscreen-map__map .leaflet-control-attribution {
    display: none !important;
}

.fullscreen-map__map .leaflet-control-zoom {
    border: none !important;
    box-shadow: none !important;
    margin: calc(var(--space-6) + 60px) var(--space-6) var(--space-6) var(--space-6) !important;
}

.fullscreen-map__map .leaflet-control-zoom a {
    background: rgba(61, 50, 41, 0.7) !important;
    color: var(--color-pure-white) !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
    border-radius: var(--radius-sm) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s ease !important;
}

.fullscreen-map__map .leaflet-control-zoom a:hover {
    background: var(--color-black) !important;
}

.fullscreen-map__map .leaflet-control-zoom-in {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
    margin-bottom: 1px !important;
}

.fullscreen-map__map .leaflet-control-zoom-out {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
}

.fullscreen-map__map .leaflet-popup-content-wrapper {
    background: var(--color-white);
    color: var(--color-text-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.18);
    border: none !important;
    padding: 0;
    overflow: hidden;
    font-family: var(--font-body);
}

.fullscreen-map__map .leaflet-popup-content {
    margin: 0;
    min-width: 340px;
    max-width: 380px;
}

.fullscreen-map__map .leaflet-popup-tip {
    background: var(--color-white);
}

.fullscreen-map__map .leaflet-popup-close-button {
    display: none;
}

.fullscreen-map__map .leaflet-popup {
    transition: opacity 0.25s ease;
}

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

.project-popup--link .project-popup__link:hover .project-popup__img {
    filter: grayscale(0.3) contrast(1.1);
}

.project-popup__gmaps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    margin: 0 var(--space-5) var(--space-5);
    background: #1A1A1A;
    color: #fff;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #1A1A1A;
    transition: background 0.2s ease, color 0.2s ease;
}

.project-popup__gmaps:hover {
    background: #fff;
    color: #1A1A1A;
}

.project-popup__gmaps svg {
    flex-shrink: 0;
}

.project-popup__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    filter: grayscale(0.6) contrast(1.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.project-popup__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    object-fit: initial;
    filter: none;
}

/* No photo, but we have the client's logo — show it contained on white */
.project-popup__img--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    object-fit: initial;
    filter: none;
    padding: var(--space-5);
}

.project-popup__img--logo img {
    max-width: 78%;
    max-height: 64%;
    object-fit: contain;
}

.project-popup__body {
    padding: var(--space-4) var(--space-5) var(--space-5);
}

.project-popup__name {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: #1A1A1A;
    line-height: var(--leading-tight);
    margin: 0 0 var(--space-1) 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.project-popup__address {
    font-size: var(--text-xs);
    color: rgba(0, 0, 0, 0.45);
    margin: 0 0 var(--space-3) 0;
    line-height: var(--leading-normal);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-popup__desc {
    font-size: var(--text-sm);
    color: rgba(0, 0, 0, 0.55);
    line-height: var(--leading-normal);
    margin: 0;
}

@media (max-width: 768px) {
    .fullscreen-map {
        padding: var(--space-10) 0;
    }

    /* Stack the header so the "Our Projects" title stops overflowing off
       the right edge. The big asymmetric padding (8rem right) is dropped —
       the surrounding .container already supplies the horizontal inset. */
    .fullscreen-map__header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-6);
        padding: var(--space-6) 0;
    }

    .fullscreen-map__title-group {
        align-items: flex-start;
        width: 100%;
    }

    .fullscreen-map__eyebrow,
    .fullscreen-map__title {
        text-align: left;
    }

    .fullscreen-map__title {
        font-size: clamp(3rem, 14vw, 5.5rem);
    }

    .fullscreen-map__card {
        height: 400px;
    }

    .fullscreen-map__card .fullscreen-map__map,
    .fullscreen-map__overlay {
        top: -40px;
        height: calc(100% + 80px);
    }

    .fullscreen-map__map .leaflet-popup-content {
        min-width: 240px;
        max-width: 280px;
    }

    .project-popup__img {
        height: 130px;
    }
}

/* ============================================
   FULLSCREEN MAP — Marker Clustering
   ============================================ */

/* ---- Cluster count label (divIcon overlay) ---- */
.fm-cluster-count {
    background: none !important;
    border: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
    text-align: center;
}

/* ---- Cluster popup (scrollable project list) ---- */
.cluster-popup {
    overflow: hidden;
    border-radius: 0;
    min-width: 360px;
    position: relative;
}

/* Scroll arrows — horizontally centred above the popup */
.cluster-popup__scroll {
    display: none;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    color: #1A1A1A;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: background 0.15s ease, opacity 0.2s ease, transform 0.15s ease, border-color 0.15s ease;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

.ext-popup--visible .cluster-popup__scroll {
    opacity: 1;
    pointer-events: auto;
}

.cluster-popup__scroll:hover {
    background: #C0392B;
    color: #222;
    border-color: #C0392B;
    transform: scale(1.1);
}

.cluster-popup__scroll--hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

.cluster-popup__scroll--up {
    left: calc(50% - 38px);
}

.cluster-popup__scroll--down {
    left: calc(50% + 4px);
}

/* List */
.cluster-popup__list {
    max-height: 400px;
    overflow-y: scroll;
    padding: var(--space-2) 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.cluster-popup__list::-webkit-scrollbar {
    width: 4px;
}

.cluster-popup__list::-webkit-scrollbar-track {
    background: transparent;
}

.cluster-popup__list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

.cluster-popup__item {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cluster-popup__item:last-child {
    border-bottom: none;
}

.cluster-popup__item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.cluster-popup__card {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    box-shadow: none;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
}

.cluster-popup__thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px;
    background: transparent;
    filter: grayscale(0.6) contrast(1.1);
}

.cluster-popup__thumb--placeholder {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.2);
    font-size: 18px;
    width: 56px;
    height: 56px;
    border-radius: 2px;
    flex-shrink: 0;
    filter: none;
}

/* No photo, but we have the client's logo — show it contained on white */
.cluster-popup__thumb--logo {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    padding: 7px;
    flex-shrink: 0;
    filter: none;
}

.cluster-popup__thumb--logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cluster-popup__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.cluster-popup__name {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: #1A1A1A;
    line-height: var(--leading-tight);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.cluster-popup__address {
    font-size: var(--text-xs);
    color: rgba(0, 0, 0, 0.45);
    line-height: var(--leading-snug);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.03em;
}

.cluster-popup__actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
    padding-right: var(--space-4);
}

.cluster-popup__btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    color: #1A1A1A;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cluster-popup__btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.cluster-popup__btn--details:hover {
    background: var(--color-orange);
    color: #fff;
    border-color: var(--color-orange);
}

.cluster-popup__btn--zoom:hover {
    background: #1A1A1A;
    color: #fff;
    border-color: #1A1A1A;
}

.cluster-popup__btn--gmaps:hover {
    background: #1A1A1A;
    color: #fff;
    border-color: #1A1A1A;
}


/* ============================================
   REVEAL ANIMATION SYSTEM
   ============================================ */

/* Base hidden state for all reveal types */
[data-reveal] {
    opacity: 0;
    will-change: transform, opacity;
}

/* Fade Up */
[data-reveal="up"] {
    transform: translateY(40px);
    transition: opacity var(--duration-reveal) var(--ease-out-expo),
                transform var(--duration-reveal) var(--ease-out-expo);
}

[data-reveal="up"].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal Left */
[data-reveal="left"] {
    transform: translateX(-60px);
    transition: opacity var(--duration-reveal) var(--ease-out-expo),
                transform var(--duration-reveal) var(--ease-out-expo);
}

[data-reveal="left"].is-revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Reveal Right */
[data-reveal="right"] {
    transform: translateX(60px);
    transition: opacity var(--duration-reveal) var(--ease-out-expo),
                transform var(--duration-reveal) var(--ease-out-expo);
}

[data-reveal="right"].is-revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Reveal Scale */
[data-reveal="scale"] {
    transform: scale(0.92);
    transition: opacity var(--duration-reveal) var(--ease-out-expo),
                transform var(--duration-reveal) var(--ease-out-back);
}

[data-reveal="scale"].is-revealed {
    opacity: 1;
    transform: scale(1);
}

/* Reveal Blur */
[data-reveal="blur"] {
    filter: blur(8px);
    transform: translateY(12px);
    transition: opacity var(--duration-reveal) var(--ease-out-expo),
                transform var(--duration-reveal) var(--ease-out-expo),
                filter var(--duration-reveal) var(--ease-out-expo);
}

[data-reveal="blur"].is-revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Stagger delay system */
[data-reveal] {
    transition-delay: var(--reveal-delay, 0ms);
}

/* Legacy fade-up support */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity var(--duration-slower) var(--ease-out-expo),
                transform var(--duration-slower) var(--ease-out-expo);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   TEXT SPLIT REVEAL
   ============================================ */
[data-text-reveal] {
    overflow: hidden;
}

[data-text-reveal] .word {
    display: inline-block;
    overflow: hidden;
}

[data-text-reveal] .word-inner {
    display: inline-block;
    transform: translateY(105%);
    transition: transform var(--duration-reveal) var(--ease-out-expo);
    will-change: transform;
}

.hero__title .word-inner {
    transform: translateY(105%) rotate(3deg);
    transform-origin: left bottom;
}

[data-text-reveal].is-revealed .word-inner {
    transform: translateY(0) rotate(0deg);
}

[data-text-reveal="lines"] .line {
    display: block;
    overflow: hidden;
}

[data-text-reveal="lines"] .line-inner {
    display: block;
    transform: translateY(105%);
    transition: transform var(--duration-reveal) var(--ease-out-expo);
    will-change: transform;
}

[data-text-reveal="lines"].is-revealed .line-inner {
    transform: translateY(0);
}


/* ============================================
   IMAGE REVEAL — Clip-path Curtains
   ============================================ */
[data-image-reveal="horizontal"] {
    overflow: hidden;
}

[data-image-reveal="horizontal"] img {
    clip-path: inset(0 100% 0 0);
    transform: scale(1.08);
    transition: clip-path 1.2s var(--ease-out-expo),
                transform 1.6s var(--ease-out-expo);
    will-change: clip-path, transform;
}

[data-image-reveal="horizontal"].is-revealed img {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
}

[data-image-reveal="diagonal"] {
    overflow: hidden;
}

[data-image-reveal="diagonal"] img {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transform: scale(1.08);
    transition: clip-path 1.4s var(--ease-out-expo),
                transform 1.6s var(--ease-out-expo);
    will-change: clip-path, transform;
}

[data-image-reveal="diagonal"].is-revealed img {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: scale(1);
}


/* ============================================
   REDUCED MOTION — Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-text-reveal],
    [data-image-reveal],
    .fade-up {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
        transition: none !important;
    }

    [data-text-reveal] .word-inner,
    [data-text-reveal] .line-inner {
        transform: none !important;
        transition: none !important;
    }

    [data-image-reveal] img {
        clip-path: none !important;
        transform: none !important;
        transition: none !important;
    }

    .hero__badge-text { animation: none !important; }

    .hero__title-line,
    .hero__title-letter,
    .hero__building,
    .hero__badge {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hero__building {
        transform: translateX(-50%) !important;
    }
}

/* ============================================
   FOOTER — Card Style
   ============================================ */
.footer {
    background: #FCFCFC;
    padding: 0 16px 16px;
}

.footer__inner {
    background: #121212;
    color: #FFFFFF;
    border-radius: 24px;
    margin: 0 auto;
    padding: 4% 18%;
}

/* Top Row */
.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-10);
    margin-bottom: clamp(16px, 2vw, 24px);
}

.footer__top-left {
    max-width: 520px;
}

.footer__tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: var(--font-semibold);
    font-style: normal;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: #FFFFFF;
    margin-bottom: var(--space-2);
}

.footer__desc {
    font-size: var(--text-sm);
    color: #FFFFFF;
    line-height: var(--leading-normal);
}

/* Link Columns */
.footer__links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    margin-bottom: clamp(16px, 2vw, 24px);
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer__link {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: #FFFFFF;
    text-decoration: none;
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: color var(--duration-base) var(--ease-out);
    line-height: var(--leading-snug);
    overflow: hidden;
}

.footer__link-text {
    display: block;
}

.footer__link-text {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer--ready .footer__link:hover .footer__link-text {
    transform: translateX(6px);
}

.footer__link:hover {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer__link--address {
    cursor: default;
}

/* Override old footer link styles */
.footer .footer__links a,
.footer .footer__links li,
.footer .footer__link,
.footer .footer__col a {
    color: #FFFFFF !important;
}

.footer .footer__links a::after {
    display: none !important;
}

.footer .footer__links a:hover,
.footer .footer__link:hover,
.footer .footer__col a:hover {
    color: #FFFFFF !important;
}

.footer .footer__social,
.footer .footer__social a {
    color: #FFFFFF !important;
    font-size: 3rem;
}

.footer .footer__social:hover,
.footer .footer__social a:hover {
    color: rgba(255, 255, 255, 0.7) !important;
    transform: none;
}

/* Offices Strip */
.footer__offices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: clamp(16px, 2vw, 24px);
}

.footer__office {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-5) var(--space-5);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__office:first-child {
    padding-left: 0;
}

.footer__office:last-child {
    border-right: none;
}

.footer__office-label {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 2px;
}

.footer__office-addr {
    font-size: var(--text-sm);
    color: #FFFFFF;
    line-height: var(--leading-snug);
}

.footer__office-phone {
    font-size: var(--text-sm);
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity var(--duration-base) var(--ease-out);
}

.footer__office-phone:hover {
    opacity: 0.7;
}

.footer__office-contact {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.45);
    line-height: var(--leading-snug);
}

@media (max-width: 767px) {
    .footer__offices {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer__office {
        padding: var(--space-4) 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer__office:last-child {
        border-bottom: none;
    }
}

/* Bottom Bar */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: var(--space-6);
    position: static;
}

.footer__bottom::before {
    display: none;
}

.footer__bottom-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.footer__logo-img {
    height: 104px;
    width: auto;
}

.footer__logo-text {
    font-family: var(--font-body);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.025em;
}

.footer__copyright {
    font-size: var(--text-sm);
    color: #FFFFFF;
    line-height: var(--leading-normal);
}

.footer__bottom-center {
    display: none;
}

.footer__bottom-right {
    display: flex;
    gap: var(--space-3);
}

.footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 3rem;
    transition: color var(--duration-base) var(--ease-out);
    gap: 0;
}

.footer__social:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Hidden socials (e.g. Facebook/Instagram — no active accounts) stay in markup but render nothing */
.footer__social[hidden] {
    display: none;
}

/* Footer Responsive */
@media (max-width: 1023px) {
    .footer__inner {
        padding: 4% 14%;
    }

    .footer__top {
        flex-direction: column;
        gap: var(--space-4);
        margin-bottom: 16px;
    }

    .footer__links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
        margin-bottom: 16px;
    }
}

@media (max-width: 767px) {
    .footer {
        padding: 0 10px 10px;
    }

    .footer__inner {
        border-radius: 16px;
        padding: var(--space-10) var(--space-8);
    }

    .footer__top {
        margin-bottom: var(--space-6);
    }

    .footer__links {
        grid-template-columns: 1fr 1fr;
        column-gap: var(--space-6);
        row-gap: 0;
        margin-bottom: var(--space-6);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-top: var(--space-3);
    }

    .footer__col {
        gap: 0;
    }

    .footer__link {
        font-size: var(--text-sm);
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-5);
    }

    .footer__bottom-right {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .footer__inner {
        border-radius: 12px;
        padding: var(--space-8) var(--space-6);
    }

    .footer__links {
        grid-template-columns: 1fr 1fr;
        column-gap: var(--space-5);
    }

    .footer__link {
        font-size: 0.8125rem;
        padding: 11px 0;
        font-weight: var(--font-semibold);
        letter-spacing: -0.005em;
    }

}

@media (max-width: 360px) {
    .footer__inner {
        padding: var(--space-6) var(--space-5);
    }

    .footer__link {
        font-size: 0.75rem;
        padding: 10px 0;
    }
}


/* ============================================
   STICKY PAGERS — Push down when header appears
   ============================================
   header-scroll.js shows the fixed header (adds .header--scrolled) on
   scroll-up and hides it (adds .header--hidden) on scroll-down. The
   sticky pagers/steppers on each page use `top: 0` so they pin to the
   viewport's very top while their section is in view — which means
   they'd be obscured by the header the moment it slides back in.
   Use :has() to detect "header is currently showing" (has the
   .header--scrolled class but not .header--hidden), then push every
   sticky pager down by the header height (76px on mobile, the only
   place these pagers apply since they're all behind ≤900–1023px media
   queries). Smooth `top` transition so the bump feels intentional.
   --------------------------------------------------------------
   Pages covered:
   - page-explorer pager  (home)
   - ec-merged stepper   (ethics)
   - in-explore stepper  (innovation)
   - qm-explore stepper  (quality)
   - cm-strat stepper    (community)
   - svp-explore-pager   (services card popups)
   ============================================ */
.page-explorer__nav-wrap,
.ec-merged__mobile-nav,
.in-explore__mobile-nav,
.qm-explore__mobile-nav,
.cm-strat__mobile-nav,
.svp-explore-pager {
    transition: top 0.3s cubic-bezier(0.4, 0, 0.1, 1);
}

/* Push-down values track the actual .header__inner height at each
   viewport breakpoint (header.css:77/86/97/103) so the sticky pager
   sits flush against the header's bottom edge — no gap visible
   between them and no overlap. */
body:has(.header--scrolled:not(.header--hidden)) .page-explorer__nav-wrap,
body:has(.header--scrolled:not(.header--hidden)) .ec-merged__mobile-nav,
body:has(.header--scrolled:not(.header--hidden)) .in-explore__mobile-nav,
body:has(.header--scrolled:not(.header--hidden)) .qm-explore__mobile-nav,
body:has(.header--scrolled:not(.header--hidden)) .cm-strat__mobile-nav,
body:has(.header--scrolled:not(.header--hidden)) .svp-explore-pager {
    top: 76px;
}

@media (min-width: 480px) {
    body:has(.header--scrolled:not(.header--hidden)) .page-explorer__nav-wrap,
    body:has(.header--scrolled:not(.header--hidden)) .ec-merged__mobile-nav,
    body:has(.header--scrolled:not(.header--hidden)) .in-explore__mobile-nav,
    body:has(.header--scrolled:not(.header--hidden)) .qm-explore__mobile-nav,
    body:has(.header--scrolled:not(.header--hidden)) .cm-strat__mobile-nav,
    body:has(.header--scrolled:not(.header--hidden)) .svp-explore-pager {
        top: 84px;
    }
}

@media (min-width: 1024px) {
    body:has(.header--scrolled:not(.header--hidden)) .page-explorer__nav-wrap,
    body:has(.header--scrolled:not(.header--hidden)) .ec-merged__mobile-nav,
    body:has(.header--scrolled:not(.header--hidden)) .in-explore__mobile-nav,
    body:has(.header--scrolled:not(.header--hidden)) .qm-explore__mobile-nav,
    body:has(.header--scrolled:not(.header--hidden)) .cm-strat__mobile-nav,
    body:has(.header--scrolled:not(.header--hidden)) .svp-explore-pager {
        top: 96px;
    }
}

@media (min-width: 1400px) {
    body:has(.header--scrolled:not(.header--hidden)) .page-explorer__nav-wrap,
    body:has(.header--scrolled:not(.header--hidden)) .ec-merged__mobile-nav,
    body:has(.header--scrolled:not(.header--hidden)) .in-explore__mobile-nav,
    body:has(.header--scrolled:not(.header--hidden)) .qm-explore__mobile-nav,
    body:has(.header--scrolled:not(.header--hidden)) .cm-strat__mobile-nav,
    body:has(.header--scrolled:not(.header--hidden)) .svp-explore-pager {
        top: 104px;
    }
}
