/* --- General Setup & Variables --- */
:root {
    --color-dark: #292f35;
    --color-darker: #202428;
    --color-red: #1d3557;
    --color-accent: #d4a017;
    --color-accent-dark: #a97e0f;
    --color-grey: #e9ecef;
    --color-text-light: #ced4da;
    --color-text-dark: #333;
    --color-white: #fff;
    --font-heading: 'Open Sans', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-white);
    font-size: 16px;
    line-height: 1.6;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-dark);
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}


/* --- Hero Section --- */
.hero {
    height: 550px;
    background: url('https://placehold.co/1920x550/cccccc/333333?text=Hero+Image+Placeholder') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 3;
    /* stay on top of slice overlay */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.2s ease-out;
    transition-delay: 0.5s;
}

.hero-content.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Sliced Hero (new approach) */
.slice-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none;
    z-index: 2;
    /* above background & dark overlay, below hero content */
    --pieceCount: 8;
    --delayStep: 60ms;
    contain: layout paint style;
    transform: translateZ(0);
    overflow: hidden;
    /* hide overshoot */
}

.slice-piece {
    width: calc(100% / var(--pieceCount));
    height: 100%;
    background-repeat: no-repeat;
    /* background-size and background-position set inline for crisp alignment */
    /* Start off-screen; slide IN on .animate to show next image as slices */
    transform: translate3d(0, 110%, 0);
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i) * var(--delayStep));
    will-change: transform;
    backface-visibility: hidden;
}

.slice-piece:nth-child(even) {
    transform: translate3d(0, -110%, 0);
}

.slice-overlay.animate .slice-piece {
    /* Slide IN to final position */
    transform: translate3d(0, 0, 0);
}

/* Navigation Dots for Hero Slider */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 4;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.3);
}

.slider-dot.active {
    background-color: var(--color-white);
    border-color: var(--color-white);
}

.hero-content h2 {
    font-size: 20px;
    color: #ffc107;
    font-weight: 600;
}

.hero-content h1 {
    font-size: 72px;
    color: var(--color-white);
    letter-spacing: 2px;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
}

/* --- Products Section --- */
.products {
    padding: 80px 0;
    background-color: var(--color-white);
    background-image: url(https://www.apointbd.com/wp-content/uploads/2018/01/banner4.jpg);
    background-size: cover;
    background-position: center;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    position: relative;
    color: var(--color-dark);
    display: inline-block;
    padding-bottom: 15px;
    transition: all 0.3s ease;
}

.section-title h2:hover {
    transform: scale(1.05);
}

.what-we-do .section-title h2 {
    color: var(--color-white);
}

/* 
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-red);
} */

/* --- About Us Intro (homepage) --- */
.about-intro {
    padding: 100px 0;
    background-color: var(--color-white);
    background-image: url(https://www.apointbd.com/wp-content/uploads/2018/01/banner4.jpg);
    background-size: cover;
    background-position: center;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 70px;
    align-items: center;
}

.about-intro-media {
    position: relative;
    padding: 0 44px 44px 0;
}

.about-img-main {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.about-img-overlap {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    animation: aboutFloat 5.5s ease-in-out infinite;
}

.about-badge {
    position: absolute;
    top: -26px;
    left: -26px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-red);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: aboutFloat 4s ease-in-out 1.4s infinite;
}

/* Gentle floating loop — badge & overlap image drift out of sync */
@keyframes aboutFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-11px);
    }
}

.about-badge-num {
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.about-badge-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 6px;
    line-height: 1.35;
}

.about-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 14px;
}

.about-kicker::before {
    content: '';
    display: inline-block;
    width: 34px;
    height: 2px;
    background: var(--color-accent);
    vertical-align: middle;
    margin-right: 12px;
    margin-top: -3px;
}

.about-title {
    font-size: 38px;
    line-height: 1.25;
    color: var(--color-red);
    margin-bottom: 24px;
}

.about-intro-body>p {
    color: #5a6470;
    font-size: 15.5px;
    line-height: 1.85;
    margin-bottom: 18px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 26px;
    margin: 30px 0 34px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.about-feature-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--color-red);
    color: var(--color-white);
    font-size: 19px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.about-feature:nth-child(2) .about-feature-icon {
    background: var(--color-accent);
}

