/* =====================================================================
   GBD-X: editorial layout system for area, case study, hub and blog pages.
   Native scroll + CSS sticky scenes (no smooth-scroll library).
   Brand: Go Beyond Driven red / black / white, DM Sans.
   ===================================================================== */
:root {
    --gx-red: #c7260a;
    --gx-deep: #800b01;
    --gx-flame: #f0460e;
    --gx-black: #0b0b0b;
    --gx-soft: #161616;
    --gx-white: #ffffff;
    --gx-paper: #f4f2ef;
    --gx-d2: rgba(255, 255, 255, .66);
    --gx-d3: rgba(255, 255, 255, .5);
    --gx-l2: rgba(11, 11, 11, .68);
    --gx-l3: rgba(11, 11, 11, .55);
    --gx-line-d: rgba(255, 255, 255, .14);
    --gx-line-l: rgba(11, 11, 11, .12);
    --gx-gutter: clamp(18px, 4vw, 64px);
    --gx-max: 1440px;
    --gx-ease: cubic-bezier(.19, 1, .22, 1);
    --gx-pad: clamp(72px, 9vw, 140px);
}

/* page frame: these pages scroll natively */
.gx-wrap, .gx-content { position: relative; }
html:has(body.gx-body) { overflow-x: clip; }
body.gx-body { overflow-x: clip; background: var(--gx-black); }
body.gx-body main { background: var(--gx-white); overflow: clip; }
body.gx-body #magic-cursor { display: none; }
body.gx-body { font-size: 17px; }
/* the template paints every <p> grey; inside these pages text follows its section colour */
:where(.gx-wrap main) p { color: inherit; letter-spacing: normal; }

.gx-in { width: 100%; max-width: var(--gx-max); margin-inline: auto; padding-inline: var(--gx-gutter); }
.gx-dark { background: var(--gx-black); color: var(--gx-white); }
.gx-light { background: var(--gx-white); color: var(--gx-black); }
.gx-paper { background: var(--gx-paper); color: var(--gx-black); }
.gx-red { background: var(--gx-red); color: var(--gx-white); }
.gx-sec { position: relative; padding-block: var(--gx-pad); }

