/* =====================================================================
   GBD ENHANCE: mobile hero fix, motion layer, hover states and the
   components used by area pages, case studies and the blog.
   Theme tokens come from main.css (--at-neutral-*), so light and dark
   mode both work.
   ===================================================================== */
:root {
    --gbd-red: #c7260a;
    --gbd-red-deep: #800b01;
    --gbd-orange: #ee8032;
    --gbd-flame: #f0460e;
    --gbd-ink: var(--at-neutral-950, #0b0b0b);
    --gbd-bg: var(--at-neutral-0, #fff);
    --gbd-bg-alt: var(--at-neutral-50, #f5f5f5);
    --gbd-line: rgba(128, 128, 128, .24);
    --gbd-muted: var(--at-neutral-700, #555);
    --gbd-ease: cubic-bezier(.19, 1, .22, 1);
    --gbd-radius: 22px;
}

/* ---------------------------------------------------------------
   1. MOBILE HERO: image sits on the colour split, never floats
   --------------------------------------------------------------- */
@media (max-width: 991.98px) {
    /* the image block carries the red, everything after it sits on the dark band: no JS measuring needed */
    .sec-1-home-7 .sec-1-home-7__bg { display: flex !important; flex-direction: column !important; }
    .sec-1-home-7 .sec-1-home-7__bg-left { flex: 0 0 0px !important; }
    .sec-1-home-7 .sec-1-home-7__bg-right { flex: 1 1 auto !important; }
    .sec-1-home-7 .sec-1-home-7__img-wrap {
        align-items: flex-end !important; padding-bottom: 0 !important; margin-bottom: 0 !important;
        min-height: 0 !important; line-height: 0 !important; background: #c7260a !important;
    }
    .sec-1-home-7 .sec-1-home-7__img-wrap picture { display: block; width: 100%; line-height: 0; }
    .sec-1-home-7 .sec-1-home-7__img-wrap .anim-zoomin-wrap,
    .sec-1-home-7 .sec-1-home-7__img-wrap .anim-zoomin {
        display: flex !important; justify-content: center !important; align-items: flex-end !important;
        width: 100% !important; line-height: 0 !important; transform-origin: 50% 100% !important;
    }
    .sec-1-home-7 .sec-1-home-7__img {
        vertical-align: bottom !important; margin: 0 auto !important; display: block !important;
        width: min(92vw, 470px) !important; max-width: 100% !important; height: auto !important; max-height: none !important;
        object-fit: contain !important; object-position: center bottom !important; transform-origin: 50% 100% !important;
    }
    /* copy starts on the darker band, with breathing room */
    .sec-1-home-7 .sec-1-home-7__left { padding-top: 26px !important; }
    .sec-1-home-7 .sec-1-home-7__coords { margin-top: 0 !important; }
    .sec-1-home-7 .sec-1-home-7__tags { margin-top: 6px !important; }
}
@media (max-width: 575.98px) {
    .sec-1-home-7 .sec-1-home-7__img { width: 94vw !important; }
    .sec-1-home-7 .sec-1-home-7__img-wrap { padding-top: 92px !important; }
}

/* homepage project titles: one line, so the template's hover shadow never overlaps a second line */
.mg-portfolio-content .cs-portfolio-title { white-space: nowrap; overflow: hidden; font-size: clamp(20px, 2.6vw, 40px) !important; line-height: 1.15 !important; max-width: 100%; }
.mg-portfolio-content .cs-portfolio-title .at-title-text { white-space: nowrap; }

/* blog cards on service pages: keep the 2:1 artwork whole */
.blog-card-2__thumb { aspect-ratio: 2 / 1; height: auto !important; overflow: hidden; border-radius: 14px; }
.blog-card-2__thumb a, .blog-card-2__img-link { display: block; width: 100%; height: 100%; }
.blog-card-2__img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center !important; }
.blog-card__thumb { aspect-ratio: 2 / 1; height: auto !important; }
.blog-card__thumb img, .blog-card__img22 { object-fit: cover; object-position: center; }

/* ---------------------------------------------------------------
   2. PAGE TRANSITION CURTAIN + PROGRESS
   --------------------------------------------------------------- */
html.gbd-t body { background: #0b0b0b; }
html.gbd-t #smooth-wrapper, html.gbd-t .gx-wrap, html.gbd-t header { visibility: hidden; animation: gbdFailsafe 0s linear 2.5s forwards; }
@keyframes gbdFailsafe { to { visibility: visible; } }
.gbd-curtain { position: fixed; inset: 0; z-index: 100000; pointer-events: none; }
.gbd-curtain__panel { position: absolute; inset: 0; transform: scaleY(0); transform-origin: 50% 0; }
.gbd-curtain__panel--1 { background: var(--gbd-red); }
.gbd-curtain__panel--2 { background: #0b0b0b; }
.gbd-curtain__logo {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #fff; opacity: 0;
    font-weight: 800; letter-spacing: .28em; font-size: clamp(14px, 2vw, 20px); white-space: nowrap;
}
.gbd-curtain__logo em { font-style: normal; color: var(--gbd-red); }
.gbd-curtain.is-active .gbd-curtain__panel { transform: scaleY(1); }
.gbd-curtain.is-active .gbd-curtain__logo { opacity: 1; }
.gbd-curtain.is-leaving .gbd-curtain__panel { transform: scaleY(0); transform-origin: 50% 0; transition: transform .9s var(--gbd-ease); }
.gbd-curtain.is-leaving .gbd-curtain__panel--1 { transition-delay: .12s; }
.gbd-curtain.is-leaving .gbd-curtain__logo { opacity: 0; transition: opacity .3s ease; }
.gbd-curtain.is-entering { pointer-events: all; }
.gbd-curtain.is-entering .gbd-curtain__panel { transform: scaleY(1); transform-origin: 50% 100%; transition: transform .6s var(--gbd-ease); }
.gbd-curtain.is-entering .gbd-curtain__panel--2 { transition-delay: .08s; }
.gbd-curtain.is-entering .gbd-curtain__logo { opacity: 1; transition: opacity .3s ease .25s; }

.gbd-progress {
    position: fixed; left: 0; top: 0; width: 100%; height: 3px; z-index: 99990;
    background: linear-gradient(90deg, var(--gbd-flame), var(--gbd-orange));
    transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}

.gbd-line-mask { display: block; overflow: hidden; padding: .04em 0 .16em; margin: -.04em 0 -.16em; }
.gbd-line { display: block; }

/* cursor preview */
.gbd-preview {
    position: fixed; left: 0; top: 0; width: 260px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
    z-index: 9000; pointer-events: none; opacity: 0; transform: scale(.6); transition: opacity .3s ease, scale .4s var(--gbd-ease);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.gbd-preview.is-on { opacity: 1; scale: 1.66; }
.gbd-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------------
   3. GLOBAL HOVER + TRANSITION POLISH (applies site wide)
   --------------------------------------------------------------- */
.blog-card__thumb img, .blog-card-2__img, .alt-portfolio-thumb img, .gbd-zoom img {
    transition: transform 1.1s var(--gbd-ease), filter .6s ease;
}
.blog-card:hover .blog-card__thumb img, .blog-card-2:hover .blog-card-2__img,
.alt-portfolio-item:hover .alt-portfolio-thumb img, .gbd-zoom:hover img { transform: scale(1.07); }
.blog-card__title-link, .blog-card-2__title-link, .gbd-link {
    background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1.5px;
    background-repeat: no-repeat; background-position: 0 100%; transition: background-size .6s var(--gbd-ease);
    text-decoration: none;
}
.blog-card:hover .blog-card__title-link, .blog-card-2:hover .blog-card-2__title-link, .gbd-link:hover { background-size: 100% 1.5px; }
.sec-1-home-7__tag { transition: background-color .35s ease, color .35s ease, transform .35s var(--gbd-ease); }
.sec-1-home-7__tag:hover { transform: translateY(-3px); }
.sec-1-blog-details .content a:not(.at-btn) {
    color: var(--gbd-flame); text-decoration: none; background-image: linear-gradient(currentColor, currentColor);
    background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--gbd-ease);
}
.sec-1-blog-details .content a:not(.at-btn):hover { background-size: 0% 1px; background-position: 100% 100%; }

/* ---------------------------------------------------------------
   4. SHARED BUILDING BLOCKS
   --------------------------------------------------------------- */
.gbd-section { padding: 120px 0; position: relative; }
.gbd-section--tight { padding: 80px 0; }
.gbd-section--alt { background: var(--gbd-bg-alt); }
.gbd-round { border-radius: 40px; margin-left: 16px; margin-right: 16px; }
@media (max-width: 991.98px) { .gbd-section { padding: 72px 0; } .gbd-round { border-radius: 26px; margin-left: 8px; margin-right: 8px; } }

.gbd-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; margin: 0 0 22px; color: var(--gbd-ink);
}
.gbd-eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--gbd-flame); }
.gbd-display {
    font-size: clamp(2.2rem, 5.4vw, 5.2rem) !important; line-height: 1.02 !important; font-weight: 600;
    letter-spacing: -.02em; margin: 0 0 28px;
}
.gbd-display em { font-style: normal; color: var(--gbd-flame); }
.gbd-title { font-size: clamp(1.8rem, 3.4vw, 3.1rem) !important; line-height: 1.1 !important; font-weight: 600; letter-spacing: -.015em; margin: 0 0 22px; }
.gbd-lead { font-size: 1.2rem !important; line-height: 1.7 !important; color: var(--gbd-ink); }
.gbd-copy p { color: var(--gbd-ink); }
.gbd-copy a { color: var(--gbd-flame); }

.gbd-btn {
    display: inline-flex; align-items: center; gap: 12px; padding: 18px 30px; border-radius: 999px; background: var(--gbd-ink);
    color: var(--gbd-bg) !important; font-weight: 600; text-decoration: none; position: relative; overflow: hidden; isolation: isolate;
    transition: color .4s ease;
}
.gbd-btn::before {
    content: ""; position: absolute; inset: 0; background: var(--gbd-flame); transform: translateY(101%); border-radius: inherit;
    transition: transform .55s var(--gbd-ease); z-index: -1;
}
.gbd-btn:hover::before { transform: translateY(0); }
.gbd-btn:hover { color: #fff !important; }
.gbd-btn svg { transition: transform .45s var(--gbd-ease); }
.gbd-btn:hover svg { transform: translateX(4px) rotate(-45deg); }
.gbd-btn--light { background: #fff; color: #0b0b0b !important; }
.gbd-btn--ghost { background: transparent; color: var(--gbd-ink) !important; border: 1.5px solid var(--gbd-line); }

/* the template's .container is fluid at large sizes; new sections use a fixed reading column */
.gbd-section .container, .gbd-section--tight .container, .gbd-blog-hero .container, .gbd-cs-hero .container,
.gbd-crumbs.container, .gbd-next.container, main > .container, .gbd-blog-hero + section .container, section.pb-100 > .container {
    max-width: 1320px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; width: 100%;
}
@media (max-width: 575.98px) {
    .gbd-section .container, .gbd-section--tight .container, .gbd-blog-hero .container, .gbd-cs-hero .container,
    .gbd-crumbs.container, .gbd-next.container, main > .container, section.pb-100 > .container { padding-left: 18px; padding-right: 18px; }
}

/* breadcrumbs */
.gbd-crumbs { padding-top: 26px; }
.gbd-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; }
.gbd-crumbs li { display: inline-flex; align-items: center; gap: 10px; color: var(--gbd-muted); }
.gbd-crumbs li + li::before { content: "/"; opacity: .5; }
.gbd-crumbs a { color: var(--gbd-ink); text-decoration: none; }
.gbd-crumbs a:hover { color: var(--gbd-flame); }

/* marquee */
.gbd-marquee { overflow: hidden; white-space: nowrap; padding: 34px 0; border-top: 1px solid var(--gbd-line); border-bottom: 1px solid var(--gbd-line); }
.gbd-marquee__track { display: inline-flex; gap: 0; will-change: transform; }
.gbd-marquee__item {
    display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; font-size: clamp(2.4rem, 6vw, 5.5rem);
    font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: -.02em;
}
.gbd-marquee__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1.4px var(--gbd-ink); }
.gbd-marquee__item::after { content: ""; width: .42em; height: .42em; background: var(--gbd-flame); border-radius: 50%; display: inline-block; }

/* media frame */
.gbd-media { border-radius: var(--gbd-radius); overflow: hidden; position: relative; background: var(--gbd-bg-alt); }
.gbd-media img { display: block; width: 100%; height: auto; }
.gbd-media--tall img { height: 120%; object-fit: cover; }

/* service cards */
.gbd-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 991.98px) { .gbd-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .gbd-card-grid { grid-template-columns: 1fr; } }
.gbd-tilt {
    --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--gbd-ease), box-shadow .5s ease;
    transform-style: preserve-3d; position: relative;
}
.gbd-tilt::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s ease;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .18), transparent 45%);
}
.gbd-tilt:hover::after { opacity: 1; }
.gbd-card {
    border: 1px solid var(--gbd-line); border-radius: var(--gbd-radius); padding: 34px 30px 30px; background: var(--gbd-bg);
    display: flex; flex-direction: column; gap: 14px; min-height: 100%; overflow: hidden;
}
.gbd-card:hover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.gbd-card__num { font-size: 13px; font-weight: 700; color: var(--gbd-flame); letter-spacing: .1em; }
.gbd-card__title { font-size: 1.45rem !important; line-height: 1.25 !important; font-weight: 600; margin: 0; }
.gbd-card__text { margin: 0; color: var(--gbd-muted); font-size: 1rem !important; }
.gbd-card__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--gbd-bg-alt); transition: background .4s ease, color .4s ease, transform .6s var(--gbd-ease); }
.gbd-card:hover .gbd-card__icon { background: var(--gbd-flame); color: #fff; transform: rotate(-8deg) scale(1.06); }
.gbd-card__icon svg { width: 24px; height: 24px; }

/* horizontal industries */
.gbd-hscroll { overflow: hidden; }
.gbd-hscroll__track { display: flex; gap: 22px; padding: 0 24px; will-change: transform; }
.gbd-ind {
    flex: 0 0 min(420px, 82vw); border-radius: 28px; padding: 38px 34px; min-height: 380px; display: flex; flex-direction: column;
    justify-content: space-between; color: #fff; position: relative; overflow: hidden; background: #111;
}
.gbd-ind:nth-child(3n+1) { background: var(--gbd-red); }
.gbd-ind:nth-child(3n+2) { background: #151515; }
.gbd-ind:nth-child(3n) { background: var(--gbd-red-deep); }
.gbd-ind__n { font-size: 5.5rem; font-weight: 700; line-height: .9; opacity: .18; }
.gbd-ind__title { font-size: 1.7rem !important; line-height: 1.15 !important; font-weight: 600; margin: 0 0 12px; color: #fff; }
.gbd-ind__text { margin: 0; color: rgba(255, 255, 255, .85); font-size: 1.02rem !important; }
.gbd-ind::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); transition: transform 1s var(--gbd-ease); }
.gbd-ind:hover::before { transform: scale(1.6); }
@media (max-width: 991.98px) { .gbd-hscroll__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; } .gbd-ind { scroll-snap-align: start; min-height: 300px; } }

