body {
    font-family: 'Jost', sans-serif;
    background-color: #000;
    color: #fff;
}
h1, h2, h3, h4, h5, h6, .display-2 {
    font-family: 'funnel sans', sans-serif;
    font-weight: 700;
}
.navbar {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 1rem 0;
}
.navbar-brand {
    font-weight: 700;
    color: #fff !important;
}
.nav-link {
    color: #fff !important;
    font-size: 1.1rem;
    margin-left: 1.5rem;
}
.hero-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.7;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .video-background video {
        object-fit: contain;
    }
}
.form-label {
    color: #fff;
}

.section-padding {
    padding: 80px 0;
}
.section-quest {
    position: relative;
    background: linear-gradient(0deg, #f83fd9 0%, #4f44ee 40%, #170749 80%);
    background-attachment: fixed;
    z-index: 0;
    overflow: hidden;
}

.section-quest::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/chaticonstile.png');
    background-repeat: repeat;
    /* Parallax effect: background position follows CSS variable set by JS */
    background-attachment: scroll;
    background-position: var(--bg-pos, center 0);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}
.usp-card {
    background-color: #2e2061;
}
.usp-card-bottom-image {
    height: 260px;
    overflow: hidden;
    position: relative; /* enable overlay positioning */
}
.usp-card-bottom-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #2e2061 0%, transparent 25%);
    /* background: linear-gradient(to bottom, #170b38, transparent); */
    pointer-events: none;
    z-index: 1;
}
.usp-card-bottom-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-top {
    object-position: top;
}
.img-center {
    object-position: center;
}
.img-bottom {
    object-position: bottom;
}

.bg-dark-accent {
    background-color: #111;
}
.bg-highlight-accent {
    background-color: #240c5f;
}

.bg-light-accent {
    background-color: #fcf3d8;
    color: #000;
}