/* type */
.gx-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 12px !important; line-height: 1.2 !important; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.gx-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gx-flame); flex: none; }
.gx-red .gx-eyebrow::before { background: #fff; }
.gx-h1 { margin: 0; font-size: clamp(40px, 5.8vw, 100px) !important; line-height: .95 !important; letter-spacing: -.045em; font-weight: 700; }
.gx-h2 { margin: 0; font-size: clamp(34px, 5vw, 84px) !important; line-height: .98 !important; letter-spacing: -.045em; font-weight: 700; }
.gx-h3 { margin: 0; font-size: clamp(24px, 2.6vw, 42px) !important; line-height: 1.06 !important; letter-spacing: -.03em; font-weight: 700; }
.gx-h1 em, .gx-h2 em, .gx-h3 em { font-style: normal; color: var(--gx-flame); }
.gx-red .gx-h1 em, .gx-red .gx-h2 em { color: var(--gx-black); }
.gx-lead { font-size: clamp(17px, 1.3vw, 20px) !important; line-height: 1.6 !important; margin: 0; }
.gx-dark .gx-lead, .gx-dark .gx-muted { color: var(--gx-d2); }
.gx-light .gx-lead, .gx-paper .gx-lead, .gx-light .gx-muted, .gx-paper .gx-muted { color: var(--gx-l2); }
.gx-body-text { font-size: 17px !important; line-height: 1.7 !important; margin: 0 0 18px; }
.gx-dark a.gx-inline, .gx-light a.gx-inline { color: var(--gx-flame); }
.gx-copy a { color: var(--gx-flame); text-decoration: underline; text-underline-offset: 3px; }
.gx-dark .gx-copy a { color: #ff8a5c; }

/* buttons */
.gx-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 28px;
    border-radius: 999px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; overflow: hidden; isolation: isolate;
    background: var(--gx-red); color: #fff !important; transition: color .35s, box-shadow .35s, transform .5s var(--gx-ease);
}
.gx-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #fff; transform: translateY(101%); transition: transform .5s var(--gx-ease); }
.gx-btn:hover { color: var(--gx-black) !important; }
.gx-btn:hover::before { transform: none; }
.gx-btn svg { width: 15px; height: 15px; transition: transform .45s var(--gx-ease); }
.gx-btn:hover svg { transform: rotate(-45deg); }
.gx-btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; color: inherit !important; }
.gx-dark .gx-btn--ghost, .gx-red .gx-btn--ghost { color: #fff !important; }
.gx-light .gx-btn--ghost, .gx-paper .gx-btn--ghost { color: var(--gx-black) !important; }
.gx-btn--ghost::before { background: currentColor; }
.gx-dark .gx-btn--ghost:hover, .gx-red .gx-btn--ghost:hover { color: var(--gx-black) !important; }
.gx-light .gx-btn--ghost:hover, .gx-paper .gx-btn--ghost:hover { color: #fff !important; }
.gx-light .gx-btn--ghost::before, .gx-paper .gx-btn--ghost::before { background: var(--gx-black); }
.gx-dark .gx-btn--ghost::before, .gx-red .gx-btn--ghost::before { background: #fff; }
.gx-btn--white { background: #fff; color: var(--gx-black) !important; }
.gx-btn--white::before { background: var(--gx-black); }
.gx-btn--white:hover { color: #fff !important; }
.gx-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.gx-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; text-decoration: none; color: inherit; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .5s var(--gx-ease); }
.gx-link:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* reveal on view */
.gx-rv { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--gx-ease), transform 1.1s var(--gx-ease); transition-delay: var(--d, 0s); }
.gx-rv.in { opacity: 1; transform: none; }
.gx-no-motion .gx-rv { opacity: 1; transform: none; }

/* breadcrumb */
.gx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; letter-spacing: .02em; }
.gx-crumbs li { display: inline-flex; gap: 10px; color: var(--gx-d3); }
.gx-crumbs li + li::before { content: "/"; opacity: .6; }
.gx-crumbs a { color: var(--gx-d2); text-decoration: none; }
.gx-crumbs a:hover { color: #fff; }
.gx-light .gx-crumbs li, .gx-paper .gx-crumbs li { color: var(--gx-l3); }
.gx-light .gx-crumbs a, .gx-paper .gx-crumbs a { color: var(--gx-l2); }

/* ---------------------------------------------------------------
   HERO (dark, image grounded at the bottom edge)
   --------------------------------------------------------------- */
.gx-hero { position: relative; overflow: clip; background: var(--gx-black); color: #fff; }
.gx-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 55% at 76% 70%, rgba(199, 38, 10, .55), rgba(199, 38, 10, 0) 70%), radial-gradient(30% 40% at 10% 0%, rgba(240, 70, 14, .16), rgba(240, 70, 14, 0) 70%); }
.gx-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: clamp(20px, 3vw, 60px); min-height: 100svh; padding-top: 130px; }
.gx-hero__copy { align-self: center; padding-bottom: clamp(40px, 6vw, 90px); }
.gx-hero__copy .gx-crumbs { margin-bottom: 28px; }
.gx-hero__text { max-width: 34em; margin: 26px 0 34px; }
.gx-hero__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.gx-hero__pills span, .gx-hero__pills a { padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--gx-line-d); font-size: 13px; color: var(--gx-d2); text-decoration: none; transition: background .3s, color .3s; }
.gx-hero__pills a:hover { background: #fff; color: var(--gx-black); }
.gx-hero__media { position: relative; align-self: end; justify-self: center; width: min(100%, 620px); line-height: 0; }
.gx-hero__media img { display: block; width: 100%; height: auto; }
.gx-hero__hint { position: absolute; left: var(--gx-gutter); bottom: 26px; z-index: 3; display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gx-d3); }
.gx-hero__hint i { position: relative; width: 44px; height: 1px; background: var(--gx-line-d); overflow: hidden; }
.gx-hero__hint i::after { content: ""; position: absolute; inset: 0; background: var(--gx-flame); animation: gxHint 2.2s ease-in-out infinite; }
@keyframes gxHint { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@media (max-width: 991.98px) {
    .gx-hero__grid { grid-template-columns: 1fr; min-height: 0; padding-top: 118px; gap: 8px; }
    .gx-hero__copy { padding-bottom: 10px; }
    .gx-hero__media { width: min(100%, 460px); }
    .gx-hero__hint { display: none; }
}
/* compact hero (case studies, blog, hub) */
.gx-hero--compact .gx-hero__grid { grid-template-columns: 1fr; min-height: 0; padding-top: 150px; padding-bottom: clamp(56px, 7vw, 110px); }
.gx-hero--compact .gx-hero__copy { padding-bottom: 0; }
.gx-hero--compact::before { background: radial-gradient(40% 70% at 85% 0%, rgba(199, 38, 10, .45), rgba(199, 38, 10, 0) 70%); }

/* ---------------------------------------------------------------
   FLY-THROUGH WORD (scroll scales a giant outline word, content appears behind)
   --------------------------------------------------------------- */
.gx-fly { position: relative; background: var(--gx-black); color: #fff; height: 230svh; }
.gx-fly__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.gx-fly__word {
    position: absolute; left: 50%; top: 50%; translate: -50% -50%; white-space: nowrap; pointer-events: none; z-index: 2;
    font-size: clamp(64px, 17vw, 300px); line-height: .9; font-weight: 800; letter-spacing: -.04em; text-transform: uppercase;
    color: transparent; -webkit-text-stroke: 2px var(--gx-flame); will-change: transform, opacity;
}
.gx-fly__behind { position: relative; z-index: 1; width: 100%; max-width: 1100px; padding-inline: var(--gx-gutter); text-align: center; opacity: 0; will-change: transform, opacity, filter; }
.gx-fly__behind .gx-eyebrow { justify-content: center; }
.gx-fly__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 40% at 50% 50%, rgba(199, 38, 10, .35), rgba(199, 38, 10, 0) 70%); }
.gx-fly__cue { position: absolute; bottom: 30px; left: 50%; translate: -50% 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gx-d3); }
.gx-no-motion .gx-fly { height: auto; }
.gx-no-motion .gx-fly__stage { position: relative; height: auto; padding: var(--gx-pad) 0; }
.gx-no-motion .gx-fly__word { display: none; }
.gx-no-motion .gx-fly__behind { opacity: 1; }

