:root {
    --gg-bg: #F8F4EC;
    --gg-bg-white: #ffffff;
    --gg-bg-dark: #0f0f0f;
    --gg-card: #ffffff;
    --gg-border: #e8e2d6;
    --gg-text: #1a1a1a;
    --gg-text-secondary: #5c5c5c;
    --gg-text-muted: #8a8a8a;
    --gg-accent: #f5c518;
    --gg-accent-bg: rgba(245,197,24,0.1);
    --gg-purple: #7c5cfc;
    --gg-purple-bg: rgba(124,92,252,0.06);
    --gg-shadow-sm: 0 1px 4px rgba(0,0,0,0.04);
    --gg-shadow: 0 4px 20px rgba(0,0,0,0.06);
    --gg-shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --gg-radius: 16px;
    --gg-radius-sm: 10px;
    --gg-radius-xs: 6px;
}

[data-gg-theme="dark"] {
    --gg-bg: #0f0f0f;
    --gg-bg-white: #161616;
    --gg-card: #1a1a1a;
    --gg-border: #2a2a2a;
    --gg-text: #f0ede6;
    --gg-text-secondary: #a0a0a0;
    --gg-text-muted: #6a6a6a;
    --gg-shadow-sm: 0 1px 4px rgba(0,0,0,0.15);
    --gg-shadow: 0 4px 20px rgba(0,0,0,0.2);
    --gg-shadow-lg: 0 12px 40px rgba(0,0,0,0.25);
}

.gg-page { background: var(--gg-bg); transition: background 0.3s, color 0.3s; }
.gg-page, .gg-page * { font-family: 'Plus Jakarta Sans', sans-serif; }
.gg-serif { font-family: 'DM Serif Display', serif !important; }
.gg-page .section-hero, .gg-page .box-white, .gg-page .box-black { background: transparent !important; }

/* Theme toggle */
.gg-theme-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gg-card);
    border: 1px solid var(--gg-border);
    box-shadow: var(--gg-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--gg-text);
    transition: all 0.3s;
}
.gg-theme-btn:hover { transform: scale(1.1); }

/* Case Study Hero */
.gg-cs-hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}
.gg-cs-hero::after {
    content: '';
    position: absolute;
    top: 60px;
    right: -60px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245,197,24,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.gg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--gg-accent-bg);
    border: 1px solid rgba(245,197,24,0.25);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gg-text);
    margin-bottom: 1.5rem;
}
.gg-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gg-accent); }
.gg-cs-title {
    font-family: 'DM Serif Display', serif !important;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--gg-text);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}
.gg-cs-sub {
    font-size: 1.05rem;
    color: var(--gg-text-secondary);
    line-height: 1.75;
    max-width: 580px;
    margin-bottom: 2rem;
}
.gg-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gg-border);
}
.gg-meta-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gg-text-muted);
    margin-bottom: 4px;
}
.gg-meta-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gg-text);
}

/* Image holders */
.img-holder {
    position: relative;
    width: 100%;
    background: var(--gg-card);
    border: 1.5px dashed rgba(245,197,24,0.45);
    border-radius: var(--gg-radius);
    overflow: hidden;
    transition: border-color 0.3s;
}
.img-holder:hover { border-color: var(--gg-accent); }
.img-holder.ratio-16-9 { aspect-ratio: 16 / 9; }
.img-holder.ratio-4-3 { aspect-ratio: 4 / 3; }
.img-holder.ratio-3-4 { aspect-ratio: 3 / 4; }
.img-holder.ratio-1-1 { aspect-ratio: 1 / 1; }
.img-holder.ratio-21-9 { aspect-ratio: 21 / 9; }
.img-holder.ratio-2-3 { aspect-ratio: 2 / 3; }

.img-holder-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    z-index: 1;
}

.img-holder-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--gg-accent);
    border-style: solid;
    border-width: 0;
    z-index: 2;
}
.img-holder-corner.tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.img-holder-corner.tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.img-holder-corner.bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.img-holder-corner.br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }

