/* ABECODS inner pages: Insights and Case studies (round 2: organised by journey stage).
   Shared components on top of v3 (v3.css, v3-layer.css, v3-r4.css); tokens come from v3.css :root.
   Radius system: cards 16px (--r-card), inputs 12px, pills and buttons fully rounded. One accent: lime. */

/* ---------- Frame ---------- */
body.inner { background: var(--bg); color: var(--text); font-family: var(--body); }
/* Small labels and captions use --faint; on these pages it is raised to pass WCAG AA (4.5:1) on the dark canvas */
body.inner { --faint: rgba(243, 240, 232, 0.62); }
.ix-main { padding-top: var(--hdr-h); }
.ix-sec { padding-block: clamp(3.5rem, 7vw, 6rem); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0.8rem 2rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.sec-head h2 { font-size: clamp(34px, 4.2vw, 64px); line-height: 1; }
.sec-head > p { grid-column: 1 / -1; max-width: 52ch; color: var(--muted); font-size: 17px; margin-top: -0.2rem; }
.ti-h { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); margin-bottom: 0.9rem; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs i { font-size: 11px; color: var(--faint); }
.crumbs [aria-current] { color: var(--text); }

/* Tags: category (icon + label) and format or sector */
.pc-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cpill, .fpill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.cpill { color: var(--lime); background: rgba(206, 255, 94, 0.08); border: 1px solid rgba(206, 255, 94, 0.28); }
.fpill { color: var(--muted); background: var(--surface); border: 1px solid var(--glass-line); }
.cpill i, .fpill i { font-size: 14px; }
a.cpill:hover { background: rgba(206, 255, 94, 0.16); }

/* ---------- Hero (archives) ---------- */
.ix-hero { position: relative; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem); background: radial-gradient(55% 80% at 88% 0%, rgba(30, 16, 199, 0.28), transparent 70%); }
.ix-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1040px) { .ix-hero-grid.split { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 4rem; } }
.ix-hero h1 { font-size: clamp(42px, 5.6vw, 88px); max-width: 13ch; margin-top: 1.2rem; }
.ix-hero .sec-lead { margin-top: 1.4rem; max-width: 44ch; }

/* Topic index: the archive's table of contents */
.topic-index, .glance { border-radius: var(--r-card); padding: 1.3rem 1.3rem 0.6rem; }
.topic-index ul, .glance ul { display: grid; }
.topic-index a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding: 0.85rem 0.2rem; border-top: 1px solid var(--line); transition: color 200ms; }
.topic-index li:first-child a { border-top: 0; }
.topic-index a > i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--glass-line); font-size: 19px; color: var(--lime); transition: background 200ms, border-color 200ms; }
.topic-index strong { display: block; font-size: 15px; color: var(--text); }
.topic-index em { display: block; font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 0.1rem; }
.topic-index b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--faint); min-width: 2ch; text-align: right; transition: color 200ms; }
.topic-index a:hover > i { background: rgba(206, 255, 94, 0.12); border-color: rgba(206, 255, 94, 0.4); }
.topic-index a:hover b { color: var(--lime); }
.topic-index a:focus-visible, .glance a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 10px; }

.glance a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'c v' 's l'; column-gap: 1rem; padding: 0.85rem 0.2rem; border-top: 1px solid var(--line); }
.glance li:first-child a { border-top: 0; }
.g-client { grid-area: c; font-weight: 700; color: var(--text); font-size: 15px; }
.g-sector { grid-area: s; font-size: 13px; color: var(--muted); }
.glance b { grid-area: v; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; color: var(--lime); text-align: right; }
.g-all { display: flex; align-items: center; justify-content: space-between; margin: 0.4rem -0.2rem 0.4rem; padding: 0.9rem 0.2rem 0.5rem; border-top: 1px solid var(--glass-line); font-size: 13.5px; font-weight: 700; color: var(--lime); }
.g-all:hover { color: var(--text); }
.glance em { grid-area: l; font-style: normal; font-size: 12px; color: var(--faint); text-align: right; }