/* statement with word-by-word highlight */
.gx-statement { margin: 0; font-size: clamp(26px, 3.4vw, 56px) !important; line-height: 1.12 !important; letter-spacing: -.035em; font-weight: 700; }
.gx-statement .w { transition: color .45s ease; color: rgba(255, 255, 255, .2); }
.gx-light .gx-statement .w, .gx-paper .gx-statement .w { color: rgba(11, 11, 11, .16); }
.gx-statement .w.on { color: #fff; }
.gx-light .gx-statement .w.on, .gx-paper .gx-statement .w.on { color: var(--gx-black); }
.gx-statement .w.hl.on { color: var(--gx-flame); }

/* ---------------------------------------------------------------
   TILTED MARQUEE BAND
   --------------------------------------------------------------- */
.gx-band { position: relative; z-index: 6; height: clamp(110px, 12vw, 200px); margin-bottom: calc(clamp(110px, 12vw, 200px) / -2); pointer-events: none; overflow-x: clip; background: linear-gradient(var(--gx-black) 50%, var(--gx-white) 50%); }
.gx-band--to-paper { background: linear-gradient(var(--gx-black) 50%, var(--gx-paper) 50%); }
.gx-band--light-dark { background: linear-gradient(var(--gx-white) 50%, var(--gx-black) 50%); }
.gx-band__strip { position: absolute; left: -6%; right: -6%; top: 50%; transform: translateY(-50%) rotate(-3deg); background: var(--gx-red); color: #fff; padding: clamp(10px, 1.3vw, 20px) 0; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.gx-band--alt .gx-band__strip { transform: translateY(-50%) rotate(2.4deg); background: var(--gx-black); }
.gx-band__track { display: flex; width: max-content; will-change: transform; animation: gxMarquee 40s linear infinite; }
.gx-band__run { display: flex; align-items: center; flex: none; }
.gx-band__word { font-size: clamp(38px, 6.4vw, 110px); line-height: .95; font-weight: 800; letter-spacing: -.045em; text-transform: uppercase; padding: 0 .26em; white-space: nowrap; }
.gx-band__dot { font-size: clamp(26px, 3.4vw, 54px); line-height: 1; opacity: .85; }
@keyframes gxMarquee { to { transform: translateX(-50%); } }
@media (max-width: 767.98px) { .gx-band__strip { transform: translateY(-50%) rotate(-4.5deg); } }

/* ---------------------------------------------------------------
   INTRO SPLIT (white)
   --------------------------------------------------------------- */
.gx-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.gx-split--even { grid-template-columns: 1fr 1fr; }
.gx-split__head { position: sticky; top: 110px; display: grid; gap: 22px; align-content: start; }
@media (max-width: 991.98px) { .gx-split, .gx-split--even { grid-template-columns: 1fr; } .gx-split__head { position: static; } }
.gx-media { position: relative; border-radius: 22px; overflow: hidden; background: var(--gx-paper); }
.gx-media img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--gx-ease); }
.gx-media:hover img { transform: scale(1.04); }
.gx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gx-chips li, .gx-chips a { padding: 9px 15px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--gx-line-l); font-size: 14px; color: inherit; text-decoration: none; transition: background .3s, color .3s, box-shadow .3s; }
.gx-dark .gx-chips li, .gx-dark .gx-chips a, .gx-red .gx-chips li { box-shadow: inset 0 0 0 1px var(--gx-line-d); }
.gx-chips a:hover { background: var(--gx-red); color: #fff; box-shadow: none; }

/* scale-in rounded panel (section grows to full width on scroll) */
.gx-grow { --gx-g: 0; margin-inline: calc((1 - var(--gx-g)) * clamp(8px, 3vw, 40px)); border-radius: calc((1 - var(--gx-g)) * 40px); overflow: clip; }

/* ---------------------------------------------------------------
   GIANT SERVICE ROWS (dark)
   --------------------------------------------------------------- */
.gx-rows { border-top: 1px solid var(--gx-line-d); margin-top: clamp(40px, 5vw, 70px); }
.gx-light .gx-rows, .gx-paper .gx-rows { border-color: var(--gx-line-l); }
.gx-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 360px) 48px; align-items: center; gap: 24px; padding: clamp(14px, 1.6vw, 26px) 0; border-bottom: 1px solid var(--gx-line-d); color: inherit; text-decoration: none; }
.gx-light .gx-row, .gx-paper .gx-row { border-color: var(--gx-line-l); }
.gx-row__num { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--gx-d3); align-self: start; padding-top: .9em; }
.gx-light .gx-row__num, .gx-paper .gx-row__num { color: var(--gx-l3); }
.gx-row__name { display: block; overflow: hidden; font-size: clamp(34px, 5.6vw, 96px); line-height: 1; letter-spacing: -.05em; font-weight: 700; padding-bottom: .05em; }
.gx-row__name span { display: inline-block; transition: transform .6s var(--gx-ease), color .35s; }
.gx-row__line { font-size: 15px; line-height: 1.5; color: var(--gx-d2); margin: 0; }
.gx-light .gx-row__line, .gx-paper .gx-row__line { color: var(--gx-l2); }
.gx-row__arrow { justify-self: end; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--gx-line-d); transition: background .35s, color .35s, transform .5s var(--gx-ease); }
.gx-light .gx-row__arrow, .gx-paper .gx-row__arrow { box-shadow: inset 0 0 0 1px var(--gx-line-l); }
.gx-row__arrow svg { width: 15px; height: 15px; }
.gx-row:hover .gx-row__name span { color: var(--gx-flame); transform: translateX(.08em); }
.gx-row:hover .gx-row__arrow { background: var(--gx-red); color: #fff; box-shadow: none; transform: rotate(-45deg); }
.gx-rows:hover .gx-row:not(:hover) .gx-row__name span { color: rgba(255, 255, 255, .28); }
.gx-light .gx-rows:hover .gx-row:not(:hover) .gx-row__name span, .gx-paper .gx-rows:hover .gx-row:not(:hover) .gx-row__name span { color: rgba(11, 11, 11, .25); }
@media (max-width: 767.98px) {
    .gx-row { grid-template-columns: 30px minmax(0, 1fr) 40px; gap: 8px 12px; }
    .gx-row__line { grid-column: 2; grid-row: 2; }
    .gx-row__arrow { grid-column: 3; grid-row: 1; width: 40px; height: 40px; }
    .gx-row__name { font-size: clamp(30px, 9vw, 52px); }
}

/* ---------------------------------------------------------------
   PINNED HORIZONTAL GALLERY (white)
   --------------------------------------------------------------- */
.gx-gal { position: relative; background: var(--gx-white); color: var(--gx-black); }
.gx-gal__stage { position: relative; overflow: hidden; padding: var(--gx-pad) 0; }
.gx-gal__bg { position: absolute; left: 0; bottom: 6%; white-space: nowrap; font-size: clamp(90px, 15vw, 260px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: rgba(11, 11, 11, .045); pointer-events: none; will-change: transform; }
.gx-gal__rail { position: relative; display: flex; align-items: stretch; gap: clamp(14px, 1.6vw, 24px); padding-inline: var(--gx-gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gx-gal__rail::-webkit-scrollbar { display: none; }
.gx-gal__intro { flex: none; width: min(520px, 84vw); display: grid; gap: 20px; align-content: center; padding-right: clamp(10px, 3vw, 50px); scroll-snap-align: start; }
.gx-gal__hint { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gx-l3); }
.gx-card { flex: none; width: min(400px, 80vw); min-height: clamp(360px, 52vh, 520px); border-radius: 24px; padding: clamp(26px, 2.6vw, 38px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; color: #fff; position: relative; overflow: hidden; scroll-snap-align: start; isolation: isolate; }
.gx-card:nth-child(3n+2) { background: var(--gx-red); }
.gx-card:nth-child(3n) { background: var(--gx-black); }
.gx-card:nth-child(3n+1) { background: var(--gx-deep); }
.gx-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: transform 1s var(--gx-ease); z-index: -1; }
.gx-card:hover::after { transform: scale(1.7); }
.gx-card__n { font-size: clamp(72px, 8vw, 120px); line-height: .8; font-weight: 800; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55); }
.gx-card__t { margin: 0 0 12px; font-size: clamp(22px, 2vw, 30px) !important; line-height: 1.1 !important; letter-spacing: -.03em; font-weight: 700; }
.gx-card__d { margin: 0; font-size: 16px !important; line-height: 1.55 !important; color: rgba(255, 255, 255, .82); }
.gx-gal__progress { display: none; }
.gx-motion .gx-gal { height: var(--gx-gal-h, auto); }
.gx-motion .gx-gal__stage { position: sticky; top: 0; height: 100svh; padding: 0; display: flex; align-items: center; }
.gx-motion .gx-gal__rail { overflow: visible; scroll-snap-type: none; will-change: transform; }
.gx-motion .gx-gal__progress { display: block; position: absolute; left: var(--gx-gutter); right: var(--gx-gutter); bottom: 34px; height: 2px; background: var(--gx-line-l); }
.gx-motion .gx-gal__progress span { position: absolute; inset: 0; background: var(--gx-red); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 991.98px) {
    .gx-motion .gx-gal { height: auto; }
    .gx-motion .gx-gal__stage { position: relative; height: auto; padding: var(--gx-pad) 0; display: block; }
    .gx-motion .gx-gal__rail { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; }
    .gx-motion .gx-gal__progress { display: none; }
    .gx-gal__intro { width: 84vw; }
}

/* ---------------------------------------------------------------
   STACKED PANELS (sticky, alternating red / black)
   --------------------------------------------------------------- */
.gx-stack__intro { padding-block: var(--gx-pad); }
.gx-panel { position: relative; min-height: 86svh; display: flex; align-items: stretch; }
.gx-panel:nth-child(odd) { background: var(--gx-red); color: #fff; }
.gx-panel:nth-child(even) { background: var(--gx-black); color: #fff; }
.gx-panel__in { width: 100%; max-width: var(--gx-max); margin-inline: auto; padding: clamp(80px, 9vh, 120px) var(--gx-gutter) clamp(40px, 6vh, 70px); display: grid; grid-template-rows: auto 1fr auto; gap: 20px; }
.gx-panel__idx { font-size: 13px; font-weight: 700; letter-spacing: .14em; opacity: .75; }
.gx-panel__num { align-self: center; font-size: min(38vw, 46svh); line-height: .8; letter-spacing: -.07em; font-weight: 800; }
.gx-panel:nth-child(even) .gx-panel__num { color: var(--gx-flame); }
.gx-panel__meta { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px 40px; align-items: end; border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 22px; }
.gx-panel__t { margin: 0; font-size: clamp(24px, 2.8vw, 46px) !important; line-height: 1.05 !important; letter-spacing: -.035em; font-weight: 700; }
.gx-panel__d { margin: 0; font-size: 16px !important; line-height: 1.6 !important; color: rgba(255, 255, 255, .82); }
@media (min-width: 768px) { .gx-motion .gx-panel { position: sticky; top: 0; } }
@media (max-width: 767.98px) { .gx-panel { min-height: 0; } .gx-panel__num { font-size: 34vw; } .gx-panel__meta { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   NUMBERED LIST (why / process) with sticky head
   --------------------------------------------------------------- */
.gx-list { border-top: 1px solid var(--gx-line-l); }
.gx-dark .gx-list { border-color: var(--gx-line-d); }
.gx-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 20px; padding: clamp(24px, 2.8vw, 38px) 0; border-bottom: 1px solid var(--gx-line-l); }
.gx-dark .gx-item { border-color: var(--gx-line-d); }
.gx-item__n { grid-row: 1 / span 2; font-size: 14px; font-weight: 700; color: var(--gx-flame); padding-top: .5em; }
.gx-item__t { margin: 0; font-size: clamp(22px, 2.4vw, 38px) !important; line-height: 1.08 !important; letter-spacing: -.035em; font-weight: 700; }
.gx-item__d { margin: 0; font-size: 17px !important; line-height: 1.6 !important; max-width: 36em; }
.gx-dark .gx-item__d { color: var(--gx-d2); }
.gx-light .gx-item__d, .gx-paper .gx-item__d { color: var(--gx-l2); }
@media (max-width: 575.98px) { .gx-item { grid-template-columns: 40px minmax(0, 1fr); } }

/* stats strip */
.gx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(50px, 6vw, 90px); }
.gx-stat { border-top: 2px solid currentColor; padding-top: 18px; }
.gx-stat__v { margin: 0 0 6px; font-size: clamp(40px, 5vw, 80px) !important; line-height: 1 !important; letter-spacing: -.05em; font-weight: 800; }
.gx-stat__l { margin: 0; font-size: 14px !important; line-height: 1.45 !important; opacity: .72; }
@media (max-width: 767.98px) { .gx-stats { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------
   WORK TILES
   --------------------------------------------------------------- */
.gx-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(36px, 4vw, 60px); }
.gx-tiles--feature { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.gx-tiles--feature .gx-tile { grid-column: span 6; }
.gx-tiles--feature .gx-tile:first-child { grid-column: span 12; aspect-ratio: 21 / 9; }
.gx-tiles--feature .gx-tile:nth-child(5n+4), .gx-tiles--feature .gx-tile:nth-child(5n+5) { grid-column: span 6; }
.gx-tile { position: relative; display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3.2; background: var(--gx-soft); color: #fff !important; text-decoration: none; isolation: isolate; }
.gx-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--gx-ease); }
.gx-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11, 11, 11, 0) 40%, rgba(11, 11, 11, .85)); pointer-events: none; }
.gx-tile__meta { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; display: grid; gap: 6px; }
.gx-tile__k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ff9a6c; }
.gx-tile__t { font-size: clamp(20px, 1.8vw, 30px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.gx-tile__d { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .78); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--gx-ease), opacity .4s; }
.gx-tile:hover img { transform: scale(1.07); }
.gx-tile:hover .gx-tile__d { max-height: 4.5em; opacity: 1; }
.gx-tile__go { position: absolute; right: 18px; top: 18px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: var(--gx-red); display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .6s var(--gx-ease); }
.gx-tile__go svg { width: 15px; height: 15px; }
.gx-tile:hover .gx-tile__go { transform: none; }
@media (max-width: 991.98px) {
    .gx-tiles { grid-template-columns: 1fr 1fr; }
    .gx-tiles--feature .gx-tile, .gx-tiles--feature .gx-tile:first-child { grid-column: span 12; aspect-ratio: 4 / 3; }
    .gx-tile__d { max-height: 4.5em; opacity: 1; }
}
@media (max-width: 575.98px) { .gx-tiles { grid-template-columns: 1fr; } }

/* link grid (nearby areas / services) */
.gx-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gx-links a { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 140px; padding: 20px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--gx-line-l); color: var(--gx-black); text-decoration: none; transition: background .4s, color .4s, box-shadow .4s, transform .6s var(--gx-ease); }
.gx-links a:hover { background: var(--gx-black); color: #fff; box-shadow: none; transform: translateY(-4px); }
.gx-links small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.gx-links strong { font-size: 18px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 991.98px) { .gx-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .gx-links { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   FAQ
   --------------------------------------------------------------- */
.gx-faq { position: relative; z-index: 3; background: var(--gx-white); color: var(--gx-black); padding-block: var(--gx-pad); border-radius: clamp(20px, 3vw, 44px) clamp(20px, 3vw, 44px) 0 0; margin-top: calc(clamp(20px, 3vw, 44px) * -1); }
.gx-faq__list { border-top: 1px solid var(--gx-line-l); }
.gx-faq__item { border-bottom: 1px solid var(--gx-line-l); }
.gx-faq__q { display: grid; grid-template-columns: 48px minmax(0, 1fr) 40px; align-items: center; gap: 16px; padding: 24px 0; cursor: pointer; list-style: none; font-size: clamp(18px, 1.7vw, 26px); line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }
.gx-faq__q::-webkit-details-marker { display: none; }
.gx-faq__q::marker { content: ""; }
.gx-faq__n { font-size: 13px; font-weight: 700; color: var(--gx-l3); letter-spacing: .06em; }
.gx-faq__i { position: relative; justify-self: end; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--gx-line-l); transition: background .3s, transform .5s var(--gx-ease); }
.gx-faq__i::before, .gx-faq__i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; transition: transform .5s var(--gx-ease); }
.gx-faq__i::after { transform: rotate(90deg); }
.gx-faq__item[open] .gx-faq__i { background: var(--gx-red); color: #fff; box-shadow: none; transform: rotate(180deg); }
.gx-faq__item[open] .gx-faq__i::after { transform: rotate(0); }
.gx-faq__q:hover .gx-faq__i { background: var(--gx-red); color: #fff; box-shadow: none; }
.gx-faq__a { padding: 0 56px 28px 64px; }
.gx-faq__a p { margin: 0; font-size: 17px !important; line-height: 1.65 !important; color: var(--gx-l2); max-width: 42em; }
.gx-faq__item[open] .gx-faq__a { animation: gxFaq .5s var(--gx-ease); }
@keyframes gxFaq { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) { .gx-faq__q { grid-template-columns: 30px minmax(0, 1fr) 34px; gap: 10px; } .gx-faq__i { width: 34px; height: 34px; } .gx-faq__a { padding: 0 0 22px 40px; } }

/* ---------------------------------------------------------------
   OUTRO: red circle rises over black
   --------------------------------------------------------------- */
.gx-outro { position: relative; background: var(--gx-black); color: #fff; min-height: 100svh; overflow: hidden; display: grid; place-items: center; }
.gx-outro__circle { position: absolute; inset: 0; background: var(--gx-red); clip-path: circle(0% at 50% 60%); will-change: clip-path; }
.gx-outro__in { position: relative; z-index: 2; text-align: center; padding: var(--gx-pad) var(--gx-gutter); max-width: 1100px; will-change: transform, opacity; }
.gx-outro__in .gx-eyebrow { justify-content: center; }
.gx-outro__in .gx-eyebrow::before { background: #fff; }
.gx-outro__in .gx-h1 em { color: var(--gx-black); }
.gx-outro__in .gx-lead { color: rgba(255, 255, 255, .88); margin: 24px auto 36px; max-width: 36em; }
.gx-outro__in .gx-btns { justify-content: center; }
.gx-no-motion .gx-outro__circle { clip-path: none; }

/* blog cards */
.gx-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 22px; }
@media (max-width: 991.98px) { .gx-posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .gx-posts { grid-template-columns: 1fr; } }
.gx-post { display: block; color: inherit; text-decoration: none; }
.gx-post.is-hidden { display: none !important; }
.gx-post__img { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 2 / 1; background: var(--gx-paper); }
.gx-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--gx-ease); }
.gx-post:hover .gx-post__img img { transform: scale(1.06); }
.gx-post__cat { display: inline-block; margin: 18px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gx-red); }
.gx-post__t { margin: 0 0 10px; font-size: 21px !important; line-height: 1.25 !important; letter-spacing: -.02em; font-weight: 700; }
.gx-post__t span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .6s var(--gx-ease); }
.gx-post:hover .gx-post__t span { background-size: 100% 1.5px; }
.gx-post__x { margin: 0 0 10px; font-size: 15px !important; line-height: 1.55 !important; color: var(--gx-l2); }
.gx-post__m { margin: 0; font-size: 13px !important; color: var(--gx-l3); }
.gx-post--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.gx-post--feature .gx-post__t { font-size: clamp(28px, 3.2vw, 48px) !important; line-height: 1.04 !important; letter-spacing: -.035em; }
@media (max-width: 991.98px) { .gx-post--feature { grid-template-columns: 1fr; gap: 0; } }
.gx-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 44px; }
.gx-filters button { border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--gx-line-l); color: var(--gx-black); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .3s, color .3s; }
.gx-filters button:hover { box-shadow: inset 0 0 0 1px var(--gx-black); }
.gx-filters button.is-active { background: var(--gx-black); color: #fff; box-shadow: none; }

/* ---------------------------------------------------------------
   ARTICLE (blog post)
   --------------------------------------------------------------- */
.gx-article-hero .gx-h1 { font-size: clamp(34px, 4.6vw, 76px) !important; max-width: 16em; }
.gx-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 14px; color: var(--gx-d2); }
.gx-meta span + span::before { content: "·"; margin-right: 22px; opacity: .5; }
.gx-cover { position: relative; z-index: 3; margin-top: calc(clamp(60px, 8vw, 120px) * -1); }
.gx-cover img { display: block; width: 100%; height: auto; border-radius: clamp(14px, 2vw, 28px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5); }
.gx-article { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 760px); justify-content: center; gap: clamp(30px, 5vw, 80px); padding-block: clamp(50px, 6vw, 90px) var(--gx-pad); }
.gx-toc { position: sticky; top: 110px; align-self: start; font-size: 14px; }
.gx-toc__t { margin: 0 0 14px; font-size: 11px !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gx-red); }
.gx-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--gx-line-l); }
.gx-toc li { margin: 0; }
.gx-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--gx-l2); text-decoration: none; line-height: 1.4; transition: color .3s, border-color .3s; }
.gx-toc a:hover, .gx-toc a.is-on { color: var(--gx-black); border-left-color: var(--gx-red); }
.gx-prose { font-size: 18px; line-height: 1.75; color: #1d1d1d; }
.gx-prose > p { margin: 0 0 22px; font-size: 18px !important; line-height: 1.75 !important; }
.gx-prose .gx-intro { font-size: clamp(20px, 1.6vw, 23px) !important; line-height: 1.6 !important; color: var(--gx-black); font-weight: 500; margin-bottom: 34px; }
.gx-prose .gx-hx { margin: 56px 0 18px; font-size: clamp(26px, 2.4vw, 36px) !important; line-height: 1.12 !important; letter-spacing: -.03em; font-weight: 700; color: var(--gx-black); scroll-margin-top: 110px; }
.gx-prose a { color: var(--gx-red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.gx-prose a:hover { color: var(--gx-black); }
.gx-callout { margin: 30px 0 14px; padding: 18px 22px; border-left: 4px solid var(--gx-red); background: linear-gradient(90deg, rgba(199, 38, 10, .08), rgba(199, 38, 10, 0)); font-weight: 700; font-size: 17px !important; }
.gx-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.gx-pills span { padding: 9px 16px; border-radius: 999px; background: var(--gx-black); color: #fff; font-size: 13px; font-weight: 700; }
.gx-mini { margin: 26px 0 34px; border-top: 1px solid var(--gx-line-l); }
.gx-mini__t { margin: 30px 0 4px; font-size: 12px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gx-red); }
.gx-mini details { border-bottom: 1px solid var(--gx-line-l); }
.gx-mini summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 700; font-size: 17px; line-height: 1.4; }
.gx-mini summary::-webkit-details-marker { display: none; }
.gx-mini summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--gx-line-l); font-weight: 500; }
.gx-mini details[open] summary::after { content: "\2212"; background: var(--gx-red); color: #fff; box-shadow: none; }
.gx-mini details p { margin: 0 0 16px; font-size: 16px; line-height: 1.7; color: var(--gx-l2); }
.gx-figure { margin: 44px 0; }
.gx-figure img { display: block; width: 100%; height: auto; border-radius: 18px; }
.gx-figure figcaption { margin-top: 10px; font-size: 14px; color: var(--gx-l3); text-align: center; }
.gx-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 60px; padding: 26px; border-radius: 20px; background: var(--gx-paper); }
.gx-author__mark { flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--gx-red); color: #fff; display: grid; place-items: center; font-weight: 800; letter-spacing: .06em; font-size: 14px; }
.gx-author p { margin: 0; font-size: 15px !important; line-height: 1.6 !important; color: var(--gx-l2); }
.gx-author strong { display: block; color: var(--gx-black); margin-bottom: 4px; font-size: 16px; }
@media (max-width: 991.98px) { .gx-article { grid-template-columns: 1fr; } .gx-toc { position: static; padding: 20px 22px; border-radius: 16px; background: var(--gx-paper); } .gx-toc ol { border: 0; } .gx-toc a { padding-left: 0; border: 0; } }

