/* ==========================================================================
   ENCORD PAGE MASTER
   ========================================================================== */

.encord-page-master {
    width: 100%;
    margin: 0 auto;
    background-color: #000000;
    /* Base color for the dark theme page */
    box-sizing: border-box;
    overflow: hidden;
}

/* ==========================================================================
   ENCORD TOP WRAPPER (Header + Hero)
   ========================================================================== */

.encord-top-wrapper {
    width: 100%;
    background-color: #000000;
    /* Ensures the header sits on the dark background */
    display: flex;
    flex-direction: column;
}

/* Force the global header to be transparent inside this dark wrapper */
.encord-top-wrapper header,
.encord-top-wrapper .header,
.encord-top-wrapper .site-header {
    background-color: transparent !important;
}

/* ==========================================================================
   ENCORD PARTNERSHIP HERO SECTION
   ========================================================================== */

.ow-encord-hero-section {
     display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 768px;
    /* Matches your token height */
    background: radial-gradient(50% 50% at 74% 50%, rgba(39, 98, 103, 1) 0%, rgba(0, 0, 0, 0.2) 100%);
    padding: 24px 24px;
    box-sizing: border-box;
}

.ow-encord-hero-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;;
    position: relative;
    box-sizing: border-box;
}

/* --------------------------------------------------
   Left Side (Content & Logos)
   -------------------------------------------------- */
.ow-encord-hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    /* Pushes logos to the bottom */
    gap: 96px;
    padding: 32px 0 32px 32px;
    flex: 1;
    min-width: 0;
    min-height: 700px;
}

.ow-encord-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    width: 100%;
}

.ow-encord-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    max-width: 564px;
    width: 100%;
}

.ow-encord-title {
    font-family: "Aspekta-400", Helvetica, sans-serif;
    font-weight: 400;
    color: #ffffff;
    font-size: 56px;
    letter-spacing: -1.12px;
    line-height: 61.6px;
    margin: 0;
}

.ow-encord-desc {
    font-family: "Inter-Regular", Helvetica, sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    /* #ffffffbf */
    font-size: 16px;
    line-height: 24px;
    max-width: 524px;
    margin: 0;
}

/* CTA Button Group */
.ow-encord-cta-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ow-encord-cta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 20px;
    background-color: #F3F3F3;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.ow-encord-cta-pill:hover {
    background-color: #e2e2e2;
}

.ow-encord-cta-text {
    font-family: "DM Mono-Medium", monospace;
    font-weight: 500;
    color: #2a2a2a;
    font-size: 14px;
    line-height: 16.8px;
}

.ow-encord-cta-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #CAED57;
    /* Lime Green */
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.ow-encord-cta-circle:hover {
    background-color: #b9df43;
}

/* Client Logos */
.ow-encord-clients-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

.ow-encord-clients-heading {
    font-family: "DM Mono-Regular", monospace;
    font-weight: 400;
    color: #ffffff;
    font-size: 15px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ow-encord-clients-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    /* Space between logos */
    width: 100%;
}

.ow-encord-client-logo {
    max-height: 28px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}

/* --------------------------------------------------
   Right Side (Animation Video)
   -------------------------------------------------- */
.ow-encord-hero-right {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 700px;
}

.ow-encord-media {
    width: 100%;
    max-width: 650px;
    /* Ensures the 3D logo doesn't become grotesquely huge on 4k screens */
    aspect-ratio: 1;
    object-fit: contain;
    mix-blend-mode: screen;
    /* Drops compressed black backgrounds if the video has them */
}

/* Hide native video controls if they appear */
video.ow-encord-media::-webkit-media-controls {
    display: none !important;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
    .ow-encord-hero-container {
        flex-direction: column;
        align-items: center;
        gap: 64px;
    }

    .ow-encord-hero-left,
    .ow-encord-hero-right {
        width: 100%;
        flex: none;
        padding: 0;
        min-height: auto;
    }

    .ow-encord-hero-left {
        gap: 64px;
    }

    .ow-encord-hero-right {
        min-height: 400px;
    }
}