.img-holder-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px;
    gap: 8px;
}
.img-holder-content > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--gg-radius-sm);
}
.img-holder-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gg-accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gg-accent);
    margin-bottom: 6px;
}
.img-holder-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gg-text-muted);
}
.img-holder-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem;
    color: var(--gg-text);
    line-height: 1.2;
    max-width: 90%;
}
.img-holder-dim {
    font-size: 0.65rem;
    color: var(--gg-text-muted);
    margin-top: 4px;
}

/* Dark variant for image holders on dark hero */
.img-holder-dark {
    background: rgba(255,255,255,0.04);
    border-color: rgba(245,197,24,0.4);
}
.img-holder-dark .img-holder-name { color: #f0ede6; }
.img-holder-dark .img-holder-icon { background: rgba(245,197,24,0.15); }

/* Sections */
.gg-section { padding: 100px 0; }
.gg-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gg-text-muted);
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.gg-section-label-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gg-bg-dark);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0;
}
[data-gg-theme="dark"] .gg-section-label-num { background: var(--gg-accent); color: #0f0f0f; }
.gg-section-title {
    font-family: 'DM Serif Display', serif !important;
    font-size: clamp(1.85rem, 3.2vw, 2.7rem);
    font-weight: 400;
    color: var(--gg-text);
    line-height: 1.18;
    letter-spacing: -0.01em;
}
.gg-section-desc {
    font-size: 0.95rem;
    color: var(--gg-text-secondary);
    line-height: 1.75;
    max-width: 600px;
}

/* Bullet lists */
.gg-bullets { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.gg-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--gg-text-secondary);
    line-height: 1.65;
    padding: 10px 0;
    border-bottom: 1px solid var(--gg-border);
}
.gg-bullets li:last-child { border-bottom: none; }
.gg-bullets li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gg-accent);
    margin-top: 8px;
}

/* Buttons */
.gg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.gg-btn-dark { background: var(--gg-bg-dark); color: #fff; }
.gg-btn-dark:hover { background: #333; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
[data-gg-theme="dark"] .gg-btn-dark { background: #fff; color: #0f0f0f; }
[data-gg-theme="dark"] .gg-btn-dark:hover { background: #e0e0e0; color: #0f0f0f; }
.gg-btn-outline { background: transparent; border: 1.5px solid var(--gg-border); color: var(--gg-text); }
.gg-btn-outline:hover { border-color: var(--gg-text); color: var(--gg-text); }
.gg-btn-arrow { font-size: 1rem; transition: transform 0.3s; }
.gg-btn:hover .gg-btn-arrow { transform: translateX(3px); }

/* Problem pillars */
.gg-pillar {
    background: var(--gg-card);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    padding: 36px 30px;
    transition: all 0.35s;
    height: 100%;
    box-shadow: var(--gg-shadow-sm);
    position: relative;
}
.gg-pillar:hover { box-shadow: var(--gg-shadow-lg); transform: translateY(-4px); border-color: var(--gg-accent); }
.gg-pillar-num {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--gg-bg);
    -webkit-text-stroke: 1px var(--gg-border);
    line-height: 1;
    margin-bottom: 1rem;
}
[data-gg-theme="dark"] .gg-pillar-num { color: var(--gg-card); -webkit-text-stroke: 1px var(--gg-border); }
.gg-pillar-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--gg-text);
    margin-bottom: 0.75rem;
}
.gg-pillar-text {
    font-size: 0.88rem;
    color: var(--gg-text-secondary);
    line-height: 1.7;
}

/* Solution feature grid */
.gg-feature {
    background: var(--gg-card);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    padding: 28px 24px;
    transition: all 0.35s;
    height: 100%;
    box-shadow: var(--gg-shadow-sm);
    position: relative;
    overflow: hidden;
}
.gg-feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gg-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.gg-feature:hover::before { transform: scaleX(1); }
.gg-feature:hover { box-shadow: var(--gg-shadow); transform: translateY(-3px); }
.gg-feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gg-accent-bg);
    border-radius: 12px;
    margin-bottom: 1rem;
    color: var(--gg-accent);
}
.gg-feature-title { font-size: 1rem; font-weight: 700; color: var(--gg-text); margin-bottom: 0.5rem; }
.gg-feature-text { font-size: 0.82rem; color: var(--gg-text-secondary); line-height: 1.65; }

