/* Small additions for the inner-page widgets and templates (v7). Loaded after site.css. */
.cw-feats-cta { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
.cw-cta .cw-lead { margin-top: 22px; max-width: 32em; color: rgba(255,255,255,.72); }
.cw-contact .cw-c-book .cw-lead { max-width: 30em; }
.cw-copy .cw-ctas { margin-top: 8px; }
.cw-copy > p + p { margin-top: 14px; }
.cw-night .cw-copy > p, .cw-night .cw-head p { color: var(--cw-on-dark); }
.cw-night .cw-head h2 span { color: #6C7183; }
.cw-article-img { margin: 0; border-radius: var(--cw-r); overflow: hidden; aspect-ratio: 16 / 8; background: var(--cw-sand); }
.cw-article-img img { width: 100%; height: 100%; object-fit: cover; }
.cw-article-cta { padding-top: 40px; border-top: 1px solid var(--cw-line); }
.cw-article-cta h2 { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.08; margin-bottom: 28px; max-width: 18ch; }
.cw-pager .dots { border: 0; }
.cw-phero--light h1 { max-width: 18ch; }

/* ───────── Claude Design turn 3: interface vignettes on inner pages ───────── */
.cw-phero--light .cw-eyebrow { color: var(--cw-body); }

/* Vignette panel: dark (#05070D with the blue glow) or soft light. Both cards sit fully inside the panel with even
   padding; the second overlaps the first a little. The panel grows to fit, so nothing is ever cut off. */
.cw-vpanel { position: relative; overflow: hidden; border-radius: 28px; isolation: isolate; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 6%, 56px); }
.cw-vpanel--dark { background: radial-gradient(70% 60% at 72% 28%, rgba(47,127,212,.3), rgba(47,127,212,0) 70%), #05070D; }
.cw-vpanel--light { background: linear-gradient(160deg, #E6EDF7, #EFEDE7 70%); }
.cw-vp-a, .cw-vp-b { position: relative; zoom: .92; }
.cw-vp-a { width: 82%; align-self: flex-start; z-index: 1; }
.cw-vp-b { width: 72%; align-self: flex-end; margin-top: -10%; z-index: 2; }
.cw-vpanel--one .cw-vp-a { width: 92%; align-self: center; }
.cw-phero--split .cw-vp-a, .cw-phero--split .cw-vp-b { zoom: 1; }
.cw-vpanel--dark .cw-v { box-shadow: 0 1px 2px rgba(5,7,13,.2), 0 40px 80px -28px rgba(0,0,0,.75); }

/* Page hero: split (service and industry pages) */
.cw-phero--split { display: block; min-height: 0; background: var(--cw-page); padding: 140px var(--cw-edge) clamp(56px, 6vw, 96px); }
.cw-phero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 5vw, 88px); align-items: center; }
.cw-phero-copy h1 { margin-top: 18px; font-size: clamp(42px, 5.3vw, 80px); line-height: .98; letter-spacing: -0.04em; max-width: 12ch; }
.cw-phero-copy .cw-lead { margin-top: 26px; max-width: 30em; color: #3A3D45; }
.cw-phero-copy .cw-ctas { margin-top: 32px; }
.cw-phero--split .cw-vpanel { min-height: clamp(440px, 40vw, 600px); animation: cw-fade 1s .15s var(--cw-ease) both; }

/* Page hero: editorial (overview pages). Five cards at three depths around a centred, light headline. */
.cw-phero--editorial { display: block; height: clamp(840px, 100svh, 1000px); min-height: 0; background: var(--cw-page); }
.cw-ed-in { position: relative; z-index: 5; max-width: 1100px; margin: 0 auto; padding: clamp(150px, 21vh, 200px) var(--cw-pad) 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cw-ed-in .cw-crumbs { justify-content: center; }
.cw-ed-in h1 { margin-top: 16px; font-weight: 300; font-size: clamp(46px, 7.8vw, 112px); line-height: .98; letter-spacing: -0.05em; max-width: 14ch; }
.cw-ed-in .cw-lead { margin: 28px auto 0; max-width: 560px; color: #4A4D55; }
.cw-ed-in .cw-ctas { justify-content: center; margin-top: 32px; }
.cw-ed-card { position: absolute; z-index: 1; transition: transform .7s var(--cw-ease); }
.cw-ed-float { animation: cw-ed-float 12s ease-in-out infinite alternate; }
.cw-ed-2 .cw-ed-float { animation-delay: -3s; } .cw-ed-3 .cw-ed-float { animation-delay: -6s; } .cw-ed-4 .cw-ed-float { animation-delay: -9s; } .cw-ed-5 .cw-ed-float { animation-delay: -4s; }
@keyframes cw-ed-float { to { transform: translateY(-4px); } }
.cw-ed-far { filter: blur(1.4px); opacity: .9; transform: translate(calc(var(--mx, 0) * -6px), calc(var(--my, 0) * -6px)) scale(.82); }
.cw-ed-mid { transform: translate(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -14px)); }
.cw-ed-near { transform: translate(calc(var(--mx, 0) * -24px), calc(var(--my, 0) * -24px)); }
.cw-ed-1 { left: 2.8%; top: 16.7%; width: min(330px, 23%); }
.cw-ed-2 { left: 76.4%; top: 13.3%; width: min(300px, 20.8%); }
.cw-ed-3 { left: 6.7%; top: 66.7%; width: min(320px, 22.2%); z-index: 3; }
.cw-ed-4 { left: 72.2%; top: 62%; width: min(330px, 23%); z-index: 4; }
/* Anchored to the bottom edge and cropped by it, so longer intros never run into it. */
.cw-ed-5 { left: 34.7%; top: auto; bottom: -96px; width: min(440px, 30.6%); z-index: 4; }

/* Page hero: dark, the blue glow instead of the video */
.cw-phero--glow { background: radial-gradient(60% 70% at 78% 40%, rgba(47,127,212,.32), rgba(47,127,212,0) 70%), var(--cw-night); }
.cw-phero--glow::before { display: none; }

/* Split section with vignette media */
.cw-media--v { aspect-ratio: auto; }
.cw-night .cw-vpanel--dark { background: radial-gradient(70% 60% at 72% 28%, rgba(47,127,212,.3), rgba(47,127,212,0) 70%), #0E1424; }

/* Intro: interface collage instead of photos */
.cw-vcollage { grid-column: 1 / -1; position: relative; margin-top: clamp(56px, 7vw, 104px); height: clamp(400px, 42vw, 580px); border-radius: 28px; overflow: hidden; isolation: isolate; background: radial-gradient(60% 70% at 70% 30%, rgba(47,127,212,.3), rgba(47,127,212,0) 70%), #05070D; }
.cw-vcollage > div { position: absolute; }
.cw-vc-web { left: 6%; top: 12%; width: 52%; z-index: 1; }
.cw-vc-crm { left: 52%; top: 8%; width: 40%; z-index: 2; }
.cw-vc-fol { left: 38%; top: 54%; width: 34%; z-index: 3; }
.cw-vcollage .cw-v { box-shadow: 0 40px 80px -28px rgba(0,0,0,.75); }

/* Services accordion: vignette in place of the photo */
.cw-acc-grid .cw-ph--v { aspect-ratio: auto; overflow: visible; box-shadow: none; border-radius: 0; align-self: start; }
.cw-acc-grid .cw-ph--v .cw-v { box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }

/* Walkthrough: card stack in place of the sticky photo */
.cw-walk .cw-ph--v { background: radial-gradient(70% 60% at 70% 25%, rgba(47,127,212,.3), rgba(47,127,212,0) 70%), #05070D; box-shadow: none; }
.cw-walk-v { position: absolute; inset: 0; animation: cw-fade .6s var(--cw-ease); }
.cw-walk-v[hidden] { display: none; }
.cw-walk-v1, .cw-walk-v2 { position: absolute; }
.cw-walk-v1 { left: 8%; top: 8%; width: 84%; }
.cw-walk-v2 { left: 22%; top: 50%; width: 74%; z-index: 2; }
.cw-walk .cw-ph--v .cw-v { box-shadow: 0 40px 80px -28px rgba(0,0,0,.75); }

/* Industries: typographic cards, no photos */
.cw-ind--type { position: relative; display: flex; flex-direction: column; min-height: 360px; padding: 28px; border-radius: var(--cw-r-m); background: var(--cw-white); border: 1px solid rgba(11,12,14,.05); color: var(--cw-body); transition: transform .5s var(--cw-ease), box-shadow .5s var(--cw-ease); }
.cw-ind--type:hover { transform: translateY(-4px); box-shadow: var(--cw-sh-2); }
.cw-ind--type small { font-size: 13px; color: var(--cw-muted); padding-right: 48px; }
.cw-ind--type h3 { font-size: 28px; line-height: 1.05; margin: 10px 0 auto; padding-right: 48px; }
.cw-ind--type ol { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: s; font-size: 14px; }
.cw-ind--type li { display: grid; grid-template-columns: 1fr; padding: 9px 0; border-top: 1px solid var(--cw-line); color: var(--cw-ink); }
.cw-ind--type li::before { content: none; }
.cw-ind--type .cw-go { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--cw-line); display: grid; place-items: center; color: var(--cw-ink); transition: background-color .3s, color .3s, transform .45s var(--cw-ease); }
.cw-ind--type:hover .cw-go { background: var(--cw-ink); color: #fff; border-color: var(--cw-ink); transform: rotate(-45deg); }
.cw-ind--dark { background: var(--cw-night); border-color: transparent; color: var(--cw-on-dark); }
.cw-ind--dark small { color: #8B91A2; } /* 6.2:1 on night (device QA 11) */
.cw-ind--dark h3 { color: #fff; } .cw-ind--dark li { border-color: var(--cw-line-d); color: #DCE0E8; }
.cw-ind--dark .cw-go { border-color: var(--cw-line-d); color: #fff; }
.cw-ind--dark:hover .cw-go { background: #fff; color: var(--cw-ink); }

@media (max-width: 1080px) {
  /* Split hero keeps two columns down to 900 (device QA 17): stacked at 1024 it left the right half empty. */
  .cw-phero--split .cw-vpanel { min-height: 0; }
  .cw-phero--editorial { height: auto; padding-bottom: 0; display: flex; flex-direction: column; }
  .cw-ed-card { display: none; }
  /* The one card left sits under the copy, as on desktop, never over the breadcrumb (device QA 5). */
  .cw-ed-in { order: 1; }
  .cw-ed-5 { order: 2; display: block; position: relative; left: auto; top: auto; bottom: auto; width: min(560px, 92%); margin: 48px auto -48px; transform: none; }
  .cw-vc-web { width: 84%; } .cw-vc-crm { left: 30%; top: 46%; width: 66%; } .cw-vc-fol { display: none; }
}
@media (max-width: 900px) {
  .cw-phero-split { grid-template-columns: 1fr; }
  .cw-phero--split { padding-top: 124px; }

}
@media (max-width: 640px) {
  .cw-phero--split { padding: 116px 22px 48px; }
  .cw-vpanel { padding: 20px; } .cw-vp-a, .cw-vp-b { zoom: .86; } .cw-vp-a { width: 96%; } .cw-vp-b { width: 90%; margin-top: -6%; }
  .cw-ed-in { padding: 124px 22px 0; }
  .cw-vcollage { height: 420px; } .cw-vc-web { left: 5%; width: 90%; } .cw-vc-crm { left: 14%; top: 50%; width: 86%; }
  .cw-walk-v1 { left: 6%; width: 88%; } .cw-walk-v2 { left: 14%; top: 46%; width: 82%; }
  .cw-ind--type { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .cw-ed-float { animation: none; }
  .cw-ed-far, .cw-ed-mid, .cw-ed-near { transition: none; }
}

/* ───────── Pages workstream (cw-pg-* widgets, page.php, 404) ───────── */
/* Feature cards: no 01 to 04 numerals on inner pages (design review item 5). Home keeps its own. */
body:not(.home) .cw-feat .cw-n { display: none; }
/* Text starts at the top of every card, so no empty band where the numerals were (QA pass 2, N8).
   A linked card keeps its arrow top right, clear of the title. */
body:not(.home) .cw-feat { min-height: 0; }
body:not(.home) .cw-feat h3 { margin-top: 0; padding-top: 0; }
body:not(.home) a.cw-feat h3 { padding-right: 52px; }

/* Problem statement */
.cw-pgp--white { background: var(--cw-white); }
.cw-pgp .cw-head { margin-bottom: 0; }
.cw-pgp-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin-top: clamp(44px, 5.4vw, 80px); }
.cw-pgp-list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cw-pgp-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cw-pgp-item { padding-top: 26px; border-top: 1px solid var(--cw-line); }
.cw-pgp-item h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.18; letter-spacing: -0.025em; max-width: 16em; }
.cw-pgp-item p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; max-width: 26em; }

/* What you can count on */
.cw-pga--white { background: var(--cw-white); }
.cw-pga-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cw-pga-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cw-pga-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cw-pga-col { padding: 4px clamp(20px, 2.4vw, 36px) 0; border-left: 1px solid var(--cw-line); }
.cw-pga-col:first-child { padding-left: 0; border-left: 0; }
.cw-pga-col h3 { font-size: var(--cw-fs-h3); line-height: 1.12; }
.cw-pga-col > p { margin-top: 10px; font-size: 15.5px; }
.cw-pga-col .cw-ticks { margin: 24px 0 0; }
.cw-pga-col .cw-ticks li { font-size: 15px; padding: 13px 0; }
.cw-night .cw-pga-col { border-color: var(--cw-line-d); }
.cw-night .cw-pga-col > p { color: var(--cw-on-dark); }
.cw-night .cw-ticks li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23070B16' stroke-width='1.6'/%3E%3C/svg%3E"); }

/* Related links */
.cw-pgl .cw-head { margin-bottom: clamp(32px, 3.6vw, 52px); }
.cw-pgl .cw-head h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.04; }
.cw-pgl-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.cw-pgl-groups--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cw-pgl-groups--1 { grid-template-columns: 1fr; }
.cw-pgl-group h3, .cw-pgl-gap { display: block; height: 30px; margin: 0; font: 500 13px/1 var(--cw-sans); letter-spacing: 0; color: var(--cw-body); }
.cw-pgl-group ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cw-line); }
.cw-pgl-group a { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--cw-line); color: var(--cw-ink); transition: color .3s var(--cw-ease); }
.cw-pgl-group b { font: 500 clamp(17px, 1.3vw, 19px)/1.3 var(--cw-display); letter-spacing: -0.015em; }
.cw-pgl-group a span { grid-column: 1; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--cw-body); }
.cw-pgl-group a i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--cw-line); display: grid; place-items: center; transition: background-color .3s var(--cw-ease), color .3s var(--cw-ease), border-color .3s var(--cw-ease), transform .45s var(--cw-ease); }
.cw-pgl-group a:hover b { color: var(--cw-blue); }
.cw-pgl-group a:hover i { background: var(--cw-ink); border-color: var(--cw-ink); color: #fff; transform: rotate(-45deg); }
.cw-pgl--404 { padding-top: clamp(40px, 4.4vw, 64px); }
.cw-pgl--404 .cw-pgl-group ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); border-top: 0; }
.cw-pgl--404 .cw-pgl-group li { border-top: 1px solid var(--cw-line); }
.cw-pgl--404 .cw-pgl-group a { border-bottom: 0; }

/* Rows */
.cw-pgr-rows { margin: 0; border-top: 1px solid var(--cw-line); }
.cw-pgr-row { display: grid; grid-template-columns: 1fr 2.4fr; gap: 40px; padding: clamp(24px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--cw-line); }
.cw-pgr-rows--aside .cw-pgr-row { grid-template-columns: 1fr 1.55fr .85fr; }
.cw-pgr-row dt { font: 500 clamp(18px, 1.5vw, 22px)/1.2 var(--cw-display); letter-spacing: -0.02em; color: var(--cw-ink); }
.cw-pgr-row dd { margin: 0; }
.cw-pgr-row h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; letter-spacing: -0.025em; }
.cw-pgr-row dd p { margin-top: 8px; font-size: 15.5px; max-width: 34em; }
.cw-pgr-aside { font-size: 15px; line-height: 1.5; color: var(--cw-ink); }
.cw-pgr-aside small { display: block; margin-bottom: 6px; font-size: 13px; color: var(--cw-muted); }