@media (max-width: 640px) {
    .ow-encord-hero-section {
        padding: 96px 16px 48px 16px;
    }

    .ow-encord-title {
        font-size: 40px;
        line-height: 44px;
    }

    .ow-encord-clients-logos {
        gap: 24px;
    }

    .ow-encord-client-logo {
        max-height: 24px;
    }
}

/* ==========================================================================
   ENCORD - HOW IT WORKS SECTION
   ========================================================================== */

.ow-works-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    /* Space between Title and Layout */
    padding: 96px 48px;
    background-color: #111111;
    width: 100%;
    box-sizing: border-box;
}

.ow-works-main-title {
    font-family: "Aspekta-400", Helvetica, sans-serif;
    font-weight: 400;
    color: #ffffff;
    font-size: 48px;
    text-align: center;
    letter-spacing: -0.96px;
    line-height: 52.8px;
    margin: 0;
    max-width: 800px;
}

/* --------------------------------------------------
   Split Layout
   -------------------------------------------------- */
.ow-works-layout {
    display: flex;
    align-items: stretch;
    gap: 48px;
    width: 100%;
    max-width: 1248px;
}

/* Left Side: Graphic / Image */
.ow-works-media {
    flex: 1;
    min-height: 672px;
    /* Enforces the tall image constraint */
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    background-color: #E2E2E2;
    /* Fallback color for the graphic */
}

/* Right Side: Text & Bullets */
.ow-works-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Pushes CTA to the bottom */
    padding: 32px 0;
    box-sizing: border-box;
}

.ow-works-text-stack {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 564px;
    width: 100%;
}

.ow-works-intro {
    font-family: "Inter-Regular", Helvetica, sans-serif;
    font-weight: 400;
    color: #ffffff;
    font-size: 16px;
    line-height: 24px;
    margin: 0;
}

.ow-works-bullets {
    display: flex;
    flex-direction: column;
    gap: 36px;
    width: 100%;
}

.ow-works-list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.ow-works-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    /* Optically aligns icon with the first line of text */
}

.ow-works-bullet-text {
    font-family: "Inter-Regular", Helvetica, sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    /* #ffffffbf */
    font-size: 16px;
    line-height: 24px;
    margin: 0;
}

/* --------------------------------------------------
   CTA Button Group
   -------------------------------------------------- */
.ow-works-cta-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
}

.ow-works-cta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 20px;
    background-color: #F3F3F3;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.ow-works-cta-pill:hover {
    background-color: #e2e2e2;
}

.ow-works-cta-text {
    font-family: "DM Mono-Medium", monospace;
    font-weight: 500;
    color: #2a2a2a;
    font-size: 14px;
    line-height: 16.8px;
    white-space: nowrap;
}

.ow-works-cta-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #CAED57;
    /* Lime Green */
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.ow-works-cta-circle:hover {
    background-color: #b9df43;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
    .ow-works-section {
        padding: 64px 32px;
        gap: 48px;
    }

    .ow-works-layout {
        flex-direction: column;
        gap: 48px;
    }

    .ow-works-media {
        width: 100%;
        min-height: 400px;
        border-radius: 12px;
    }

    .ow-works-content {
        padding: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .ow-works-section {
        padding: 48px 16px;
        gap: 40px;
    }

    .ow-works-main-title {
        font-size: 38px;
        line-height: 42px;
    }

    .ow-works-media {
        min-height: 300px;
    }
}

/* ==========================================================================
   ENCORD - FEATURES GRID SECTION
   ========================================================================== */

.ow-encord-features-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 96px 48px;
    background-color: #FCFFF5;
    /* Off-white / Ivory */
    box-sizing: border-box;
}

.ow-encord-features-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 64px;
    width: 100%;
    max-width: 1200px;
}

/* --------------------------------------------------
   Header Row
   -------------------------------------------------- */
.ow-encord-features-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    width: 100%;
}

.ow-encord-features-title {
    flex: 1;
    font-family: "Aspekta-400", Helvetica, sans-serif;
    font-weight: 400;
    color: #111111;
    font-size: 48px;
    letter-spacing: -0.96px;
    line-height: 52.8px;
    margin: 0;
}

