body {
    margin: 0;
    font-family: 'Quattrocento', serif;
    overflow-x: hidden;
    color: #fff;
    background-color: #123332; /* Default background for dark sections */
    font-size: 18px;
}
html, body {
    height: 100%;
}

/* Smooth scroll for anchor navigation */
html { scroll-behavior: smooth; }

/* --- Header for all slides (positioned absolutely) --- */
.page-header {
    position: absolute;
    top: 100px;
    right: 40px;
    text-align: right;
    font-size: 1.2em;
    color: #ccc;
    z-index: 10; /* Ensure it's above other content */
}
.page-header span {
    font-size: 1.5em;
    vertical-align: middle;
    margin-left: 5px;
}

.page-header img {
    height: 28px;
    vertical-align: middle;
}

/* --- Top Navigation --- */
.site-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}
.site-nav .nav-logo {
    display: none;
    position: relative;
    z-index: 23;
}
.site-nav .nav-logo img {
    height: 28px;
    display: block;
}
.desktop-nav {
    display: flex;
    gap: 4px;
    background: rgba(18, 51, 50, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 40px;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    width: 100%;
    justify-content: center;
}
.desktop-nav a {
    text-decoration: none;
    background-color: transparent;
    color: #eecfb6;
    padding: 10px 16px;
    border-radius: 12px;
    font-family: 'Quattrocento', serif;
    font-size: 0.9em;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}
.desktop-nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(238, 207, 182, 0.15), rgba(238, 207, 182, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.desktop-nav a:hover {
    background-color: rgba(238, 207, 182, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}
.desktop-nav a:hover::before {
    opacity: 1;
}
.desktop-nav a:active {
    transform: translateY(0);
}

/* Custom mobile menu (toggle + panel) base */
.mobile-toggle { display: none; }
.mobile-panel { display: none; }
.mobile-menu-list { list-style: none; margin: 0; padding: 0; }
.mobile-menu-list li { margin: 0; }
.mobile-menu-list a { display: block; text-decoration: none; }

/* a11y helper */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mobile-nav { display: none; }

/* --- General Slide Styles --- */
section {
    display: flex;
    height: 100vh; /* Each section takes full viewport height */
    box-sizing: border-box;
    background-color: #123332; /* Default dark green background */
    position: sticky; /* enable stacking on scroll */
    top: 0;
    z-index: 0;
}
/* remove top shadow/separator between slides */
section:not(:first-of-type)::before {
    content: none;
    display: none;
}
section .left-content,
section .right-content {
    flex: 1;
    padding: 40px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1, h2, h3 {
    font-family: 'Georgia', serif;
    font-weight: normal;
    color: #f0f0f0;
}

/* --- Slide 1: Harvest Your Potential --- */
.slide-one {
    background-color: #f0f0f0; /* Light background for the image section */
}
.slide-one .left-section {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
	background-image: url('../img/webp/slide1.webp');
    background-size: auto 100%;
    background-position: left center;
    background-repeat: no-repeat;
    background-color: #123332;
}
.slide-one .right-section {
    flex: 1;
    background-color: #123332;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    box-sizing: border-box;
}
.slide-one .main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 50px;
    font-family: 'Georgia', serif;
    font-weight: bold;
    line-height: 1.2;
}
.slide-one .main-content p {
    margin: 0;
    font-size: 5em;
    font-weight: 300;
    color: #eecfb6;
}
.slide-one .main-content p::first-letter { color: #ffffff; }

.slide-one .footer {
    text-align: center;
    font-size: 1.6em;
    color: #eecfb6;
    font-family: 'Quattrocento', serif;
}

.slide-one .footer .footer-white {
    color: #ffffff;
}

/* --- Slide 2: About --- */
.slide-two {
    background-color: #d6c099;
    color: #123332;
}
.slide-two .about-title {
    font-size: 4em;
    margin-bottom: 40px;
    color: #123332;
}
.slide-two .about-text {
    font-size: 1.3em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #123332;
}
.slide-two .about-text strong {
    color: #645a48;
    font-weight: 600;
    font-size: larger;
}
.slide-two .right-image {
    flex: 1;
	background-image: url('../img/webp/slide2.webp');
    background-size: auto 100%;
    background-position: right center;
    background-repeat: no-repeat;
    background-color: #d6c099;
}
/* --- Slide 3: Industry 5.0--- */
.slide-three {
    background-color: #123332;
    display: flex;
    padding: 0;
}
.slide-three .left-text-section {
    flex: 1;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.slide-three h2 {
    font-size: 3.5em;
    margin-bottom: 40px;
    color: #eecfb6;
}
.slide-three .challenge-box,
.slide-three .solution-box {
    background-color: #315251;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    font-size: 1.3em;
    line-height: 1.6;
    color: #e0e0e0;
    position: relative; /* For the border styling */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.slide-three .challenge-box:hover,
.slide-three .solution-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    background-color: #3a5a59;
}
.slide-three .challenge-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #e59d7b; /* Orange-ish border */
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.slide-three .challenge-box:hover::before { background-color: #f0a686; }
.slide-three .solution-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #8bb762; /* Green-ish border */
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.slide-three .solution-box:hover::before { background-color: #9cc46c; }
.slide-three .solution-box strong {
    color: #eecfb6; /* Highlight HyperPartner */
    font-weight: normal;
}
.slide-three .source-note {
    color: #e0e0e0;
    margin-top: 10px;
}
.slide-three .challenge-insights p {
    margin-bottom: 16px;
}
.slide-three .challenge-insights p:last-child {
    margin-bottom: 0;
}

.slide-three .left-image {
    flex: 1;
	background-image: url('../img/webp/slide3.webp');
    background-size: auto 100%;
    background-position: left center;
    background-repeat: no-repeat;
    background-color: #123332;
}
/* removed inner <img>, using background like other slides */

/* --- Slide 4: Vision and Mission --- */
.slide-fours {
    background-color: #d6c099; /* Light background for this image section */
}
.slide-fours .right-image {
    flex: 1;
	background-image: url('../img/webp/slide4.webp'); /* Image for Vision and Mission */
    background-size: auto 100%;
    background-position: right center;
    background-repeat: no-repeat;
    background-color: #d6c099;
}
.slide-fours .left-content {
    flex: 1;
    padding: 40px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.slide-fours h2 {
    font-size: 3.5em;
    margin-bottom: 50px;
    color: #123332;
}
.slide-fours .cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.slide-fours .card {
    background-color: #645a48;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.slide-fours .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    background-color: #776c58;
}
.slide-fours .card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}
.slide-fours .card-icon {
    width: 50px;
    height: 50px;
    background-color: #ffd9be;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    flex-shrink: 0;
}
.slide-fours .card:hover .card-icon {
    background-color: #ffd0ac;
}
.slide-fours .card-icon img {
    width: 30px;
    height: 30px;
}
.slide-fours .card h3 {
    font-size: 1.4em;
    margin: 0;
    color: #eecfb6;
}
.slide-fours .card p strong {
    color: #eecfb6;
}
.slide-fours .card p,
.slide-fours .card ul {
    font-size: 1em;
    line-height: 1.5;
    color: #ccc;
    margin: 0;
    padding-left: 20px;
}
.slide-fours .card ul {
    list-style-type: disc;
    padding-left: 20px;
}
.slide-fours .card ul li {
    margin-bottom: 5px;
}
/* Slide 4: 60/40 distribution for large screens */
@media (min-width: 1730px) {
    .slide-fours {
        overflow-x: hidden;
    }
    .slide-fours .left-content {
        flex: 0 0 60%;
        max-width: 60%;
        box-sizing: border-box;
    }
    .slide-fours .right-image {
        flex: 0 0 40%;
        max-width: 40%;
    }
    .slide-fours .card p,
    .slide-fours .card ul {
        font-size: 1.3em;
        line-height: 1.6;
    }
}
/* --- Slide 5: Business Model & Services --- */
.slide-five {
    background-color: #f0f0f0;
}
.slide-five .left-image {
    flex: 1;
	background-image: url('../img/webp/slide5.webp'); /* Image for Business Model */
    background-size: auto 100%;
    background-position: left center;
    background-repeat: no-repeat;
    background-color: #123332;
}
.slide-five .right-content {
    background-color: #123332;
    flex: 1;
    padding: 40px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.slide-five h2 {
    font-size: 3.5em;
    margin-bottom: 50px;
    color: #eecfb6;
}
.slide-five .content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for content */
    gap: 40px;
}
.slide-five h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #eecfb6;
}
.slide-five p,
.slide-five ul {
    font-size: 1.1em;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0;
}
.slide-five ul {
    list-style-type: none; /* Remove default bullets */
    padding: 0;
}
.slide-five ul li::before {
    content: "• "; /* Custom bullet */
    color: #eecfb6; /* Gold bullet color */
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: middle;
}
/* Slide 5: 40/60 distribution for large screens */
@media (min-width: 1730px) {
    .slide-five {
        overflow-x: hidden;
    }
    .slide-five .left-image {
        flex: 0 0 40%;
        max-width: 40%;
    }
    .slide-five .right-content {
        flex: 0 0 60%;
        max-width: 60%;
        box-sizing: border-box;
    }
    .slide-five .content-grid {
        gap: 80px;
    }
    .slide-five p,
    .slide-five ul {
    font-size: 1.3em;
    line-height: 1.6;
}
}
/* --- Slide 6: Technology Stack --- */
.slide-six {
    background-color: #d6c099;
}
.slide-six .right-image {
    flex: 1;
	background-image: url('../img/webp/slide6.webp');
    background-size: auto 100%; 
    background-position: right center;
    background-repeat: no-repeat;
    background-color: #d6c099;
}
.slide-six .left-content {
    flex: 1;
    background-color: #d6c099;
    padding: 40px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.slide-six h2 {
    font-size: 3.5em;
    margin-bottom: 50px;
    color: #123332;
}
.slide-six .tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.slide-six .tech-card {
    background-color: #645a48;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.slide-six .tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    background-color: #776c58;
}
.slide-six .tech-card .icon {
    width: 50px;
    height: 50px;
    background-color: #ffd9be;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.slide-six .tech-card:hover .icon {
    background-color: #ffd0ac;
    transform: scale(1.05);
}
.slide-six .tech-card .icon img {
    width: 30px;
    height: 30px;
}
.slide-six .tech-card h3 {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #eecfb6;
}
.slide-six .tech-card p {
    font-size: 0.95em;
    line-height: 1.5;
    color: #ccc;
}

.slide-six .tech-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 80%;
    max-width: 1000px;
    margin-top: 30px;
}
.slide-six .tech-logos img {
    height: 50px; /* Adjust logo height */
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
    filter: grayscale(25%) saturate(90%) brightness(0.98);
}

.slide-six .tech-logos img:hover {
    transform: translateY(-4px) scale(1.06);
    filter: grayscale(0%) saturate(120%) brightness(1.06) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}
/* Slide 6: 60/40 distribution for large screens */
@media (min-width: 1730px) {
    .slide-six {
        overflow-x: hidden;
    }
    .slide-six .left-content {
        flex: 0 0 60%;
        max-width: 60%;
        box-sizing: border-box;
    }
    .slide-six .right-image {
        flex: 0 0 40%;
        max-width: 40%;
    }
    .slide-six .tech-card p {
        font-size: 1.3em;
        line-height: 1.6;
    }
}

/* --- Slide 6.1: Robots and process optimization performed --- */
.slide-six-one {
    background-color: #f0f0f0;
}
.slide-six-one .left-image {
    flex: 1;
	background-image: url('../img/webp/slide7.webp');
    background-size: auto 100%;
    background-position: left center;
    background-repeat: no-repeat;
    background-color: #123332;
}
.slide-six-one .right-content {
    background-color: #123332;
    flex: 1;
    padding: 40px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.slide-six-one h2 {
    font-size: 3.5em;
    margin-bottom: 50px;
    color: #eecfb6;
}
.slide-six-one .tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}
.slide-six-one h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #eecfb6;
}
.slide-six-one p,
.slide-six-one ul {
    font-size: 1.1em;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0;
}
.slide-six-one ul {
    list-style-type: none; 
    padding: 0;
}
.slide-six-one ul li::before {
    content: "• "; 
    color: #eecfb6; 
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: middle;
}
.slide-six-one .tech-card {
    background-color: #315251;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.slide-six-one .card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    width: 100%;
}
.slide-six-one .tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    background-color: #3a5a59;
}
.slide-six-one .tech-card .icon {
    width: 60px;
    height: 60px;
    background-color: #ffd9be;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.slide-six-one .tech-card:hover .icon {
    background-color: #ffd0ac;
    transform: scale(1.05);
}
.slide-six-one .tech-card .icon img {
    width: 35px;
    height: 35px;
}
.slide-six-one .tech-card h3 {
    font-size: 1.3em;
    margin: 0;
    color: #eecfb6;
}
.slide-six-one .tech-card p {
    font-size: 0.95em;
    line-height: 1.5;
    color: #ccc;
}
.slide-six-one .tech-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.slide-six-one .tech-card ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    color: #e8e8e8;
    line-height: 1.45;
    text-align: left;
    width: 100%;
}
.slide-six-one .tech-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffd9be;
}
.slide-six-one .tech-card ul li:last-child {
    margin-bottom: 0;
}
/* --- Slide 6.2: Transition Divider --- */
.slide-transition {
    background-color: #d6c099;
    color: #123332;
    height: 30vh;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.slide-transition::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.45), transparent 55%),
        radial-gradient(circle at 80% -10%, rgba(238, 207, 182, 0.35), transparent 50%);
    pointer-events: none;
}
.slide-transition::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -5%;
    width: 110%;
    height: 80%;
    background: #123332;
    clip-path: ellipse(75% 60% at 50% 100%);
    pointer-events: none;
}
.slide-transition .case-studies-header {
    max-width: 720px;
    padding: 0 40px;
    z-index: 1;
    text-align: center;
}
.slide-transition .transition-eyebrow {
    font-size: 0.95em;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(18, 51, 50, 0.65);
    margin-bottom: 20px;
}
.slide-transition h2 {
    font-size: 3.4em;
    line-height: 1.3;
    margin: 0 0 24px;
    color: #123332;
    font-family: 'Georgia', serif;
    font-weight: 400;
    position: relative;
}
.slide-transition .transition-divider {
    width: 140px;
    height: 3px;
    margin: 0 auto;
    background: linear-gradient(90deg, rgba(18, 51, 50, 0), #123332, rgba(18, 51, 50, 0));
    opacity: 0.65;
}
/* Slide 6.1: 40/60 distribution for large screens */
@media (min-width: 1730px) {
    .slide-six-one {
        overflow-x: hidden;
    }
    .slide-six-one .left-image {
        flex: 0 0 40%;
        max-width: 40%;
    }
    .slide-six-one .right-content {
        flex: 0 0 60%;
        max-width: 60%;
        box-sizing: border-box;
    }
}
/* --- Case Studies (combined) --- */
.case-studies {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 30px 40px;
    background-color: #123332;
    color: #f3f3f3;
    height: auto;
    min-height: 100vh;
    position: relative;
}
.case-studies-header {
    max-width: 760px;
}
.case-studies-header h2 {
    font-size: 3.4em;
    margin: 0 0 12px;
    color: #123332;
}
.case-studies-header .subtitle {
    font-size: 1.2em;
    color: #d6c099;
    margin: 0;
}
.case-studies-slider {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.case-slider-window {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    /* padding: 0 32px; */
    box-sizing: border-box;
}
.case-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 32px;
    align-items: stretch;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y;
    cursor: grab;
}
.case-slider-dragging [data-slider-track],
.case-slider-dragging .case-slider-track {
    cursor: grabbing;
}
.case-slider-track:active {
    cursor: grabbing;
}
.case-slider-track > * {
    flex: 0 0 100%;
    min-width: 0;
}

/* Планшеты: 2 слайда на экран */
@media (min-width: 600px) and (max-width: 1024px) {
    .case-slider-track > * {
        flex: 0 0 calc((100% - 32px) / 2);
    }
}

/* Десктоп: 3 слайда на экран */
@media (min-width: 1025px) {
    .case-slider-track > * {
        flex: 0 0 calc((100% - 64px) / 3);
    }
}
.case-study-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #315251;
    border-radius: 16px;
    padding: 24px 28px 32px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
    width: 100%;
    box-sizing: border-box;
}
.case-study-card[data-active="true"] {
    background-color: #3a5a59;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}
.case-study-card:hover {
    background-color: #3a5a59;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}
.case-study-card:focus-within {
    background-color: #3a5a59;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}
.case-study-card h3 {
    font-size: 1.6em;
    margin: 0;
    color: #eecfb6;
}
.case-study-card .case-subtitle {
    font-size: 1.05em;
    color: #f0f0f0;
    margin: 0;
}
.case-card-visual {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.case-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.case-slider-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.case-slider-dots button:hover,
.case-slider-dots button:focus {
    background: #eecfb6;
    transform: scale(1.1);
}
.case-slider-dots button:focus-visible {
    outline: 2px solid rgba(238, 207, 182, 0.6);
    outline-offset: 2px;
}
.case-slider-dots button.is-active {
    background: #8bb762;
    transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
    .case-slider-track {
        transition: none;
    }
}
.case-study-card--incoming .case-card-visual { background-image: url('../img/webp/slide8.webp'); }
.case-study-card--video-training .case-card-visual {background-image: url('../img/webp/slide9.webp'); }
.case-study-card--spare-parts .case-card-visual {background-image: url('../img/webp/slide10.webp'); }
.case-study-card--sap-automation .case-card-visual {background-image: url('../img/webp/slide11.webp'); }
.case-study-card--b2b-platform .case-card-visual {background-image: url('../img/webp/slide12.webp');}
.case-studies .case-section {
    background-color: rgba(12, 38, 37, 0.78);
    border-radius: 10px;
    padding: 18px 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
}
.case-studies .case-section + .case-section {
    margin-top: 12px;
}
.case-studies .case-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    background-color: rgba(18, 51, 50, 0.92);
}
.case-studies .case-section h3 {
    font-size: 1.2em;
    margin: 0 0 10px;
    color: #eecfb6;
}
.case-studies .case-section p {
    margin: 0;
    font-size: 1.05em;
    line-height: 1.6;
    color: #f3f3f3;
}
.case-studies .case-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 1.05em;
    line-height: 1.6;
    color: #f3f3f3;
}
.case-studies .case-section ul li {
    display: flex;
    align-items: flex-start;
}
.case-studies .case-section ul li::before {
    content: "•";
    color: #8bb762;
    margin-right: 10px;
    line-height: 1.2;
}
.case-studies .case-section .case-highlight {
    color: #ff5a5a;
    font-weight: 600;
}

/* --- Slide 10: The HyperPartner Team --- */
.slide-ten {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: auto; /* override full-height sections */
    padding: 90px 0;
    background-color: #d6c099;
    color: #123332;
}
.slide-ten h2 {
    font-size: 3.5em;
    margin-bottom: 60px;
    align-self: center;
    text-align: center;
    padding-left: 0;
    color: #123332;
}
.slide-ten .team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1600px;
}
.slide-ten .team-member {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.slide-ten .team-member .img-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid #eecfb6;
    flex-shrink: 0;
}
.slide-ten .team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide-ten .team-member h3 {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: #123332;
    line-height: 1.3;
}
.slide-ten .team-member p {
    font-size: 1em;
    line-height: 1.4;
    color: #123332;
    margin: 0;
}

/* --- Slide 11: What Sets Us Apart --- */
.slide-eleven {
    background-color: #f0f0f0; /* Light background for image side */
}
.slide-eleven .left-image {
    flex: 1;
	background-image: url('../img/webp/slide14.webp'); /* Image for What Sets Us Apart */
    background-size: auto 100%;
    background-position: left center;
    background-repeat: no-repeat;
    background-color: #123332;
}
.slide-eleven .right-content {
    background-color: #123332;
    flex: 1;
    padding: 40px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.slide-eleven h2 {
    font-size: 3.5em;
    margin-bottom: 50px;
    color: #eecfb6;
}
.slide-eleven .feature-list {
    list-style: none;
    padding: 0;
}
.slide-eleven .feature-item {
    display: flex;
    align-items: center; /* align text with icon vertically */
    margin-bottom: 30px;
    position: relative;
}
.slide-eleven .feature-item::before { display: none; }
.slide-eleven .feature-item:last-child::before { display: none; }
.slide-eleven .feature-icon {
    background: none;
    width: 120px; /* fixed column for icons */
    height: auto;
    border-radius: 0;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.slide-eleven .feature-icon img {
    height: 120px; /* ~2x larger */
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.slide-eleven .feature-item:hover .feature-icon img {
    transform: scale(1.06);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}
.slide-eleven .feature-text h3 {
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #eecfb6; /* Gold for feature titles */
}
.slide-eleven .feature-text p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #e0e0e0;
}

/* --- Slide 12: How can we hyper-automate your success? --- */
.slide-twelve {
    background-color: #d6c099;
    color: #123332;
    padding: 0; /* remove padding to stick image to top and bottom */
}
.slide-twelve .left-content {
    flex: 1;
    padding: 0 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.slide-twelve h2 {
    font-size: 3.8em;
    line-height: 1.2;
    color: #123332;
}
.slide-twelve h2 span {
    color: #eecfb6; /* Gold for "your success" */
}
.slide-twelve .contact-details {
    margin-top: 30px;
    font-size: 1.5em;
    font-family: 'Quattrocento', serif;
    color: #123332;
}
.slide-twelve .contact-details a {
    color: #123332;
    text-decoration: none;
    border-bottom: 1px solid rgba(18, 51, 50, 0.4);
    padding-bottom: 6px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.slide-twelve .contact-details a:hover,
.slide-twelve .contact-details a:focus {
    color: #0d2624;
    border-color: #0d2624;
}
.slide-twelve .right-image {
    flex: 1;
	background-image: url('../img/webp/slide15.webp');
    background-size: auto 100%;
    background-position: right top; /* pin to top edge */
    background-repeat: no-repeat;
    background-color: #d6c099;
}


/* --- Site Footer --- */
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    color: #ccc;
    font-family: 'Quattrocento', serif;
    background-color: #0f2a29; /* subtle tonal highlight */
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer .footer-left,
.site-footer .footer-right {
    font-size: 0.95em;
}
/* --- Headings color for all slides except the first --- */
/* ========================= */
/* Responsive adjustments    */
/* ========================= */

/* Intermediate resolution (1366px) */
@media (max-width: 1366px) and (min-width: 1025px) {
    .slide-ten .team-grid {
        gap: 10px;
        width: 95%;
        max-width: 1500px;
    }
    .slide-ten .team-member .img-container {
        width: 190px;
        height: 190px;
    }
    .slide-ten .team-member h3 {
        font-size: 1.28em;
    }
    .slide-ten .team-member p {
        font-size: 0.98em;
    }
}

/* Tablet (<= 1024px) */
@media (max-width: 1024px) {
    /* Simplify sticky full-viewport sections on smaller screens */
    section {
        position: static;
        height: auto;
        min-height: 0;
    }
    section:not(:first-of-type)::before { display: none; }

    .page-header { display: none; }

    .site-nav {
        left: 0;
        right: 0;
        width: 100%;
        top: 0;
        padding: 12px 60px;
        justify-content: space-between;
        background: rgba(18, 51, 50, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .site-nav .nav-logo {
        display: block;
        margin-right: 16px;
    }
    .site-nav .nav-logo img { height: 26px; }

    /* Switch to custom mobile menu at 1024px */
    .desktop-nav { display: none; }
    .mobile-nav { display: none; }

    .mobile-toggle {
        display: block;
        position: relative;
        width: 48px;
        height: 48px;
        z-index: 22;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(18, 51, 50, 0.78);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        color: #eecfb6;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 12px;
        padding: 0;
        font-size: 0;
        cursor: pointer;
        transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18' viewBox='0 0 24 18'%3E%3Crect x='0' y='0' width='24' height='2' fill='%23eecfb6'/%3E%3Crect x='0' y='8' width='24' height='2' fill='%23eecfb6'/%3E%3Crect x='0' y='16' width='24' height='2' fill='%23eecfb6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 24px 18px;
    }
    .mobile-toggle:hover {
        background-color: rgba(18, 51, 50, 0.92);
        border-color: rgba(255, 255, 255, 0.32);
        transform: translateY(-1px);
    }
    .mobile-toggle[aria-expanded="true"] {
        background-color: rgba(12, 38, 37, 0.95);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .mobile-panel {
        display: block;
        position: absolute;
        top: calc(100% + 8px);
        left: 20px;
        right: 20px;
        z-index: 21;
        background: rgba(18, 51, 50, 0.8);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 14px;
        overflow: hidden;
        transform-origin: top center;
        transform: translateY(-6px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .mobile-panel.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-list a {
        padding: 14px 20px;
        color: #eecfb6;
        text-align: right;
        font-size: 1.05em;
    }
    .mobile-menu-list li + li a { border-top: 1px solid rgba(255,255,255,0.15); }
    .mobile-menu-list a:hover { background: rgba(238, 207, 182, 0.17); color: #ffffff; }
    .mobile-nav:focus {
        outline: 2px solid rgba(238, 207, 182, 0.4);
        outline-offset: 2px;
    }

    section .left-content,
    section .right-content {
        padding: 30px 60px;
    }

    /* Slide 1: stack image and text */
    .slide-one { flex-direction: column; }
    .slide-one .left-section {
        height: 40vh;
        background-size: cover;
        background-position: center;
    }
    .slide-one .right-section { padding: 30px 60px; }
    .slide-one .main-content { padding: 60px 0 40px; align-items: flex-start; }
    .slide-one .main-content p { font-size: 3.2em; }
    .slide-one .footer { font-size: 1.3em; }

    /* Slide 2: stack */
    .slide-two { flex-direction: column; }
    .slide-two .right-image {
        height: 40vh;
        background-size: cover;
        background-position: center;
    }
    .slide-two .about-title { font-size: 3em; }
    .slide-two .about-text { font-size: 1.15em; }

    /* Slide 3: stack, 1-col cards *//* Slide 3: stack */
    .slide-three { flex-direction: column; }
    .slide-three .left-text-section {padding: 5px 10px;}
    .slide-three .left-image {
        height: 40vh;
        background-size: cover;
        background-position: center;
    }
    .slide-three h2 { font-size: 3em; }

    /* Slide 4: stack, 1-col cards */
    .slide-fours { flex-direction: column; }
    .slide-fours .left-image {
        height: 40vh;
        background-size: cover;
        background-position: center;
    }
    .slide-fours .left-content {
        padding: 30px 60px;
    }
    .slide-fours .right-content { padding: 30px 60px; }
    .slide-fours h2 { font-size: 3em; margin-bottom: 32px; }
    .slide-fours .cards-grid { grid-template-columns: 1fr; }

    /* Slide 5: stack */
    .slide-five { flex-direction: column; }
    .slide-five .left-image {
        height: 40vh;
        background-size: cover;
        background-position: center;
    }
    .slide-five h2 { font-size: 3em; }
    .slide-five .content-grid { grid-template-columns: 1fr; gap: 24px; }
    .slide-five .right-content {padding: 30px 60px;}

    /* Slide 6: stack, tighten grids */
    .slide-six,
    .slide-six-one {
        flex-direction: column;
    }
    .slide-six .right-image,
    .slide-six-one .left-image {
        height: 40vh;
        background-size: cover;
        background-position: center;
    }
    .slide-six h2 { font-size: 3em; margin-bottom: 36px; }
    .slide-six .left-content,
    .slide-six-one .right-content { padding: 40px; }
    .slide-six .tech-grid,
    .slide-six-one .tech-grid { grid-template-columns: 1fr; gap: 20px; width: 100%; }
    .slide-six .tech-logos { flex-wrap: wrap; gap: 14px; width: 100%; }
    .slide-six .tech-logos img { height: 34px; }

    /* Case studies */
    .case-studies { padding: 30px 60px; gap: 32px; }
    .case-studies-header .subtitle { font-size: 1.05em; }
    .case-slider-window { border-radius: 16px; }
    .case-slider-track { gap: 24px; }
    .case-study-card { padding: 22px 24px 28px; }
    .case-card-visual { height: 200px; }

    /* Slide 10: grid to 3 cols on tablet, 2 on smaller tablets */
    .slide-ten h2 { font-size: 3em; padding-left: 0; text-align: center; margin-bottom: 40px; }
    .slide-ten .team-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 32px; 
        width: 90%;
    }
    .slide-ten .team-member .img-container { width: 180px; height: 180px; }
    .slide-ten .team-member h3 { font-size: 1.25em; }
    .slide-ten .team-member p { font-size: 0.95em; }
    
    /* Smaller tablets: 2 columns */
    @media (max-width: 768px) {
        .slide-ten .team-grid { 
            grid-template-columns: repeat(2, 1fr); 
            gap: 28px; 
        }
    }

    /* Transition divider */
    .slide-transition {
        height: auto;
        min-height: 0;
        padding: 70px 40px;
    }
    .slide-transition .case-studies-header {
        padding: 0;
    }
    .slide-transition h2 {
        font-size: 2.2em;
    }

    /* Slide 11: stack */
    .slide-eleven { flex-direction: column; }
    .slide-eleven .left-image {
        height: 40vh;
        background-size: cover;
        background-position: center;
    }
    .slide-eleven h2 { font-size: 3em; margin-bottom: 32px; }
    .slide-eleven .feature-icon { width: 90px; margin-right: 16px; }
    .slide-eleven .feature-icon img { height: 90px; }
    .slide-eleven .feature-item { align-items: flex-start; }
    .slide-eleven .right-content {padding: 30px 60px;}

    /* Slide 12: stack */
    .slide-twelve { flex-direction: column; }
    .slide-twelve .left-content { padding: 30px 60px; }
    .slide-twelve h2 { font-size: 3.2em; }
    .slide-twelve .right-image {
        height: 40vh;
        background-size: cover;
        background-position: center;
    }

    /* Footer */
    .site-footer { flex-direction: column; gap: 8px; text-align: center; }
}

/* Mobile (<= 600px) */
@media (max-width: 600px) {
    body { font-size: 17px; }

    .page-header { top: 60px; right: 10px; }
    .page-header img { height: 15px; }
    .page-header span { font-size: 1.1em; }

    /* Mobile custom menu adjustments */
    .site-nav { padding: 10px 60px; }
    .site-nav .nav-logo img { height: 18px; }
    .mobile-toggle {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        background-size: 20px 16px;
    }
    .mobile-panel {
        left: 16px;
        right: 16px;
    }
    .mobile-menu-list a { padding: 12px 14px; font-size: 1em; }

    h1, h2 { line-height: 1.2; }

    /* Slide 1 */
    .slide-one .left-section { height: 36vh; }
    .slide-one .main-content p { font-size: 2.6em; }
    .slide-one .footer { font-size: 1.3em; }

    /* Slide 2 */
    .slide-two .about-title { font-size: 2.2em; margin-bottom: 20px; }
    .slide-two .about-text { font-size: 1em; margin-bottom: 18px; }

    /* Slide 3 */
    .slide-fours h2 { font-size: 2.2em; }
    .slide-fours .card { padding: 18px; }
    .slide-fours .card-icon { width: 44px; height: 44px; }
    .slide-fours .card-icon img { width: 26px; height: 26px; }
    .slide-fours .card h3 { font-size: 1.2em; }
    .slide-fours .card p, .slide-fours .card ul { font-size: 1em; }

    /* Slide 4 */
    .slide-three h2 { font-size: 2.2em; }
    .slide-three .challenge-box, .slide-three .solution-box { padding: 20px; font-size: 1.05em; }

    /* Slide 5 */
    .slide-five h2 { font-size: 2.2em; }
    .slide-five h3 { font-size: 1.3em; }

    /* Slide 6 */
    .slide-six h2,
    .slide-six-one h2 { font-size: 2.2em; margin-bottom: 24px; }
    .slide-six .tech-card,
    .slide-six-one .tech-card { padding: 20px; }
    .slide-six .tech-card .icon,
    .slide-six-one .tech-card .icon { width: 52px; height: 52px; }
    .slide-six .tech-card .icon img,
    .slide-six-one .tech-card .icon img { width: 30px; height: 30px; }
    .slide-six .tech-card h3,
    .slide-six-one .tech-card h3 { font-size: 1.1em; }
    .slide-six .tech-card p,
    .slide-six-one .tech-card p { font-size: 0.92em; }
    .slide-six .tech-logos { gap: 10px; }
    .slide-six .tech-logos img { height: 28px; }

    /* Case studies */
    .case-studies { padding: 32px 18px; gap: 24px; }
    .case-studies-header h2 { font-size: 2.2em; }
    .case-studies-header .subtitle { font-size: 1em; }
    .case-slider-window { border-radius: 12px; padding: 0; }
    .case-slider-track { gap: 20px; }
    .case-slider-dots { gap: 10px; }
    .case-card-visual { height: 160px; }
    .case-study-card { padding: 20px 18px 26px; }
    .case-study-card h3 { font-size: 1.4em; }
    .case-studies .case-section { padding: 16px 18px; }
    .case-studies .case-section h3 { font-size: 1.1em; }
    .case-studies .case-section p,
    .case-studies .case-section ul { font-size: 1em; }

    /* Slide 10 */
    .slide-ten h2 { font-size: 2.2em; padding-left: 0; text-align: center; margin-bottom: 28px; }
    .slide-ten .team-grid { grid-template-columns: 1fr; gap: 24px; width: 90%; }
    .slide-ten .team-member .img-container { width: 150px; height: 150px; margin-bottom: 12px; }
    .slide-ten .team-member h3 { font-size: 1.2em; margin-bottom: 6px; }
    .slide-ten .team-member p { font-size: 0.95em; }

    /* Transition divider */
    .slide-transition {
        height: auto;
        min-height: 0;
        padding: 40px 20px;
    }
    .slide-transition::after {
        height: 45%;
        width: 150%;
        left: -25%;
        clip-path: ellipse(95% 60% at 50% 100%);
    }
    .slide-transition .case-studies-header {
        padding: 0;
    }
    .slide-transition .transition-eyebrow {
        letter-spacing: 0.18em;
        font-size: 0.82em;
    }
    .slide-transition h2 {
        font-size: 1.75em;
        margin-bottom: 16px;
    }
    .slide-transition .transition-divider {
        width: 70px;
    }

    /* Slide 11 */
    .slide-eleven h2 { font-size: 2.2em; }
    .slide-eleven .feature-item { align-items: center; }
    .slide-eleven .feature-icon { width: 64px; margin-right: 12px; }
    .slide-eleven .feature-icon img { height: 64px; }
    .slide-eleven .feature-text h3 { font-size: 1.2em; }
    .slide-eleven .feature-text p { font-size: 1em; }

    /* Slide 12 */
    .slide-twelve h2 { font-size: 2.4em; }

    /* Footer */
    .site-footer { padding: 16px 20px; }
    .site-footer .footer-left, .site-footer .footer-right { font-size: 0.9em; }
}

/* Slide 4 boxes background override */
.slide-three .challenge-box,
.slide-three .solution-box {
    background-color: transparent;
}

/* Slide 12 "your success" color override */
.slide-twelve h2 span {
    color: #645a48;
}

/* ========================= */
/* Back-to-top button styles */
/* ========================= */
.back-to-top {
    position: fixed;
    right: 34px;
    bottom: 68px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #315251;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    z-index: 1000;
}
.back-to-top:hover { background-color: #243e3d; }
.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}