/* ---------- Post cards ---------- */
.pc { display: flex; flex-direction: column; border: 1px solid var(--glass-line); border-radius: var(--r-card); background: var(--glass); overflow: hidden; transition: border-color 300ms, transform 300ms var(--ease); }
.pc:hover { border-color: rgba(206, 255, 94, 0.45); transform: translateY(-3px); }
.pc:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.pc-img { overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.pc:hover .pc-img img { transform: scale(1.04); }
.pc-body { padding: 1.15rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.pc-body h3 { font-size: 18px; font-weight: 700; line-height: 1.32; color: var(--text); text-wrap: balance; }
.pc-body p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.pc-meta { margin-top: auto; padding-top: 0.4rem; display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-size: 12.5px; color: var(--faint); }
.pc-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.pc[hidden], .cs[hidden] { display: none; }
.pc.lg .pc-body { padding: 1.5rem 1.7rem 1.7rem; }
.pc.lg h3 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.03; }
.pc.lg .pc-body p { font-size: 16px; max-width: 52ch; }
@media (min-width: 640px) {
  .pc.row { flex-direction: row; }
  .pc.row .pc-img { flex: 0 0 38%; aspect-ratio: auto; }
  .pc.row .pc-img img { height: 100%; }
}

/* Start here: one lead guide, two supporting */
.start-grid { display: grid; gap: 1.4rem; }
@media (min-width: 1040px) { .start-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.start-side { display: grid; gap: 1.4rem; }

/* Library: toolbar, count, grid, empty state */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 0.8rem; border: 1px solid var(--glass-line); border-radius: calc(var(--r-card) + 4px); background: var(--glass); }
.fchips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.fchip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 9px 14px; border-radius: 999px; border: 1px solid transparent; background: transparent; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; transition: color 200ms, background 200ms, border-color 200ms; }
.fchip i { font-size: 15px; }
.fchip span { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--surface); color: var(--faint); }
.fchip:hover { color: var(--text); background: var(--surface); }
.fchip[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); }
.fchip[aria-pressed="true"] span { background: rgba(22, 22, 22, 0.14); color: var(--on-accent); }
.fchip:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.search { position: relative; flex: 1 1 240px; max-width: 340px; }
.search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 17px; color: var(--faint); pointer-events: none; }
.search input { width: 100%; padding: 11px 14px 11px 40px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.search input::placeholder { color: rgba(243, 240, 232, 0.55); }
.search input:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: transparent; }
@media (max-width: 700px) { .search { max-width: none; } }
.lib-count { margin: 1.1rem 0 1.2rem; font-size: 13px; color: var(--faint); }
.pgrid { display: grid; gap: 1.3rem; }
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.empty { display: grid; justify-items: start; gap: 0.8rem; padding: 2rem; border: 1px dashed var(--glass-line); border-radius: var(--r-card); color: var(--muted); }
.empty > i { font-size: 26px; color: var(--faint); }

/* ---------- Article ---------- */
.art-hero { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.art-head { max-width: calc(980px + 2 * var(--gutter)); margin-inline: auto; }
@media (min-width: 1240px) { .art-head { max-width: var(--wrap); padding-left: calc(var(--gutter) + 200px + 3rem); } }
.art-tags { margin-top: 1.5rem; }
.art-hero h1 { font-size: clamp(34px, 3.7vw, 58px); line-height: 1.02; max-width: 24ch; margin: 1rem 0 1.1rem; }
.art-dek { font-size: clamp(17px, 1.5vw, 20px); font-weight: 300; line-height: 1.5; color: rgba(243, 240, 232, 0.78); max-width: 58ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); max-width: 980px; }
.byline > img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.by-who strong { display: block; font-size: 15px; }
.by-who span { font-size: 13px; color: var(--muted); }
.byline dl { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; margin-left: auto; }
.byline dt { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); }
.byline dd { font-size: 14px; color: var(--text); margin-top: 0.15rem; }
@media (max-width: 700px) { .byline dl { margin-left: 0; width: 100%; } }