.ow-encord-features-desc {
    flex: 1;
    font-family: "Inter-Regular", Helvetica, sans-serif;
    font-weight: 400;
    color: rgba(17, 17, 17, 0.7);
    /* #111111b2 */
    font-size: 16px;
    line-height: 24px;
    margin: 0;
    max-width: 500px;
}

/* --------------------------------------------------
   3-Column Grid & Cards
   -------------------------------------------------- */
.ow-encord-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.ow-encord-feature-card {
    display: flex;
    flex-direction: column;
    background-color: #111111;
    /* True black */
    width: 100%;
    min-height: 380px;
    border-radius: 4px;

    /* Pure CSS Chamfer on the Top-Left Corner (Cuts 24px in) */
    clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%, 0 24px);
}

.ow-encord-feature-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Pushes number to top, text stack to bottom */
    padding: 32px 32px 48px 32px;
    height: 100%;
    flex: 1;
}

.ow-encord-feature-num {
    font-family: "DM Mono-Medium", "DM Mono", monospace;
    font-weight: 500;
    color: #9180FF;
    /* Soft Purple */
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.ow-encord-feature-text-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 48px;
}

.ow-encord-feature-card-title {
    font-family: "Aspekta-400", Helvetica, sans-serif;
    font-weight: 400;
    color: #ffffff;
    font-size: 28px;
    letter-spacing: -0.56px;
    line-height: 30.8px;
    margin: 0;
}

.ow-encord-feature-card-desc {
    font-family: "Inter-Regular", Helvetica, sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    /* #ffffffbf */
    font-size: 16px;
    line-height: 24px;
    margin: 0;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
    .ow-encord-features-section {
        padding: 72px 32px;
    }

    .ow-encord-features-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .ow-encord-features-desc {
        max-width: 100%;
    }

    .ow-encord-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 775px) {
    .ow-encord-features-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .ow-encord-features-section {
        padding: 48px 16px;
    }

    .ow-encord-features-title {
        font-size: 36px;
        line-height: 42px;
    }

    .ow-encord-feature-content {
        padding: 32px 24px 40px 24px;
    }
}

/* ==========================================================================
   ENCORD - PROJECTS CAROUSEL SECTION
   ========================================================================== */

.ow-proj-carousel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    background-color: white;

}

.ow-proj-wrapper {
     width: 100%;
    clip-path: polygon(18px 0,
            100% 0,
            100% calc(100% - 18px),
            calc(100% - 18px) 100%,
            0 100%,
            0 18px);
}

/* --------------------------------------------------
   Pure CSS Chamfer Transitions (Outer Section)
   -------------------------------------------------- */
.ow-proj-top-transition,
.ow-proj-bottom-transition {
    display: flex;
    align-items: flex-start;
    position: relative;
    align-self: stretch;
    width: 100%;
    background-color: #FDFFF6;
    /* Ivory base */
}

/* Bottom chamfer is just the top one flipped 180 degrees */
.ow-proj-bottom-transition {
    transform: rotate(180deg);
}

.ow-proj-filler {
    flex: 1;
    height: 20px;
    background-color: #DAD5FF;
    /* Light Purple inner */
}

.ow-proj-chamfer,
.ow-proj-chamfer-btm {
    width: 20px;
    height: 20px;
    background-color: #DAD5FF;
    /* Draws a triangle filling the bottom-right half to create the left cut */
    /* clip-path: polygon(100% 0, 100% 100%, 0 100%);  */
}

/* --------------------------------------------------
   Main Background & Container
   -------------------------------------------------- */
.ow-proj-main-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #DAD5FF;
    /* Light Purple */
    padding: 64px 0 96px 0;
    /* Adjusted padding to account for the chamfer heights */

}

.ow-proj-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    width: 100%;
    max-width: 1248px;
    /* Slightly larger to fit 3 cards neatly */
    padding: 0 24px;
    box-sizing: border-box;
}

