/* ==========================================================
   CoreBridge Global Solutions — custom components & motion
   (loaded after styles.css)
   ========================================================== */
:root {
  --cb-navy: oklch(27% .06 262);
  --cb-navy-deep: oklch(20% .05 262);
  --cb-navy-soft: oklch(36% .055 262);
  --cb-brass: oklch(74% .115 80);
  --cb-brass-soft: oklch(88% .07 84);
  --cb-paper: oklch(96.5% .01 90);
  --cb-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--cb-ease), transform .9s var(--cb-ease); }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cb-kenburns { animation: none !important; }
}
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Image slider (Who we are) ---------- */
.cb-slider { position: relative; aspect-ratio: 7 / 5.4; border-radius: 1rem; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(10, 20, 45, .45); background: var(--cb-navy-deep); }
.cb-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--cb-ease); }
.cb-slide.is-active { opacity: 1; z-index: 1; }
.cb-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6.5s linear; }
.cb-slide.is-active img { transform: scale(1); }
.cb-slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(9, 17, 38, .94) 0%, rgba(9, 17, 38, .82) 18%, rgba(9, 17, 38, .55) 34%, rgba(9, 17, 38, .22) 48%, rgba(9, 17, 38, .06) 58%, transparent 66%); }
.cb-slide-cap { position: absolute; left: 1.75rem; right: 1.75rem; bottom: 3.6rem; z-index: 2; color: #fff; }
.cb-slide-cap small { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cb-brass); font-weight: 600; }
.cb-slide-cap strong { display: block; margin-top: .35rem; text-shadow: 0 2px 12px rgba(9, 17, 38, .45); font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; letter-spacing: -.01em; }
.cb-slide-cap, .cb-slide-cap * { transition: opacity .8s .35s, transform .8s .35s var(--cb-ease); }
.cb-slide:not(.is-active) .cb-slide-cap { opacity: 0; transform: translateY(14px); }
.cb-slider-nav { position: absolute; left: 1.75rem; right: 1.75rem; bottom: 1.5rem; z-index: 3; display: flex; align-items: center; gap: .5rem; }
.cb-dot { height: 3px; flex: 1; max-width: 4rem; border: 0; padding: 0; border-radius: 3px; background: rgba(255, 255, 255, .3); cursor: pointer; overflow: hidden; position: relative; }
.cb-dot::after { content: ""; position: absolute; inset: 0; background: var(--cb-brass); transform: scaleX(0); transform-origin: left; }
.cb-dot.is-active::after { animation: cbProgress 5.5s linear forwards; }
.cb-slider.is-paused .cb-dot.is-active::after { animation-play-state: paused; }
@keyframes cbProgress { to { transform: scaleX(1); } }
.cb-arrows { margin-left: auto; display: flex; gap: .4rem; }
.cb-arrow { width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .3s, border-color .3s; backdrop-filter: blur(4px); }
.cb-arrow:hover { background: var(--cb-brass); border-color: var(--cb-brass); color: var(--cb-navy-deep); }
.cb-arrow svg { width: 1rem; height: 1rem; }
.cb-frame { position: relative; }
.cb-frame::before { content: ""; position: absolute; left: -1rem; top: -1rem; width: 100%; height: 100%; border: 1px solid color-mix(in oklch, var(--cb-brass) 45%, transparent); border-radius: 1rem; }