.about-feature:nth-child(3) .about-feature-icon {
    background: #0f7b6c;
}

.about-feature:nth-child(4) .about-feature-icon {
    background: #b23a48;
}

.about-feature h4 {
    font-size: 16.5px;
    color: var(--color-red);
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 13.5px;
    color: #5a6470;
    line-height: 1.6;
}

.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--color-red);
    color: var(--color-white);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 16px 34px;
    border-radius: 4px;
    transition: background 0.3s ease, gap 0.3s ease;
}

.about-cta:hover {
    background: #14273f;
    color: var(--color-white);
    gap: 18px;
}

/* Smooth, slower scroll-reveal for the About columns & features */
.about-intro-media,
.about-intro-body,
.about-feature {
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 992px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-intro-media {
        max-width: 520px;
        margin: 0 auto;
    }

    .about-badge {
        top: -18px;
        left: -8px;
    }
}

@media (max-width: 576px) {
    .about-title {
        font-size: 30px;
    }

    .about-img-main {
        height: 320px;
    }

    .about-img-overlap {
        height: 160px;
        border-width: 6px;
    }

    .about-badge {
        width: 104px;
        height: 104px;
    }

    .about-badge-num {
        font-size: 26px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    counter-reset: pr-counter;
    border-top: 1px solid #e4e7eb;
    border-left: 1px solid #e4e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.product-range-item {
    counter-increment: pr-counter;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
    border-bottom: 1px solid #e4e7eb;
    border-right: 1px solid #e4e7eb;
    color: #1f3b57;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.product-range-item::before {
    content: counter(pr-counter, decimal-leading-zero);
    font-size: 13px;
    font-weight: 700;
    color: #b8c1cc;
    min-width: 20px;
}

.product-range-item .pr-name {
    flex: 1;
}

.product-range-item .pr-arrow {
    color: #1f3b57;
    font-size: 16px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.product-range-item:hover {
    background-color: #f6f9fc;
    color: var(--color-red);
}

.product-range-item:hover .pr-arrow {
    color: var(--color-red);
    transform: translateX(6px);
}

/* --- Our Track Record / Stats Section --- */
.stats-section {
    padding: 90px 0;
    background-color: #f8f9fa;
}

.stats-subtitle {
    text-align: center;
    max-width: 620px;
    margin: 18px auto 0;
    color: #6b7683;
    font-size: 16px;
    line-height: 1.7;
}

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

.stat-item {
    background: var(--color-white);
    border-radius: 10px;
    padding: 42px 24px;
    text-align: center;
    border: 1px solid #e6e9ee;
    transition: transform 0.35s ease;
}


.stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 26px;
    color: white;
    background:  var(--color-red);
    transition: all 0.35s ease;
}


.stat-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 46px;
    line-height: 1;
    color: var(--color-red);
    letter-spacing: 0.5px;
}

.stat-number span {
    color: var(--color-red);
}

.stat-label {
    margin-top: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-dark);
}

/* --- What We Do Section --- */
.what-we-do {
    padding: 80px 0;
    background-color: #1d3557;
    /* Garment trims flat-lay under a heavy navy tint keeps the brand color dominant */
    background-image: linear-gradient(rgba(29, 53, 87, 0.94), rgba(23, 37, 59, 0.96)), url('images/products/garment-trims-flatlay.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.what-we-do .section-title h2 {
    color: var(--color-white);
}

.wwd-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.68);
    font-size: 16px;
    max-width: 620px;
    margin: 14px auto 0;
    line-height: 1.6;
}

/* Two-tier product nav: editorial group tabs over ghost sub-pills */
.wwd-groups {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 38px;
    margin: 44px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.wwd-groups button {
    background-color: transparent;
    border: none;
    padding: 12px 2px 16px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    transition: color 0.3s ease;
}

.wwd-groups button sup {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--color-accent);
    margin-left: 5px;
}