/* --------------------------------------------------
   Header Row & Navigation
   -------------------------------------------------- */
.ow-proj-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    gap: 24px;
}

.ow-proj-title {
    font-family: "Aspekta-400", Helvetica, sans-serif;
    font-weight: 400;
    color: #111111;
    font-size: 48px;
    letter-spacing: -0.96px;
    line-height: 52.8px;
    margin: 0;
    max-width: 600px;
}

.ow-proj-nav-arrows {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ow-proj-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #111111;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ow-proj-nav-btn:hover {
    opacity: 0.8;
}

.ow-proj-nav-btn:active {
    transform: scale(0.95);
}

.ow-proj-nav-btn:focus-visible {
    outline: 2px solid #9180FF;
    outline-offset: 2px;
}

/* --------------------------------------------------
   Carousel Track
   -------------------------------------------------- */
.ow-proj-track {
    display: flex;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 24px;
    /* Space for a potential scrollbar */

    /* Hide scrollbar for clean design */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ow-proj-track::-webkit-scrollbar {
    display: none;
}

/* --------------------------------------------------
   Project Card
   -------------------------------------------------- */
.ow-proj-card {
    display: flex;
    flex-direction: column;
    width: 384px;
    flex: 0 0 384px;
    /* Prevents cards from squishing */
    border-radius: 4px;
    background-color: #F3F0E8;
    /* Light Beige */
    scroll-snap-align: start;

    /* Pure CSS Top-Left Chamfer */
    clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%, 0 24px);
}

.ow-proj-card-content {
    display: flex;
    flex-direction: column;
    padding: 32px 24px 32px 24px;
    flex: 1;
    /* Pushes the image to the bottom */
}

.ow-proj-card-num {
    font-family: "DM Mono-Medium", "DM Mono", monospace;
    font-weight: 500;
    color: #9180FF;
    /* Soft Purple */
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 48px;
}

.ow-proj-card-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ow-proj-card-title {
    font-family: "Aspekta-400", Helvetica, sans-serif;
    font-weight: 400;
    color: #111111;
    font-size: 28px;
    letter-spacing: -0.56px;
    line-height: 30.8px;
    margin: 0;
}

.ow-proj-card-desc {
    font-family: "Inter-Regular", Helvetica, sans-serif;
    font-weight: 400;
    color: rgba(17, 17, 17, 0.75);
    /* #111111bf */
    font-size: 16px;
    line-height: 24px;
    margin: 0;
}

.ow-proj-card-media {
    width: 100%;
    height: 244px;
    background-size: cover;
    background-position: center;
    background-color: #111111;
    /* Fallback for missing images */
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
    .ow-proj-main-wrapper {
        padding: 48px 0 64px 0;
    }

    .ow-proj-title {
        font-size: 36px;
        line-height: 40px;
    }

    .ow-proj-card {
        width: 320px;
        flex: 0 0 320px;
    }
}

@media (max-width: 640px) {
    .ow-proj-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .ow-proj-title {
        font-size: 32px;
        line-height: 36px;
    }

    .ow-proj-track {
        gap: 16px;
    }

    .ow-proj-card {
        width: 280px;
        flex: 0 0 280px;
    }

    .ow-proj-card-content {
        padding: 24px 20px;
    }

    .ow-proj-card-num {
        margin-bottom: 32px;
    }

    .ow-proj-card-title {
        font-size: 24px;
        line-height: 28px;
    }

    .ow-proj-card-media {
        height: 200px;
    }
}

/* ==========================================================================
   ENCORD - FAQ SECTION
   ========================================================================== */

.ow-encord-faq-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 96px 48px;
    background-color: #FDFFF6; /* Ivory Background */
    box-sizing: border-box;
}

.ow-encord-faq-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 64px;
    width: 100%;
    max-width: 1280px; /* Wider container for the long text layout */
}

/* --------------------------------------------------
   Header
   -------------------------------------------------- */
.ow-encord-faq-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 800px;
}