.bg-light-gradient-3 {
    background-image: linear-gradient(90deg, #4000FE 0%, #FD5790 50%, #FAF30A 100%);
}

.bg-light-gradient-USP {
    padding: 3rem;
    background-image: linear-gradient(0deg, #1f0a61 0%, #0a0016 100%);
    color: #f8f9fa;
}

.bg-light-gradient-USP .card {
    color: #f8f9fa;
}




.card {
    /* border: 1px solid rgba(255, 255, 255, 0.01); */
    color: #170b38;
    height: 100%;
    transition: transform 0.3s ease;
}
.card-body {
    padding: 1.5rem;
}
.bg-light-accent .card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000;
}
.card:hover {
    transform: translateY(-5px);
}
.step-number {
    opacity: 0.3;
    height: fit-content;
    width: 100%;
    margin-top: -1rem;
    margin-bottom: 1rem;
    background-image: url('img/step-bg.png');
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
}
.step-number h4 {
    height: 100%;
    width: 100%;
    line-height: 100%;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #ffffff;
}
.bg-light-accent .step-number {
    color: #8636ff;
    opacity: 1;
}
.cta-card {
    background-color: #8636ff !important;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    text-align: center;
    padding: 2rem;
}
.cta-card h5 {
    margin-bottom: 1.5rem;
}
.review-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    height: 100%;
}
.bg-light-accent .review-card {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}
.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.75rem 1rem;
}
.form-control::placeholder {
    color: #5f5f5f;
}
.form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #8636ff;
    color: #fff;
    box-shadow: none;
}
.btn-primary {
    background-color: #8636ff;
    border-color: #8636ff;
    padding: 0.75rem 2rem;
    font-weight: 600;
}
.btn-primary:hover {
    background-color: #722dd9;
    border-color: #722dd9;
}
.social-icons a {
    color: #fff;
    font-size: 1.8rem;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.social-icons a:hover {
    color: #8636ff;
}
footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.quest-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

/* Quest Gallery Custom Classes */
.quest-column {
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    isolation: isolate;
}

/* Wrapper for centered content with max-width */
.content-wrapper {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.trading-card-specular {
    background-image: repeating-linear-gradient(45deg, #4000FE 0px, #FD5790 300px, #FAF30A 600px);
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    padding: 0.5rem;
    
    /* background-attachment: scroll;
    background-position: var(--bg-pos, center 0); */
}

.trading-card-cta-overlay {
    background-image: url('img/glitter.png');
    background-repeat: repeat;
    /* background-color: rgba(255, 255, 255, 0.1); */
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 8px;
    pointer-events: none;
    mix-blend-mode: plus-lighter;
    opacity: 0.3;

    background-attachment: scroll;
    background-position: var(--bg-pos, center 0);
}

/* Trading Card Layout (replaces quest-card) */
.trading-card {
    background: #fade41; /* unravel yellow*/
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    padding: 0.5rem;
}
/* .trading-card:hover {
    transform: translateY(-4px);
} */
.trading-card-image {
    /* Container for image; enable overlay positioning */
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}
.trading-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
}
.trading-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #4e2f97;
    border-radius: 10px;
    z-index: 2;
}
.trading-card-body p {
    margin: 0rem 0.5rem 0.1rem 0.7rem;
}
.trading-card-title {
    font-family: 'Epilogue', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0.5rem;
    color: #efd5f5;
}
.trading-card-location {
    font-size: 1rem;
    font-weight: 600;
    padding-top: 0.25rem;
}
.trading-card-date {
    font-style: italic;
}
.trading-card-details {
    font-size: 0.9rem;
    padding-top: 0.1rem;
    padding-bottom: 0.7rem;
    height: 118px;
}
.trading-card-stats {
    /* Overlay stats positioned at the bottom of the image */
    list-style: none;
    padding: 0.5rem 1rem;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    position: absolute;
    bottom: 0;      /* align to bottom */
    left: 0;
    width: 100%;    /* span full width */
    color: #fff;
    z-index: 2;
}
.trading-card-stats li {
    background: rgba(0, 0, 0, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}
.trading-card-link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 3;
}

/* Swiper Styles - use !important to override default swiper styles */
.swiper-button-prev {
    color: rgb(255, 255, 255) !important;
}
.swiper-button-next {
    color: rgb(255, 255, 255) !important;
}
.swiper-button-disabled {
    /* color: violet !important; */
}
.swiper-pagination-bullet {

}
.swiper-pagination-bullet-active {
    background: rgb(239, 117, 243) !important;
    /* height: 20px !important;
    width: 20px !important; */
}

/* Responsive tweaks for trading cards */
@media (max-width: 576px) {
    .trading-card-image {
        height: 150px;
    }
    .trading-card-title {
        font-size: 1.5rem;
    }
    .trading-card-location,
    .trading-card-date,
    .trading-card-details {
        font-size: 0.8rem;
    }
    .trading-card-stats {
        font-size: 0.75rem;
    }
}

/* --- Case Study (Cohesive Article) Styles --- */
:root {
    --article-bg: #0d0b1a;
    --article-surface: #170b38;
    --article-panel: #1f1248;
    --article-muted: rgba(255, 255, 255, 0.72);
    --article-soft: rgba(255, 255, 255, 0.5);
    --article-rule: rgba(255, 255, 255, 0.16);
    --article-accent: #8636ff;
    --article-highlight: #71c7aa;
}

body.case-study {
    position: relative;
    background: linear-gradient(0deg, #261181 0%, #c0246d 45%, #e6c764 100%);
    background-attachment: fixed;
    color: #fff;
    z-index: 0;
}

body.case-study::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/chaticonstile.png');
    background-repeat: repeat;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.case-study .navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.article-hero-banner {
    background-size: cover;
    background-position: center;
    height: 809px;
    width: 100%;
    margin-bottom: -809px;
}

.fof-hero {
    background-image: url('img/banner/fof_image.png');
}

.tbom-hero {
    background-image: url('img/banner/tbom_image.png');
}

.robolove-hero {
    background-image: url('img/banner/robolove_image.png');
}

.article-shell {
    padding: 0 0 5rem;
}

.article-shell .container {
    position: relative;
    z-index: 2;
}

.article-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
    background: linear-gradient(to bottom, transparent 0px, rgba(23, 11, 56, 0.9) 180px,rgba(23, 11, 56, 0.8) 80%, rgba(13, 11, 26, 0) 100%);
    /* border: 1px solid var(--article-rule); */
     /* border-radius: 1.25rem;  */
    /* box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); */
}

.kicker {
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--article-soft);
    font-size: .78rem;
    margin-bottom: 1rem;
}