/* Module block */
.gg-module {
    background: var(--gg-card);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    padding: 36px 32px;
    box-shadow: var(--gg-shadow-sm);
    transition: all 0.35s;
    height: 100%;
}
.gg-module:hover { box-shadow: var(--gg-shadow); border-color: var(--gg-accent); }
.gg-module-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--gg-accent-bg);
    border: 1px solid rgba(245,197,24,0.25);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gg-text);
    margin-bottom: 1rem;
}
[data-gg-theme="dark"] .gg-module-tag { color: var(--gg-accent); }
.gg-module-title {
    font-family: 'DM Serif Display', serif !important;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 400;
    color: var(--gg-text);
    line-height: 1.18;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}
.gg-module-brief {
    font-size: 0.88rem;
    color: var(--gg-text-secondary);
    line-height: 1.7;
    font-style: italic;
    padding-left: 14px;
    border-left: 3px solid var(--gg-accent);
    margin-bottom: 1.25rem;
}
.gg-module-desc {
    font-size: 0.92rem;
    color: var(--gg-text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}
.gg-module-feats { list-style: none; padding: 0; margin: 0 0 1rem; }
.gg-module-feats li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--gg-text-secondary);
    line-height: 1.6;
    border-bottom: 1px dashed var(--gg-border);
}
.gg-module-feats li:last-child { border-bottom: none; }
.gg-module-feats li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gg-accent);
    margin-top: 8px;
    flex-shrink: 0;
}
.gg-module-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}
.gg-module-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--gg-bg);
    border: 1px solid var(--gg-border);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gg-text-secondary);
}
.gg-module-stat::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gg-accent);
}
@media (max-width: 767px) {
    .gg-module { padding: 26px 22px; }
}

/* Quote */
.gg-quote-wrap {
    padding: 80px 0;
    background: var(--gg-bg-white);
}
.gg-quote {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}
.gg-quote-mark {
    font-family: 'DM Serif Display', serif;
    font-size: 5rem;
    color: var(--gg-accent);
    line-height: 1;
    margin-bottom: 1rem;
}
.gg-quote-text {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 400;
    color: var(--gg-text);
    line-height: 1.4;
    font-style: italic;
    margin-bottom: 2rem;
}
.gg-quote-author { font-size: 0.85rem; font-weight: 700; color: var(--gg-text); }
.gg-quote-role { font-size: 0.78rem; color: var(--gg-text-muted); }

/* Implementation steps */
.gg-step {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 30px 0;
    border-bottom: 1px solid var(--gg-border);
}
.gg-step:last-child { border-bottom: none; }
.gg-step-num {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gg-bg-dark);
    color: #fff;
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    border-radius: 50%;
    flex-shrink: 0;
}
[data-gg-theme="dark"] .gg-step-num { background: var(--gg-accent); color: #0f0f0f; }
.gg-step-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--gg-text);
    margin-bottom: 0.4rem;
}
.gg-step-text { font-size: 0.88rem; color: var(--gg-text-secondary); line-height: 1.7; }
.gg-step-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gg-step-tag {
    display: inline-flex;
    padding: 4px 11px;
    background: var(--gg-purple-bg);
    border-radius: 100px;
    font-size: 0.67rem;
    font-weight: 600;
    color: var(--gg-purple);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Stat bar */
.gg-stat-bar {
    background: var(--gg-bg-dark);
    border-radius: var(--gg-radius);
    padding: 50px 36px;
    color: #fff;
}
[data-gg-theme="dark"] .gg-stat-bar { background: #1a1a1a; border: 1px solid var(--gg-border); }
.gg-stat-item { text-align: center; }
.gg-stat-val {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--gg-accent);
    line-height: 1;
    margin-bottom: 6px;
}
.gg-stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.04em;
}