.art-grid { display: grid; gap: 2.5rem; padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem); }
.art-body { min-width: 0; max-width: 720px; margin-inline: auto; width: 100%; }
@media (min-width: 1000px) { .art-grid { grid-template-columns: 210px minmax(0, 1fr); gap: 3.5rem; } .art-body { margin-inline: 0; } }
@media (min-width: 1240px) { .art-grid { grid-template-columns: 200px minmax(0, 1fr) 260px; gap: 3rem; } .art-body { max-width: 720px; } }

.toc { font-size: 13.5px; }
.toc-h, .rail-h { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); margin-bottom: 0.9rem; }
.toc ol, .toc-m ol { counter-reset: toc; display: grid; gap: 0.1rem; }
.toc li, .toc-m li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); padding: 7px 0; color: var(--muted); line-height: 1.38; transition: color 200ms; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-size: 11px; font-weight: 800; color: var(--faint); padding-top: 2px; transition: color 200ms; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); }
.toc a.on::before { color: var(--lime); }
.toc-progress { margin-top: 1rem; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.toc-progress i { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }
@media (min-width: 1000px) { .toc { position: sticky; top: calc(var(--hdr-h) + 1.5rem); align-self: start; } }
@media (max-width: 999px) { .toc { display: none; } }
.toc-m { margin-bottom: 1.6rem; border: 1px solid var(--glass-line); border-radius: var(--r-card); background: var(--glass); }
.toc-m summary { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.1rem; font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: '+'; margin-left: auto; color: var(--lime); font-weight: 800; }
.toc-m[open] summary::after { content: '-'; }
.toc-m ol { padding: 0 1.1rem 1rem; }
.toc-m a { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); padding: 6px 0; color: var(--muted); font-size: 14px; }
.toc-m a::before { content: counter(toc, decimal-leading-zero); font-size: 11px; font-weight: 800; color: var(--faint); padding-top: 2px; }
@media (min-width: 1000px) { .toc-m { display: none; } }