.ow-encord-faq-title {
    font-family: "Aspekta-400", Helvetica, sans-serif;
    font-weight: 400;
    color: #111111;
    font-size: 48px;
    letter-spacing: -0.96px;
    line-height: 52.8px;
    margin: 0;
}

/* --------------------------------------------------
   FAQ Accordions
   -------------------------------------------------- */
.ow-encord-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Small gap between the stacked accordions */
    width: 100%;
}

.ow-encord-faq-item {
    background-color: #E2DFF8; /* Light Purple Box */
    width: 100%;
    margin: 0;
    
    /* Pure CSS Double Chamfer: Top-Left & Bottom-Right cuts */
    clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
    transition: background-color 0.2s ease;
}

.ow-encord-faq-item:focus-within {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

.ow-encord-faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.ow-encord-faq-summary::-webkit-details-marker {
    display: none;
}

.ow-encord-faq-question {
    font-family: "Inter-Medium", Helvetica, sans-serif;
    font-weight: 500;
    color: #111111;
    font-size: 20px;
    line-height: 28px;
    padding-right: 24px;
}

.ow-encord-faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

/* Handle Icon Swapping */
.ow-encord-faq-item .icon-close { display: none; }
.ow-encord-faq-item[open] .icon-plus { display: none; }
.ow-encord-faq-item[open] .icon-close { display: block; }

/* SVG Animation */
.ow-encord-faq-item svg {
    transition: transform 160ms ease;
}
.ow-encord-faq-item[open] svg {
    transform: rotate(90deg);
}

.ow-encord-faq-answer {
    padding: 0 32px 32px 32px;
    font-family: "Inter-Regular", Helvetica, sans-serif;
    font-weight: 400;
    color: rgba(17, 17, 17, 0.75); /* #111111bf */
    font-size: 16px;
    line-height: 24px;
    max-width: 900px;
}

.ow-encord-faq-answer p {
    margin: 0 0 12px 0;
}
.ow-encord-faq-answer p:last-child {
    margin: 0;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 900px) {
    .ow-encord-faq-section {
        padding: 64px 32px;
    }
}

@media (max-width: 640px) {
    .ow-encord-faq-section {
        padding: 48px 16px;
    }
    
    .ow-encord-faq-container {
        gap: 40px;
    }

    .ow-encord-faq-title {
        font-size: 38px;
        line-height: 42px;
    }

    .ow-encord-faq-summary {
        padding: 20px 24px;
    }

    .ow-encord-faq-answer {
        padding: 0 24px 24px 24px;
    }

    .ow-encord-faq-question {
        font-size: 18px;
        line-height: 24px;
    }
}

/* ==========================================================================
   ENCORD - CTA SECTION
   ========================================================================== */

.ow-encord-cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
}

/* --------------------------------------------------
   Top-Left Chamfer Transition
   -------------------------------------------------- */
.ow-encord-cta-top-transition {
    display: flex;
    align-items: flex-start;
    position: relative;
    align-self: stretch;
    width: 100%;
    background-color: #FDFFF6; /* Ivory base from the FAQ section above */
}

.ow-encord-cta-filler {
    flex: 1;
    height: 20px;
    background-color: #111111;
}

.ow-encord-cta-chamfer {
    width: 20px;
    height: 20px;
    background-color: #111111;
    /* Draws a triangle filling the bottom-right half to create the left cut */
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* --------------------------------------------------
   Main Content Layout
   -------------------------------------------------- */
.ow-encord-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 96px 48px;
    background-color: #111111;
    box-sizing: border-box;
}

.ow-encord-cta-container {
    display: flex;
    align-items: stretch; /* Ensures both sides match height if possible */
    gap: 48px;
    width: 100%;
    max-width: 1344px;
}

/* --------------------------------------------------
   Left Side (Text & CTA)
   -------------------------------------------------- */
.ow-encord-cta-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 32px 0 32px 32px;
    flex: 1;
    min-height: 672px; /* Enforces height from your tokens */
    box-sizing: border-box;
}

.ow-encord-cta-text-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 564px;
    width: 100%;
}