/* idea rows */
.gbd-rows { border-top: 1px solid var(--gbd-line); }
.gbd-row {
    display: grid; grid-template-columns: 90px 1fr 60px; align-items: center; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--gbd-line);
    position: relative; overflow: hidden; color: var(--gbd-ink); text-decoration: none;
}
.gbd-row::before { content: ""; position: absolute; inset: 0; background: var(--gbd-flame); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--gbd-ease); z-index: 0; }
.gbd-row:hover::before { transform: scaleY(1); }
.gbd-row > * { position: relative; z-index: 1; transition: color .4s ease, transform .6s var(--gbd-ease); }
.gbd-row:hover > * { color: #fff; }
.gbd-row:hover .gbd-row__text { transform: translateX(14px); }
.gbd-row__n { font-weight: 700; color: var(--gbd-flame); }
.gbd-row__text { font-size: clamp(1.25rem, 2.4vw, 2rem) !important; line-height: 1.2 !important; font-weight: 500; margin: 0; }
.gbd-row__arrow { justify-self: end; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; }
.gbd-row:hover .gbd-row__arrow { transform: rotate(45deg); }
@media (max-width: 575.98px) { .gbd-row { grid-template-columns: 44px 1fr; } .gbd-row__arrow { display: none; } }

/* process */
.gbd-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--gbd-line); }
.gbd-step { padding: 34px 26px 10px 0; border-right: 1px solid var(--gbd-line); margin-right: 26px; }
.gbd-step:last-child { border-right: 0; }
.gbd-step__n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gbd-ink); color: var(--gbd-bg); font-weight: 700; margin-bottom: 22px; }
.gbd-step__title { font-size: 1.3rem !important; font-weight: 600; margin: 0 0 10px; }
.gbd-step__text { color: var(--gbd-muted); margin: 0; }
@media (max-width: 991.98px) { .gbd-steps { grid-template-columns: 1fr 1fr; } .gbd-step { border-right: 0; margin-right: 0; padding-right: 0; } }
@media (max-width: 575.98px) { .gbd-steps { grid-template-columns: 1fr; } }