.summary { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 760px) { .summary { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.answer, .takeaways { padding: 1.25rem 1.4rem; border: 1px solid var(--glass-line); border-radius: var(--r-card); background: var(--glass); }
.answer { background: radial-gradient(90% 140% at 0% 0%, rgba(206, 255, 94, 0.09), transparent 60%), var(--glass); }
.sum-h { display: flex; align-items: center; gap: 0.5rem; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--lime); margin-bottom: 0.6rem; }
.sum-h i { font-size: 16px; }
.answer p:not(.sum-h) { font-size: 16.5px; line-height: 1.6; color: var(--text); }
.takeaways ul, .cs-card ul { display: grid; gap: 0.55rem; list-style: disc; margin-left: 1.1rem; }
.takeaways li, .cs-card li { font-size: 14.5px; line-height: 1.5; color: rgba(243, 240, 232, 0.86); padding-left: 0.2rem; }
.takeaways li::marker, .cs-card li::marker { color: var(--lime); }

.lead-fig { margin: 0 0 2.4rem; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.lead-fig img { width: 100%; height: auto; display: block; }
.lead-fig figcaption { padding: 0.7rem 1rem; font-size: 12.5px; color: var(--faint); }

.prose { font-size: 17px; line-height: 1.75; color: rgba(243, 240, 232, 0.84); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: clamp(28px, 2.7vw, 40px); line-height: 1.04; color: var(--text); margin-top: 3.2rem; scroll-margin-top: calc(var(--hdr-h) + 1.2rem); text-wrap: balance; }
.prose h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-top: 2rem; }
.prose a:not(.tlink) { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { margin-left: 1.3rem; display: grid; gap: 0.5rem; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li::marker { color: var(--lime); }
.stat { display: grid; gap: 0.5rem; padding: 1.6rem 1.8rem; border-radius: var(--r-card); background: linear-gradient(135deg, rgba(30, 16, 199, 0.3), rgba(24, 24, 30, 0.6)); border: 1px solid var(--glass-line); margin-block: 2rem; }
.stat b { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 6vw, 80px); line-height: 1; color: var(--lime); }
.stat span { font-size: 15px; color: var(--muted); max-width: 46ch; line-height: 1.55; }
.stat .tlink { margin-top: 0.3rem; font-size: 14px; }
.pull { margin-block: 2.6rem; }
.pull > i { display: block; font-size: 34px; color: var(--lime); margin-bottom: 0.6rem; }
.pull blockquote p { font-size: clamp(20px, 2vw, 26px); line-height: 1.4; color: var(--text); font-weight: 300; }
.pull figcaption { margin-top: 0.8rem; font-size: 13.5px; color: var(--muted); }
.cmp-wrap { overflow-x: auto; margin-block: 1.6rem; border: 1px solid var(--glass-line); border-radius: var(--r-card); background: var(--glass); }
.cmp { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { text-align: left; padding: 13px 16px; vertical-align: top; }
.cmp thead th { color: var(--faint); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; background: rgba(255, 255, 255, 0.03); }
.cmp tbody tr + tr th, .cmp tbody tr + tr td { border-top: 1px solid var(--line); }
.cmp tbody th { color: var(--text); font-weight: 700; width: 30%; }
.cmp td { color: var(--muted); }
.art-faq { margin-top: 3.4rem; }
.art-faq > h2 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: clamp(28px, 2.7vw, 40px); margin-bottom: 1.2rem; scroll-margin-top: calc(var(--hdr-h) + 1.2rem); }
.art-end { display: grid; gap: 1.6rem; margin-top: 3rem; }
.sources { font-size: 14px; color: var(--muted); padding-top: 1.4rem; border-top: 1px solid var(--line); }
.sources h2 { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); font-family: var(--body); font-weight: 800; margin-bottom: 0.6rem; }
.sources ol { margin-left: 1.2rem; list-style: decimal; display: grid; gap: 0.3rem; }
.author { display: flex; gap: 1.1rem; align-items: center; padding: 1.3rem 1.5rem; border: 1px solid var(--glass-line); border-radius: var(--r-card); background: var(--glass); }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author strong { display: block; color: var(--text); }
.author span { display: block; font-size: 14px; color: var(--muted); margin-top: 0.2rem; line-height: 1.5; }

/* Right rail (wide screens); below 1240px it sits under the article */
.rail { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 1000px) and (max-width: 1239px) { .rail { grid-column: 2; max-width: 720px; grid-template-columns: 1fr 1fr; } }
@media (min-width: 1240px) { .rail { align-self: stretch; align-content: start; } .rail-stick { position: sticky; top: calc(var(--hdr-h) + 1.5rem); } }
.rail-stick { display: grid; gap: 1rem; }
@media (min-width: 1000px) and (max-width: 1239px) { .rail-stick { display: contents; } }
.rail-card { padding: 1.2rem 1.25rem; border: 1px solid var(--glass-line); border-radius: var(--r-card); background: var(--glass); }
.rail-card > p:not(.rail-h):not(.svc-name) { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-bottom: 1rem; }
.svc-name { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 15px; color: var(--text); margin-bottom: 0.4rem; }
.svc-name i { color: var(--lime); font-size: 18px; }
.rail .btn { width: 100%; padding-inline: 12px; font-size: 12px; }
.rail-list { display: grid; margin-bottom: 0.9rem; }
.rail-list a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0.6rem; padding: 0.7rem 0; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; line-height: 1.38; color: var(--text); }
.rail-list li:first-child a { border-top: 0; padding-top: 0; }
.rail-list a i { color: var(--lime); font-size: 16px; padding-top: 1px; }
.rail-list em { display: block; margin-top: 0.25rem; font-style: normal; font-weight: 400; font-size: 12px; color: var(--faint); }
.rail-list a:hover span { color: var(--lime); }
.rail .tlink { font-size: 13px; }
.news-rail { display: grid; gap: 0.6rem; background: radial-gradient(100% 120% at 100% 0%, rgba(30, 16, 199, 0.32), transparent 65%), var(--glass); }
.news-rail .rail-h { margin-bottom: 0.2rem; }
.nr-h { font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--text); }
.nr-sub { font-size: 13px; color: var(--muted); line-height: 1.45; }
.news-rail input[type="email"] { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.news-rail input[type="email"]::placeholder { color: rgba(243, 240, 232, 0.55); }
.news-rail input[type="email"]:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: transparent; }
.news-rail input[aria-invalid="true"] { border-color: var(--orange); }
.news-rail .btn { width: 100%; }
.news-rail .news-msg { font-size: 12.5px; color: var(--muted); min-height: 1em; }
.share { display: inline-flex; align-items: center; gap: 0.5rem; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.share:hover { border-color: rgba(206, 255, 94, 0.45); }
.share.done { color: var(--lime); }

.next-reads { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.next-grid { display: grid; gap: 1.3rem; }
@media (min-width: 760px) { .next-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Case studies archive ---------- */
.cs-grid { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs { display: flex; flex-direction: column; border: 1px solid var(--glass-line); border-radius: var(--r-card); background: var(--glass); overflow: hidden; transition: border-color 300ms, transform 300ms var(--ease); }
.cs:hover { border-color: rgba(206, 255, 94, 0.45); transform: translateY(-3px); }
.cs:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.cs-media { position: relative; overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 9; }
.cs-media img { width: 100%; height: 112%; object-fit: cover; position: absolute; inset: -6% 0 auto; will-change: transform; }
.cs-media.type { display: grid; place-items: center; background: radial-gradient(70% 90% at 30% 20%, rgba(30, 16, 199, 0.5), rgba(12, 12, 14, 0.2) 70%), var(--bg-2); }
.cs-media.type span { font-family: var(--display); text-transform: uppercase; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.02; text-align: center; padding: 1.4rem; color: var(--text); text-wrap: balance; max-width: 12ch; }
.cs-media.shot { display: grid; place-items: center; padding: clamp(1rem, 2.4vw, 1.8rem); background: radial-gradient(80% 90% at 20% 10%, rgba(30, 16, 199, 0.4), rgba(12, 12, 14, 0.1) 70%), var(--bg-2); }
.cs-media.shot img.ph { aspect-ratio: 16 / 9; object-fit: cover; object-position: center 45%; }
.cs-media.shot img { position: static; height: auto; width: 100%; border-radius: 10px; border: 1px solid var(--glass-line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); will-change: auto; }
.cs-body { padding: 1.3rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }
.cs-client { font-size: 13px; font-weight: 700; color: var(--muted); }
.cs-body h3 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.04; text-wrap: balance; }
.cs-chal { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.cs-chal b { color: var(--text); }
.cs-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); align-items: start; gap: 1rem 1.6rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.cs-nums .num { display: flex; flex-direction: column; min-width: 0; }
.cs-nums dd { order: -1; white-space: nowrap; }
.cs-nums dd { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); line-height: 1; color: var(--text); }
.cs-nums div.hl dd { color: var(--lime); }
.cs-nums dt { margin-top: 0.3rem; font-size: 12.5px; color: var(--muted); max-width: 18ch; line-height: 1.35; }
.cs-basis { font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.cs .tlink { margin-top: auto; padding-top: 0.3rem; }

/* Shared rows across each pair of cards (media, tags, client, title, challenge, figures, basis, link) */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 900px) {
    .cs-grid > .cs { display: grid; grid-template-rows: subgrid; grid-row: span 8; row-gap: 0; }
    .cs-grid > .cs > .cs-body { display: contents; }
    .cs-grid > .cs > .cs-body > * { margin-inline: 1.5rem; }
    .cs-grid > .cs > .cs-body > .pc-tags { margin-top: 1.3rem; }
    .cs-grid > .cs > .cs-body > * + * { margin-top: 0.85rem; }
    .cs-grid > .cs > .cs-body > .cs-nums { align-self: start; }
    .cs-grid > .cs > .cs-body > .tlink { align-self: end; margin-bottom: 1.5rem; }
    .cs-grid > .cs[hidden] { display: none; }
  }
}
.more-wrap { display: flex; justify-content: center; margin-top: 2rem; }
.more-wrap .btn[hidden] { display: none; }

/* How we work: one connected line of three steps, not three cards */
.method-steps { display: grid; gap: 1.6rem; position: relative; }
@media (min-width: 900px) { .method-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } .method-steps::before { content: ''; position: absolute; left: 24px; right: 24px; top: 24px; height: 1px; background: linear-gradient(90deg, var(--lime), var(--glass-line)); } }
.method-steps li { position: relative; display: grid; gap: 0.5rem; }
.method-steps i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid rgba(206, 255, 94, 0.45); color: var(--lime); font-size: 21px; position: relative; margin-bottom: 0.4rem; }
.method-steps strong { font-size: 17px; }
.method-steps span { color: var(--muted); font-size: 15px; max-width: 32ch; line-height: 1.55; }