/* CTA */
.gg-cta-wrap {
    padding: 100px 0;
    background: var(--gg-bg-dark);
    color: #fff;
    text-align: center;
}
[data-gg-theme="dark"] .gg-cta-wrap { background: #060606; }
.gg-cta-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.gg-cta-text { color: rgba(255,255,255,0.65); max-width: 540px; margin: 0 auto 2rem; line-height: 1.7; }
.gg-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--gg-accent);
    color: #0f0f0f;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.gg-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245,197,24,0.3); color: #0f0f0f; }

/* Footer */
.gg-footer {
    background: #060606;
    padding: 60px 0 28px;
}
.gg-footer-brand {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: #fff;
}
.gg-footer-text { font-size: 0.8rem; color: rgba(255,255,255,0.4); line-height: 1.6; }
.gg-footer-heading { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.gg-footer-link { display: block; color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.82rem; padding: 3px 0; transition: color 0.3s; }
.gg-footer-link:hover { color: var(--gg-accent); }
.gg-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; margin-top: 40px; }
.gg-footer-copy { font-size: 0.7rem; color: rgba(255,255,255,0.3); }
.gg-footer-copy a { color: var(--gg-accent); text-decoration: none; }

/* Animations */
.gg-fade { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.gg-fade.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 767px) {
    .gg-cs-hero { padding: 110px 0 50px; }
    .gg-section { padding: 60px 0; }
    .gg-meta-grid { grid-template-columns: 1fr; }
    .gg-stat-bar { padding: 36px 20px; }
    .gg-quote-wrap { padding: 50px 0; }
}

/* ========================================================== */
/* ========== CASE STUDY CARDS — CLICKABLE EXTENSIONS ========= */
/* ========================================================== */
.gg-module-title-link {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(var(--gg-accent), var(--gg-accent));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.4s ease, color 0.3s ease;
}
.gg-module-title-link:hover {
    color: var(--gg-text);
    background-size: 100% 2px;
}
.gg-module-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
    padding: 12px 22px;
    border: 1px solid var(--gg-border);
    color: var(--gg-text);
    background: transparent;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    border-radius: 100px;
    transition: all 0.3s ease;
}
.gg-module-cta span { transition: transform 0.3s ease; }
.gg-module-cta:hover {
    background: var(--gg-accent);
    border-color: var(--gg-accent);
    color: #0f0f0f;
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(245,197,24,0.25);
}
.gg-module-cta:hover span { transform: translateX(3px); }
.gg-module-img-link {
    display: block;
    text-decoration: none;
    position: relative;
}
.gg-module-img { position: relative; overflow: hidden; }
.gg-module-img img { transition: transform 0.6s ease; }
.gg-module-img-link:hover .gg-module-img img { transform: scale(1.04); }
.gg-module-img-link:hover .gg-module-img { border-color: var(--gg-accent); }
.gg-module-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,15,15,0) 45%, rgba(15,15,15,0.85) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 22px 26px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
    pointer-events: none;
    color: var(--gg-accent);
}
.gg-module-img-link:hover .gg-module-img-overlay { opacity: 1; }
.gg-module-img-overlay-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gg-accent);
    font-weight: 700;
}
.gg-module-img-overlay span:not(.gg-module-img-overlay-label) {
    color: var(--gg-accent);
    font-size: 1.2rem;
}