.wwd-groups button::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.wwd-groups button:hover {
    color: var(--color-white);
}

.wwd-groups button.active {
    color: var(--color-white);
}

.wwd-groups button.active::after {
    transform: scaleX(1);
}

.wwd-subtabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0 40px;
}

.wwd-subtabs button {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 9px 18px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    animation: wwdSubIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.wwd-subtabs button:hover {
    border-color: var(--color-white);
    color: var(--color-white);
}

.wwd-subtabs button.active {
    background-color: var(--color-white);
    color: var(--color-red);
    border-color: var(--color-white);
}

@keyframes wwdSubIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery-style product preview tiles */
.wwd-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.wwd-tile {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.18);
    opacity: 0;
    animation: wwdTileIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.wwd-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.wwd-tile:hover img {
    transform: scale(1.05);
}

.wwd-viewall {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--color-white);
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.wwd-viewall span {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.wwd-viewall i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.wwd-viewall:hover {
    background-color: var(--color-white);
    color: var(--color-red);
    border-color: var(--color-white);
}

.wwd-viewall:hover i {
    transform: translateX(5px);
}

@keyframes wwdTileIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wwd-tile {
        animation: none;
        opacity: 1;
    }
}

/* --- Why Choose Us Section --- */
.why-choose-us-section {
    padding: 100px 0;
    background-color: #222;
    color: #fff;
}

.why-choose-us-section .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.why-choose-us-section .section-title h2 {
    color: #fff;
}

.why-choose-us-section .section-title p {
    color: #aaa;
    font-size: 16px;
}

.why-choose-us-section .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.why-choose-us-section .feature-item .feature-icon {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
    transition: all 0.3s ease;
}

.why-choose-us-section .feature-item:hover .feature-icon {
    transform: translateY(-5px);
    color: #ffc107;
}

.why-choose-us-section .feature-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
    color: #fff;
}

.why-choose-us-section .feature-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0%;
    width: 40px;
    height: 1px;
    background-color: #787878;
}

.why-choose-us-section .feature-item p {
    color: #aaa;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .why-choose-us-section .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .why-choose-us-section .features-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Product Showcase Marquee --- */
.product-marquee {
    padding: 90px 0;
    background-color: #faf9f7;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 60s linear infinite;
    will-change: transform;
}

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

.marquee-group {
    display: flex;
    gap: 16px;
    padding-right: 16px;
}

.marquee-group img {
    width: 320px;
    height: 240px;
    object-fit: cover;
    display: block;
    border: 1px solid #e8e6e1;
    flex-shrink: 0;
    transition: transform 0.6s ease;
}

.marquee-group img:hover {
    transform: scale(1.04);
}

@keyframes marqueeScroll {
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
        width: auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    .marquee-group[aria-hidden="true"] {
        display: none;
    }
}

/* --- Why Us Section --- */
.why-us {
    padding: 80px 0;
    background-color: var(--color-dark);
    color: var(--color-white);
}

.why-us .section-title h2 {
    color: var(--color-white);
}

.why-us .section-title p {
    color: var(--color-text-light);
}

.features-grid {
    display: flex;
    justify-content: space-between;
}

.feature-item {
    text-align: left;
    transition: all 0.3s ease;
    /* padding: 20px; */
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 18px;
    color: var(--color-white);
    margin-bottom: 10px;
    font-weight: 500;
}

.feature-item p {
    font-size: 15px;
    color: var(--color-text-light);
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
    background: url('images/pages/site-img789.jpg') no-repeat center center/cover;
    position: relative;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: left;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.2s ease-out;
}

.cta-content.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Scroll Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.2s ease-out;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.2s ease-out;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.2s ease-out;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease-out;
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

.cta-content h2 {
    font-size: 36px;
    max-width: 600px;
    margin: 15px 0px;
}

.cta-content p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

/* =======================
    Responsive Adjustments
 ======================== */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        height: 440px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .cta-section {
        padding: 80px 0;
    }

    .cta-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 380px;
    }

    .wwd-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .wwd-groups {
        gap: 0 22px;
    }

    .wwd-groups button {
        font-size: 11px;
        letter-spacing: 1.5px;
        padding: 10px 2px 12px;
    }

    .product-marquee {
        padding: 60px 0;
    }

    .marquee-group img {
        width: 220px;
        height: 165px;
    }

    .hero-content h1 {
        font-size: 34px;
        letter-spacing: 0.5px;
    }

    .hero-content h2 {
        font-size: 18px;
    }

    .hero-content p {
        font-size: 14px;
    }

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

    .cta-section {
        padding: 70px 0;
    }

    .cta-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content h2 {
        font-size: 16px;
    }

    .hero-content p {
        font-size: 12px;
    }

    .section-title h2 {
        font-size: 26px;
    }

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

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

    .stat-number {
        font-size: 40px;
    }

    .product-range-item {
        font-size: 16px;
        padding: 18px 18px;
    }
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    padding: 15px 36px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.35s ease, color 0.35s ease;
}

