:root {
    --site-max-width: 1100px;
    --site-padding: 5%;
}

.section-inner {
    width: 100% !important;
    max-width: var(--site-max-width) !important;
    margin: 0 auto !important;
    padding: 0 var(--site-padding) !important;
    box-sizing: border-box !important;
    display: block !important;
    position: relative !important;
}

.section-readmore {
    padding: 12rem 0 !important;
    /* Horizontal padding moved to inner */
    position: relative;
    background: linear-gradient(to bottom, #fbfbfd, #f5f5f7) !important;
    z-index: 20;
}

.section-welcome {
    padding: 18rem 0 15rem !important;
    /* Horizontal padding moved to inner */
    background: #ffffff !important;
    z-index: 20;
    position: relative;
}

.welcome-text {
    font-size: 3rem !important;
    /* Scaled down for better balance */
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2.0px;

    /* Silk-Etched Gradient: Provides metallic depth */
    background: linear-gradient(to bottom, #1d1d1f 60%, #434345 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    max-width: 1010px;
    margin: 0 auto;
    text-align: center;
    display: block;
    /* Changed from inline-block to block for better auto-centering */
}

.section-gallery {
    padding: 12rem 0 !important;
    /* Horizontal padding moved to inner */
    position: relative;
    background: #ffffff !important;
    z-index: 20;
}

.community-section {
    padding: 25vh 0 10rem !important;
    /* Horizontal padding moved to inner */
    position: relative;
    background-color: var(--bg-color) !important;
    z-index: 20;
}

/* Greetings when outside cinematic runway (fallback) */
.section-greetings:not(.cinematic-greetings) {
    padding: 14rem 5% 0rem;
    position: relative;
    background-color: var(--bg-color) !important;
    z-index: 20;
}

.hero-sticky-content {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
}

.hero-title {
    font-size: 12.0rem !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-weight: 425 !important;
}

.hero-content {
    position: relative !important;
    bottom: 12vh !important;
    left: 13.5% !important;
    width: auto;
    padding-left: 0 !important;
    display: block !important;
    text-align: left;
}

.hero-subtitle {
    position: absolute !important;
    left: 1.5% !important;
    bottom: -14vh !important;
    padding-left: 0 !important;
    margin-top: 0 !important;
}

.hero-right {
    position: absolute !important;
    bottom: 7.5vh !important;
    left: 14.35% !important;
    width: auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

.hero-right * {
    pointer-events: auto;
}

.greetings-title {
    font-size: clamp(4rem, 8vw, 8.5rem);
    letter-spacing: -3px;
    font-style: italic;
    opacity: 0.95;
    margin-bottom: 4rem;
}

.small-caps {
    font-size: 0.75rem;
    letter-spacing: 6px;
    font-weight: bold;
    color: #999;
}

.apple-copy {
    font-size: 1.35rem;
    max-width: 750px;
    color: #444;
    line-height: 1.9;
}

.stat-number {
    font-size: 6rem;
    font-weight: 300;
}

.outreach-title {
    font-size: 5rem;
    letter-spacing: 12px;
}

.section-title {
    font-family: var(--font-sans) !important;
    font-size: clamp(3rem, 6vw, 4.5rem) !important;
    letter-spacing: -1.5px !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin-bottom: 1.5rem !important;
}

.section-subtitle {
    font-family: var(--font-sans) !important;
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    color: #666 !important;
    line-height: 1.8 !important;
}

/* 3. Glassmorphism / Materiality */
.glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.stat-box {
    padding: 3.5rem 2rem;
    border-radius: 24px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.glass-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card::before {
    background: rgba(0, 0, 0, 0.2) !important;
}

.glass-card:hover::before {
    background: rgba(0, 0, 0, 0.45) !important;
}

/* 4. HERO IMAGE SEQUENCE ARCHITECTURE */
.hero-container {
    position: relative;
    height: 1500vh !important;
    /* Shortened by 12% from 1500vh for a balanced overall sequence */
    background-color: #000;
    overflow: visible;
}

/* PHASE 2: Greetings as a sticky cinematic overlay */
.cinematic-greetings {
    position: sticky !important;
    top: 0;
    height: 100vh;
    z-index: 15;
    background: transparent !important;
    padding: 0 !important;
    pointer-events: none;
    opacity: 1;
}

/* Positioning context for absolute phrase wraps */
.cinematic-greetings .greetings-inner {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* All staggered elements start invisible — JS reveals individually */
.cg-element {
    opacity: 0;
    transform: translateY(28px) rotateX(15deg);
    ;
    transform-origin: center bottom;
    will-change: opacity, transform;
    transition: opacity 0.04s linear, transform 0.04s linear;
}

/* PHRASE WRAPS: Absolutely centred, each phrase occupies the same spot */
.cg-phrase-wrap {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    padding: 0 8%;
    pointer-events: auto;
}

/* P1: "Greetings." — large, editorial weight */
.cinematic-greetings .greetings-title {
    font-size: clamp(5rem, 9vw, 9rem) !important;
    font-weight: 700 !important;
    letter-spacing: -4px !important;
    line-height: 1.0 !important;
    color: #fff !important;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35) !important;
    margin: 0 !important;
}

/* P2–P4: Body phrases — Bold, large, two lines */
.cg-p2,
.cg-p3,
.cg-p4 {
    font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif !important;
    font-size: clamp(2rem, 3.5vw, 3.8rem);
    font-weight: 700;
    color: #fff !important;
    line-height: 1.25;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 25px rgba(0, 0, 0, 0.4);
}

/* P5: "— defined..." — Italic, slightly smaller */
.cg-p5 {
    font-size: clamp(1.5rem, 2.5vw, 2.8rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.3;
    /* Tightened from 1.4 for density */
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

/* P6: Stats row — centred, bold numbers */
.cinematic-greetings .stats-row {
    display: flex;
    justify-content: center;
    gap: 5rem;
    align-items: flex-start;
}

.cinematic-greetings .cg-stat-box {
    text-align: center;
}

.cinematic-greetings .stat-number {
    font-size: clamp(3rem, 5vw, 5rem) !important;
    font-weight: 700 !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    color: #fff !important;
    letter-spacing: -2px !important;
    line-height: 1 !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35) !important;
    margin-bottom: 0.5rem !important;
    display: block;
}

.cinematic-greetings .plus {
    font-size: 0.5em;
    vertical-align: super;
    opacity: 0.6;
}

.cinematic-greetings .stat-label {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    letter-spacing: 0.05em !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    max-width: 130px;
    margin: 0 auto;
}


/* Capabilities acts as the solid curtain ending the sequence */
.section-readmore {
    position: relative;
    z-index: 25 !important;
    background-color: var(--bg-color) !important;
}


#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    object-fit: cover;
    pointer-events: none;
}

.hero-sticky-content {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 10;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.hero-sticky-content * {
    pointer-events: auto;
}

.hero-title {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-right {
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 5. Navigation & Global Overrides */
.navbar {
    z-index: 1000;
    /* Ensure nav sits above canvas */
}

/* Hide old static hero to prevent flickering */
.hero {
    display: none !important;
}

/* 5. Sleek Minimalist Typography Cards */
.readmore-card {
    background-image: none !important;
    /* Force bypass the inline script if still active */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.5));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03), inset 0 2px 0 rgba(255, 255, 255, 0.8);
    padding: 3.5rem 0.5rem !important;
    /* Increased padding buffer away from edges */
    height: 400px !important;
    /* Overrides the original fixed 300px */
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}


/* Video background styling for bento cards */
.bg-video {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}


.readmore-card .slick-content {
    position: relative !important;
    z-index: 1;
}

.readmore-card::before {
    display: none !important;
}

/* Remove old dark overlay */

.readmore-card:hover {
    transform: none !important;
    box-shadow: none !important;
    background: inherit !important;
    border-color: inherit !important;
}

.slick-content {
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 4rem 2.5rem;
    align-items: center;
    justify-content: center;
}

.slick-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
}

.slick-number {
    display: none;
}

.slick-body {
    margin-top: auto;
    margin-bottom: 0;
}

.readmore-card .card-title {
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #fff;
    transform: none !important;
    /* Override legacy scale-up text effect */
}

.slick-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.slick-spacer {
    height: 1it 5rem;
}


.slick-footer {
    position: absolute;
    bottom: -8rem;
    left: 0;
    right: 0;
    display: flex;
    display: flex;
    align-items: center;
    border-top: none;
    padding-top: 0;
    margin-top: 5rem;
    justify-content: center;
}

.slick-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 40px;
    padding: 0.45rem 1.1rem;
    color: #1d1d1f !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.8px !important;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.slick-arrow:hover {
    opacity: 0.7;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    background: #f5f5f7;
}

/* 6. Gallery: Priority Alignment discovering (Linear discovery) */
.gallery-controls {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    padding-right: 8%;
    /* Shifted slightly back left from the previous 5% */
    margin: -1rem 0 0 0;
}

.gallery-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gallery-nav-btn:hover {
    background: #f5f5f7;
    transform: scale(1.05);
    border-color: rgba(0, 0, 0, 0.2);
}

.gallery-nav-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.gallery-nav-btn:hover svg {
    transform: scale(1.1);
}

.gallery-window {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    position: relative;
    overflow: visible;
    z-index: 30;
}

.gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* ALIGNMENT: 900px centered box + 5% inner padding */
    padding-left: calc((100vw - 900px) / 2 + 45px) !important;
    padding-right: 15vw !important;
    gap: 16px;
    scrollbar-width: none;
    padding-top: 2rem;
    padding-bottom: 5rem;
    margin-top: -2rem;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 300px;
    /* Narrower bento: 300px */
    height: 520px;
    position: relative;
    border-radius: 25px !important;
    overflow: visible;
    background: transparent;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03) translateY(-10px);
}

/* Inner clip wrapper keeps portrait images contained while card lifts freely */
.gallery-item .portrait-clip {
    position: absolute;
    inset: 0;
    border-radius: 25px;
    overflow: hidden;
    z-index: 0;
    background: #fbfbfd;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.6s ease;
}

.gallery-item:hover .portrait-clip {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.gallery-item.dark-variant .portrait-clip {
    background: #000000;
}

/* Kill legacy square after pseudo-element from style.css */
.gallery-item::after {
    display: none !important;
}

/* Also kill legacy hover from style.css that still targets .gallery-item */
.gallery-item:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: none !important;
}

/* "Bleed" Fix for High-Radius Antialiasing Outlines */
.portrait-crisp,
.portrait-blur-bg {
    position: absolute;
    inset: -1.5px !important;
    /* BLEED: Slightly overshoot to mask edge artifacts */
    width: calc(100% + 3px) !important;
    height: calc(100% + 3px) !important;
    background-size: cover;
    background-position: center;
    border: none !important;
    outline: none !important;
}


.gallery-caption {
    position: absolute;
    inset: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18% 10% 12% 10% !important;
    background: transparent !important;
    opacity: 1 !important;
    transition: opacity 0.5s ease;
    z-index: 10;
    pointer-events: none;
    text-align: left;
}

.gallery-caption .project-title,
.gallery-caption .project-desc {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover .project-title,
.gallery-item:hover .project-desc {
    opacity: 1 !important;
}

.caption-header {
    width: 100%;
    transform: translateY(-20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .caption-header {
    transform: translateY(0);
}

.gallery-caption .project-title {
    color: #333 !important;
    /* CHARCOAL: Premium, high-contrast dark tone */
    font-size: 0.8rem;
    font-weight: 450;
    letter-spacing: -0.4px;
    margin-bottom: 0.5rem;
    text-transform: none;
    text-shadow: none !important;
    /* PURGE: Removed shadows for clean minimalism */
}

.gallery-caption .project-desc {
    color: #4a4a4a !important;
    /* Muted Charcoal for description */
    font-size: 1.35rem;
    font-weight: 630;
    line-height: 1.4;
    max-width: 85%;
    margin: 0;
    text-shadow: none !important;
}

.caption-footer {
    position: absolute !important;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    display: flex;
    justify-content: flex-end;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .caption-footer {
    transform: translateY(0);
}

.liquid-button {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1d1d1f !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    padding: 0 !important;
    opacity: 1 !important;
}

.liquid-button svg {
    width: 14px !important;
    height: 14px !important;
}

.liquid-button:hover {
    background: #f5f5f7 !important;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

/* 6.1 Dark Variant Overrides (for black_pic6) */
.dark-variant .project-title {
    color: #ffffff !important;
}

.dark-variant .project-desc {
    color: rgba(255, 255, 255, 0.8) !important;
}

.dark-variant .liquid-button {
    background: #ffffff !important;
    color: #1d1d1f !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


.dark-variant .liquid-button:hover {
    background: #f5f5f7 !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #1d1d1f !important;
}

/* Deepen black levels for cinematic intensity in Slot 6 */
.dark-variant .portrait-crisp {
    filter: brightness(1.15) contrast(1.05) grayscale(0%);
}

/* Per-item filter controls - customize each bento individually */
.gallery-item-1 .portrait-crisp {
    filter: brightness(1.1) contrast(1.1) saturate(1.05);
}

.gallery-item-2 .portrait-crisp {
    filter: brightness(1.25) contrast(1.05) saturate(0.95);
}

.gallery-item-3 .portrait-crisp {
    filter: brightness(1.15) contrast(1.0) saturate(1.1);
}

.gallery-item-4 .portrait-crisp {
    filter: brightness(1.0) contrast(1.2) saturate(1.0);
}

.gallery-item-6 .portrait-crisp {
    filter: brightness(1.25) contrast(1.1) saturate(1.15);
}

/* Base class for outpainting backdrop */
.portrait-blur-bg {
    display: none !important;
    /* Removed outpainting structure to unconditionally force edge-to-edge images */
}

/* Base class for sharp foreground object */
.portrait-crisp {
    position: absolute;
    inset: 0px;
    /* Snaps the image cleanly all the way to the edge without empty space */
    background-size: cover;
    /* Absolutely fills the frame */
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    filter: grayscale(40%);
    /* Default subtle artistic grey */
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), filter 1.5s ease;
}




.gallery-track .gallery-item.featured-gallery:hover .portrait-crisp {
    transform: scale(1.20);
}

/* 7. Ensure Clean Capabilities Readmore Frame Formatting */
#read-more .cards-container {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: 1fr;
    gap: 0.75rem;
}

/* Enforce Strict Gallery Bounding Box Alignment for Texts Only */
#outreach .outreach-content,
#gallery .section-inner>.small-caps,
#gallery .section-inner>.section-title,
#gallery .section-inner>.section-subtitle {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.readmore-card {
    height: 400px !important;
    min-height: 120px;
    padding: 3.5rem 2.5rem !important;
    /* Restores massive elegant breathing room */
}

/* 8. Featured 5th Image Outpainting Frame */
.gallery-item.featured-gallery .portrait-blur-bg {
    display: block !important;
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.5);
    z-index: 0;
    transition: filter 1.5s ease, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-track .gallery-item.featured-gallery:hover .portrait-blur-bg {
    filter: blur(35px) brightness(0.85);
    transform: scale(1.1);
}

.gallery-item.featured-gallery .portrait-crisp:hover {
    transform: scale(1.20);
    filter: grayscale(0%) brightness(1.05);
}

/* 9. Visionary Split Community Layout (Bento Style) */
.community-section {
    padding: 10rem 5%;
    background-color: transparent;
    position: relative;
    z-index: 10;
}

.community-split {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7rem;
    max-width: 1300px;
    margin: 0 auto;
}

.community-text-panel {
    flex: 1;
    max-width: 500px;
}

.community-visual-panel {
    flex: 1.2;
    position: relative;
    height: 700px;
    /* High editorial portrait feel */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    transform: translateZ(0);
    /* Hardware acceleration for crisp renders */
}

.community-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.community-visual-panel:hover .community-image {
    transform: scale(1.05);
    /* Apple-like subtle premium zoom */
}

/* Responsive flip for mobile */
@media (max-width: 900px) {
    .community-split {
        flex-direction: column;
        gap: 4rem;
    }

    .community-visual-panel {
        width: 100%;
        height: 500px;
    }

    .community-title {
        font-size: 3.5rem;
    }
}

/* 10. Crossfade Lens Animations (Community Section) */
.crossroads-slide {
    position: absolute;
    inset: -5px;
    /* Slight hardware overlap to absorb scaling edges */
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: filter 1s ease;
    animation: fadeCycle 15s infinite;
}

.crossroads-slide:nth-child(1) {
    animation-delay: 0s;
}

.crossroads-slide:nth-child(2) {
    animation-delay: 5s;
}

.crossroads-slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes fadeCycle {
    0% {
        opacity: 0;
        transform: scale(1.0);
        filter: brightness(0.6);
    }

    5% {
        opacity: 1;
        transform: scale(1.02);
        filter: brightness(1.05);
    }

    29% {
        opacity: 1;
        transform: scale(1.05);
        filter: brightness(1.05);
    }

    33% {
        opacity: 0;
        transform: scale(1.06);
        filter: brightness(0.6);
    }

    100% {
        opacity: 0;
        transform: scale(1.0);
        filter: brightness(0.6);
    }
}

/* 11. Massive Editorial Links (Contact Section) */
.contact-links-panel {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.massive-link {
    font-size: clamp(1.6rem, 3.2vw, 2.8rem);
    font-weight: 300;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
    transition: color 0.5s ease, border-color 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.massive-link:hover {
    color: var(--accent-brown);
    border-color: var(--accent-brown);
    transform: translateX(20px);
}

/* 13. Specific Image Scaling & Color Adjustments */
/* 13. Gallery Item Clean Slate - v21.8 Purge */
/* All individual vignettes and color offsets removed to fix shadow artifacts */


/* 12. Sticky Scroll Album (Community Section Preview) */
.community-section.sticky-layout {
    padding: 10rem 5% 5rem;
    position: relative;
    background-color: transparent;
}

.community-sticky-container {
    display: flex;
    flex-direction: row;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.community-text-sticky {
    flex: 1;
    max-width: 500px;
    position: sticky;
    top: 30vh;
}

.community-scroll-album {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-bottom: 5rem;
}

.album-photo {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-photo:hover {
    transform: scale(1.03) translateY(-10px);
}

.album-photo:nth-child(even) {
    margin-left: 10%;
    width: 90%;
}

.album-photo:nth-child(odd) {
    margin-right: 10%;
    width: 90%;
}

@media (max-width: 900px) {
    .community-sticky-container {
        flex-direction: column;
    }

    .community-text-sticky {
        position: relative;
        top: 0;
        margin-bottom: 4rem;
    }

    .album-photo {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* 15. Live UI Integration into Slick Cards */
.live-ui-card {
    position: relative;
}

/* Hide slick text dynamically when popup appears */
.live-ui-card .slick-content {
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.live-ui-card:hover .slick-content {
    opacity: 0.15;
    filter: blur(4px);
}

.card-overlay-ui {
    position: absolute;
    inset: 0;
    /* Occupy full bounds of the card */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center horizontally/vertically */
    align-items: center;
    z-index: 5;
    pointer-events: none;
}

/* Qualifications Notification Stack */
.box-notifications {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Tighter gap to fit inside standard height */
    align-items: center;
    position: relative;
    z-index: 2;
    width: 85%;
    /* Scaled cleanly avoiding the rim */
}

.noti-item {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: 'SF Pro Display', -apple-system, sans-serif;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #1d1d1f;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 1. Universal Transition Logic */
.live-ui-card:hover .noti-item.n-1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.live-ui-card:hover .noti-item.n-2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.08s;
}

.live-ui-card:hover .noti-item.n-3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.16s;
}

/* 15. Standard Section Flow */
#outreach.community-section {
    position: relative;
    z-index: 1;
    padding-bottom: 10rem !important;
    overflow: visible;
}

.community-sticky-container {
    display: flex;
    flex-direction: row;
    gap: 5rem;
    position: relative;
}

.community-text-sticky {
    position: sticky !important;
    top: 25vh !important;
}

.network-link {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 110;
    pointer-events: auto !important;
}

.network-link:hover {
    opacity: 1 !important;
    text-decoration: underline;
}

.section-light {
    padding: 22rem 0 !important;
    /* Extended section background */
    background-color: #fbfbfd;
    position: relative;
    z-index: 20;

    /* Override for connect section */
    padding: 26rem 5% !important;
    background-color: var(--bg-color) !important;
    z-index: 10 !important;
}

.connect-grid {
    display: flex;
    gap: 2.5rem;
    /* Tighter gap for condensed look */
    max-width: 900px;
    /* Condensed Apple-style width */
    margin: 0 auto;
    width: 92%;
}

.section-light .footer-card {
    flex: 1;
    /* Equal split */
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04) !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    color: var(--text-dark) !important;
    padding: 5rem 4rem;
    /* Adjusted padding for split boxes */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 25px;
}

.connect-grid .footer-card:nth-child(1) {
    background: linear-gradient(145deg, #424242 0%, #0A0A0A 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2) !important;
}

.connect-grid .footer-card:nth-child(1) .small-caps {
    color: var(--accent-brown) !important;
    /* Bronze Access */
}

.connect-grid .footer-card:nth-child(1) .section-title {
    background: linear-gradient(135deg, var(--bg-color) 0%, #FFFFFF 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.connect-grid .footer-card:nth-child(1) .section-subtitle {
    color: var(--accent-taupe) !important;
    /* Soft Greige */
}

.connect-grid .footer-card:nth-child(2) {
    position: relative;
    overflow: hidden;
    flex: 1;
    /* Balanced 1:1 split for Apple aesthetic */
    padding: 5rem 2rem;
    /* Comfortable padding for emphasis */
    align-items: center;
    text-align: center;
    background: var(--bg-color) !important;
}

#manifesto-flicker-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: multiply;
    filter: contrast(1.8) brightness(0.9);
    /* High density for 'pale' drawings */
    opacity: 0.25;
    /* Stronger base visibility */
    transition: opacity 0.05s ease;
}

.footer-card-statement {
    position: relative;
    z-index: 2;
}

.connect-grid .footer-card:nth-child(1) .social-icon {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--bg-color) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.connect-grid .footer-card:nth-child(1) .social-icon:hover {
    background: #FFFFFF !important;
    color: #000 !important;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1) !important;
}

.connect-grid .footer-card:nth-child(2) {
    flex: 0.8;
    /* Slightly smaller manifesto box */
    align-items: center;
    text-align: center;
}

.section-light .footer-card-left .small-caps {
    color: #888 !important;
}

.section-light .footer-card-left .section-title {
    background: linear-gradient(135deg, #000 0%, #444 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.section-light .footer-card-left .section-subtitle {
    color: #666 !important;
}

.section-light .footer-manifesto {
    font-size: 1rem !important;
    /* Root reset for spans */
    font-family: 'SF Pro Display', -apple-system, sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -1.2px !important;
    color: var(--text-dark) !important;
    text-align: center;
    white-space: nowrap !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    margin: 0 !important;
}

.manifesto-lead {
    font-size: 1.8rem !important;
    /* Grounded lead-in for Apple aesthetic */
    opacity: 0.85;
    /* Increased for legibility */
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500 !important;
}

.manifesto-emphasis {
    font-size: 3.2rem !important;
    /* Bold focal point */
    display: block;
    line-height: 1.0 !important;
    letter-spacing: -3px !important;
    text-transform: none !important;
}

.manifesto-highlight {
    background: linear-gradient(135deg, #D9C9BE 0%, #8C7A70 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    display: inline-block;
    padding: 0.05em 0.1em;
    /* Prevents glyph clipping on 'y' and edges */
    margin: -0.05em -0.1em;
    /* Offsets padding for perfect alignment */
}

.section-light .social-icon {
    background: #F0F0F0 !important;
    color: #000 !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.section-light .social-icon:hover {
    background: #000 !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 900px) {
    .connect-grid {
        flex-direction: column;
    }
}

@keyframes drift-1 {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

@keyframes drift-2 {
    0% {
        background-position: 100% 0%;
    }

    100% {
        background-position: 0% 100%;
    }
}

@keyframes drift-3 {
    0% {
        background-position: 50% 0%;
    }

    100% {
        background-position: 50% 200%;
    }
}




.footer-card {
    background: rgba(25, 25, 25, 0.45);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 6rem 5rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    z-index: 5;
    align-items: center;

    /* THE BUSINESS CARD HAND-OFF: Tucked behind the site platform */
    opacity: 0;
    transform: scale(0.95) translateY(-120px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Shallow shadow while hidden */

    transition:
        transform 1.8s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 1.8s ease,
        border-color 0.4s ease;
    will-change: transform, opacity;
}

/* THE HANDED-OUT STATE: Card slides forward/down into the light */
.footer-card.is-revealed {
    opacity: 1;
    transform: scale(1) translateY(0);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.footer-card:hover {
    transform: translateY(-8px) scale(1.005);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}


.footer-manifesto {
    font-size: 3rem;
    line-height: 1.2;
    font-family: 'SF Pro Display', -apple-system, sans-serif;
    font-weight: 700;
    margin: 0;
    letter-spacing: -2px;

    /* GLASSY SHINE-THROUGH: Increased opacity for dark background */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.7) 0%,
            rgba(255, 255, 255, 0.95) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent !important;

    /* Glassy glow depth */
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
}

@keyframes glass-shimmer {
    0% {
        background-position: -100% center;
    }

    100% {
        background-position: 100% center;
    }
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
    margin-top: 4rem;
}

.social-icon {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-icon:hover {
    background: #FFFFFF;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
}

.footer-copyright-slim {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 6rem;
    z-index: 2;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}


/* ── PHASE 4 REFINED: TYPOGRAPHY & ASYMMETRIC LAYOUT ── */

/* P4: "visionary purpose" scaling */
.cg-p4 {
    text-align: center;
}

.visionary-text.scaled-bold {
    font-family: 'Times New Roman', Times, serif !important;
    font-style: italic !important;
    font-weight: 700 !important;
    /* Bolded as requested */
    font-size: 1.4em !important;
    /* Scaled up from 1.2em */
    letter-spacing: -1px;
    margin-top: 0.5rem;
    display: block;
}

/* --- PHASE 4 ROUND 4 REFINEMENTS --- */

/* Read More CTA: Floating & Centered at Bottom */
/* Read More CTA: Simple Floating Placement */
.cg-read-more {
    position: absolute;
    bottom: 4vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cg-read-more.is-visible {
    opacity: 0.8;
    pointer-events: auto;
    animation: floatCTA 3s ease-in-out infinite;
}

.read-more-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.read-more-arrow {
    color: #fff;
    opacity: 0.6;
}

@keyframes floatCTA {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -10px);
    }
}

.cg-read-more:hover {
    opacity: 1 !important;
}

/* Highlight Bronze (Inactive / Reverted to White in HTML) */
.highlight-bronze {
    color: inherit !important;
}

/* P4 Typography Hierarchy Final */
.body-text-scaled {
    font-size: 0.85em;
    opacity: 0.9;
    font-weight: 600;
}

/* --- PHASE 4 ROUND 15: MASTER V15.0 EDGE POLISH --- */

/* Global Force: Cinematic White */
#cg-p4-master *,
#cg-p5-master * {
    color: #fff !important;
}

/* P2 & P3: High-Density Editorial Framing - v16.0 Master Assignment */
.cg-p2,
.cg-p3 {
    font-size: clamp(1.4rem, 2.6vw, 3.0rem) !important;
    font-family: "Avenir Next", Avenir, sans-serif !important;
    transform: translateY(2vh) !important;
    opacity: 0.9;
    font-weight: 500 !important;
}

/* P4: Three-word sequential display - Right Vertical Region */
#cg-p4-master {
    position: absolute !important;
    right: 5% !important;
    top: 50% !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    align-items: flex-end !important;
    pointer-events: none !important;
}

.cg-p4-word {
    font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif !important;
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
    font-weight: 450 !important;
    color: #fff !important;
    line-height: 1.3 !important;
    letter-spacing: -1px !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4) !important;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.cg-p4-word.is-visible {
    opacity: 1;
}

/* P5: Re-Marginalized Right - v15.1 Polish */
#cg-p5-master {
    bottom: 9vh !important;
    right: -2.5% !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    pointer-events: none;
}

.p5-flex-box {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 110px !important;
    text-align: right;
    width: max-content;
    margin-left: auto;
}

.p5-line {
    font-size: clamp(1.4rem, 2.2vw, 2.5rem);
    font-family: "Avenir Next", Avenir, sans-serif !important;
    line-height: 1.1 !important;
    white-space: nowrap;
    opacity: 0.95;
}

/* Stats Counter: Center Pull */
.cg-left-vertical {
    left: 6% !important;
}

.stats-column {
    display: flex;
    flex-direction: column;
    gap: 4.0rem;
    align-items: flex-start;
}

.cg-left-vertical .cg-stat-box {
    text-align: left;
}

.cg-left-vertical .stat-label {
    margin: 0 auto 0 0;
    max-width: 160px;
}

/* ── Cinematic Outreach Stage (v21.35 Final-Correction) ── */
#outreach.outreach-stage {
    position: relative;
    width: 100% !important;
    height: 150vh !important;
    /* Increased height as requested */
    background: #000000 !important;
    overflow: hidden;
    margin: 0;
    padding: 0 !important;
    filter: none !important;
    backdrop-filter: none !important;
}

#outreach .outreach-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0 !important;
    filter: brightness(0.45) !important;
    transition: opacity 0.8s ease !important;
    backdrop-filter: none !important;
}

#outreach .outreach-video.active {
    opacity: 1 !important;
    z-index: 10;
}

.outreach-overlay {
    position: absolute;
    inset: 0;
    /* High-fidelity left-aligned composition with offset vignette */
    background: radial-gradient(circle at 20% 50%, transparent 20%, rgba(0, 0, 0, 0.6) 100%) !important;
    display: flex !important;
    align-items: center !important;
    z-index: 100 !important;
    pointer-events: none !important;
    backdrop-filter: none !important;
}

.outreach-content {
    text-align: left !important;
    /* Left align text */
    color: #ffffff !important;
    z-index: 110 !important;
    max-width: 650px !important;
    filter: none !important;
    backdrop-filter: none !important;
}

.outreach-content .section-title {
    color: #ffffff !important;
    font-size: 5.5rem !important;
    font-weight: 800 !important;
    letter-spacing: -3.8px !important;
    margin: 0.5rem 0 1.5rem !important;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.7) !important;
}

.outreach-content .section-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.5rem !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9) !important;
}

/* 9. Welcoming Section: About Button */
.btn-solid-charcoal {
  display: inline-block;
  background: #1d1d1f !important;
  color: #ffffff !important;
  padding: 0.4rem 1.5rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 110;
  pointer-events: auto !important;
}

/* Standardized outline button for light backgrounds */
.btn-outline-charcoal {
  display: inline-block;
  background: transparent;
  color: #1d1d1f;
  padding: 0.4rem 1.5rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-outline-charcoal:hover {
  background: #f5f5f7;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Solid white button for dark backgrounds */
.btn-solid-white {
  display: inline-block;
  background: #ffffff !important;
  color: #1d1d1f !important;
  padding: 0.4rem 1.5rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 110;
  pointer-events: auto !important;
}

.btn-solid-white:hover {
  background: #f5f5f7 !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Outline button for dark backgrounds */
.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  padding: 0.4rem 1.5rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Specific override for Community Section button to be white with charcoal text */
#outreach .btn-solid-charcoal {
    background: #ffffff !important;
    color: #1d1d1f !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

#outreach .btn-solid-charcoal:hover,
.btn-solid-charcoal:hover,
a.btn-solid-charcoal:hover {
    /* Solid dark → becomes white on hover */
    background: #ffffff !important;
    color: #1d1d1f !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.25s ease !important;
}

.btn-solid-charcoal:active,
.btn-solid-white:active,
.btn-outline-charcoal:active,
.btn-outline-white:active {
    transform: translateY(0) scale(0.98) !important;
    transition: all 0.1s ease !important;
}

/* Button hover inversion states */
/* Solid white on dark bg → becomes dark bg with white text on hover */
a.btn-solid-white:hover {
    background: #1d1d1f !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.25s ease !important;
}

/* Outline charcoal on light bg → fills solid on hover */
a.btn-outline-charcoal:hover {
    background: #1d1d1f !important;
    color: #ffffff !important;
    border-color: #1d1d1f !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.25s ease !important;
}

/* Outline white on dark bg → fills solid on hover */
a.btn-outline-white:hover {
    background: #ffffff !important;
    color: #1d1d1f !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.25s ease !important;
}

/* Glassmorphic btn-solid-charcoal on dark backgrounds (like index outreach) → inverts on hover */
#outreach.outreach-stage .btn-solid-charcoal:hover,
a.btn-solid-charcoal.on-dark:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    transition: all 0.25s ease !important;
}

.section-manifesto {
    padding: 22rem 0 !important;
    background: #050506 !important;
    text-align: center;
    position: relative;
    z-index: 20;
    overflow: hidden;
}

.section-manifesto::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

#manifesto-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.section-manifesto .section-inner {
    position: relative;
    z-index: 1;
}

.manifesto-staged-container {
    max-width: 1100px;
    margin: 0 auto;
    color: #fff;
    position: relative;
}

.m-stage-l1 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 2rem;
    color: #fff;
}

.m-stage-l2 {
    font-size: 4rem;
    /* Significantly scaled down */
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.05;
    display: flex;
    justify-content: center;
    color: #fff;
}

.m-stage-l2-content {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.m-of {
    display: inline-block;
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    color: #fff;
    /* padding-left moved to is-active */
}

.m-period {
    display: inline-block;
    transition: opacity 0.6s ease;
}

.m-potential {
    display: inline-block;
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    /* padding-left moved to is-active */

    /* Brand Beige/Copper Gradient - Removed yellow tones */
    background: linear-gradient(135deg, #A08C7C 0%, #D4AF37 40%, #C5BCB6 100%);
    /* Actually D4AF37 was called yellow, let's use a richer copper/taupe mix */
    background: linear-gradient(135deg, #A08C7C 0%, #C5BCB6 50%, #A08C7C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ensure "The future" remains centered before and after pop */
.m-stage-l2-content {
    position: relative;
}

/* Staged Reveal State: Natural centered growth (no translateX) */
.manifesto-staged-container.is-active .m-period {
    opacity: 0;
    width: 0;
}

.manifesto-staged-container.is-active .m-of {
    opacity: 1;
    width: auto;
    padding-left: 0.3em;
}

.manifesto-staged-container.is-active .m-potential {
    opacity: 1;
    width: auto;
    padding-left: 0.25em;
}

/* 11. Connect Section Redesign: Horizontal Feature Card */
.connect-label {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1.2rem;
    color: rgba(29, 29, 31, 0.6) !important;
    /* Muted charcoal */
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    /* Wide editorial tracking */
    text-transform: uppercase;
    display: block;
    text-align: left;
}

.connect-feature-card {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    height: 380px;
    /* Reverted bento height */
    background: #ffffff !important;
    /* Strictly white background */
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 8%;
    color: #1d1d1f !important;
    /* Charcoal text for legibility on white */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.connect-video-bg {
    position: absolute;
    inset: 0;
    opacity: 0.6;
}

#connect-sequence-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    /* Slightly increased for better visibility of the tint */
    filter: grayscale(1);
    /* Keep base footage grayscale for clean tinting */
}

/* Dual-tone gradient overlay */
.connect-video-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Monotone Grey transition: Mid-grey to Light-grey */
    background: linear-gradient(135deg, rgba(142, 142, 147, 0.45) 0%, rgba(229, 229, 234, 0.25) 100%);
    mix-blend-mode: multiply;
    /* Multiplies colors for a high-end "tinted" effect */
    z-index: 2;
}

.connect-card-content {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-top: 40px;
    /* Offset to move text further down */
}

.connect-text-group {
    max-width: 500px;
    text-align: left;
}

.connect-feature-card .section-title {
    color: #1d1d1f !important;
    margin-top: 0.5rem;
    font-size: 3rem !important;
}

.connect-text-group .section-subtitle {
    color: rgba(29, 29, 31, 0.8) !important;
}

.connect-feature-card .footer-socials {
    margin-top: 0;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .connect-feature-card {
        flex-direction: column;
        height: auto;
        padding: 4rem 2rem;
        text-align: center;
        align-items: center;
    }

    .connect-card-content {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .connect-text-group {
        text-align: center;
    }

    #read-more .section-inner {
        width: auto !important;
        max-width: 900px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Capabilities section alignment - matches gallery bounding box */
#read-more .section-inner>.small-caps,
#read-more .section-inner>.section-title,
#read-more .section-inner>.section-subtitle,
#read-more .section-inner>.cards-container {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}


/* Third card spans full width for bottom layout */
#card-port {
    grid-column: span 2 !important;
}

/* Narrow connect section to match gallery/capabilities */
#contact .section-inner {
    width: auto !important;
    max-width: 940px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Override connect section bento corner radius */
#contact .section-light .footer-card,
.section-light .connect-grid .footer-card {
    border-radius: 25px !important;
}

/* DEBUG: Force all portrait-crisp elements to have a visible border */


/* Dim non-hovered images only when one image is being hovered */
.gallery-track.item-hovered .gallery-item:not(:hover) .portrait-crisp {
    filter: grayscale(90%) brightness(0.4) !important;
}

/* ── CAPABILITIES CARDS: CINEMATIC INTERACTIVE VISUALS ── */
.readmore-card {
    position: relative !important;
    overflow: hidden !important;
}

.card-canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.readmore-card:hover .card-canvas {
    opacity: 1;
}

.readmore-card:hover {
    transform: none !important;
}

.slick-content {
    position: relative !important;
    z-index: 1 !important;
}

#card-qual {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(240, 240, 245, 0.85)) !important;
}

#card-exp {
    background: linear-gradient(145deg, rgba(250, 250, 252, 0.92), rgba(235, 235, 240, 0.85)) !important;
}

#card-port {
    background: linear-gradient(145deg, rgba(248, 248, 250, 0.92), rgba(230, 230, 235, 0.85)) !important;
}