/* ---------- Case study page ---------- */
.cs-hero h1 { font-size: clamp(38px, 5vw, 78px); max-width: 17ch; margin: 1rem 0 1.3rem; }
.cs-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--glass-line); border-radius: var(--r-card); overflow: hidden; background: var(--glass-line); margin-top: 2rem; }
@media (min-width: 760px) { .cs-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cs-facts div { background: var(--surface-2); padding: 0.95rem 1.1rem; }
.cs-facts dt { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint); }
.cs-facts dd { margin-top: 0.25rem; font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.35; }
.glance-3 { display: grid; margin-top: 1rem; border: 1px solid var(--glass-line); border-radius: var(--r-card); background: var(--glass); }
.glance-3 > div { padding: 1.2rem 1.35rem; }
.glance-3 > div + div { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .glance-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .glance-3 > div + div { border-top: 0; border-left: 1px solid var(--line); } }
.glance-3 p:not(.sum-h) { font-size: 15px; line-height: 1.55; color: rgba(243, 240, 232, 0.86); }

/* Chapter bar: sticky map of the case study */
.chapters { position: sticky; top: var(--hdr-h); z-index: 20; background: rgba(12, 12, 14, 0.82); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-block: 1px solid var(--line); transition: top 400ms var(--ease); }
.hdr.hidden ~ main .chapters { top: 0; }
.chapters ol { display: flex; gap: 0.3rem; overflow-x: auto; scrollbar-width: none; padding-block: 0.55rem; counter-reset: ch; }
.chapters ol::-webkit-scrollbar { display: none; }
.chapters li { counter-increment: ch; flex: none; }
.chapters a { display: inline-flex; gap: 0.5rem; align-items: center; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); transition: color 200ms, background 200ms; white-space: nowrap; }
.chapters a::before { content: counter(ch, decimal-leading-zero); font-size: 10.5px; color: var(--faint); }
.chapters a:hover { color: var(--text); }
.chapters a.on { color: var(--on-accent); background: var(--accent); }
.chapters a.on::before { color: rgba(22, 22, 22, 0.6); }
@supports not (backdrop-filter: blur(1px)) { .chapters { background: var(--bg); } }