.btn-cta:hover {
    background-color: var(--color-white);
    color: var(--color-red);
}

/* =======================
   Opening Intro Splash
======================== */
body.intro-lock {
    overflow: hidden;
}

#intro-splash {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Matches the flat charcoal backdrop of the brand logo */
    background: #1e1e1e;
    /* Backdrop fades only after the content has played its reverse exit */
    transition: opacity 0.7s cubic-bezier(0.65, 0, 0.35, 1) 1.05s, visibility 0.7s 1.05s;
}

#intro-splash.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    padding: 0 24px;
}

.intro-logo {
    display: block;
    width: clamp(84px, 12vw, 130px);
    height: auto;
    margin: 0 auto 26px;
    opacity: 0;
    animation: introLogoIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.intro-name {
    font-family: 'Oswald', var(--font-heading);
    font-weight: 700;
    font-size: clamp(34px, 7vw, 68px);
    color: var(--color-white);
    letter-spacing: 6px;
    line-height: 1.15;
    text-transform: uppercase;
    opacity: 0;
    animation: introLetters 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.intro-line {
    width: 0;
    height: 3px;
    margin: 22px auto 20px;
    background: linear-gradient(90deg, var(--color-accent), #ffc107);
    border-radius: 2px;
    opacity: 0;
    animation: introLine 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards;
}

.intro-slogan {
    font-family: var(--font-body);
    font-size: clamp(14px, 2.4vw, 19px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 1.5px;
    opacity: 0;
    animation: introFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 1.35s forwards;
}

@keyframes introLogoIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes introLetters {
    from {
        opacity: 0;
        letter-spacing: 16px;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        letter-spacing: 6px;
        transform: translateY(0);
    }
}

@keyframes introLine {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 120px;
        opacity: 1;
    }
}

@keyframes introFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Reverse exit: each element leaves the same way it arrived --- */
#intro-splash.done .intro-slogan {
    animation: introSloganOut 0.55s cubic-bezier(0.65, 0, 0.35, 1) 0s both;
}

#intro-splash.done .intro-line {
    animation: introLineOut 0.55s cubic-bezier(0.65, 0, 0.35, 1) 0.15s both;
}

#intro-splash.done .intro-name {
    animation: introLettersOut 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.3s both;
}

/* Logo arrived first, so it leaves last */
#intro-splash.done .intro-logo {
    animation: introLogoOut 0.55s cubic-bezier(0.65, 0, 0.35, 1) 0.45s both;
}

@keyframes introLogoOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
}

@keyframes introLettersOut {
    from {
        opacity: 1;
        letter-spacing: 6px;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        letter-spacing: 16px;
        transform: translateY(24px);
    }
}

@keyframes introLineOut {
    from {
        width: 120px;
        opacity: 1;
    }

    to {
        width: 0;
        opacity: 0;
    }
}

@keyframes introSloganOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(18px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .intro-name,
    .intro-line,
    .intro-slogan,
    #intro-splash.done .intro-name,
    #intro-splash.done .intro-line,
    #intro-splash.done .intro-slogan {
        animation-duration: 0.01s;
        animation-delay: 0s;
    }

    #intro-splash {
        transition-delay: 0s;
    }
}