/* ========================================================== */
/* ========== CASE STUDY DETAIL — BREADCRUMB         ========== */
/* ========================================================== */
.gg-mod-breadcrumb {
    padding: 130px 0 0;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gg-text-muted);
    font-weight: 600;
}
.gg-mod-breadcrumb a {
    color: var(--gg-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}
.gg-mod-breadcrumb a:hover { color: var(--gg-accent); }
.gg-mod-breadcrumb .sep { margin: 0 12px; color: var(--gg-border); }
.gg-mod-breadcrumb .current { color: var(--gg-text); }

/* ========================================================== */
/* ========== CASE STUDY DETAIL — CAROUSEL HERO      ========== */
/* ========================================================== */
.gg-cs-carousel-section {
    padding: 40px 0 100px;
    position: relative;
    overflow: hidden;
}
.gg-cs-carousel-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(245,197,24,0.12) 0%, rgba(245,197,24,0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.gg-cs-carousel-head {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}
.gg-cs-carousel-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--gg-text);
    line-height: 1.1;
    margin: 0.5rem 0 0.75rem;
}
.gg-cs-carousel-tagline {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--gg-accent);
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.gg-cs-carousel-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 1.75rem;
}
.gg-mod-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--gg-border);
    background: var(--gg-card);
    font-size: 0.7rem;
    color: var(--gg-text-secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 100px;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.gg-mod-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gg-accent);
    flex-shrink: 0;
}
.gg-mod-badge:hover { border-color: var(--gg-accent); color: var(--gg-text); }
.gg-cs-carousel { position: relative; padding: 0; z-index: 1; }
.gg-cs-swiper {
    position: relative;
    border: 1px solid var(--gg-border);
    background: var(--gg-bg-white);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 720px;
    border-radius: var(--gg-radius);
}
.gg-cs-swiper:hover { border-color: var(--gg-accent); }
.gg-cs-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gg-cs-slide img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    object-position: top center;
    display: block;
}
.gg-cs-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 60px;
    background: linear-gradient(180deg, rgba(15,15,15,0) 0%, rgba(15,15,15,0.88) 70%);
    z-index: 2;
}
.gg-cs-slide-caption-eyebrow {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gg-accent);
    font-weight: 700;
    margin-bottom: 8px;
}
.gg-cs-slide-caption-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
}
.gg-cs-swiper .swiper-button-prev,
.gg-cs-swiper .swiper-button-next {
    width: 52px;
    height: 52px;
    background: rgba(15,15,15,0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245,197,24,0.35);
    color: var(--gg-accent);
    border-radius: 50%;
    transition: all 0.3s ease;
    top: 50%;
    margin-top: -26px;
}
.gg-cs-swiper .swiper-button-prev::after,
.gg-cs-swiper .swiper-button-next::after { content: none; }
.gg-cs-swiper .swiper-button-prev svg,
.gg-cs-swiper .swiper-button-next svg {
    width: 20px;
    height: 20px;
    stroke: var(--gg-accent);
    fill: none;
}
.gg-cs-swiper .swiper-button-prev { left: 24px; }
.gg-cs-swiper .swiper-button-next { right: 24px; }
.gg-cs-swiper .swiper-button-prev:hover,
.gg-cs-swiper .swiper-button-next:hover {
    background: var(--gg-accent);
    border-color: var(--gg-accent);
}
.gg-cs-swiper .swiper-button-prev:hover svg,
.gg-cs-swiper .swiper-button-next:hover svg { stroke: #0f0f0f; }
.gg-cs-swiper .swiper-pagination {
    bottom: 22px;
    z-index: 4;
}
.gg-cs-swiper .swiper-pagination-bullet {
    width: 28px;
    height: 3px;
    background: rgba(255,255,255,0.45);
    border-radius: 100px;
    opacity: 1;
    margin: 0 4px !important;
    transition: background 0.3s ease, width 0.3s ease;
}
.gg-cs-swiper .swiper-pagination-bullet-active {
    background: var(--gg-accent);
    width: 48px;
}
@media (max-width: 991px) {
    .gg-cs-swiper { aspect-ratio: 16 / 10; }
    .gg-cs-slide-caption { padding: 28px 24px; }
    .gg-cs-swiper .swiper-button-prev { left: 12px; }
    .gg-cs-swiper .swiper-button-next { right: 12px; }
    .gg-cs-swiper .swiper-button-prev,
    .gg-cs-swiper .swiper-button-next { width: 42px; height: 42px; margin-top: -21px; }
}
@media (max-width: 575px) {
    .gg-cs-swiper { aspect-ratio: 4 / 3; }
    .gg-cs-slide-caption { padding: 18px 16px; }
    .gg-cs-swiper .swiper-pagination-bullet { width: 18px; }
    .gg-cs-swiper .swiper-pagination-bullet-active { width: 32px; }
}

/* ========================================================== */
/* ========== CASE STUDY DETAIL — SECTION BREAKDOWN  ========== */
/* ========================================================== */
.gg-cs-breakdown {
    padding: 100px 0;
    background: var(--gg-bg-white);
    border-top: 1px solid var(--gg-border);
    border-bottom: 1px solid var(--gg-border);
}
.gg-cs-breakdown-head { margin-bottom: 70px; }
.gg-cs-breakdown-row {
    margin-bottom: 90px;
    padding-bottom: 90px;
    border-bottom: 1px solid var(--gg-border);
}
.gg-cs-breakdown-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.gg-cs-breakdown-img {
    position: relative;
    background: var(--gg-bg);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    overflow: hidden;
    aspect-ratio: 16 / 11;
    transition: border-color 0.4s ease;
}
.gg-cs-breakdown-img:hover { border-color: var(--gg-accent); }
.gg-cs-breakdown-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.8s ease;
}
.gg-cs-breakdown-img:hover img { transform: scale(1.03); }
.gg-cs-breakdown-img-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    padding: 8px 16px;
    background: rgba(15,15,15,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245,197,24,0.35);
    font-family: 'DM Serif Display', serif;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    color: var(--gg-accent);
    font-weight: 400;
    border-radius: 100px;
}
.gg-cs-breakdown-body { padding: 0; }
.gg-cs-breakdown-num {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gg-accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.gg-cs-breakdown-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    font-weight: 400;
    color: var(--gg-text);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.gg-cs-breakdown-text {
    font-size: 0.98rem;
    line-height: 1.85;
    font-weight: 400;
    color: var(--gg-text-secondary);
    margin: 1.25rem 0 1.5rem;
}
.gg-cs-breakdown-feats {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gg-cs-breakdown-feats li {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    font-size: 0.9rem;
    color: var(--gg-text);
    line-height: 1.6;
    font-weight: 500;
    border-bottom: 1px solid var(--gg-border);
}
.gg-cs-breakdown-feats li:last-child { border-bottom: none; }
.gg-cs-breakdown-feats li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gg-accent);
    margin-top: 8px;
}
@media (max-width: 991px) {
    .gg-cs-breakdown { padding: 70px 0; }
    .gg-cs-breakdown-row { margin-bottom: 60px; padding-bottom: 60px; }
    .gg-cs-breakdown-body { padding: 24px 0 0; }
}

