/* Site header and full-screen menu, shared by every page (markup in each page, behaviour in csg-nav.js).
   Themes: csg-hdr--overlay (transparent over the home hero), csg-hdr--dark (dark pages), csg-hdr--light (white pages). */

.csg-hdr {
    position: fixed; top: 0; left: 0; right: 0; z-index: 150;
    font-family: 'Inter', system-ui, sans-serif; color: #fff;
    transition: background-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.csg-hdr.is-hidden { transform: translateY(-100%); }
.csg-hdr--overlay.is-solid, .csg-hdr--dark.is-solid { background: rgba(42, 5, 8, .96); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
.csg-hdr--light { background: #fff; color: #1d0a0d; box-shadow: 0 1px 0 #ecdde0; }
.csg-hdr--light.is-solid { box-shadow: 0 1px 0 #ecdde0, 0 10px 30px -22px rgba(42, 5, 8, .35); }

/* Recruiting strip */
.csg-banner { position: relative; background: #2a0508; color: #d1d5db; font-size: 12px; letter-spacing: .025em; line-height: 1.4; }
.csg-banner p { margin: 0; padding: 8px 52px; text-align: center; }
.csg-banner a { color: #ff4d4d; text-decoration: none; }
.csg-banner a:hover { color: #fff; }
.csg-hdr--light .csg-banner { background: #f7f1f2; color: #5c4a4d; }
.csg-hdr--light .csg-banner a { color: #c41230; }
.csg-hdr--light .csg-banner a:hover { color: #7a0515; }
.csg-banner-x {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    background: none; border: 0; color: inherit; cursor: pointer; opacity: .8;
}
.csg-banner-x:hover { opacity: 1; }

/* Bar */
.csg-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px clamp(16px, 4vw, 56px); border-bottom: 1px solid rgba(255, 255, 255, .22); }
.csg-hdr.is-solid .csg-bar, .csg-hdr--light .csg-bar { border-bottom-color: transparent; }
.csg-logo { display: flex; }
.csg-logo img { height: 44px; width: auto; display: block; }
.csg-logo .csg-logo-crimson, .csg-hdr--light .csg-logo .csg-logo-white { display: none; }
.csg-hdr--light .csg-logo .csg-logo-crimson { display: block; }
.csg-bar-r { display: flex; align-items: center; gap: 28px; }
.csg-work { display: inline-block; background: #fff; color: #8f1023; text-decoration: none; font-size: 14px; font-weight: 600; padding: 13px 24px; border-radius: 999px; transition: background-color .2s, color .2s; }
.csg-work:hover { background: #ffe3e7; color: #8f1023; }
.csg-hdr--light .csg-work { background: #c41230; color: #fff; }
.csg-hdr--light .csg-work:hover { background: #8f1023; color: #fff; }
.csg-menu-btn {
    display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0;
    background: none; border: 0; color: inherit; cursor: pointer;
    font: 600 14px 'Inter', sans-serif; letter-spacing: .08em;
}
.csg-menu-btn:hover { opacity: .85; }
.csg-menu-btn .csg-ico { display: flex; }

/* Full-screen menu */
.csg-menu { position: fixed; inset: 0; z-index: 300; background: #fff; color: #1d0a0d; overflow-y: auto; display: flex; flex-direction: column; font-family: 'Inter', system-ui, sans-serif; }
.csg-menu[hidden] { display: none; }

/* Opening wipes the panel down from the top and lifts the links in one after another; closing is a quick fade up */
.csg-menu.is-opening { animation: csg-menu-in .32s cubic-bezier(.2, .8, .2, 1) both; }
.csg-menu.is-closing { animation: csg-menu-out .18s ease-in both; }
.csg-menu.is-opening .csg-menu-top,
.csg-menu.is-opening .csg-menu-site > *,
.csg-menu.is-opening .csg-menu-prac > *,
.csg-menu.is-opening .csg-menu-foot { animation: csg-menu-item .36s cubic-bezier(.2, .8, .2, 1) both; }
.csg-menu.is-opening .csg-menu-site > :nth-child(1), .csg-menu.is-opening .csg-menu-prac > :nth-child(1) { animation-delay: .06s; }
.csg-menu.is-opening .csg-menu-site > :nth-child(2), .csg-menu.is-opening .csg-menu-prac > :nth-child(2) { animation-delay: .09s; }
.csg-menu.is-opening .csg-menu-site > :nth-child(3), .csg-menu.is-opening .csg-menu-prac > :nth-child(3) { animation-delay: .12s; }
.csg-menu.is-opening .csg-menu-site > :nth-child(4), .csg-menu.is-opening .csg-menu-prac > :nth-child(4) { animation-delay: .15s; }
.csg-menu.is-opening .csg-menu-site > :nth-child(5), .csg-menu.is-opening .csg-menu-prac > :nth-child(5) { animation-delay: .18s; }
.csg-menu.is-opening .csg-menu-site > :nth-child(n+6) { animation-delay: .21s; }
.csg-menu.is-opening .csg-menu-foot { animation-delay: .2s; }
@keyframes csg-menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes csg-menu-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes csg-menu-item { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.csg-acc-panel:not([hidden]) { animation: csg-menu-item .24s cubic-bezier(.2, .8, .2, 1) both; }
.csg-lock { overflow: hidden; }
.csg-menu a { color: #1d0a0d; text-decoration: none; }
.csg-menu a:hover { color: #c41230; }
.csg-menu-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px clamp(16px, 4vw, 56px); border-bottom: 1px solid #ecdde0; }
.csg-menu-top .csg-logo img { height: 44px; }
.csg-menu-top .csg-bar-r { gap: 28px; }
.csg-menu .csg-work { background: #c41230; color: #fff; }
.csg-menu .csg-work:hover { background: #8f1023; color: #fff; }
.csg-close { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer; color: #1d0a0d; font: 600 14px 'Inter', sans-serif; letter-spacing: .08em; }
.csg-close:hover { color: #c41230; }
.csg-close .csg-ico { display: flex; color: #c41230; }
.csg-menu-btn:focus-visible, .csg-close:focus-visible, .csg-acc:focus-visible { outline: 2px solid #c41230; outline-offset: 3px; }
.csg-menu-body { flex: 1; width: 100%; max-width: 1164px; margin: 0 auto; box-sizing: border-box; padding: 56px clamp(20px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.csg-menu-site { display: flex; flex-direction: column; }
.csg-menu-site > a, .csg-menu-site > .csg-soon, .csg-acc {
    font-family: 'Bebas Neue', sans-serif; font-size: clamp(44px, 5.4vw, 76px); line-height: 1.04; letter-spacing: .02em; font-weight: 400;
}
.csg-soon { color: #a8979a; display: flex; align-items: baseline; gap: 14px; }
.csg-soon small { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: .02em; color: #8a7578; }
.csg-acc, .csg-acc-panel { display: none; }
.csg-menu-prac h2 { margin: 0 0 6px; font-family: 'Newsreader', serif; font-style: italic; font-weight: 400; font-size: 22px; color: #8f1023; }
.csg-menu-prac a { display: block; padding: 18px 0; border-bottom: 1px solid #ecdde0; }
.csg-menu-prac a:last-child { border-bottom: 0; }
.csg-menu-prac b { display: block; font-family: 'Newsreader', serif; font-weight: 600; font-size: 26px; line-height: 1.15; }
.csg-menu-prac span { display: block; margin-top: 4px; font-family: 'Newsreader', serif; font-size: 16px; line-height: 1.4; color: #5c4a4d; }
.csg-menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; border-top: 1px solid #ecdde0; padding: 22px clamp(16px, 4vw, 56px); font-family: 'Newsreader', serif; font-size: 17px; color: #5c4a4d; }
.csg-menu-foot .csg-consultant-login { margin-left: auto; white-space: nowrap; }
.csg-menu-foot a { color: #c41230; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px; }
.csg-menu-foot .csg-mbtns { display: none; }

/* sections reached by an in-page link take focus for screen readers, without drawing a ring */
[tabindex="-1"]:focus { outline: none; }

/* Spacer for pages whose content starts below the header */
#csg-header-spacer { height: var(--csg-hdr, 113px); }

@media (max-width: 1023px) {
    .csg-menu-body { grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; padding-top: 16px; }
    .csg-menu-prac { display: none; }
    .csg-menu-site > a, .csg-menu-site > .csg-soon, .csg-acc {
        display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 58px;
        font-size: 40px; line-height: 1.1; border-bottom: 1px solid #ecdde0;
    }
    .csg-menu-site > .csg-desk { display: none; }
    .csg-acc { background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0; color: #1d0a0d; text-align: left; cursor: pointer; }
    .csg-acc:hover { color: #c41230; }
    .csg-acc-sign { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ecdde0; }
    .csg-acc .csg-minus, .csg-acc[aria-expanded="true"] .csg-plus { display: none; }
    .csg-acc[aria-expanded="true"] .csg-minus { display: block; }
    .csg-acc-panel:not([hidden]) { display: block; padding: 6px 0 10px; border-bottom: 1px solid #ecdde0; }
    .csg-acc-panel a { display: block; padding: 10px 0 10px 14px; border-left: 2px solid #ecdde0; }
    .csg-acc-panel a:first-child { border-left-color: #c41230; }
    .csg-acc-panel b { display: block; font-family: 'Newsreader', serif; font-weight: 600; font-size: 19px; }
    .csg-acc-panel span { display: block; font-family: 'Newsreader', serif; font-size: 14px; color: #5c4a4d; }
    .csg-menu-foot { border-top: 0; padding: 28px 20px; }
    .csg-menu-foot .csg-mline { display: none; }
    .csg-menu-foot .csg-mbtns { display: flex; flex-direction: column; gap: 10px; width: 100%; }
    .csg-mbtns a { display: block; text-align: center; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; padding: 15px 24px; border-radius: 999px; }
    .csg-mbtns .csg-mb-primary { background: #c41230; color: #fff; }
    .csg-mbtns .csg-mb-primary:hover { background: #8f1023; color: #fff; }
    .csg-mbtns .csg-mb-ghost { border: 1.5px solid #1d0a0d; color: #1d0a0d; }
}

@media (max-width: 767px) {
    .csg-banner p { padding: 9px 48px 9px 16px; text-align: left; }
    .csg-banner-x { right: 2px; width: 44px; height: 44px; }
    .csg-bar { padding: 12px 16px 12px 20px; }
    .csg-logo img, .csg-menu-top .csg-logo img { height: 34px; }
    .csg-bar .csg-work, .csg-menu-top .csg-work { display: none; }
    .csg-menu-top { padding: 12px 16px 12px 20px; border-bottom: 0; }
    .csg-menu-btn, .csg-close {
        gap: 10px; padding: 0 4px 0 14px; border-radius: 999px; font-size: 12px; letter-spacing: .1em;
    }
    .csg-menu-btn { background: rgba(42, 5, 8, .35); border: 1px solid rgba(255, 255, 255, .28); }
    .csg-hdr--light .csg-menu-btn { background: #fff; border-color: #ecdde0; }
    .csg-close { border: 1px solid #ecdde0; }
    .csg-menu-btn .csg-ico, .csg-close .csg-ico { width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; }
    .csg-menu-btn .csg-ico { background: #fff; color: #8f1023; }
    .csg-hdr--light .csg-menu-btn .csg-ico { background: #8f1023; color: #fff; }
    .csg-close .csg-ico { background: #c41230; color: #fff; }
    .csg-menu-btn .csg-ico svg, .csg-close .csg-ico svg { width: 15px; height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .csg-hdr { transition: none; }
    .csg-menu, .csg-menu *, .csg-acc-panel { animation: none !important; }
}

/* "Tell us what you're working on" section, shared by every page that closes with it:
   a red panel and a white panel joined by a slanted break */
.csg-cta { position: relative; z-index: 10; background: #2a0508; padding: 56px clamp(16px, 4vw, 56px); font-family: 'Inter', system-ui, sans-serif; }
.csg-cta-strip { display: flex; min-height: 480px; }
.csg-cta-l { position: relative; overflow: hidden; flex: 1.25 1 0; min-width: 0; background: #8f1023; color: #fff; padding: 64px 130px 64px 56px; display: flex; align-items: center; clip-path: polygon(0 0, 100% 0, calc(100% - 70px) 100%, 0 100%); }
.csg-cta-city { position: absolute; inset: 0; opacity: .14; mix-blend-mode: luminosity; background: url('about-hero-bg.jpg') center 40% / cover no-repeat; pointer-events: none; }
.csg-cta-in { position: relative; }
.csg-cta h2 { margin: 0 0 24px; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(3.4rem, 6vw, 5.25rem); line-height: .92; letter-spacing: .02em; color: #fff; }
.csg-cta-in p { margin: 0; max-width: 520px; font-family: 'Newsreader', serif; font-size: 20px; line-height: 1.5; color: #fde8eb; }
.csg-cta-r { flex: 1 1 0; min-width: 0; margin-left: -56px; background: #fff; color: #1d0a0d; padding: 64px 56px 64px 120px; display: flex; flex-direction: column; justify-content: center; clip-path: polygon(70px 0, 100% 0, 100% 100%, 0 100%); }
.csg-cta-go { display: block; padding: 24px 0; border-top: 1px solid #e6d6d9; color: #1d0a0d; text-decoration: none; }
.csg-cta-go:first-child { border-top-color: #1d0a0d; }
.csg-cta-go:last-child { border-bottom: 1px solid #e6d6d9; }
.csg-cta-go:hover { color: #c41230; }
.csg-cta-go svg { flex-shrink: 0; transition: transform .2s; }
.csg-cta-go:hover svg { transform: translateX(4px); }
.csg-cta-tag { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #8f1023; }
.csg-cta-label { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: 'Newsreader', serif; font-weight: 600; font-size: 28px; line-height: 1.15; }
@media (max-width: 1023px) {
    .csg-cta-strip { flex-direction: column; min-height: 0; }
    .csg-cta-l, .csg-cta-r { flex: none; }
    .csg-cta-l { padding: 48px 28px 72px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%); }
    .csg-cta-r { margin: -22px 0 0; padding: 64px 28px 40px; clip-path: polygon(0 36px, 100% 0, 100% 100%, 0 100%); }
    .csg-cta-label { font-size: 24px; }
}
@media (max-width: 767px) { .csg-cta { padding: 40px 16px; } }

/* Our clients & partners (home page band above the CTA, About page under What We Do).
   One-colour logos are drawn through a mask so they always take the text colour. */
.csg-clients-in { display: flex; align-items: center; gap: 32px 56px; padding: 40px 0; border-top: 1px solid rgba(255, 255, 255, .18); border-bottom: 1px solid rgba(255, 255, 255, .18); }
.csg-clients-title { flex: none; margin: 0; padding-right: 56px; border-right: 1px solid rgba(255, 255, 255, .18); font-family: 'Newsreader', serif; font-style: italic; font-weight: 400; font-size: 24px; line-height: 1.2; color: #fde8eb; }
.csg-client-logos { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: space-around; gap: 24px 40px; margin: 0; padding: 0; list-style: none; color: #fff; }
.csg-plogo { display: block; flex: none; max-width: 100%; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat content-box; mask: var(--m) center / contain no-repeat content-box; }
.csg-plogo-ss { --m: url(client-servesense.png); width: 165px; height: 40px; }
.csg-plogo-cop { --m: url(client-chamber-of-progress.png); width: 138px; height: 63px; }
.csg-plogo-mod { --m: url(client-module.png); width: 175px; height: 35px; }
.csg-client-logos li { display: flex; flex: none; }
.csg-client-logos li:has(> .csg-plogo) { flex: 0 1 auto; min-width: 0; }
.csg-client-logos a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
.csg-client-logos a:hover { color: #ffd6dc; }
.csg-client-logos a:focus-visible { outline: 2px solid #ff4d4d; outline-offset: 8px; border-radius: 2px; }
.csg-plogo-text { font-family: 'Newsreader', serif; font-weight: 600; font-size: 32px; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
@media (max-width: 1199px) {
    .csg-clients-in { flex-direction: column; align-items: stretch; gap: 22px; padding: 32px 0; }
    .csg-clients-title { padding-right: 0; border-right: 0; font-size: 22px; }
    .csg-client-logos { justify-content: space-between; gap: 18px 22px; }
}
.csg-plogo-text span { white-space: nowrap; }
/* phones: a 2 x 2 grid of equal cells split by hairlines, logos centred, tall tap areas */
@media (max-width: 767px) {
    .csg-clients-in { gap: 6px; padding: 26px 0 8px; }
    .csg-clients-title { font-size: 20px; }
    .csg-client-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
    .csg-client-logos li { justify-content: center; align-items: center; min-height: 84px; padding: 0 6px; }
    .csg-client-logos li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .18); }
    .csg-client-logos li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .18); }
    .csg-client-logos a { box-sizing: content-box; padding: 18px 0; }
    .csg-plogo-ss { width: 100%; max-width: 124px; height: 30px; }
    .csg-plogo-cop { width: 100%; max-width: 96px; height: 44px; }
    .csg-plogo-mod { width: 100%; max-width: 130px; height: 26px; }
    .csg-plogo-text { font-size: 22px; line-height: 1.05; text-align: center; white-space: normal; }
    .csg-plogo-text span { display: block; }
}