/* stats */
.gbd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gbd-stat { padding: 30px 0; border-top: 2px solid var(--gbd-ink); }
.gbd-stat__v { font-size: clamp(2.6rem, 5vw, 4.4rem) !important; line-height: 1 !important; font-weight: 600; margin: 0 0 12px; letter-spacing: -.03em; }
.gbd-stat__l { margin: 0; color: var(--gbd-muted); }
@media (max-width: 767.98px) { .gbd-stats { grid-template-columns: 1fr 1fr; } }

/* area link grid */
.gbd-area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 991.98px) { .gbd-area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .gbd-area-grid { grid-template-columns: 1fr; } }
.gbd-area-card {
    display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 22px 22px 20px; border-radius: 18px;
    border: 1px solid var(--gbd-line); color: var(--gbd-ink); text-decoration: none; background: var(--gbd-bg);
    transition: background .45s ease, color .45s ease, border-color .45s ease, transform .6s var(--gbd-ease);
}
.gbd-area-card:hover { background: var(--gbd-ink); color: var(--gbd-bg); border-color: var(--gbd-ink); transform: translateY(-4px); }
.gbd-area-card__k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .65; margin: 0; }
.gbd-area-card__t { font-size: 1.12rem !important; font-weight: 600; line-height: 1.3 !important; margin: 0; }
.gbd-area-card__go { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: .8; }