.ow-encord-cta-title {
    font-family: "Aspekta-400", Helvetica, sans-serif;
    font-weight: 400;
    color: #ffffff;
    font-size: 48px;
    letter-spacing: -0.96px;
    line-height: 52.8px;
    margin: 0;
}

.ow-encord-cta-desc {
    font-family: "Inter-Regular", Helvetica, sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75); /* #ffffffbf */
    font-size: 16px;
    line-height: 24px;
    margin: 0;
}

/* Button Row */
.ow-encord-cta-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ow-encord-cta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 20px;
    background-color: #F3F3F3;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.ow-encord-cta-pill:hover {
    background-color: #e2e2e2;
}

.ow-encord-cta-btn-text {
    font-family: "DM Mono-Medium", monospace;
    font-weight: 500;
    color: #2a2a2a;
    font-size: 14px;
    line-height: 16.8px;
    white-space: nowrap;
}

.ow-encord-cta-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #CAED57; /* Lime Green */
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ow-encord-cta-circle:hover {
    background-color: #b9df43;
}

.ow-encord-cta-circle:active {
    transform: scale(0.95);
}

/* --------------------------------------------------
   Right Side (Image)
   -------------------------------------------------- */
.ow-encord-cta-media {
    flex: 1;
    min-height: 672px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    background-color: #E2E2E2;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 900px) {
    .ow-encord-cta-wrapper {
        padding: 64px 32px;
    }
    
    .ow-encord-cta-container {
        flex-direction: column;
    }
    
    .ow-encord-cta-left {
        min-height: auto;
        gap: 64px;
        padding: 0;
    }
    
    .ow-encord-cta-media {
        min-height: 480px;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .ow-encord-cta-wrapper {
        padding: 48px 16px;
    }

    .ow-encord-cta-title {
        font-size: 38px;
        line-height: 42px;
    }

    .ow-encord-cta-left {
        gap: 48px;
    }
}



/* ==========================================================================
   AMAZON SAGEMAKER PAGE::::





   ========================================================================== */


   /* ==========================================================================
   SAGEMAKER PAGE MASTER (Global Wrappers)
   ========================================================================== */

.sagemaker-page-master {
    width: 100%;
    margin: 0 auto;
    /* Uses the dark theme base */
    background-color: #000000;
    box-sizing: border-box;
    overflow: hidden;
}

.sagemaker-top-wrapper {
    width: 100%;
    background-color: transparent;
    display: flex;
    flex-direction: column;
}

.sagemaker-top-wrapper header,
.sagemaker-top-wrapper .header,
.sagemaker-top-wrapper .site-header {
    background-color: transparent !important;
}

/* ==========================================================================
   SAGEMAKER HERO SECTION
   ========================================================================== */

.ow-sagemaker-hero-section {
   display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 768px;
    /* Matches your token height */
    background: radial-gradient(50% 50% at 74% 50%, rgba(39, 98, 103, 1) 0%, rgba(0, 0, 0, 0.2) 100%);
    padding: 12px 24px;
    box-sizing: border-box;
}

.ow-sagemaker-hero-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    width: 100%;
    /* Content stays within 1440px (centered by the flex section) while the section background spans the full width */
    max-width: 1440px;
    position: relative;
    box-sizing: border-box;
}

/* --------------------------------------------------
   Left Side (Content & Logos)
   -------------------------------------------------- */
.ow-sagemaker-hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 96px;
    padding: 32px 0 32px 32px;
    flex: 1;
    min-width: 0;
    min-height: 700px;
}

.ow-sagemaker-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    width: 100%;
}

.ow-sagemaker-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    max-width: 564px;
    width: 100%;
}

.ow-sagemaker-title {
    font-family: "Aspekta-400", Helvetica, sans-serif;
    font-weight: 400;
    color: #ffffff;
    font-size: 56px;
    letter-spacing: -1.12px;
    line-height: 61.6px;
    margin: 0;
}

.ow-sagemaker-desc {
    font-family: "Inter-Regular", Helvetica, sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    line-height: 24px;
    max-width: 524px;
    margin: 0;
}