/* Plain pages (Privacy, Terms): contents list beside the text */
.cw-phero--doc h1 { max-width: 20ch; }
.cw-doc { padding-top: clamp(48px, 5vw, 80px); }
.cw-doc-toc { position: sticky; top: 108px; max-height: calc(100vh - 140px); overflow: auto; padding-right: 12px; }
.cw-doc-toc p { font-size: 13px; color: var(--cw-muted); margin-bottom: 14px; }
.cw-doc-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cw-line); }
.cw-doc-toc li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--cw-line); font-size: 14px; line-height: 1.4; color: var(--cw-body); transition: color .3s var(--cw-ease); }
.cw-doc-toc li a:hover { color: var(--cw-ink); }
.cw-doc .cw-prose h2 { scroll-margin-top: 110px; }
.cw-doc .cw-prose h2:first-child { margin-top: 0; }
.cw-doc .cw-prose { max-width: 32em; } /* about 70 characters a line (device QA 1) */

@media (max-width: 1080px) {
  .cw-pgp-list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .cw-pga-cols, .cw-pga-cols--4 { grid-template-columns: 1fr; gap: 40px; }
  .cw-pga-col { padding: 0; border-left: 0; }
  .cw-pgl-groups--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cw-pgr-rows--aside .cw-pgr-row { grid-template-columns: 1fr 2fr; }
  .cw-pgr-rows--aside .cw-pgr-aside { grid-column: 2; }
  .cw-doc-toc { position: static; max-height: 300px; margin-bottom: 8px; }
}
@media (max-width: 640px) {
  .cw-pgp-list, .cw-pgp-list--4, .cw-pgp-list--2 { grid-template-columns: 1fr; row-gap: 28px; }
  .cw-pgl-groups, .cw-pgl-groups--3 { grid-template-columns: 1fr; }
  .cw-pgl-gap { display: none; }
  .cw-pgl-group + .cw-pgl-group { margin-top: 32px; }
  .cw-pgl-group:has(.cw-pgl-gap) { margin-top: 0; }
  .cw-pgl-group:has(.cw-pgl-gap) ul { border-top: 0; }
  .cw-pgl--404 .cw-pgl-group ul { grid-template-columns: 1fr; }
  .cw-pgr-row, .cw-pgr-rows--aside .cw-pgr-row { grid-template-columns: 1fr; gap: 10px; }
  .cw-pgr-rows--aside .cw-pgr-aside { grid-column: 1; margin-top: 6px; }
}