/* pills */
.gbd-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gbd-chips li, .gbd-chips a {
    padding: 9px 16px; border-radius: 999px; border: 1px solid var(--gbd-line); font-size: 14px; color: var(--gbd-ink); text-decoration: none;
    transition: background .3s ease, color .3s ease;
}
.gbd-chips a:hover { background: var(--gbd-flame); border-color: var(--gbd-flame); color: #fff; }

/* FAQ list (details) */
.gbd-faq-list { border-top: 1px solid var(--gbd-line); }
.gbd-faq-list details { border-bottom: 1px solid var(--gbd-line); }
.gbd-faq-list summary {
    list-style: none; cursor: pointer; display: grid; grid-template-columns: 54px 1fr 40px; align-items: center; gap: 12px;
    padding: 26px 0; font-size: clamp(1.05rem, 1.6vw, 1.32rem); font-weight: 600; line-height: 1.35;
}
.gbd-faq-list summary::-webkit-details-marker { display: none; }
.gbd-faq-list summary .n { color: var(--gbd-flame); font-size: 14px; font-weight: 700; }
.gbd-faq-list summary .pm { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gbd-line); position: relative; transition: background .35s ease, transform .5s var(--gbd-ease); }
.gbd-faq-list summary .pm::before, .gbd-faq-list summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); }
.gbd-faq-list summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--gbd-ease); }
.gbd-faq-list details[open] summary .pm { background: var(--gbd-flame); color: #fff; border-color: var(--gbd-flame); transform: rotate(180deg); }
.gbd-faq-list details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.gbd-faq-list .a { padding: 0 52px 26px 66px; }
.gbd-faq-list .a p { margin: 0; color: var(--gbd-muted); }
.gbd-faq-list details[open] .a { animation: gbdFaq .5s var(--gbd-ease); }
@keyframes gbdFaq { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) { .gbd-faq-list summary { grid-template-columns: 34px 1fr 36px; } .gbd-faq-list .a { padding: 0 0 22px 46px; } }

/* CTA band */
.gbd-cta {
    background: var(--gbd-red); color: #fff; border-radius: 40px; padding: 90px 60px; position: relative; overflow: hidden; isolation: isolate;
}
.gbd-cta::before {
    content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; right: -200px; top: -260px; z-index: -1;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%);
}
.gbd-cta::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); z-index: -1; }
.gbd-cta .gbd-display { color: #fff; }
.gbd-cta p { color: rgba(255, 255, 255, .9); }
@media (max-width: 767.98px) { .gbd-cta { padding: 56px 26px; border-radius: 26px; } }

/* case study cards */
.gbd-cs-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 26px; }
.gbd-cs-card { grid-column: span 6; text-decoration: none; color: var(--gbd-ink); display: block; }
.gbd-cs-card--wide { grid-column: span 12; }
.gbd-cs-card--third { grid-column: span 4; }
@media (max-width: 991.98px) { .gbd-cs-card, .gbd-cs-card--third { grid-column: span 12; } }
.gbd-cs-card__media { border-radius: 26px; overflow: hidden; position: relative; aspect-ratio: 16 / 11; background: #111; }
.gbd-cs-card--wide .gbd-cs-card__media { aspect-ratio: 21 / 9; }
.gbd-cs-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--gbd-ease), filter .6s ease; }
.gbd-cs-card:hover .gbd-cs-card__media img { transform: scale(1.06); }
.gbd-cs-card__badge {
    position: absolute; left: 20px; top: 20px; padding: 7px 14px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff;
    font-size: 12px; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.gbd-cs-card__view {
    position: absolute; right: 20px; bottom: 20px; width: 92px; height: 92px; border-radius: 50%; background: var(--gbd-flame); color: #fff;
    display: grid; place-items: center; font-size: 13px; font-weight: 600; transform: scale(0) rotate(-30deg); transition: transform .6s var(--gbd-ease);
}
.gbd-cs-card:hover .gbd-cs-card__view { transform: scale(1) rotate(0); }
.gbd-cs-card__meta { display: flex; justify-content: space-between; gap: 16px; padding: 20px 4px 0; align-items: baseline; }
.gbd-cs-card__name { font-size: 1.6rem !important; font-weight: 600; margin: 0; line-height: 1.2 !important; }
.gbd-cs-card__tags { font-size: 14px; color: var(--gbd-muted); margin: 0; text-align: right; }
.gbd-cs-card__sum { margin: 10px 4px 0; color: var(--gbd-muted); }

/* case study detail */
.gbd-cs-hero { padding: 170px 0 60px; }
.gbd-cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--gbd-line); margin-top: 50px; }
.gbd-cs-fact { padding: 22px 20px 0 0; }
.gbd-cs-fact__k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gbd-muted); margin: 0 0 8px; }
.gbd-cs-fact__v { font-weight: 600; margin: 0; }
@media (max-width: 767.98px) { .gbd-cs-facts { grid-template-columns: 1fr 1fr; row-gap: 20px; } }
.gbd-cs-shot { border-radius: 28px; overflow: hidden; display: block; width: 100%; height: auto; }
.gbd-cs-split { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: start; }
@media (max-width: 991.98px) { .gbd-cs-split { grid-template-columns: 1fr; gap: 26px; } }
.gbd-cs-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.gbd-cs-gallery > :first-child { grid-row: span 2; }
@media (max-width: 767.98px) { .gbd-cs-gallery { grid-template-columns: 1fr; } .gbd-cs-gallery > :first-child { grid-row: auto; } }
.gbd-phone { border-radius: 34px; overflow: hidden; border: 8px solid #111; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .5); background: #111; max-width: 340px; margin: 0 auto; }
.gbd-phone img { display: block; width: 100%; height: auto; }
.gbd-next { display: block; text-decoration: none; color: var(--gbd-ink); padding: 90px 0; border-top: 1px solid var(--gbd-line); text-align: center; }
.gbd-next__k { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gbd-muted); margin: 0 0 14px; }
.gbd-next__t { font-size: clamp(2.4rem, 7vw, 6.5rem) !important; line-height: 1 !important; font-weight: 700; margin: 0; transition: color .4s ease, letter-spacing .8s var(--gbd-ease); }
.gbd-next:hover .gbd-next__t { color: var(--gbd-flame); letter-spacing: .01em; }

