/* Case studies, December 2026. Hub and detailed pages. Classes are prefixed cx-.
   Follows the Associate Programme page: Input Sans headings, photo-and-gradient heroes, one object lifted over the hero. */
.cx { --night:#1b1436; --plum:#3a1f6b; --violet:#5a328a; --lift:#7b4db5; --teal:#89d5d2; --teal-d:#1b6f6a; --sky:#e1ecf6; --mint:#d9f1ef; --lilac:#efe7f9; --paper:#fbfafd; --ink:#1a1a2e; --dim:#4b4c5f; --sun:#ffd27a; --a:#89d5d2;
  color:var(--ink); background:var(--paper); overflow:hidden; }
.cx h1,.cx h2,.cx h3 { font-weight:400; letter-spacing:-.035em; word-spacing:-.18em; text-wrap:balance; }
.cx h2 { font-size:clamp(1.9rem,3.8vw,3rem); line-height:1.1; color:var(--violet); }
.cx h3 { font-size:clamp(1.15rem,1.9vw,1.45rem); line-height:1.22; color:var(--violet); }
.cx p { line-height:1.62; }
.cx .btn { letter-spacing:0; }
.cx-wrap { max-width:1200px; margin:0 auto; padding:0 24px; }
.cx-lead { max-width:700px; margin-top:16px; font-size:1.16rem; color:var(--dim); }
.cx-sec { padding:100px 0; position:relative; }
.cx-sec.tint { background:linear-gradient(180deg,rgba(225,236,246,0),#eee8f7 100%); }
.cx-sec.sky { background:linear-gradient(120deg,#e1ecf6,#d9f1ef); }
.cx-sec.dark { color:#fff; background:linear-gradient(130deg,#1b1436 0%,#3a1f6b 70%,#1b5560 130%); }
.cx-sec.dark h2,.cx-sec.dark h3 { color:#fff; } .cx-sec.dark .cx-lead { color:rgba(255,255,255,.84); }
.cx a:focus-visible,.cx button:focus-visible { outline:3px solid var(--sun); outline-offset:3px; border-radius:6px; }

/* hero */
.cx-hero { position:relative; min-height:660px; display:flex; align-items:flex-end; padding:150px 0 220px; color:#fff; background:var(--night); isolation:isolate; }
.cx-hero.nolift { padding-bottom:90px; }
.cx-hero > picture,.cx-hero > img { position:absolute; inset:0; z-index:-2; } .cx-hero > picture img,.cx-hero > img { width:100%; height:100%; object-fit:cover; object-position:var(--pos,center 50%); }
.cx-hero::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(27,20,54,.94) 0%,rgba(40,24,82,.80) 45%,rgba(27,20,54,.18) 100%),linear-gradient(0deg,rgba(27,20,54,.88) 0%,rgba(27,20,54,0) 46%); }
.cx-hero .cx-wrap { width:100%; }
.cx-back { display:inline-block; margin-bottom:30px; color:rgba(255,255,255,.8); } .cx-back:hover { color:var(--teal); }
.cx-logo { display:block; height:54px; width:auto; max-width:230px; object-fit:contain; object-position:left center; margin-bottom:26px; } .cx-logo.chip { background:#fff; padding:9px 16px; border-radius:12px; height:62px; } .cx-logo.white { filter:brightness(0) invert(1); }
.cx-name { margin-bottom:20px; font-family:var(--font-heading); font-size:1.15rem; letter-spacing:-.02em; color:var(--teal); }
.cx .cx-hero h1 { font-size:clamp(2.5rem,5.7vw,5rem); line-height:1; letter-spacing:-.052em; color:#fff; max-width:900px; }
.cx-sub { margin-top:24px; max-width:620px; font-size:clamp(1.08rem,1.6vw,1.28rem); color:rgba(255,255,255,.9); }
.cx-facts { display:flex; flex-wrap:wrap; gap:14px 46px; margin-top:34px; } .cx-facts div { max-width:290px; font-size:.95rem; color:rgba(255,255,255,.7); } .cx-facts b { display:block; margin-top:3px; font-family:var(--font-semibold); font-weight:400; font-size:1.06rem; line-height:1.35; color:#fff; }

/* the stage: the page's one big drawing, lifted over the hero */
.cx-stage { position:relative; z-index:2; margin-top:-140px; padding-bottom:30px; }
.cx-stage figure { margin:0; border-radius:22px; overflow:hidden; background:#120d27; color:#fff; box-shadow:0 0 0 10px rgba(255,255,255,.16),0 40px 90px rgba(27,20,54,.42); }
.cx-stage.light figure { background:#fff; color:var(--ink); }
.cx-stage svg,.cx-stage canvas,.cx-draw svg { display:block; width:100%; height:auto; }
.cx-stage figcaption,.cx-draw figcaption { padding:16px 28px 22px; font-size:.98rem; line-height:1.5; color:rgba(255,255,255,.78); } .cx-stage.light figcaption,.cx-draw figcaption { color:var(--dim); }
.cx-ctl { display:flex; flex-wrap:wrap; gap:10px; padding:20px 28px 0; } .cx-ctl button { font:inherit; font-size:.98rem; padding:9px 18px; border:2px solid rgba(255,255,255,.35); border-radius:999px; background:none; color:#fff; cursor:pointer; } .cx-ctl button[aria-pressed=true] { background:var(--a); border-color:var(--a); color:#14202f; }
.cx-stage.light .cx-ctl button { border-color:#cdbbe8; color:var(--violet); } .cx-stage.light .cx-ctl button[aria-pressed=true] { background:var(--violet); border-color:var(--violet); color:#fff; }
.cx svg text { font-family:var(--font-body); } .cx svg .h { font-family:var(--font-heading); letter-spacing:-.03em; }

/* story: prose beside a fixed panel */
.cx-story { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:70px; align-items:start; }
.cx-prose p { margin-top:18px; max-width:690px; font-size:1.1rem; line-height:1.7; color:#33344a; } .cx-prose h2 + p { margin-top:22px; font-size:1.24rem; line-height:1.6; color:var(--ink); }
.cx-prose h2:not(:first-child) { margin-top:60px; }
.cx-prose ul { margin-top:18px; max-width:690px; } .cx-prose li { position:relative; padding:9px 0 9px 34px; line-height:1.55; color:#33344a; } .cx-prose li::before { content:""; position:absolute; left:2px; top:17px; width:16px; height:6px; border-radius:3px; background:var(--a); }
.cx-side { position:sticky; top:110px; padding:30px; border-radius:24px 24px 24px 6px; background:var(--mint); } .cx-side.lilac { background:var(--lilac); } .cx-side h3 { margin-bottom:8px; } .cx-side dl { margin:0; } .cx-side dt { margin-top:16px; font-size:.93rem; color:#4f5767; } .cx-side dd { margin:2px 0 0; font-family:var(--font-semibold); line-height:1.4; color:var(--ink); }

/* drawings inside the page */
.cx-draw { margin:44px 0 0; border-radius:22px; background:#fff; box-shadow:0 18px 50px rgba(58,31,107,.12); overflow:hidden; } .cx-sec.dark .cx-draw { background:rgba(255,255,255,.07); box-shadow:none; } .cx-sec.dark .cx-draw figcaption { color:rgba(255,255,255,.75); }

/* split: photo and words */
.cx-split { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; } .cx-split.flip > :first-child { order:2; }
.cx-split p { margin-top:18px; font-size:1.08rem; color:#33344a; } .dark .cx-split p { color:rgba(255,255,255,.86); }
.cx-photo { margin:0; border-radius:26px; overflow:hidden; box-shadow:0 26px 60px rgba(27,20,54,.25); } .cx-photo img { width:100%; aspect-ratio:4/3.3; object-fit:cover; object-position:var(--pos,center); } .cx-photo.a { border-bottom-left-radius:6px; } .cx-photo.b { border-bottom-right-radius:6px; }

/* what we built: uneven grid */
.cx-bento { display:grid; grid-template-columns:repeat(12,1fr); gap:22px; margin-top:46px; }
.cx-bento article { grid-column:span 4; position:relative; overflow:hidden; padding:32px; border-radius:24px; background:#fff; box-shadow:0 14px 40px rgba(58,31,107,.10); } .cx-bento p { margin-top:10px; color:var(--dim); }
.cx-bento .w5{grid-column:span 5}.cx-bento .w6{grid-column:span 6}.cx-bento .w7{grid-column:span 7}.cx-bento .w8{grid-column:span 8}.cx-bento .w12{grid-column:span 12}
.cx-bento .plum { background:linear-gradient(140deg,#3a1f6b,#5a328a); } .cx-bento .plum h3 { color:#fff; } .cx-bento .plum p { color:rgba(255,255,255,.86); }
.cx-bento .teal { background:var(--teal); } .cx-bento .teal p { color:#14302f; } .cx-bento .mint { background:var(--mint); } .cx-bento .sky { background:var(--sky); } .cx-bento .sun { background:#fff1d2; }
.cx-bento .pic { min-height:270px; display:flex; flex-direction:column; justify-content:flex-end; } .cx-bento .pic img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; } .cx-bento .pic::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(27,20,54,.1),rgba(27,20,54,.92) 78%); } .cx-bento .pic h3,.cx-bento .pic p { position:relative; z-index:1; color:#fff; }
.cx-bento svg { display:block; width:100%; height:auto; margin-bottom:20px; }

/* sequence */
.cx-path { list-style:none; display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:28px; margin-top:54px; counter-reset:s; position:relative; } .cx-path::before { content:""; position:absolute; left:30px; right:18%; top:33px; border-top:5px dotted #9d86c4; }
.cx-path li { position:relative; counter-increment:s; } .cx-path li::before { content:counter(s); position:relative; display:flex; align-items:center; justify-content:center; width:70px; height:70px; border-radius:50%; background:var(--violet); color:#fff; font-family:var(--font-heading); font-size:1.6rem; box-shadow:0 0 0 10px rgba(255,255,255,.65); } .cx-path li:last-child::before { background:var(--teal); color:#14302f; }
.cx-path h3 { margin-top:24px; } .cx-path p { margin-top:8px; color:var(--dim); line-height:1.5; }

/* before and after */
.cx-ba { display:grid; grid-template-columns:1fr 90px 1.12fr; align-items:stretch; margin-top:46px; } .cx-ba > div { padding:36px 34px; border-radius:28px; } .cx-ba .bf { background:var(--sky); border-bottom-right-radius:6px; } .cx-ba .af { color:#fff; background:linear-gradient(150deg,#5a328a,#2b1a57); box-shadow:0 30px 60px rgba(58,31,107,.32); } .cx-ba .af h3 { color:#fff; } .cx-ba li { padding:11px 0; border-top:1px solid rgba(90,50,138,.18); line-height:1.5; } .cx-ba .af li { border-color:rgba(255,255,255,.22); } .cx-ba ul { margin-top:16px; } .cx-ba > svg { width:64px; place-self:center; fill:none; stroke:var(--lift); stroke-width:4; stroke-linecap:round; stroke-linejoin:round; }

/* photo band with a client's words or one plain point */
.cx-band { position:relative; padding:120px 0; color:#fff; isolation:isolate; background:var(--night); } .cx-band > img { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:var(--pos,center); } .cx-band::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(95deg,rgba(43,26,87,.95) 0%,rgba(58,31,107,.80) 55%,rgba(27,85,96,.5) 100%); }
.cx-band blockquote { margin:0; max-width:900px; font-family:var(--font-heading); font-size:clamp(1.45rem,2.9vw,2.35rem); line-height:1.28; letter-spacing:-.04em; word-spacing:-.16em; } .cx-band cite { display:block; margin-top:26px; font-style:normal; font-size:1.06rem; color:rgba(255,255,255,.86); } .cx-band cite b { display:block; font-family:var(--font-semibold); font-weight:400; color:var(--teal); font-size:1.15rem; } .cx-band .long { margin-top:26px; max-width:760px; color:rgba(255,255,255,.86); }

/* outcomes */
.cx-out { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); margin-top:44px; } .cx-out article { padding:8px 34px 8px 0; } .cx-out article + article { padding-left:34px; border-left:3px solid var(--a); } .cx-out .big { font-family:var(--font-heading); font-size:clamp(1.9rem,3.3vw,2.9rem); line-height:1.06; letter-spacing:-.05em; word-spacing:-.2em; color:var(--violet); } .dark .cx-out .big { color:var(--teal); } .cx-out p { margin-top:12px; color:var(--dim); } .dark .cx-out p { color:rgba(255,255,255,.84); }
.cx-note { margin-top:40px; max-width:820px; padding:20px 26px; border-radius:16px; background:var(--lilac); color:#33344a; } .dark .cx-note { background:rgba(255,255,255,.1); color:rgba(255,255,255,.88); }

/* more work, and the hub cards */
.cx-cards { display:grid; grid-template-columns:repeat(12,1fr); gap:22px; margin-top:40px; }
.cx-card { grid-column:span 4; position:relative; display:flex; flex-direction:column; justify-content:flex-end; min-height:360px; padding:28px; border-radius:24px; overflow:hidden; isolation:isolate; color:#fff; background:var(--plum); box-shadow:0 16px 40px rgba(27,20,54,.2); } .cx-card.w6{grid-column:span 6}.cx-card.w8{grid-column:span 8}.cx-card.w12{grid-column:span 12;min-height:460px}
.cx-card img { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.7,.2,1); } .cx-card::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,rgba(27,20,54,.12) 0%,rgba(27,20,54,.55) 45%,rgba(27,20,54,.95) 100%); } .cx-card:hover img { transform:scale(1.05); }
.cx-card span { font-size:.98rem; color:var(--teal); } .cx .cx-card h3 { margin-top:6px; color:#fff; font-size:clamp(1.3rem,2vw,1.75rem); } .cx-card.w8 h3,.cx-card.w12 h3 { font-size:clamp(1.6rem,3vw,2.5rem) !important; max-width:640px; } .cx-card p { margin-top:8px; line-height:1.5; color:rgba(255,255,255,.86); max-width:560px; }
.cx-card[hidden] { display:none; }
.cx-filter { display:flex; flex-wrap:wrap; gap:10px; margin-top:30px; } .cx-filter button { font:inherit; padding:10px 20px; border-radius:999px; border:2px solid #cdbbe8; background:#fff; color:var(--violet); cursor:pointer; } .cx-filter button[aria-pressed=true] { background:var(--violet); border-color:var(--violet); color:#fff; }
.cx-uses { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:44px; } .cx-uses article { padding:30px; border-radius:24px; background:rgba(255,255,255,.8); } .cx-uses svg { width:64px; height:64px; margin-bottom:16px; fill:none; stroke:var(--violet); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; } .cx-uses p { margin-top:8px; color:var(--dim); } .cx-uses ul { margin-top:14px; } .cx-uses li { padding:5px 0; } .cx-uses a { color:var(--violet); text-decoration:underline; text-underline-offset:3px; }
.cx-mosaic { position:absolute; inset:0; z-index:-2; display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:minmax(0,1fr); overflow:hidden; } .cx-mosaic img { width:100%; height:100%; object-fit:cover; }

/* close */
.cx-cta { position:relative; overflow:hidden; padding:110px 0; text-align:center; color:#fff; background:linear-gradient(120deg,#1b1436,#3a1f6b 60%,#2b1a57); } .cx .cx-cta h2 { color:#fff; } .cx-cta p { max-width:620px; margin:18px auto 0; color:rgba(255,255,255,.88); font-size:1.14rem; } .cx-cta .btns { display:flex; flex-wrap:wrap; gap:14px; justify-content:center; margin-top:32px; } .cx-cta .btn-primary { background:var(--teal); color:#14302f; } .cx-cta .btn-secondary { border:2px solid rgba(255,255,255,.75); color:#fff; } .cx-cta .btn:hover { background:#fff; color:var(--violet); }
.cx-cta svg { position:absolute; right:-90px; top:-60px; width:640px; fill:#fff; opacity:.05; pointer-events:none; }

@media (prefers-reduced-motion:no-preference) {
  .cx-run { stroke-dasharray:7 11; animation:cxrun 1.6s linear infinite; } @keyframes cxrun { to { stroke-dashoffset:-36; } }
  .cx-pulse { animation:cxpulse 2.8s ease-in-out infinite; animation-delay:calc(var(--i,0)*.22s); } @keyframes cxpulse { 50% { opacity:.35; } }
}
@media (max-width:1000px) {
  .cx-story,.cx-split { grid-template-columns:1fr; gap:40px; } .cx-split.flip > :first-child { order:0; } .cx-side { position:static; }
  .cx-bento article,.cx-bento .w5,.cx-bento .w6,.cx-bento .w7,.cx-bento .w8 { grid-column:span 12; } .cx-card,.cx-card.w6,.cx-card.w8 { grid-column:span 6; } .cx-uses { grid-template-columns:1fr 1fr; }
  .cx-ba { grid-template-columns:1fr; gap:16px; } .cx-ba > svg { transform:rotate(90deg); width:48px; }
  .cx-path { grid-auto-flow:row; gap:30px; } .cx-path::before { left:32px; right:auto; top:20px; bottom:90px; border-top:0; border-left:5px dotted #9d86c4; } .cx-path li { padding-left:100px; min-height:72px; } .cx-path li::before { position:absolute; left:0; top:0; } .cx-path h3 { margin-top:0; padding-top:10px; }
}
@media (max-width:640px) {
  .cx-sec { padding:64px 0; } .cx-wrap { padding:0 18px; } .cx-hero { min-height:0; padding:120px 0 150px; } .cx-hero.nolift { padding-bottom:60px; } .cx-hero::before { background:linear-gradient(0deg,rgba(27,20,54,.95),rgba(27,20,54,.66)); } .cx-stage { margin-top:-100px; } .cx-stage figure { border-radius:16px; box-shadow:0 0 0 5px rgba(255,255,255,.16),0 24px 50px rgba(27,20,54,.4); }
  .cx-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; } .cx-scroll > svg { min-width:760px; } .cx-ctl { padding:16px 18px 0; } .cx-stage figcaption,.cx-draw figcaption { padding:14px 18px 18px; }
  .cx-out article,.cx-out article + article { padding:20px 0; border-left:0; } .cx-out article + article { border-top:3px solid var(--a); } .cx-card,.cx-card.w6,.cx-card.w8,.cx-card.w12 { grid-column:span 12; min-height:320px; } .cx-uses { grid-template-columns:1fr; } .cx-band { padding:80px 0; } .cx-mosaic { grid-template-columns:1fr 1fr; }
}