.cs-sec { padding-block: clamp(3.5rem, 7vw, 6rem); scroll-margin-top: calc(var(--hdr-h) + 64px); }
.cs-first { padding-top: clamp(2rem, 4vw, 3rem); }
.cs-ba { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--glass-line); aspect-ratio: 1280 / 607; height: auto; }
.ba-cap { display: flex; justify-content: space-between; margin-top: 0.7rem; font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); }
.cs-cols { display: grid; gap: 1.8rem; }
@media (min-width: 1000px) { .cs-cols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } .cs-cols > div:first-child { position: sticky; top: calc(var(--hdr-h) + 90px); align-self: start; } }
.cs-cols h2 { font-size: clamp(32px, 3.8vw, 58px); line-height: 1.02; text-wrap: balance; }
.cs-side { margin-top: 1rem; color: var(--muted); font-size: 15px; }
.cs-text { max-width: 62ch; font-size: 17.5px; line-height: 1.7; color: rgba(243, 240, 232, 0.84); display: grid; gap: 1rem; }
.cs-split { display: grid; gap: 1rem; margin-top: 1.8rem; }
@media (min-width: 760px) { .cs-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-card { padding: 1.3rem 1.4rem; border: 1px solid var(--glass-line); border-radius: var(--r-card); background: var(--glass); }
.cs-card h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 800; color: var(--lime); margin-bottom: 0.8rem; }
.cs-card h3 i { font-size: 16px; }