/* CTA Button Group */
.ow-sagemaker-cta-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ow-sagemaker-cta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 20px;
    background-color: #F3F3F3;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.ow-sagemaker-cta-pill:hover {
    background-color: #e2e2e2;
}

.ow-sagemaker-cta-text {
    font-family: "DM Mono-Medium", monospace;
    font-weight: 500;
    color: #2a2a2a;
    font-size: 14px;
    line-height: 16.8px;
}

.ow-sagemaker-cta-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #CAED57;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.ow-sagemaker-cta-circle:hover {
    background-color: #b9df43;
}

/* Client Logos */
.ow-sagemaker-clients-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

.ow-sagemaker-clients-heading {
    font-family: "DM Mono-Regular", monospace;
    font-weight: 400;
    color: #ffffff;
    font-size: 15px;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* Client Logos - Layout */
.ow-sagemaker-clients-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px; 
    width: 100%;
}

/* Strict Image Constraints */
.ow-sagemaker-client-logo {
    height: 28px !important; /* Force exact height, overriding global theme styles */
    width: auto !important; /* Maintain aspect ratio */
    max-width: 160px; /* Prevent wide logos from forcing a line break */
    object-fit: contain;
    opacity: 0.9;
    display: block;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .ow-sagemaker-clients-logos {
        gap: 24px;
    }
    
    .ow-sagemaker-client-logo {
        height: 20px !important; /* Scale down smoothly on phones */
        max-width: 120px;
    }
}
/* --------------------------------------------------
   Right Side (Animation Video)
   -------------------------------------------------- */
.ow-sagemaker-hero-right {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 700px;
}

.ow-sagemaker-media {
    width: 100%;
    max-width: 650px;
    aspect-ratio: 1;
    object-fit: contain;
    mix-blend-mode: screen;
}

video.ow-sagemaker-media::-webkit-media-controls {
    display: none !important;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
    .ow-sagemaker-hero-container {
        flex-direction: column;
        align-items: center;
        gap: 64px;
    }

    .ow-sagemaker-hero-left,
    .ow-sagemaker-hero-right {
        width: 100%;
        flex: none;
        padding: 0;
        min-height: auto;
    }

    .ow-sagemaker-hero-left {
        gap: 64px;
    }

    .ow-sagemaker-hero-right {
        min-height: 400px;
    }
}

@media (max-width: 640px) {
    .ow-sagemaker-hero-section {
        padding: 96px 16px 48px 16px;
    }

    .ow-sagemaker-title {
        font-size: 40px;
        line-height: 44px;
    }

    .ow-sagemaker-clients-logos {
        gap: 24px;
    }

    .ow-sagemaker-client-logo {
        max-height: 24px;
    }
}
/* ==========================================================================
   Encord hero: mobile (design 390px). Tablet is unchanged.
   ========================================================================== */
@media (max-width: 767px) {
    .ow-encord-hero-section {
        min-height: 0;
        padding: 12px;
    }

    .ow-encord-hero-container {
        gap: 12px;
    }

    .ow-encord-hero-left {
        gap: 36px;
        padding: 12px 8px;
    }

    .ow-encord-text-group {
        gap: 36px;
    }

    .ow-encord-text-wrapper {
        gap: 24px;
    }

    .ow-encord-title {
        font-size: 40px;
        line-height: 44px;
        letter-spacing: -0.8px;
    }

    .ow-encord-title br {
        display: none;
    }

    .ow-encord-cta-row {
        gap: 4px;
    }

    .ow-encord-cta-pill {
        padding: 0 16px;
    }

    .ow-encord-clients-group {
        gap: 20px;
        padding: 16px 0;
    }

    .ow-encord-clients-heading {
        font-size: 15px;
        line-height: 18px;
    }

    .ow-encord-hero-right {
        min-height: 360px;
        border-radius: 16px;
        overflow: hidden;
    }

    .ow-encord-media {
        width: 312px;
        max-width: 100%;
    }
}

/* ==========================================================================
   Encord features: carousel on tablet (design 768px) and mobile (design 390px)
   ========================================================================== */