/* ========================================================== */
/* ========== CASE STUDY DETAIL — PREV / NEXT NAV    ========== */
/* ========================================================== */
.gg-mod-nav {
    background: var(--gg-bg);
    padding: 80px 0;
    border-top: 1px solid var(--gg-border);
}
.gg-mod-nav-card {
    display: block;
    padding: 32px 36px;
    background: var(--gg-card);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    text-decoration: none;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.gg-mod-nav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gg-accent-bg) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.gg-mod-nav-card:hover {
    border-color: var(--gg-accent);
    transform: translateY(-3px);
    box-shadow: var(--gg-shadow-lg);
}
.gg-mod-nav-card:hover::before { opacity: 1; }
.gg-mod-nav-card.disabled {
    opacity: 0.45;
    pointer-events: none;
}
.gg-mod-nav-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gg-accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}
.gg-mod-nav-card.next { text-align: right; }
.gg-mod-nav-card.next .gg-mod-nav-label { justify-content: flex-end; }
.gg-mod-nav-num {
    font-size: 0.78rem;
    color: var(--gg-text-muted);
    font-weight: 600;
    margin-bottom: 0.4rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.gg-mod-nav-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.05rem, 1.7vw, 1.4rem);
    font-weight: 400;
    color: var(--gg-text);
    line-height: 1.3;
}
.gg-mod-nav-back {
    text-align: center;
    display: block;
    padding: 28px 36px;
    background: transparent;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    text-decoration: none;
    height: 100%;
    transition: all 0.4s ease;
}
.gg-mod-nav-back:hover {
    border-color: var(--gg-accent);
    background: var(--gg-card);
    box-shadow: var(--gg-shadow);
}
.gg-mod-nav-back .gg-mod-nav-label { margin-bottom: 0.4rem; justify-content: center; }
.gg-mod-nav-back .gg-mod-nav-title { font-size: 1.05rem; }