/* ---------- Service image cards (home) ---------- */
.cb-svc-grid { display: grid; gap: 1.25rem; margin-top: 3.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cb-svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cb-svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .cb-svc-grid { grid-template-columns: repeat(4, 1fr); } }
.cb-svc { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 1.1rem; overflow: hidden; color: #fff; isolation: isolate; box-shadow: 0 10px 30px -18px rgba(10, 20, 45, .5); transition: transform .5s var(--cb-ease), box-shadow .5s var(--cb-ease); }
.cb-svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--cb-ease), filter .6s; }
.cb-svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(9, 17, 38, .92) 0%, rgba(9, 17, 38, .35) 45%, rgba(9, 17, 38, .05) 75%); transition: background .6s var(--cb-ease); }
.cb-svc-num { position: absolute; top: 1.25rem; left: 1.4rem; font-family: var(--font-display); font-size: .8rem; letter-spacing: .15em; color: var(--cb-brass); font-weight: 600; }
.cb-svc-arrow { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); transition: all .5s var(--cb-ease); }
.cb-svc-arrow svg { width: 1.05rem; height: 1.05rem; transform: rotate(-45deg); transition: transform .5s var(--cb-ease); }
.cb-svc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1.4rem 1.6rem; }
.cb-svc h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.cb-svc h3::after { content: ""; display: block; width: 2rem; height: 2px; margin-top: .85rem; background: var(--cb-brass); transition: width .6s var(--cb-ease); }
.cb-svc-desc { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s var(--cb-ease), opacity .5s, margin .6s; }
.cb-svc-desc > div { overflow: hidden; }
.cb-svc-desc p { font-size: .9rem; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.cb-svc-desc span { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cb-brass); }
.cb-svc:hover, .cb-svc:focus-visible { transform: translateY(-6px); box-shadow: 0 30px 50px -22px rgba(10, 20, 45, .6); }
.cb-svc:hover img, .cb-svc:focus-visible img { transform: scale(1.08); }
.cb-svc:hover::before, .cb-svc:focus-visible::before { background: linear-gradient(to top, rgba(9, 17, 38, .96) 0%, rgba(9, 17, 38, .78) 55%, rgba(9, 17, 38, .4) 100%); }
.cb-svc:hover .cb-svc-desc, .cb-svc:focus-visible .cb-svc-desc { grid-template-rows: 1fr; opacity: 1; margin-top: .9rem; }
.cb-svc:hover h3::after, .cb-svc:focus-visible h3::after { width: 3.5rem; }
.cb-svc:hover .cb-svc-arrow, .cb-svc:focus-visible .cb-svc-arrow { background: var(--cb-brass); border-color: var(--cb-brass); color: var(--cb-navy-deep); }
.cb-svc:hover .cb-svc-arrow svg { transform: rotate(0); }
@media (hover: none) { .cb-svc .cb-svc-desc { grid-template-rows: 1fr; opacity: 1; margin-top: .9rem; } }
.cb-svc-cta { display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; border-radius: 1.1rem; padding: 1.75rem; color: #fff; background: radial-gradient(120% 80% at 100% 0%, var(--cb-navy-soft) 0%, var(--cb-navy) 45%, var(--cb-navy-deep) 100%); position: relative; overflow: hidden; }
.cb-svc-cta::before { content: ""; position: absolute; width: 14rem; height: 14rem; border-radius: 999px; border: 1px solid color-mix(in oklch, var(--cb-brass) 40%, transparent); top: -5rem; right: -5rem; }
.cb-svc-cta::after { content: ""; position: absolute; width: 9rem; height: 9rem; border-radius: 999px; border: 1px solid color-mix(in oklch, var(--cb-brass) 30%, transparent); top: -2.5rem; right: -2.5rem; }

/* ---------- Why CoreBridge list hover ---------- */
.cb-why li { position: relative; display: flex; gap: 1.5rem; padding: 1.5rem 1.25rem; border-bottom: 1px solid var(--color-border, #e5e7eb); border-radius: .75rem; cursor: default; transition: background .45s var(--cb-ease), transform .45s var(--cb-ease), box-shadow .45s var(--cb-ease), border-color .45s; overflow: hidden; }
.cb-why li:first-child { border-top: 1px solid var(--color-border, #e5e7eb); }
.cb-why li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cb-brass); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--cb-ease); }
.cb-why .cb-why-num { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--cb-brass); transition: transform .45s var(--cb-ease), color .45s; display: inline-block; min-width: 1.75rem; }
.cb-why h3 { font-weight: 600; transition: color .45s; }
.cb-why p { transition: color .45s; }
.cb-why .cb-why-go { margin-left: auto; align-self: center; opacity: 0; transform: translateX(-10px); transition: all .45s var(--cb-ease); color: var(--cb-brass); }
.cb-why li:hover { background: oklch(94% .02 84); border-color: oklch(88% .03 84); transform: translateX(8px); box-shadow: 0 18px 40px -26px rgba(10, 20, 45, .35); }
.cb-why li:hover::before { transform: scaleY(1); }
.cb-why li:hover .cb-why-num { transform: scale(1.35); color: oklch(56% .11 72); }
.cb-why li:hover h3 { color: var(--cb-navy-deep); }
.cb-why li:hover p { color: var(--cb-navy-soft); }
.cb-why li:hover .cb-why-go { color: var(--cb-navy); }
.cb-why li:hover .cb-why-go { opacity: 1; transform: none; }

/* ---------- CTA band with background image ---------- */
.cb-cta { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.cb-cta-bg { position: absolute; inset: -40px 0; z-index: -2; background-size: cover; background-position: center; }
@media (min-width: 1024px) and (hover: hover) { .cb-cta-bg { background-attachment: fixed; inset: 0; } }
.cb-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(9, 17, 38, .96) 0%, rgba(12, 24, 52, .88) 45%, rgba(12, 24, 52, .55) 100%); }
.cb-cta-inner { max-width: 80rem; margin: 0 auto; padding: 6rem 1.25rem; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 640px) { .cb-cta-inner { padding: 7.5rem 2rem; } }
@media (min-width: 1024px) { .cb-cta-inner { grid-template-columns: 1.45fr 1fr; gap: 5rem; } }
.cb-cta-lines { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.cb-cta-lines li { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.35rem); line-height: 1.25; font-weight: 500; letter-spacing: -.015em; padding: .6rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .92); }
.cb-cta-lines li:last-child { border-bottom: 0; }
.cb-cta-lines em { font-style: italic; color: var(--cb-brass); }
/* Typewriter cycle for the CTA lines (built by js/main.js) */
.cb-cta-lines.cb-typing li { display: none; }
.cb-cta-lines .cb-type { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.35rem); line-height: 1.25; font-weight: 500; letter-spacing: -.015em; padding: .6rem 0; color: rgba(255, 255, 255, .92); min-height: calc(2.5em + 1.2rem); }
.cb-cta-lines .cb-type em { font-style: italic; color: var(--cb-brass); }
.cb-cta-lines .cb-caret { display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -0.12em; background: var(--cb-brass); animation: cb-caret-blink 1s steps(1) infinite; }
@keyframes cb-caret-blink { 50% { opacity: 0; } }
.cb-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cb-cta-card { border-radius: 1.25rem; padding: 2.25rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.cb-cta-card p { color: rgba(255, 255, 255, .78); font-size: 1.075rem; line-height: 1.7; }
.cb-cta-card .cb-cta-actions { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.cb-cta-card .cb-cta-actions a { width: 100%; }
.cb-cta-phone { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; align-items: center; gap: .75rem; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.cb-cta-phone a { color: #fff; font-weight: 600; }
.cb-cta-phone a:hover { color: var(--cb-brass); }

/* ---------- Footer ---------- */
.cb-footer { position: relative; background: oklch(95.5% .013 85); color: var(--cb-navy-deep); overflow: hidden; border-top: 1px solid oklch(89% .02 85); }
.cb-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--cb-brass), transparent); }
.cb-footer::after { content: ""; position: absolute; width: 40rem; height: 40rem; right: -14rem; bottom: -22rem; border-radius: 999px; background: radial-gradient(circle, color-mix(in oklch, var(--cb-brass-soft) 45%, transparent) 0%, transparent 70%); pointer-events: none; }
.cb-footer-top { position: relative; z-index: 1; max-width: 80rem; margin: 0 auto; padding: 4.5rem 1.25rem 3rem; display: grid; gap: 3rem; }
@media (min-width: 640px) { .cb-footer-top { padding-left: 2rem; padding-right: 2rem; grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cb-footer-top { grid-template-columns: 1.5fr .9fr 1.2fr 1.3fr; gap: 3.5rem; } }
.cb-footer-logo { display: inline-block; background: transparent; transition: transform .4s var(--cb-ease); }
.cb-footer-logo:hover { transform: translateY(-3px); }
.cb-footer-logo img { height: 3.6rem; width: auto; display: block; }
.cb-footer .text-white\/90 { color: var(--cb-navy-deep); }
.cb-footer .text-white\/55 { color: var(--cb-navy-soft); opacity: .85; }
.cb-footer h3 { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: oklch(56% .11 72); display: flex; align-items: center; gap: .6rem; }
.cb-footer h3::after { content: ""; flex: 0 0 1.5rem; height: 1px; background: color-mix(in oklch, var(--cb-brass) 60%, transparent); }
.cb-footer-links { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .7rem; }
.cb-footer-links a { font-size: .92rem; color: var(--cb-navy-soft); display: inline-flex; align-items: center; gap: .5rem; transition: color .3s, transform .3s var(--cb-ease); }
.cb-footer-links a::before { content: ""; width: 0; height: 1px; background: var(--cb-brass); transition: width .3s var(--cb-ease); }
.cb-footer-links a:hover { color: var(--cb-navy-deep); }
.cb-footer-links a:hover::before { width: .85rem; }
.cb-footer-contact { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1rem; }
.cb-footer-contact li { display: flex; gap: .85rem; align-items: flex-start; font-size: .92rem; color: var(--cb-navy-soft); line-height: 1.55; }
.cb-footer-contact .cb-ic { flex: 0 0 2.25rem; height: 2.25rem; border-radius: .6rem; background: transparent; border: 1px solid oklch(88% .025 85); display: inline-flex; align-items: center; justify-content: center; color: oklch(56% .11 72); }
.cb-footer-contact .cb-ic svg { width: 1rem; height: 1rem; }
.cb-footer .text-white { color: var(--cb-navy-deep); }
.cb-footer-contact a:hover, .cb-footer .text-white:hover { color: oklch(56% .11 72); }
.cb-footer-contact small { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cb-navy-soft); opacity: .7; margin-bottom: .15rem; }
.cb-footer-bottom { position: relative; z-index: 1; border-top: 1px solid oklch(88% .02 85); }
.cb-footer-bottom > div { max-width: 80rem; margin: 0 auto; padding: 1.4rem 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--cb-navy-soft); }
@media (min-width: 640px) { .cb-footer-bottom > div { padding-left: 2rem; padding-right: 2rem; } }
.cb-footer-bottom a { color: var(--cb-navy-soft); transition: color .3s; }
.cb-footer-bottom a:hover { color: oklch(56% .11 72); }
.cb-top { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid oklch(84% .025 85); border-radius: 999px; padding: .45rem .95rem; transition: all .3s; }
.cb-top:hover { border-color: var(--cb-brass); background: var(--cb-brass); color: var(--cb-navy-deep) !important; }
.cb-footer-btn { margin-top: 1.5rem; }