/* blog list */
.gbd-blog-hero { padding: 170px 0 50px; }
.gbd-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }
.gbd-filters button {
    border: 1px solid var(--gbd-line); background: transparent; color: var(--gbd-ink); padding: 10px 18px; border-radius: 999px; font-size: 14px;
    transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.gbd-filters button:hover { border-color: var(--gbd-ink); }
.gbd-filters button.is-active { background: var(--gbd-ink); color: var(--gbd-bg); border-color: var(--gbd-ink); }
.gbd-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 26px; }
@media (max-width: 991.98px) { .gbd-blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .gbd-blog-grid { grid-template-columns: 1fr; } }
.gbd-post.is-hidden { display: none !important; }
#gbdBlogList:not(.js-ready) .gbd-post:nth-child(n+13) { display: none; }
.gbd-post__thumb { display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 2 / 1; }
.gbd-post__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--gbd-ease); }
.gbd-post:hover .gbd-post__thumb img { transform: scale(1.07); }
.gbd-post__cat { display: inline-block; margin: 18px 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gbd-flame); font-weight: 600; }
.gbd-post__title { font-size: 1.22rem !important; line-height: 1.35 !important; font-weight: 600; margin: 0 0 10px; }
.gbd-post__title a { color: var(--gbd-ink); }
.gbd-post__ex { color: var(--gbd-muted); margin: 0 0 10px; font-size: 1rem !important; }
.gbd-post__meta { font-size: 13px; color: var(--gbd-muted); margin: 0; }
.gbd-post--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
.gbd-post--feature .gbd-post__title { font-size: clamp(1.6rem, 3vw, 2.6rem) !important; line-height: 1.12 !important; }
@media (max-width: 991.98px) { .gbd-post--feature { grid-template-columns: 1fr; gap: 0; } }