/* case study */
.gx-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 70px); border-top: 1px solid var(--gx-line-d); }
.gx-fact { padding: 20px 20px 0 0; }
.gx-fact small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gx-d3); margin-bottom: 8px; }
.gx-fact strong { font-size: 17px; font-weight: 700; }
@media (max-width: 767.98px) { .gx-facts { grid-template-columns: 1fr 1fr; row-gap: 18px; } }
.gx-zoom { position: relative; background: var(--gx-black); }
.gx-zoom__stage { position: relative; padding: 0 var(--gx-gutter) clamp(40px, 6vw, 90px); }
.gx-zoom__frame { max-width: 1400px; margin-inline: auto; border-radius: 28px; overflow: hidden; transform-origin: 50% 0; will-change: transform; }
.gx-zoom__frame img { display: block; width: 100%; height: auto; }
.gx-gallery2 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(12px, 1.4vw, 20px); }
.gx-gallery2 img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
@media (max-width: 767.98px) { .gx-gallery2 { grid-template-columns: 1fr 1fr; } .gx-gallery2 > :first-child { grid-column: 1 / -1; } }
.gx-next { display: block; text-align: center; padding: var(--gx-pad) var(--gx-gutter); background: var(--gx-white); color: var(--gx-black); text-decoration: none; }
.gx-next small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gx-l3); margin-bottom: 14px; }
.gx-next strong { display: block; font-size: clamp(40px, 8vw, 140px); line-height: .95; letter-spacing: -.055em; font-weight: 800; transition: color .4s, letter-spacing .8s var(--gx-ease); }
.gx-next:hover strong { color: var(--gx-red); letter-spacing: -.035em; }