.ow-encord-feat-nav {
    display: none;
}

@media (max-width: 1023px) {
    .ow-encord-features-section {
        padding: 36px;
    }

    .ow-encord-features-wrapper {
        gap: 48px;
    }

    .ow-encord-features-header {
        gap: 24px;
    }

    .ow-encord-features-title {
        font-size: 48px;
        line-height: 52.8px;
        letter-spacing: -0.96px;
    }

    .ow-encord-features-title br {
        display: none;
    }

    .ow-encord-features-desc {
        max-width: 381px;
    }

    .ow-encord-features-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 24px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .ow-encord-features-grid::-webkit-scrollbar {
        display: none;
    }

    .ow-encord-feature-card {
        flex: 0 0 calc((100% - 24px) / 2);
        width: auto;
        min-height: 364px;
        scroll-snap-align: start;
    }

    .ow-encord-feature-content {
        padding: 24px;
        gap: 24px;
    }

    .ow-encord-feature-text-stack {
        margin-top: 0;
        gap: 12px;
    }

    .ow-encord-feat-nav {
        display: flex;
        justify-content: flex-end;
        gap: 4px;
        width: 100%;
        margin-top: -12px;
    }

    .ow-encord-feat-nav-btn {
        width: 48px;
        height: 48px;
        border-radius: 9999px;
        background-color: #111111;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: background-color 0.2s ease;
    }

    .ow-encord-feat-nav-btn:hover {
        background-color: #2a2a2a;
    }

    .ow-encord-feat-nav-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .ow-encord-features-section {
        padding: 36px 16px;
    }

    .ow-encord-features-title {
        font-size: 36px;
        line-height: 39.6px;
        letter-spacing: -0.72px;
    }

    .ow-encord-features-desc {
        max-width: none;
    }

    .ow-encord-feature-card {
        flex-basis: 100%;
    }

    .ow-encord-feature-card-title {
        font-size: 24px;
        line-height: 26.4px;
        letter-spacing: -0.48px;
    }
}

/* ==========================================================================
   Encord projects carousel: tablet (design 768px) and mobile (design 390px).
   The arrow buttons move from the header row to the bottom right below the cards.
   ========================================================================== */
@media (max-width: 1023px) {
    .ow-proj-main-wrapper {
        padding: 36px 0;
    }

    .ow-proj-container {
        gap: 36px;
        padding: 0 36px;
    }

    /* Header row stops being a box, so the title and the arrows become direct children of the container and can be reordered */
    .ow-proj-header-row {
        display: contents;
    }

    .ow-proj-title {
        order: 1;
        font-size: 48px;
        line-height: 52.8px;
        letter-spacing: -0.96px;
        max-width: 520px;
    }

    .ow-proj-title br {
        display: none;
    }

    .ow-proj-track {
        order: 2;
        padding-bottom: 0;
        justify-content: flex-start;
    }

    .ow-proj-nav-arrows {
        order: 3;
        align-self: flex-end;
        gap: 4px;
    }

    .ow-proj-card {
        flex: 0 0 calc((100% - 24px) / 2);
        width: auto;
    }

    .ow-proj-card-content {
        padding: 24px;
    }

    .ow-proj-card-num {
        margin-bottom: 24px;
    }

    .ow-proj-card-title {
        font-size: 28px;
        line-height: 30.8px;
        letter-spacing: -0.56px;
    }

    .ow-proj-card-media {
        height: 244px;
    }
}

@media (max-width: 767px) {
    .ow-proj-main-wrapper {
        padding: 24px 0;
    }

    .ow-proj-container {
        gap: 24px;
        padding: 0 16px;
    }

    .ow-proj-title {
        font-size: 36px;
        line-height: 39.6px;
        letter-spacing: -0.72px;
    }

    .ow-proj-track {
        gap: 24px;
    }

    .ow-proj-card {
        flex-basis: 100%;
    }

    .ow-proj-card-title {
        font-size: 24px;
        line-height: 26.4px;
        letter-spacing: -0.48px;
    }
}