.kicker-pill {
    display: inline-block;
    background: rgba(113, 199, 170, 0.12);
    border: 1px solid rgba(113, 199, 170, 0.45);
    color: #a6f0da;
    border-radius: 999px;
    padding: .2rem .6rem;
    margin-right: .45rem;
    font-weight: 600;
}

.headline,
.section-head {
    font-family: 'Epilogue', sans-serif;
    font-weight: 700;
    line-height: 1.18;
}

.headline {
    font-size: clamp(1.9rem, 4vw, 3rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

.subhead {
    color: var(--article-muted);
    border-left: 3px solid var(--article-highlight);
    padding-left: 1rem;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.byline {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    color: var(--article-soft);
    font-size: .9rem;
    border-bottom: 1px solid var(--article-rule);
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-band,
.design-principle,
.puzzle-card,
.story-flow {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--article-rule);
    border-radius: 1rem;
}

.hero-band {
    padding: 1.4rem 1rem;
    margin-bottom: 2rem;
}

.hero-stats-gap {
    gap: 1rem;
}

.stat-num {
    display: block;
    font-family: 'Epilogue', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--article-highlight);
    line-height: 1;
}

.stat-label {
    color: var(--article-soft);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .72rem;
}

.stat-divider {
    width: 1px;
    height: 56px;
    background: var(--article-rule);
}

.section-label {
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #bf9fff;
    font-size: .72rem;
    margin: 2.35rem 0 .5rem;
}

.section-head {
    font-size: clamp(1.35rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.body-text,
.step-content,
.design-principle p,
.puzzle-card-body {
    color: var(--article-muted);
    line-height: 1.78;
}

.pull-quote {
    background: linear-gradient(90deg, rgba(134, 54, 255, 0.14), rgba(113, 199, 170, 0.1));
    border: 1px solid rgba(134, 54, 255, 0.4);
    border-radius: .9rem;
    color: #fff;
    text-align: center;
    font-style: italic;
    padding: 1.2rem;
    margin: 2rem 0;
}

.design-principle {
    padding: 1rem 1rem;
    margin-bottom: .9rem;
}

.design-principle-label {
    color: #d5bbff;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.story-flow {
    padding: 1rem;
    margin: 1.5rem 0 2rem;
}

.story-step {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: .85rem;
}

.story-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    min-width: 88px;
    text-align: right;
    color: var(--article-soft);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .18rem;
}

.step-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 14px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--article-highlight);
}

.step-tail {
    width: 1px;
    min-height: 28px;
    background: var(--article-rule);
    margin-top: 4px;
}

.step-content strong,
.puzzle-card-title {
    display: block;
    color: #fff;
    margin-bottom: .2rem;
    font-size: .92rem;
}

.puzzle-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    height: 100%;
}

.puzzle-card-media {
    margin-top: auto;
    padding-top: .75rem;
}

.puzzle-card-num {
    font-family: 'Epilogue', sans-serif;
    font-size: 2rem;
    color: #bea2ff;
    line-height: 1;
    margin-bottom: .5rem;
}

.closing-rule {
    border: 0;
    border-top: 1px solid var(--article-rule);
    margin: 2.25rem 0 1rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.tag {
    border: 1px solid var(--article-rule);
    background: rgba(255, 255, 255, 0.03);
    color: var(--article-soft);
    border-radius: 999px;
    padding: .28rem .7rem;
    font-size: .78rem;
}

.case-study footer {
    background: #09070f;
}

@media (max-width: 576px) {
    .case-study .article-shell {
        padding-bottom: 2.5rem;
    }

    .case-study .article-wrap {
        border-radius: .95rem;
        padding: 1.25rem .9rem 2rem;
    }

    .case-study .stat-divider {
        display: none;
    }

    .case-study .step-marker {
        min-width: 50px;
        font-size: .68rem;
    }
}

@media (max-width: 768px) {
    .section-quest {
        background-attachment: scroll;
    }

    body.case-study {
        background-attachment: scroll;
    }
}