/* ---------- Inner page banners ---------- */
.cb-banner { position: relative; overflow: hidden; background: var(--cb-navy-deep); isolation: isolate; }
.cb-banner > img.cb-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cb-kenburns { animation: cbKen 18s ease-out forwards; }
@keyframes cbKen { from { transform: scale(1.12); } to { transform: scale(1); } }
.cb-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 17, 38, .95) 0%, rgba(9, 17, 38, .8) 40%, rgba(9, 17, 38, .35) 100%); }
.cb-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6rem; z-index: -1; background: linear-gradient(to top, rgba(9, 17, 38, .6), transparent); }
.cb-banner .cb-banner-inner { padding-top: 7rem; padding-bottom: 7rem; }
@media (min-width: 640px) { .cb-banner .cb-banner-inner { padding-top: 9rem; padding-bottom: 9rem; } }
.cb-crumb { margin-top: 2.25rem; display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; color: rgba(255, 255, 255, .6); padding: .45rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.cb-crumb a:hover { color: var(--cb-brass); }
.cb-crumb b { color: #fff; font-weight: 500; }
.cb-banner-anim > * { animation: cbRise 1s var(--cb-ease) both; }
.cb-banner-anim > *:nth-child(2) { animation-delay: .12s; }
.cb-banner-anim > *:nth-child(3) { animation-delay: .24s; }
.cb-banner-anim > *:nth-child(4) { animation-delay: .36s; }
@keyframes cbRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- About page ---------- */
.cb-collage { position: relative; padding: 0 0 4rem 0; }
.cb-collage .cb-c1 { border-radius: 1.1rem; overflow: hidden; aspect-ratio: 4 / 4.6; width: 78%; box-shadow: 0 30px 60px -30px rgba(10, 20, 45, .5); }
.cb-collage .cb-c2 { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1 / 1; border-radius: 1.1rem; overflow: hidden; border: 8px solid var(--background, #fff); box-shadow: 0 30px 60px -25px rgba(10, 20, 45, .55); }
.cb-collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--cb-ease); }
.cb-collage .cb-c1:hover img, .cb-collage .cb-c2:hover img { transform: scale(1.06); }
.cb-badge { position: absolute; left: 58%; top: 1.5rem; transform: translateX(-50%); background: var(--cb-brass); color: var(--cb-navy-deep); border-radius: 1rem; padding: 1.1rem 1.3rem; box-shadow: 0 20px 40px -20px rgba(10, 20, 45, .5); animation: cbFloat 6s ease-in-out infinite; max-width: 12rem; }
.cb-badge strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; }
.cb-badge span { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .3rem; font-weight: 600; opacity: .75; }
@keyframes cbFloat { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }

.cb-mv { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .cb-mv { grid-template-columns: 1fr 1fr; } }
.cb-mv-card { position: relative; border-radius: 1.25rem; overflow: hidden; min-height: 22rem; color: #fff; padding: 2.5rem; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.cb-mv-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--cb-ease); }
.cb-mv-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(9, 17, 38, .95) 10%, rgba(9, 17, 38, .55) 60%, rgba(9, 17, 38, .3)); transition: background .6s; }
.cb-mv-card:hover img { transform: scale(1.07); }
.cb-mv-card:hover::before { background: linear-gradient(to top, rgba(9, 17, 38, .97) 20%, rgba(9, 17, 38, .75) 100%); }
.cb-mv-card .cb-mv-ic { width: 3rem; height: 3rem; border-radius: 999px; border: 1px solid var(--cb-brass); display: inline-flex; align-items: center; justify-content: center; color: var(--cb-brass); margin-bottom: auto; transition: background .4s, color .4s, transform .6s var(--cb-ease); }
.cb-mv-card:hover .cb-mv-ic { background: var(--cb-brass); color: var(--cb-navy-deep); transform: rotate(360deg); }
.cb-mv-card p { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.65; color: rgba(255, 255, 255, .9); margin-top: 1rem; }