/* work list rows with cursor preview */
.gx-float { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(240px, 24vw, 400px); aspect-ratio: 16 / 11; pointer-events: none; opacity: 0; transition: opacity .3s; }
.gx-float.on { opacity: 1; }
.gx-float__in { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; transform: translate(-50%, -50%); box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.gx-float__in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 991.98px) { .gx-float { display: none; } }

/* hub zones */
.gx-zone { padding-block: clamp(40px, 5vw, 70px); border-top: 1px solid var(--gx-line-l); }
.gx-zone__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 30px; margin-bottom: 26px; }
.gx-areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1199.98px) { .gx-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .gx-areas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gx-areas { grid-template-columns: 1fr; } }
.gx-area { border-radius: 18px; padding: 22px; background: var(--gx-white); box-shadow: inset 0 0 0 1px var(--gx-line-l); transition: box-shadow .4s, transform .6s var(--gx-ease); }
.gx-area:hover { box-shadow: inset 0 0 0 1px var(--gx-black), 0 30px 50px -36px rgba(0, 0, 0, .45); transform: translateY(-4px); }
.gx-area__n { margin: 0 0 4px; font-size: 22px !important; line-height: 1.15 !important; font-weight: 700; letter-spacing: -.02em; }
.gx-area__t { margin: 0 0 14px; font-size: 14px !important; line-height: 1.45 !important; color: var(--gx-l2); }
.gx-area ul { list-style: none; margin: 0; padding: 0; }
.gx-area li a { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px dashed var(--gx-line-l); color: var(--gx-black); text-decoration: none; font-size: 15px; transition: color .3s, padding .4s var(--gx-ease); }
.gx-area li a:hover { color: var(--gx-red); padding-left: 6px; }

@media (prefers-reduced-motion: reduce) {
    .gx-band__track { animation: none; }
    .gx-rv { opacity: 1; transform: none; transition: none; }
}

/* background-only wrappers (no colour context) */
.gx-bg-dark { background: var(--gx-black); }
.gx-bg-white { background: var(--gx-white); }