/* ========================================================== */
/* ========== CASE STUDY DETAIL — CHIP STRIP         ========== */
/* ========================================================== */
.gg-mod-strip {
    padding: 80px 0 100px;
    background: var(--gg-bg);
}
.gg-mod-strip-head { text-align: center; margin-bottom: 50px; }
.gg-mod-chip {
    display: block;
    padding: 22px 22px;
    background: var(--gg-card);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}
.gg-mod-chip:hover {
    border-color: var(--gg-accent);
    transform: translateY(-2px);
    box-shadow: var(--gg-shadow);
}
.gg-mod-chip.active {
    border-color: var(--gg-accent);
    background: linear-gradient(135deg, var(--gg-accent-bg) 0%, var(--gg-card) 100%);
}
.gg-mod-chip-num {
    font-size: 0.78rem;
    color: var(--gg-accent);
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.gg-mod-chip-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem;
    color: var(--gg-text);
    font-weight: 400;
    line-height: 1.3;
}

/* CTA outline button (case-study detail page) */
.gg-cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: var(--gg-text);
    border: 1px solid var(--gg-border);
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 12px;
    transition: all 0.3s;
}
.gg-cta-btn-outline:hover { border-color: var(--gg-accent); color: var(--gg-accent); transform: translateY(-2px); }

@media (max-width: 767px) {
    .gg-mod-breadcrumb { padding-top: 100px; font-size: 0.65rem; letter-spacing: 0.18em; }
    .gg-mod-nav { padding: 60px 0; }
    .gg-mod-nav-card { padding: 26px 22px; }
    .gg-mod-nav-card.next { text-align: left; }
    .gg-mod-nav-card.next .gg-mod-nav-label { justify-content: flex-start; }
    .gg-mod-strip { padding: 60px 0 80px; }
    .gg-cta-btn-outline { margin-left: 0; margin-top: 12px; }
}

/* ========== STRUCTURAL UTILITIES (Biry-parity) ========== */
.gg-section-sm { padding: 60px 0; }

.cs-divider {
    width: 60px;
    height: 1px;
    background: var(--gg-accent);
    margin-top: 18px;
    margin-bottom: 6px;
}
.cs-divider-center { margin-left: auto; margin-right: auto; }

.cs-footer-credit {
    text-align: center;
    padding: 36px 16px;
    border-top: 1px solid var(--gg-border);
}
.cs-footer-credit p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gg-text-muted);
    letter-spacing: 0.04em;
}

/* Page + shared header background follow this project's theme (override global .bg-neutral-50) */
html, body { background-color: var(--gg-bg) !important; }
header.bg-neutral-50 { background-color: var(--gg-bg) !important; }
html:has(.gg-page[data-gg-theme="dark"]),
body:has(.gg-page[data-gg-theme="dark"]) { background-color: var(--gg-bg-dark) !important; }
header.bg-neutral-50:has(~ main .gg-page[data-gg-theme="dark"]) { background-color: var(--gg-bg-dark) !important; }