.did { display: grid; }
.did-item { display: grid; gap: 0.5rem 1.6rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.did-item:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .did-item { grid-template-columns: 120px minmax(0, 1fr); } .did-item p { grid-column: 2; } }
.did-cat { padding-top: 0.2rem; }
.did-item h3 { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.3; }
.did-item p { color: rgba(243, 240, 232, 0.78); line-height: 1.6; max-width: 54ch; }

/* Results: the one pinned moment, grouped by what moved */
.cs-results { position: relative; background: radial-gradient(70% 70% at 80% 10%, rgba(30, 16, 199, 0.3), transparent 70%); scroll-margin-top: var(--hdr-h); }
.cs-results-in { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(4rem, 8vw, 6rem); }
.cs-results h2 { font-size: clamp(40px, 5vw, 76px); }
.res-groups { display: grid; gap: 2rem; margin-top: 2.4rem; }
@media (min-width: 900px) { .res-groups { grid-template-columns: 1.4fr 1fr 0.7fr; gap: 3rem; } }
.res-g { display: flex; align-items: center; gap: 0.5rem; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--lime); padding-bottom: 0.8rem; border-bottom: 1px solid var(--glass-line); margin-bottom: 1.2rem; }
.res-g i { font-size: 16px; }
.res-item { margin-bottom: 1.3rem; }
.res-item b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.6vw, 72px); line-height: 1; color: var(--text); }
.res-item.big b { color: var(--lime); font-size: clamp(56px, 7vw, 108px); }
.res-item span { display: block; margin-top: 0.4rem; font-size: 14px; color: var(--muted); max-width: 24ch; line-height: 1.4; }
.res-basis { margin-top: 1rem; font-size: 13.5px; color: var(--faint); max-width: 60ch; line-height: 1.55; }
.not-done { padding: 1.4rem 1.6rem; border: 1px solid var(--glass-line); border-radius: var(--r-card); background: var(--glass); max-width: 70ch; }
.not-done p:not(.sum-h) { color: rgba(243, 240, 232, 0.85); line-height: 1.6; }
.cs-quote { padding-block: clamp(3rem, 6vw, 5rem); scroll-margin-top: calc(var(--hdr-h) + 64px); }
.q-mark { display: block; font-size: 40px; color: var(--lime); margin-bottom: 0.8rem; }
.cs-quote blockquote p { font-size: clamp(24px, 2.8vw, 40px); line-height: 1.25; font-weight: 300; color: var(--text); max-width: 26ch; text-wrap: balance; }
.cs-quote .who { margin-top: 1.6rem; display: flex; align-items: center; gap: 1rem; }
.cs-quote .who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.cs-quote .who strong { display: block; color: var(--text); }
.cs-quote .who span span { font-size: 14px; color: var(--muted); }
.ke-grid { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .ke-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; } }
.ke-list { display: grid; gap: 1rem; }

/* Lab preview note (never shipped) */
.lab-note { position: fixed; left: 1rem; bottom: 1rem; z-index: 90; max-width: 340px; padding: 0.7rem 0.9rem; border-radius: 12px; font-size: 12px; line-height: 1.45; color: var(--muted); background: rgba(18, 18, 22, 0.92); border: 1px solid var(--glass-line); }
.lab-note b { color: var(--lime); }