.cb-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border-radius: 1.25rem; overflow: hidden; }
@media (min-width: 1024px) { .cb-stats { grid-template-columns: repeat(4, 1fr); } }
.cb-stats > div { background: var(--cb-navy-deep); padding: 2rem 1.5rem; transition: background .4s; }
.cb-stats > div:hover { background: var(--cb-navy); }
.cb-stats strong { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 500; color: var(--cb-brass); line-height: 1; }
.cb-stats span { display: block; margin-top: .75rem; font-size: .9rem; color: rgba(255, 255, 255, .7); line-height: 1.5; }

.cb-values { display: grid; gap: 1.25rem; margin-top: 3.5rem; }
@media (min-width: 640px) { .cb-values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cb-values { grid-template-columns: repeat(5, 1fr); } }
.cb-value { position: relative; border-radius: 1.1rem; background: var(--card, #fff); border: 1px solid var(--color-border, #e5e7eb); padding: 2rem 1.6rem; overflow: hidden; isolation: isolate; transition: transform .5s var(--cb-ease), box-shadow .5s, border-color .5s; min-height: 15rem; display: flex; flex-direction: column; }
.cb-value::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cb-navy); transform: translateY(101%); transition: transform .55s var(--cb-ease); }
.cb-value .cb-v-num { font-family: var(--font-display); font-size: 3rem; font-weight: 300; line-height: 1; color: color-mix(in oklch, var(--cb-brass) 55%, transparent); transition: color .5s; }
.cb-value h3 { margin-top: auto; padding-top: 1.5rem; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; transition: color .5s; }
.cb-value p { margin-top: .5rem; font-size: .9rem; line-height: 1.6; color: var(--muted-foreground, #64748b); transition: color .5s; }
.cb-value:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -28px rgba(10, 20, 45, .6); border-color: transparent; }
.cb-value:hover::before { transform: none; }
.cb-value:hover .cb-v-num { color: var(--cb-brass); }
.cb-value:hover h3 { color: #fff; }
.cb-value:hover p { color: rgba(255, 255, 255, .75); }

.cb-steps { position: relative; display: grid; gap: 1.25rem; margin-top: 3.5rem; }
@media (min-width: 768px) { .cb-steps { grid-template-columns: repeat(5, 1fr); } }
.cb-step { position: relative; padding: 2rem 1.5rem 1.75rem; border-radius: 1.1rem; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: background .45s, transform .45s var(--cb-ease), border-color .45s; }
.cb-step:hover { background: rgba(255, 255, 255, .09); border-color: color-mix(in oklch, var(--cb-brass) 60%, transparent); transform: translateY(-6px); }
.cb-step .cb-step-n { width: 3rem; height: 3rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; color: var(--cb-navy-deep); background: var(--cb-brass); box-shadow: 0 0 0 6px color-mix(in oklch, var(--cb-brass) 18%, transparent); transition: box-shadow .45s; }
.cb-step:hover .cb-step-n { box-shadow: 0 0 0 10px color-mix(in oklch, var(--cb-brass) 22%, transparent); }
.cb-step h3 { margin-top: 1.4rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: #fff; }
.cb-step p { margin-top: .55rem; font-size: .9rem; line-height: 1.6; color: rgba(255, 255, 255, .68); }

.cb-gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .cb-gallery { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 15rem 15rem; } .cb-gallery > :first-child { grid-row: span 2; } }
.cb-gallery figure { position: relative; margin: 0; border-radius: 1rem; overflow: hidden; min-height: 13rem; }
.cb-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--cb-ease), filter .6s; filter: saturate(.9); }
.cb-gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(9, 17, 38, .8), transparent 55%); opacity: .85; transition: opacity .5s; }
.cb-gallery figcaption { position: absolute; left: 1.25rem; bottom: 1.1rem; right: 1.25rem; z-index: 1; color: #fff; font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; transform: translateY(6px); transition: transform .5s var(--cb-ease); }
.cb-gallery figcaption::before { content: ""; display: block; width: 1.5rem; height: 2px; background: var(--cb-brass); margin-bottom: .5rem; transition: width .5s var(--cb-ease); }
.cb-gallery figure:hover img { transform: scale(1.08); filter: saturate(1.05); }
.cb-gallery figure:hover figcaption { transform: none; }
.cb-gallery figure:hover figcaption::before { width: 3rem; }

/* ---------- Services page: expandable grid ---------- */
.cb-sgrid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 768px) { .cb-sgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cb-sgrid { grid-template-columns: repeat(3, 1fr); } }
.cb-scard { scroll-margin-top: 7rem; border-radius: 1.25rem; overflow: hidden; background: var(--card, #fff); border: 1px solid var(--color-border, #e5e7eb); transition: box-shadow .5s var(--cb-ease), transform .5s var(--cb-ease), border-color .5s; }
.cb-scard:hover { box-shadow: 0 30px 60px -32px rgba(10, 20, 45, .5); transform: translateY(-4px); }
.cb-scard.is-open { border-color: color-mix(in oklch, var(--cb-brass) 60%, transparent); box-shadow: 0 30px 60px -32px rgba(10, 20, 45, .5); }
.cb-scard-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.cb-scard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--cb-ease); }
.cb-scard:hover .cb-scard-media img { transform: scale(1.07); }
.cb-scard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(9, 17, 38, .55), transparent 50%); }
.cb-scard-num { position: absolute; left: 1.25rem; bottom: 1rem; z-index: 1; font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--cb-navy-deep); background: var(--cb-brass); border-radius: 999px; padding: .3rem .75rem; }
.cb-scard-toggle { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.5rem 1.5rem 1.4rem; display: block; color: inherit; font: inherit; }
.cb-scard-toggle h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.cb-scard-toggle p { margin-top: .65rem; font-size: .93rem; line-height: 1.6; color: var(--muted-foreground, #64748b); }
.cb-scard-more { margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cb-navy); }
.cb-scard-more i { width: 1.85rem; height: 1.85rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in oklch, var(--cb-brass) 20%, transparent); color: var(--cb-navy); transition: transform .45s var(--cb-ease), background .3s; font-style: normal; }
.cb-scard-more i svg { width: 1rem; height: 1rem; }
.cb-scard-toggle:hover .cb-scard-more i { background: var(--cb-brass); }
.cb-scard.is-open .cb-scard-more i { transform: rotate(180deg); background: var(--cb-brass); }
.cb-scard-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--cb-ease); }
.cb-scard.is-open .cb-scard-panel { grid-template-rows: 1fr; }
.cb-scard-panel > div { overflow: hidden; }
.cb-scard-panel-inner { margin: 0 1.5rem 1.5rem; padding-top: 1.25rem; border-top: 1px dashed var(--color-border, #e5e7eb); }
.cb-scard-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.cb-scard-panel li { display: flex; gap: .7rem; font-size: .92rem; line-height: 1.55; color: color-mix(in oklch, var(--foreground, #1e293b) 85%, transparent); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--cb-ease); }
.cb-scard.is-open .cb-scard-panel li { opacity: 1; transform: none; }
.cb-scard.is-open .cb-scard-panel li:nth-child(2) { transition-delay: .06s; }
.cb-scard.is-open .cb-scard-panel li:nth-child(3) { transition-delay: .12s; }
.cb-scard.is-open .cb-scard-panel li:nth-child(4) { transition-delay: .18s; }
.cb-scard.is-open .cb-scard-panel li:nth-child(5) { transition-delay: .24s; }
.cb-scard-panel li svg { flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; padding: .2rem; border-radius: 999px; background: color-mix(in oklch, var(--cb-brass) 18%, transparent); color: var(--cb-brass); margin-top: .1rem; }
.cb-scard-note { margin-top: 1.1rem; font-size: .82rem; font-style: italic; color: var(--muted-foreground, #64748b); border-left: 2px solid var(--cb-brass); padding-left: .8rem; }
.cb-scard-link { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; color: var(--cb-navy); }
.cb-scard-link:hover { color: var(--cb-brass); }

/* ---------- Industries page ---------- */
.cb-igrid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cb-igrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cb-igrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .cb-igrid { grid-template-columns: repeat(4, 1fr); } }
.cb-ind { position: relative; aspect-ratio: 4 / 3.6; border-radius: 1.1rem; overflow: hidden; color: #fff; isolation: isolate; transition: transform .5s var(--cb-ease), box-shadow .5s; }
.cb-ind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--cb-ease); }
.cb-ind::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(9, 17, 38, .92) 0%, rgba(9, 17, 38, .3) 55%, rgba(9, 17, 38, .1)); transition: background .5s; }
.cb-ind-num { position: absolute; top: 1.1rem; left: 1.25rem; font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--cb-brass); }
.cb-ind-body { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; }
.cb-ind h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.cb-ind h3::after { content: ""; display: block; width: 1.75rem; height: 2px; background: var(--cb-brass); margin-top: .7rem; transition: width .5s var(--cb-ease); }
.cb-ind-desc { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--cb-ease), opacity .4s, margin .5s; }
.cb-ind-desc > p { overflow: hidden; font-size: .87rem; line-height: 1.55; color: rgba(255, 255, 255, .8); }
.cb-ind:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(10, 20, 45, .6); }
.cb-ind:hover img { transform: scale(1.1); }
.cb-ind:hover::before { background: linear-gradient(to top, rgba(9, 17, 38, .96) 10%, rgba(9, 17, 38, .65) 70%, rgba(9, 17, 38, .4)); }
.cb-ind:hover h3::after { width: 3.25rem; }
.cb-ind:hover .cb-ind-desc { grid-template-rows: 1fr; opacity: 1; margin-top: .7rem; }
@media (hover: none) { .cb-ind .cb-ind-desc { grid-template-rows: 1fr; opacity: 1; margin-top: .7rem; } }
.cb-split { display: grid; border-radius: 1.5rem; overflow: hidden; background: var(--cb-navy-deep); color: #fff; }
@media (min-width: 1024px) { .cb-split { grid-template-columns: 1fr 1.1fr; } }
.cb-split-media { position: relative; min-height: 18rem; overflow: hidden; }
.cb-split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--cb-ease); }
.cb-split:hover .cb-split-media img { transform: scale(1.05); }
.cb-split-body { padding: 3rem 2rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 640px) { .cb-split-body { padding: 4rem 3.5rem; } }