/* footer areas row (added site wide) */
.gbd-footer-areas { border-top: 1px solid rgba(255, 255, 255, .15); padding: 34px 0 40px; }
.gbd-footer-areas .gbd-footer-label { margin-bottom: 16px; }
.gbd-footer-areas ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.gbd-footer-areas a { display: inline-block; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; color: #e9e9e9; font-size: 14px; text-decoration: none; transition: background .3s ease, color .3s ease; }
.gbd-footer-areas a:hover { background: #fff; color: #0b0b0b; }

/* area hub */
.gbd-hub-zone { margin-bottom: 70px; }
.gbd-hub-zone__t { font-size: 1.5rem !important; font-weight: 600; margin: 0 0 20px; display: flex; align-items: baseline; gap: 14px; }
.gbd-hub-zone__t span { font-size: 14px; color: var(--gbd-muted); font-weight: 400; }
.gbd-hub-area { border: 1px solid var(--gbd-line); border-radius: 20px; padding: 24px; background: var(--gbd-bg); transition: box-shadow .5s ease, transform .6s var(--gbd-ease); }
.gbd-hub-area:hover { box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .4); transform: translateY(-4px); }
.gbd-hub-area__name { font-size: 1.35rem !important; font-weight: 600; margin: 0 0 4px; }
.gbd-hub-area__tag { color: var(--gbd-muted); font-size: 14px; margin: 0 0 16px; }
.gbd-hub-area ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gbd-hub-area a { color: var(--gbd-ink); text-decoration: none; display: flex; justify-content: space-between; font-size: 15px; padding: 6px 0; border-bottom: 1px dashed var(--gbd-line); }
.gbd-hub-area a:hover { color: var(--gbd-flame); }

/* blog article extras */
.gbd-byline { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; font-size: 15px; color: var(--gbd-muted); }
.gbd-byline span + span::before { content: "·"; margin-right: 22px; opacity: .6; }
.gbd-toc { margin: 40px 0 10px; padding: 26px 30px; border-radius: 20px; background: var(--gbd-bg-alt); border: 1px solid var(--gbd-line); }
.gbd-toc__t { font-size: 13px !important; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin: 0 0 14px; color: var(--gbd-flame); }
.gbd-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 34px; }
.gbd-toc li { margin: 0 0 10px; break-inside: avoid; font-size: 15px; line-height: 1.45; }
.gbd-toc a { color: var(--gbd-ink); text-decoration: none; }
.gbd-toc a:hover { color: var(--gbd-flame); }
@media (max-width: 767.98px) { .gbd-toc ol { columns: 1; } }
.gbd-figcap { margin-top: 12px; font-size: 14px; color: var(--gbd-muted); text-align: center; }
.gbd-author { display: flex; gap: 20px; align-items: flex-start; margin: 60px 0 0; padding: 28px; border-radius: 22px; border: 1px solid var(--gbd-line); }
.gbd-author__mark { flex: 0 0 64px; height: 64px; border-radius: 50%; background: var(--gbd-red); color: #fff; display: grid; place-items: center; font-weight: 800; letter-spacing: .06em; }
.gbd-author__n { font-weight: 700; margin: 0 0 6px; }
.gbd-author__d { margin: 0; color: var(--gbd-muted); font-size: 1rem !important; }
.sec-1-blog-details .content p.h4[id], .gbd-section[id] { scroll-margin-top: 110px; }

/* optional visible SEO block (when HIDE_SEO_BLOCK is off) */
.gbd-seo-visible { padding: 40px 15px; font-size: 15px; color: var(--gbd-muted); }
.gbd-seo-visible h1, .gbd-seo-visible h2, .gbd-seo-visible h3 { font-size: 1.1rem !important; margin: 18px 0 6px; color: var(--gbd-ink); }

@media (prefers-reduced-motion: reduce) {
    .gbd-curtain { display: none; }
    .gbd-tilt { transform: none !important; }
}