/* Reduced motion and transparency: everything static and readable */
@media (prefers-reduced-motion: reduce) {
  .pc, .cs, .pc-img img, .chapters { transition: none; }
  .pc:hover, .cs:hover { transform: none; }
  .cs-media img { position: static; height: 100%; inset: auto; }
}
@media (prefers-reduced-transparency: reduce) { .chapters { background: var(--bg); backdrop-filter: none; } }
.news-rail > p:not(.rail-h) { margin-bottom: 0 !important; }
.news-rail .news-msg:empty { display: none; }
.glance a { grid-template-columns: minmax(0, 1fr) minmax(0, 44%); }
.glance em { line-height: 1.35; }

/* Figures made of several images (guides) and extra case components */
.fig-grid { display: grid; gap: 0.6rem; padding: 0.6rem; background: var(--bg-2); }
.fig-grid.\32 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fig-grid.\34 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .fig-grid.\34 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fig-grid img { border-radius: 10px; width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 5; }
.fig figcaption { padding: 0.7rem 1rem; font-size: 12.5px; color: var(--faint); }
.cs-summary { margin-top: 1rem; }
.cs-faq { display: grid; gap: 1.6rem; }
@media (min-width: 1000px) { .cs-faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } }
.cs-faq h2 { font-size: clamp(32px, 3.8vw, 58px); line-height: 1.02; }
.res-camp { margin-top: 0; }
.res-shows { margin-top: 1.4rem; max-width: 62ch; font-size: 17.5px; line-height: 1.65; color: rgba(243, 240, 232, 0.84); }
.did + .fig { margin-top: 2rem; }
.did ~ .fig + .fig { margin-top: 1.2rem; }
.fig-grid figcaption { grid-column: 1 / -1; padding: 0.2rem 0.4rem 0.3rem; }

/* ---------- Motion vocabulary (CSS driven) ----------
   Hero: pure CSS from first paint (html.motion is set in the head unless the visitor prefers reduced motion).
   Below the fold: hidden only under html.reveal-ready, which JavaScript adds; the IntersectionObserver adds .in once. */
@keyframes lnIn { from { transform: translateY(115%); } to { transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
html.motion .hero-h .ln-mask > span { animation: lnIn 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms + 120ms); }
html.motion .ix-hero .crumbs { animation: riseIn 0.8s var(--ease) both; }
html.motion .ix-hero .art-tags { animation: riseIn 0.9s var(--ease) 0.12s both; }
html.motion .ix-hero .sec-lead, html.motion .ix-hero .art-dek { animation: riseIn 1s var(--ease) 0.5s both; }
html.motion .ix-hero .topic-index, html.motion .ix-hero .glance { animation: riseIn 1s var(--ease) 0.35s both; }
html.motion .ix-hero .byline { animation: riseIn 1s var(--ease) 0.62s both; }
html.motion .cs-hero .cs-facts { animation: riseIn 1s var(--ease) 0.62s both; }
html.motion .cs-hero .glance-3 { animation: riseIn 1s var(--ease) 0.74s both; }
html.motion .cs-hero .cs-summary { animation: riseIn 1s var(--ease) 0.86s both; }
html.reveal-ready [data-lines]:not(.hero-h) .ln-mask > span { transform: translateY(115%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 35ms); }
html.reveal-ready [data-lines].in:not(.hero-h) .ln-mask > span { transform: none; }
html.reveal-ready .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
html.reveal-ready .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.motion .hero-h .ln-mask > span, html.motion .ix-hero .crumbs, html.motion .ix-hero .art-tags, html.motion .ix-hero .sec-lead, html.motion .ix-hero .art-dek,
  html.motion .ix-hero .topic-index, html.motion .ix-hero .glance, html.motion .ix-hero .byline, html.motion .cs-hero .cs-facts, html.motion .cs-hero .glance-3, html.motion .cs-hero .cs-summary { animation: none; }
}