/* ---------- Partnerships list hover ---------- */
.cb-plist { display: grid; gap: .75rem; }
@media (min-width: 640px) { .cb-plist { grid-template-columns: repeat(2, 1fr); } }
.cb-plist li { position: relative; display: flex; align-items: center; gap: .85rem; border-radius: .85rem; border: 1px solid var(--color-border, #e5e7eb); background: var(--card, #fff); padding: 1rem 1.25rem; font-size: .92rem; font-weight: 500; color: var(--foreground, #1e293b); overflow: hidden; isolation: isolate; cursor: default; transition: color .4s, border-color .4s, transform .4s var(--cb-ease), box-shadow .4s; }
.cb-plist li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cb-navy); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--cb-ease); }
.cb-plist li .cb-pi { flex: 0 0 2rem; height: 2rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in oklch, var(--cb-brass) 18%, transparent); color: var(--cb-brass); transition: background .4s, color .4s, transform .45s var(--cb-ease); }
.cb-plist li .cb-pi svg { width: 1rem; height: 1rem; }
.cb-plist li:hover { color: #fff; border-color: transparent; transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(10, 20, 45, .6); }
.cb-plist li:hover::before { transform: scaleX(1); }
.cb-plist li:hover .cb-pi { background: var(--cb-brass); color: var(--cb-navy-deep); transform: rotate(-45deg); }

/* ---------- Misc ---------- */
.cb-img-hover { overflow: hidden; border-radius: 1rem; }
.cb-img-hover img { transition: transform 1.2s var(--cb-ease); }
.cb-img-hover:hover img { transform: scale(1.05); }

/* ---------- Utility fallbacks (not in compiled styles.css) ---------- */
.mb-12 { margin-bottom: 3rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.top-10 { top: 2.5rem; }
.-left-40 { left: -10rem; }
@media (min-width: 1024px) { .lg\:grid-cols-\[1fr_1\.6fr\] { grid-template-columns: 1fr 1.6fr; } }

/* services grid closing tile */
.cb-sgrid-cta { border-radius: 1.25rem; background: var(--cb-paper); border: 1px solid var(--color-border, #e5e7eb); padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; align-self: stretch; position: relative; overflow: hidden; }
.cb-sgrid-cta::after { content: ""; position: absolute; right: -4rem; bottom: -4rem; width: 14rem; height: 14rem; border-radius: 999px; border: 1px solid color-mix(in oklch, var(--cb-brass) 45%, transparent); }
@media (min-width: 1100px) { .cb-sgrid-cta { grid-column: span 2; } }
html, body { overflow-x: clip; }
.cb-cta-card { min-width: 0; }
.cb-cta-inner > * { min-width: 0; }
.cb-cta-card .cb-cta-actions a { white-space: normal; text-align: center; height: auto; min-height: 3rem; padding-top: .6rem; padding-bottom: .6rem; }
@media (max-width: 639px) { .cb-cta-card { padding: 1.5rem; } }

/* Card numbers hidden on request */
.cb-scard-num, .cb-svc-num, .cb-ind-num { display: none !important; }

/* ---------- Responsive refinements (mobile & tablet) ---------- */
/* Header: tighter desktop nav between 1024px and 1279px so it never crowds */
@media (min-width: 1024px) and (max-width: 1279px) {
  header nav[aria-label="Main"] a { padding-left: .7rem; padding-right: .7rem; }
}
/* Mobile menu panel */
header nav[aria-label="Mobile"] { max-height: calc(100dvh - 4.5rem); overflow-y: auto; overscroll-behavior: contain; animation: cbMenuIn .28s var(--cb-ease); box-shadow: 0 24px 40px -24px rgba(10, 20, 45, .35); }
header nav[aria-label="Mobile"] a[aria-current="page"] { color: oklch(56% .11 72); }
header nav[aria-label="Mobile"] a[aria-current="page"]::before { content: ""; display: inline-block; width: .9rem; height: 2px; margin-right: .6rem; vertical-align: middle; background: var(--cb-brass); }
@keyframes cbMenuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
body.cb-menu-open { overflow: hidden; }

/* Our Approach steps: 2 columns on tablet, 5 only on wide screens */
@media (min-width: 640px) and (max-width: 1023px) {
  .cb-steps { grid-template-columns: repeat(2, 1fr); }
  .cb-steps > :last-child { grid-column: span 2; }
}
@media (min-width: 768px) and (max-width: 1023px) { .cb-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cb-steps { grid-template-columns: repeat(5, 1fr); } }

/* People & Partnerships gallery: lead image full width below desktop so no orphan tile */
@media (max-width: 1023px) {
  .cb-gallery > :first-child { grid-column: span 2; min-height: 16rem; }
}

/* About collage badge: keep it readable on small screens */
.cb-badge { width: max-content; }
@media (max-width: 639px) {
  .cb-badge { max-width: 10.5rem; padding: .85rem 1rem; }
  .cb-badge strong { font-size: .95rem; }
}

/* Contact form: label asterisk stays next to the text when it wraps */
label > span.flex { display: block; }
label > span.flex > .text-accent { margin-left: .2rem; }
@media (max-width: 639px) {
  .bg-card.p-8 { padding: 1.5rem; }
  [data-contact-method] a { padding: .45rem .85rem; font-size: .82rem; }
}

/* Footer: Company and Services side by side on phones */
@media (min-width: 360px) and (max-width: 639px) {
  .cb-footer-top { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
  .cb-footer-top > :first-child, .cb-footer-top > :last-child { grid-column: 1 / -1; }
}

/* Long words / headings never force sideways scrolling */
h1, h2, h3 { overflow-wrap: break-word; }

/* Skip link (accessibility + SEO) */
.cb-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--cb-navy-deep); color: #fff; padding: .7rem 1.1rem; border-radius: .6rem; font-size: .9rem; font-weight: 600; transition: top .2s; }
.cb-skip:focus { top: 1rem; outline: 2px solid var(--cb-brass); outline-offset: 2px; }
main { display: block; }

/* Phones only: hide the slider captions in "Who We Are"; keep a light shade at the bottom for the controls */
@media (max-width: 639px) {
  .cb-slide-cap { display: none; }
  .cb-slide::after { background: linear-gradient(to top, rgba(9, 17, 38, .55) 0%, rgba(9, 17, 38, .18) 22%, transparent 40%); }
}

/* Tablets only (incl. large iPads): shorter homepage hero */
@media (min-width: 640px) and (max-width: 1023px), (min-width: 1024px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  .cb-hero { min-height: 58vh; }
  .cb-hero > .relative { padding-top: 7rem; padding-bottom: 4.5rem; }
}

/* Phones only: stronger overlay on the "What We Do" service cards so titles and descriptions read clearly */
@media (max-width: 639px) {
  .cb-svc::before, .cb-svc:hover::before, .cb-svc:focus-visible::before { background: linear-gradient(to top, rgba(9, 17, 38, .97) 0%, rgba(9, 17, 38, .9) 30%, rgba(9, 17, 38, .68) 52%, rgba(9, 17, 38, .35) 72%, rgba(9, 17, 38, .15) 100%); }
  .cb-svc h3, .cb-svc-desc p { text-shadow: 0 1px 10px rgba(9, 17, 38, .55); }
  .cb-svc-desc p { color: rgba(255, 255, 255, .9); }
}
